summaryrefslogtreecommitdiff
path: root/gsk/gskrendernodeprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-10-20 08:06:20 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-10-20 13:54:01 +0200
commiteee89587c3afe0c8c240e2bf26cad4719c6bf39a (patch)
treec4078e79d3405d7bfbf6ffdfc28a4effef61e587 /gsk/gskrendernodeprivate.h
parent0e1785ed4861164d08afa660225100474f8247c5 (diff)
downloadgtk+-eee89587c3afe0c8c240e2bf26cad4719c6bf39a.tar.gz
Make render node getter public
Keeping these private does not really buy us anything.
Diffstat (limited to 'gsk/gskrendernodeprivate.h')
-rw-r--r--gsk/gskrendernodeprivate.h87
1 files changed, 13 insertions, 74 deletions
diff --git a/gsk/gskrendernodeprivate.h b/gsk/gskrendernodeprivate.h
index c9d7a87e9b..8fafdb37f3 100644
--- a/gsk/gskrendernodeprivate.h
+++ b/gsk/gskrendernodeprivate.h
@@ -31,83 +31,22 @@ struct _GskRenderNodeClass
GskRenderNodeType node_type;
gsize struct_size;
const char *type_name;
- void (* finalize) (GskRenderNode *node);
- void (* draw) (GskRenderNode *node,
- cairo_t *cr);
- GVariant * (* serialize) (GskRenderNode *node);
- GskRenderNode * (* deserialize) (GVariant *variant,
- GError **error);
-};
-
-GskRenderNode *gsk_render_node_new (const GskRenderNodeClass *node_class, gsize extra_size);
-
-GVariant * gsk_render_node_serialize_node (GskRenderNode *node);
-GskRenderNode * gsk_render_node_deserialize_node (GskRenderNodeType type, GVariant *variant, GError **error);
-
-double gsk_opacity_node_get_opacity (GskRenderNode *node);
-
-GskRenderNode * gsk_color_matrix_node_get_child (GskRenderNode *node);
-const graphene_matrix_t * gsk_color_matrix_node_peek_color_matrix (GskRenderNode *node);
-const graphene_vec4_t * gsk_color_matrix_node_peek_color_offset (GskRenderNode *node);
-
-GskRenderNode * gsk_repeat_node_get_child (GskRenderNode *node);
-const graphene_rect_t * gsk_repeat_node_peek_child_bounds (GskRenderNode *node);
-
-const graphene_point_t * gsk_linear_gradient_node_peek_start (GskRenderNode *node);
-const graphene_point_t * gsk_linear_gradient_node_peek_end (GskRenderNode *node);
-const gsize gsk_linear_gradient_node_get_n_color_stops (GskRenderNode *node);
-const GskColorStop * gsk_linear_gradient_node_peek_color_stops (GskRenderNode *node);
-
-const GskRoundedRect * gsk_border_node_peek_outline (GskRenderNode *node);
-const float * gsk_border_node_peek_widths (GskRenderNode *node);
-const GdkRGBA * gsk_border_node_peek_colors (GskRenderNode *node);
-
-const GskRoundedRect * gsk_inset_shadow_node_peek_outline (GskRenderNode *node);
-const GdkRGBA * gsk_inset_shadow_node_peek_color (GskRenderNode *node);
-float gsk_inset_shadow_node_get_dx (GskRenderNode *node);
-float gsk_inset_shadow_node_get_dy (GskRenderNode *node);
-float gsk_inset_shadow_node_get_spread (GskRenderNode *node);
-float gsk_inset_shadow_node_get_blur_radius (GskRenderNode *node);
-
-const GskRoundedRect * gsk_outset_shadow_node_peek_outline (GskRenderNode *node);
-const GdkRGBA * gsk_outset_shadow_node_peek_color (GskRenderNode *node);
-float gsk_outset_shadow_node_get_dx (GskRenderNode *node);
-float gsk_outset_shadow_node_get_dy (GskRenderNode *node);
-float gsk_outset_shadow_node_get_spread (GskRenderNode *node);
-float gsk_outset_shadow_node_get_blur_radius (GskRenderNode *node);
-cairo_surface_t *gsk_cairo_node_get_surface (GskRenderNode *node);
-
-GskTexture *gsk_texture_node_get_texture (GskRenderNode *node);
-
-PangoFont *gsk_text_node_get_font (GskRenderNode *node);
-PangoGlyphString *gsk_text_node_get_glyphs (GskRenderNode *node);
-const GdkRGBA *gsk_text_node_get_color (GskRenderNode *node);
-float gsk_text_node_get_x (GskRenderNode *node);
-float gsk_text_node_get_y (GskRenderNode *node);
-
-const GdkRGBA *gsk_color_node_peek_color (GskRenderNode *node);
-
-const graphene_rect_t * gsk_clip_node_peek_clip (GskRenderNode *node);
-
-const GskRoundedRect * gsk_rounded_clip_node_peek_clip (GskRenderNode *node);
-
-GskRenderNode * gsk_shadow_node_get_child (GskRenderNode *node);
-const GskShadow * gsk_shadow_node_peek_shadow (GskRenderNode *node, gsize i);
-gsize gsk_shadow_node_get_n_shadows (GskRenderNode *node);
-
-void gsk_transform_node_get_transform (GskRenderNode *node, graphene_matrix_t *transform);
-
-GskRenderNode * gsk_blend_node_get_bottom_child (GskRenderNode *node);
-GskRenderNode * gsk_blend_node_get_top_child (GskRenderNode *node);
-GskBlendMode gsk_blend_node_get_blend_mode (GskRenderNode *node);
+ void (* finalize) (GskRenderNode *node);
+ void (* draw) (GskRenderNode *node,
+ cairo_t *cr);
+ GVariant * (* serialize) (GskRenderNode *node);
+ GskRenderNode * (* deserialize) (GVariant *variant,
+ GError **error);
+};
-GskRenderNode * gsk_cross_fade_node_get_start_child (GskRenderNode *node);
-GskRenderNode * gsk_cross_fade_node_get_end_child (GskRenderNode *node);
-double gsk_cross_fade_node_get_progress (GskRenderNode *node);
+GskRenderNode * gsk_render_node_new (const GskRenderNodeClass *node_class,
+ gsize extra_size);
-GskRenderNode * gsk_blur_node_get_child (GskRenderNode *node);
-double gsk_blur_node_get_radius (GskRenderNode *node);
+GVariant * gsk_render_node_serialize_node (GskRenderNode *node);
+GskRenderNode * gsk_render_node_deserialize_node (GskRenderNodeType type,
+ GVariant *variant,
+ GError **error);
G_END_DECLS