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.OnAsyncReadyCallback
Nested 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
ConstructorDescriptionPixbufSimpleAnim
(int width, int height, float rate) Creates a new, empty animation.PixbufSimpleAnim
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new frame to @animation.static ClassHandler
static int
boolean
getLoop()
Gets whether @animation should loop indefinitely when it reaches the end.static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
void
setLoop
(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, newFromStreamPixbufAnimation
Methods 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, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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()
-