About my projects, examples and tutorials
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 an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

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

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

Return value; the blur radius, in pixels.

get-color§

Retrieves the color of the outset shadow.

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

Return value; a color.

get-dx§

Retrieves the horizontal offset of the outset shadow.

method get-dx (--> Num )
Code

Return value; an offset, in pixels.

get-dy§

Retrieves the vertical offset of the outset shadow.

method get-dy (--> Num )
Code

Return value; an offset, in pixels.

get-outline§

Retrieves the outline rectangle of the outset shadow.

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

Return value; a rounded rectangle.

get-spread§

Retrieves how much the shadow spreads outwards.

method get-spread (--> Num )
Code

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