aboutsummaryrefslogtreecommitdiff
path: root/fastiv-io.h
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-26 20:54:08 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-26 20:54:41 +0100
commit18e96d8c9dd6b0346514121facf8137f13ccd6dc (patch)
tree96db29d63a69be5cab71c907822a6e4899d0c59b /fastiv-io.h
parentbd7f2f8c987772704a5889790b2dc06fa087ee62 (diff)
downloadfiv-18e96d8c9dd6b0346514121facf8137f13ccd6dc.tar.gz
fiv-18e96d8c9dd6b0346514121facf8137f13ccd6dc.tar.xz
fiv-18e96d8c9dd6b0346514121facf8137f13ccd6dc.zip
Allow frame iteration in both directions
Diffstat (limited to 'fastiv-io.h')
-rw-r--r--fastiv-io.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fastiv-io.h b/fastiv-io.h
index 7bce925..20fa4f6 100644
--- a/fastiv-io.h
+++ b/fastiv-io.h
@@ -37,6 +37,10 @@ extern cairo_user_data_key_t fastiv_io_key_icc;
/// The next frame in a sequence, as a surface, in a chain, pre-composited.
/// There is no wrap-around.
extern cairo_user_data_key_t fastiv_io_key_frame_next;
+/// The previous frame in a sequence, as a surface, in a chain, pre-composited.
+/// This is a weak pointer that wraps around, and needn't be present
+/// for static images.
+extern cairo_user_data_key_t fastiv_io_key_frame_previous;
/// Frame duration in milliseconds as an intptr_t.
extern cairo_user_data_key_t fastiv_io_key_frame_duration;
/// How many times to repeat the animation, or zero for +inf, as a uintptr_t.