forked from AuroraMiddleware/gtk
gsk: Make gsk_text_node_new_with_bounds private
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.
This commit is contained in:
parent
d74be1fcf0
commit
4f3c7cd48a
@ -298,13 +298,6 @@ GskRenderNode * gsk_text_node_new (PangoFont
|
|||||||
double x,
|
double x,
|
||||||
double y);
|
double y);
|
||||||
GDK_AVAILABLE_IN_ALL
|
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);
|
const PangoFont * gsk_text_node_peek_font (GskRenderNode *node);
|
||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
guint gsk_text_node_get_num_glyphs (GskRenderNode *node);
|
guint gsk_text_node_get_num_glyphs (GskRenderNode *node);
|
||||||
|
@ -61,6 +61,14 @@ GskRenderNode * gsk_render_node_deserialize_node (GskRenderNodeType typ
|
|||||||
GskRenderNode * gsk_cairo_node_new_for_surface (const graphene_rect_t *bounds,
|
GskRenderNode * gsk_cairo_node_new_for_surface (const graphene_rect_t *bounds,
|
||||||
cairo_surface_t *surface);
|
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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GSK_RENDER_NODE_PRIVATE_H__ */
|
#endif /* __GSK_RENDER_NODE_PRIVATE_H__ */
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "gsk/gsk.h"
|
#include "gsk/gsk.h"
|
||||||
|
#include "gsk/gskrendernodeprivate.h"
|
||||||
#include "gskpango.h"
|
#include "gskpango.h"
|
||||||
#include "gtksnapshotprivate.h"
|
#include "gtksnapshotprivate.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user