Gnome::Gsk4::InsetShadowNode
Description
A render node for an inset 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-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 \)
$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 )
Return value; the blur radius, in pixels.
get-color
Retrieves the color of the inset shadow.
method get-color (--> N-Object )
Return value; the color of the shadow.
get-dx
Retrieves the horizontal offset of the inset shadow.
method get-dx (--> Num )
Return value; an offset, in pixels.
get-dy
Retrieves the vertical offset of the inset shadow.
method get-dy (--> Num )
Return value; an offset, in pixels.
get-outline
Retrieves the outline rectangle of the inset shadow.
method get-outline (--> N-Object )
Return value; a rounded rectangle.
get-spread
Retrieves how much the shadow spreads inwards.
method get-spread (--> Num )
Return value; the size of the shadow, in pixels.