summaryrefslogtreecommitdiff
path: root/gsk/gskrendernode.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-12-15 05:42:31 +0100
committerBenjamin Otte <otte@redhat.com>2016-12-20 18:01:11 +0100
commite8cd71228ad47b241ac43d0b9754d57615f28fff (patch)
tree9103a3a6aff61b1f09de3868bd59aa1b5325aef1 /gsk/gskrendernode.h
parentcf520b7a1f932100a0b87e85a4501d56e30762cc (diff)
downloadgtk+-e8cd71228ad47b241ac43d0b9754d57615f28fff.tar.gz
gsk: Implement linear gradient render nodes
Diffstat (limited to 'gsk/gskrendernode.h')
-rw-r--r--gsk/gskrendernode.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gsk/gskrendernode.h b/gsk/gskrendernode.h
index 5d92c73729..7562fb92ef 100644
--- a/gsk/gskrendernode.h
+++ b/gsk/gskrendernode.h
@@ -33,6 +33,13 @@ G_BEGIN_DECLS
#define GSK_IS_RENDER_NODE(obj) ((obj) != NULL)
typedef struct _GskRenderNode GskRenderNode;
+typedef struct _GskColorStop GskColorStop;
+
+struct _GskColorStop
+{
+ double offset;
+ GdkRGBA color;
+};
GDK_AVAILABLE_IN_3_90
GType gsk_render_node_get_type (void) G_GNUC_CONST;
@@ -54,6 +61,19 @@ GskRenderNode * gsk_texture_node_new (GskTexture
const graphene_rect_t *bounds);
GDK_AVAILABLE_IN_3_90
+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);
+GDK_AVAILABLE_IN_3_90
+GskRenderNode * gsk_repeating_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);
+
+GDK_AVAILABLE_IN_3_90
GskRenderNode * gsk_cairo_node_new (const graphene_rect_t *bounds);
GDK_AVAILABLE_IN_3_90
cairo_t * gsk_cairo_node_get_draw_context (GskRenderNode *node,