About all my projects
Gnome::Gsk4::OutsetShadowNode

Gnome::Gsk4::OutsetShadowNode

Description

A render node for an outset shadow.

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

Creates a Gnome::Gsk4::RenderNode that will render an outset shadow around the box given by $outline.

method new-outsetshadownode ( N-Object $outline, N-Object $color, Num() $dx, Num() $dy, Num() $spread, Num() $blur-radius --> Gnome::Gsk4::OutsetShadowNode \)
  • $outline; outline of the region surrounded by shadow

  • $color; color of the shadow

  • $dx; horizontal offset of shadow.

  • $dy; vertical offset of shadow.

  • $spread; how far the shadow spreads towards the inside.

  • $blur-radius; how much blur to apply to the shadow.

Methods

get-blur-radius

Retrieves the blur radius of the shadow.

method get-blur-radius (--> Num )

Return value; the blur radius, in pixels.

get-color

Retrieves the color of the outset shadow.

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

Return value; a color.

get-dx

Retrieves the horizontal offset of the outset shadow.

method get-dx (--> Num )

Return value; an offset, in pixels.

get-dy

Retrieves the vertical offset of the outset shadow.

method get-dy (--> Num )

Return value; an offset, in pixels.

get-outline

Retrieves the outline rectangle of the outset shadow.

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

Return value; a rounded rectangle.

get-spread

Retrieves how much the shadow spreads outwards.

method get-spread (--> Num )

Return value; the size of the shadow, in pixels.