Gsk.CrossFadeNode

g Gsk.CrossFadeNode Gsk.CrossFadeNode Gsk.RenderNode Gsk.RenderNode Gsk.RenderNode->Gsk.CrossFadeNode

Subclasses:

None

Methods

Inherited:

Gsk.RenderNode (8)

class

new (start, end, progress)

get_end_child ()

get_progress ()

get_start_child ()

Virtual Methods

None

Fields

None

Class Details

class Gsk.CrossFadeNode
Bases:

Gsk.RenderNode

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 drawn

  • end (Gsk.RenderNode) – The node to be cross_fadeed onto the start node

  • progress (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:

Gsk.CrossFadeNode

Creates a GskRenderNode that will do a cross-fade between start and end.

get_end_child()
Returns:

a GskRenderNode

Return type:

Gsk.RenderNode

Retrieves the child GskRenderNode at the end of the cross-fade.

get_progress()
Returns:

the progress value, between 0 and 1

Return type:

float

Retrieves the progress value of the cross fade.

get_start_child()
Returns:

a GskRenderNode

Return type:

Gsk.RenderNode

Retrieves the child GskRenderNode at the beginning of the cross-fade.