Gnome::Gsk4::BorderNode
#------------------------------------------------------------------------------- #--[Class Description]---------------------------------------------------------- #-------------------------------------------------------------------------------
Description
A render node for a border.
#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------
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! )
#-------------------------------------------------------------------------------
new-bordernode
Creates a Gnome::Gsk4::RenderNode that will stroke a border rectangle inside the
given $outline.
The 4 sides of the border can have different widths and colors.
method new-bordernode ( N-Object $outline, Num() $border-width, N-Object $border-color --> Gnome::Gsk4::BorderNode \)
$outline; a Gnome::Gsk4::N-RoundedRect describing the outline of the border
$border-width; the stroke width of the border on the top, right, bottom and left side respectively..
$border-color; the color used on the top, right, bottom and left side.
#------------------------------------------------------------------------------- #--[Methods]-------------------------------------------------------------------- #-------------------------------------------------------------------------------
Methods
#-------------------------------------------------------------------------------
get-colors
Retrieves the colors of the border.
method get-colors (--> N-Object )
Return value; an array of 4 Gnome::Gdk4::N-RGBA structs for the top, right, bottom and left color of the border.
#-------------------------------------------------------------------------------
get-outline
Retrieves the outline of the border.
method get-outline (--> N-Object )
Return value; the outline of the border.
#-------------------------------------------------------------------------------
get-widths
Retrieves the stroke widths of the border.
method get-widths (--> Num )
Return value; an array of 4 floats for the top, right, bottom and left stroke width of the border, respectively.