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/gtksnapshotprivate.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/gtksnapshotprivate.h')
-rw-r--r-- | gtk/gtksnapshotprivate.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtksnapshotprivate.h b/gtk/gtksnapshotprivate.h index 91d1b66ef6..3989bc5fde 100644 --- a/gtk/gtksnapshotprivate.h +++ b/gtk/gtksnapshotprivate.h @@ -67,6 +67,10 @@ struct _GtkSnapshotState { GskShadow *shadows; GskShadow a_shadow; /* Used if n_shadows == 1 */ } shadow; + struct { + double progress; + GskRenderNode *start_node; + } cross_fade; } data; }; |