diff options
author | Benjamin Otte <otte@redhat.com> | 2017-01-12 22:00:38 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-01-13 03:38:36 +0100 |
commit | d9b0685b495926af602990e709feaad5822d5724 (patch) | |
tree | faa60a95b5eb64d64926b7542301813bb8038ef9 /gtk/gtksnapshot.h | |
parent | 670ae58cc9c69cb295822e8e41abd9497171404e (diff) | |
download | gtk+-d9b0685b495926af602990e709feaad5822d5724.tar.gz |
Add gtk_snapshot_push_cross_fade()
... and use it.
The function is a bit awkward because it requires 2 calls to
gtk_snapshot_pop(), but once you accept that, it's very convenient to
use, as can be seen by the 2 implementations.
Diffstat (limited to 'gtk/gtksnapshot.h')
-rw-r--r-- | gtk/gtksnapshot.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtksnapshot.h b/gtk/gtksnapshot.h index 0b691c3486..7ac7a43481 100644 --- a/gtk/gtksnapshot.h +++ b/gtk/gtksnapshot.h @@ -80,6 +80,11 @@ void gtk_snapshot_push_shadow (GtkSnapshot const char *name, ...) G_GNUC_PRINTF (4, 5); GDK_AVAILABLE_IN_3_90 +void gtk_snapshot_push_cross_fade (GtkSnapshot *snapshot, + double progress, + const char *name, + ...) G_GNUC_PRINTF (3, 4); +GDK_AVAILABLE_IN_3_90 GskRenderNode * gtk_snapshot_pop (GtkSnapshot *snapshot) G_GNUC_WARN_UNUSED_RESULT; GDK_AVAILABLE_IN_3_90 void gtk_snapshot_pop_and_append (GtkSnapshot *snapshot); |