About all my projects
Gnome::Gsk4::ClipNode

Gnome::Gsk4::ClipNode

Description

A render node applying a rectangular clip to its single child node.

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

Creates a Gnome::Gsk4::RenderNode that will clip the $child to the area given by $clip.

method new-clipnode ( N-Object() $child, N-Object $clip --> Gnome::Gsk4::ClipNode \)
  • $child; The node to draw.

  • $clip; The clip to apply

Methods

get-child

Gets the child node that is getting clipped by the given $node.

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

Return value; The child that is getting clipped.

get-clip

Retrieves the clip rectangle for $node.

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

Return value; a clip rectangle.