Class: Gsk::MaskNode

Inherits:
RenderNode show all
Defined in:
(unknown)

Overview

A render node masking one child node with another.

Instance Method Summary collapse

Methods inherited from RenderNode

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

Constructor Details

#initialize(source, mask, mask_mode) ⇒ Gsk::MaskNode

Creates a GskRenderNode that will mask a given node by another.

The mask_mode determines how the 'mask values' are derived from the colors of the mask. Applying the mask consists of multiplying the 'mask value' with the alpha of the source.

Parameters:

Instance Method Details

#maskGsk::RenderNode

Retrieves the mask GskRenderNode child of the node.

Returns:

#mask_modeGsk::MaskMode

Retrieves the mask mode used by node.

Returns:

#sourceGsk::RenderNode

Retrieves the source GskRenderNode child of the node.

Returns: