About all my projects
Gnome::Gsk4::MaskNode

Gnome::Gsk4::MaskNode

Description

A render node masking one child node with another.

Class initialization

new

:native-object

Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object :$native-object! )

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 \)
  • $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 )

Return value; the mask child node.

get-mask-mode

Retrieves the mask mode used by $node.

method get-mask-mode (--> GskMaskMode )

Return value; the mask mode.

get-source

Retrieves the source Gnome::Gsk4::RenderNode child of the $node.

method get-source (--> N-Object )

Return value; the source child node.