diff options
author | Timm Bäder <mail@baedert.org> | 2018-04-21 11:20:15 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-04-21 11:20:15 +0200 |
commit | 4f3c7cd48af0f3180c401673c94c7427cb8ba0ea (patch) | |
tree | bd7bffd733afb1aa7bed9fbe3469ed344f6f2d31 /gsk/gskrendernodeprivate.h | |
parent | d74be1fcf059d79c40dd1be103e4bbb8955aec0a (diff) | |
download | gtk+-4f3c7cd48af0f3180c401673c94c7427cb8ba0ea.tar.gz |
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.
Diffstat (limited to 'gsk/gskrendernodeprivate.h')
-rw-r--r-- | gsk/gskrendernodeprivate.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gsk/gskrendernodeprivate.h b/gsk/gskrendernodeprivate.h index 5cae3ec562..89a7f21363 100644 --- a/gsk/gskrendernodeprivate.h +++ b/gsk/gskrendernodeprivate.h @@ -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__ */ |