summaryrefslogtreecommitdiffstats
path: root/image.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-28 13:34:16 +0100
committerBert <ber.t@gmx.com>2011-01-28 13:34:16 +0100
commit8123d63c5b76909ce70f09614ac0e45760a69d71 (patch)
treed45e42d2b1879b88b94a03335998d6f5d9174449 /image.h
parent17e2a795bbcdbf9bc8eb07e2aaca0a494871b9e8 (diff)
downloadnsxiv-8123d63c5b76909ce70f09614ac0e45760a69d71.tar.zst
Added plenty lots of options
Diffstat (limited to 'image.h')
-rw-r--r--image.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/image.h b/image.h
index 2284dd5..c3f9767 100644
--- a/image.h
+++ b/image.h
@@ -21,11 +21,11 @@
#include "window.h"
-enum scalemode {
+typedef enum scalemode_e {
SCALE_DOWN = 0,
SCALE_FIT,
SCALE_ZOOM
-};
+} scalemode_t;
typedef enum pandir_e {
PAN_LEFT = 0,
@@ -52,6 +52,9 @@ void img_free(img_t*);
int img_load(img_t*, const char*);
void img_render(img_t*, win_t*);
+int img_fit(img_t*, win_t*);
+void img_center(img_t*, win_t*);
+
int img_zoom_in(img_t*);
int img_zoom_out(img_t*);