Gnome::Gsk4::RadialGradientNode
Table of Contents
Description§
A render node for a radial gradient.
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-radialgradientnode§
Creates a Gnome::Gsk4::RenderNode that draws a radial gradient.
The radial gradient starts around $center. The size of the gradient is dictated by $hradius in horizontal orientation and by $vradius in vertial orientation.
method new-radialgradientnode ( N-Object $bounds, N-Object $center, Num() $hradius, Num() $vradius, Num() $start, Num() $end, N-Object $color-stops, Int() $n-color-stops --> Gnome::Gsk4::RadialGradientNode \)
- $bounds; the bounds of the node
- $center; the center of the gradient
- $hradius; the horizontal radius.
- $vradius; the vertical radius.
- $start; a percentage >= 0 that defines the start of the gradient around $center.
- $end; a percentage >= 0 that defines the end of the gradient around $center.
- $color-stops; a pointer to an array of Gnome::Gsk4::N-ColorStop defining the gradient. The offsets of all color stops must be increasing. The first stop's offset must be >= 0 and the last stop's offset must be <= 1.
- $n-color-stops; the number of elements in $color-stops.
Methods§
get-center§
Retrieves the center pointer for the gradient.
method get-center (--> N-Object )
Return value; the center point for the gradient.
get-color-stops§
Retrieves the color stops in the gradient.
method get-color-stops ( Array[gsize] $n-stops --> N-Object )
- $n-stops; (transfer ownership: full) the number of color stops in the returned array.
Return value; the color stops in the gradient.
get-end§
Retrieves the end value for the gradient.
method get-end (--> Num )
Return value; the end value for the gradient.
get-hradius§
Retrieves the horizonal radius for the gradient.
method get-hradius (--> Num )
Return value; the horizontal radius for the gradient.
get-n-color-stops§
Retrieves the number of color stops in the gradient.
method get-n-color-stops (--> Int )
Return value; the number of color stops.
get-start§
Retrieves the start value for the gradient.
method get-start (--> Num )
Return value; the start value for the gradient.
get-vradius§
Retrieves the vertical radius for the gradient.
method get-vradius (--> Num )
Return value; the vertical radius for the gradient.
About my projects, examples and tutorials