Gnome::Gsk4::CrossFadeNode
Table of Contents
Description§
A render node cross fading between two child nodes.
Class initialization§
new§
:native-object§
Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object() :$native-object! )
Code
new-crossfadenode§
Creates a Gnome::Gsk4::RenderNode that will do a cross-fade between $start and $end.
method new-crossfadenode ( N-Object() $start, N-Object() $end, Num() $progress --> Gnome::Gsk4::CrossFadeNode \)
Code
- $start; The start node to be drawn.
- $end; The node to be cross_fadeed onto the $start node.
- $progress; How far the fade has progressed from start to end. The value will be clamped to the range [0 ... 1].
Methods§
get-end-child§
Retrieves the child Gnome::Gsk4::RenderNode at the end of the cross-fade.
method get-end-child (--> N-Object )
Code
Return value; a Gnome::Gsk4::RenderNode.
get-progress§
Retrieves the progress value of the cross fade.
method get-progress (--> Num )
Code
Return value; the progress value, between 0 and 1.
get-start-child§
Retrieves the child Gnome::Gsk4::RenderNode at the beginning of the cross-fade.
method get-start-child (--> N-Object )
Code
Return value; a Gnome::Gsk4::RenderNode.
About my projects, examples and tutorials