diff options
author | nirav <nirav@teisuu.com> | 2018-09-02 17:16:52 +0530 |
---|---|---|
committer | Dandelion <nirav@teisuu.com> | 2018-09-02 17:19:23 +0530 |
commit | 8472e02a212af0be07b19127db313e8e7523711a (patch) | |
tree | 53e7baa4b7649f81442046d65152d74e805fea75 /image.h | |
parent | 4283d4074c45d27704b00d9ea80eae7847d66375 (diff) | |
download | im-8472e02a212af0be07b19127db313e8e7523711a.tar.gz im-8472e02a212af0be07b19127db313e8e7523711a.zip |
Refactoring
Diffstat (limited to 'image.h')
-rw-r--r-- | image.h | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -0,0 +1,26 @@ +#ifndef __IMAGE_H +#define __IMAGE_H + +#include <gtk-3.0/gtk/gtk.h> + +#define ZOOM_FACTOR 0.1 + +enum scale_mode { + fit = 0, + zoomed = 1, +} curr_scale_mod; + +GtkWidget *image; +GdkPixbuf *pixbuf; +GdkPixbuf *curr_pixbuf; +int pixbuf_width, pixbuf_height; +double aspect_ratio; +double curr_zoom; + +GtkWidget* new_image(); +int load_image(char *file_name, int win_width, int win_height); +void fit_image(int win_width, int win_height); +void zoom(int type); +void print_supported_formats(); + +#endif |