Constructor
GskRepeatingRadialGradientNodenew
Declaration [src]
GskRenderNode*
gsk_repeating_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 repeating 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-
Type:
graphene_rect_tThe bounds of the node.
The data is owned by the caller of the function. center-
Type:
graphene_point_tThe center of the gradient.
The data is owned by the caller of the function. hradius-
Type:
floatThe horizontal radius.
vradius-
Type:
floatThe vertical radius.
start-
Type:
floatA percentage >= 0 that defines the start of the gradient around
center. end-
Type:
floatA percentage >= 0 that defines the end of the gradient around
center. color_stops-
Type: An array of
GskColorStopA pointer to an array of
GskColorStopdefining 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.The length of the array is specified in the n_color_stopsargument.The data is owned by the caller of the function. n_color_stops-
Type:
gsizeThe number of elements in
color_stops.
Return value
Type: GskRepeatingRadialGradientNode
A new GskRenderNode
| The caller of the function takes ownership of the data, and is responsible for freeing it. |