2 * Copyright (C) 2006 John Ellis
3 * Copyright (C) 2008 - 2016 The Geeqie Team
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef LAYOUT_IMAGE_H
23 #define LAYOUT_IMAGE_H
26 struct CollectionData;
30 GtkWidget *layout_image_new(LayoutWindow *lw, gint i);
31 void layout_image_activate(LayoutWindow *lw, gint i, gboolean force);
32 GtkWidget *layout_image_setup_split_none(LayoutWindow *lw);
33 GtkWidget *layout_image_setup_split_hv(LayoutWindow *lw, gboolean horizontal);
34 GtkWidget *layout_image_setup_split(LayoutWindow *lw, ImageSplitMode mode);
36 void layout_image_set_fd(LayoutWindow *lw, FileData *fd);
37 void layout_image_set_with_ahead(LayoutWindow *lw, FileData *fd, FileData *read_ahead_fd);
39 void layout_image_set_index(LayoutWindow *lw, gint index);
40 void layout_image_set_collection(LayoutWindow *lw, CollectionData *cd, CollectInfo *info);
42 void layout_image_refresh(LayoutWindow *lw);
44 void layout_image_color_profile_set(LayoutWindow *lw,
47 gboolean layout_image_color_profile_get(LayoutWindow *lw,
50 void layout_image_color_profile_set_use(LayoutWindow *lw, gint enable);
51 gboolean layout_image_color_profile_get_use(LayoutWindow *lw);
52 gboolean layout_image_color_profile_get_status(LayoutWindow *lw, gchar **image_profile, gchar **screen_profile);
55 const gchar *layout_image_get_path(LayoutWindow *lw);
56 FileData *layout_image_get_fd(LayoutWindow *lw);
57 CollectionData *layout_image_get_collection(LayoutWindow *lw, CollectInfo **info);
58 gint layout_image_get_index(LayoutWindow *lw);
61 void layout_image_scroll(LayoutWindow *lw, gint x, gint y, gboolean connect_scroll);
62 void layout_image_zoom_adjust(LayoutWindow *lw, gdouble increment, gboolean connect_zoom);
63 void layout_image_zoom_adjust_at_point(LayoutWindow *lw, gdouble increment, gint x, gint y, gboolean connect_zoom);
64 void layout_image_zoom_set(LayoutWindow *lw, gdouble zoom, gboolean connect_zoom);
65 void layout_image_zoom_set_fill_geometry(LayoutWindow *lw, gboolean vertical, gboolean connect_zoom);
66 void layout_image_alter_orientation(LayoutWindow *lw, AlterType type);
67 void layout_image_set_desaturate(LayoutWindow *lw, gboolean desaturate);
68 gboolean layout_image_get_desaturate(LayoutWindow *lw);
69 void layout_image_set_overunderexposed(LayoutWindow *lw, gboolean overunderexposed);
70 void layout_image_set_ignore_alpha(LayoutWindow *lw, gboolean ignore_alpha);
72 void layout_image_rating(LayoutWindow *lw, const gchar *rating);
75 gint layout_image_stereo_get(LayoutWindow *lw);
76 void layout_image_stereo_set(LayoutWindow *lw, gint stereo_mode);
78 void layout_image_stereo_swap(LayoutWindow *lw);
80 gint layout_image_stereo_pixbuf_get(LayoutWindow *lw);
81 void layout_image_stereo_pixbuf_set(LayoutWindow *lw, gint stereo_mode);
83 void layout_image_next(LayoutWindow *lw);
84 void layout_image_prev(LayoutWindow *lw);
85 void layout_image_first(LayoutWindow *lw);
86 void layout_image_last(LayoutWindow *lw);
88 void layout_image_menu_popup(LayoutWindow *lw);
90 void layout_image_to_root(LayoutWindow *lw);
92 void layout_image_full_screen_start(LayoutWindow *lw);
93 void layout_image_full_screen_stop(LayoutWindow *lw);
94 void layout_image_full_screen_toggle(LayoutWindow *lw);
95 gboolean layout_image_full_screen_active(LayoutWindow *lw);
97 void layout_image_slideshow_start(LayoutWindow *lw);
98 void layout_image_slideshow_start_from_list(LayoutWindow *lw, GList *list);
99 void layout_image_slideshow_stop(LayoutWindow *lw);
100 void layout_image_slideshow_toggle(LayoutWindow *lw);
101 gboolean layout_image_slideshow_active(LayoutWindow *lw);
102 gboolean layout_image_slideshow_pause_toggle(LayoutWindow *lw);
103 gboolean layout_image_slideshow_paused(LayoutWindow *lw);
105 void layout_image_animate_toggle(LayoutWindow *lw);
107 void layout_image_notify_cb(FileData *fd, NotifyType type, gpointer data);
108 void layout_image_reset_orientation(LayoutWindow *lw);
110 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */