About all my projects
Gnome::Gsk4::CrossFadeNode

Gnome::Gsk4::CrossFadeNode

Description

A render node cross fading between two child nodes.

Class initialization

new

:native-object

Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object :$native-object! )

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 \)
  • $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 )

Return value; a Gnome::Gsk4::RenderNode.

get-progress

Retrieves the progress value of the cross fade.

method get-progress (--> Num )

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 )

Return value; a Gnome::Gsk4::RenderNode.