aboutsummaryrefslogtreecommitdiff
path: root/fastiv-view.h
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-29 00:35:39 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-12-17 07:01:37 +0100
commit1c2a441cb56860d6bf558270b4a77d64dac2b954 (patch)
treeec0f98588ff114476ede93143e4f7e45cb59f056 /fastiv-view.h
parent0b6b3d8290d6998f0190a6e78386dcf58ab8b4dd (diff)
downloadfiv-1c2a441cb56860d6bf558270b4a77d64dac2b954.tar.gz
fiv-1c2a441cb56860d6bf558270b4a77d64dac2b954.tar.xz
fiv-1c2a441cb56860d6bf558270b4a77d64dac2b954.zip
Add a simple toolbar to the view
There is still considerable work to be done.
Diffstat (limited to 'fastiv-view.h')
-rw-r--r--fastiv-view.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/fastiv-view.h b/fastiv-view.h
index ca314f4..20ff445 100644
--- a/fastiv-view.h
+++ b/fastiv-view.h
@@ -24,3 +24,29 @@ G_DECLARE_FINAL_TYPE(FastivView, fastiv_view, FASTIV, VIEW, GtkWidget)
/// Try to open the given file, synchronously, to be displayed by the widget.
gboolean fastiv_view_open(FastivView *self, const gchar *path, GError **error);
+
+typedef enum _FastivViewCommand {
+ FASTIV_VIEW_COMMAND_ROTATE_LEFT = 1,
+ FASTIV_VIEW_COMMAND_MIRROR,
+ FASTIV_VIEW_COMMAND_ROTATE_RIGHT,
+
+ FASTIV_VIEW_COMMAND_PAGE_FIRST,
+ FASTIV_VIEW_COMMAND_PAGE_PREVIOUS,
+ FASTIV_VIEW_COMMAND_PAGE_NEXT,
+ FASTIV_VIEW_COMMAND_PAGE_LAST,
+
+ FASTIV_VIEW_COMMAND_FRAME_FIRST,
+ FASTIV_VIEW_COMMAND_FRAME_PREVIOUS,
+ FASTIV_VIEW_COMMAND_FRAME_NEXT,
+ // Going to the end frame makes no sense, wrap around if needed.
+
+ FASTIV_VIEW_COMMAND_PRINT,
+ FASTIV_VIEW_COMMAND_SAVE_PAGE,
+
+ FASTIV_VIEW_COMMAND_ZOOM_IN,
+ FASTIV_VIEW_COMMAND_ZOOM_OUT,
+ FASTIV_VIEW_COMMAND_ZOOM_1
+} FastivViewCommand;
+
+/// Execute a user action.
+void fastiv_view_command(FastivView *self, FastivViewCommand command);