Gnome::Gsk4::MaskNode
Table of Contents
Description§
A render node masking one child node with another.
Class initialization§
new§
:native-object§
Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object() :$native-object! )
Code
new-masknode§
Creates a Gnome::Gsk4::RenderNode 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.
method new-masknode ( N-Object() $source, N-Object() $mask, GskMaskMode $mask-mode --> Gnome::Gsk4::MaskNode \)
Code
- $source; The source node to be drawn.
- $mask; The node to be used as mask.
- $mask-mode; The mask mode to use.
Methods§
get-mask§
Retrieves the mask Gnome::Gsk4::RenderNode child of the $node.
method get-mask (--> N-Object )
Code
Return value; the mask child node.
get-mask-mode§
Retrieves the mask mode used by $node.
method get-mask-mode (--> GskMaskMode )
Code
Return value; the mask mode.
get-source§
Retrieves the source Gnome::Gsk4::RenderNode child of the $node.
method get-source (--> N-Object )
Code
Return value; the source child node.
About my projects, examples and tutorials