From e54d8327819e310b7b148e45c15fca197be845c7 Mon Sep 17 00:00:00 2001 From: nirav Date: Sun, 9 Sep 2018 12:13:13 +0530 Subject: Moved source files to src dir, updated makefile --- src/image.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/image.h (limited to 'src/image.h') diff --git a/src/image.h b/src/image.h new file mode 100644 index 0000000..dfbd9ff --- /dev/null +++ b/src/image.h @@ -0,0 +1,25 @@ +#ifndef __IMAGE_H +#define __IMAGE_H + +#include + +#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, curr_pixbuf_width, curr_pixbuf_height; +double aspect_ratio; +double curr_zoom; + +GtkWidget *new_image(); +int load_image(char *file_name); +void fit_image(); +void zoom(int type); + +#endif -- cgit v1.2.3