aboutsummaryrefslogtreecommitdiff
path: root/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'image.h')
-rw-r--r--image.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/image.h b/image.h
new file mode 100644
index 0000000..d82fd74
--- /dev/null
+++ b/image.h
@@ -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