Gsk.CrossFadeNode¶
- Subclasses:
None
Methods¶
- Inherited:
class |
|
|
|
Virtual Methods¶
None
Fields¶
None
Class Details¶
- class Gsk.CrossFadeNode¶
- Bases:
- Abstract:
No
A render node cross fading between two child nodes.
- classmethod new(start, end, progress)¶
- Parameters:
start (
Gsk.RenderNode
) – The start node to be drawnend (
Gsk.RenderNode
) – The node to be cross_fadeed onto the start nodeprogress (
float
) – How far the fade has progressed from start to end. The value will be clamped to the range [0 … 1]
- Returns:
A new
GskRenderNode
- Return type:
Creates a
GskRenderNode
that will do a cross-fade between start and end.
- get_end_child()¶
- Returns:
a
GskRenderNode
- Return type:
Retrieves the child
GskRenderNode
at the end of the cross-fade.
- get_progress()¶
- Returns:
the progress value, between 0 and 1
- Return type:
Retrieves the progress value of the cross fade.
- get_start_child()¶
- Returns:
a
GskRenderNode
- Return type:
Retrieves the child
GskRenderNode
at the beginning of the cross-fade.