diff options
author | Benjamin Otte <otte@redhat.com> | 2019-02-21 03:07:14 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-02-21 19:47:28 +0100 |
commit | 0d119f81c8558d15567bb2784a2b0a6b01d237f8 (patch) | |
tree | 2df4b651f94983d12272f0f24a547080c4cb66c8 /gtk/gtksnapshotprivate.h | |
parent | e1570e9ebc1e8b7600514958355550cd804abca6 (diff) | |
download | gtk+-0d119f81c8558d15567bb2784a2b0a6b01d237f8.tar.gz |
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.
Diffstat (limited to 'gtk/gtksnapshotprivate.h')
-rw-r--r-- | gtk/gtksnapshotprivate.h | 6 |
1 files changed, 6 insertions, 0 deletions
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__ */ |