About all my projects
Gnome::Gsk4::ShadowNode

Gnome::Gsk4::ShadowNode

Description

A render node drawing one or more shadows behind 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-shadownode

Creates a Gnome::Gsk4::RenderNode that will draw a $child with the given $shadows below it.

method new-shadownode ( N-Object() $child, N-Object $shadows, Int() $n-shadows --> Gnome::Gsk4::ShadowNode \)
  • $child; The node to draw.

  • $shadows; The shadows to apply

  • $n-shadows; number of entries in the $shadows array.

Methods

get-child

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

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

Return value; the child render node.

get-n-shadows

Retrieves the number of shadows in the $node.

method get-n-shadows (--> Int )

Return value; the number of shadows..

get-shadow

Retrieves the shadow data at the given index $i.

method get-shadow ( Int() $i --> N-Object )
  • $i; the given index.

Return value; the shadow data.