be5b082fe8a27c6d42b069cee68fefc65a75e673
[geeqie.git] / src / view_file_icon.h
1 /*
2  * Geeqie
3  * (C) 2004 John Ellis
4  *
5  * Author: John Ellis
6  *
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!
10  */
11
12 #ifndef VIEW_FILE_ICON_H
13 #define VIEW_FILE_ICON_H
14
15
16 ViewFileIcon *vficon_new(const gchar *path);
17
18 gint vficon_set_path(ViewFileIcon *vfi, const gchar *path);
19 void vficon_set_status_func(ViewFileIcon *vfi,
20                             void (*func)(ViewFileIcon *vfi, gpointer data), gpointer data);
21 void vficon_set_thumb_status_func(ViewFileIcon *vfi,
22                                   void (*func)(ViewFileIcon *vfi, gdouble val, const gchar *text, gpointer data),
23                                   gpointer data);
24
25 void vficon_set_layout(ViewFileIcon *vfi, LayoutWindow *layout);
26
27 gint vficon_set_path(ViewFileIcon *vfi, const gchar *path);
28 gint vficon_refresh(ViewFileIcon *vfi);
29
30 void vficon_sort_set(ViewFileIcon *vfi, SortType type, gint ascend);
31
32 FileData *vficon_index_get_data(ViewFileIcon *vfi, gint row);
33 gchar *vficon_index_get_path(ViewFileIcon *vfi, gint row);
34 gint vficon_index_by_path(ViewFileIcon *vfi, const gchar *path);
35 gint vficon_index_by_fd(ViewFileIcon *vfi, FileData *in_fd);
36 gint vficon_count(ViewFileIcon *vfi, gint64 *bytes);
37 GList *vficon_get_list(ViewFileIcon *vfi);
38
39 gint vficon_index_is_selected(ViewFileIcon *vfi, gint row);
40 gint vficon_selection_count(ViewFileIcon *vfi, gint64 *bytes);
41 GList *vficon_selection_get_list(ViewFileIcon *vfi);
42 GList *vficon_selection_get_list_by_index(ViewFileIcon *vfi);
43
44 void vficon_select_all(ViewFileIcon *vfi);
45 void vficon_select_none(ViewFileIcon *vfi);
46 void vficon_select_by_path(ViewFileIcon *vfi, const gchar *path);
47 void vficon_select_by_fd(ViewFileIcon *vfi, FileData *fd);
48
49 void vficon_mark_to_selection(ViewFileIcon *vfi, gint mark, MarkToSelectionMode mode);
50 void vficon_selection_to_mark(ViewFileIcon *vfi, gint mark, SelectionToMarkMode mode);
51
52 gint vficon_maint_renamed(ViewFileIcon *vfi, FileData *fd);
53 gint vficon_maint_removed(ViewFileIcon *vfi, FileData *fd, GList *ignore_list);
54 gint vficon_maint_moved(ViewFileIcon *vfi, FileData *fd, GList *ignore_list);
55
56
57 #endif