gsk: Make gsk_text_node_new_with_bounds private
authorTimm Bäder <mail@baedert.org>
Sat, 21 Apr 2018 09:20:15 +0000 (11:20 +0200)
committerTimm Bäder <mail@baedert.org>
Sat, 21 Apr 2018 09:20:15 +0000 (11:20 +0200)
We pulled out the bounds calculation for performance reasons, but the
caller can't know how to properly compute them. Inside gtk+, we can do
that but it's not good enough for public API.

gsk/gskrendernode.h
gsk/gskrendernodeprivate.h
gtk/gskpango.c

index d4c849208cf38374093e63da4258c09d7b9c558b..24e49b6385aaf5eb87010b976d4bff37462ffeae 100644 (file)
@@ -298,13 +298,6 @@ GskRenderNode *         gsk_text_node_new                       (PangoFont
                                                                  double                    x,
                                                                  double                    y);
 GDK_AVAILABLE_IN_ALL
-GskRenderNode *         gsk_text_node_new_with_bounds           (PangoFont                *font,
-                                                                 PangoGlyphString         *glyphs,
-                                                                 const GdkRGBA            *color,
-                                                                 double                    x,
-                                                                 double                    y,
-                                                                 const graphene_rect_t    *bounds);
-GDK_AVAILABLE_IN_ALL
 const PangoFont *       gsk_text_node_peek_font                 (GskRenderNode            *node);
 GDK_AVAILABLE_IN_ALL
 guint                   gsk_text_node_get_num_glyphs            (GskRenderNode            *node);
index 5cae3ec56216c7c1c61647f825b29bf1c6555cff..89a7f21363e24e2e66b6cfda3f079bdf7c5b9037 100644 (file)
@@ -61,6 +61,14 @@ GskRenderNode * gsk_render_node_deserialize_node (GskRenderNodeType          typ
 GskRenderNode * gsk_cairo_node_new_for_surface   (const graphene_rect_t    *bounds,
                                                   cairo_surface_t          *surface);
 
+GskRenderNode * gsk_text_node_new_with_bounds     (PangoFont                *font,
+                                                   PangoGlyphString         *glyphs,
+                                                   const GdkRGBA            *color,
+                                                   double                    x,
+                                                   double                    y,
+                                                   const graphene_rect_t    *bounds);
+
+
 G_END_DECLS
 
 #endif /* __GSK_RENDER_NODE_PRIVATE_H__ */
index 1a25920ca20570d3da6e2a6ba667e29ef3fc9d7d..a486b81add47078572d6aa8f5337cf970995d8a2 100644 (file)
@@ -20,6 +20,7 @@
 #include "config.h"
 
 #include "gsk/gsk.h"
+#include "gsk/gskrendernodeprivate.h"
 #include "gskpango.h"
 #include "gtksnapshotprivate.h"