diff options
Diffstat (limited to 'image.h')
-rw-r--r-- | image.h | 38 |
1 files changed, 19 insertions, 19 deletions
@@ -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 */ |