Method
GtkSnapshotappend_linear_gradient
Declaration [src]
void
gtk_snapshot_append_linear_gradient (
GtkSnapshot* snapshot,
const graphene_rect_t* bounds,
const graphene_point_t* start_point,
const graphene_point_t* end_point,
const GskColorStop* stops,
gsize n_stops
)
Parameters
bounds-
Type:
graphene_rect_tThe rectangle to render the linear gradient into.
The data is owned by the caller of the function. start_point-
Type:
graphene_point_tThe point at which the linear gradient will begin.
The data is owned by the caller of the function. end_point-
Type:
graphene_point_tThe point at which the linear gradient will finish.
The data is owned by the caller of the function. stops-
Type: An array of
GskColorStopThe color stops defining the gradient.
The length of the array is specified in the n_stopsargument.The data is owned by the caller of the function. n_stops-
Type:
gsizeThe number of elements in
stops.