diff options
author | Benjamin Otte <otte@redhat.com> | 2018-03-26 04:23:11 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2018-03-26 18:16:36 +0200 |
commit | 9b83116fcb05198e0fe5b41e57c0cd34eb41b167 (patch) | |
tree | d694b10ee7243b708eff66bf4f046c491efc1dc8 /gtk/gtksnapshot.h | |
parent | e6d24f4c159320d59016598ed305677d64397c03 (diff) | |
download | gtk+-9b83116fcb05198e0fe5b41e57c0cd34eb41b167.tar.gz |
snapshot: Export gtk_snapshot_append_layout()
This is the equivalent snapshot function to pango_cairo_show_layout().
Not to be confused with gtk_snapshot_render_layout(), which is the
equivalent to gtk_render_layout().
Diffstat (limited to 'gtk/gtksnapshot.h')
-rw-r--r-- | gtk/gtksnapshot.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtksnapshot.h b/gtk/gtksnapshot.h index c8003956fe..db9d4e6d78 100644 --- a/gtk/gtksnapshot.h +++ b/gtk/gtksnapshot.h @@ -155,6 +155,14 @@ void gtk_snapshot_append_color (GtkSnapshot const graphene_rect_t *bounds, const char *name, ...) G_GNUC_PRINTF (4, 5); +/* next function implemented in gskpango.c */ +GDK_AVAILABLE_IN_ALL +void gtk_snapshot_append_layout (GtkSnapshot *snapshot, + PangoLayout *layout, + const GdkRGBA *color, + const char *name, + ...) G_GNUC_PRINTF (4, 5); + GDK_AVAILABLE_IN_ALL gboolean gtk_snapshot_clips_rect (GtkSnapshot *snapshot, |