diff options
author | Benjamin Otte <otte@redhat.com> | 2016-11-15 06:19:16 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-11-15 17:49:19 +0100 |
commit | c0aa065ac119c3280f0e886caff88258b767bb39 (patch) | |
tree | 148ffed6a738db0045125e54b2150214ff70d4d5 /gtk/gtksnapshot.h | |
parent | 92e6b3a000835e51ff2c40fac53f0979938ec47f (diff) | |
download | gtk+-c0aa065ac119c3280f0e886caff88258b767bb39.tar.gz |
snapshot: Convert GtkImage and GtkIconHelper
Adds a bunch of new APIs to render textures with theming.
FIXME: Cannot draw shadows for textures.
Diffstat (limited to 'gtk/gtksnapshot.h')
-rw-r--r-- | gtk/gtksnapshot.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/gtksnapshot.h b/gtk/gtksnapshot.h index 74be2c134b..20315b0f97 100644 --- a/gtk/gtksnapshot.h +++ b/gtk/gtksnapshot.h @@ -73,6 +73,11 @@ GDK_AVAILABLE_IN_3_90 void gtk_snapshot_append_node (GtkSnapshot *state, GskRenderNode *node); GDK_AVAILABLE_IN_3_90 +GskRenderNode * gtk_snapshot_append (GtkSnapshot *state, + const graphene_rect_t *bounds, + const char *name, + ...) G_GNUC_PRINTF(3, 4); +GDK_AVAILABLE_IN_3_90 cairo_t * gtk_snapshot_append_cairo_node (GtkSnapshot *state, const graphene_rect_t *bounds, const char *name, @@ -117,6 +122,12 @@ void gtk_snapshot_render_insertion_cursor (GtkSnapshot PangoLayout *layout, int index, PangoDirection direction); +GDK_AVAILABLE_IN_3_90 +void gtk_snapshot_render_icon (GtkSnapshot *snapshot, + GtkStyleContext *context, + GdkPixbuf *pixbuf, + gdouble x, + gdouble y); G_END_DECLS |