Gnome::Gsk4::ColorNode
#------------------------------------------------------------------------------- #--[Class Description]---------------------------------------------------------- #-------------------------------------------------------------------------------
Description
A render node for a solid color.
#------------------------------------------------------------------------------- #--[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-colornode
Creates a Gnome::Gsk4::RenderNode that will render the color specified by $rgba into
the area given by $bounds.
method new-colornode ( N-Object $rgba, N-Object $bounds --> Gnome::Gsk4::ColorNode \)
$rgba; a Gnome::Gdk4::N-RGBA specifying a color
$bounds; the rectangle to render the color into
#------------------------------------------------------------------------------- #--[Methods]-------------------------------------------------------------------- #-------------------------------------------------------------------------------
Methods
#-------------------------------------------------------------------------------
get-color
Retrieves the color of the given $node.
method get-color (--> N-Object )
Return value; the color of the node.