About all my projects
Gnome::Gsk4::BlendNode

Gnome::Gsk4::BlendNode

Description

A render node applying a blending function between its two child nodes.

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-blendnode

Creates a Gnome::Gsk4::RenderNode that will use $blend-mode to blend the $top node onto the $bottom node.

method new-blendnode ( N-Object() $bottom, N-Object() $top, GskBlendMode $blend-mode --> Gnome::Gsk4::BlendNode \)
  • $bottom; The bottom node to be drawn.

  • $top; The node to be blended onto the $bottom node.

  • $blend-mode; The blend mode to use.

Methods

get-blend-mode

Retrieves the blend mode used by $node.

method get-blend-mode (--> GskBlendMode )

Return value; the blend mode.

get-bottom-child

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

method get-bottom-child (--> N-Object )

Return value; the bottom child node.

get-top-child

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

method get-top-child (--> N-Object )

Return value; the top child node.