About my projects, examples and tutorials
Gnome::Gsk4::InsetShadowNode

Gnome::Gsk4::InsetShadowNode

Description§

A render node for an inset 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-insetshadownode§

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

method new-insetshadownode ( N-Object $outline, N-Object $color, Num() $dx, Num() $dy, Num() $spread, Num() $blur-radius --> Gnome::Gsk4::InsetShadowNode \)
Code
  • $outline; outline of the region containing the 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 to apply to the shadow.

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

Return value; the blur radius, in pixels.

get-color§

Retrieves the color of the inset shadow.

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

Return value; the color of the shadow.

get-dx§

Retrieves the horizontal offset of the inset shadow.

method get-dx (--> Num )
Code

Return value; an offset, in pixels.

get-dy§

Retrieves the vertical offset of the inset shadow.

method get-dy (--> Num )
Code

Return value; an offset, in pixels.

get-outline§

Retrieves the outline rectangle of the inset shadow.

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

Return value; a rounded rectangle.

get-spread§

Retrieves how much the shadow spreads inwards.

method get-spread (--> Num )
Code

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