Gnome::Gsk4::OpacityNode
Description
A render node controlling the opacity of its single child node.
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-opacitynode
Creates a Gnome::Gsk4::RenderNode that will drawn the $child
with reduced $opacity
.
method new-opacitynode ( N-Object() $child, Num() $opacity --> Gnome::Gsk4::OpacityNode \)
$child; The node to draw.
$opacity; The opacity to apply.
Methods
get-child
Gets the child node that is getting opacityed by the given $node
.
method get-child (--> N-Object )
Return value; The child that is getting opacityed.
get-opacity
Gets the transparency factor for an opacity node.
method get-opacity (--> Num )
Return value; the opacity factor.