-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathimage_list.h
130 lines (93 loc) · 3.38 KB
/
image_list.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/*
* Copyright (c) Stephan Arts 2006-2012 <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
#ifndef __RISTRETTO_IMAGE_LIST_H__
#define __RISTRETTO_IMAGE_LIST_H__
#include "file.h"
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define RSTTO_TYPE_IMAGE_LIST rstto_image_list_get_type ()
G_DECLARE_FINAL_TYPE (RsttoImageList, rstto_image_list, RSTTO, IMAGE_LIST, GObject)
typedef struct _RsttoImageListPrivate RsttoImageListPrivate;
struct _RsttoImageList
{
GObject parent;
RsttoImageListPrivate *priv;
};
#define RSTTO_TYPE_IMAGE_LIST_ITER rstto_image_list_iter_get_type ()
G_DECLARE_FINAL_TYPE (RsttoImageListIter, rstto_image_list_iter, RSTTO, IMAGE_LIST_ITER, GObject)
typedef struct _RsttoImageListIterPrivate RsttoImageListIterPrivate;
struct _RsttoImageListIter
{
GObject parent;
RsttoImageListIterPrivate *priv;
};
RsttoImageList *
rstto_image_list_new (void);
gint
rstto_image_list_get_n_images (RsttoImageList *image_list);
gboolean
rstto_image_list_is_empty (RsttoImageList *image_list);
gboolean
rstto_image_list_add_file (RsttoImageList *image_list,
RsttoFile *file,
GError **error);
void
rstto_image_list_remove_file (RsttoImageList *image_list,
RsttoFile *file);
gboolean
rstto_image_list_set_directory (RsttoImageList *image_list,
GFile *dir,
RsttoFile *file,
GError **error);
gboolean
rstto_image_list_is_busy (RsttoImageList *list);
/** Built-in Sorting Functions */
void
rstto_image_list_set_sort_by_name (RsttoImageList *image_list);
void
rstto_image_list_set_sort_by_type (RsttoImageList *image_list);
void
rstto_image_list_set_sort_by_date (RsttoImageList *image_list);
RsttoImageListIter *
rstto_image_list_get_iter (RsttoImageList *image_list);
/** Iter functions */
RsttoFile *
rstto_image_list_iter_get_file (RsttoImageListIter *iter);
gboolean
rstto_image_list_iter_previous (RsttoImageListIter *iter);
gboolean
rstto_image_list_iter_next (RsttoImageListIter *iter);
gboolean
rstto_image_list_iter_has_previous (RsttoImageListIter *iter);
gboolean
rstto_image_list_iter_has_next (RsttoImageListIter *iter);
gint
rstto_image_list_iter_get_position (RsttoImageListIter *iter);
void
rstto_image_list_iter_set_position (RsttoImageListIter *iter,
gint pos);
gboolean
rstto_image_list_iter_find_file (RsttoImageListIter *iter,
RsttoFile *file);
RsttoImageListIter *
rstto_image_list_iter_clone (RsttoImageListIter *iter);
gboolean
rstto_image_list_iter_get_sticky (RsttoImageListIter *iter);
G_END_DECLS
#endif /* __RISTRETTO_IMAGE_LIST_H__ */