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
)

Description [src]

Appends a linear gradient node with the given stops to snapshot.

Parameters

bounds graphene_rect_t
 

The rectangle to render the linear gradient into.

 The data is owned by the caller of the function.
start_point graphene_point_t
 

The point at which the linear gradient will begin.

 The data is owned by the caller of the function.
end_point graphene_point_t
 

The point at which the linear gradient will finish.

 The data is owned by the caller of the function.
stops An array of GskColorStop
 

The color stops defining the gradient.

 The length of the array is specified in the n_stops argument.
 The data is owned by the caller of the function.
n_stops gsize
 

The number of elements in stops.