Class: Gsk::MaskNode
- Inherits:
-
RenderNode
- Object
- RenderNode
- Gsk::MaskNode
- Defined in:
- (unknown)
Overview
A render node masking one child node with another.
Instance Method Summary collapse
-
#initialize(source, mask, mask_mode) ⇒ Gsk::MaskNode
constructor
Creates a
GskRenderNodethat will mask a given node by another. -
#mask ⇒ Gsk::RenderNode
Retrieves the mask
GskRenderNodechild of the node. -
#mask_mode ⇒ Gsk::MaskMode
Retrieves the mask mode used by node.
-
#source ⇒ Gsk::RenderNode
Retrieves the source
GskRenderNodechild of the node.
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.
Instance Method Details
#mask ⇒ Gsk::RenderNode
Retrieves the mask GskRenderNode child of the node.
#mask_mode ⇒ Gsk::MaskMode
Retrieves the mask mode used by node.
#source ⇒ Gsk::RenderNode
Retrieves the source GskRenderNode child of the node.