Gnome::Gsk4::OpacityNode
#------------------------------------------------------------------------------- #--[Class Description]---------------------------------------------------------- #-------------------------------------------------------------------------------
=begin rakudoc
Description
A render node controlling the opacity of its single child node.
=end rakudoc
#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------
=begin rakudoc
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! )
=end rakudoc
#------------------------------------------------------------------------------- =begin rakudoc
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.
=end rakudoc
#------------------------------------------------------------------------------- #--[Methods]-------------------------------------------------------------------- #-------------------------------------------------------------------------------
=begin rakudoc
Methods =end rakudoc
#------------------------------------------------------------------------------- =begin rakudoc
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.
=end rakudoc
#------------------------------------------------------------------------------- =begin rakudoc
get-opacity
Gets the transparency factor for an opacity node.
method get-opacity (--> Num )
Return value; the opacity factor.
=end rakudoc