Gnome::Gsk4::TextureNode
Description
A render node for a Gnome::Gdk4::Texture.
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-texturenode
Creates a Gnome::Gsk4::RenderNode that will render the given $texture
into the area given by $bounds
.
method new-texturenode ( N-Object() $texture, N-Object $bounds --> Gnome::Gsk4::TextureNode \)
$texture; the Gnome::Gdk4::Texture.
$bounds; the rectangle to render the texture into
Methods
get-texture
Retrieves the Gnome::Gdk4::Texture used when creating this Gnome::Gsk4::RenderNode.
method get-texture (--> N-Object )
Return value; the Gnome::Gdk4::Texture.