4 * Copyright (C) 2008 - 2012 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(gboolean frame);
21 /* additional setup */
22 void image_attach_window(ImageWindow *imd, GtkWidget *window,
23 const gchar *title, const gchar *title_right, gboolean 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 *, GdkEventButton *event, gpointer),
30 void image_set_drag_func(ImageWindow *imd,
31 void (*func)(ImageWindow *, GdkEventButton *event, gdouble dx, gdouble dy, gpointer),
33 void image_set_scroll_func(ImageWindow *imd,
34 void (*func)(ImageWindow *, GdkEventScroll *event, gpointer),
36 void image_set_focus_in_func(ImageWindow *imd,
37 void (*func)(ImageWindow *, gpointer),
39 void image_set_scroll_notify_func(ImageWindow *imd,
40 void (*func)(ImageWindow *imd, gint x, gint y, gint width, gint height, gpointer data),
42 void image_set_complete_func(ImageWindow *imd,
43 void (*func)(ImageWindow *imd, gint preload, gpointer data),
45 void image_set_state_func(ImageWindow *imd,
46 void (*func)(ImageWindow *imd, ImageState state, gpointer data),
49 void image_select(ImageWindow *imd, gboolean select);
50 void image_set_selectable(ImageWindow *imd, gboolean selectable);
52 void image_grab_focus(ImageWindow *imd);
54 const gchar *image_get_path(ImageWindow *imd);
55 const gchar *image_get_name(ImageWindow *imd);
56 FileData *image_get_fd(ImageWindow *imd);
58 /* merely changes path string, does not change the image! */
59 void image_set_fd(ImageWindow *imd, FileData *fd);
61 /* load a new image */
62 void image_change_fd(ImageWindow *imd, FileData *fd, gdouble zoom);
63 void image_change_pixbuf(ImageWindow *imd, GdkPixbuf *pixbuf, gdouble zoom, gboolean lazy);
64 void image_change_from_collection(ImageWindow *imd, CollectionData *cd, CollectInfo *info, gdouble zoom);
65 CollectionData *image_get_collection(ImageWindow *imd, CollectInfo **info);
66 void image_copy_from_image(ImageWindow *imd, ImageWindow *source);
67 void image_move_from_image(ImageWindow *imd, ImageWindow *source);
69 gboolean image_get_image_size(ImageWindow *imd, gint *width, gint *height);
70 GdkPixbuf *image_get_pixbuf(ImageWindow *imd);
73 void image_area_changed(ImageWindow *imd, gint x, gint y, gint width, gint height);
74 void image_reload(ImageWindow *imd);
75 void image_scroll(ImageWindow *imd, gint x, gint y);
76 void image_scroll_to_point(ImageWindow *imd, gint x, gint y,
77 gdouble x_align, gdouble y_align);
78 void image_get_scroll_center(ImageWindow *imd, gdouble *x, gdouble *y);
79 void image_set_scroll_center(ImageWindow *imd, gdouble x, gdouble y);
80 void image_alter_orientation(ImageWindow *imd, AlterType type);
81 void image_set_desaturate(ImageWindow *imd, gboolean desaturate);
82 gboolean image_get_desaturate(ImageWindow *imd);
85 void image_zoom_adjust(ImageWindow *imd, gdouble increment);
86 void image_zoom_adjust_at_point(ImageWindow *imd, gdouble increment, gint x, gint y);
87 void image_zoom_set_limits(ImageWindow *imd, gdouble min, gdouble max);
88 void image_zoom_set(ImageWindow *imd, gdouble zoom);
89 void image_zoom_set_fill_geometry(ImageWindow *imd, gboolean vertical);
90 gdouble image_zoom_get(ImageWindow *imd);
91 gdouble image_zoom_get_real(ImageWindow *imd);
92 gchar *image_zoom_get_as_text(ImageWindow *imd);
93 gdouble image_zoom_get_default(ImageWindow *imd);
96 gint image_stereo_get(ImageWindow *imd);
97 void image_stereo_set(ImageWindow *imd, gint stereo_mode);
98 void image_stereo_swap(ImageWindow *imd);
100 StereoPixbufData image_stereo_pixbuf_get(ImageWindow *imd);
101 void image_stereo_pixbuf_set(ImageWindow *imd, StereoPixbufData stereo_mode);
103 /* read ahead, pass NULL to cancel */
104 void image_prebuffer_set(ImageWindow *imd, FileData *fd);
107 void image_auto_refresh_enable(ImageWindow *imd, gboolean enable);
109 /* allow top window to be resized ? */
110 void image_top_window_set_sync(ImageWindow *imd, gboolean allow_sync);
112 /* background of image */
113 void image_background_set_color(ImageWindow *imd, GdkColor *color);
114 void image_background_set_color_from_options(ImageWindow *imd, gboolean fullscreen);
117 void image_color_profile_set(ImageWindow *imd,
120 gboolean image_color_profile_get(ImageWindow *imd,
122 gboolean *use_image);
123 void image_color_profile_set_use(ImageWindow *imd, gboolean enable);
124 gboolean image_color_profile_get_use(ImageWindow *imd);
125 gboolean image_color_profile_get_status(ImageWindow *imd, gchar **image_profile, gchar **screen_profile);
127 /* set delayed page flipping */
128 void image_set_delay_flip(ImageWindow *imd, gint delay);
131 void image_to_root_window(ImageWindow *imd, gboolean scaled);
135 void image_set_image_as_tiles(ImageWindow *imd, gint width, gint height,
136 gint tile_width, gint tile_height, gint cache_size,
137 ImageTileRequestFunc func_tile_request,
138 ImageTileDisposeFunc func_tile_dispose,
142 /* reset default options */
143 void image_options_sync(void);
147 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */