Constructor
Gsk.RadialGradientNode.new
Declaration [src]
GskRenderNode*
gsk_radial_gradient_node_new (
const graphene_rect_t* bounds,
const graphene_point_t* center,
float hradius,
float vradius,
float start,
float end,
const GskColorStop* color_stops,
gsize n_color_stops
)
Description [src]
Creates a GskRenderNode
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.
Parameters
bounds |
const graphene_rect_t* |
the bounds of the node |
|
Ownership is not transferred to the callee | |
center |
const graphene_point_t* |
the center of the gradient |
|
Ownership is not transferred to the callee | |
hradius |
float |
the horizontal radius |
|
vradius |
float |
the vertical radius |
|
start |
float |
a percentage >= 0 that defines the start of the gradient around |
|
end |
float |
a percentage >= 0 that defines the end of the gradient around |
|
color_stops |
An array of GskColorStop |
a pointer to an array of
|
|
The length of the array is in the n_color_stops argument | |
Ownership is not transferred to the callee | |
n_color_stops |
gsize |
the number of elements in |
Return value
Returns: GskRadialGradientNode |
|
A new |
|
Ownership of the data is transferred to the caller |