Package ch.bailu.gtk.gdkpixbuf
Class PixbufSimpleAnim
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.gdkpixbuf.PixbufAnimation
ch.bailu.gtk.gdkpixbuf.PixbufSimpleAnim
- All Implemented Interfaces:
PointerInterface
An opaque struct representing a simple animation.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gdkpixbuf.PixbufAnimation
PixbufAnimation.OnAsyncReadyCallbackNested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Field Summary
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Constructor Summary
ConstructorsConstructorDescriptionPixbufSimpleAnim(int width, int height, float rate) Creates a new, empty animation.PixbufSimpleAnim(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new frame to @animation.static ClassHandlerstatic intbooleangetLoop()Gets whether @animation should loop indefinitely when it reaches the end.static longstatic TypeSystem.TypeSizestatic longstatic TypeSystem.TypeSizevoidsetLoop(boolean loop) Sets whether @animation should loop indefinitely when it reaches the end.Methods inherited from class ch.bailu.gtk.gdkpixbuf.PixbufAnimation
getHeight, getIter, getStaticImage, getWidth, isStaticImage, newFromFilePixbufAnimation, newFromFilePixbufAnimation, newFromResourcePixbufAnimation, newFromResourcePixbufAnimation, newFromStreamAsync, newFromStreamFinishPixbufAnimation, newFromStreamPixbufAnimationMethods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnrefMethods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
PixbufSimpleAnim
-
PixbufSimpleAnim
public PixbufSimpleAnim(int width, int height, float rate) Creates a new, empty animation.- Parameters:
width- the width of the animationheight- the height of the animationrate- the speed of the animation, in frames per second
-
-
Method Details
-
getClassHandler
-
addFrame
Adds a new frame to @animation. The @pixbuf must
have the dimensions specified when the animation
was constructed.- Parameters:
pixbuf- the pixbuf to add
-
getLoop
public boolean getLoop()Gets whether @animation should loop indefinitely when it reaches the end.- Returns:
- %TRUE if the animation loops forever, %FALSE otherwise
-
setLoop
public void setLoop(boolean loop) Sets whether @animation should loop indefinitely when it reaches the end.- Parameters:
loop- whether to loop the animation
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-