7 * This software is released under the GNU General Public License (GNU GPL).
8 * Please read the included file COPYING for more information.
9 * This software comes with no warranty of any kind, use at your own risk!
17 void image_set_frame(ImageWindow *imd, gboolean frame);
18 ImageWindow *image_new(gint frame);
20 /* additional setup */
21 void image_attach_window(ImageWindow *imd, GtkWidget *window,
22 const gchar *title, const gchar *title_right, gint show_zoom);
23 void image_set_update_func(ImageWindow *imd,
24 void (*func)(ImageWindow *imd, gpointer data),
26 void image_set_button_func(ImageWindow *imd,
27 void (*func)(ImageWindow *, gint button, guint32 time, gdouble x, gdouble y, guint state, gpointer),
29 void image_set_drag_func(ImageWindow *imd,
30 void (*func)(ImageWindow *, gint button, guint32 time, gdouble x, gdouble y, guint state, gdouble dx, gdouble dy, gpointer),
32 void image_set_scroll_func(ImageWindow *imd,
33 void (*func)(ImageWindow *, GdkScrollDirection direction, guint32 time, gdouble x, gdouble y, guint state, gpointer),
35 void image_set_scroll_notify_func(ImageWindow *imd,
36 void (*func)(ImageWindow *imd, gint x, gint y, gint width, gint height, gpointer data),
38 void image_set_complete_func(ImageWindow *imd,
39 void (*func)(ImageWindow *imd, gint preload, gpointer data),
41 void image_set_state_func(ImageWindow *imd,
42 void (*func)(ImageWindow *imd, ImageState state, gpointer data),
45 void image_select(ImageWindow *imd, gboolean select);
46 void image_set_selectable(ImageWindow *imd, gboolean selectable);
49 const gchar *image_get_path(ImageWindow *imd);
50 const gchar *image_get_name(ImageWindow *imd);
51 FileData *image_get_fd(ImageWindow *imd);
53 /* merely changes path string, does not change the image! */
54 void image_set_fd(ImageWindow *imd, FileData *fd);
56 /* load a new image */
57 void image_change_fd(ImageWindow *imd, FileData *fd, gdouble zoom);
58 void image_change_pixbuf(ImageWindow *imd, GdkPixbuf *pixbuf, gdouble zoom);
59 void image_change_from_collection(ImageWindow *imd, CollectionData *cd, CollectInfo *info, gdouble zoom);
60 CollectionData *image_get_collection(ImageWindow *imd, CollectInfo **info);
61 void image_change_from_image(ImageWindow *imd, ImageWindow *source);
63 GdkPixbuf *image_get_pixbuf(ImageWindow *imd);
66 void image_area_changed(ImageWindow *imd, gint x, gint y, gint width, gint height);
67 void image_reload(ImageWindow *imd);
68 void image_scroll(ImageWindow *imd, gint x, gint y);
69 void image_scroll_to_point(ImageWindow *imd, gint x, gint y,
70 gdouble x_align, gdouble y_align);
71 void image_get_scroll_center(ImageWindow *imd, gdouble *x, gdouble *y);
72 void image_set_scroll_center(ImageWindow *imd, gdouble x, gdouble y);
73 void image_alter(ImageWindow *imd, AlterType type);
76 void image_zoom_adjust(ImageWindow *imd, gdouble increment);
77 void image_zoom_adjust_at_point(ImageWindow *imd, gdouble increment, gint x, gint y);
78 void image_zoom_set_limits(ImageWindow *imd, gdouble min, gdouble max);
79 void image_zoom_set(ImageWindow *imd, gdouble zoom);
80 void image_zoom_set_fill_geometry(ImageWindow *imd, gint vertical);
81 gdouble image_zoom_get(ImageWindow *imd);
82 gdouble image_zoom_get_real(ImageWindow *imd);
83 gchar *image_zoom_get_as_text(ImageWindow *imd);
84 gdouble image_zoom_get_default(ImageWindow *imd, gint mode);
86 /* read ahead, pass NULL to cancel */
87 void image_prebuffer_set(ImageWindow *imd, FileData *fd);
89 /* auto refresh, interval is 1/1000 sec, 0 uses default, -1 disables */
90 void image_auto_refresh(ImageWindow *imd, gint interval);
92 /* allow top window to be resized ? */
93 void image_top_window_set_sync(ImageWindow *imd, gint allow_sync);
95 /* background of image */
96 void image_background_set_color(ImageWindow *imd, GdkColor *color);
99 void image_color_profile_set(ImageWindow *imd,
100 gint input_type, gint screen_type,
102 gint image_color_profile_get(ImageWindow *imd,
103 gint *input_type, gint *screen_type,
105 void image_color_profile_set_use(ImageWindow *imd, gint enable);
106 gint image_color_profile_get_use(ImageWindow *imd);
107 gint image_color_profile_get_from_image(ImageWindow *imd);
109 /* set delayed page flipping */
110 void image_set_delay_flip(ImageWindow *imd, gint delay);
113 void image_to_root_window(ImageWindow *imd, gint scaled);
116 gint image_overlay_add(ImageWindow *imd, GdkPixbuf *pixbuf, gint x, gint y,
117 gint relative, gint always);
118 void image_overlay_set(ImageWindow *imd, gint id, GdkPixbuf *pixbuf, gint x, gint y);
119 gint image_overlay_get(ImageWindow *imd, gint id, GdkPixbuf **pixbuf, gint *x, gint *y);
120 void image_overlay_remove(ImageWindow *imd, gint id);
124 void image_set_image_as_tiles(ImageWindow *imd, gint width, gint height,
125 gint tile_width, gint tile_height, gint cache_size,
126 ImageTileRequestFunc func_tile_request,
127 ImageTileDisposeFunc func_tile_dispose,
131 /* reset default options */
132 void image_options_sync(void);