e620c825c441770b20eab5eb6d6af82386ac5993
[geeqie.git] / src / image.h
1 /*
2  * GQview image viewer
3  * (C)1999 John Ellis
4  *
5  * Author: John Ellis
6  *
7  */
8
9 ImageWindow *image_area_new(GtkWidget *top_window);
10 void image_area_free(ImageWindow *imd);
11
12 /* for attaching the top window for resizing */
13 void image_area_set_topwindow(ImageWindow *imd, GtkWidget *window, gchar *title, gint show_zoom);
14
15 /* attach labels to be updated */
16 void image_area_set_labels(ImageWindow *imd, GtkWidget *info, GtkWidget *zoom);
17
18 /* set the current image to a different path */
19 void image_area_set_path(ImageWindow *imd, gchar *newpath);
20
21 /* attach handler functions for mouse buttons (1-3) */
22 void image_area_set_button(ImageWindow *imd, gint button,
23         void (*func)(ImageWindow *, GdkEventButton *, gpointer), gpointer data);
24
25 /* get the current image's path, etc. */
26 gchar *image_area_get_path(ImageWindow *imd);
27 gchar *image_area_get_name(ImageWindow *imd);
28
29 /* load a new image, or NULL sets to logo */
30 void image_area_set_image(ImageWindow *imd, gchar *path, gint zoom);
31
32 /* image manipulation */
33 void image_area_scroll(ImageWindow *imd, gint x, gint y);
34 gint image_area_get_zoom(ImageWindow *imd);
35 void image_area_adjust_zoom(ImageWindow *imd, gint increment);
36 void image_area_set_zoom(ImageWindow *imd, gint zoom);
37
38 /* get the default zoom for an image */
39 gint get_default_zoom(ImageWindow *imd);
40