Constructor
GskRadialGradientNodenew
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 |
graphene_rect_t |
The bounds of the node. |
|
The data is owned by the caller of the function. | |
center |
graphene_point_t |
The center of the gradient. |
|
The data is owned by the caller of the function. | |
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 specified in the n_color_stops argument. | |
The data is owned by the caller of the function. | |
n_color_stops |
gsize |
The number of elements in |
Return value
Returns: | GskRadialGradientNode |
A new |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |