Package ch.bailu.gtk.gsk
Class CrossFadeNode
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gsk.RenderNode
ch.bailu.gtk.gsk.CrossFadeNode
- All Implemented Interfaces:
PointerInterface
A render node cross fading between two child nodes.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gsk.RenderNode
RenderNode.OnParseErrorFunc
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCrossFadeNode
(RenderNode start, RenderNode end, float progress) Creates a `GskRenderNode` that will do a cross-fade between @start and @end.CrossFadeNode
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
Retrieves the child `GskRenderNode` at the end of the cross-fade.static int
static long
static TypeSystem.TypeSize
float
Retrieves the progress value of the cross fade.Retrieves the child `GskRenderNode` at the beginning of the cross-fade.static long
static TypeSystem.TypeSize
Methods inherited from class ch.bailu.gtk.gsk.RenderNode
deserialize, draw, getBounds, getNodeType, ref, serialize, unref, writeToFile, writeToFile
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
-
CrossFadeNode
-
CrossFadeNode
Creates a `GskRenderNode` that will do a cross-fade between @start and @end.- Parameters:
start
- The start node to be drawnend
- The node to be cross_fadeed onto the @start nodeprogress
- How far the fade has progressed from start to end. The value will be clamped to the range [0 ... 1]
-
-
Method Details
-
getClassHandler
-
getEndChild
Retrieves the child `GskRenderNode` at the end of the cross-fade.- Returns:
- a `GskRenderNode`
-
getProgress
public float getProgress()Retrieves the progress value of the cross fade.- Returns:
- the progress value, between 0 and 1
-
getStartChild
Retrieves the child `GskRenderNode` at the beginning of the cross-fade.- Returns:
- a `GskRenderNode`
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-