summaryrefslogtreecommitdiff
path: root/gsk/gskrendernode.h
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-03-04 17:35:17 +0100
committerTimm Bäder <mail@baedert.org>2018-03-04 19:12:04 +0100
commit2d50d9ebe62ccea9824f258b288e9f10c73a3bd7 (patch)
tree196d023c1a9e1efec38bbdec9cd94af2b516cbc7 /gsk/gskrendernode.h
parentee8132a439905f9a0c2cce68e7d380afb4a6c995 (diff)
downloadgtk+-2d50d9ebe62ccea9824f258b288e9f10c73a3bd7.tar.gz
rendernodes: Add gsk_text_node_new_with_bounds
An alternative GskTextNode constructor that does no text measuring. That way, we can measure the text before and check if the node will be outside of the current clip anyway.
Diffstat (limited to 'gsk/gskrendernode.h')
-rw-r--r--gsk/gskrendernode.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gsk/gskrendernode.h b/gsk/gskrendernode.h
index 766e4f8091..6277bf74ce 100644
--- a/gsk/gskrendernode.h
+++ b/gsk/gskrendernode.h
@@ -288,6 +288,13 @@ 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);