4 * Copyright (C) 2008 The Geeqie Team
8 * This software is released under the GNU General Public License (GNU GPL).
9 * Please read the included file COPYING for more information.
10 * This software comes with no warranty of any kind, use at your own risk!
18 void image_set_frame(ImageWindow *imd, gboolean frame);
19 ImageWindow *image_new(gint frame);
21 /* additional setup */
22 void image_attach_window(ImageWindow *imd, GtkWidget *window,
23 const gchar *title, const gchar *title_right, gint show_zoom);
24 void image_set_update_func(ImageWindow *imd,
25 void (*func)(ImageWindow *imd, gpointer data),
27 void image_set_button_func(ImageWindow *imd,
28 void (*func)(ImageWindow *, gint button, guint32 time, gdouble x, gdouble y, guint state, gpointer),
30 void image_set_drag_func(ImageWindow *imd,
31 void (*func)(ImageWindow *, gint button, guint32 time, gdouble x, gdouble y, guint state, gdouble dx, gdouble dy, gpointer),
33 void image_set_scroll_func(ImageWindow *imd,
34 void (*func)(ImageWindow *, GdkScrollDirection direction, guint32 time, gdouble x, gdouble y, guint state, gpointer),
36 void image_set_scroll_notify_func(ImageWindow *imd,
37 void (*func)(ImageWindow *imd, gint x, gint y, gint width, gint height, gpointer data),
39 void image_set_complete_func(ImageWindow *imd,
40 void (*func)(ImageWindow *imd, gint preload, gpointer data),
42 void image_set_state_func(ImageWindow *imd,
43 void (*func)(ImageWindow *imd, ImageState state, gpointer data),
46 void image_select(ImageWindow *imd, gboolean select);
47 void image_set_selectable(ImageWindow *imd, gboolean selectable);
50 const gchar *image_get_path(ImageWindow *imd);
51 const gchar *image_get_name(ImageWindow *imd);
52 FileData *image_get_fd(ImageWindow *imd);
54 /* merely changes path string, does not change the image! */
55 void image_set_fd(ImageWindow *imd, FileData *fd);
57 /* load a new image */
58 void image_change_fd(ImageWindow *imd, FileData *fd, gdouble zoom);
59 void image_change_pixbuf(ImageWindow *imd, GdkPixbuf *pixbuf, gdouble zoom);
60 void image_change_from_collection(ImageWindow *imd, CollectionData *cd, CollectInfo *info, gdouble zoom);
61 CollectionData *image_get_collection(ImageWindow *imd, CollectInfo **info);
62 void image_change_from_image(ImageWindow *imd, ImageWindow *source);
64 gint image_get_image_size(ImageWindow *imd, gint *width, gint *height);
65 GdkPixbuf *image_get_pixbuf(ImageWindow *imd);
68 void image_area_changed(ImageWindow *imd, gint x, gint y, gint width, gint height);
69 void image_reload(ImageWindow *imd);
70 void image_scroll(ImageWindow *imd, gint x, gint y);
71 void image_scroll_to_point(ImageWindow *imd, gint x, gint y,
72 gdouble x_align, gdouble y_align);
73 void image_get_scroll_center(ImageWindow *imd, gdouble *x, gdouble *y);
74 void image_set_scroll_center(ImageWindow *imd, gdouble x, gdouble y);
75 void image_alter(ImageWindow *imd, AlterType type);
78 void image_zoom_adjust(ImageWindow *imd, gdouble increment);
79 void image_zoom_adjust_at_point(ImageWindow *imd, gdouble increment, gint x, gint y);
80 void image_zoom_set_limits(ImageWindow *imd, gdouble min, gdouble max);
81 void image_zoom_set(ImageWindow *imd, gdouble zoom);
82 void image_zoom_set_fill_geometry(ImageWindow *imd, gint vertical);
83 gdouble image_zoom_get(ImageWindow *imd);
84 gdouble image_zoom_get_real(ImageWindow *imd);
85 gchar *image_zoom_get_as_text(ImageWindow *imd);
86 gdouble image_zoom_get_default(ImageWindow *imd, gint mode);
88 /* read ahead, pass NULL to cancel */
89 void image_prebuffer_set(ImageWindow *imd, FileData *fd);
91 /* auto refresh, interval is 1/1000 sec, 0 uses default, -1 disables */
92 void image_auto_refresh(ImageWindow *imd, gint interval);
94 /* allow top window to be resized ? */
95 void image_top_window_set_sync(ImageWindow *imd, gint allow_sync);
97 /* background of image */
98 void image_background_set_color(ImageWindow *imd, GdkColor *color);
101 void image_color_profile_set(ImageWindow *imd,
102 gint input_type, gint screen_type,
104 gint image_color_profile_get(ImageWindow *imd,
105 gint *input_type, gint *screen_type,
107 void image_color_profile_set_use(ImageWindow *imd, gint enable);
108 gint image_color_profile_get_use(ImageWindow *imd);
109 gint image_color_profile_get_from_image(ImageWindow *imd);
111 /* set delayed page flipping */
112 void image_set_delay_flip(ImageWindow *imd, gint delay);
115 void image_to_root_window(ImageWindow *imd, gint scaled);
119 void image_set_image_as_tiles(ImageWindow *imd, gint width, gint height,
120 gint tile_width, gint tile_height, gint cache_size,
121 ImageTileRequestFunc func_tile_request,
122 ImageTileDisposeFunc func_tile_dispose,
126 /* reset default options */
127 void image_options_sync(void);