1.23 <GskMaskNode>

Class: <GskMaskNode>

It derives from <GskRenderNode>.

A render node masking one child node with another.

Procedures

Method: mask-node:get-mask self ⇒ %return
Method: get-mask self ⇒ %return

Retrieves the mask <GskRenderNode> child of the self.

self

Passed: a <GskMaskNode>.

a mask <GskRenderNode>

%return

Returned: a <GskRenderNode>.

the mask child node

Method: mask-node:get-mask-mode self ⇒ %return
Method: get-mask-mode self ⇒ %return

Retrieves the mask mode used by self.

self

Passed: a <GskMaskNode>.

a blending <GskRenderNode>

%return

Returned: a <GskMaskMode>.

the mask mode

Method: mask-node:get-source self ⇒ %return
Method: get-source self ⇒ %return

Retrieves the source <GskRenderNode> child of the self.

self

Passed: a <GskMaskNode>.

a mask <GskRenderNode>

%return

Returned: a <GskRenderNode>.

the source child node

Procedure: mask-node:new source mask mask-mode ⇒ %return

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.

source

Passed: a <GskRenderNode>.

The source node to be drawn

mask

Passed: a <GskRenderNode>.

The node to be used as mask

mask-mode

Passed: a <GskMaskMode>, or one of its symbols.

The mask mode to use

%return

Returned: a <GskMaskNode>.

A new <GskRenderNode>