Mercurial > geeqie.yaz
annotate src/image.h @ 1513:c9ed5a43c576
dropped show_copy_path option
author | nadvornik |
---|---|
date | Sat, 04 Apr 2009 22:09:50 +0000 |
parents | dac747d99394 |
children | b5608391f479 |
rev | line source |
---|---|
1 | 1 /* |
196 | 2 * Geeqie |
9 | 3 * (C) 2004 John Ellis |
1284 | 4 * Copyright (C) 2008 - 2009 The Geeqie Team |
1 | 5 * |
6 * Author: John Ellis | |
7 * | |
9 | 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! | |
1 | 11 */ |
12 | |
13 | |
9 | 14 #ifndef IMAGE_H |
15 #define IMAGE_H | |
3 | 16 |
17 | |
247 | 18 void image_set_frame(ImageWindow *imd, gboolean frame); |
1431 | 19 ImageWindow *image_new(gboolean frame); |
9 | 20 |
21 /* additional setup */ | |
22 void image_attach_window(ImageWindow *imd, GtkWidget *window, | |
1431 | 23 const gchar *title, const gchar *title_right, gboolean show_zoom); |
9 | 24 void image_set_update_func(ImageWindow *imd, |
25 void (*func)(ImageWindow *imd, gpointer data), | |
26 gpointer data); | |
27 void image_set_button_func(ImageWindow *imd, | |
868
db6977f8b0f1
Reduce number of parameters (mostly unused), just pass the event pointer.
zas_
parents:
821
diff
changeset
|
28 void (*func)(ImageWindow *, GdkEventButton *event, gpointer), |
9 | 29 gpointer data); |
128
98e2632b5d3d
improved connected scroll and active image switching
nadvornik
parents:
127
diff
changeset
|
30 void image_set_drag_func(ImageWindow *imd, |
868
db6977f8b0f1
Reduce number of parameters (mostly unused), just pass the event pointer.
zas_
parents:
821
diff
changeset
|
31 void (*func)(ImageWindow *, GdkEventButton *event, gdouble dx, gdouble dy, gpointer), |
128
98e2632b5d3d
improved connected scroll and active image switching
nadvornik
parents:
127
diff
changeset
|
32 gpointer data); |
9 | 33 void image_set_scroll_func(ImageWindow *imd, |
868
db6977f8b0f1
Reduce number of parameters (mostly unused), just pass the event pointer.
zas_
parents:
821
diff
changeset
|
34 void (*func)(ImageWindow *, GdkEventScroll *event, gpointer), |
442 | 35 gpointer data); |
1481 | 36 void image_set_focus_in_func(ImageWindow *imd, |
37 void (*func)(ImageWindow *, gpointer), | |
38 gpointer data); | |
12
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
39 void image_set_scroll_notify_func(ImageWindow *imd, |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
40 void (*func)(ImageWindow *imd, gint x, gint y, gint width, gint height, gpointer data), |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
41 gpointer data); |
9 | 42 void image_set_complete_func(ImageWindow *imd, |
117
0c2e1f0a001b
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
113
diff
changeset
|
43 void (*func)(ImageWindow *imd, gint preload, gpointer data), |
9 | 44 gpointer data); |
117
0c2e1f0a001b
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
113
diff
changeset
|
45 void image_set_state_func(ImageWindow *imd, |
0c2e1f0a001b
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
113
diff
changeset
|
46 void (*func)(ImageWindow *imd, ImageState state, gpointer data), |
0c2e1f0a001b
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
gqview
parents:
113
diff
changeset
|
47 gpointer data); |
9 | 48 |
127 | 49 void image_select(ImageWindow *imd, gboolean select); |
174 | 50 void image_set_selectable(ImageWindow *imd, gboolean selectable); |
127 | 51 |
1482 | 52 void image_grab_focus(ImageWindow *imd); |
9 | 53 /* path, name */ |
54 const gchar *image_get_path(ImageWindow *imd); | |
55 const gchar *image_get_name(ImageWindow *imd); | |
138 | 56 FileData *image_get_fd(ImageWindow *imd); |
9 | 57 |
58 /* merely changes path string, does not change the image! */ | |
138 | 59 void image_set_fd(ImageWindow *imd, FileData *fd); |
9 | 60 |
61 /* load a new image */ | |
138 | 62 void image_change_fd(ImageWindow *imd, FileData *fd, gdouble zoom); |
1431 | 63 void image_change_pixbuf(ImageWindow *imd, GdkPixbuf *pixbuf, gdouble zoom, gboolean lazy); |
9 | 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_change_from_image(ImageWindow *imd, ImageWindow *source); | |
67 | |
1431 | 68 gboolean image_get_image_size(ImageWindow *imd, gint *width, gint *height); |
23
17acca639a86
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
13
diff
changeset
|
69 GdkPixbuf *image_get_pixbuf(ImageWindow *imd); |
17acca639a86
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
13
diff
changeset
|
70 |
9 | 71 /* manipulation */ |
72 void image_area_changed(ImageWindow *imd, gint x, gint y, gint width, gint height); | |
73 void image_reload(ImageWindow *imd); | |
74 void image_scroll(ImageWindow *imd, gint x, gint y); | |
13
ef790149ae21
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
12
diff
changeset
|
75 void image_scroll_to_point(ImageWindow *imd, gint x, gint y, |
ef790149ae21
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
12
diff
changeset
|
76 gdouble x_align, gdouble y_align); |
131 | 77 void image_get_scroll_center(ImageWindow *imd, gdouble *x, gdouble *y); |
78 void image_set_scroll_center(ImageWindow *imd, gdouble x, gdouble y); | |
9 | 79 void image_alter(ImageWindow *imd, AlterType type); |
80 | |
81 /* zoom */ | |
82 void image_zoom_adjust(ImageWindow *imd, gdouble increment); | |
83 void image_zoom_adjust_at_point(ImageWindow *imd, gdouble increment, gint x, gint y); | |
12
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
84 void image_zoom_set_limits(ImageWindow *imd, gdouble min, gdouble max); |
9 | 85 void image_zoom_set(ImageWindow *imd, gdouble zoom); |
1269 | 86 void image_zoom_set_fill_geometry(ImageWindow *imd, gboolean vertical); |
9 | 87 gdouble image_zoom_get(ImageWindow *imd); |
88 gdouble image_zoom_get_real(ImageWindow *imd); | |
89 gchar *image_zoom_get_as_text(ImageWindow *imd); | |
885
ad420f2eb789
Use a specific enum for image.zoom_mode values (ZoomMode) and
zas_
parents:
868
diff
changeset
|
90 gdouble image_zoom_get_default(ImageWindow *imd); |
9 | 91 |
92 /* read ahead, pass NULL to cancel */ | |
138 | 93 void image_prebuffer_set(ImageWindow *imd, FileData *fd); |
9 | 94 |
888 | 95 /* auto refresh */ |
96 void image_auto_refresh_enable(ImageWindow *imd, gboolean enable); | |
9 | 97 |
98 /* allow top window to be resized ? */ | |
1431 | 99 void image_top_window_set_sync(ImageWindow *imd, gboolean allow_sync); |
9 | 100 |
101 /* background of image */ | |
102 void image_background_set_color(ImageWindow *imd, GdkColor *color); | |
103 | |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
26
diff
changeset
|
104 /* color profiles */ |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
26
diff
changeset
|
105 void image_color_profile_set(ImageWindow *imd, |
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
26
diff
changeset
|
106 gint input_type, gint screen_type, |
1431 | 107 gboolean use_image); |
108 gboolean image_color_profile_get(ImageWindow *imd, | |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
26
diff
changeset
|
109 gint *input_type, gint *screen_type, |
1431 | 110 gboolean *use_image); |
111 void image_color_profile_set_use(ImageWindow *imd, gboolean enable); | |
112 gboolean image_color_profile_get_use(ImageWindow *imd); | |
426
9fe0ca1b5263
show the AdobeRGB profile in the menu, indicate input profile from image
nadvornik
parents:
247
diff
changeset
|
113 gint image_color_profile_get_from_image(ImageWindow *imd); |
113
55166d93498d
Fri Nov 24 21:37:01 2006 John Ellis <johne@verizon.net>
gqview
parents:
26
diff
changeset
|
114 |
9 | 115 /* set delayed page flipping */ |
116 void image_set_delay_flip(ImageWindow *imd, gint delay); | |
117 | |
118 /* wallpaper util */ | |
1431 | 119 void image_to_root_window(ImageWindow *imd, gboolean scaled); |
9 | 120 |
121 | |
12
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
122 |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
123 void image_set_image_as_tiles(ImageWindow *imd, gint width, gint height, |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
124 gint tile_width, gint tile_height, gint cache_size, |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
125 ImageTileRequestFunc func_tile_request, |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
126 ImageTileDisposeFunc func_tile_dispose, |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
127 gpointer data, |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
128 gdouble zoom); |
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
129 |
26
acd9885ebd78
Mon Mar 28 20:23:34 2005 John Ellis <johne@verizon.net>
gqview
parents:
23
diff
changeset
|
130 /* reset default options */ |
acd9885ebd78
Mon Mar 28 20:23:34 2005 John Ellis <johne@verizon.net>
gqview
parents:
23
diff
changeset
|
131 void image_options_sync(void); |
acd9885ebd78
Mon Mar 28 20:23:34 2005 John Ellis <johne@verizon.net>
gqview
parents:
23
diff
changeset
|
132 |
12
147f4c4b9025
##### Note: GQview CVS on sourceforge is not always up to date, please use #####
gqview
parents:
9
diff
changeset
|
133 |
9 | 134 #endif |
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
1045
diff
changeset
|
135 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |