Constructor
GskLinearGradientNodenew
Declaration [src]
GskRenderNode*
gsk_linear_gradient_node_new (
  const graphene_rect_t* bounds,
  const graphene_point_t* start,
  const graphene_point_t* end,
  const GskColorStop* color_stops,
  gsize n_color_stops
)
Description [src]
Creates a GskRenderNode that will create a linear gradient from the given
points and color stops, and render that into the area given by bounds.
Parameters
| bounds | graphene_rect_t | 
| The rectangle to render the linear gradient into. | |
| The data is owned by the caller of the function. | |
| start | graphene_point_t | 
| The point at which the linear gradient will begin. | |
| The data is owned by the caller of the function. | |
| end | graphene_point_t | 
| The point at which the linear gradient will finish. | |
| The data is owned by the caller of the function. | |
| color_stops | An array of GskColorStop | 
| A pointer to an array of
   | |
| 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 | gsize | 
| The number of elements in  | 
Return value
| Returns: | GskLinearGradientNode | 
| A new  | |
| The caller of the function takes ownership of the data, and is responsible for freeing it. |