2
; object definitions ...
3
(define-object Thumbnail
6
(c-name "GimpThumbnail")
7
(gtype-id "GIMP_TYPE_THUMBNAIL")
10
;; Enumerations and flags ...
12
(define-enum ThumbFileType
14
(c-name "GimpThumbFileType")
15
(gtype-id "GIMP_TYPE_THUMB_FILE_TYPE")
17
'("none" "GIMP_THUMB_FILE_TYPE_NONE")
18
'("regular" "GIMP_THUMB_FILE_TYPE_REGULAR")
19
'("folder" "GIMP_THUMB_FILE_TYPE_FOLDER")
20
'("special" "GIMP_THUMB_FILE_TYPE_SPECIAL")
24
(define-enum ThumbSize
26
(c-name "GimpThumbSize")
27
(gtype-id "GIMP_TYPE_THUMB_SIZE")
29
'("fail" "GIMP_THUMB_SIZE_FAIL")
30
'("normal" "GIMP_THUMB_SIZE_NORMAL")
31
'("large" "GIMP_THUMB_SIZE_LARGE")
35
(define-enum ThumbState
37
(c-name "GimpThumbState")
38
(gtype-id "GIMP_TYPE_THUMB_STATE")
40
'("unknown" "GIMP_THUMB_STATE_UNKNOWN")
41
'("remote" "GIMP_THUMB_STATE_REMOTE")
42
'("folder" "GIMP_THUMB_STATE_FOLDER")
43
'("special" "GIMP_THUMB_STATE_SPECIAL")
44
'("not-found" "GIMP_THUMB_STATE_NOT_FOUND")
45
'("exists" "GIMP_THUMB_STATE_EXISTS")
46
'("old" "GIMP_THUMB_STATE_OLD")
47
'("failed" "GIMP_THUMB_STATE_FAILED")
48
'("ok" "GIMP_THUMB_STATE_OK")
53
;; From ../../libgimpthumb/gimpthumb-enums.h
55
(define-function gimp_thumb_file_type_get_type
56
(c-name "gimp_thumb_file_type_get_type")
60
(define-function gimp_thumb_size_get_type
61
(c-name "gimp_thumb_size_get_type")
65
(define-function gimp_thumb_state_get_type
66
(c-name "gimp_thumb_state_get_type")
72
;; From ../../libgimpthumb/gimpthumb-types.h
76
;; From ../../libgimpthumb/gimpthumb-utils.h
79
(c-name "gimp_thumb_init")
80
(return-type "gboolean")
82
'("const-gchar*" "creator")
83
'("const-gchar*" "thumb_basedir")
87
(define-function find_thumb
88
(c-name "gimp_thumb_find_thumb")
89
(return-type "gchar*")
91
'("const-gchar*" "uri")
92
'("GimpThumbSize*" "size")
96
(define-function file_test
97
(c-name "gimp_thumb_file_test")
98
(return-type "GimpThumbFileType")
100
'("const-gchar*" "filename")
107
(define-function name_from_uri
108
(c-name "gimp_thumb_name_from_uri")
109
(return-type "gchar*")
111
'("const-gchar*" "uri")
112
'("GimpThumbSize" "size")
116
(define-function get_thumb_dir
117
(c-name "gimp_thumb_get_thumb_dir")
118
(return-type "const-gchar*")
120
'("GimpThumbSize" "size")
124
(define-function ensure_thumb_dir
125
(c-name "gimp_thumb_ensure_thumb_dir")
126
(return-type "gboolean")
128
'("GimpThumbSize" "size")
129
'("GError**" "error")
133
(define-function delete_for_uri
134
(c-name "gimp_thumbs_delete_for_uri")
137
'("const-gchar*" "uri")
141
(define-function name_from_uri_local
142
(c-name "gimp_thumb_name_from_uri_local")
143
(return-type "gchar*")
145
'("const-gchar*" "uri")
146
'("GimpThumbSize" "size")
150
(define-function get_thumb_dir_local
151
(c-name "gimp_thumb_get_thumb_dir_local")
152
(return-type "gchar*")
154
'("const-gchar*" "dirname")
155
'("GimpThumbSize" "size")
159
(define-function ensure_thumb_dir_local
160
(c-name "gimp_thumb_ensure_thumb_dir_local")
161
(return-type "gboolean")
163
'("const-gchar*" "dirname")
164
'("GimpThumbSize" "size")
165
'("GError**" "error")
169
(define-function delete_for_uri_local
170
(c-name "gimp_thumbs_delete_for_uri_local")
173
'("const-gchar*" "uri")
179
;; From ../../libgimpthumb/gimpthumb.h
183
;; From ../../libgimpthumb/gimpthumbnail.h
185
(define-function gimp_thumbnail_get_type
186
(c-name "gimp_thumbnail_get_type")
187
(return-type "GType")
190
(define-function gimp_thumbnail_new
191
(c-name "gimp_thumbnail_new")
192
(is-constructor-of "GimpThumbnail")
193
(return-type "GimpThumbnail*")
196
(define-method set_uri
197
(of-object "GimpThumbnail")
198
(c-name "gimp_thumbnail_set_uri")
201
'("const-gchar*" "uri")
205
(define-method set_filename
206
(of-object "GimpThumbnail")
207
(c-name "gimp_thumbnail_set_filename")
208
(return-type "gboolean")
210
'("const-gchar*" "filename")
211
'("GError**" "error")
215
(define-method set_from_thumb
216
(of-object "GimpThumbnail")
217
(c-name "gimp_thumbnail_set_from_thumb")
218
(return-type "gboolean")
220
'("const-gchar*" "filename")
221
'("GError**" "error")
225
(define-method peek_image
226
(of-object "GimpThumbnail")
227
(c-name "gimp_thumbnail_peek_image")
228
(return-type "GimpThumbState")
231
(define-method peek_thumb
232
(of-object "GimpThumbnail")
233
(c-name "gimp_thumbnail_peek_thumb")
234
(return-type "GimpThumbState")
236
'("GimpThumbSize" "size")
240
(define-method check_thumb
241
(of-object "GimpThumbnail")
242
(c-name "gimp_thumbnail_check_thumb")
243
(return-type "GimpThumbState")
245
'("GimpThumbSize" "size")
249
(define-method load_thumb
250
(of-object "GimpThumbnail")
251
(c-name "gimp_thumbnail_load_thumb")
252
(return-type "GdkPixbuf*")
254
'("GimpThumbSize" "size")
255
'("GError**" "error")
259
(define-method save_thumb
260
(of-object "GimpThumbnail")
261
(c-name "gimp_thumbnail_save_thumb")
262
(return-type "gboolean")
264
'("GdkPixbuf*" "pixbuf")
265
'("const-gchar*" "software")
266
'("GError**" "error")
270
(define-method save_thumb_local
271
(of-object "GimpThumbnail")
272
(c-name "gimp_thumbnail_save_thumb_local")
273
(return-type "gboolean")
275
'("GdkPixbuf*" "pixbuf")
276
'("const-gchar*" "software")
277
'("GError**" "error")
281
(define-method save_failure
282
(of-object "GimpThumbnail")
283
(c-name "gimp_thumbnail_save_failure")
284
(return-type "gboolean")
286
'("const-gchar*" "software")
287
'("GError**" "error")
291
(define-method delete_failure
292
(of-object "GimpThumbnail")
293
(c-name "gimp_thumbnail_delete_failure")
297
(define-method delete_others
298
(of-object "GimpThumbnail")
299
(c-name "gimp_thumbnail_delete_others")
302
'("GimpThumbSize" "size")
306
(define-method has_failed
307
(of-object "GimpThumbnail")
308
(c-name "gimp_thumbnail_has_failed")
309
(return-type "gboolean")