Simplify vflist_get_formatted()
[geeqie.git] / src / layout_image.h
1 /*
2  * Copyright (C) 2006 John Ellis
3  * Copyright (C) 2008 - 2016 The Geeqie Team
4  *
5  * Author: John Ellis
6  *
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.
11  *
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.
16  *
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.
20  */
21
22 #ifndef LAYOUT_IMAGE_H
23 #define LAYOUT_IMAGE_H
24
25
26 GtkWidget *layout_image_new(LayoutWindow *lw, gint i);
27 void layout_image_activate(LayoutWindow *lw, gint i, gboolean force);
28 GtkWidget *layout_image_setup_split_none(LayoutWindow *lw);
29 GtkWidget *layout_image_setup_split_hv(LayoutWindow *lw, gboolean horizontal);
30 GtkWidget *layout_image_setup_split(LayoutWindow *lw, ImageSplitMode mode);
31
32 void layout_image_set_fd(LayoutWindow *lw, FileData *fd);
33 void layout_image_set_with_ahead(LayoutWindow *lw, FileData *fd, FileData *read_ahead_fd);
34
35 void layout_image_set_index(LayoutWindow *lw, gint index);
36 void layout_image_set_collection(LayoutWindow *lw, CollectionData *cd, CollectInfo *info);
37
38 void layout_image_refresh(LayoutWindow *lw);
39
40 void layout_image_color_profile_set(LayoutWindow *lw,
41                                     gint input_type,
42                                     gboolean use_image);
43 gboolean layout_image_color_profile_get(LayoutWindow *lw,
44                                     gint *input_type,
45                                     gboolean *use_image);
46 void layout_image_color_profile_set_use(LayoutWindow *lw, gint enable);
47 gboolean layout_image_color_profile_get_use(LayoutWindow *lw);
48 gboolean layout_image_color_profile_get_status(LayoutWindow *lw, gchar **image_profile, gchar **screen_profile);
49
50
51 const gchar *layout_image_get_path(LayoutWindow *lw);
52 const gchar *layout_image_get_name(LayoutWindow *lw);
53 FileData *layout_image_get_fd(LayoutWindow *lw);
54 CollectionData *layout_image_get_collection(LayoutWindow *lw, CollectInfo **info);
55 gint layout_image_get_index(LayoutWindow *lw);
56
57
58 void layout_image_scroll(LayoutWindow *lw, gint x, gint y, gboolean connect_scroll);
59 void layout_image_zoom_adjust(LayoutWindow *lw, gdouble increment, gboolean connect_zoom);
60 void layout_image_zoom_adjust_at_point(LayoutWindow *lw, gdouble increment, gint x, gint y, gboolean connect_zoom);
61 void layout_image_zoom_set(LayoutWindow *lw, gdouble zoom, gboolean connect_zoom);
62 void layout_image_zoom_set_fill_geometry(LayoutWindow *lw, gboolean vertical, gboolean connect_zoom);
63 void layout_image_alter_orientation(LayoutWindow *lw, AlterType type);
64 void layout_image_set_desaturate(LayoutWindow *lw, gboolean desaturate);
65 gboolean layout_image_get_desaturate(LayoutWindow *lw);
66 void layout_image_set_overunderexposed(LayoutWindow *lw, gboolean overunderexposed);
67 gboolean layout_image_get_overunderexposed(LayoutWindow *lw);
68 void layout_image_set_ignore_alpha(LayoutWindow *lw, gboolean ignore_alpha);
69
70 void layout_image_rating(LayoutWindow *lw, const gchar *rating);
71
72 /*
73 gint layout_image_stereo_get(LayoutWindow *lw);
74 void layout_image_stereo_set(LayoutWindow *lw, gint stereo_mode);
75 */
76 void layout_image_stereo_swap(LayoutWindow *lw);
77
78 gint layout_image_stereo_pixbuf_get(LayoutWindow *lw);
79 void layout_image_stereo_pixbuf_set(LayoutWindow *lw, gint stereo_mode);
80
81 void layout_image_next(LayoutWindow *lw);
82 void layout_image_prev(LayoutWindow *lw);
83 void layout_image_first(LayoutWindow *lw);
84 void layout_image_last(LayoutWindow *lw);
85
86 void layout_image_menu_popup(LayoutWindow *lw);
87
88 void layout_image_to_root(LayoutWindow *lw);
89
90 void layout_image_full_screen_start(LayoutWindow *lw);
91 void layout_image_full_screen_stop(LayoutWindow *lw);
92 void layout_image_full_screen_toggle(LayoutWindow *lw);
93 gboolean layout_image_full_screen_active(LayoutWindow *lw);
94
95 void layout_image_slideshow_start(LayoutWindow *lw);
96 void layout_image_slideshow_start_from_list(LayoutWindow *lw, GList *list);
97 void layout_image_slideshow_stop(LayoutWindow *lw);
98 void layout_image_slideshow_toggle(LayoutWindow *lw);
99 gboolean layout_image_slideshow_active(LayoutWindow *lw);
100 gboolean layout_image_slideshow_pause_toggle(LayoutWindow *lw);
101 gboolean layout_image_slideshow_paused(LayoutWindow *lw);
102
103 void layout_image_animate_toggle(LayoutWindow *lw);
104
105 void layout_image_overlay_toggle(LayoutWindow *lw);
106
107 void layout_image_notify_cb(FileData *fd, NotifyType type, gpointer data);
108 void layout_image_reset_orientation(LayoutWindow *lw);
109 #endif
110 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */