Class: Gsk::CrossFadeNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

A render node cross fading between two child nodes.

Instance Method Summary collapse

Methods inherited from RenderNode

deserialize, #draw, #get_bounds, #node_type, #ref, #serialize, #unref, #write_to_file

Constructor Details

#initialize(start, end, progress) ⇒ Gsk::CrossFadeNode

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

Parameters:

  • start (Gsk::RenderNode)

    The start node to be drawn

  • end (Gsk::RenderNode)

    The node to be cross_fadeed onto the start node

  • progress (Gsk::gfloat)

    How far the fade has progressed from start to end. The value will be clamped to the range [0 ... 1]

Instance Method Details

#end_childGsk::RenderNode

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

Returns:

#progressGsk::gfloat

Retrieves the progress value of the cross fade.

Returns:

  • (Gsk::gfloat)

    the progress value, between 0 and 1

#start_childGsk::RenderNode

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

Returns: