summaryrefslogtreecommitdiffstats
path: root/image.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-09-11 21:01:24 +0200
committerBert <ber.t@gmx.com>2011-09-11 21:01:24 +0200
commitb2a2a62b7b8a066467d7e8ef520fef7c17e3c5ca (patch)
treec13904baa041941854a7550f883ba38e14205f1e /image.h
parente2d4b9c7915a2a356cae04d33f1713ae224fbe7e (diff)
downloadnsxiv-b2a2a62b7b8a066467d7e8ef520fef7c17e3c5ca.tar.zst
Added own bool type
Diffstat (limited to 'image.h')
-rw-r--r--image.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/image.h b/image.h
index ca699c8..316729a 100644
--- a/image.h
+++ b/image.h
@@ -34,7 +34,7 @@ typedef struct {
int cap;
int cnt;
int sel;
- unsigned char animate;
+ bool animate;
} multi_img_t;
typedef struct {
@@ -44,13 +44,13 @@ typedef struct {
float zoom;
scalemode_t scalemode;
- unsigned char re;
- unsigned char checkpan;
- unsigned char dirty;
- unsigned char aa;
- unsigned char alpha;
+ bool re;
+ bool checkpan;
+ bool dirty;
+ bool aa;
+ bool alpha;
- unsigned char slideshow;
+ bool slideshow;
int ss_delay; /* in ms */
int x;
@@ -61,28 +61,28 @@ typedef struct {
void img_init(img_t*, win_t*);
-int img_load(img_t*, const fileinfo_t*);
-void img_close(img_t*, int);
+bool img_load(img_t*, const fileinfo_t*);
+void img_close(img_t*, bool);
void img_render(img_t*, win_t*);
-int img_fit_win(img_t*, win_t*);
-int img_center(img_t*, win_t*);
+bool img_fit_win(img_t*, win_t*);
+bool img_center(img_t*, win_t*);
-int img_zoom(img_t*, win_t*, float);
-int img_zoom_in(img_t*, win_t*);
-int img_zoom_out(img_t*, win_t*);
+bool img_zoom(img_t*, win_t*, float);
+bool img_zoom_in(img_t*, win_t*);
+bool img_zoom_out(img_t*, win_t*);
-int img_move(img_t*, win_t*, int, int);
-int img_pan(img_t*, win_t*, direction_t, int);
-int img_pan_edge(img_t*, win_t*, direction_t);
+bool img_move(img_t*, win_t*, int, int);
+bool img_pan(img_t*, win_t*, direction_t, bool);
+bool img_pan_edge(img_t*, win_t*, direction_t);
void img_rotate_left(img_t*, win_t*);
void img_rotate_right(img_t*, win_t*);
void img_toggle_antialias(img_t*);
-int img_frame_navigate(img_t*, int);
-int img_frame_animate(img_t*, int);
+bool img_frame_navigate(img_t*, int);
+bool img_frame_animate(img_t*, bool);
#endif /* IMAGE_H */