From 0d119f81c8558d15567bb2784a2b0a6b01d237f8 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 21 Feb 2019 03:07:14 +0100 Subject: snapshot: Refactor text rendering The code didn't change, it was just shuffled around to make the with_bounds() versions of the text rendering unnecessary and instead pass through the generic append_node() path. --- gtk/gtksnapshotprivate.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gtk/gtksnapshotprivate.h') diff --git a/gtk/gtksnapshotprivate.h b/gtk/gtksnapshotprivate.h index e19d0b2a20..7750cf5dbf 100644 --- a/gtk/gtksnapshotprivate.h +++ b/gtk/gtksnapshotprivate.h @@ -108,6 +108,12 @@ GtkSnapshot * gtk_snapshot_new_with_parent (GtkSnapshot void gtk_snapshot_push_transform_with_category (GtkSnapshot *snapshot, const graphene_matrix_t*transform, GskMatrixCategory category); +void gtk_snapshot_append_text (GtkSnapshot *snapshot, + PangoFont *font, + PangoGlyphString *glyphs, + const GdkRGBA *color, + float x, + float y); G_END_DECLS #endif /* __GTK_SNAPSHOT_PRIVATE_H__ */ -- cgit v1.2.1