]>
Commit | Line | Data |
---|---|---|
45516216 | 1 | // /usr/libexec/gcc/sh4-unknown-linux-gnu/4.2.2/cc1 -quiet -I. -I. -I.. -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/atk-1.0 -MD .libs/gtknotebook.d -MF .deps/gtknotebook.Tpo -MP -MT gtknotebook.lo -MQ .libs/gtknotebook.o -D_REENTRANT -D_PTHREADS -DHAVE_CONFIG_H -DG_LOG_DOMAIN="Gtk" -DGTK_LIBDIR="/usr/lib" -DGTK_DATADIR="/usr/share" -DGTK_DATA_PREFIX="/usr" -DGTK_SYSCONFDIR="/etc" -DGTK_VERSION="2.12.7" -DGTK_BINARY_VERSION="2.10.0" -DGTK_HOST="sh4-unknown-linux-gnu" -DGTK_COMPILATION -DGTK_PRINT_BACKENDS="file,lpr" -DGTK_PRINT_PREVIEW_COMMAND="evince --unlink-tempfile --preview --print-settings %s %f" -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS -D_REENTRANT -DPIC gtknotebook.c -quiet -dumpbase gtknotebook.c -auxbase-strip .libs/gtknotebook.o -O2 -Wall -fPIC -o - -frandom-seed=0 |
2 | # 1 "gtknotebook.c" | |
3 | # 1 "<built-in>" | |
4 | # 1 "<command-line>" | |
5 | # 1 "gtknotebook.c" | |
6 | # 28 "gtknotebook.c" | |
7 | # 1 "../config.h" 1 | |
8 | # 29 "gtknotebook.c" 2 | |
9 | # 1 "/usr/include/string.h" 1 3 4 | |
10 | # 26 "/usr/include/string.h" 3 4 | |
11 | # 1 "/usr/include/features.h" 1 3 4 | |
12 | # 330 "/usr/include/features.h" 3 4 | |
13 | # 1 "/usr/include/sys/cdefs.h" 1 3 4 | |
14 | # 348 "/usr/include/sys/cdefs.h" 3 4 | |
15 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
16 | # 349 "/usr/include/sys/cdefs.h" 2 3 4 | |
17 | # 331 "/usr/include/features.h" 2 3 4 | |
18 | # 354 "/usr/include/features.h" 3 4 | |
19 | # 1 "/usr/include/gnu/stubs.h" 1 3 4 | |
20 | # 355 "/usr/include/features.h" 2 3 4 | |
21 | # 27 "/usr/include/string.h" 2 3 4 | |
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 1 3 4 | |
29 | # 214 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 3 4 | |
30 | typedef unsigned int size_t; | |
31 | # 34 "/usr/include/string.h" 2 3 4 | |
32 | ||
33 | ||
34 | ||
35 | ||
36 | extern void *memcpy (void *__restrict __dest, | |
37 | __const void *__restrict __src, size_t __n) | |
38 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
39 | ||
40 | ||
41 | extern void *memmove (void *__dest, __const void *__src, size_t __n) | |
42 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
43 | ||
44 | ||
45 | ||
46 | ||
47 | ||
48 | ||
49 | extern void *memccpy (void *__restrict __dest, __const void *__restrict __src, | |
50 | int __c, size_t __n) | |
51 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
52 | ||
53 | ||
54 | ||
55 | ||
56 | ||
57 | extern void *memset (void *__s, int __c, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
58 | ||
59 | ||
60 | extern int memcmp (__const void *__s1, __const void *__s2, size_t __n) | |
61 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
62 | ||
63 | ||
64 | extern void *memchr (__const void *__s, int __c, size_t __n) | |
65 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
66 | ||
67 | # 82 "/usr/include/string.h" 3 4 | |
68 | ||
69 | ||
70 | extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) | |
71 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
72 | ||
73 | extern char *strncpy (char *__restrict __dest, | |
74 | __const char *__restrict __src, size_t __n) | |
75 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
76 | ||
77 | ||
78 | extern char *strcat (char *__restrict __dest, __const char *__restrict __src) | |
79 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
80 | ||
81 | extern char *strncat (char *__restrict __dest, __const char *__restrict __src, | |
82 | size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
83 | ||
84 | ||
85 | extern int strcmp (__const char *__s1, __const char *__s2) | |
86 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
87 | ||
88 | extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) | |
89 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
90 | ||
91 | ||
92 | extern int strcoll (__const char *__s1, __const char *__s2) | |
93 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
94 | ||
95 | extern size_t strxfrm (char *__restrict __dest, | |
96 | __const char *__restrict __src, size_t __n) | |
97 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
98 | ||
99 | # 130 "/usr/include/string.h" 3 4 | |
100 | extern char *strdup (__const char *__s) | |
101 | __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); | |
102 | # 165 "/usr/include/string.h" 3 4 | |
103 | ||
104 | ||
105 | extern char *strchr (__const char *__s, int __c) | |
106 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
107 | ||
108 | extern char *strrchr (__const char *__s, int __c) | |
109 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
110 | ||
111 | # 181 "/usr/include/string.h" 3 4 | |
112 | ||
113 | ||
114 | ||
115 | extern size_t strcspn (__const char *__s, __const char *__reject) | |
116 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
117 | ||
118 | ||
119 | extern size_t strspn (__const char *__s, __const char *__accept) | |
120 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
121 | ||
122 | extern char *strpbrk (__const char *__s, __const char *__accept) | |
123 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
124 | ||
125 | extern char *strstr (__const char *__haystack, __const char *__needle) | |
126 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
127 | ||
128 | ||
129 | ||
130 | extern char *strtok (char *__restrict __s, __const char *__restrict __delim) | |
131 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
132 | ||
133 | ||
134 | ||
135 | ||
136 | extern char *__strtok_r (char *__restrict __s, | |
137 | __const char *__restrict __delim, | |
138 | char **__restrict __save_ptr) | |
139 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); | |
140 | ||
141 | extern char *strtok_r (char *__restrict __s, __const char *__restrict __delim, | |
142 | char **__restrict __save_ptr) | |
143 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 3))); | |
144 | # 240 "/usr/include/string.h" 3 4 | |
145 | ||
146 | ||
147 | extern size_t strlen (__const char *__s) | |
148 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
149 | ||
150 | # 254 "/usr/include/string.h" 3 4 | |
151 | ||
152 | ||
153 | extern char *strerror (int __errnum) __attribute__ ((__nothrow__)); | |
154 | ||
155 | # 270 "/usr/include/string.h" 3 4 | |
156 | extern int strerror_r (int __errnum, char *__buf, size_t __buflen) __asm__ ("" "__xpg_strerror_r") __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2))); | |
157 | # 294 "/usr/include/string.h" 3 4 | |
158 | extern void __bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
159 | ||
160 | ||
161 | ||
162 | extern void bcopy (__const void *__src, void *__dest, size_t __n) | |
163 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
164 | ||
165 | ||
166 | extern void bzero (void *__s, size_t __n) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))); | |
167 | ||
168 | ||
169 | extern int bcmp (__const void *__s1, __const void *__s2, size_t __n) | |
170 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
171 | ||
172 | ||
173 | extern char *index (__const char *__s, int __c) | |
174 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
175 | ||
176 | ||
177 | extern char *rindex (__const char *__s, int __c) | |
178 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); | |
179 | ||
180 | ||
181 | ||
182 | extern int ffs (int __i) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
183 | # 331 "/usr/include/string.h" 3 4 | |
184 | extern int strcasecmp (__const char *__s1, __const char *__s2) | |
185 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
186 | ||
187 | ||
188 | extern int strncasecmp (__const char *__s1, __const char *__s2, size_t __n) | |
189 | __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); | |
190 | # 354 "/usr/include/string.h" 3 4 | |
191 | extern char *strsep (char **__restrict __stringp, | |
192 | __const char *__restrict __delim) | |
193 | __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2))); | |
194 | # 420 "/usr/include/string.h" 3 4 | |
195 | # 1 "/usr/include/bits/string.h" 1 3 4 | |
196 | # 421 "/usr/include/string.h" 2 3 4 | |
197 | ||
198 | ||
199 | # 1 "/usr/include/bits/string2.h" 1 3 4 | |
200 | # 80 "/usr/include/bits/string2.h" 3 4 | |
201 | typedef struct { unsigned char __arr[2]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR2; | |
202 | typedef struct { unsigned char __arr[3]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR3; | |
203 | typedef struct { unsigned char __arr[4]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR4; | |
204 | typedef struct { unsigned char __arr[5]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR5; | |
205 | typedef struct { unsigned char __arr[6]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR6; | |
206 | typedef struct { unsigned char __arr[7]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR7; | |
207 | typedef struct { unsigned char __arr[8]; } __attribute__ ((__packed__)) __STRING2_COPY_ARR8; | |
208 | # 394 "/usr/include/bits/string2.h" 3 4 | |
209 | extern void *__rawmemchr (const void *__s, int __c); | |
210 | # 969 "/usr/include/bits/string2.h" 3 4 | |
211 | extern __inline size_t __strcspn_c1 (__const char *__s, int __reject); | |
212 | extern __inline size_t | |
213 | __strcspn_c1 (__const char *__s, int __reject) | |
214 | { | |
215 | register size_t __result = 0; | |
216 | while (__s[__result] != '\0' && __s[__result] != __reject) | |
217 | ++__result; | |
218 | return __result; | |
219 | } | |
220 | ||
221 | extern __inline size_t __strcspn_c2 (__const char *__s, int __reject1, | |
222 | int __reject2); | |
223 | extern __inline size_t | |
224 | __strcspn_c2 (__const char *__s, int __reject1, int __reject2) | |
225 | { | |
226 | register size_t __result = 0; | |
227 | while (__s[__result] != '\0' && __s[__result] != __reject1 | |
228 | && __s[__result] != __reject2) | |
229 | ++__result; | |
230 | return __result; | |
231 | } | |
232 | ||
233 | extern __inline size_t __strcspn_c3 (__const char *__s, int __reject1, | |
234 | int __reject2, int __reject3); | |
235 | extern __inline size_t | |
236 | __strcspn_c3 (__const char *__s, int __reject1, int __reject2, | |
237 | int __reject3) | |
238 | { | |
239 | register size_t __result = 0; | |
240 | while (__s[__result] != '\0' && __s[__result] != __reject1 | |
241 | && __s[__result] != __reject2 && __s[__result] != __reject3) | |
242 | ++__result; | |
243 | return __result; | |
244 | } | |
245 | # 1045 "/usr/include/bits/string2.h" 3 4 | |
246 | extern __inline size_t __strspn_c1 (__const char *__s, int __accept); | |
247 | extern __inline size_t | |
248 | __strspn_c1 (__const char *__s, int __accept) | |
249 | { | |
250 | register size_t __result = 0; | |
251 | ||
252 | while (__s[__result] == __accept) | |
253 | ++__result; | |
254 | return __result; | |
255 | } | |
256 | ||
257 | extern __inline size_t __strspn_c2 (__const char *__s, int __accept1, | |
258 | int __accept2); | |
259 | extern __inline size_t | |
260 | __strspn_c2 (__const char *__s, int __accept1, int __accept2) | |
261 | { | |
262 | register size_t __result = 0; | |
263 | ||
264 | while (__s[__result] == __accept1 || __s[__result] == __accept2) | |
265 | ++__result; | |
266 | return __result; | |
267 | } | |
268 | ||
269 | extern __inline size_t __strspn_c3 (__const char *__s, int __accept1, | |
270 | int __accept2, int __accept3); | |
271 | extern __inline size_t | |
272 | __strspn_c3 (__const char *__s, int __accept1, int __accept2, int __accept3) | |
273 | { | |
274 | register size_t __result = 0; | |
275 | ||
276 | while (__s[__result] == __accept1 || __s[__result] == __accept2 | |
277 | || __s[__result] == __accept3) | |
278 | ++__result; | |
279 | return __result; | |
280 | } | |
281 | # 1121 "/usr/include/bits/string2.h" 3 4 | |
282 | extern __inline char *__strpbrk_c2 (__const char *__s, int __accept1, | |
283 | int __accept2); | |
284 | extern __inline char * | |
285 | __strpbrk_c2 (__const char *__s, int __accept1, int __accept2) | |
286 | { | |
287 | ||
288 | while (*__s != '\0' && *__s != __accept1 && *__s != __accept2) | |
289 | ++__s; | |
290 | return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; | |
291 | } | |
292 | ||
293 | extern __inline char *__strpbrk_c3 (__const char *__s, int __accept1, | |
294 | int __accept2, int __accept3); | |
295 | extern __inline char * | |
296 | __strpbrk_c3 (__const char *__s, int __accept1, int __accept2, | |
297 | int __accept3) | |
298 | { | |
299 | ||
300 | while (*__s != '\0' && *__s != __accept1 && *__s != __accept2 | |
301 | && *__s != __accept3) | |
302 | ++__s; | |
303 | return *__s == '\0' ? ((void *)0) : (char *) (size_t) __s; | |
304 | } | |
305 | # 1173 "/usr/include/bits/string2.h" 3 4 | |
306 | extern __inline char *__strtok_r_1c (char *__s, char __sep, char **__nextp); | |
307 | extern __inline char * | |
308 | __strtok_r_1c (char *__s, char __sep, char **__nextp) | |
309 | { | |
310 | char *__result; | |
311 | if (__s == ((void *)0)) | |
312 | __s = *__nextp; | |
313 | while (*__s == __sep) | |
314 | ++__s; | |
315 | __result = ((void *)0); | |
316 | if (*__s != '\0') | |
317 | { | |
318 | __result = __s++; | |
319 | while (*__s != '\0') | |
320 | if (*__s++ == __sep) | |
321 | { | |
322 | __s[-1] = '\0'; | |
323 | break; | |
324 | } | |
325 | *__nextp = __s; | |
326 | } | |
327 | return __result; | |
328 | } | |
329 | # 1205 "/usr/include/bits/string2.h" 3 4 | |
330 | extern char *__strsep_g (char **__stringp, __const char *__delim); | |
331 | # 1223 "/usr/include/bits/string2.h" 3 4 | |
332 | extern __inline char *__strsep_1c (char **__s, char __reject); | |
333 | extern __inline char * | |
334 | __strsep_1c (char **__s, char __reject) | |
335 | { | |
336 | register char *__retval = *__s; | |
337 | if (__retval != ((void *)0) && (*__s = (__extension__ (__builtin_constant_p (__reject) && !__builtin_constant_p (__retval) && (__reject) == '\0' ? (char *) __rawmemchr (__retval, __reject) : __builtin_strchr (__retval, __reject)))) != ((void *)0)) | |
338 | *(*__s)++ = '\0'; | |
339 | return __retval; | |
340 | } | |
341 | ||
342 | extern __inline char *__strsep_2c (char **__s, char __reject1, char __reject2); | |
343 | extern __inline char * | |
344 | __strsep_2c (char **__s, char __reject1, char __reject2) | |
345 | { | |
346 | register char *__retval = *__s; | |
347 | if (__retval != ((void *)0)) | |
348 | { | |
349 | register char *__cp = __retval; | |
350 | while (1) | |
351 | { | |
352 | if (*__cp == '\0') | |
353 | { | |
354 | __cp = ((void *)0); | |
355 | break; | |
356 | } | |
357 | if (*__cp == __reject1 || *__cp == __reject2) | |
358 | { | |
359 | *__cp++ = '\0'; | |
360 | break; | |
361 | } | |
362 | ++__cp; | |
363 | } | |
364 | *__s = __cp; | |
365 | } | |
366 | return __retval; | |
367 | } | |
368 | ||
369 | extern __inline char *__strsep_3c (char **__s, char __reject1, char __reject2, | |
370 | char __reject3); | |
371 | extern __inline char * | |
372 | __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3) | |
373 | { | |
374 | register char *__retval = *__s; | |
375 | if (__retval != ((void *)0)) | |
376 | { | |
377 | register char *__cp = __retval; | |
378 | while (1) | |
379 | { | |
380 | if (*__cp == '\0') | |
381 | { | |
382 | __cp = ((void *)0); | |
383 | break; | |
384 | } | |
385 | if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3) | |
386 | { | |
387 | *__cp++ = '\0'; | |
388 | break; | |
389 | } | |
390 | ++__cp; | |
391 | } | |
392 | *__s = __cp; | |
393 | } | |
394 | return __retval; | |
395 | } | |
396 | # 1299 "/usr/include/bits/string2.h" 3 4 | |
397 | # 1 "/usr/include/stdlib.h" 1 3 4 | |
398 | # 33 "/usr/include/stdlib.h" 3 4 | |
399 | # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 1 3 4 | |
400 | # 34 "/usr/include/stdlib.h" 2 3 4 | |
401 | ||
402 | ||
403 | # 469 "/usr/include/stdlib.h" 3 4 | |
404 | ||
405 | ||
406 | extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; | |
407 | ||
408 | extern void *calloc (size_t __nmemb, size_t __size) | |
409 | __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; | |
410 | ||
411 | # 883 "/usr/include/stdlib.h" 3 4 | |
412 | ||
413 | # 1300 "/usr/include/bits/string2.h" 2 3 4 | |
414 | ||
415 | ||
416 | ||
417 | ||
418 | extern char *__strdup (__const char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); | |
419 | # 1323 "/usr/include/bits/string2.h" 3 4 | |
420 | extern char *__strndup (__const char *__string, size_t __n) | |
421 | __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)); | |
422 | # 424 "/usr/include/string.h" 2 3 4 | |
423 | # 432 "/usr/include/string.h" 3 4 | |
424 | ||
425 | # 30 "gtknotebook.c" 2 | |
426 | # 1 "gtknotebook.h" 1 | |
427 | # 32 "gtknotebook.h" | |
428 | # 1 "../gdk/gdk.h" 1 | |
429 | # 30 "../gdk/gdk.h" | |
430 | # 1 "../gdk/gdkcairo.h" 1 | |
431 | # 23 "../gdk/gdkcairo.h" | |
432 | # 1 "../gdk/gdkcolor.h" 1 | |
433 | # 30 "../gdk/gdkcolor.h" | |
434 | # 1 "/usr/include/cairo/cairo.h" 1 | |
435 | # 41 "/usr/include/cairo/cairo.h" | |
436 | # 1 "/usr/include/cairo/cairo-features.h" 1 | |
437 | # 42 "/usr/include/cairo/cairo.h" 2 | |
438 | # 1 "/usr/include/cairo/cairo-deprecated.h" 1 | |
439 | # 43 "/usr/include/cairo/cairo.h" 2 | |
440 | ||
441 | ||
442 | # 56 "/usr/include/cairo/cairo.h" | |
443 | int | |
444 | cairo_version (void); | |
445 | ||
446 | const char* | |
447 | cairo_version_string (void); | |
448 | # 76 "/usr/include/cairo/cairo.h" | |
449 | typedef int cairo_bool_t; | |
450 | # 91 "/usr/include/cairo/cairo.h" | |
451 | typedef struct _cairo cairo_t; | |
452 | # 109 "/usr/include/cairo/cairo.h" | |
453 | typedef struct _cairo_surface cairo_surface_t; | |
454 | # 128 "/usr/include/cairo/cairo.h" | |
455 | typedef struct _cairo_matrix { | |
456 | double xx; double yx; | |
457 | double xy; double yy; | |
458 | double x0; double y0; | |
459 | } cairo_matrix_t; | |
460 | # 153 "/usr/include/cairo/cairo.h" | |
461 | typedef struct _cairo_pattern cairo_pattern_t; | |
462 | # 163 "/usr/include/cairo/cairo.h" | |
463 | typedef void (*cairo_destroy_func_t) (void *data); | |
464 | # 175 "/usr/include/cairo/cairo.h" | |
465 | typedef struct _cairo_user_data_key { | |
466 | int unused; | |
467 | } cairo_user_data_key_t; | |
468 | # 213 "/usr/include/cairo/cairo.h" | |
469 | typedef enum _cairo_status { | |
470 | CAIRO_STATUS_SUCCESS = 0, | |
471 | CAIRO_STATUS_NO_MEMORY, | |
472 | CAIRO_STATUS_INVALID_RESTORE, | |
473 | CAIRO_STATUS_INVALID_POP_GROUP, | |
474 | CAIRO_STATUS_NO_CURRENT_POINT, | |
475 | CAIRO_STATUS_INVALID_MATRIX, | |
476 | CAIRO_STATUS_INVALID_STATUS, | |
477 | CAIRO_STATUS_NULL_POINTER, | |
478 | CAIRO_STATUS_INVALID_STRING, | |
479 | CAIRO_STATUS_INVALID_PATH_DATA, | |
480 | CAIRO_STATUS_READ_ERROR, | |
481 | CAIRO_STATUS_WRITE_ERROR, | |
482 | CAIRO_STATUS_SURFACE_FINISHED, | |
483 | CAIRO_STATUS_SURFACE_TYPE_MISMATCH, | |
484 | CAIRO_STATUS_PATTERN_TYPE_MISMATCH, | |
485 | CAIRO_STATUS_INVALID_CONTENT, | |
486 | CAIRO_STATUS_INVALID_FORMAT, | |
487 | CAIRO_STATUS_INVALID_VISUAL, | |
488 | CAIRO_STATUS_FILE_NOT_FOUND, | |
489 | CAIRO_STATUS_INVALID_DASH, | |
490 | CAIRO_STATUS_INVALID_DSC_COMMENT, | |
491 | CAIRO_STATUS_INVALID_INDEX, | |
492 | CAIRO_STATUS_CLIP_NOT_REPRESENTABLE | |
493 | } cairo_status_t; | |
494 | # 253 "/usr/include/cairo/cairo.h" | |
495 | typedef enum _cairo_content { | |
496 | CAIRO_CONTENT_COLOR = 0x1000, | |
497 | CAIRO_CONTENT_ALPHA = 0x2000, | |
498 | CAIRO_CONTENT_COLOR_ALPHA = 0x3000 | |
499 | } cairo_content_t; | |
500 | # 275 "/usr/include/cairo/cairo.h" | |
501 | typedef cairo_status_t (*cairo_write_func_t) (void *closure, | |
502 | const unsigned char *data, | |
503 | unsigned int length); | |
504 | # 295 "/usr/include/cairo/cairo.h" | |
505 | typedef cairo_status_t (*cairo_read_func_t) (void *closure, | |
506 | unsigned char *data, | |
507 | unsigned int length); | |
508 | ||
509 | ||
510 | cairo_t * | |
511 | cairo_create (cairo_surface_t *target); | |
512 | ||
513 | cairo_t * | |
514 | cairo_reference (cairo_t *cr); | |
515 | ||
516 | void | |
517 | cairo_destroy (cairo_t *cr); | |
518 | ||
519 | unsigned int | |
520 | cairo_get_reference_count (cairo_t *cr); | |
521 | ||
522 | void * | |
523 | cairo_get_user_data (cairo_t *cr, | |
524 | const cairo_user_data_key_t *key); | |
525 | ||
526 | cairo_status_t | |
527 | cairo_set_user_data (cairo_t *cr, | |
528 | const cairo_user_data_key_t *key, | |
529 | void *user_data, | |
530 | cairo_destroy_func_t destroy); | |
531 | ||
532 | void | |
533 | cairo_save (cairo_t *cr); | |
534 | ||
535 | void | |
536 | cairo_restore (cairo_t *cr); | |
537 | ||
538 | void | |
539 | cairo_push_group (cairo_t *cr); | |
540 | ||
541 | void | |
542 | cairo_push_group_with_content (cairo_t *cr, cairo_content_t content); | |
543 | ||
544 | cairo_pattern_t * | |
545 | cairo_pop_group (cairo_t *cr); | |
546 | ||
547 | void | |
548 | cairo_pop_group_to_source (cairo_t *cr); | |
549 | ||
550 | ||
551 | ||
552 | typedef enum _cairo_operator { | |
553 | CAIRO_OPERATOR_CLEAR, | |
554 | ||
555 | CAIRO_OPERATOR_SOURCE, | |
556 | CAIRO_OPERATOR_OVER, | |
557 | CAIRO_OPERATOR_IN, | |
558 | CAIRO_OPERATOR_OUT, | |
559 | CAIRO_OPERATOR_ATOP, | |
560 | ||
561 | CAIRO_OPERATOR_DEST, | |
562 | CAIRO_OPERATOR_DEST_OVER, | |
563 | CAIRO_OPERATOR_DEST_IN, | |
564 | CAIRO_OPERATOR_DEST_OUT, | |
565 | CAIRO_OPERATOR_DEST_ATOP, | |
566 | ||
567 | CAIRO_OPERATOR_XOR, | |
568 | CAIRO_OPERATOR_ADD, | |
569 | CAIRO_OPERATOR_SATURATE | |
570 | } cairo_operator_t; | |
571 | ||
572 | void | |
573 | cairo_set_operator (cairo_t *cr, cairo_operator_t op); | |
574 | ||
575 | void | |
576 | cairo_set_source (cairo_t *cr, cairo_pattern_t *source); | |
577 | ||
578 | void | |
579 | cairo_set_source_rgb (cairo_t *cr, double red, double green, double blue); | |
580 | ||
581 | void | |
582 | cairo_set_source_rgba (cairo_t *cr, | |
583 | double red, double green, double blue, | |
584 | double alpha); | |
585 | ||
586 | void | |
587 | cairo_set_source_surface (cairo_t *cr, | |
588 | cairo_surface_t *surface, | |
589 | double x, | |
590 | double y); | |
591 | ||
592 | void | |
593 | cairo_set_tolerance (cairo_t *cr, double tolerance); | |
594 | # 398 "/usr/include/cairo/cairo.h" | |
595 | typedef enum _cairo_antialias { | |
596 | CAIRO_ANTIALIAS_DEFAULT, | |
597 | CAIRO_ANTIALIAS_NONE, | |
598 | CAIRO_ANTIALIAS_GRAY, | |
599 | CAIRO_ANTIALIAS_SUBPIXEL | |
600 | } cairo_antialias_t; | |
601 | ||
602 | void | |
603 | cairo_set_antialias (cairo_t *cr, cairo_antialias_t antialias); | |
604 | # 431 "/usr/include/cairo/cairo.h" | |
605 | typedef enum _cairo_fill_rule { | |
606 | CAIRO_FILL_RULE_WINDING, | |
607 | CAIRO_FILL_RULE_EVEN_ODD | |
608 | } cairo_fill_rule_t; | |
609 | ||
610 | void | |
611 | cairo_set_fill_rule (cairo_t *cr, cairo_fill_rule_t fill_rule); | |
612 | ||
613 | void | |
614 | cairo_set_line_width (cairo_t *cr, double width); | |
615 | # 450 "/usr/include/cairo/cairo.h" | |
616 | typedef enum _cairo_line_cap { | |
617 | CAIRO_LINE_CAP_BUTT, | |
618 | CAIRO_LINE_CAP_ROUND, | |
619 | CAIRO_LINE_CAP_SQUARE | |
620 | } cairo_line_cap_t; | |
621 | ||
622 | void | |
623 | cairo_set_line_cap (cairo_t *cr, cairo_line_cap_t line_cap); | |
624 | # 470 "/usr/include/cairo/cairo.h" | |
625 | typedef enum _cairo_line_join { | |
626 | CAIRO_LINE_JOIN_MITER, | |
627 | CAIRO_LINE_JOIN_ROUND, | |
628 | CAIRO_LINE_JOIN_BEVEL | |
629 | } cairo_line_join_t; | |
630 | ||
631 | void | |
632 | cairo_set_line_join (cairo_t *cr, cairo_line_join_t line_join); | |
633 | ||
634 | void | |
635 | cairo_set_dash (cairo_t *cr, | |
636 | const double *dashes, | |
637 | int num_dashes, | |
638 | double offset); | |
639 | ||
640 | void | |
641 | cairo_set_miter_limit (cairo_t *cr, double limit); | |
642 | ||
643 | void | |
644 | cairo_translate (cairo_t *cr, double tx, double ty); | |
645 | ||
646 | void | |
647 | cairo_scale (cairo_t *cr, double sx, double sy); | |
648 | ||
649 | void | |
650 | cairo_rotate (cairo_t *cr, double angle); | |
651 | ||
652 | void | |
653 | cairo_transform (cairo_t *cr, | |
654 | const cairo_matrix_t *matrix); | |
655 | ||
656 | void | |
657 | cairo_set_matrix (cairo_t *cr, | |
658 | const cairo_matrix_t *matrix); | |
659 | ||
660 | void | |
661 | cairo_identity_matrix (cairo_t *cr); | |
662 | ||
663 | void | |
664 | cairo_user_to_device (cairo_t *cr, double *x, double *y); | |
665 | ||
666 | void | |
667 | cairo_user_to_device_distance (cairo_t *cr, double *dx, double *dy); | |
668 | ||
669 | void | |
670 | cairo_device_to_user (cairo_t *cr, double *x, double *y); | |
671 | ||
672 | void | |
673 | cairo_device_to_user_distance (cairo_t *cr, double *dx, double *dy); | |
674 | ||
675 | ||
676 | void | |
677 | cairo_new_path (cairo_t *cr); | |
678 | ||
679 | void | |
680 | cairo_move_to (cairo_t *cr, double x, double y); | |
681 | ||
682 | void | |
683 | cairo_new_sub_path (cairo_t *cr); | |
684 | ||
685 | void | |
686 | cairo_line_to (cairo_t *cr, double x, double y); | |
687 | ||
688 | void | |
689 | cairo_curve_to (cairo_t *cr, | |
690 | double x1, double y1, | |
691 | double x2, double y2, | |
692 | double x3, double y3); | |
693 | ||
694 | void | |
695 | cairo_arc (cairo_t *cr, | |
696 | double xc, double yc, | |
697 | double radius, | |
698 | double angle1, double angle2); | |
699 | ||
700 | void | |
701 | cairo_arc_negative (cairo_t *cr, | |
702 | double xc, double yc, | |
703 | double radius, | |
704 | double angle1, double angle2); | |
705 | # 559 "/usr/include/cairo/cairo.h" | |
706 | void | |
707 | cairo_rel_move_to (cairo_t *cr, double dx, double dy); | |
708 | ||
709 | void | |
710 | cairo_rel_line_to (cairo_t *cr, double dx, double dy); | |
711 | ||
712 | void | |
713 | cairo_rel_curve_to (cairo_t *cr, | |
714 | double dx1, double dy1, | |
715 | double dx2, double dy2, | |
716 | double dx3, double dy3); | |
717 | ||
718 | void | |
719 | cairo_rectangle (cairo_t *cr, | |
720 | double x, double y, | |
721 | double width, double height); | |
722 | ||
723 | ||
724 | ||
725 | ||
726 | ||
727 | ||
728 | void | |
729 | cairo_close_path (cairo_t *cr); | |
730 | ||
731 | ||
732 | void | |
733 | cairo_paint (cairo_t *cr); | |
734 | ||
735 | void | |
736 | cairo_paint_with_alpha (cairo_t *cr, | |
737 | double alpha); | |
738 | ||
739 | void | |
740 | cairo_mask (cairo_t *cr, | |
741 | cairo_pattern_t *pattern); | |
742 | ||
743 | void | |
744 | cairo_mask_surface (cairo_t *cr, | |
745 | cairo_surface_t *surface, | |
746 | double surface_x, | |
747 | double surface_y); | |
748 | ||
749 | void | |
750 | cairo_stroke (cairo_t *cr); | |
751 | ||
752 | void | |
753 | cairo_stroke_preserve (cairo_t *cr); | |
754 | ||
755 | void | |
756 | cairo_fill (cairo_t *cr); | |
757 | ||
758 | void | |
759 | cairo_fill_preserve (cairo_t *cr); | |
760 | ||
761 | void | |
762 | cairo_copy_page (cairo_t *cr); | |
763 | ||
764 | void | |
765 | cairo_show_page (cairo_t *cr); | |
766 | ||
767 | ||
768 | cairo_bool_t | |
769 | cairo_in_stroke (cairo_t *cr, double x, double y); | |
770 | ||
771 | cairo_bool_t | |
772 | cairo_in_fill (cairo_t *cr, double x, double y); | |
773 | ||
774 | ||
775 | void | |
776 | cairo_stroke_extents (cairo_t *cr, | |
777 | double *x1, double *y1, | |
778 | double *x2, double *y2); | |
779 | ||
780 | void | |
781 | cairo_fill_extents (cairo_t *cr, | |
782 | double *x1, double *y1, | |
783 | double *x2, double *y2); | |
784 | ||
785 | ||
786 | void | |
787 | cairo_reset_clip (cairo_t *cr); | |
788 | ||
789 | void | |
790 | cairo_clip (cairo_t *cr); | |
791 | ||
792 | void | |
793 | cairo_clip_preserve (cairo_t *cr); | |
794 | ||
795 | void | |
796 | cairo_clip_extents (cairo_t *cr, | |
797 | double *x1, double *y1, | |
798 | double *x2, double *y2); | |
799 | # 664 "/usr/include/cairo/cairo.h" | |
800 | typedef struct _cairo_rectangle { | |
801 | double x, y, width, height; | |
802 | } cairo_rectangle_t; | |
803 | # 679 "/usr/include/cairo/cairo.h" | |
804 | typedef struct _cairo_rectangle_list { | |
805 | cairo_status_t status; | |
806 | cairo_rectangle_t *rectangles; | |
807 | int num_rectangles; | |
808 | } cairo_rectangle_list_t; | |
809 | ||
810 | cairo_rectangle_list_t * | |
811 | cairo_copy_clip_rectangle_list (cairo_t *cr); | |
812 | ||
813 | void | |
814 | cairo_rectangle_list_destroy (cairo_rectangle_list_t *rectangle_list); | |
815 | # 708 "/usr/include/cairo/cairo.h" | |
816 | typedef struct _cairo_scaled_font cairo_scaled_font_t; | |
817 | # 727 "/usr/include/cairo/cairo.h" | |
818 | typedef struct _cairo_font_face cairo_font_face_t; | |
819 | # 753 "/usr/include/cairo/cairo.h" | |
820 | typedef struct { | |
821 | unsigned long index; | |
822 | double x; | |
823 | double y; | |
824 | } cairo_glyph_t; | |
825 | # 786 "/usr/include/cairo/cairo.h" | |
826 | typedef struct { | |
827 | double x_bearing; | |
828 | double y_bearing; | |
829 | double width; | |
830 | double height; | |
831 | double x_advance; | |
832 | double y_advance; | |
833 | } cairo_text_extents_t; | |
834 | # 836 "/usr/include/cairo/cairo.h" | |
835 | typedef struct { | |
836 | double ascent; | |
837 | double descent; | |
838 | double height; | |
839 | double max_x_advance; | |
840 | double max_y_advance; | |
841 | } cairo_font_extents_t; | |
842 | # 852 "/usr/include/cairo/cairo.h" | |
843 | typedef enum _cairo_font_slant { | |
844 | CAIRO_FONT_SLANT_NORMAL, | |
845 | CAIRO_FONT_SLANT_ITALIC, | |
846 | CAIRO_FONT_SLANT_OBLIQUE | |
847 | } cairo_font_slant_t; | |
848 | # 865 "/usr/include/cairo/cairo.h" | |
849 | typedef enum _cairo_font_weight { | |
850 | CAIRO_FONT_WEIGHT_NORMAL, | |
851 | CAIRO_FONT_WEIGHT_BOLD | |
852 | } cairo_font_weight_t; | |
853 | # 887 "/usr/include/cairo/cairo.h" | |
854 | typedef enum _cairo_subpixel_order { | |
855 | CAIRO_SUBPIXEL_ORDER_DEFAULT, | |
856 | CAIRO_SUBPIXEL_ORDER_RGB, | |
857 | CAIRO_SUBPIXEL_ORDER_BGR, | |
858 | CAIRO_SUBPIXEL_ORDER_VRGB, | |
859 | CAIRO_SUBPIXEL_ORDER_VBGR | |
860 | } cairo_subpixel_order_t; | |
861 | # 917 "/usr/include/cairo/cairo.h" | |
862 | typedef enum _cairo_hint_style { | |
863 | CAIRO_HINT_STYLE_DEFAULT, | |
864 | CAIRO_HINT_STYLE_NONE, | |
865 | CAIRO_HINT_STYLE_SLIGHT, | |
866 | CAIRO_HINT_STYLE_MEDIUM, | |
867 | CAIRO_HINT_STYLE_FULL | |
868 | } cairo_hint_style_t; | |
869 | # 938 "/usr/include/cairo/cairo.h" | |
870 | typedef enum _cairo_hint_metrics { | |
871 | CAIRO_HINT_METRICS_DEFAULT, | |
872 | CAIRO_HINT_METRICS_OFF, | |
873 | CAIRO_HINT_METRICS_ON | |
874 | } cairo_hint_metrics_t; | |
875 | # 964 "/usr/include/cairo/cairo.h" | |
876 | typedef struct _cairo_font_options cairo_font_options_t; | |
877 | ||
878 | cairo_font_options_t * | |
879 | cairo_font_options_create (void); | |
880 | ||
881 | cairo_font_options_t * | |
882 | cairo_font_options_copy (const cairo_font_options_t *original); | |
883 | ||
884 | void | |
885 | cairo_font_options_destroy (cairo_font_options_t *options); | |
886 | ||
887 | cairo_status_t | |
888 | cairo_font_options_status (cairo_font_options_t *options); | |
889 | ||
890 | void | |
891 | cairo_font_options_merge (cairo_font_options_t *options, | |
892 | const cairo_font_options_t *other); | |
893 | cairo_bool_t | |
894 | cairo_font_options_equal (const cairo_font_options_t *options, | |
895 | const cairo_font_options_t *other); | |
896 | ||
897 | unsigned long | |
898 | cairo_font_options_hash (const cairo_font_options_t *options); | |
899 | ||
900 | void | |
901 | cairo_font_options_set_antialias (cairo_font_options_t *options, | |
902 | cairo_antialias_t antialias); | |
903 | cairo_antialias_t | |
904 | cairo_font_options_get_antialias (const cairo_font_options_t *options); | |
905 | ||
906 | void | |
907 | cairo_font_options_set_subpixel_order (cairo_font_options_t *options, | |
908 | cairo_subpixel_order_t subpixel_order); | |
909 | cairo_subpixel_order_t | |
910 | cairo_font_options_get_subpixel_order (const cairo_font_options_t *options); | |
911 | ||
912 | void | |
913 | cairo_font_options_set_hint_style (cairo_font_options_t *options, | |
914 | cairo_hint_style_t hint_style); | |
915 | cairo_hint_style_t | |
916 | cairo_font_options_get_hint_style (const cairo_font_options_t *options); | |
917 | ||
918 | void | |
919 | cairo_font_options_set_hint_metrics (cairo_font_options_t *options, | |
920 | cairo_hint_metrics_t hint_metrics); | |
921 | cairo_hint_metrics_t | |
922 | cairo_font_options_get_hint_metrics (const cairo_font_options_t *options); | |
923 | ||
924 | ||
925 | ||
926 | ||
927 | void | |
928 | cairo_select_font_face (cairo_t *cr, | |
929 | const char *family, | |
930 | cairo_font_slant_t slant, | |
931 | cairo_font_weight_t weight); | |
932 | ||
933 | void | |
934 | cairo_set_font_size (cairo_t *cr, double size); | |
935 | ||
936 | void | |
937 | cairo_set_font_matrix (cairo_t *cr, | |
938 | const cairo_matrix_t *matrix); | |
939 | ||
940 | void | |
941 | cairo_get_font_matrix (cairo_t *cr, | |
942 | cairo_matrix_t *matrix); | |
943 | ||
944 | void | |
945 | cairo_set_font_options (cairo_t *cr, | |
946 | const cairo_font_options_t *options); | |
947 | ||
948 | void | |
949 | cairo_get_font_options (cairo_t *cr, | |
950 | cairo_font_options_t *options); | |
951 | ||
952 | void | |
953 | cairo_set_font_face (cairo_t *cr, cairo_font_face_t *font_face); | |
954 | ||
955 | cairo_font_face_t * | |
956 | cairo_get_font_face (cairo_t *cr); | |
957 | ||
958 | void | |
959 | cairo_set_scaled_font (cairo_t *cr, | |
960 | const cairo_scaled_font_t *scaled_font); | |
961 | ||
962 | cairo_scaled_font_t * | |
963 | cairo_get_scaled_font (cairo_t *cr); | |
964 | ||
965 | void | |
966 | cairo_show_text (cairo_t *cr, const char *utf8); | |
967 | ||
968 | void | |
969 | cairo_show_glyphs (cairo_t *cr, const cairo_glyph_t *glyphs, int num_glyphs); | |
970 | ||
971 | void | |
972 | cairo_text_path (cairo_t *cr, const char *utf8); | |
973 | ||
974 | void | |
975 | cairo_glyph_path (cairo_t *cr, const cairo_glyph_t *glyphs, int num_glyphs); | |
976 | ||
977 | void | |
978 | cairo_text_extents (cairo_t *cr, | |
979 | const char *utf8, | |
980 | cairo_text_extents_t *extents); | |
981 | ||
982 | void | |
983 | cairo_glyph_extents (cairo_t *cr, | |
984 | const cairo_glyph_t *glyphs, | |
985 | int num_glyphs, | |
986 | cairo_text_extents_t *extents); | |
987 | ||
988 | void | |
989 | cairo_font_extents (cairo_t *cr, | |
990 | cairo_font_extents_t *extents); | |
991 | ||
992 | ||
993 | ||
994 | cairo_font_face_t * | |
995 | cairo_font_face_reference (cairo_font_face_t *font_face); | |
996 | ||
997 | void | |
998 | cairo_font_face_destroy (cairo_font_face_t *font_face); | |
999 | ||
1000 | unsigned int | |
1001 | cairo_font_face_get_reference_count (cairo_font_face_t *font_face); | |
1002 | ||
1003 | cairo_status_t | |
1004 | cairo_font_face_status (cairo_font_face_t *font_face); | |
1005 | # 1130 "/usr/include/cairo/cairo.h" | |
1006 | typedef enum _cairo_font_type { | |
1007 | CAIRO_FONT_TYPE_TOY, | |
1008 | CAIRO_FONT_TYPE_FT, | |
1009 | CAIRO_FONT_TYPE_WIN32, | |
1010 | CAIRO_FONT_TYPE_ATSUI | |
1011 | } cairo_font_type_t; | |
1012 | ||
1013 | cairo_font_type_t | |
1014 | cairo_font_face_get_type (cairo_font_face_t *font_face); | |
1015 | ||
1016 | void * | |
1017 | cairo_font_face_get_user_data (cairo_font_face_t *font_face, | |
1018 | const cairo_user_data_key_t *key); | |
1019 | ||
1020 | cairo_status_t | |
1021 | cairo_font_face_set_user_data (cairo_font_face_t *font_face, | |
1022 | const cairo_user_data_key_t *key, | |
1023 | void *user_data, | |
1024 | cairo_destroy_func_t destroy); | |
1025 | ||
1026 | ||
1027 | ||
1028 | cairo_scaled_font_t * | |
1029 | cairo_scaled_font_create (cairo_font_face_t *font_face, | |
1030 | const cairo_matrix_t *font_matrix, | |
1031 | const cairo_matrix_t *ctm, | |
1032 | const cairo_font_options_t *options); | |
1033 | ||
1034 | cairo_scaled_font_t * | |
1035 | cairo_scaled_font_reference (cairo_scaled_font_t *scaled_font); | |
1036 | ||
1037 | void | |
1038 | cairo_scaled_font_destroy (cairo_scaled_font_t *scaled_font); | |
1039 | ||
1040 | unsigned int | |
1041 | cairo_scaled_font_get_reference_count (cairo_scaled_font_t *scaled_font); | |
1042 | ||
1043 | cairo_status_t | |
1044 | cairo_scaled_font_status (cairo_scaled_font_t *scaled_font); | |
1045 | ||
1046 | cairo_font_type_t | |
1047 | cairo_scaled_font_get_type (cairo_scaled_font_t *scaled_font); | |
1048 | ||
1049 | void * | |
1050 | cairo_scaled_font_get_user_data (cairo_scaled_font_t *scaled_font, | |
1051 | const cairo_user_data_key_t *key); | |
1052 | ||
1053 | cairo_status_t | |
1054 | cairo_scaled_font_set_user_data (cairo_scaled_font_t *scaled_font, | |
1055 | const cairo_user_data_key_t *key, | |
1056 | void *user_data, | |
1057 | cairo_destroy_func_t destroy); | |
1058 | ||
1059 | void | |
1060 | cairo_scaled_font_extents (cairo_scaled_font_t *scaled_font, | |
1061 | cairo_font_extents_t *extents); | |
1062 | ||
1063 | void | |
1064 | cairo_scaled_font_text_extents (cairo_scaled_font_t *scaled_font, | |
1065 | const char *utf8, | |
1066 | cairo_text_extents_t *extents); | |
1067 | ||
1068 | void | |
1069 | cairo_scaled_font_glyph_extents (cairo_scaled_font_t *scaled_font, | |
1070 | const cairo_glyph_t *glyphs, | |
1071 | int num_glyphs, | |
1072 | cairo_text_extents_t *extents); | |
1073 | ||
1074 | cairo_font_face_t * | |
1075 | cairo_scaled_font_get_font_face (cairo_scaled_font_t *scaled_font); | |
1076 | ||
1077 | void | |
1078 | cairo_scaled_font_get_font_matrix (cairo_scaled_font_t *scaled_font, | |
1079 | cairo_matrix_t *font_matrix); | |
1080 | ||
1081 | void | |
1082 | cairo_scaled_font_get_ctm (cairo_scaled_font_t *scaled_font, | |
1083 | cairo_matrix_t *ctm); | |
1084 | ||
1085 | void | |
1086 | cairo_scaled_font_get_font_options (cairo_scaled_font_t *scaled_font, | |
1087 | cairo_font_options_t *options); | |
1088 | ||
1089 | ||
1090 | ||
1091 | cairo_operator_t | |
1092 | cairo_get_operator (cairo_t *cr); | |
1093 | ||
1094 | cairo_pattern_t * | |
1095 | cairo_get_source (cairo_t *cr); | |
1096 | ||
1097 | double | |
1098 | cairo_get_tolerance (cairo_t *cr); | |
1099 | ||
1100 | cairo_antialias_t | |
1101 | cairo_get_antialias (cairo_t *cr); | |
1102 | ||
1103 | void | |
1104 | cairo_get_current_point (cairo_t *cr, double *x, double *y); | |
1105 | ||
1106 | cairo_fill_rule_t | |
1107 | cairo_get_fill_rule (cairo_t *cr); | |
1108 | ||
1109 | double | |
1110 | cairo_get_line_width (cairo_t *cr); | |
1111 | ||
1112 | cairo_line_cap_t | |
1113 | cairo_get_line_cap (cairo_t *cr); | |
1114 | ||
1115 | cairo_line_join_t | |
1116 | cairo_get_line_join (cairo_t *cr); | |
1117 | ||
1118 | double | |
1119 | cairo_get_miter_limit (cairo_t *cr); | |
1120 | ||
1121 | int | |
1122 | cairo_get_dash_count (cairo_t *cr); | |
1123 | ||
1124 | void | |
1125 | cairo_get_dash (cairo_t *cr, double *dashes, double *offset); | |
1126 | ||
1127 | void | |
1128 | cairo_get_matrix (cairo_t *cr, cairo_matrix_t *matrix); | |
1129 | ||
1130 | cairo_surface_t * | |
1131 | cairo_get_target (cairo_t *cr); | |
1132 | ||
1133 | cairo_surface_t * | |
1134 | cairo_get_group_target (cairo_t *cr); | |
1135 | # 1271 "/usr/include/cairo/cairo.h" | |
1136 | typedef enum _cairo_path_data_type { | |
1137 | CAIRO_PATH_MOVE_TO, | |
1138 | CAIRO_PATH_LINE_TO, | |
1139 | CAIRO_PATH_CURVE_TO, | |
1140 | CAIRO_PATH_CLOSE_PATH | |
1141 | } cairo_path_data_type_t; | |
1142 | # 1344 "/usr/include/cairo/cairo.h" | |
1143 | typedef union _cairo_path_data_t cairo_path_data_t; | |
1144 | union _cairo_path_data_t { | |
1145 | struct { | |
1146 | cairo_path_data_type_t type; | |
1147 | int length; | |
1148 | } header; | |
1149 | struct { | |
1150 | double x, y; | |
1151 | } point; | |
1152 | }; | |
1153 | # 1374 "/usr/include/cairo/cairo.h" | |
1154 | typedef struct cairo_path { | |
1155 | cairo_status_t status; | |
1156 | cairo_path_data_t *data; | |
1157 | int num_data; | |
1158 | } cairo_path_t; | |
1159 | ||
1160 | cairo_path_t * | |
1161 | cairo_copy_path (cairo_t *cr); | |
1162 | ||
1163 | cairo_path_t * | |
1164 | cairo_copy_path_flat (cairo_t *cr); | |
1165 | ||
1166 | void | |
1167 | cairo_append_path (cairo_t *cr, | |
1168 | const cairo_path_t *path); | |
1169 | ||
1170 | void | |
1171 | cairo_path_destroy (cairo_path_t *path); | |
1172 | ||
1173 | ||
1174 | ||
1175 | cairo_status_t | |
1176 | cairo_status (cairo_t *cr); | |
1177 | ||
1178 | const char * | |
1179 | cairo_status_to_string (cairo_status_t status); | |
1180 | ||
1181 | ||
1182 | ||
1183 | cairo_surface_t * | |
1184 | cairo_surface_create_similar (cairo_surface_t *other, | |
1185 | cairo_content_t content, | |
1186 | int width, | |
1187 | int height); | |
1188 | ||
1189 | cairo_surface_t * | |
1190 | cairo_surface_reference (cairo_surface_t *surface); | |
1191 | ||
1192 | void | |
1193 | cairo_surface_finish (cairo_surface_t *surface); | |
1194 | ||
1195 | void | |
1196 | cairo_surface_destroy (cairo_surface_t *surface); | |
1197 | ||
1198 | unsigned int | |
1199 | cairo_surface_get_reference_count (cairo_surface_t *surface); | |
1200 | ||
1201 | cairo_status_t | |
1202 | cairo_surface_status (cairo_surface_t *surface); | |
1203 | # 1462 "/usr/include/cairo/cairo.h" | |
1204 | typedef enum _cairo_surface_type { | |
1205 | CAIRO_SURFACE_TYPE_IMAGE, | |
1206 | CAIRO_SURFACE_TYPE_PDF, | |
1207 | CAIRO_SURFACE_TYPE_PS, | |
1208 | CAIRO_SURFACE_TYPE_XLIB, | |
1209 | CAIRO_SURFACE_TYPE_XCB, | |
1210 | CAIRO_SURFACE_TYPE_GLITZ, | |
1211 | CAIRO_SURFACE_TYPE_QUARTZ, | |
1212 | CAIRO_SURFACE_TYPE_WIN32, | |
1213 | CAIRO_SURFACE_TYPE_BEOS, | |
1214 | CAIRO_SURFACE_TYPE_DIRECTFB, | |
1215 | CAIRO_SURFACE_TYPE_SVG, | |
1216 | CAIRO_SURFACE_TYPE_OS2 | |
1217 | } cairo_surface_type_t; | |
1218 | ||
1219 | cairo_surface_type_t | |
1220 | cairo_surface_get_type (cairo_surface_t *surface); | |
1221 | ||
1222 | cairo_content_t | |
1223 | cairo_surface_get_content (cairo_surface_t *surface); | |
1224 | ||
1225 | ||
1226 | ||
1227 | cairo_status_t | |
1228 | cairo_surface_write_to_png (cairo_surface_t *surface, | |
1229 | const char *filename); | |
1230 | ||
1231 | cairo_status_t | |
1232 | cairo_surface_write_to_png_stream (cairo_surface_t *surface, | |
1233 | cairo_write_func_t write_func, | |
1234 | void *closure); | |
1235 | ||
1236 | ||
1237 | ||
1238 | void * | |
1239 | cairo_surface_get_user_data (cairo_surface_t *surface, | |
1240 | const cairo_user_data_key_t *key); | |
1241 | ||
1242 | cairo_status_t | |
1243 | cairo_surface_set_user_data (cairo_surface_t *surface, | |
1244 | const cairo_user_data_key_t *key, | |
1245 | void *user_data, | |
1246 | cairo_destroy_func_t destroy); | |
1247 | ||
1248 | void | |
1249 | cairo_surface_get_font_options (cairo_surface_t *surface, | |
1250 | cairo_font_options_t *options); | |
1251 | ||
1252 | void | |
1253 | cairo_surface_flush (cairo_surface_t *surface); | |
1254 | ||
1255 | void | |
1256 | cairo_surface_mark_dirty (cairo_surface_t *surface); | |
1257 | ||
1258 | void | |
1259 | cairo_surface_mark_dirty_rectangle (cairo_surface_t *surface, | |
1260 | int x, | |
1261 | int y, | |
1262 | int width, | |
1263 | int height); | |
1264 | ||
1265 | void | |
1266 | cairo_surface_set_device_offset (cairo_surface_t *surface, | |
1267 | double x_offset, | |
1268 | double y_offset); | |
1269 | ||
1270 | void | |
1271 | cairo_surface_get_device_offset (cairo_surface_t *surface, | |
1272 | double *x_offset, | |
1273 | double *y_offset); | |
1274 | ||
1275 | void | |
1276 | cairo_surface_set_fallback_resolution (cairo_surface_t *surface, | |
1277 | double x_pixels_per_inch, | |
1278 | double y_pixels_per_inch); | |
1279 | # 1567 "/usr/include/cairo/cairo.h" | |
1280 | typedef enum _cairo_format { | |
1281 | CAIRO_FORMAT_ARGB32, | |
1282 | CAIRO_FORMAT_RGB24, | |
1283 | CAIRO_FORMAT_A8, | |
1284 | CAIRO_FORMAT_A1 | |
1285 | ||
1286 | ||
1287 | ||
1288 | ||
1289 | } cairo_format_t; | |
1290 | ||
1291 | cairo_surface_t * | |
1292 | cairo_image_surface_create (cairo_format_t format, | |
1293 | int width, | |
1294 | int height); | |
1295 | ||
1296 | cairo_surface_t * | |
1297 | cairo_image_surface_create_for_data (unsigned char *data, | |
1298 | cairo_format_t format, | |
1299 | int width, | |
1300 | int height, | |
1301 | int stride); | |
1302 | ||
1303 | unsigned char * | |
1304 | cairo_image_surface_get_data (cairo_surface_t *surface); | |
1305 | ||
1306 | cairo_format_t | |
1307 | cairo_image_surface_get_format (cairo_surface_t *surface); | |
1308 | ||
1309 | int | |
1310 | cairo_image_surface_get_width (cairo_surface_t *surface); | |
1311 | ||
1312 | int | |
1313 | cairo_image_surface_get_height (cairo_surface_t *surface); | |
1314 | ||
1315 | int | |
1316 | cairo_image_surface_get_stride (cairo_surface_t *surface); | |
1317 | ||
1318 | ||
1319 | ||
1320 | cairo_surface_t * | |
1321 | cairo_image_surface_create_from_png (const char *filename); | |
1322 | ||
1323 | cairo_surface_t * | |
1324 | cairo_image_surface_create_from_png_stream (cairo_read_func_t read_func, | |
1325 | void *closure); | |
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | cairo_pattern_t * | |
1332 | cairo_pattern_create_rgb (double red, double green, double blue); | |
1333 | ||
1334 | cairo_pattern_t * | |
1335 | cairo_pattern_create_rgba (double red, double green, double blue, | |
1336 | double alpha); | |
1337 | ||
1338 | cairo_pattern_t * | |
1339 | cairo_pattern_create_for_surface (cairo_surface_t *surface); | |
1340 | ||
1341 | cairo_pattern_t * | |
1342 | cairo_pattern_create_linear (double x0, double y0, | |
1343 | double x1, double y1); | |
1344 | ||
1345 | cairo_pattern_t * | |
1346 | cairo_pattern_create_radial (double cx0, double cy0, double radius0, | |
1347 | double cx1, double cy1, double radius1); | |
1348 | ||
1349 | cairo_pattern_t * | |
1350 | cairo_pattern_reference (cairo_pattern_t *pattern); | |
1351 | ||
1352 | void | |
1353 | cairo_pattern_destroy (cairo_pattern_t *pattern); | |
1354 | ||
1355 | unsigned int | |
1356 | cairo_pattern_get_reference_count (cairo_pattern_t *pattern); | |
1357 | ||
1358 | cairo_status_t | |
1359 | cairo_pattern_status (cairo_pattern_t *pattern); | |
1360 | ||
1361 | void * | |
1362 | cairo_pattern_get_user_data (cairo_pattern_t *pattern, | |
1363 | const cairo_user_data_key_t *key); | |
1364 | ||
1365 | cairo_status_t | |
1366 | cairo_pattern_set_user_data (cairo_pattern_t *pattern, | |
1367 | const cairo_user_data_key_t *key, | |
1368 | void *user_data, | |
1369 | cairo_destroy_func_t destroy); | |
1370 | # 1688 "/usr/include/cairo/cairo.h" | |
1371 | typedef enum _cairo_pattern_type { | |
1372 | CAIRO_PATTERN_TYPE_SOLID, | |
1373 | CAIRO_PATTERN_TYPE_SURFACE, | |
1374 | CAIRO_PATTERN_TYPE_LINEAR, | |
1375 | CAIRO_PATTERN_TYPE_RADIAL | |
1376 | } cairo_pattern_type_t; | |
1377 | ||
1378 | cairo_pattern_type_t | |
1379 | cairo_pattern_get_type (cairo_pattern_t *pattern); | |
1380 | ||
1381 | void | |
1382 | cairo_pattern_add_color_stop_rgb (cairo_pattern_t *pattern, | |
1383 | double offset, | |
1384 | double red, double green, double blue); | |
1385 | ||
1386 | void | |
1387 | cairo_pattern_add_color_stop_rgba (cairo_pattern_t *pattern, | |
1388 | double offset, | |
1389 | double red, double green, double blue, | |
1390 | double alpha); | |
1391 | ||
1392 | void | |
1393 | cairo_pattern_set_matrix (cairo_pattern_t *pattern, | |
1394 | const cairo_matrix_t *matrix); | |
1395 | ||
1396 | void | |
1397 | cairo_pattern_get_matrix (cairo_pattern_t *pattern, | |
1398 | cairo_matrix_t *matrix); | |
1399 | # 1733 "/usr/include/cairo/cairo.h" | |
1400 | typedef enum _cairo_extend { | |
1401 | CAIRO_EXTEND_NONE, | |
1402 | CAIRO_EXTEND_REPEAT, | |
1403 | CAIRO_EXTEND_REFLECT, | |
1404 | CAIRO_EXTEND_PAD | |
1405 | } cairo_extend_t; | |
1406 | ||
1407 | void | |
1408 | cairo_pattern_set_extend (cairo_pattern_t *pattern, cairo_extend_t extend); | |
1409 | ||
1410 | cairo_extend_t | |
1411 | cairo_pattern_get_extend (cairo_pattern_t *pattern); | |
1412 | ||
1413 | typedef enum _cairo_filter { | |
1414 | CAIRO_FILTER_FAST, | |
1415 | CAIRO_FILTER_GOOD, | |
1416 | CAIRO_FILTER_BEST, | |
1417 | CAIRO_FILTER_NEAREST, | |
1418 | CAIRO_FILTER_BILINEAR, | |
1419 | CAIRO_FILTER_GAUSSIAN | |
1420 | } cairo_filter_t; | |
1421 | ||
1422 | void | |
1423 | cairo_pattern_set_filter (cairo_pattern_t *pattern, cairo_filter_t filter); | |
1424 | ||
1425 | cairo_filter_t | |
1426 | cairo_pattern_get_filter (cairo_pattern_t *pattern); | |
1427 | ||
1428 | cairo_status_t | |
1429 | cairo_pattern_get_rgba (cairo_pattern_t *pattern, | |
1430 | double *red, double *green, | |
1431 | double *blue, double *alpha); | |
1432 | ||
1433 | cairo_status_t | |
1434 | cairo_pattern_get_surface (cairo_pattern_t *pattern, | |
1435 | cairo_surface_t **surface); | |
1436 | ||
1437 | ||
1438 | cairo_status_t | |
1439 | cairo_pattern_get_color_stop_rgba (cairo_pattern_t *pattern, | |
1440 | int index, double *offset, | |
1441 | double *red, double *green, | |
1442 | double *blue, double *alpha); | |
1443 | ||
1444 | cairo_status_t | |
1445 | cairo_pattern_get_color_stop_count (cairo_pattern_t *pattern, | |
1446 | int *count); | |
1447 | ||
1448 | cairo_status_t | |
1449 | cairo_pattern_get_linear_points (cairo_pattern_t *pattern, | |
1450 | double *x0, double *y0, | |
1451 | double *x1, double *y1); | |
1452 | ||
1453 | cairo_status_t | |
1454 | cairo_pattern_get_radial_circles (cairo_pattern_t *pattern, | |
1455 | double *x0, double *y0, double *r0, | |
1456 | double *x1, double *y1, double *r1); | |
1457 | ||
1458 | ||
1459 | ||
1460 | void | |
1461 | cairo_matrix_init (cairo_matrix_t *matrix, | |
1462 | double xx, double yx, | |
1463 | double xy, double yy, | |
1464 | double x0, double y0); | |
1465 | ||
1466 | void | |
1467 | cairo_matrix_init_identity (cairo_matrix_t *matrix); | |
1468 | ||
1469 | void | |
1470 | cairo_matrix_init_translate (cairo_matrix_t *matrix, | |
1471 | double tx, double ty); | |
1472 | ||
1473 | void | |
1474 | cairo_matrix_init_scale (cairo_matrix_t *matrix, | |
1475 | double sx, double sy); | |
1476 | ||
1477 | void | |
1478 | cairo_matrix_init_rotate (cairo_matrix_t *matrix, | |
1479 | double radians); | |
1480 | ||
1481 | void | |
1482 | cairo_matrix_translate (cairo_matrix_t *matrix, double tx, double ty); | |
1483 | ||
1484 | void | |
1485 | cairo_matrix_scale (cairo_matrix_t *matrix, double sx, double sy); | |
1486 | ||
1487 | void | |
1488 | cairo_matrix_rotate (cairo_matrix_t *matrix, double radians); | |
1489 | ||
1490 | cairo_status_t | |
1491 | cairo_matrix_invert (cairo_matrix_t *matrix); | |
1492 | ||
1493 | void | |
1494 | cairo_matrix_multiply (cairo_matrix_t *result, | |
1495 | const cairo_matrix_t *a, | |
1496 | const cairo_matrix_t *b); | |
1497 | ||
1498 | void | |
1499 | cairo_matrix_transform_distance (const cairo_matrix_t *matrix, | |
1500 | double *dx, double *dy); | |
1501 | ||
1502 | void | |
1503 | cairo_matrix_transform_point (const cairo_matrix_t *matrix, | |
1504 | double *x, double *y); | |
1505 | ||
1506 | ||
1507 | void | |
1508 | cairo_debug_reset_static_data (void); | |
1509 | ||
1510 | ||
1511 | # 31 "../gdk/gdkcolor.h" 2 | |
1512 | # 1 "../gdk/gdktypes.h" 1 | |
1513 | # 32 "../gdk/gdktypes.h" | |
1514 | # 1 "/usr/include/glib-2.0/glib.h" 1 | |
1515 | # 30 "/usr/include/glib-2.0/glib.h" | |
1516 | # 1 "/usr/include/glib-2.0/glib/galloca.h" 1 | |
1517 | # 30 "/usr/include/glib-2.0/glib/galloca.h" | |
1518 | # 1 "/usr/include/glib-2.0/glib/gtypes.h" 1 | |
1519 | # 30 "/usr/include/glib-2.0/glib/gtypes.h" | |
1520 | # 1 "/usr/lib/glib-2.0/include/glibconfig.h" 1 | |
1521 | # 9 "/usr/lib/glib-2.0/include/glibconfig.h" | |
1522 | # 1 "/usr/include/glib-2.0/glib/gmacros.h" 1 | |
1523 | # 36 "/usr/include/glib-2.0/glib/gmacros.h" | |
1524 | # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 1 3 4 | |
1525 | # 152 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 3 4 | |
1526 | typedef int ptrdiff_t; | |
1527 | # 326 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 3 4 | |
1528 | typedef long int wchar_t; | |
1529 | # 37 "/usr/include/glib-2.0/glib/gmacros.h" 2 | |
1530 | # 10 "/usr/lib/glib-2.0/include/glibconfig.h" 2 | |
1531 | ||
1532 | # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/limits.h" 1 3 4 | |
1533 | # 11 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/limits.h" 3 4 | |
1534 | # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/syslimits.h" 1 3 4 | |
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/limits.h" 1 3 4 | |
1542 | # 122 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/limits.h" 3 4 | |
1543 | # 1 "/usr/include/limits.h" 1 3 4 | |
1544 | # 145 "/usr/include/limits.h" 3 4 | |
1545 | # 1 "/usr/include/bits/posix1_lim.h" 1 3 4 | |
1546 | # 153 "/usr/include/bits/posix1_lim.h" 3 4 | |
1547 | # 1 "/usr/include/bits/local_lim.h" 1 3 4 | |
1548 | # 36 "/usr/include/bits/local_lim.h" 3 4 | |
1549 | # 1 "/usr/include/linux/limits.h" 1 3 4 | |
1550 | # 37 "/usr/include/bits/local_lim.h" 2 3 4 | |
1551 | # 154 "/usr/include/bits/posix1_lim.h" 2 3 4 | |
1552 | # 146 "/usr/include/limits.h" 2 3 4 | |
1553 | ||
1554 | ||
1555 | ||
1556 | # 1 "/usr/include/bits/posix2_lim.h" 1 3 4 | |
1557 | # 150 "/usr/include/limits.h" 2 3 4 | |
1558 | # 123 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/limits.h" 2 3 4 | |
1559 | # 8 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/syslimits.h" 2 3 4 | |
1560 | # 12 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/limits.h" 2 3 4 | |
1561 | # 12 "/usr/lib/glib-2.0/include/glibconfig.h" 2 | |
1562 | # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/float.h" 1 3 4 | |
1563 | # 13 "/usr/lib/glib-2.0/include/glibconfig.h" 2 | |
1564 | ||
1565 | ||
1566 | ||
1567 | ||
1568 | # 32 "/usr/lib/glib-2.0/include/glibconfig.h" | |
1569 | typedef signed char gint8; | |
1570 | typedef unsigned char guint8; | |
1571 | typedef signed short gint16; | |
1572 | typedef unsigned short guint16; | |
1573 | ||
1574 | ||
1575 | ||
1576 | typedef signed int gint32; | |
1577 | typedef unsigned int guint32; | |
1578 | ||
1579 | ||
1580 | ||
1581 | ||
1582 | ||
1583 | __extension__ typedef signed long long gint64; | |
1584 | __extension__ typedef unsigned long long guint64; | |
1585 | # 59 "/usr/lib/glib-2.0/include/glibconfig.h" | |
1586 | typedef signed int gssize; | |
1587 | typedef unsigned int gsize; | |
1588 | # 69 "/usr/lib/glib-2.0/include/glibconfig.h" | |
1589 | typedef gint64 goffset; | |
1590 | # 139 "/usr/lib/glib-2.0/include/glibconfig.h" | |
1591 | typedef struct _GStaticMutex GStaticMutex; | |
1592 | struct _GStaticMutex | |
1593 | { | |
1594 | struct _GMutex *runtime_mutex; | |
1595 | union { | |
1596 | char pad[24]; | |
1597 | double dummy_double; | |
1598 | void *dummy_pointer; | |
1599 | long dummy_long; | |
1600 | } static_mutex; | |
1601 | }; | |
1602 | # 158 "/usr/lib/glib-2.0/include/glibconfig.h" | |
1603 | typedef union _GSystemThread GSystemThread; | |
1604 | union _GSystemThread | |
1605 | { | |
1606 | char data[4]; | |
1607 | double dummy_double; | |
1608 | void *dummy_pointer; | |
1609 | long dummy_long; | |
1610 | }; | |
1611 | # 200 "/usr/lib/glib-2.0/include/glibconfig.h" | |
1612 | typedef int GPid; | |
1613 | ||
1614 | ||
1615 | # 31 "/usr/include/glib-2.0/glib/gtypes.h" 2 | |
1616 | ||
1617 | ||
1618 | # 41 "/usr/include/glib-2.0/glib/gtypes.h" | |
1619 | typedef char gchar; | |
1620 | typedef short gshort; | |
1621 | typedef long glong; | |
1622 | typedef int gint; | |
1623 | typedef gint gboolean; | |
1624 | ||
1625 | typedef unsigned char guchar; | |
1626 | typedef unsigned short gushort; | |
1627 | typedef unsigned long gulong; | |
1628 | typedef unsigned int guint; | |
1629 | ||
1630 | typedef float gfloat; | |
1631 | typedef double gdouble; | |
1632 | # 72 "/usr/include/glib-2.0/glib/gtypes.h" | |
1633 | typedef void* gpointer; | |
1634 | typedef const void *gconstpointer; | |
1635 | ||
1636 | typedef gint (*GCompareFunc) (gconstpointer a, | |
1637 | gconstpointer b); | |
1638 | typedef gint (*GCompareDataFunc) (gconstpointer a, | |
1639 | gconstpointer b, | |
1640 | gpointer user_data); | |
1641 | typedef gboolean (*GEqualFunc) (gconstpointer a, | |
1642 | gconstpointer b); | |
1643 | typedef void (*GDestroyNotify) (gpointer data); | |
1644 | typedef void (*GFunc) (gpointer data, | |
1645 | gpointer user_data); | |
1646 | typedef guint (*GHashFunc) (gconstpointer key); | |
1647 | typedef void (*GHFunc) (gpointer key, | |
1648 | gpointer value, | |
1649 | gpointer user_data); | |
1650 | typedef void (*GFreeFunc) (gpointer data); | |
1651 | typedef const gchar * (*GTranslateFunc) (const gchar *str, | |
1652 | gpointer data); | |
1653 | # 345 "/usr/include/glib-2.0/glib/gtypes.h" | |
1654 | typedef union _GDoubleIEEE754 GDoubleIEEE754; | |
1655 | typedef union _GFloatIEEE754 GFloatIEEE754; | |
1656 | ||
1657 | ||
1658 | ||
1659 | ||
1660 | ||
1661 | union _GFloatIEEE754 | |
1662 | { | |
1663 | gfloat v_float; | |
1664 | struct { | |
1665 | guint mantissa : 23; | |
1666 | guint biased_exponent : 8; | |
1667 | guint sign : 1; | |
1668 | } mpn; | |
1669 | }; | |
1670 | union _GDoubleIEEE754 | |
1671 | { | |
1672 | gdouble v_double; | |
1673 | struct { | |
1674 | guint mantissa_low : 32; | |
1675 | guint mantissa_high : 20; | |
1676 | guint biased_exponent : 11; | |
1677 | guint sign : 1; | |
1678 | } mpn; | |
1679 | }; | |
1680 | # 395 "/usr/include/glib-2.0/glib/gtypes.h" | |
1681 | typedef struct _GTimeVal GTimeVal; | |
1682 | ||
1683 | struct _GTimeVal | |
1684 | { | |
1685 | glong tv_sec; | |
1686 | glong tv_usec; | |
1687 | }; | |
1688 | ||
1689 | ||
1690 | # 31 "/usr/include/glib-2.0/glib/galloca.h" 2 | |
1691 | # 31 "/usr/include/glib-2.0/glib.h" 2 | |
1692 | # 1 "/usr/include/glib-2.0/glib/garray.h" 1 | |
1693 | # 32 "/usr/include/glib-2.0/glib/garray.h" | |
1694 | ||
1695 | ||
1696 | typedef struct _GArray GArray; | |
1697 | typedef struct _GByteArray GByteArray; | |
1698 | typedef struct _GPtrArray GPtrArray; | |
1699 | ||
1700 | struct _GArray | |
1701 | { | |
1702 | gchar *data; | |
1703 | guint len; | |
1704 | }; | |
1705 | ||
1706 | struct _GByteArray | |
1707 | { | |
1708 | guint8 *data; | |
1709 | guint len; | |
1710 | }; | |
1711 | ||
1712 | struct _GPtrArray | |
1713 | { | |
1714 | gpointer *pdata; | |
1715 | guint len; | |
1716 | }; | |
1717 | # 66 "/usr/include/glib-2.0/glib/garray.h" | |
1718 | GArray* g_array_new (gboolean zero_terminated, | |
1719 | gboolean clear_, | |
1720 | guint element_size); | |
1721 | GArray* g_array_sized_new (gboolean zero_terminated, | |
1722 | gboolean clear_, | |
1723 | guint element_size, | |
1724 | guint reserved_size); | |
1725 | gchar* g_array_free (GArray *array, | |
1726 | gboolean free_segment); | |
1727 | GArray* g_array_append_vals (GArray *array, | |
1728 | gconstpointer data, | |
1729 | guint len); | |
1730 | GArray* g_array_prepend_vals (GArray *array, | |
1731 | gconstpointer data, | |
1732 | guint len); | |
1733 | GArray* g_array_insert_vals (GArray *array, | |
1734 | guint index_, | |
1735 | gconstpointer data, | |
1736 | guint len); | |
1737 | GArray* g_array_set_size (GArray *array, | |
1738 | guint length); | |
1739 | GArray* g_array_remove_index (GArray *array, | |
1740 | guint index_); | |
1741 | GArray* g_array_remove_index_fast (GArray *array, | |
1742 | guint index_); | |
1743 | GArray* g_array_remove_range (GArray *array, | |
1744 | guint index_, | |
1745 | guint length); | |
1746 | void g_array_sort (GArray *array, | |
1747 | GCompareFunc compare_func); | |
1748 | void g_array_sort_with_data (GArray *array, | |
1749 | GCompareDataFunc compare_func, | |
1750 | gpointer user_data); | |
1751 | ||
1752 | ||
1753 | ||
1754 | ||
1755 | ||
1756 | ||
1757 | GPtrArray* g_ptr_array_new (void); | |
1758 | GPtrArray* g_ptr_array_sized_new (guint reserved_size); | |
1759 | gpointer* g_ptr_array_free (GPtrArray *array, | |
1760 | gboolean free_seg); | |
1761 | void g_ptr_array_set_size (GPtrArray *array, | |
1762 | gint length); | |
1763 | gpointer g_ptr_array_remove_index (GPtrArray *array, | |
1764 | guint index_); | |
1765 | gpointer g_ptr_array_remove_index_fast (GPtrArray *array, | |
1766 | guint index_); | |
1767 | gboolean g_ptr_array_remove (GPtrArray *array, | |
1768 | gpointer data); | |
1769 | gboolean g_ptr_array_remove_fast (GPtrArray *array, | |
1770 | gpointer data); | |
1771 | void g_ptr_array_remove_range (GPtrArray *array, | |
1772 | guint index_, | |
1773 | guint length); | |
1774 | void g_ptr_array_add (GPtrArray *array, | |
1775 | gpointer data); | |
1776 | void g_ptr_array_sort (GPtrArray *array, | |
1777 | GCompareFunc compare_func); | |
1778 | void g_ptr_array_sort_with_data (GPtrArray *array, | |
1779 | GCompareDataFunc compare_func, | |
1780 | gpointer user_data); | |
1781 | void g_ptr_array_foreach (GPtrArray *array, | |
1782 | GFunc func, | |
1783 | gpointer user_data); | |
1784 | ||
1785 | ||
1786 | ||
1787 | ||
1788 | ||
1789 | ||
1790 | GByteArray* g_byte_array_new (void); | |
1791 | GByteArray* g_byte_array_sized_new (guint reserved_size); | |
1792 | guint8* g_byte_array_free (GByteArray *array, | |
1793 | gboolean free_segment); | |
1794 | GByteArray* g_byte_array_append (GByteArray *array, | |
1795 | const guint8 *data, | |
1796 | guint len); | |
1797 | GByteArray* g_byte_array_prepend (GByteArray *array, | |
1798 | const guint8 *data, | |
1799 | guint len); | |
1800 | GByteArray* g_byte_array_set_size (GByteArray *array, | |
1801 | guint length); | |
1802 | GByteArray* g_byte_array_remove_index (GByteArray *array, | |
1803 | guint index_); | |
1804 | GByteArray* g_byte_array_remove_index_fast (GByteArray *array, | |
1805 | guint index_); | |
1806 | GByteArray* g_byte_array_remove_range (GByteArray *array, | |
1807 | guint index_, | |
1808 | guint length); | |
1809 | void g_byte_array_sort (GByteArray *array, | |
1810 | GCompareFunc compare_func); | |
1811 | void g_byte_array_sort_with_data (GByteArray *array, | |
1812 | GCompareDataFunc compare_func, | |
1813 | gpointer user_data); | |
1814 | ||
1815 | ||
1816 | ||
1817 | # 32 "/usr/include/glib-2.0/glib.h" 2 | |
1818 | # 1 "/usr/include/glib-2.0/glib/gasyncqueue.h" 1 | |
1819 | # 30 "/usr/include/glib-2.0/glib/gasyncqueue.h" | |
1820 | # 1 "/usr/include/glib-2.0/glib/gthread.h" 1 | |
1821 | # 30 "/usr/include/glib-2.0/glib/gthread.h" | |
1822 | # 1 "/usr/include/glib-2.0/glib/gerror.h" 1 | |
1823 | # 24 "/usr/include/glib-2.0/glib/gerror.h" | |
1824 | # 1 "/usr/include/glib-2.0/glib/gquark.h" 1 | |
1825 | # 32 "/usr/include/glib-2.0/glib/gquark.h" | |
1826 | ||
1827 | ||
1828 | typedef guint32 GQuark; | |
1829 | ||
1830 | ||
1831 | ||
1832 | GQuark g_quark_try_string (const gchar *string); | |
1833 | GQuark g_quark_from_static_string (const gchar *string); | |
1834 | GQuark g_quark_from_string (const gchar *string); | |
1835 | const gchar* g_quark_to_string (GQuark quark) __attribute__((__const__)); | |
1836 | ||
1837 | const gchar* g_intern_string (const gchar *string); | |
1838 | const gchar* g_intern_static_string (const gchar *string); | |
1839 | ||
1840 | ||
1841 | ||
1842 | # 25 "/usr/include/glib-2.0/glib/gerror.h" 2 | |
1843 | ||
1844 | ||
1845 | ||
1846 | typedef struct _GError GError; | |
1847 | ||
1848 | struct _GError | |
1849 | { | |
1850 | GQuark domain; | |
1851 | gint code; | |
1852 | gchar *message; | |
1853 | }; | |
1854 | ||
1855 | GError* g_error_new (GQuark domain, | |
1856 | gint code, | |
1857 | const gchar *format, | |
1858 | ...) __attribute__((__format__ (__printf__, 3, 4))); | |
1859 | ||
1860 | GError* g_error_new_literal (GQuark domain, | |
1861 | gint code, | |
1862 | const gchar *message); | |
1863 | ||
1864 | void g_error_free (GError *error); | |
1865 | GError* g_error_copy (const GError *error); | |
1866 | ||
1867 | gboolean g_error_matches (const GError *error, | |
1868 | GQuark domain, | |
1869 | gint code); | |
1870 | ||
1871 | ||
1872 | ||
1873 | ||
1874 | void g_set_error (GError **err, | |
1875 | GQuark domain, | |
1876 | gint code, | |
1877 | const gchar *format, | |
1878 | ...) __attribute__((__format__ (__printf__, 4, 5))); | |
1879 | ||
1880 | ||
1881 | ||
1882 | void g_propagate_error (GError **dest, | |
1883 | GError *src); | |
1884 | ||
1885 | ||
1886 | void g_clear_error (GError **err); | |
1887 | ||
1888 | ||
1889 | ||
1890 | # 31 "/usr/include/glib-2.0/glib/gthread.h" 2 | |
1891 | ||
1892 | # 1 "/usr/include/glib-2.0/glib/gutils.h" 1 | |
1893 | # 31 "/usr/include/glib-2.0/glib/gutils.h" | |
1894 | # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stdarg.h" 1 3 4 | |
1895 | # 43 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stdarg.h" 3 4 | |
1896 | typedef __builtin_va_list __gnuc_va_list; | |
1897 | # 105 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stdarg.h" 3 4 | |
1898 | typedef __gnuc_va_list va_list; | |
1899 | # 32 "/usr/include/glib-2.0/glib/gutils.h" 2 | |
1900 | ||
1901 | ||
1902 | # 133 "/usr/include/glib-2.0/glib/gutils.h" | |
1903 | const gchar* g_get_user_name (void); | |
1904 | const gchar* g_get_real_name (void); | |
1905 | const gchar* g_get_home_dir (void); | |
1906 | const gchar* g_get_tmp_dir (void); | |
1907 | const gchar* g_get_host_name (void); | |
1908 | gchar* g_get_prgname (void); | |
1909 | void g_set_prgname (const gchar *prgname); | |
1910 | const gchar* g_get_application_name (void); | |
1911 | void g_set_application_name (const gchar *application_name); | |
1912 | ||
1913 | const gchar* g_get_user_data_dir (void); | |
1914 | const gchar* g_get_user_config_dir (void); | |
1915 | const gchar* g_get_user_cache_dir (void); | |
1916 | const gchar* const * g_get_system_data_dirs (void); | |
1917 | # 161 "/usr/include/glib-2.0/glib/gutils.h" | |
1918 | const gchar* const * g_get_system_config_dirs (void); | |
1919 | ||
1920 | const gchar* const * g_get_language_names (void); | |
1921 | # 187 "/usr/include/glib-2.0/glib/gutils.h" | |
1922 | typedef enum { | |
1923 | G_USER_DIRECTORY_DESKTOP, | |
1924 | G_USER_DIRECTORY_DOCUMENTS, | |
1925 | G_USER_DIRECTORY_DOWNLOAD, | |
1926 | G_USER_DIRECTORY_MUSIC, | |
1927 | G_USER_DIRECTORY_PICTURES, | |
1928 | G_USER_DIRECTORY_PUBLIC_SHARE, | |
1929 | G_USER_DIRECTORY_TEMPLATES, | |
1930 | G_USER_DIRECTORY_VIDEOS, | |
1931 | ||
1932 | G_USER_N_DIRECTORIES | |
1933 | } GUserDirectory; | |
1934 | ||
1935 | const gchar* g_get_user_special_dir (GUserDirectory directory); | |
1936 | ||
1937 | typedef struct _GDebugKey GDebugKey; | |
1938 | struct _GDebugKey | |
1939 | { | |
1940 | gchar *key; | |
1941 | guint value; | |
1942 | }; | |
1943 | ||
1944 | ||
1945 | ||
1946 | guint g_parse_debug_string (const gchar *string, | |
1947 | const GDebugKey *keys, | |
1948 | guint nkeys); | |
1949 | ||
1950 | gint g_snprintf (gchar *string, | |
1951 | gulong n, | |
1952 | gchar const *format, | |
1953 | ...) __attribute__((__format__ (__printf__, 3, 4))); | |
1954 | gint g_vsnprintf (gchar *string, | |
1955 | gulong n, | |
1956 | gchar const *format, | |
1957 | va_list args); | |
1958 | ||
1959 | ||
1960 | gboolean g_path_is_absolute (const gchar *file_name); | |
1961 | ||
1962 | ||
1963 | const gchar* g_path_skip_root (const gchar *file_name); | |
1964 | ||
1965 | ||
1966 | ||
1967 | ||
1968 | ||
1969 | ||
1970 | ||
1971 | const gchar* g_basename (const gchar *file_name); | |
1972 | # 246 "/usr/include/glib-2.0/glib/gutils.h" | |
1973 | gchar* g_get_current_dir (void); | |
1974 | gchar* g_path_get_basename (const gchar *file_name) __attribute__((__malloc__)); | |
1975 | gchar* g_path_get_dirname (const gchar *file_name) __attribute__((__malloc__)); | |
1976 | ||
1977 | ||
1978 | void g_nullify_pointer (gpointer *nullify_location); | |
1979 | # 262 "/usr/include/glib-2.0/glib/gutils.h" | |
1980 | const gchar* g_getenv (const gchar *variable); | |
1981 | gboolean g_setenv (const gchar *variable, | |
1982 | const gchar *value, | |
1983 | gboolean overwrite); | |
1984 | void g_unsetenv (const gchar *variable); | |
1985 | gchar** g_listenv (void); | |
1986 | ||
1987 | ||
1988 | const gchar* _g_getenv_nomalloc (const gchar *variable, | |
1989 | gchar buffer[1024]); | |
1990 | ||
1991 | ||
1992 | ||
1993 | ||
1994 | ||
1995 | typedef void (*GVoidFunc) (void); | |
1996 | # 288 "/usr/include/glib-2.0/glib/gutils.h" | |
1997 | void g_atexit (GVoidFunc func); | |
1998 | # 302 "/usr/include/glib-2.0/glib/gutils.h" | |
1999 | gchar* g_find_program_in_path (const gchar *program); | |
2000 | ||
2001 | ||
2002 | ||
2003 | extern __inline gint g_bit_nth_lsf (gulong mask, | |
2004 | gint nth_bit) __attribute__((__const__)); | |
2005 | extern __inline gint g_bit_nth_msf (gulong mask, | |
2006 | gint nth_bit) __attribute__((__const__)); | |
2007 | extern __inline guint g_bit_storage (gulong number) __attribute__((__const__)); | |
2008 | ||
2009 | ||
2010 | ||
2011 | ||
2012 | typedef struct _GTrashStack GTrashStack; | |
2013 | struct _GTrashStack | |
2014 | { | |
2015 | GTrashStack *next; | |
2016 | }; | |
2017 | ||
2018 | extern __inline void g_trash_stack_push (GTrashStack **stack_p, | |
2019 | gpointer data_p); | |
2020 | extern __inline gpointer g_trash_stack_pop (GTrashStack **stack_p); | |
2021 | extern __inline gpointer g_trash_stack_peek (GTrashStack **stack_p); | |
2022 | extern __inline guint g_trash_stack_height (GTrashStack **stack_p); | |
2023 | ||
2024 | ||
2025 | ||
2026 | ||
2027 | extern __inline gint | |
2028 | g_bit_nth_lsf (gulong mask, | |
2029 | gint nth_bit) | |
2030 | { | |
2031 | if ((__builtin_expect (__extension__ ({ int _g_boolean_var_; if (nth_bit < -1) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 0))) | |
2032 | nth_bit = -1; | |
2033 | while (nth_bit < ((4 * 8) - 1)) | |
2034 | { | |
2035 | nth_bit++; | |
2036 | if (mask & (1UL << nth_bit)) | |
2037 | return nth_bit; | |
2038 | } | |
2039 | return -1; | |
2040 | } | |
2041 | extern __inline gint | |
2042 | g_bit_nth_msf (gulong mask, | |
2043 | gint nth_bit) | |
2044 | { | |
2045 | if (nth_bit < 0 || (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (nth_bit > 4 * 8) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 0))) | |
2046 | nth_bit = 4 * 8; | |
2047 | while (nth_bit > 0) | |
2048 | { | |
2049 | nth_bit--; | |
2050 | if (mask & (1UL << nth_bit)) | |
2051 | return nth_bit; | |
2052 | } | |
2053 | return -1; | |
2054 | } | |
2055 | extern __inline guint | |
2056 | g_bit_storage (gulong number) | |
2057 | { | |
2058 | ||
2059 | return (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (number) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) ? | |
2060 | ((4 * 8 - 1) ^ __builtin_clzl(number)) + 1 : 1; | |
2061 | # 375 "/usr/include/glib-2.0/glib/gutils.h" | |
2062 | } | |
2063 | extern __inline void | |
2064 | g_trash_stack_push (GTrashStack **stack_p, | |
2065 | gpointer data_p) | |
2066 | { | |
2067 | GTrashStack *data = (GTrashStack *) data_p; | |
2068 | ||
2069 | data->next = *stack_p; | |
2070 | *stack_p = data; | |
2071 | } | |
2072 | extern __inline gpointer | |
2073 | g_trash_stack_pop (GTrashStack **stack_p) | |
2074 | { | |
2075 | GTrashStack *data; | |
2076 | ||
2077 | data = *stack_p; | |
2078 | if (data) | |
2079 | { | |
2080 | *stack_p = data->next; | |
2081 | ||
2082 | ||
2083 | ||
2084 | data->next = ((void *)0); | |
2085 | } | |
2086 | ||
2087 | return data; | |
2088 | } | |
2089 | extern __inline gpointer | |
2090 | g_trash_stack_peek (GTrashStack **stack_p) | |
2091 | { | |
2092 | GTrashStack *data; | |
2093 | ||
2094 | data = *stack_p; | |
2095 | ||
2096 | return data; | |
2097 | } | |
2098 | extern __inline guint | |
2099 | g_trash_stack_height (GTrashStack **stack_p) | |
2100 | { | |
2101 | GTrashStack *data; | |
2102 | guint i = 0; | |
2103 | ||
2104 | for (data = *stack_p; data; data = data->next) | |
2105 | i++; | |
2106 | ||
2107 | return i; | |
2108 | } | |
2109 | ||
2110 | ||
2111 | ||
2112 | ||
2113 | ||
2114 | ||
2115 | extern const guint glib_major_version; | |
2116 | extern const guint glib_minor_version; | |
2117 | extern const guint glib_micro_version; | |
2118 | extern const guint glib_interface_age; | |
2119 | extern const guint glib_binary_age; | |
2120 | ||
2121 | const gchar * glib_check_version (guint required_major, | |
2122 | guint required_minor, | |
2123 | guint required_micro); | |
2124 | ||
2125 | ||
2126 | ||
2127 | ||
2128 | ||
2129 | ||
2130 | ||
2131 | ||
2132 | # 33 "/usr/include/glib-2.0/glib/gthread.h" 2 | |
2133 | # 1 "/usr/include/glib-2.0/glib/gatomic.h" 1 | |
2134 | # 35 "/usr/include/glib-2.0/glib/gatomic.h" | |
2135 | ||
2136 | ||
2137 | gint g_atomic_int_exchange_and_add (volatile gint *atomic, | |
2138 | gint val); | |
2139 | void g_atomic_int_add (volatile gint *atomic, | |
2140 | gint val); | |
2141 | gboolean g_atomic_int_compare_and_exchange (volatile gint *atomic, | |
2142 | gint oldval, | |
2143 | gint newval); | |
2144 | gboolean g_atomic_pointer_compare_and_exchange (volatile gpointer *atomic, | |
2145 | gpointer oldval, | |
2146 | gpointer newval); | |
2147 | ||
2148 | gint g_atomic_int_get (volatile gint *atomic); | |
2149 | void g_atomic_int_set (volatile gint *atomic, | |
2150 | gint newval); | |
2151 | gpointer g_atomic_pointer_get (volatile gpointer *atomic); | |
2152 | void g_atomic_pointer_set (volatile gpointer *atomic, | |
2153 | gpointer newval); | |
2154 | # 66 "/usr/include/glib-2.0/glib/gatomic.h" | |
2155 | ||
2156 | # 34 "/usr/include/glib-2.0/glib/gthread.h" 2 | |
2157 | ||
2158 | ||
2159 | ||
2160 | ||
2161 | ||
2162 | ||
2163 | extern GQuark g_thread_error_quark (void); | |
2164 | ||
2165 | ||
2166 | typedef enum | |
2167 | { | |
2168 | G_THREAD_ERROR_AGAIN | |
2169 | } GThreadError; | |
2170 | ||
2171 | typedef gpointer (*GThreadFunc) (gpointer data); | |
2172 | ||
2173 | typedef enum | |
2174 | { | |
2175 | G_THREAD_PRIORITY_LOW, | |
2176 | G_THREAD_PRIORITY_NORMAL, | |
2177 | G_THREAD_PRIORITY_HIGH, | |
2178 | G_THREAD_PRIORITY_URGENT | |
2179 | } GThreadPriority; | |
2180 | ||
2181 | typedef struct _GThread GThread; | |
2182 | struct _GThread | |
2183 | { | |
2184 | ||
2185 | GThreadFunc func; | |
2186 | gpointer data; | |
2187 | gboolean joinable; | |
2188 | GThreadPriority priority; | |
2189 | }; | |
2190 | ||
2191 | typedef struct _GMutex GMutex; | |
2192 | typedef struct _GCond GCond; | |
2193 | typedef struct _GPrivate GPrivate; | |
2194 | typedef struct _GStaticPrivate GStaticPrivate; | |
2195 | ||
2196 | typedef struct _GThreadFunctions GThreadFunctions; | |
2197 | struct _GThreadFunctions | |
2198 | { | |
2199 | GMutex* (*mutex_new) (void); | |
2200 | void (*mutex_lock) (GMutex *mutex); | |
2201 | gboolean (*mutex_trylock) (GMutex *mutex); | |
2202 | void (*mutex_unlock) (GMutex *mutex); | |
2203 | void (*mutex_free) (GMutex *mutex); | |
2204 | GCond* (*cond_new) (void); | |
2205 | void (*cond_signal) (GCond *cond); | |
2206 | void (*cond_broadcast) (GCond *cond); | |
2207 | void (*cond_wait) (GCond *cond, | |
2208 | GMutex *mutex); | |
2209 | gboolean (*cond_timed_wait) (GCond *cond, | |
2210 | GMutex *mutex, | |
2211 | GTimeVal *end_time); | |
2212 | void (*cond_free) (GCond *cond); | |
2213 | GPrivate* (*private_new) (GDestroyNotify destructor); | |
2214 | gpointer (*private_get) (GPrivate *private_key); | |
2215 | void (*private_set) (GPrivate *private_key, | |
2216 | gpointer data); | |
2217 | void (*thread_create) (GThreadFunc func, | |
2218 | gpointer data, | |
2219 | gulong stack_size, | |
2220 | gboolean joinable, | |
2221 | gboolean bound, | |
2222 | GThreadPriority priority, | |
2223 | gpointer thread, | |
2224 | GError **error); | |
2225 | void (*thread_yield) (void); | |
2226 | void (*thread_join) (gpointer thread); | |
2227 | void (*thread_exit) (void); | |
2228 | void (*thread_set_priority)(gpointer thread, | |
2229 | GThreadPriority priority); | |
2230 | void (*thread_self) (gpointer thread); | |
2231 | gboolean (*thread_equal) (gpointer thread1, | |
2232 | gpointer thread2); | |
2233 | }; | |
2234 | ||
2235 | extern GThreadFunctions g_thread_functions_for_glib_use; | |
2236 | extern gboolean g_thread_use_default_impl; | |
2237 | extern gboolean g_threads_got_initialized; | |
2238 | ||
2239 | extern guint64 (*g_thread_gettime) (void); | |
2240 | ||
2241 | ||
2242 | ||
2243 | ||
2244 | ||
2245 | void g_thread_init (GThreadFunctions *vtable); | |
2246 | # 131 "/usr/include/glib-2.0/glib/gthread.h" | |
2247 | void g_thread_init_with_errorcheck_mutexes (GThreadFunctions* vtable); | |
2248 | # 141 "/usr/include/glib-2.0/glib/gthread.h" | |
2249 | GMutex* g_static_mutex_get_mutex_impl (GMutex **mutex); | |
2250 | # 212 "/usr/include/glib-2.0/glib/gthread.h" | |
2251 | GThread* g_thread_create_full (GThreadFunc func, | |
2252 | gpointer data, | |
2253 | gulong stack_size, | |
2254 | gboolean joinable, | |
2255 | gboolean bound, | |
2256 | GThreadPriority priority, | |
2257 | GError **error); | |
2258 | GThread* g_thread_self (void); | |
2259 | void g_thread_exit (gpointer retval); | |
2260 | gpointer g_thread_join (GThread *thread); | |
2261 | ||
2262 | void g_thread_set_priority (GThread *thread, | |
2263 | GThreadPriority priority); | |
2264 | # 237 "/usr/include/glib-2.0/glib/gthread.h" | |
2265 | void g_static_mutex_init (GStaticMutex *mutex); | |
2266 | void g_static_mutex_free (GStaticMutex *mutex); | |
2267 | ||
2268 | struct _GStaticPrivate | |
2269 | { | |
2270 | ||
2271 | guint index; | |
2272 | }; | |
2273 | ||
2274 | void g_static_private_init (GStaticPrivate *private_key); | |
2275 | gpointer g_static_private_get (GStaticPrivate *private_key); | |
2276 | void g_static_private_set (GStaticPrivate *private_key, | |
2277 | gpointer data, | |
2278 | GDestroyNotify notify); | |
2279 | void g_static_private_free (GStaticPrivate *private_key); | |
2280 | ||
2281 | typedef struct _GStaticRecMutex GStaticRecMutex; | |
2282 | struct _GStaticRecMutex | |
2283 | { | |
2284 | ||
2285 | GStaticMutex mutex; | |
2286 | guint depth; | |
2287 | GSystemThread owner; | |
2288 | }; | |
2289 | ||
2290 | ||
2291 | void g_static_rec_mutex_init (GStaticRecMutex *mutex); | |
2292 | void g_static_rec_mutex_lock (GStaticRecMutex *mutex); | |
2293 | gboolean g_static_rec_mutex_trylock (GStaticRecMutex *mutex); | |
2294 | void g_static_rec_mutex_unlock (GStaticRecMutex *mutex); | |
2295 | void g_static_rec_mutex_lock_full (GStaticRecMutex *mutex, | |
2296 | guint depth); | |
2297 | guint g_static_rec_mutex_unlock_full (GStaticRecMutex *mutex); | |
2298 | void g_static_rec_mutex_free (GStaticRecMutex *mutex); | |
2299 | ||
2300 | typedef struct _GStaticRWLock GStaticRWLock; | |
2301 | struct _GStaticRWLock | |
2302 | { | |
2303 | ||
2304 | GStaticMutex mutex; | |
2305 | GCond *read_cond; | |
2306 | GCond *write_cond; | |
2307 | guint read_counter; | |
2308 | gboolean have_writer; | |
2309 | guint want_to_read; | |
2310 | guint want_to_write; | |
2311 | }; | |
2312 | ||
2313 | ||
2314 | ||
2315 | void g_static_rw_lock_init (GStaticRWLock* lock); | |
2316 | void g_static_rw_lock_reader_lock (GStaticRWLock* lock); | |
2317 | gboolean g_static_rw_lock_reader_trylock (GStaticRWLock* lock); | |
2318 | void g_static_rw_lock_reader_unlock (GStaticRWLock* lock); | |
2319 | void g_static_rw_lock_writer_lock (GStaticRWLock* lock); | |
2320 | gboolean g_static_rw_lock_writer_trylock (GStaticRWLock* lock); | |
2321 | void g_static_rw_lock_writer_unlock (GStaticRWLock* lock); | |
2322 | void g_static_rw_lock_free (GStaticRWLock* lock); | |
2323 | ||
2324 | void g_thread_foreach (GFunc thread_func, | |
2325 | gpointer user_data); | |
2326 | ||
2327 | typedef enum | |
2328 | { | |
2329 | G_ONCE_STATUS_NOTCALLED, | |
2330 | G_ONCE_STATUS_PROGRESS, | |
2331 | G_ONCE_STATUS_READY | |
2332 | } GOnceStatus; | |
2333 | ||
2334 | typedef struct _GOnce GOnce; | |
2335 | struct _GOnce | |
2336 | { | |
2337 | volatile GOnceStatus status; | |
2338 | volatile gpointer retval; | |
2339 | }; | |
2340 | ||
2341 | ||
2342 | ||
2343 | gpointer g_once_impl (GOnce *once, GThreadFunc func, gpointer arg); | |
2344 | # 327 "/usr/include/glib-2.0/glib/gthread.h" | |
2345 | extern __inline gboolean g_once_init_enter (volatile gsize *value_location); | |
2346 | gboolean g_once_init_enter_impl (volatile gsize *value_location); | |
2347 | void g_once_init_leave (volatile gsize *value_location, | |
2348 | gsize initialization_value); | |
2349 | ||
2350 | extern __inline gboolean | |
2351 | g_once_init_enter (volatile gsize *value_location) | |
2352 | { | |
2353 | if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (g_atomic_pointer_get ((void*volatile*) value_location) != ((void *)0)) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) | |
2354 | return (0); | |
2355 | else | |
2356 | return g_once_init_enter_impl (value_location); | |
2357 | } | |
2358 | # 351 "/usr/include/glib-2.0/glib/gthread.h" | |
2359 | extern void glib_dummy_decl (void); | |
2360 | # 394 "/usr/include/glib-2.0/glib/gthread.h" | |
2361 | ||
2362 | # 31 "/usr/include/glib-2.0/glib/gasyncqueue.h" 2 | |
2363 | ||
2364 | ||
2365 | ||
2366 | typedef struct _GAsyncQueue GAsyncQueue; | |
2367 | ||
2368 | ||
2369 | ||
2370 | ||
2371 | GAsyncQueue* g_async_queue_new (void); | |
2372 | ||
2373 | ||
2374 | ||
2375 | ||
2376 | ||
2377 | void g_async_queue_lock (GAsyncQueue *queue); | |
2378 | void g_async_queue_unlock (GAsyncQueue *queue); | |
2379 | ||
2380 | ||
2381 | GAsyncQueue* g_async_queue_ref (GAsyncQueue *queue); | |
2382 | void g_async_queue_unref (GAsyncQueue *queue); | |
2383 | ||
2384 | ||
2385 | ||
2386 | void g_async_queue_ref_unlocked (GAsyncQueue *queue); | |
2387 | void g_async_queue_unref_and_unlock (GAsyncQueue *queue); | |
2388 | ||
2389 | ||
2390 | ||
2391 | void g_async_queue_push (GAsyncQueue *queue, | |
2392 | gpointer data); | |
2393 | void g_async_queue_push_unlocked (GAsyncQueue *queue, | |
2394 | gpointer data); | |
2395 | ||
2396 | void g_async_queue_push_sorted (GAsyncQueue *queue, | |
2397 | gpointer data, | |
2398 | GCompareDataFunc func, | |
2399 | gpointer user_data); | |
2400 | void g_async_queue_push_sorted_unlocked (GAsyncQueue *queue, | |
2401 | gpointer data, | |
2402 | GCompareDataFunc func, | |
2403 | gpointer user_data); | |
2404 | ||
2405 | ||
2406 | ||
2407 | ||
2408 | gpointer g_async_queue_pop (GAsyncQueue *queue); | |
2409 | gpointer g_async_queue_pop_unlocked (GAsyncQueue *queue); | |
2410 | ||
2411 | ||
2412 | gpointer g_async_queue_try_pop (GAsyncQueue *queue); | |
2413 | gpointer g_async_queue_try_pop_unlocked (GAsyncQueue *queue); | |
2414 | ||
2415 | ||
2416 | ||
2417 | ||
2418 | ||
2419 | ||
2420 | gpointer g_async_queue_timed_pop (GAsyncQueue *queue, | |
2421 | GTimeVal *end_time); | |
2422 | gpointer g_async_queue_timed_pop_unlocked (GAsyncQueue *queue, | |
2423 | GTimeVal *end_time); | |
2424 | # 100 "/usr/include/glib-2.0/glib/gasyncqueue.h" | |
2425 | gint g_async_queue_length (GAsyncQueue *queue); | |
2426 | gint g_async_queue_length_unlocked (GAsyncQueue *queue); | |
2427 | void g_async_queue_sort (GAsyncQueue *queue, | |
2428 | GCompareDataFunc func, | |
2429 | gpointer user_data); | |
2430 | void g_async_queue_sort_unlocked (GAsyncQueue *queue, | |
2431 | GCompareDataFunc func, | |
2432 | gpointer user_data); | |
2433 | ||
2434 | ||
2435 | GMutex* _g_async_queue_get_mutex (GAsyncQueue *queue); | |
2436 | ||
2437 | ||
2438 | # 33 "/usr/include/glib-2.0/glib.h" 2 | |
2439 | ||
2440 | # 1 "/usr/include/glib-2.0/glib/gbacktrace.h" 1 | |
2441 | # 32 "/usr/include/glib-2.0/glib/gbacktrace.h" | |
2442 | ||
2443 | # 43 "/usr/include/glib-2.0/glib/gbacktrace.h" | |
2444 | void g_on_error_query (const gchar *prg_name); | |
2445 | void g_on_error_stack_trace (const gchar *prg_name); | |
2446 | # 59 "/usr/include/glib-2.0/glib/gbacktrace.h" | |
2447 | ||
2448 | # 35 "/usr/include/glib-2.0/glib.h" 2 | |
2449 | # 1 "/usr/include/glib-2.0/glib/gbase64.h" 1 | |
2450 | # 26 "/usr/include/glib-2.0/glib/gbase64.h" | |
2451 | ||
2452 | ||
2453 | gsize g_base64_encode_step (const guchar *in, | |
2454 | gsize len, | |
2455 | gboolean break_lines, | |
2456 | gchar *out, | |
2457 | gint *state, | |
2458 | gint *save); | |
2459 | gsize g_base64_encode_close (gboolean break_lines, | |
2460 | gchar *out, | |
2461 | gint *state, | |
2462 | gint *save); | |
2463 | gchar* g_base64_encode (const guchar *data, | |
2464 | gsize len) __attribute__((__malloc__)); | |
2465 | gsize g_base64_decode_step (const gchar *in, | |
2466 | gsize len, | |
2467 | guchar *out, | |
2468 | gint *state, | |
2469 | guint *save); | |
2470 | guchar *g_base64_decode (const gchar *text, | |
2471 | gsize *out_len) __attribute__((__malloc__)); | |
2472 | ||
2473 | ||
2474 | # 36 "/usr/include/glib-2.0/glib.h" 2 | |
2475 | # 1 "/usr/include/glib-2.0/glib/gbookmarkfile.h" 1 | |
2476 | # 24 "/usr/include/glib-2.0/glib/gbookmarkfile.h" | |
2477 | # 1 "/usr/include/time.h" 1 3 4 | |
2478 | # 31 "/usr/include/time.h" 3 4 | |
2479 | ||
2480 | ||
2481 | ||
2482 | ||
2483 | ||
2484 | ||
2485 | ||
2486 | ||
2487 | # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 1 3 4 | |
2488 | # 40 "/usr/include/time.h" 2 3 4 | |
2489 | ||
2490 | ||
2491 | ||
2492 | # 1 "/usr/include/bits/time.h" 1 3 4 | |
2493 | # 44 "/usr/include/time.h" 2 3 4 | |
2494 | # 57 "/usr/include/time.h" 3 4 | |
2495 | # 1 "/usr/include/bits/types.h" 1 3 4 | |
2496 | # 28 "/usr/include/bits/types.h" 3 4 | |
2497 | # 1 "/usr/include/bits/wordsize.h" 1 3 4 | |
2498 | # 29 "/usr/include/bits/types.h" 2 3 4 | |
2499 | ||
2500 | ||
2501 | typedef unsigned char __u_char; | |
2502 | typedef unsigned short int __u_short; | |
2503 | typedef unsigned int __u_int; | |
2504 | typedef unsigned long int __u_long; | |
2505 | ||
2506 | ||
2507 | typedef signed char __int8_t; | |
2508 | typedef unsigned char __uint8_t; | |
2509 | typedef signed short int __int16_t; | |
2510 | typedef unsigned short int __uint16_t; | |
2511 | typedef signed int __int32_t; | |
2512 | typedef unsigned int __uint32_t; | |
2513 | ||
2514 | ||
2515 | ||
2516 | ||
2517 | __extension__ typedef signed long long int __int64_t; | |
2518 | __extension__ typedef unsigned long long int __uint64_t; | |
2519 | ||
2520 | ||
2521 | ||
2522 | ||
2523 | ||
2524 | ||
2525 | ||
2526 | __extension__ typedef long long int __quad_t; | |
2527 | __extension__ typedef unsigned long long int __u_quad_t; | |
2528 | # 131 "/usr/include/bits/types.h" 3 4 | |
2529 | # 1 "/usr/include/bits/typesizes.h" 1 3 4 | |
2530 | # 132 "/usr/include/bits/types.h" 2 3 4 | |
2531 | ||
2532 | ||
2533 | __extension__ typedef __u_quad_t __dev_t; | |
2534 | __extension__ typedef unsigned int __uid_t; | |
2535 | __extension__ typedef unsigned int __gid_t; | |
2536 | __extension__ typedef unsigned long int __ino_t; | |
2537 | __extension__ typedef __u_quad_t __ino64_t; | |
2538 | __extension__ typedef unsigned int __mode_t; | |
2539 | __extension__ typedef unsigned int __nlink_t; | |
2540 | __extension__ typedef long int __off_t; | |
2541 | __extension__ typedef __quad_t __off64_t; | |
2542 | __extension__ typedef int __pid_t; | |
2543 | __extension__ typedef struct { int __val[2]; } __fsid_t; | |
2544 | __extension__ typedef long int __clock_t; | |
2545 | __extension__ typedef unsigned long int __rlim_t; | |
2546 | __extension__ typedef __u_quad_t __rlim64_t; | |
2547 | __extension__ typedef unsigned int __id_t; | |
2548 | __extension__ typedef long int __time_t; | |
2549 | __extension__ typedef unsigned int __useconds_t; | |
2550 | __extension__ typedef long int __suseconds_t; | |
2551 | ||
2552 | __extension__ typedef int __daddr_t; | |
2553 | __extension__ typedef long int __swblk_t; | |
2554 | __extension__ typedef int __key_t; | |
2555 | ||
2556 | ||
2557 | __extension__ typedef int __clockid_t; | |
2558 | ||
2559 | ||
2560 | __extension__ typedef void * __timer_t; | |
2561 | ||
2562 | ||
2563 | __extension__ typedef long int __blksize_t; | |
2564 | ||
2565 | ||
2566 | ||
2567 | ||
2568 | __extension__ typedef long int __blkcnt_t; | |
2569 | __extension__ typedef __quad_t __blkcnt64_t; | |
2570 | ||
2571 | ||
2572 | __extension__ typedef unsigned long int __fsblkcnt_t; | |
2573 | __extension__ typedef __u_quad_t __fsblkcnt64_t; | |
2574 | ||
2575 | ||
2576 | __extension__ typedef unsigned long int __fsfilcnt_t; | |
2577 | __extension__ typedef __u_quad_t __fsfilcnt64_t; | |
2578 | ||
2579 | __extension__ typedef int __ssize_t; | |
2580 | ||
2581 | ||
2582 | ||
2583 | typedef __off64_t __loff_t; | |
2584 | typedef __quad_t *__qaddr_t; | |
2585 | typedef char *__caddr_t; | |
2586 | ||
2587 | ||
2588 | __extension__ typedef int __intptr_t; | |
2589 | ||
2590 | ||
2591 | __extension__ typedef unsigned int __socklen_t; | |
2592 | # 58 "/usr/include/time.h" 2 3 4 | |
2593 | ||
2594 | ||
2595 | ||
2596 | typedef __clock_t clock_t; | |
2597 | ||
2598 | ||
2599 | ||
2600 | # 75 "/usr/include/time.h" 3 4 | |
2601 | ||
2602 | ||
2603 | typedef __time_t time_t; | |
2604 | ||
2605 | ||
2606 | ||
2607 | # 93 "/usr/include/time.h" 3 4 | |
2608 | typedef __clockid_t clockid_t; | |
2609 | # 105 "/usr/include/time.h" 3 4 | |
2610 | typedef __timer_t timer_t; | |
2611 | # 121 "/usr/include/time.h" 3 4 | |
2612 | struct timespec | |
2613 | { | |
2614 | __time_t tv_sec; | |
2615 | long int tv_nsec; | |
2616 | }; | |
2617 | ||
2618 | ||
2619 | ||
2620 | ||
2621 | ||
2622 | ||
2623 | ||
2624 | ||
2625 | struct tm | |
2626 | { | |
2627 | int tm_sec; | |
2628 | int tm_min; | |
2629 | int tm_hour; | |
2630 | int tm_mday; | |
2631 | int tm_mon; | |
2632 | int tm_year; | |
2633 | int tm_wday; | |
2634 | int tm_yday; | |
2635 | int tm_isdst; | |
2636 | ||
2637 | ||
2638 | long int tm_gmtoff; | |
2639 | __const char *tm_zone; | |
2640 | ||
2641 | ||
2642 | ||
2643 | ||
2644 | }; | |
2645 | ||
2646 | ||
2647 | ||
2648 | ||
2649 | ||
2650 | ||
2651 | ||
2652 | ||
2653 | struct itimerspec | |
2654 | { | |
2655 | struct timespec it_interval; | |
2656 | struct timespec it_value; | |
2657 | }; | |
2658 | ||
2659 | ||
2660 | struct sigevent; | |
2661 | ||
2662 | ||
2663 | ||
2664 | ||
2665 | ||
2666 | typedef __pid_t pid_t; | |
2667 | ||
2668 | ||
2669 | ||
2670 | ||
2671 | ||
2672 | ||
2673 | ||
2674 | ||
2675 | extern clock_t clock (void) __attribute__ ((__nothrow__)); | |
2676 | ||
2677 | ||
2678 | extern time_t time (time_t *__timer) __attribute__ ((__nothrow__)); | |
2679 | ||
2680 | ||
2681 | extern double difftime (time_t __time1, time_t __time0) | |
2682 | __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
2683 | ||
2684 | ||
2685 | extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__)); | |
2686 | ||
2687 | ||
2688 | ||
2689 | ||
2690 | ||
2691 | extern size_t strftime (char *__restrict __s, size_t __maxsize, | |
2692 | __const char *__restrict __format, | |
2693 | __const struct tm *__restrict __tp) __attribute__ ((__nothrow__)); | |
2694 | ||
2695 | # 229 "/usr/include/time.h" 3 4 | |
2696 | ||
2697 | ||
2698 | ||
2699 | extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__)); | |
2700 | ||
2701 | ||
2702 | ||
2703 | extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__)); | |
2704 | ||
2705 | ||
2706 | ||
2707 | ||
2708 | ||
2709 | extern struct tm *gmtime_r (__const time_t *__restrict __timer, | |
2710 | struct tm *__restrict __tp) __attribute__ ((__nothrow__)); | |
2711 | ||
2712 | ||
2713 | ||
2714 | extern struct tm *localtime_r (__const time_t *__restrict __timer, | |
2715 | struct tm *__restrict __tp) __attribute__ ((__nothrow__)); | |
2716 | ||
2717 | ||
2718 | ||
2719 | ||
2720 | ||
2721 | extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__)); | |
2722 | ||
2723 | ||
2724 | extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__)); | |
2725 | ||
2726 | ||
2727 | ||
2728 | ||
2729 | ||
2730 | ||
2731 | ||
2732 | extern char *asctime_r (__const struct tm *__restrict __tp, | |
2733 | char *__restrict __buf) __attribute__ ((__nothrow__)); | |
2734 | ||
2735 | ||
2736 | extern char *ctime_r (__const time_t *__restrict __timer, | |
2737 | char *__restrict __buf) __attribute__ ((__nothrow__)); | |
2738 | ||
2739 | ||
2740 | ||
2741 | ||
2742 | extern char *__tzname[2]; | |
2743 | extern int __daylight; | |
2744 | extern long int __timezone; | |
2745 | ||
2746 | ||
2747 | ||
2748 | ||
2749 | extern char *tzname[2]; | |
2750 | ||
2751 | ||
2752 | ||
2753 | extern void tzset (void) __attribute__ ((__nothrow__)); | |
2754 | ||
2755 | ||
2756 | ||
2757 | extern int daylight; | |
2758 | extern long int timezone; | |
2759 | ||
2760 | ||
2761 | ||
2762 | ||
2763 | ||
2764 | extern int stime (__const time_t *__when) __attribute__ ((__nothrow__)); | |
2765 | # 312 "/usr/include/time.h" 3 4 | |
2766 | extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__)); | |
2767 | ||
2768 | ||
2769 | extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__)); | |
2770 | ||
2771 | ||
2772 | extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); | |
2773 | # 327 "/usr/include/time.h" 3 4 | |
2774 | extern int nanosleep (__const struct timespec *__requested_time, | |
2775 | struct timespec *__remaining); | |
2776 | ||
2777 | ||
2778 | ||
2779 | extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__)); | |
2780 | ||
2781 | ||
2782 | extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__)); | |
2783 | ||
2784 | ||
2785 | extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp) | |
2786 | __attribute__ ((__nothrow__)); | |
2787 | ||
2788 | ||
2789 | ||
2790 | ||
2791 | ||
2792 | ||
2793 | extern int clock_nanosleep (clockid_t __clock_id, int __flags, | |
2794 | __const struct timespec *__req, | |
2795 | struct timespec *__rem); | |
2796 | ||
2797 | ||
2798 | extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__)); | |
2799 | ||
2800 | ||
2801 | ||
2802 | ||
2803 | extern int timer_create (clockid_t __clock_id, | |
2804 | struct sigevent *__restrict __evp, | |
2805 | timer_t *__restrict __timerid) __attribute__ ((__nothrow__)); | |
2806 | ||
2807 | ||
2808 | extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__)); | |
2809 | ||
2810 | ||
2811 | extern int timer_settime (timer_t __timerid, int __flags, | |
2812 | __const struct itimerspec *__restrict __value, | |
2813 | struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__)); | |
2814 | ||
2815 | ||
2816 | extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) | |
2817 | __attribute__ ((__nothrow__)); | |
2818 | ||
2819 | ||
2820 | extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__)); | |
2821 | # 416 "/usr/include/time.h" 3 4 | |
2822 | ||
2823 | # 25 "/usr/include/glib-2.0/glib/gbookmarkfile.h" 2 | |
2824 | ||
2825 | ||
2826 | ||
2827 | ||
2828 | ||
2829 | ||
2830 | ||
2831 | typedef enum | |
2832 | { | |
2833 | G_BOOKMARK_FILE_ERROR_INVALID_URI, | |
2834 | G_BOOKMARK_FILE_ERROR_INVALID_VALUE, | |
2835 | G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED, | |
2836 | G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND, | |
2837 | G_BOOKMARK_FILE_ERROR_READ, | |
2838 | G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING, | |
2839 | G_BOOKMARK_FILE_ERROR_WRITE, | |
2840 | G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND | |
2841 | } GBookmarkFileError; | |
2842 | ||
2843 | GQuark g_bookmark_file_error_quark (void); | |
2844 | ||
2845 | ||
2846 | ||
2847 | ||
2848 | typedef struct _GBookmarkFile GBookmarkFile; | |
2849 | ||
2850 | GBookmarkFile *g_bookmark_file_new (void); | |
2851 | void g_bookmark_file_free (GBookmarkFile *bookmark); | |
2852 | ||
2853 | gboolean g_bookmark_file_load_from_file (GBookmarkFile *bookmark, | |
2854 | const gchar *filename, | |
2855 | GError **error); | |
2856 | gboolean g_bookmark_file_load_from_data (GBookmarkFile *bookmark, | |
2857 | const gchar *data, | |
2858 | gsize length, | |
2859 | GError **error); | |
2860 | gboolean g_bookmark_file_load_from_data_dirs (GBookmarkFile *bookmark, | |
2861 | const gchar *file, | |
2862 | gchar **full_path, | |
2863 | GError **error); | |
2864 | gchar * g_bookmark_file_to_data (GBookmarkFile *bookmark, | |
2865 | gsize *length, | |
2866 | GError **error) __attribute__((__malloc__)); | |
2867 | gboolean g_bookmark_file_to_file (GBookmarkFile *bookmark, | |
2868 | const gchar *filename, | |
2869 | GError **error); | |
2870 | ||
2871 | void g_bookmark_file_set_title (GBookmarkFile *bookmark, | |
2872 | const gchar *uri, | |
2873 | const gchar *title); | |
2874 | gchar * g_bookmark_file_get_title (GBookmarkFile *bookmark, | |
2875 | const gchar *uri, | |
2876 | GError **error) __attribute__((__malloc__)); | |
2877 | void g_bookmark_file_set_description (GBookmarkFile *bookmark, | |
2878 | const gchar *uri, | |
2879 | const gchar *description); | |
2880 | gchar * g_bookmark_file_get_description (GBookmarkFile *bookmark, | |
2881 | const gchar *uri, | |
2882 | GError **error) __attribute__((__malloc__)); | |
2883 | void g_bookmark_file_set_mime_type (GBookmarkFile *bookmark, | |
2884 | const gchar *uri, | |
2885 | const gchar *mime_type); | |
2886 | gchar * g_bookmark_file_get_mime_type (GBookmarkFile *bookmark, | |
2887 | const gchar *uri, | |
2888 | GError **error) __attribute__((__malloc__)); | |
2889 | void g_bookmark_file_set_groups (GBookmarkFile *bookmark, | |
2890 | const gchar *uri, | |
2891 | const gchar **groups, | |
2892 | gsize length); | |
2893 | void g_bookmark_file_add_group (GBookmarkFile *bookmark, | |
2894 | const gchar *uri, | |
2895 | const gchar *group); | |
2896 | gboolean g_bookmark_file_has_group (GBookmarkFile *bookmark, | |
2897 | const gchar *uri, | |
2898 | const gchar *group, | |
2899 | GError **error); | |
2900 | gchar ** g_bookmark_file_get_groups (GBookmarkFile *bookmark, | |
2901 | const gchar *uri, | |
2902 | gsize *length, | |
2903 | GError **error) __attribute__((__malloc__)); | |
2904 | void g_bookmark_file_add_application (GBookmarkFile *bookmark, | |
2905 | const gchar *uri, | |
2906 | const gchar *name, | |
2907 | const gchar *exec); | |
2908 | gboolean g_bookmark_file_has_application (GBookmarkFile *bookmark, | |
2909 | const gchar *uri, | |
2910 | const gchar *name, | |
2911 | GError **error); | |
2912 | gchar ** g_bookmark_file_get_applications (GBookmarkFile *bookmark, | |
2913 | const gchar *uri, | |
2914 | gsize *length, | |
2915 | GError **error) __attribute__((__malloc__)); | |
2916 | gboolean g_bookmark_file_set_app_info (GBookmarkFile *bookmark, | |
2917 | const gchar *uri, | |
2918 | const gchar *name, | |
2919 | const gchar *exec, | |
2920 | gint count, | |
2921 | time_t stamp, | |
2922 | GError **error); | |
2923 | gboolean g_bookmark_file_get_app_info (GBookmarkFile *bookmark, | |
2924 | const gchar *uri, | |
2925 | const gchar *name, | |
2926 | gchar **exec, | |
2927 | guint *count, | |
2928 | time_t *stamp, | |
2929 | GError **error); | |
2930 | void g_bookmark_file_set_is_private (GBookmarkFile *bookmark, | |
2931 | const gchar *uri, | |
2932 | gboolean is_private); | |
2933 | gboolean g_bookmark_file_get_is_private (GBookmarkFile *bookmark, | |
2934 | const gchar *uri, | |
2935 | GError **error); | |
2936 | void g_bookmark_file_set_icon (GBookmarkFile *bookmark, | |
2937 | const gchar *uri, | |
2938 | const gchar *href, | |
2939 | const gchar *mime_type); | |
2940 | gboolean g_bookmark_file_get_icon (GBookmarkFile *bookmark, | |
2941 | const gchar *uri, | |
2942 | gchar **href, | |
2943 | gchar **mime_type, | |
2944 | GError **error); | |
2945 | void g_bookmark_file_set_added (GBookmarkFile *bookmark, | |
2946 | const gchar *uri, | |
2947 | time_t added); | |
2948 | time_t g_bookmark_file_get_added (GBookmarkFile *bookmark, | |
2949 | const gchar *uri, | |
2950 | GError **error); | |
2951 | void g_bookmark_file_set_modified (GBookmarkFile *bookmark, | |
2952 | const gchar *uri, | |
2953 | time_t modified); | |
2954 | time_t g_bookmark_file_get_modified (GBookmarkFile *bookmark, | |
2955 | const gchar *uri, | |
2956 | GError **error); | |
2957 | void g_bookmark_file_set_visited (GBookmarkFile *bookmark, | |
2958 | const gchar *uri, | |
2959 | time_t visited); | |
2960 | time_t g_bookmark_file_get_visited (GBookmarkFile *bookmark, | |
2961 | const gchar *uri, | |
2962 | GError **error); | |
2963 | gboolean g_bookmark_file_has_item (GBookmarkFile *bookmark, | |
2964 | const gchar *uri); | |
2965 | gint g_bookmark_file_get_size (GBookmarkFile *bookmark); | |
2966 | gchar ** g_bookmark_file_get_uris (GBookmarkFile *bookmark, | |
2967 | gsize *length) __attribute__((__malloc__)); | |
2968 | gboolean g_bookmark_file_remove_group (GBookmarkFile *bookmark, | |
2969 | const gchar *uri, | |
2970 | const gchar *group, | |
2971 | GError **error); | |
2972 | gboolean g_bookmark_file_remove_application (GBookmarkFile *bookmark, | |
2973 | const gchar *uri, | |
2974 | const gchar *name, | |
2975 | GError **error); | |
2976 | gboolean g_bookmark_file_remove_item (GBookmarkFile *bookmark, | |
2977 | const gchar *uri, | |
2978 | GError **error); | |
2979 | gboolean g_bookmark_file_move_item (GBookmarkFile *bookmark, | |
2980 | const gchar *old_uri, | |
2981 | const gchar *new_uri, | |
2982 | GError **error); | |
2983 | ||
2984 | ||
2985 | # 37 "/usr/include/glib-2.0/glib.h" 2 | |
2986 | # 1 "/usr/include/glib-2.0/glib/gcache.h" 1 | |
2987 | # 30 "/usr/include/glib-2.0/glib/gcache.h" | |
2988 | # 1 "/usr/include/glib-2.0/glib/glist.h" 1 | |
2989 | # 30 "/usr/include/glib-2.0/glib/glist.h" | |
2990 | # 1 "/usr/include/glib-2.0/glib/gmem.h" 1 | |
2991 | # 30 "/usr/include/glib-2.0/glib/gmem.h" | |
2992 | # 1 "/usr/include/glib-2.0/glib/gslice.h" 1 | |
2993 | # 28 "/usr/include/glib-2.0/glib/gslice.h" | |
2994 | ||
2995 | ||
2996 | ||
2997 | ||
2998 | gpointer g_slice_alloc (gsize block_size) __attribute__((__malloc__)); | |
2999 | gpointer g_slice_alloc0 (gsize block_size) __attribute__((__malloc__)); | |
3000 | gpointer g_slice_copy (gsize block_size, | |
3001 | gconstpointer mem_block) __attribute__((__malloc__)); | |
3002 | void g_slice_free1 (gsize block_size, | |
3003 | gpointer mem_block); | |
3004 | void g_slice_free_chain_with_offset (gsize block_size, | |
3005 | gpointer mem_chain, | |
3006 | gsize next_offset); | |
3007 | # 70 "/usr/include/glib-2.0/glib/gslice.h" | |
3008 | typedef enum { | |
3009 | G_SLICE_CONFIG_ALWAYS_MALLOC = 1, | |
3010 | G_SLICE_CONFIG_BYPASS_MAGAZINES, | |
3011 | G_SLICE_CONFIG_WORKING_SET_MSECS, | |
3012 | G_SLICE_CONFIG_COLOR_INCREMENT, | |
3013 | G_SLICE_CONFIG_CHUNK_SIZES, | |
3014 | G_SLICE_CONFIG_CONTENTION_COUNTER | |
3015 | } GSliceConfig; | |
3016 | void g_slice_set_config (GSliceConfig ckey, gint64 value); | |
3017 | gint64 g_slice_get_config (GSliceConfig ckey); | |
3018 | gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values); | |
3019 | ||
3020 | ||
3021 | # 31 "/usr/include/glib-2.0/glib/gmem.h" 2 | |
3022 | ||
3023 | ||
3024 | ||
3025 | ||
3026 | typedef struct _GMemVTable GMemVTable; | |
3027 | # 47 "/usr/include/glib-2.0/glib/gmem.h" | |
3028 | gpointer g_malloc (gulong n_bytes) __attribute__((__malloc__)); | |
3029 | gpointer g_malloc0 (gulong n_bytes) __attribute__((__malloc__)); | |
3030 | gpointer g_realloc (gpointer mem, | |
3031 | gulong n_bytes) __attribute__((warn_unused_result)); | |
3032 | void g_free (gpointer mem); | |
3033 | gpointer g_try_malloc (gulong n_bytes) __attribute__((__malloc__)); | |
3034 | gpointer g_try_malloc0 (gulong n_bytes) __attribute__((__malloc__)); | |
3035 | gpointer g_try_realloc (gpointer mem, | |
3036 | gulong n_bytes) __attribute__((warn_unused_result)); | |
3037 | # 79 "/usr/include/glib-2.0/glib/gmem.h" | |
3038 | struct _GMemVTable | |
3039 | { | |
3040 | gpointer (*malloc) (gsize n_bytes); | |
3041 | gpointer (*realloc) (gpointer mem, | |
3042 | gsize n_bytes); | |
3043 | void (*free) (gpointer mem); | |
3044 | ||
3045 | gpointer (*calloc) (gsize n_blocks, | |
3046 | gsize n_block_bytes); | |
3047 | gpointer (*try_malloc) (gsize n_bytes); | |
3048 | gpointer (*try_realloc) (gpointer mem, | |
3049 | gsize n_bytes); | |
3050 | }; | |
3051 | void g_mem_set_vtable (GMemVTable *vtable); | |
3052 | gboolean g_mem_is_system_malloc (void); | |
3053 | ||
3054 | extern gboolean g_mem_gc_friendly; | |
3055 | ||
3056 | ||
3057 | ||
3058 | extern GMemVTable *glib_mem_profiler_table; | |
3059 | void g_mem_profile (void); | |
3060 | ||
3061 | ||
3062 | ||
3063 | ||
3064 | typedef struct _GAllocator GAllocator; | |
3065 | typedef struct _GMemChunk GMemChunk; | |
3066 | # 124 "/usr/include/glib-2.0/glib/gmem.h" | |
3067 | GMemChunk* g_mem_chunk_new (const gchar *name, | |
3068 | gint atom_size, | |
3069 | gulong area_size, | |
3070 | gint type); | |
3071 | void g_mem_chunk_destroy (GMemChunk *mem_chunk); | |
3072 | gpointer g_mem_chunk_alloc (GMemChunk *mem_chunk); | |
3073 | gpointer g_mem_chunk_alloc0 (GMemChunk *mem_chunk); | |
3074 | void g_mem_chunk_free (GMemChunk *mem_chunk, | |
3075 | gpointer mem); | |
3076 | void g_mem_chunk_clean (GMemChunk *mem_chunk); | |
3077 | void g_mem_chunk_reset (GMemChunk *mem_chunk); | |
3078 | void g_mem_chunk_print (GMemChunk *mem_chunk); | |
3079 | void g_mem_chunk_info (void); | |
3080 | void g_blow_chunks (void); | |
3081 | GAllocator*g_allocator_new (const gchar *name, | |
3082 | guint n_preallocs); | |
3083 | void g_allocator_free (GAllocator *allocator); | |
3084 | ||
3085 | ||
3086 | ||
3087 | ||
3088 | ||
3089 | ||
3090 | # 31 "/usr/include/glib-2.0/glib/glist.h" 2 | |
3091 | ||
3092 | ||
3093 | ||
3094 | typedef struct _GList GList; | |
3095 | ||
3096 | struct _GList | |
3097 | { | |
3098 | gpointer data; | |
3099 | GList *next; | |
3100 | GList *prev; | |
3101 | }; | |
3102 | ||
3103 | ||
3104 | ||
3105 | GList* g_list_alloc (void) __attribute__((warn_unused_result)); | |
3106 | void g_list_free (GList *list); | |
3107 | void g_list_free_1 (GList *list); | |
3108 | ||
3109 | GList* g_list_append (GList *list, | |
3110 | gpointer data) __attribute__((warn_unused_result)); | |
3111 | GList* g_list_prepend (GList *list, | |
3112 | gpointer data) __attribute__((warn_unused_result)); | |
3113 | GList* g_list_insert (GList *list, | |
3114 | gpointer data, | |
3115 | gint position) __attribute__((warn_unused_result)); | |
3116 | GList* g_list_insert_sorted (GList *list, | |
3117 | gpointer data, | |
3118 | GCompareFunc func) __attribute__((warn_unused_result)); | |
3119 | GList* g_list_insert_sorted_with_data (GList *list, | |
3120 | gpointer data, | |
3121 | GCompareDataFunc func, | |
3122 | gpointer user_data) __attribute__((warn_unused_result)); | |
3123 | GList* g_list_insert_before (GList *list, | |
3124 | GList *sibling, | |
3125 | gpointer data) __attribute__((warn_unused_result)); | |
3126 | GList* g_list_concat (GList *list1, | |
3127 | GList *list2) __attribute__((warn_unused_result)); | |
3128 | GList* g_list_remove (GList *list, | |
3129 | gconstpointer data) __attribute__((warn_unused_result)); | |
3130 | GList* g_list_remove_all (GList *list, | |
3131 | gconstpointer data) __attribute__((warn_unused_result)); | |
3132 | GList* g_list_remove_link (GList *list, | |
3133 | GList *llink) __attribute__((warn_unused_result)); | |
3134 | GList* g_list_delete_link (GList *list, | |
3135 | GList *link_) __attribute__((warn_unused_result)); | |
3136 | GList* g_list_reverse (GList *list) __attribute__((warn_unused_result)); | |
3137 | GList* g_list_copy (GList *list) __attribute__((warn_unused_result)); | |
3138 | GList* g_list_nth (GList *list, | |
3139 | guint n); | |
3140 | GList* g_list_nth_prev (GList *list, | |
3141 | guint n); | |
3142 | GList* g_list_find (GList *list, | |
3143 | gconstpointer data); | |
3144 | GList* g_list_find_custom (GList *list, | |
3145 | gconstpointer data, | |
3146 | GCompareFunc func); | |
3147 | gint g_list_position (GList *list, | |
3148 | GList *llink); | |
3149 | gint g_list_index (GList *list, | |
3150 | gconstpointer data); | |
3151 | GList* g_list_last (GList *list); | |
3152 | GList* g_list_first (GList *list); | |
3153 | guint g_list_length (GList *list); | |
3154 | void g_list_foreach (GList *list, | |
3155 | GFunc func, | |
3156 | gpointer user_data); | |
3157 | GList* g_list_sort (GList *list, | |
3158 | GCompareFunc compare_func) __attribute__((warn_unused_result)); | |
3159 | GList* g_list_sort_with_data (GList *list, | |
3160 | GCompareDataFunc compare_func, | |
3161 | gpointer user_data) __attribute__((warn_unused_result)); | |
3162 | gpointer g_list_nth_data (GList *list, | |
3163 | guint n); | |
3164 | ||
3165 | ||
3166 | ||
3167 | ||
3168 | ||
3169 | ||
3170 | void g_list_push_allocator (gpointer allocator); | |
3171 | void g_list_pop_allocator (void); | |
3172 | ||
3173 | ||
3174 | # 31 "/usr/include/glib-2.0/glib/gcache.h" 2 | |
3175 | ||
3176 | ||
3177 | ||
3178 | typedef struct _GCache GCache; | |
3179 | ||
3180 | typedef gpointer (*GCacheNewFunc) (gpointer key); | |
3181 | typedef gpointer (*GCacheDupFunc) (gpointer value); | |
3182 | typedef void (*GCacheDestroyFunc) (gpointer value); | |
3183 | ||
3184 | ||
3185 | ||
3186 | GCache* g_cache_new (GCacheNewFunc value_new_func, | |
3187 | GCacheDestroyFunc value_destroy_func, | |
3188 | GCacheDupFunc key_dup_func, | |
3189 | GCacheDestroyFunc key_destroy_func, | |
3190 | GHashFunc hash_key_func, | |
3191 | GHashFunc hash_value_func, | |
3192 | GEqualFunc key_equal_func); | |
3193 | void g_cache_destroy (GCache *cache); | |
3194 | gpointer g_cache_insert (GCache *cache, | |
3195 | gpointer key); | |
3196 | void g_cache_remove (GCache *cache, | |
3197 | gconstpointer value); | |
3198 | void g_cache_key_foreach (GCache *cache, | |
3199 | GHFunc func, | |
3200 | gpointer user_data); | |
3201 | ||
3202 | void g_cache_value_foreach (GCache *cache, | |
3203 | GHFunc func, | |
3204 | gpointer user_data); | |
3205 | ||
3206 | ||
3207 | ||
3208 | # 38 "/usr/include/glib-2.0/glib.h" 2 | |
3209 | # 1 "/usr/include/glib-2.0/glib/gcompletion.h" 1 | |
3210 | # 32 "/usr/include/glib-2.0/glib/gcompletion.h" | |
3211 | ||
3212 | ||
3213 | typedef struct _GCompletion GCompletion; | |
3214 | ||
3215 | typedef gchar* (*GCompletionFunc) (gpointer); | |
3216 | ||
3217 | ||
3218 | ||
3219 | ||
3220 | typedef gint (*GCompletionStrncmpFunc) (const gchar *s1, | |
3221 | const gchar *s2, | |
3222 | gsize n); | |
3223 | ||
3224 | struct _GCompletion | |
3225 | { | |
3226 | GList* items; | |
3227 | GCompletionFunc func; | |
3228 | ||
3229 | gchar* prefix; | |
3230 | GList* cache; | |
3231 | GCompletionStrncmpFunc strncmp_func; | |
3232 | }; | |
3233 | ||
3234 | GCompletion* g_completion_new (GCompletionFunc func); | |
3235 | void g_completion_add_items (GCompletion* cmp, | |
3236 | GList* items); | |
3237 | void g_completion_remove_items (GCompletion* cmp, | |
3238 | GList* items); | |
3239 | void g_completion_clear_items (GCompletion* cmp); | |
3240 | GList* g_completion_complete (GCompletion* cmp, | |
3241 | const gchar* prefix, | |
3242 | gchar** new_prefix); | |
3243 | GList* g_completion_complete_utf8 (GCompletion *cmp, | |
3244 | const gchar* prefix, | |
3245 | gchar** new_prefix); | |
3246 | void g_completion_set_compare (GCompletion *cmp, | |
3247 | GCompletionStrncmpFunc strncmp_func); | |
3248 | void g_completion_free (GCompletion* cmp); | |
3249 | ||
3250 | ||
3251 | # 39 "/usr/include/glib-2.0/glib.h" 2 | |
3252 | # 1 "/usr/include/glib-2.0/glib/gconvert.h" 1 | |
3253 | # 32 "/usr/include/glib-2.0/glib/gconvert.h" | |
3254 | ||
3255 | ||
3256 | typedef enum | |
3257 | { | |
3258 | G_CONVERT_ERROR_NO_CONVERSION, | |
3259 | G_CONVERT_ERROR_ILLEGAL_SEQUENCE, | |
3260 | G_CONVERT_ERROR_FAILED, | |
3261 | G_CONVERT_ERROR_PARTIAL_INPUT, | |
3262 | G_CONVERT_ERROR_BAD_URI, | |
3263 | G_CONVERT_ERROR_NOT_ABSOLUTE_PATH | |
3264 | } GConvertError; | |
3265 | ||
3266 | ||
3267 | GQuark g_convert_error_quark (void); | |
3268 | ||
3269 | ||
3270 | ||
3271 | typedef struct _GIConv *GIConv; | |
3272 | ||
3273 | GIConv g_iconv_open (const gchar *to_codeset, | |
3274 | const gchar *from_codeset); | |
3275 | gsize g_iconv (GIConv converter, | |
3276 | gchar **inbuf, | |
3277 | gsize *inbytes_left, | |
3278 | gchar **outbuf, | |
3279 | gsize *outbytes_left); | |
3280 | gint g_iconv_close (GIConv converter); | |
3281 | ||
3282 | ||
3283 | gchar* g_convert (const gchar *str, | |
3284 | gssize len, | |
3285 | const gchar *to_codeset, | |
3286 | const gchar *from_codeset, | |
3287 | gsize *bytes_read, | |
3288 | gsize *bytes_written, | |
3289 | GError **error) __attribute__((__malloc__)); | |
3290 | gchar* g_convert_with_iconv (const gchar *str, | |
3291 | gssize len, | |
3292 | GIConv converter, | |
3293 | gsize *bytes_read, | |
3294 | gsize *bytes_written, | |
3295 | GError **error) __attribute__((__malloc__)); | |
3296 | gchar* g_convert_with_fallback (const gchar *str, | |
3297 | gssize len, | |
3298 | const gchar *to_codeset, | |
3299 | const gchar *from_codeset, | |
3300 | gchar *fallback, | |
3301 | gsize *bytes_read, | |
3302 | gsize *bytes_written, | |
3303 | GError **error) __attribute__((__malloc__)); | |
3304 | ||
3305 | ||
3306 | ||
3307 | ||
3308 | gchar* g_locale_to_utf8 (const gchar *opsysstring, | |
3309 | gssize len, | |
3310 | gsize *bytes_read, | |
3311 | gsize *bytes_written, | |
3312 | GError **error) __attribute__((__malloc__)); | |
3313 | gchar* g_locale_from_utf8 (const gchar *utf8string, | |
3314 | gssize len, | |
3315 | gsize *bytes_read, | |
3316 | gsize *bytes_written, | |
3317 | GError **error) __attribute__((__malloc__)); | |
3318 | # 107 "/usr/include/glib-2.0/glib/gconvert.h" | |
3319 | gchar* g_filename_to_utf8 (const gchar *opsysstring, | |
3320 | gssize len, | |
3321 | gsize *bytes_read, | |
3322 | gsize *bytes_written, | |
3323 | GError **error) __attribute__((__malloc__)); | |
3324 | gchar* g_filename_from_utf8 (const gchar *utf8string, | |
3325 | gssize len, | |
3326 | gsize *bytes_read, | |
3327 | gsize *bytes_written, | |
3328 | GError **error) __attribute__((__malloc__)); | |
3329 | ||
3330 | gchar *g_filename_from_uri (const gchar *uri, | |
3331 | gchar **hostname, | |
3332 | GError **error) __attribute__((__malloc__)); | |
3333 | ||
3334 | gchar *g_filename_to_uri (const gchar *filename, | |
3335 | const gchar *hostname, | |
3336 | GError **error) __attribute__((__malloc__)); | |
3337 | gchar *g_filename_display_name (const gchar *filename) __attribute__((__malloc__)); | |
3338 | gboolean g_get_filename_charsets (const gchar ***charsets); | |
3339 | ||
3340 | gchar *g_filename_display_basename (const gchar *filename) __attribute__((__malloc__)); | |
3341 | ||
3342 | gchar **g_uri_list_extract_uris (const gchar *uri_list) __attribute__((__malloc__)); | |
3343 | ||
3344 | ||
3345 | # 40 "/usr/include/glib-2.0/glib.h" 2 | |
3346 | # 1 "/usr/include/glib-2.0/glib/gdataset.h" 1 | |
3347 | # 32 "/usr/include/glib-2.0/glib/gdataset.h" | |
3348 | ||
3349 | ||
3350 | typedef struct _GData GData; | |
3351 | ||
3352 | typedef void (*GDataForeachFunc) (GQuark key_id, | |
3353 | gpointer data, | |
3354 | gpointer user_data); | |
3355 | ||
3356 | ||
3357 | ||
3358 | void g_datalist_init (GData **datalist); | |
3359 | void g_datalist_clear (GData **datalist); | |
3360 | gpointer g_datalist_id_get_data (GData **datalist, | |
3361 | GQuark key_id); | |
3362 | void g_datalist_id_set_data_full (GData **datalist, | |
3363 | GQuark key_id, | |
3364 | gpointer data, | |
3365 | GDestroyNotify destroy_func); | |
3366 | gpointer g_datalist_id_remove_no_notify (GData **datalist, | |
3367 | GQuark key_id); | |
3368 | void g_datalist_foreach (GData **datalist, | |
3369 | GDataForeachFunc func, | |
3370 | gpointer user_data); | |
3371 | # 65 "/usr/include/glib-2.0/glib/gdataset.h" | |
3372 | void g_datalist_set_flags (GData **datalist, | |
3373 | guint flags); | |
3374 | void g_datalist_unset_flags (GData **datalist, | |
3375 | guint flags); | |
3376 | guint g_datalist_get_flags (GData **datalist); | |
3377 | # 89 "/usr/include/glib-2.0/glib/gdataset.h" | |
3378 | void g_dataset_destroy (gconstpointer dataset_location); | |
3379 | gpointer g_dataset_id_get_data (gconstpointer dataset_location, | |
3380 | GQuark key_id); | |
3381 | void g_dataset_id_set_data_full (gconstpointer dataset_location, | |
3382 | GQuark key_id, | |
3383 | gpointer data, | |
3384 | GDestroyNotify destroy_func); | |
3385 | gpointer g_dataset_id_remove_no_notify (gconstpointer dataset_location, | |
3386 | GQuark key_id); | |
3387 | void g_dataset_foreach (gconstpointer dataset_location, | |
3388 | GDataForeachFunc func, | |
3389 | gpointer user_data); | |
3390 | # 116 "/usr/include/glib-2.0/glib/gdataset.h" | |
3391 | ||
3392 | # 41 "/usr/include/glib-2.0/glib.h" 2 | |
3393 | # 1 "/usr/include/glib-2.0/glib/gdate.h" 1 | |
3394 | # 35 "/usr/include/glib-2.0/glib/gdate.h" | |
3395 | ||
3396 | # 46 "/usr/include/glib-2.0/glib/gdate.h" | |
3397 | typedef gint32 GTime; | |
3398 | typedef guint16 GDateYear; | |
3399 | typedef guint8 GDateDay; | |
3400 | typedef struct _GDate GDate; | |
3401 | ||
3402 | ||
3403 | typedef enum | |
3404 | { | |
3405 | G_DATE_DAY = 0, | |
3406 | G_DATE_MONTH = 1, | |
3407 | G_DATE_YEAR = 2 | |
3408 | } GDateDMY; | |
3409 | ||
3410 | ||
3411 | typedef enum | |
3412 | { | |
3413 | G_DATE_BAD_WEEKDAY = 0, | |
3414 | G_DATE_MONDAY = 1, | |
3415 | G_DATE_TUESDAY = 2, | |
3416 | G_DATE_WEDNESDAY = 3, | |
3417 | G_DATE_THURSDAY = 4, | |
3418 | G_DATE_FRIDAY = 5, | |
3419 | G_DATE_SATURDAY = 6, | |
3420 | G_DATE_SUNDAY = 7 | |
3421 | } GDateWeekday; | |
3422 | typedef enum | |
3423 | { | |
3424 | G_DATE_BAD_MONTH = 0, | |
3425 | G_DATE_JANUARY = 1, | |
3426 | G_DATE_FEBRUARY = 2, | |
3427 | G_DATE_MARCH = 3, | |
3428 | G_DATE_APRIL = 4, | |
3429 | G_DATE_MAY = 5, | |
3430 | G_DATE_JUNE = 6, | |
3431 | G_DATE_JULY = 7, | |
3432 | G_DATE_AUGUST = 8, | |
3433 | G_DATE_SEPTEMBER = 9, | |
3434 | G_DATE_OCTOBER = 10, | |
3435 | G_DATE_NOVEMBER = 11, | |
3436 | G_DATE_DECEMBER = 12 | |
3437 | } GDateMonth; | |
3438 | # 97 "/usr/include/glib-2.0/glib/gdate.h" | |
3439 | struct _GDate | |
3440 | { | |
3441 | guint julian_days : 32; | |
3442 | ||
3443 | ||
3444 | ||
3445 | ||
3446 | ||
3447 | guint julian : 1; | |
3448 | guint dmy : 1; | |
3449 | ||
3450 | ||
3451 | guint day : 6; | |
3452 | guint month : 4; | |
3453 | guint year : 16; | |
3454 | }; | |
3455 | ||
3456 | ||
3457 | ||
3458 | ||
3459 | ||
3460 | GDate* g_date_new (void); | |
3461 | GDate* g_date_new_dmy (GDateDay day, | |
3462 | GDateMonth month, | |
3463 | GDateYear year); | |
3464 | GDate* g_date_new_julian (guint32 julian_day); | |
3465 | void g_date_free (GDate *date); | |
3466 | ||
3467 | ||
3468 | ||
3469 | ||
3470 | ||
3471 | ||
3472 | gboolean g_date_valid (const GDate *date); | |
3473 | gboolean g_date_valid_day (GDateDay day) __attribute__((__const__)); | |
3474 | gboolean g_date_valid_month (GDateMonth month) __attribute__((__const__)); | |
3475 | gboolean g_date_valid_year (GDateYear year) __attribute__((__const__)); | |
3476 | gboolean g_date_valid_weekday (GDateWeekday weekday) __attribute__((__const__)); | |
3477 | gboolean g_date_valid_julian (guint32 julian_date) __attribute__((__const__)); | |
3478 | gboolean g_date_valid_dmy (GDateDay day, | |
3479 | GDateMonth month, | |
3480 | GDateYear year) __attribute__((__const__)); | |
3481 | ||
3482 | GDateWeekday g_date_get_weekday (const GDate *date); | |
3483 | GDateMonth g_date_get_month (const GDate *date); | |
3484 | GDateYear g_date_get_year (const GDate *date); | |
3485 | GDateDay g_date_get_day (const GDate *date); | |
3486 | guint32 g_date_get_julian (const GDate *date); | |
3487 | guint g_date_get_day_of_year (const GDate *date); | |
3488 | ||
3489 | ||
3490 | ||
3491 | ||
3492 | ||
3493 | ||
3494 | guint g_date_get_monday_week_of_year (const GDate *date); | |
3495 | guint g_date_get_sunday_week_of_year (const GDate *date); | |
3496 | guint g_date_get_iso8601_week_of_year (const GDate *date); | |
3497 | ||
3498 | ||
3499 | ||
3500 | ||
3501 | ||
3502 | void g_date_clear (GDate *date, | |
3503 | guint n_dates); | |
3504 | ||
3505 | ||
3506 | ||
3507 | ||
3508 | ||
3509 | void g_date_set_parse (GDate *date, | |
3510 | const gchar *str); | |
3511 | void g_date_set_time_t (GDate *date, | |
3512 | time_t timet); | |
3513 | void g_date_set_time_val (GDate *date, | |
3514 | GTimeVal *timeval); | |
3515 | ||
3516 | void g_date_set_time (GDate *date, | |
3517 | GTime time_); | |
3518 | ||
3519 | void g_date_set_month (GDate *date, | |
3520 | GDateMonth month); | |
3521 | void g_date_set_day (GDate *date, | |
3522 | GDateDay day); | |
3523 | void g_date_set_year (GDate *date, | |
3524 | GDateYear year); | |
3525 | void g_date_set_dmy (GDate *date, | |
3526 | GDateDay day, | |
3527 | GDateMonth month, | |
3528 | GDateYear y); | |
3529 | void g_date_set_julian (GDate *date, | |
3530 | guint32 julian_date); | |
3531 | gboolean g_date_is_first_of_month (const GDate *date); | |
3532 | gboolean g_date_is_last_of_month (const GDate *date); | |
3533 | ||
3534 | ||
3535 | void g_date_add_days (GDate *date, | |
3536 | guint n_days); | |
3537 | void g_date_subtract_days (GDate *date, | |
3538 | guint n_days); | |
3539 | ||
3540 | ||
3541 | void g_date_add_months (GDate *date, | |
3542 | guint n_months); | |
3543 | void g_date_subtract_months (GDate *date, | |
3544 | guint n_months); | |
3545 | ||
3546 | ||
3547 | void g_date_add_years (GDate *date, | |
3548 | guint n_years); | |
3549 | void g_date_subtract_years (GDate *date, | |
3550 | guint n_years); | |
3551 | gboolean g_date_is_leap_year (GDateYear year) __attribute__((__const__)); | |
3552 | guint8 g_date_get_days_in_month (GDateMonth month, | |
3553 | GDateYear year) __attribute__((__const__)); | |
3554 | guint8 g_date_get_monday_weeks_in_year (GDateYear year) __attribute__((__const__)); | |
3555 | guint8 g_date_get_sunday_weeks_in_year (GDateYear year) __attribute__((__const__)); | |
3556 | ||
3557 | ||
3558 | ||
3559 | gint g_date_days_between (const GDate *date1, | |
3560 | const GDate *date2); | |
3561 | ||
3562 | ||
3563 | gint g_date_compare (const GDate *lhs, | |
3564 | const GDate *rhs); | |
3565 | void g_date_to_struct_tm (const GDate *date, | |
3566 | struct tm *tm); | |
3567 | ||
3568 | void g_date_clamp (GDate *date, | |
3569 | const GDate *min_date, | |
3570 | const GDate *max_date); | |
3571 | ||
3572 | ||
3573 | void g_date_order (GDate *date1, GDate *date2); | |
3574 | ||
3575 | ||
3576 | ||
3577 | ||
3578 | gsize g_date_strftime (gchar *s, | |
3579 | gsize slen, | |
3580 | const gchar *format, | |
3581 | const GDate *date); | |
3582 | # 257 "/usr/include/glib-2.0/glib/gdate.h" | |
3583 | ||
3584 | # 42 "/usr/include/glib-2.0/glib.h" 2 | |
3585 | # 1 "/usr/include/glib-2.0/glib/gdir.h" 1 | |
3586 | # 28 "/usr/include/glib-2.0/glib/gdir.h" | |
3587 | ||
3588 | ||
3589 | typedef struct _GDir GDir; | |
3590 | ||
3591 | ||
3592 | ||
3593 | ||
3594 | ||
3595 | ||
3596 | ||
3597 | GDir * g_dir_open (const gchar *path, | |
3598 | guint flags, | |
3599 | GError **error); | |
3600 | const gchar *g_dir_read_name (GDir *dir); | |
3601 | void g_dir_rewind (GDir *dir); | |
3602 | void g_dir_close (GDir *dir); | |
3603 | ||
3604 | ||
3605 | # 43 "/usr/include/glib-2.0/glib.h" 2 | |
3606 | ||
3607 | # 1 "/usr/include/glib-2.0/glib/gfileutils.h" 1 | |
3608 | # 26 "/usr/include/glib-2.0/glib/gfileutils.h" | |
3609 | ||
3610 | ||
3611 | ||
3612 | ||
3613 | typedef enum | |
3614 | { | |
3615 | G_FILE_ERROR_EXIST, | |
3616 | G_FILE_ERROR_ISDIR, | |
3617 | G_FILE_ERROR_ACCES, | |
3618 | G_FILE_ERROR_NAMETOOLONG, | |
3619 | G_FILE_ERROR_NOENT, | |
3620 | G_FILE_ERROR_NOTDIR, | |
3621 | G_FILE_ERROR_NXIO, | |
3622 | G_FILE_ERROR_NODEV, | |
3623 | G_FILE_ERROR_ROFS, | |
3624 | G_FILE_ERROR_TXTBSY, | |
3625 | G_FILE_ERROR_FAULT, | |
3626 | G_FILE_ERROR_LOOP, | |
3627 | G_FILE_ERROR_NOSPC, | |
3628 | G_FILE_ERROR_NOMEM, | |
3629 | G_FILE_ERROR_MFILE, | |
3630 | G_FILE_ERROR_NFILE, | |
3631 | G_FILE_ERROR_BADF, | |
3632 | G_FILE_ERROR_INVAL, | |
3633 | G_FILE_ERROR_PIPE, | |
3634 | G_FILE_ERROR_AGAIN, | |
3635 | G_FILE_ERROR_INTR, | |
3636 | G_FILE_ERROR_IO, | |
3637 | G_FILE_ERROR_PERM, | |
3638 | G_FILE_ERROR_NOSYS, | |
3639 | G_FILE_ERROR_FAILED | |
3640 | } GFileError; | |
3641 | ||
3642 | ||
3643 | ||
3644 | ||
3645 | ||
3646 | typedef enum | |
3647 | { | |
3648 | G_FILE_TEST_IS_REGULAR = 1 << 0, | |
3649 | G_FILE_TEST_IS_SYMLINK = 1 << 1, | |
3650 | G_FILE_TEST_IS_DIR = 1 << 2, | |
3651 | G_FILE_TEST_IS_EXECUTABLE = 1 << 3, | |
3652 | G_FILE_TEST_EXISTS = 1 << 4 | |
3653 | } GFileTest; | |
3654 | ||
3655 | GQuark g_file_error_quark (void); | |
3656 | ||
3657 | GFileError g_file_error_from_errno (gint err_no); | |
3658 | # 83 "/usr/include/glib-2.0/glib/gfileutils.h" | |
3659 | gboolean g_file_test (const gchar *filename, | |
3660 | GFileTest test); | |
3661 | gboolean g_file_get_contents (const gchar *filename, | |
3662 | gchar **contents, | |
3663 | gsize *length, | |
3664 | GError **error); | |
3665 | gboolean g_file_set_contents (const gchar *filename, | |
3666 | const gchar *contents, | |
3667 | gssize length, | |
3668 | GError **error); | |
3669 | gchar *g_file_read_link (const gchar *filename, | |
3670 | GError **error); | |
3671 | ||
3672 | ||
3673 | gint g_mkstemp (gchar *tmpl); | |
3674 | ||
3675 | ||
3676 | gint g_file_open_tmp (const gchar *tmpl, | |
3677 | gchar **name_used, | |
3678 | GError **error); | |
3679 | ||
3680 | gchar *g_build_path (const gchar *separator, | |
3681 | const gchar *first_element, | |
3682 | ...) __attribute__((__malloc__)) __attribute__((__sentinel__)); | |
3683 | gchar *g_build_pathv (const gchar *separator, | |
3684 | gchar **args) __attribute__((__malloc__)); | |
3685 | ||
3686 | gchar *g_build_filename (const gchar *first_element, | |
3687 | ...) __attribute__((__malloc__)) __attribute__((__sentinel__)); | |
3688 | gchar *g_build_filenamev (gchar **args) __attribute__((__malloc__)); | |
3689 | ||
3690 | int g_mkdir_with_parents (const gchar *pathname, | |
3691 | int mode); | |
3692 | ||
3693 | ||
3694 | # 45 "/usr/include/glib-2.0/glib.h" 2 | |
3695 | # 1 "/usr/include/glib-2.0/glib/ghash.h" 1 | |
3696 | # 33 "/usr/include/glib-2.0/glib/ghash.h" | |
3697 | ||
3698 | ||
3699 | typedef struct _GHashTable GHashTable; | |
3700 | ||
3701 | typedef gboolean (*GHRFunc) (gpointer key, | |
3702 | gpointer value, | |
3703 | gpointer user_data); | |
3704 | ||
3705 | ||
3706 | ||
3707 | GHashTable* g_hash_table_new (GHashFunc hash_func, | |
3708 | GEqualFunc key_equal_func); | |
3709 | GHashTable* g_hash_table_new_full (GHashFunc hash_func, | |
3710 | GEqualFunc key_equal_func, | |
3711 | GDestroyNotify key_destroy_func, | |
3712 | GDestroyNotify value_destroy_func); | |
3713 | void g_hash_table_destroy (GHashTable *hash_table); | |
3714 | void g_hash_table_insert (GHashTable *hash_table, | |
3715 | gpointer key, | |
3716 | gpointer value); | |
3717 | void g_hash_table_replace (GHashTable *hash_table, | |
3718 | gpointer key, | |
3719 | gpointer value); | |
3720 | gboolean g_hash_table_remove (GHashTable *hash_table, | |
3721 | gconstpointer key); | |
3722 | void g_hash_table_remove_all (GHashTable *hash_table); | |
3723 | gboolean g_hash_table_steal (GHashTable *hash_table, | |
3724 | gconstpointer key); | |
3725 | void g_hash_table_steal_all (GHashTable *hash_table); | |
3726 | gpointer g_hash_table_lookup (GHashTable *hash_table, | |
3727 | gconstpointer key); | |
3728 | gboolean g_hash_table_lookup_extended (GHashTable *hash_table, | |
3729 | gconstpointer lookup_key, | |
3730 | gpointer *orig_key, | |
3731 | gpointer *value); | |
3732 | void g_hash_table_foreach (GHashTable *hash_table, | |
3733 | GHFunc func, | |
3734 | gpointer user_data); | |
3735 | gpointer g_hash_table_find (GHashTable *hash_table, | |
3736 | GHRFunc predicate, | |
3737 | gpointer user_data); | |
3738 | guint g_hash_table_foreach_remove (GHashTable *hash_table, | |
3739 | GHRFunc func, | |
3740 | gpointer user_data); | |
3741 | guint g_hash_table_foreach_steal (GHashTable *hash_table, | |
3742 | GHRFunc func, | |
3743 | gpointer user_data); | |
3744 | guint g_hash_table_size (GHashTable *hash_table); | |
3745 | GList * g_hash_table_get_keys (GHashTable *hash_table); | |
3746 | GList * g_hash_table_get_values (GHashTable *hash_table); | |
3747 | ||
3748 | ||
3749 | GHashTable* g_hash_table_ref (GHashTable *hash_table); | |
3750 | void g_hash_table_unref (GHashTable *hash_table); | |
3751 | # 99 "/usr/include/glib-2.0/glib/ghash.h" | |
3752 | gboolean g_str_equal (gconstpointer v1, | |
3753 | gconstpointer v2); | |
3754 | guint g_str_hash (gconstpointer v); | |
3755 | ||
3756 | gboolean g_int_equal (gconstpointer v1, | |
3757 | gconstpointer v2); | |
3758 | guint g_int_hash (gconstpointer v); | |
3759 | ||
3760 | ||
3761 | ||
3762 | ||
3763 | ||
3764 | ||
3765 | ||
3766 | guint g_direct_hash (gconstpointer v) __attribute__((__const__)); | |
3767 | gboolean g_direct_equal (gconstpointer v1, | |
3768 | gconstpointer v2) __attribute__((__const__)); | |
3769 | ||
3770 | ||
3771 | # 46 "/usr/include/glib-2.0/glib.h" 2 | |
3772 | # 1 "/usr/include/glib-2.0/glib/ghook.h" 1 | |
3773 | # 32 "/usr/include/glib-2.0/glib/ghook.h" | |
3774 | ||
3775 | ||
3776 | ||
3777 | ||
3778 | typedef struct _GHook GHook; | |
3779 | typedef struct _GHookList GHookList; | |
3780 | ||
3781 | typedef gint (*GHookCompareFunc) (GHook *new_hook, | |
3782 | GHook *sibling); | |
3783 | typedef gboolean (*GHookFindFunc) (GHook *hook, | |
3784 | gpointer data); | |
3785 | typedef void (*GHookMarshaller) (GHook *hook, | |
3786 | gpointer marshal_data); | |
3787 | typedef gboolean (*GHookCheckMarshaller) (GHook *hook, | |
3788 | gpointer marshal_data); | |
3789 | typedef void (*GHookFunc) (gpointer data); | |
3790 | typedef gboolean (*GHookCheckFunc) (gpointer data); | |
3791 | typedef void (*GHookFinalizeFunc) (GHookList *hook_list, | |
3792 | GHook *hook); | |
3793 | typedef enum | |
3794 | { | |
3795 | G_HOOK_FLAG_ACTIVE = 1 << 0, | |
3796 | G_HOOK_FLAG_IN_CALL = 1 << 1, | |
3797 | G_HOOK_FLAG_MASK = 0x0f | |
3798 | } GHookFlagMask; | |
3799 | ||
3800 | ||
3801 | ||
3802 | ||
3803 | struct _GHookList | |
3804 | { | |
3805 | gulong seq_id; | |
3806 | guint hook_size : 16; | |
3807 | guint is_setup : 1; | |
3808 | GHook *hooks; | |
3809 | gpointer dummy3; | |
3810 | GHookFinalizeFunc finalize_hook; | |
3811 | gpointer dummy[2]; | |
3812 | }; | |
3813 | struct _GHook | |
3814 | { | |
3815 | gpointer data; | |
3816 | GHook *next; | |
3817 | GHook *prev; | |
3818 | guint ref_count; | |
3819 | gulong hook_id; | |
3820 | guint flags; | |
3821 | gpointer func; | |
3822 | GDestroyNotify destroy; | |
3823 | }; | |
3824 | # 102 "/usr/include/glib-2.0/glib/ghook.h" | |
3825 | void g_hook_list_init (GHookList *hook_list, | |
3826 | guint hook_size); | |
3827 | void g_hook_list_clear (GHookList *hook_list); | |
3828 | GHook* g_hook_alloc (GHookList *hook_list); | |
3829 | void g_hook_free (GHookList *hook_list, | |
3830 | GHook *hook); | |
3831 | GHook * g_hook_ref (GHookList *hook_list, | |
3832 | GHook *hook); | |
3833 | void g_hook_unref (GHookList *hook_list, | |
3834 | GHook *hook); | |
3835 | gboolean g_hook_destroy (GHookList *hook_list, | |
3836 | gulong hook_id); | |
3837 | void g_hook_destroy_link (GHookList *hook_list, | |
3838 | GHook *hook); | |
3839 | void g_hook_prepend (GHookList *hook_list, | |
3840 | GHook *hook); | |
3841 | void g_hook_insert_before (GHookList *hook_list, | |
3842 | GHook *sibling, | |
3843 | GHook *hook); | |
3844 | void g_hook_insert_sorted (GHookList *hook_list, | |
3845 | GHook *hook, | |
3846 | GHookCompareFunc func); | |
3847 | GHook* g_hook_get (GHookList *hook_list, | |
3848 | gulong hook_id); | |
3849 | GHook* g_hook_find (GHookList *hook_list, | |
3850 | gboolean need_valids, | |
3851 | GHookFindFunc func, | |
3852 | gpointer data); | |
3853 | GHook* g_hook_find_data (GHookList *hook_list, | |
3854 | gboolean need_valids, | |
3855 | gpointer data); | |
3856 | GHook* g_hook_find_func (GHookList *hook_list, | |
3857 | gboolean need_valids, | |
3858 | gpointer func); | |
3859 | GHook* g_hook_find_func_data (GHookList *hook_list, | |
3860 | gboolean need_valids, | |
3861 | gpointer func, | |
3862 | gpointer data); | |
3863 | ||
3864 | GHook* g_hook_first_valid (GHookList *hook_list, | |
3865 | gboolean may_be_in_call); | |
3866 | ||
3867 | ||
3868 | ||
3869 | GHook* g_hook_next_valid (GHookList *hook_list, | |
3870 | GHook *hook, | |
3871 | gboolean may_be_in_call); | |
3872 | ||
3873 | gint g_hook_compare_ids (GHook *new_hook, | |
3874 | GHook *sibling); | |
3875 | ||
3876 | ||
3877 | ||
3878 | ||
3879 | ||
3880 | void g_hook_list_invoke (GHookList *hook_list, | |
3881 | gboolean may_recurse); | |
3882 | ||
3883 | ||
3884 | ||
3885 | void g_hook_list_invoke_check (GHookList *hook_list, | |
3886 | gboolean may_recurse); | |
3887 | ||
3888 | ||
3889 | void g_hook_list_marshal (GHookList *hook_list, | |
3890 | gboolean may_recurse, | |
3891 | GHookMarshaller marshaller, | |
3892 | gpointer marshal_data); | |
3893 | void g_hook_list_marshal_check (GHookList *hook_list, | |
3894 | gboolean may_recurse, | |
3895 | GHookCheckMarshaller marshaller, | |
3896 | gpointer marshal_data); | |
3897 | ||
3898 | ||
3899 | # 47 "/usr/include/glib-2.0/glib.h" 2 | |
3900 | # 1 "/usr/include/glib-2.0/glib/giochannel.h" 1 | |
3901 | # 31 "/usr/include/glib-2.0/glib/giochannel.h" | |
3902 | # 1 "/usr/include/glib-2.0/glib/gmain.h" 1 | |
3903 | # 23 "/usr/include/glib-2.0/glib/gmain.h" | |
3904 | # 1 "/usr/include/glib-2.0/glib/gslist.h" 1 | |
3905 | # 32 "/usr/include/glib-2.0/glib/gslist.h" | |
3906 | ||
3907 | ||
3908 | typedef struct _GSList GSList; | |
3909 | ||
3910 | struct _GSList | |
3911 | { | |
3912 | gpointer data; | |
3913 | GSList *next; | |
3914 | }; | |
3915 | ||
3916 | ||
3917 | ||
3918 | GSList* g_slist_alloc (void) __attribute__((warn_unused_result)); | |
3919 | void g_slist_free (GSList *list); | |
3920 | void g_slist_free_1 (GSList *list); | |
3921 | ||
3922 | GSList* g_slist_append (GSList *list, | |
3923 | gpointer data) __attribute__((warn_unused_result)); | |
3924 | GSList* g_slist_prepend (GSList *list, | |
3925 | gpointer data) __attribute__((warn_unused_result)); | |
3926 | GSList* g_slist_insert (GSList *list, | |
3927 | gpointer data, | |
3928 | gint position) __attribute__((warn_unused_result)); | |
3929 | GSList* g_slist_insert_sorted (GSList *list, | |
3930 | gpointer data, | |
3931 | GCompareFunc func) __attribute__((warn_unused_result)); | |
3932 | GSList* g_slist_insert_sorted_with_data (GSList *list, | |
3933 | gpointer data, | |
3934 | GCompareDataFunc func, | |
3935 | gpointer user_data) __attribute__((warn_unused_result)); | |
3936 | GSList* g_slist_insert_before (GSList *slist, | |
3937 | GSList *sibling, | |
3938 | gpointer data) __attribute__((warn_unused_result)); | |
3939 | GSList* g_slist_concat (GSList *list1, | |
3940 | GSList *list2) __attribute__((warn_unused_result)); | |
3941 | GSList* g_slist_remove (GSList *list, | |
3942 | gconstpointer data) __attribute__((warn_unused_result)); | |
3943 | GSList* g_slist_remove_all (GSList *list, | |
3944 | gconstpointer data) __attribute__((warn_unused_result)); | |
3945 | GSList* g_slist_remove_link (GSList *list, | |
3946 | GSList *link_) __attribute__((warn_unused_result)); | |
3947 | GSList* g_slist_delete_link (GSList *list, | |
3948 | GSList *link_) __attribute__((warn_unused_result)); | |
3949 | GSList* g_slist_reverse (GSList *list) __attribute__((warn_unused_result)); | |
3950 | GSList* g_slist_copy (GSList *list) __attribute__((warn_unused_result)); | |
3951 | GSList* g_slist_nth (GSList *list, | |
3952 | guint n); | |
3953 | GSList* g_slist_find (GSList *list, | |
3954 | gconstpointer data); | |
3955 | GSList* g_slist_find_custom (GSList *list, | |
3956 | gconstpointer data, | |
3957 | GCompareFunc func); | |
3958 | gint g_slist_position (GSList *list, | |
3959 | GSList *llink); | |
3960 | gint g_slist_index (GSList *list, | |
3961 | gconstpointer data); | |
3962 | GSList* g_slist_last (GSList *list); | |
3963 | guint g_slist_length (GSList *list); | |
3964 | void g_slist_foreach (GSList *list, | |
3965 | GFunc func, | |
3966 | gpointer user_data); | |
3967 | GSList* g_slist_sort (GSList *list, | |
3968 | GCompareFunc compare_func) __attribute__((warn_unused_result)); | |
3969 | GSList* g_slist_sort_with_data (GSList *list, | |
3970 | GCompareDataFunc compare_func, | |
3971 | gpointer user_data) __attribute__((warn_unused_result)); | |
3972 | gpointer g_slist_nth_data (GSList *list, | |
3973 | guint n); | |
3974 | ||
3975 | ||
3976 | ||
3977 | ||
3978 | void g_slist_push_allocator (gpointer dummy); | |
3979 | void g_slist_pop_allocator (void); | |
3980 | ||
3981 | ||
3982 | # 24 "/usr/include/glib-2.0/glib/gmain.h" 2 | |
3983 | ||
3984 | ||
3985 | ||
3986 | ||
3987 | typedef struct _GMainContext GMainContext; | |
3988 | typedef struct _GMainLoop GMainLoop; | |
3989 | typedef struct _GSource GSource; | |
3990 | typedef struct _GSourceCallbackFuncs GSourceCallbackFuncs; | |
3991 | typedef struct _GSourceFuncs GSourceFuncs; | |
3992 | ||
3993 | typedef gboolean (*GSourceFunc) (gpointer data); | |
3994 | typedef void (*GChildWatchFunc) (GPid pid, | |
3995 | gint status, | |
3996 | gpointer data); | |
3997 | struct _GSource | |
3998 | { | |
3999 | ||
4000 | gpointer callback_data; | |
4001 | GSourceCallbackFuncs *callback_funcs; | |
4002 | ||
4003 | GSourceFuncs *source_funcs; | |
4004 | guint ref_count; | |
4005 | ||
4006 | GMainContext *context; | |
4007 | ||
4008 | gint priority; | |
4009 | guint flags; | |
4010 | guint source_id; | |
4011 | ||
4012 | GSList *poll_fds; | |
4013 | ||
4014 | GSource *prev; | |
4015 | GSource *next; | |
4016 | ||
4017 | gpointer reserved1; | |
4018 | gpointer reserved2; | |
4019 | }; | |
4020 | ||
4021 | struct _GSourceCallbackFuncs | |
4022 | { | |
4023 | void (*ref) (gpointer cb_data); | |
4024 | void (*unref) (gpointer cb_data); | |
4025 | void (*get) (gpointer cb_data, | |
4026 | GSource *source, | |
4027 | GSourceFunc *func, | |
4028 | gpointer *data); | |
4029 | }; | |
4030 | ||
4031 | typedef void (*GSourceDummyMarshal) (void); | |
4032 | ||
4033 | struct _GSourceFuncs | |
4034 | { | |
4035 | gboolean (*prepare) (GSource *source, | |
4036 | gint *timeout_); | |
4037 | gboolean (*check) (GSource *source); | |
4038 | gboolean (*dispatch) (GSource *source, | |
4039 | GSourceFunc callback, | |
4040 | gpointer user_data); | |
4041 | void (*finalize) (GSource *source); | |
4042 | ||
4043 | ||
4044 | GSourceFunc closure_callback; | |
4045 | GSourceDummyMarshal closure_marshal; | |
4046 | }; | |
4047 | # 116 "/usr/include/glib-2.0/glib/gmain.h" | |
4048 | typedef struct _GPollFD GPollFD; | |
4049 | typedef gint (*GPollFunc) (GPollFD *ufds, | |
4050 | guint nfsd, | |
4051 | gint timeout_); | |
4052 | ||
4053 | struct _GPollFD | |
4054 | { | |
4055 | ||
4056 | ||
4057 | ||
4058 | gint fd; | |
4059 | ||
4060 | gushort events; | |
4061 | gushort revents; | |
4062 | }; | |
4063 | # 142 "/usr/include/glib-2.0/glib/gmain.h" | |
4064 | GMainContext *g_main_context_new (void); | |
4065 | GMainContext *g_main_context_ref (GMainContext *context); | |
4066 | void g_main_context_unref (GMainContext *context); | |
4067 | GMainContext *g_main_context_default (void); | |
4068 | ||
4069 | gboolean g_main_context_iteration (GMainContext *context, | |
4070 | gboolean may_block); | |
4071 | gboolean g_main_context_pending (GMainContext *context); | |
4072 | ||
4073 | ||
4074 | ||
4075 | GSource *g_main_context_find_source_by_id (GMainContext *context, | |
4076 | guint source_id); | |
4077 | GSource *g_main_context_find_source_by_user_data (GMainContext *context, | |
4078 | gpointer user_data); | |
4079 | GSource *g_main_context_find_source_by_funcs_user_data (GMainContext *context, | |
4080 | GSourceFuncs *funcs, | |
4081 | gpointer user_data); | |
4082 | ||
4083 | ||
4084 | ||
4085 | void g_main_context_wakeup (GMainContext *context); | |
4086 | gboolean g_main_context_acquire (GMainContext *context); | |
4087 | void g_main_context_release (GMainContext *context); | |
4088 | gboolean g_main_context_is_owner (GMainContext *context); | |
4089 | gboolean g_main_context_wait (GMainContext *context, | |
4090 | GCond *cond, | |
4091 | GMutex *mutex); | |
4092 | ||
4093 | gboolean g_main_context_prepare (GMainContext *context, | |
4094 | gint *priority); | |
4095 | gint g_main_context_query (GMainContext *context, | |
4096 | gint max_priority, | |
4097 | gint *timeout_, | |
4098 | GPollFD *fds, | |
4099 | gint n_fds); | |
4100 | gint g_main_context_check (GMainContext *context, | |
4101 | gint max_priority, | |
4102 | GPollFD *fds, | |
4103 | gint n_fds); | |
4104 | void g_main_context_dispatch (GMainContext *context); | |
4105 | ||
4106 | void g_main_context_set_poll_func (GMainContext *context, | |
4107 | GPollFunc func); | |
4108 | GPollFunc g_main_context_get_poll_func (GMainContext *context); | |
4109 | ||
4110 | ||
4111 | ||
4112 | void g_main_context_add_poll (GMainContext *context, | |
4113 | GPollFD *fd, | |
4114 | gint priority); | |
4115 | void g_main_context_remove_poll (GMainContext *context, | |
4116 | GPollFD *fd); | |
4117 | ||
4118 | gint g_main_depth (void); | |
4119 | GSource *g_main_current_source (void); | |
4120 | ||
4121 | ||
4122 | ||
4123 | ||
4124 | GMainLoop *g_main_loop_new (GMainContext *context, | |
4125 | gboolean is_running); | |
4126 | void g_main_loop_run (GMainLoop *loop); | |
4127 | void g_main_loop_quit (GMainLoop *loop); | |
4128 | GMainLoop *g_main_loop_ref (GMainLoop *loop); | |
4129 | void g_main_loop_unref (GMainLoop *loop); | |
4130 | gboolean g_main_loop_is_running (GMainLoop *loop); | |
4131 | GMainContext *g_main_loop_get_context (GMainLoop *loop); | |
4132 | ||
4133 | ||
4134 | ||
4135 | GSource *g_source_new (GSourceFuncs *source_funcs, | |
4136 | guint struct_size); | |
4137 | GSource *g_source_ref (GSource *source); | |
4138 | void g_source_unref (GSource *source); | |
4139 | ||
4140 | guint g_source_attach (GSource *source, | |
4141 | GMainContext *context); | |
4142 | void g_source_destroy (GSource *source); | |
4143 | ||
4144 | void g_source_set_priority (GSource *source, | |
4145 | gint priority); | |
4146 | gint g_source_get_priority (GSource *source); | |
4147 | void g_source_set_can_recurse (GSource *source, | |
4148 | gboolean can_recurse); | |
4149 | gboolean g_source_get_can_recurse (GSource *source); | |
4150 | guint g_source_get_id (GSource *source); | |
4151 | ||
4152 | GMainContext *g_source_get_context (GSource *source); | |
4153 | ||
4154 | void g_source_set_callback (GSource *source, | |
4155 | GSourceFunc func, | |
4156 | gpointer data, | |
4157 | GDestroyNotify notify); | |
4158 | ||
4159 | void g_source_set_funcs (GSource *source, | |
4160 | GSourceFuncs *funcs); | |
4161 | gboolean g_source_is_destroyed (GSource *source); | |
4162 | ||
4163 | ||
4164 | void g_source_set_callback_indirect (GSource *source, | |
4165 | gpointer callback_data, | |
4166 | GSourceCallbackFuncs *callback_funcs); | |
4167 | ||
4168 | void g_source_add_poll (GSource *source, | |
4169 | GPollFD *fd); | |
4170 | void g_source_remove_poll (GSource *source, | |
4171 | GPollFD *fd); | |
4172 | ||
4173 | void g_source_get_current_time (GSource *source, | |
4174 | GTimeVal *timeval); | |
4175 | ||
4176 | ||
4177 | ||
4178 | ||
4179 | ||
4180 | ||
4181 | ||
4182 | GSource *g_idle_source_new (void); | |
4183 | GSource *g_child_watch_source_new (GPid pid); | |
4184 | GSource *g_timeout_source_new (guint interval); | |
4185 | GSource *g_timeout_source_new_seconds (guint interval); | |
4186 | ||
4187 | ||
4188 | ||
4189 | void g_get_current_time (GTimeVal *result); | |
4190 | # 292 "/usr/include/glib-2.0/glib/gmain.h" | |
4191 | gboolean g_source_remove (guint tag); | |
4192 | gboolean g_source_remove_by_user_data (gpointer user_data); | |
4193 | gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs, | |
4194 | gpointer user_data); | |
4195 | ||
4196 | ||
4197 | guint g_timeout_add_full (gint priority, | |
4198 | guint interval, | |
4199 | GSourceFunc function, | |
4200 | gpointer data, | |
4201 | GDestroyNotify notify); | |
4202 | guint g_timeout_add (guint interval, | |
4203 | GSourceFunc function, | |
4204 | gpointer data); | |
4205 | guint g_timeout_add_seconds_full (gint priority, | |
4206 | guint interval, | |
4207 | GSourceFunc function, | |
4208 | gpointer data, | |
4209 | GDestroyNotify notify); | |
4210 | guint g_timeout_add_seconds (guint interval, | |
4211 | GSourceFunc function, | |
4212 | gpointer data); | |
4213 | guint g_child_watch_add_full (gint priority, | |
4214 | GPid pid, | |
4215 | GChildWatchFunc function, | |
4216 | gpointer data, | |
4217 | GDestroyNotify notify); | |
4218 | guint g_child_watch_add (GPid pid, | |
4219 | GChildWatchFunc function, | |
4220 | gpointer data); | |
4221 | guint g_idle_add (GSourceFunc function, | |
4222 | gpointer data); | |
4223 | guint g_idle_add_full (gint priority, | |
4224 | GSourceFunc function, | |
4225 | gpointer data, | |
4226 | GDestroyNotify notify); | |
4227 | gboolean g_idle_remove_by_data (gpointer data); | |
4228 | ||
4229 | ||
4230 | extern GSourceFuncs g_timeout_funcs; | |
4231 | extern GSourceFuncs g_child_watch_funcs; | |
4232 | extern GSourceFuncs g_idle_funcs; | |
4233 | ||
4234 | ||
4235 | # 32 "/usr/include/glib-2.0/glib/giochannel.h" 2 | |
4236 | # 1 "/usr/include/glib-2.0/glib/gstring.h" 1 | |
4237 | # 31 "/usr/include/glib-2.0/glib/gstring.h" | |
4238 | # 1 "/usr/include/glib-2.0/glib/gunicode.h" 1 | |
4239 | # 28 "/usr/include/glib-2.0/glib/gunicode.h" | |
4240 | ||
4241 | ||
4242 | typedef guint32 gunichar; | |
4243 | typedef guint16 gunichar2; | |
4244 | ||
4245 | ||
4246 | ||
4247 | ||
4248 | typedef enum | |
4249 | { | |
4250 | G_UNICODE_CONTROL, | |
4251 | G_UNICODE_FORMAT, | |
4252 | G_UNICODE_UNASSIGNED, | |
4253 | G_UNICODE_PRIVATE_USE, | |
4254 | G_UNICODE_SURROGATE, | |
4255 | G_UNICODE_LOWERCASE_LETTER, | |
4256 | G_UNICODE_MODIFIER_LETTER, | |
4257 | G_UNICODE_OTHER_LETTER, | |
4258 | G_UNICODE_TITLECASE_LETTER, | |
4259 | G_UNICODE_UPPERCASE_LETTER, | |
4260 | G_UNICODE_COMBINING_MARK, | |
4261 | G_UNICODE_ENCLOSING_MARK, | |
4262 | G_UNICODE_NON_SPACING_MARK, | |
4263 | G_UNICODE_DECIMAL_NUMBER, | |
4264 | G_UNICODE_LETTER_NUMBER, | |
4265 | G_UNICODE_OTHER_NUMBER, | |
4266 | G_UNICODE_CONNECT_PUNCTUATION, | |
4267 | G_UNICODE_DASH_PUNCTUATION, | |
4268 | G_UNICODE_CLOSE_PUNCTUATION, | |
4269 | G_UNICODE_FINAL_PUNCTUATION, | |
4270 | G_UNICODE_INITIAL_PUNCTUATION, | |
4271 | G_UNICODE_OTHER_PUNCTUATION, | |
4272 | G_UNICODE_OPEN_PUNCTUATION, | |
4273 | G_UNICODE_CURRENCY_SYMBOL, | |
4274 | G_UNICODE_MODIFIER_SYMBOL, | |
4275 | G_UNICODE_MATH_SYMBOL, | |
4276 | G_UNICODE_OTHER_SYMBOL, | |
4277 | G_UNICODE_LINE_SEPARATOR, | |
4278 | G_UNICODE_PARAGRAPH_SEPARATOR, | |
4279 | G_UNICODE_SPACE_SEPARATOR | |
4280 | } GUnicodeType; | |
4281 | ||
4282 | ||
4283 | ||
4284 | ||
4285 | ||
4286 | ||
4287 | typedef enum | |
4288 | { | |
4289 | G_UNICODE_BREAK_MANDATORY, | |
4290 | G_UNICODE_BREAK_CARRIAGE_RETURN, | |
4291 | G_UNICODE_BREAK_LINE_FEED, | |
4292 | G_UNICODE_BREAK_COMBINING_MARK, | |
4293 | G_UNICODE_BREAK_SURROGATE, | |
4294 | G_UNICODE_BREAK_ZERO_WIDTH_SPACE, | |
4295 | G_UNICODE_BREAK_INSEPARABLE, | |
4296 | G_UNICODE_BREAK_NON_BREAKING_GLUE, | |
4297 | G_UNICODE_BREAK_CONTINGENT, | |
4298 | G_UNICODE_BREAK_SPACE, | |
4299 | G_UNICODE_BREAK_AFTER, | |
4300 | G_UNICODE_BREAK_BEFORE, | |
4301 | G_UNICODE_BREAK_BEFORE_AND_AFTER, | |
4302 | G_UNICODE_BREAK_HYPHEN, | |
4303 | G_UNICODE_BREAK_NON_STARTER, | |
4304 | G_UNICODE_BREAK_OPEN_PUNCTUATION, | |
4305 | G_UNICODE_BREAK_CLOSE_PUNCTUATION, | |
4306 | G_UNICODE_BREAK_QUOTATION, | |
4307 | G_UNICODE_BREAK_EXCLAMATION, | |
4308 | G_UNICODE_BREAK_IDEOGRAPHIC, | |
4309 | G_UNICODE_BREAK_NUMERIC, | |
4310 | G_UNICODE_BREAK_INFIX_SEPARATOR, | |
4311 | G_UNICODE_BREAK_SYMBOL, | |
4312 | G_UNICODE_BREAK_ALPHABETIC, | |
4313 | G_UNICODE_BREAK_PREFIX, | |
4314 | G_UNICODE_BREAK_POSTFIX, | |
4315 | G_UNICODE_BREAK_COMPLEX_CONTEXT, | |
4316 | G_UNICODE_BREAK_AMBIGUOUS, | |
4317 | G_UNICODE_BREAK_UNKNOWN, | |
4318 | G_UNICODE_BREAK_NEXT_LINE, | |
4319 | G_UNICODE_BREAK_WORD_JOINER, | |
4320 | G_UNICODE_BREAK_HANGUL_L_JAMO, | |
4321 | G_UNICODE_BREAK_HANGUL_V_JAMO, | |
4322 | G_UNICODE_BREAK_HANGUL_T_JAMO, | |
4323 | G_UNICODE_BREAK_HANGUL_LV_SYLLABLE, | |
4324 | G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE | |
4325 | } GUnicodeBreakType; | |
4326 | ||
4327 | typedef enum | |
4328 | { | |
4329 | G_UNICODE_SCRIPT_INVALID_CODE = -1, | |
4330 | G_UNICODE_SCRIPT_COMMON = 0, | |
4331 | G_UNICODE_SCRIPT_INHERITED, | |
4332 | G_UNICODE_SCRIPT_ARABIC, | |
4333 | G_UNICODE_SCRIPT_ARMENIAN, | |
4334 | G_UNICODE_SCRIPT_BENGALI, | |
4335 | G_UNICODE_SCRIPT_BOPOMOFO, | |
4336 | G_UNICODE_SCRIPT_CHEROKEE, | |
4337 | G_UNICODE_SCRIPT_COPTIC, | |
4338 | G_UNICODE_SCRIPT_CYRILLIC, | |
4339 | G_UNICODE_SCRIPT_DESERET, | |
4340 | G_UNICODE_SCRIPT_DEVANAGARI, | |
4341 | G_UNICODE_SCRIPT_ETHIOPIC, | |
4342 | G_UNICODE_SCRIPT_GEORGIAN, | |
4343 | G_UNICODE_SCRIPT_GOTHIC, | |
4344 | G_UNICODE_SCRIPT_GREEK, | |
4345 | G_UNICODE_SCRIPT_GUJARATI, | |
4346 | G_UNICODE_SCRIPT_GURMUKHI, | |
4347 | G_UNICODE_SCRIPT_HAN, | |
4348 | G_UNICODE_SCRIPT_HANGUL, | |
4349 | G_UNICODE_SCRIPT_HEBREW, | |
4350 | G_UNICODE_SCRIPT_HIRAGANA, | |
4351 | G_UNICODE_SCRIPT_KANNADA, | |
4352 | G_UNICODE_SCRIPT_KATAKANA, | |
4353 | G_UNICODE_SCRIPT_KHMER, | |
4354 | G_UNICODE_SCRIPT_LAO, | |
4355 | G_UNICODE_SCRIPT_LATIN, | |
4356 | G_UNICODE_SCRIPT_MALAYALAM, | |
4357 | G_UNICODE_SCRIPT_MONGOLIAN, | |
4358 | G_UNICODE_SCRIPT_MYANMAR, | |
4359 | G_UNICODE_SCRIPT_OGHAM, | |
4360 | G_UNICODE_SCRIPT_OLD_ITALIC, | |
4361 | G_UNICODE_SCRIPT_ORIYA, | |
4362 | G_UNICODE_SCRIPT_RUNIC, | |
4363 | G_UNICODE_SCRIPT_SINHALA, | |
4364 | G_UNICODE_SCRIPT_SYRIAC, | |
4365 | G_UNICODE_SCRIPT_TAMIL, | |
4366 | G_UNICODE_SCRIPT_TELUGU, | |
4367 | G_UNICODE_SCRIPT_THAANA, | |
4368 | G_UNICODE_SCRIPT_THAI, | |
4369 | G_UNICODE_SCRIPT_TIBETAN, | |
4370 | G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL, | |
4371 | G_UNICODE_SCRIPT_YI, | |
4372 | G_UNICODE_SCRIPT_TAGALOG, | |
4373 | G_UNICODE_SCRIPT_HANUNOO, | |
4374 | G_UNICODE_SCRIPT_BUHID, | |
4375 | G_UNICODE_SCRIPT_TAGBANWA, | |
4376 | ||
4377 | ||
4378 | G_UNICODE_SCRIPT_BRAILLE, | |
4379 | G_UNICODE_SCRIPT_CYPRIOT, | |
4380 | G_UNICODE_SCRIPT_LIMBU, | |
4381 | G_UNICODE_SCRIPT_OSMANYA, | |
4382 | G_UNICODE_SCRIPT_SHAVIAN, | |
4383 | G_UNICODE_SCRIPT_LINEAR_B, | |
4384 | G_UNICODE_SCRIPT_TAI_LE, | |
4385 | G_UNICODE_SCRIPT_UGARITIC, | |
4386 | ||
4387 | ||
4388 | G_UNICODE_SCRIPT_NEW_TAI_LUE, | |
4389 | G_UNICODE_SCRIPT_BUGINESE, | |
4390 | G_UNICODE_SCRIPT_GLAGOLITIC, | |
4391 | G_UNICODE_SCRIPT_TIFINAGH, | |
4392 | G_UNICODE_SCRIPT_SYLOTI_NAGRI, | |
4393 | G_UNICODE_SCRIPT_OLD_PERSIAN, | |
4394 | G_UNICODE_SCRIPT_KHAROSHTHI, | |
4395 | ||
4396 | ||
4397 | G_UNICODE_SCRIPT_UNKNOWN, | |
4398 | G_UNICODE_SCRIPT_BALINESE, | |
4399 | G_UNICODE_SCRIPT_CUNEIFORM, | |
4400 | G_UNICODE_SCRIPT_PHOENICIAN, | |
4401 | G_UNICODE_SCRIPT_PHAGS_PA, | |
4402 | G_UNICODE_SCRIPT_NKO | |
4403 | } GUnicodeScript; | |
4404 | ||
4405 | ||
4406 | ||
4407 | ||
4408 | ||
4409 | ||
4410 | ||
4411 | gboolean g_get_charset (const char **charset); | |
4412 | ||
4413 | ||
4414 | ||
4415 | gboolean g_unichar_isalnum (gunichar c) __attribute__((__const__)); | |
4416 | gboolean g_unichar_isalpha (gunichar c) __attribute__((__const__)); | |
4417 | gboolean g_unichar_iscntrl (gunichar c) __attribute__((__const__)); | |
4418 | gboolean g_unichar_isdigit (gunichar c) __attribute__((__const__)); | |
4419 | gboolean g_unichar_isgraph (gunichar c) __attribute__((__const__)); | |
4420 | gboolean g_unichar_islower (gunichar c) __attribute__((__const__)); | |
4421 | gboolean g_unichar_isprint (gunichar c) __attribute__((__const__)); | |
4422 | gboolean g_unichar_ispunct (gunichar c) __attribute__((__const__)); | |
4423 | gboolean g_unichar_isspace (gunichar c) __attribute__((__const__)); | |
4424 | gboolean g_unichar_isupper (gunichar c) __attribute__((__const__)); | |
4425 | gboolean g_unichar_isxdigit (gunichar c) __attribute__((__const__)); | |
4426 | gboolean g_unichar_istitle (gunichar c) __attribute__((__const__)); | |
4427 | gboolean g_unichar_isdefined (gunichar c) __attribute__((__const__)); | |
4428 | gboolean g_unichar_iswide (gunichar c) __attribute__((__const__)); | |
4429 | gboolean g_unichar_iswide_cjk(gunichar c) __attribute__((__const__)); | |
4430 | gboolean g_unichar_iszerowidth(gunichar c) __attribute__((__const__)); | |
4431 | gboolean g_unichar_ismark (gunichar c) __attribute__((__const__)); | |
4432 | ||
4433 | ||
4434 | ||
4435 | gunichar g_unichar_toupper (gunichar c) __attribute__((__const__)); | |
4436 | gunichar g_unichar_tolower (gunichar c) __attribute__((__const__)); | |
4437 | gunichar g_unichar_totitle (gunichar c) __attribute__((__const__)); | |
4438 | ||
4439 | ||
4440 | ||
4441 | gint g_unichar_digit_value (gunichar c) __attribute__((__const__)); | |
4442 | ||
4443 | gint g_unichar_xdigit_value (gunichar c) __attribute__((__const__)); | |
4444 | ||
4445 | ||
4446 | GUnicodeType g_unichar_type (gunichar c) __attribute__((__const__)); | |
4447 | ||
4448 | ||
4449 | GUnicodeBreakType g_unichar_break_type (gunichar c) __attribute__((__const__)); | |
4450 | ||
4451 | ||
4452 | gint g_unichar_combining_class (gunichar uc) __attribute__((__const__)); | |
4453 | ||
4454 | ||
4455 | ||
4456 | ||
4457 | ||
4458 | void g_unicode_canonical_ordering (gunichar *string, | |
4459 | gsize len); | |
4460 | ||
4461 | ||
4462 | ||
4463 | ||
4464 | gunichar *g_unicode_canonical_decomposition (gunichar ch, | |
4465 | gsize *result_len) __attribute__((__malloc__)); | |
4466 | ||
4467 | ||
4468 | ||
4469 | extern const gchar * const g_utf8_skip; | |
4470 | ||
4471 | ||
4472 | ||
4473 | gunichar g_utf8_get_char (const gchar *p) __attribute__((__pure__)); | |
4474 | gunichar g_utf8_get_char_validated (const gchar *p, | |
4475 | gssize max_len) __attribute__((__pure__)); | |
4476 | ||
4477 | gchar* g_utf8_offset_to_pointer (const gchar *str, | |
4478 | glong offset) __attribute__((__pure__)); | |
4479 | glong g_utf8_pointer_to_offset (const gchar *str, | |
4480 | const gchar *pos) __attribute__((__pure__)); | |
4481 | gchar* g_utf8_prev_char (const gchar *p) __attribute__((__pure__)); | |
4482 | gchar* g_utf8_find_next_char (const gchar *p, | |
4483 | const gchar *end) __attribute__((__pure__)); | |
4484 | gchar* g_utf8_find_prev_char (const gchar *str, | |
4485 | const gchar *p) __attribute__((__pure__)); | |
4486 | ||
4487 | glong g_utf8_strlen (const gchar *p, | |
4488 | gssize max) __attribute__((__pure__)); | |
4489 | ||
4490 | ||
4491 | gchar* g_utf8_strncpy (gchar *dest, | |
4492 | const gchar *src, | |
4493 | gsize n); | |
4494 | ||
4495 | ||
4496 | ||
4497 | gchar* g_utf8_strchr (const gchar *p, | |
4498 | gssize len, | |
4499 | gunichar c); | |
4500 | gchar* g_utf8_strrchr (const gchar *p, | |
4501 | gssize len, | |
4502 | gunichar c); | |
4503 | gchar* g_utf8_strreverse (const gchar *str, | |
4504 | gssize len); | |
4505 | ||
4506 | gunichar2 *g_utf8_to_utf16 (const gchar *str, | |
4507 | glong len, | |
4508 | glong *items_read, | |
4509 | glong *items_written, | |
4510 | GError **error) __attribute__((__malloc__)); | |
4511 | gunichar * g_utf8_to_ucs4 (const gchar *str, | |
4512 | glong len, | |
4513 | glong *items_read, | |
4514 | glong *items_written, | |
4515 | GError **error) __attribute__((__malloc__)); | |
4516 | gunichar * g_utf8_to_ucs4_fast (const gchar *str, | |
4517 | glong len, | |
4518 | glong *items_written) __attribute__((__malloc__)); | |
4519 | gunichar * g_utf16_to_ucs4 (const gunichar2 *str, | |
4520 | glong len, | |
4521 | glong *items_read, | |
4522 | glong *items_written, | |
4523 | GError **error) __attribute__((__malloc__)); | |
4524 | gchar* g_utf16_to_utf8 (const gunichar2 *str, | |
4525 | glong len, | |
4526 | glong *items_read, | |
4527 | glong *items_written, | |
4528 | GError **error) __attribute__((__malloc__)); | |
4529 | gunichar2 *g_ucs4_to_utf16 (const gunichar *str, | |
4530 | glong len, | |
4531 | glong *items_read, | |
4532 | glong *items_written, | |
4533 | GError **error) __attribute__((__malloc__)); | |
4534 | gchar* g_ucs4_to_utf8 (const gunichar *str, | |
4535 | glong len, | |
4536 | glong *items_read, | |
4537 | glong *items_written, | |
4538 | GError **error) __attribute__((__malloc__)); | |
4539 | ||
4540 | ||
4541 | ||
4542 | ||
4543 | ||
4544 | gint g_unichar_to_utf8 (gunichar c, | |
4545 | gchar *outbuf); | |
4546 | ||
4547 | ||
4548 | ||
4549 | ||
4550 | ||
4551 | gboolean g_utf8_validate (const gchar *str, | |
4552 | gssize max_len, | |
4553 | const gchar **end); | |
4554 | ||
4555 | ||
4556 | gboolean g_unichar_validate (gunichar ch) __attribute__((__const__)); | |
4557 | ||
4558 | gchar *g_utf8_strup (const gchar *str, | |
4559 | gssize len) __attribute__((__malloc__)); | |
4560 | gchar *g_utf8_strdown (const gchar *str, | |
4561 | gssize len) __attribute__((__malloc__)); | |
4562 | gchar *g_utf8_casefold (const gchar *str, | |
4563 | gssize len) __attribute__((__malloc__)); | |
4564 | ||
4565 | typedef enum { | |
4566 | G_NORMALIZE_DEFAULT, | |
4567 | G_NORMALIZE_NFD = G_NORMALIZE_DEFAULT, | |
4568 | G_NORMALIZE_DEFAULT_COMPOSE, | |
4569 | G_NORMALIZE_NFC = G_NORMALIZE_DEFAULT_COMPOSE, | |
4570 | G_NORMALIZE_ALL, | |
4571 | G_NORMALIZE_NFKD = G_NORMALIZE_ALL, | |
4572 | G_NORMALIZE_ALL_COMPOSE, | |
4573 | G_NORMALIZE_NFKC = G_NORMALIZE_ALL_COMPOSE | |
4574 | } GNormalizeMode; | |
4575 | ||
4576 | gchar *g_utf8_normalize (const gchar *str, | |
4577 | gssize len, | |
4578 | GNormalizeMode mode) __attribute__((__malloc__)); | |
4579 | ||
4580 | gint g_utf8_collate (const gchar *str1, | |
4581 | const gchar *str2) __attribute__((__pure__)); | |
4582 | gchar *g_utf8_collate_key (const gchar *str, | |
4583 | gssize len) __attribute__((__malloc__)); | |
4584 | gchar *g_utf8_collate_key_for_filename (const gchar *str, | |
4585 | gssize len) __attribute__((__malloc__)); | |
4586 | ||
4587 | gboolean g_unichar_get_mirror_char (gunichar ch, | |
4588 | gunichar *mirrored_ch); | |
4589 | ||
4590 | GUnicodeScript g_unichar_get_script (gunichar ch) __attribute__((__const__)); | |
4591 | ||
4592 | ||
4593 | ||
4594 | ||
4595 | gchar *_g_utf8_make_valid (const gchar *name); | |
4596 | ||
4597 | ||
4598 | ||
4599 | # 32 "/usr/include/glib-2.0/glib/gstring.h" 2 | |
4600 | ||
4601 | ||
4602 | ||
4603 | ||
4604 | typedef struct _GString GString; | |
4605 | typedef struct _GStringChunk GStringChunk; | |
4606 | ||
4607 | struct _GString | |
4608 | { | |
4609 | gchar *str; | |
4610 | gsize len; | |
4611 | gsize allocated_len; | |
4612 | }; | |
4613 | ||
4614 | ||
4615 | ||
4616 | GStringChunk* g_string_chunk_new (gsize size); | |
4617 | void g_string_chunk_free (GStringChunk *chunk); | |
4618 | void g_string_chunk_clear (GStringChunk *chunk); | |
4619 | gchar* g_string_chunk_insert (GStringChunk *chunk, | |
4620 | const gchar *string); | |
4621 | gchar* g_string_chunk_insert_len (GStringChunk *chunk, | |
4622 | const gchar *string, | |
4623 | gssize len); | |
4624 | gchar* g_string_chunk_insert_const (GStringChunk *chunk, | |
4625 | const gchar *string); | |
4626 | ||
4627 | ||
4628 | ||
4629 | ||
4630 | GString* g_string_new (const gchar *init); | |
4631 | GString* g_string_new_len (const gchar *init, | |
4632 | gssize len); | |
4633 | GString* g_string_sized_new (gsize dfl_size); | |
4634 | gchar* g_string_free (GString *string, | |
4635 | gboolean free_segment); | |
4636 | gboolean g_string_equal (const GString *v, | |
4637 | const GString *v2); | |
4638 | guint g_string_hash (const GString *str); | |
4639 | GString* g_string_assign (GString *string, | |
4640 | const gchar *rval); | |
4641 | GString* g_string_truncate (GString *string, | |
4642 | gsize len); | |
4643 | GString* g_string_set_size (GString *string, | |
4644 | gsize len); | |
4645 | GString* g_string_insert_len (GString *string, | |
4646 | gssize pos, | |
4647 | const gchar *val, | |
4648 | gssize len); | |
4649 | GString* g_string_append (GString *string, | |
4650 | const gchar *val); | |
4651 | GString* g_string_append_len (GString *string, | |
4652 | const gchar *val, | |
4653 | gssize len); | |
4654 | GString* g_string_append_c (GString *string, | |
4655 | gchar c); | |
4656 | GString* g_string_append_unichar (GString *string, | |
4657 | gunichar wc); | |
4658 | GString* g_string_prepend (GString *string, | |
4659 | const gchar *val); | |
4660 | GString* g_string_prepend_c (GString *string, | |
4661 | gchar c); | |
4662 | GString* g_string_prepend_unichar (GString *string, | |
4663 | gunichar wc); | |
4664 | GString* g_string_prepend_len (GString *string, | |
4665 | const gchar *val, | |
4666 | gssize len); | |
4667 | GString* g_string_insert (GString *string, | |
4668 | gssize pos, | |
4669 | const gchar *val); | |
4670 | GString* g_string_insert_c (GString *string, | |
4671 | gssize pos, | |
4672 | gchar c); | |
4673 | GString* g_string_insert_unichar (GString *string, | |
4674 | gssize pos, | |
4675 | gunichar wc); | |
4676 | GString* g_string_overwrite (GString *string, | |
4677 | gsize pos, | |
4678 | const gchar *val); | |
4679 | GString* g_string_overwrite_len (GString *string, | |
4680 | gsize pos, | |
4681 | const gchar *val, | |
4682 | gssize len); | |
4683 | GString* g_string_erase (GString *string, | |
4684 | gssize pos, | |
4685 | gssize len); | |
4686 | GString* g_string_ascii_down (GString *string); | |
4687 | GString* g_string_ascii_up (GString *string); | |
4688 | void g_string_vprintf (GString *string, | |
4689 | const gchar *format, | |
4690 | va_list args); | |
4691 | void g_string_printf (GString *string, | |
4692 | const gchar *format, | |
4693 | ...) __attribute__((__format__ (__printf__, 2, 3))); | |
4694 | void g_string_append_vprintf (GString *string, | |
4695 | const gchar *format, | |
4696 | va_list args); | |
4697 | void g_string_append_printf (GString *string, | |
4698 | const gchar *format, | |
4699 | ...) __attribute__((__format__ (__printf__, 2, 3))); | |
4700 | ||
4701 | ||
4702 | ||
4703 | static inline GString* | |
4704 | g_string_append_c_inline (GString *gstring, | |
4705 | gchar c) | |
4706 | { | |
4707 | if (gstring->len + 1 < gstring->allocated_len) | |
4708 | { | |
4709 | gstring->str[gstring->len++] = c; | |
4710 | gstring->str[gstring->len] = 0; | |
4711 | } | |
4712 | else | |
4713 | g_string_insert_c (gstring, -1, c); | |
4714 | return gstring; | |
4715 | } | |
4716 | # 159 "/usr/include/glib-2.0/glib/gstring.h" | |
4717 | GString* g_string_down (GString *string); | |
4718 | GString* g_string_up (GString *string); | |
4719 | ||
4720 | ||
4721 | ||
4722 | ||
4723 | ||
4724 | ||
4725 | ||
4726 | ||
4727 | # 33 "/usr/include/glib-2.0/glib/giochannel.h" 2 | |
4728 | ||
4729 | ||
4730 | ||
4731 | ||
4732 | ||
4733 | ||
4734 | typedef struct _GIOChannel GIOChannel; | |
4735 | typedef struct _GIOFuncs GIOFuncs; | |
4736 | ||
4737 | typedef enum | |
4738 | { | |
4739 | G_IO_ERROR_NONE, | |
4740 | G_IO_ERROR_AGAIN, | |
4741 | G_IO_ERROR_INVAL, | |
4742 | G_IO_ERROR_UNKNOWN | |
4743 | } GIOError; | |
4744 | ||
4745 | ||
4746 | ||
4747 | typedef enum | |
4748 | { | |
4749 | ||
4750 | G_IO_CHANNEL_ERROR_FBIG, | |
4751 | G_IO_CHANNEL_ERROR_INVAL, | |
4752 | G_IO_CHANNEL_ERROR_IO, | |
4753 | G_IO_CHANNEL_ERROR_ISDIR, | |
4754 | G_IO_CHANNEL_ERROR_NOSPC, | |
4755 | G_IO_CHANNEL_ERROR_NXIO, | |
4756 | G_IO_CHANNEL_ERROR_OVERFLOW, | |
4757 | G_IO_CHANNEL_ERROR_PIPE, | |
4758 | ||
4759 | G_IO_CHANNEL_ERROR_FAILED | |
4760 | } GIOChannelError; | |
4761 | ||
4762 | typedef enum | |
4763 | { | |
4764 | G_IO_STATUS_ERROR, | |
4765 | G_IO_STATUS_NORMAL, | |
4766 | G_IO_STATUS_EOF, | |
4767 | G_IO_STATUS_AGAIN | |
4768 | } GIOStatus; | |
4769 | ||
4770 | typedef enum | |
4771 | { | |
4772 | G_SEEK_CUR, | |
4773 | G_SEEK_SET, | |
4774 | G_SEEK_END | |
4775 | } GSeekType; | |
4776 | ||
4777 | typedef enum | |
4778 | { | |
4779 | G_IO_IN =1, | |
4780 | G_IO_OUT =4, | |
4781 | G_IO_PRI =2, | |
4782 | G_IO_ERR =8, | |
4783 | G_IO_HUP =16, | |
4784 | G_IO_NVAL =32 | |
4785 | } GIOCondition; | |
4786 | ||
4787 | typedef enum | |
4788 | { | |
4789 | G_IO_FLAG_APPEND = 1 << 0, | |
4790 | G_IO_FLAG_NONBLOCK = 1 << 1, | |
4791 | G_IO_FLAG_IS_READABLE = 1 << 2, | |
4792 | G_IO_FLAG_IS_WRITEABLE = 1 << 3, | |
4793 | G_IO_FLAG_IS_SEEKABLE = 1 << 4, | |
4794 | G_IO_FLAG_MASK = (1 << 5) - 1, | |
4795 | G_IO_FLAG_GET_MASK = G_IO_FLAG_MASK, | |
4796 | G_IO_FLAG_SET_MASK = G_IO_FLAG_APPEND | G_IO_FLAG_NONBLOCK | |
4797 | } GIOFlags; | |
4798 | ||
4799 | struct _GIOChannel | |
4800 | { | |
4801 | ||
4802 | gint ref_count; | |
4803 | GIOFuncs *funcs; | |
4804 | ||
4805 | gchar *encoding; | |
4806 | GIConv read_cd; | |
4807 | GIConv write_cd; | |
4808 | gchar *line_term; | |
4809 | guint line_term_len; | |
4810 | ||
4811 | gsize buf_size; | |
4812 | GString *read_buf; | |
4813 | GString *encoded_read_buf; | |
4814 | GString *write_buf; | |
4815 | gchar partial_write_buf[6]; | |
4816 | ||
4817 | ||
4818 | ||
4819 | guint use_buffer : 1; | |
4820 | guint do_encode : 1; | |
4821 | guint close_on_unref : 1; | |
4822 | guint is_readable : 1; | |
4823 | guint is_writeable : 1; | |
4824 | guint is_seekable : 1; | |
4825 | ||
4826 | gpointer reserved1; | |
4827 | gpointer reserved2; | |
4828 | }; | |
4829 | ||
4830 | typedef gboolean (*GIOFunc) (GIOChannel *source, | |
4831 | GIOCondition condition, | |
4832 | gpointer data); | |
4833 | struct _GIOFuncs | |
4834 | { | |
4835 | GIOStatus (*io_read) (GIOChannel *channel, | |
4836 | gchar *buf, | |
4837 | gsize count, | |
4838 | gsize *bytes_read, | |
4839 | GError **err); | |
4840 | GIOStatus (*io_write) (GIOChannel *channel, | |
4841 | const gchar *buf, | |
4842 | gsize count, | |
4843 | gsize *bytes_written, | |
4844 | GError **err); | |
4845 | GIOStatus (*io_seek) (GIOChannel *channel, | |
4846 | gint64 offset, | |
4847 | GSeekType type, | |
4848 | GError **err); | |
4849 | GIOStatus (*io_close) (GIOChannel *channel, | |
4850 | GError **err); | |
4851 | GSource* (*io_create_watch) (GIOChannel *channel, | |
4852 | GIOCondition condition); | |
4853 | void (*io_free) (GIOChannel *channel); | |
4854 | GIOStatus (*io_set_flags) (GIOChannel *channel, | |
4855 | GIOFlags flags, | |
4856 | GError **err); | |
4857 | GIOFlags (*io_get_flags) (GIOChannel *channel); | |
4858 | }; | |
4859 | ||
4860 | void g_io_channel_init (GIOChannel *channel); | |
4861 | GIOChannel *g_io_channel_ref (GIOChannel *channel); | |
4862 | void g_io_channel_unref (GIOChannel *channel); | |
4863 | ||
4864 | ||
4865 | GIOError g_io_channel_read (GIOChannel *channel, | |
4866 | gchar *buf, | |
4867 | gsize count, | |
4868 | gsize *bytes_read); | |
4869 | GIOError g_io_channel_write (GIOChannel *channel, | |
4870 | const gchar *buf, | |
4871 | gsize count, | |
4872 | gsize *bytes_written); | |
4873 | GIOError g_io_channel_seek (GIOChannel *channel, | |
4874 | gint64 offset, | |
4875 | GSeekType type); | |
4876 | void g_io_channel_close (GIOChannel *channel); | |
4877 | ||
4878 | ||
4879 | GIOStatus g_io_channel_shutdown (GIOChannel *channel, | |
4880 | gboolean flush, | |
4881 | GError **err); | |
4882 | guint g_io_add_watch_full (GIOChannel *channel, | |
4883 | gint priority, | |
4884 | GIOCondition condition, | |
4885 | GIOFunc func, | |
4886 | gpointer user_data, | |
4887 | GDestroyNotify notify); | |
4888 | GSource * g_io_create_watch (GIOChannel *channel, | |
4889 | GIOCondition condition); | |
4890 | guint g_io_add_watch (GIOChannel *channel, | |
4891 | GIOCondition condition, | |
4892 | GIOFunc func, | |
4893 | gpointer user_data); | |
4894 | ||
4895 | ||
4896 | ||
4897 | ||
4898 | void g_io_channel_set_buffer_size (GIOChannel *channel, | |
4899 | gsize size); | |
4900 | gsize g_io_channel_get_buffer_size (GIOChannel *channel); | |
4901 | GIOCondition g_io_channel_get_buffer_condition (GIOChannel *channel); | |
4902 | GIOStatus g_io_channel_set_flags (GIOChannel *channel, | |
4903 | GIOFlags flags, | |
4904 | GError **error); | |
4905 | GIOFlags g_io_channel_get_flags (GIOChannel *channel); | |
4906 | void g_io_channel_set_line_term (GIOChannel *channel, | |
4907 | const gchar *line_term, | |
4908 | gint length); | |
4909 | const gchar* g_io_channel_get_line_term (GIOChannel *channel, | |
4910 | gint *length); | |
4911 | void g_io_channel_set_buffered (GIOChannel *channel, | |
4912 | gboolean buffered); | |
4913 | gboolean g_io_channel_get_buffered (GIOChannel *channel); | |
4914 | GIOStatus g_io_channel_set_encoding (GIOChannel *channel, | |
4915 | const gchar *encoding, | |
4916 | GError **error); | |
4917 | const gchar* g_io_channel_get_encoding (GIOChannel *channel); | |
4918 | void g_io_channel_set_close_on_unref (GIOChannel *channel, | |
4919 | gboolean do_close); | |
4920 | gboolean g_io_channel_get_close_on_unref (GIOChannel *channel); | |
4921 | ||
4922 | ||
4923 | GIOStatus g_io_channel_flush (GIOChannel *channel, | |
4924 | GError **error); | |
4925 | GIOStatus g_io_channel_read_line (GIOChannel *channel, | |
4926 | gchar **str_return, | |
4927 | gsize *length, | |
4928 | gsize *terminator_pos, | |
4929 | GError **error); | |
4930 | GIOStatus g_io_channel_read_line_string (GIOChannel *channel, | |
4931 | GString *buffer, | |
4932 | gsize *terminator_pos, | |
4933 | GError **error); | |
4934 | GIOStatus g_io_channel_read_to_end (GIOChannel *channel, | |
4935 | gchar **str_return, | |
4936 | gsize *length, | |
4937 | GError **error); | |
4938 | GIOStatus g_io_channel_read_chars (GIOChannel *channel, | |
4939 | gchar *buf, | |
4940 | gsize count, | |
4941 | gsize *bytes_read, | |
4942 | GError **error); | |
4943 | GIOStatus g_io_channel_read_unichar (GIOChannel *channel, | |
4944 | gunichar *thechar, | |
4945 | GError **error); | |
4946 | GIOStatus g_io_channel_write_chars (GIOChannel *channel, | |
4947 | const gchar *buf, | |
4948 | gssize count, | |
4949 | gsize *bytes_written, | |
4950 | GError **error); | |
4951 | GIOStatus g_io_channel_write_unichar (GIOChannel *channel, | |
4952 | gunichar thechar, | |
4953 | GError **error); | |
4954 | GIOStatus g_io_channel_seek_position (GIOChannel *channel, | |
4955 | gint64 offset, | |
4956 | GSeekType type, | |
4957 | GError **error); | |
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | GIOChannel* g_io_channel_new_file (const gchar *filename, | |
4963 | const gchar *mode, | |
4964 | GError **error); | |
4965 | ||
4966 | ||
4967 | ||
4968 | GQuark g_io_channel_error_quark (void); | |
4969 | GIOChannelError g_io_channel_error_from_errno (gint en); | |
4970 | # 294 "/usr/include/glib-2.0/glib/giochannel.h" | |
4971 | GIOChannel* g_io_channel_unix_new (int fd); | |
4972 | gint g_io_channel_unix_get_fd (GIOChannel *channel); | |
4973 | ||
4974 | ||
4975 | ||
4976 | extern GSourceFuncs g_io_watch_funcs; | |
4977 | # 352 "/usr/include/glib-2.0/glib/giochannel.h" | |
4978 | ||
4979 | # 48 "/usr/include/glib-2.0/glib.h" 2 | |
4980 | # 1 "/usr/include/glib-2.0/glib/gkeyfile.h" 1 | |
4981 | # 28 "/usr/include/glib-2.0/glib/gkeyfile.h" | |
4982 | ||
4983 | ||
4984 | typedef enum | |
4985 | { | |
4986 | G_KEY_FILE_ERROR_UNKNOWN_ENCODING, | |
4987 | G_KEY_FILE_ERROR_PARSE, | |
4988 | G_KEY_FILE_ERROR_NOT_FOUND, | |
4989 | G_KEY_FILE_ERROR_KEY_NOT_FOUND, | |
4990 | G_KEY_FILE_ERROR_GROUP_NOT_FOUND, | |
4991 | G_KEY_FILE_ERROR_INVALID_VALUE | |
4992 | } GKeyFileError; | |
4993 | ||
4994 | ||
4995 | ||
4996 | GQuark g_key_file_error_quark (void); | |
4997 | ||
4998 | typedef struct _GKeyFile GKeyFile; | |
4999 | ||
5000 | typedef enum | |
5001 | { | |
5002 | G_KEY_FILE_NONE = 0, | |
5003 | G_KEY_FILE_KEEP_COMMENTS = 1 << 0, | |
5004 | G_KEY_FILE_KEEP_TRANSLATIONS = 1 << 1 | |
5005 | } GKeyFileFlags; | |
5006 | ||
5007 | GKeyFile *g_key_file_new (void); | |
5008 | void g_key_file_free (GKeyFile *key_file); | |
5009 | void g_key_file_set_list_separator (GKeyFile *key_file, | |
5010 | gchar separator); | |
5011 | gboolean g_key_file_load_from_file (GKeyFile *key_file, | |
5012 | const gchar *file, | |
5013 | GKeyFileFlags flags, | |
5014 | GError **error); | |
5015 | gboolean g_key_file_load_from_data (GKeyFile *key_file, | |
5016 | const gchar *data, | |
5017 | gsize length, | |
5018 | GKeyFileFlags flags, | |
5019 | GError **error); | |
5020 | gboolean g_key_file_load_from_dirs (GKeyFile *key_file, | |
5021 | const gchar *file, | |
5022 | const gchar **search_dirs, | |
5023 | gchar **full_path, | |
5024 | GKeyFileFlags flags, | |
5025 | GError **error); | |
5026 | gboolean g_key_file_load_from_data_dirs (GKeyFile *key_file, | |
5027 | const gchar *file, | |
5028 | gchar **full_path, | |
5029 | GKeyFileFlags flags, | |
5030 | GError **error); | |
5031 | gchar *g_key_file_to_data (GKeyFile *key_file, | |
5032 | gsize *length, | |
5033 | GError **error) __attribute__((__malloc__)); | |
5034 | gchar *g_key_file_get_start_group (GKeyFile *key_file) __attribute__((__malloc__)); | |
5035 | gchar **g_key_file_get_groups (GKeyFile *key_file, | |
5036 | gsize *length) __attribute__((__malloc__)); | |
5037 | gchar **g_key_file_get_keys (GKeyFile *key_file, | |
5038 | const gchar *group_name, | |
5039 | gsize *length, | |
5040 | GError **error) __attribute__((__malloc__)); | |
5041 | gboolean g_key_file_has_group (GKeyFile *key_file, | |
5042 | const gchar *group_name); | |
5043 | gboolean g_key_file_has_key (GKeyFile *key_file, | |
5044 | const gchar *group_name, | |
5045 | const gchar *key, | |
5046 | GError **error); | |
5047 | gchar *g_key_file_get_value (GKeyFile *key_file, | |
5048 | const gchar *group_name, | |
5049 | const gchar *key, | |
5050 | GError **error) __attribute__((__malloc__)); | |
5051 | void g_key_file_set_value (GKeyFile *key_file, | |
5052 | const gchar *group_name, | |
5053 | const gchar *key, | |
5054 | const gchar *value); | |
5055 | gchar *g_key_file_get_string (GKeyFile *key_file, | |
5056 | const gchar *group_name, | |
5057 | const gchar *key, | |
5058 | GError **error) __attribute__((__malloc__)); | |
5059 | void g_key_file_set_string (GKeyFile *key_file, | |
5060 | const gchar *group_name, | |
5061 | const gchar *key, | |
5062 | const gchar *string); | |
5063 | gchar *g_key_file_get_locale_string (GKeyFile *key_file, | |
5064 | const gchar *group_name, | |
5065 | const gchar *key, | |
5066 | const gchar *locale, | |
5067 | GError **error) __attribute__((__malloc__)); | |
5068 | void g_key_file_set_locale_string (GKeyFile *key_file, | |
5069 | const gchar *group_name, | |
5070 | const gchar *key, | |
5071 | const gchar *locale, | |
5072 | const gchar *string); | |
5073 | gboolean g_key_file_get_boolean (GKeyFile *key_file, | |
5074 | const gchar *group_name, | |
5075 | const gchar *key, | |
5076 | GError **error); | |
5077 | void g_key_file_set_boolean (GKeyFile *key_file, | |
5078 | const gchar *group_name, | |
5079 | const gchar *key, | |
5080 | gboolean value); | |
5081 | gint g_key_file_get_integer (GKeyFile *key_file, | |
5082 | const gchar *group_name, | |
5083 | const gchar *key, | |
5084 | GError **error); | |
5085 | void g_key_file_set_integer (GKeyFile *key_file, | |
5086 | const gchar *group_name, | |
5087 | const gchar *key, | |
5088 | gint value); | |
5089 | gdouble g_key_file_get_double (GKeyFile *key_file, | |
5090 | const gchar *group_name, | |
5091 | const gchar *key, | |
5092 | GError **error); | |
5093 | void g_key_file_set_double (GKeyFile *key_file, | |
5094 | const gchar *group_name, | |
5095 | const gchar *key, | |
5096 | gdouble value); | |
5097 | gchar **g_key_file_get_string_list (GKeyFile *key_file, | |
5098 | const gchar *group_name, | |
5099 | const gchar *key, | |
5100 | gsize *length, | |
5101 | GError **error) __attribute__((__malloc__)); | |
5102 | void g_key_file_set_string_list (GKeyFile *key_file, | |
5103 | const gchar *group_name, | |
5104 | const gchar *key, | |
5105 | const gchar * const list[], | |
5106 | gsize length); | |
5107 | gchar **g_key_file_get_locale_string_list (GKeyFile *key_file, | |
5108 | const gchar *group_name, | |
5109 | const gchar *key, | |
5110 | const gchar *locale, | |
5111 | gsize *length, | |
5112 | GError **error) __attribute__((__malloc__)); | |
5113 | void g_key_file_set_locale_string_list (GKeyFile *key_file, | |
5114 | const gchar *group_name, | |
5115 | const gchar *key, | |
5116 | const gchar *locale, | |
5117 | const gchar * const list[], | |
5118 | gsize length); | |
5119 | gboolean *g_key_file_get_boolean_list (GKeyFile *key_file, | |
5120 | const gchar *group_name, | |
5121 | const gchar *key, | |
5122 | gsize *length, | |
5123 | GError **error) __attribute__((__malloc__)); | |
5124 | void g_key_file_set_boolean_list (GKeyFile *key_file, | |
5125 | const gchar *group_name, | |
5126 | const gchar *key, | |
5127 | gboolean list[], | |
5128 | gsize length); | |
5129 | gint *g_key_file_get_integer_list (GKeyFile *key_file, | |
5130 | const gchar *group_name, | |
5131 | const gchar *key, | |
5132 | gsize *length, | |
5133 | GError **error) __attribute__((__malloc__)); | |
5134 | void g_key_file_set_double_list (GKeyFile *key_file, | |
5135 | const gchar *group_name, | |
5136 | const gchar *key, | |
5137 | gdouble list[], | |
5138 | gsize length); | |
5139 | gdouble *g_key_file_get_double_list (GKeyFile *key_file, | |
5140 | const gchar *group_name, | |
5141 | const gchar *key, | |
5142 | gsize *length, | |
5143 | GError **error) __attribute__((__malloc__)); | |
5144 | void g_key_file_set_integer_list (GKeyFile *key_file, | |
5145 | const gchar *group_name, | |
5146 | const gchar *key, | |
5147 | gint list[], | |
5148 | gsize length); | |
5149 | void g_key_file_set_comment (GKeyFile *key_file, | |
5150 | const gchar *group_name, | |
5151 | const gchar *key, | |
5152 | const gchar *comment, | |
5153 | GError **error); | |
5154 | gchar *g_key_file_get_comment (GKeyFile *key_file, | |
5155 | const gchar *group_name, | |
5156 | const gchar *key, | |
5157 | GError **error) __attribute__((__malloc__)); | |
5158 | ||
5159 | void g_key_file_remove_comment (GKeyFile *key_file, | |
5160 | const gchar *group_name, | |
5161 | const gchar *key, | |
5162 | GError **error); | |
5163 | void g_key_file_remove_key (GKeyFile *key_file, | |
5164 | const gchar *group_name, | |
5165 | const gchar *key, | |
5166 | GError **error); | |
5167 | void g_key_file_remove_group (GKeyFile *key_file, | |
5168 | const gchar *group_name, | |
5169 | GError **error); | |
5170 | # 244 "/usr/include/glib-2.0/glib/gkeyfile.h" | |
5171 | ||
5172 | # 49 "/usr/include/glib-2.0/glib.h" 2 | |
5173 | ||
5174 | ||
5175 | ||
5176 | # 1 "/usr/include/glib-2.0/glib/gmappedfile.h" 1 | |
5177 | # 26 "/usr/include/glib-2.0/glib/gmappedfile.h" | |
5178 | ||
5179 | ||
5180 | typedef struct _GMappedFile GMappedFile; | |
5181 | ||
5182 | GMappedFile *g_mapped_file_new (const gchar *filename, | |
5183 | gboolean writable, | |
5184 | GError **error) __attribute__((__malloc__)); | |
5185 | gsize g_mapped_file_get_length (GMappedFile *file); | |
5186 | gchar *g_mapped_file_get_contents (GMappedFile *file); | |
5187 | void g_mapped_file_free (GMappedFile *file); | |
5188 | ||
5189 | ||
5190 | # 53 "/usr/include/glib-2.0/glib.h" 2 | |
5191 | # 1 "/usr/include/glib-2.0/glib/gmarkup.h" 1 | |
5192 | # 28 "/usr/include/glib-2.0/glib/gmarkup.h" | |
5193 | ||
5194 | ||
5195 | typedef enum | |
5196 | { | |
5197 | G_MARKUP_ERROR_BAD_UTF8, | |
5198 | G_MARKUP_ERROR_EMPTY, | |
5199 | G_MARKUP_ERROR_PARSE, | |
5200 | ||
5201 | ||
5202 | ||
5203 | G_MARKUP_ERROR_UNKNOWN_ELEMENT, | |
5204 | G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE, | |
5205 | G_MARKUP_ERROR_INVALID_CONTENT | |
5206 | } GMarkupError; | |
5207 | ||
5208 | ||
5209 | ||
5210 | GQuark g_markup_error_quark (void); | |
5211 | ||
5212 | typedef enum | |
5213 | { | |
5214 | G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG = 1 << 0, | |
5215 | G_MARKUP_TREAT_CDATA_AS_TEXT = 1 << 1 | |
5216 | } GMarkupParseFlags; | |
5217 | ||
5218 | typedef struct _GMarkupParseContext GMarkupParseContext; | |
5219 | typedef struct _GMarkupParser GMarkupParser; | |
5220 | ||
5221 | struct _GMarkupParser | |
5222 | { | |
5223 | ||
5224 | void (*start_element) (GMarkupParseContext *context, | |
5225 | const gchar *element_name, | |
5226 | const gchar **attribute_names, | |
5227 | const gchar **attribute_values, | |
5228 | gpointer user_data, | |
5229 | GError **error); | |
5230 | ||
5231 | ||
5232 | void (*end_element) (GMarkupParseContext *context, | |
5233 | const gchar *element_name, | |
5234 | gpointer user_data, | |
5235 | GError **error); | |
5236 | ||
5237 | ||
5238 | ||
5239 | void (*text) (GMarkupParseContext *context, | |
5240 | const gchar *text, | |
5241 | gsize text_len, | |
5242 | gpointer user_data, | |
5243 | GError **error); | |
5244 | ||
5245 | ||
5246 | ||
5247 | ||
5248 | ||
5249 | ||
5250 | void (*passthrough) (GMarkupParseContext *context, | |
5251 | const gchar *passthrough_text, | |
5252 | gsize text_len, | |
5253 | gpointer user_data, | |
5254 | GError **error); | |
5255 | ||
5256 | ||
5257 | ||
5258 | ||
5259 | void (*error) (GMarkupParseContext *context, | |
5260 | GError *error, | |
5261 | gpointer user_data); | |
5262 | }; | |
5263 | ||
5264 | GMarkupParseContext *g_markup_parse_context_new (const GMarkupParser *parser, | |
5265 | GMarkupParseFlags flags, | |
5266 | gpointer user_data, | |
5267 | GDestroyNotify user_data_dnotify); | |
5268 | void g_markup_parse_context_free (GMarkupParseContext *context); | |
5269 | gboolean g_markup_parse_context_parse (GMarkupParseContext *context, | |
5270 | const gchar *text, | |
5271 | gssize text_len, | |
5272 | GError **error); | |
5273 | ||
5274 | gboolean g_markup_parse_context_end_parse (GMarkupParseContext *context, | |
5275 | GError **error); | |
5276 | const gchar *g_markup_parse_context_get_element (GMarkupParseContext *context); | |
5277 | ||
5278 | ||
5279 | void g_markup_parse_context_get_position (GMarkupParseContext *context, | |
5280 | gint *line_number, | |
5281 | gint *char_number); | |
5282 | ||
5283 | ||
5284 | gchar* g_markup_escape_text (const gchar *text, | |
5285 | gssize length); | |
5286 | ||
5287 | gchar *g_markup_printf_escaped (const char *format, | |
5288 | ...) __attribute__((__format__ (__printf__, 1, 2))); | |
5289 | gchar *g_markup_vprintf_escaped (const char *format, | |
5290 | va_list args); | |
5291 | ||
5292 | ||
5293 | # 54 "/usr/include/glib-2.0/glib.h" 2 | |
5294 | ||
5295 | # 1 "/usr/include/glib-2.0/glib/gmessages.h" 1 | |
5296 | # 37 "/usr/include/glib-2.0/glib/gmessages.h" | |
5297 | ||
5298 | # 38 "/usr/include/glib-2.0/glib/gmessages.h" 3 | |
5299 | ||
5300 | ||
5301 | ||
5302 | ||
5303 | ||
5304 | ||
5305 | gsize g_printf_string_upper_bound (const gchar* format, | |
5306 | va_list args); | |
5307 | # 54 "/usr/include/glib-2.0/glib/gmessages.h" 3 | |
5308 | typedef enum | |
5309 | { | |
5310 | ||
5311 | G_LOG_FLAG_RECURSION = 1 << 0, | |
5312 | G_LOG_FLAG_FATAL = 1 << 1, | |
5313 | ||
5314 | ||
5315 | G_LOG_LEVEL_ERROR = 1 << 2, | |
5316 | G_LOG_LEVEL_CRITICAL = 1 << 3, | |
5317 | G_LOG_LEVEL_WARNING = 1 << 4, | |
5318 | G_LOG_LEVEL_MESSAGE = 1 << 5, | |
5319 | G_LOG_LEVEL_INFO = 1 << 6, | |
5320 | G_LOG_LEVEL_DEBUG = 1 << 7, | |
5321 | ||
5322 | G_LOG_LEVEL_MASK = ~(G_LOG_FLAG_RECURSION | G_LOG_FLAG_FATAL) | |
5323 | } GLogLevelFlags; | |
5324 | ||
5325 | ||
5326 | ||
5327 | ||
5328 | typedef void (*GLogFunc) (const gchar *log_domain, | |
5329 | GLogLevelFlags log_level, | |
5330 | const gchar *message, | |
5331 | gpointer user_data); | |
5332 | ||
5333 | ||
5334 | ||
5335 | guint g_log_set_handler (const gchar *log_domain, | |
5336 | GLogLevelFlags log_levels, | |
5337 | GLogFunc log_func, | |
5338 | gpointer user_data); | |
5339 | void g_log_remove_handler (const gchar *log_domain, | |
5340 | guint handler_id); | |
5341 | void g_log_default_handler (const gchar *log_domain, | |
5342 | GLogLevelFlags log_level, | |
5343 | const gchar *message, | |
5344 | gpointer unused_data); | |
5345 | GLogFunc g_log_set_default_handler (GLogFunc log_func, | |
5346 | gpointer user_data); | |
5347 | void g_log (const gchar *log_domain, | |
5348 | GLogLevelFlags log_level, | |
5349 | const gchar *format, | |
5350 | ...) __attribute__((__format__ (__printf__, 3, 4))); | |
5351 | void g_logv (const gchar *log_domain, | |
5352 | GLogLevelFlags log_level, | |
5353 | const gchar *format, | |
5354 | va_list args); | |
5355 | GLogLevelFlags g_log_set_fatal_mask (const gchar *log_domain, | |
5356 | GLogLevelFlags fatal_mask); | |
5357 | GLogLevelFlags g_log_set_always_fatal (GLogLevelFlags fatal_mask); | |
5358 | ||
5359 | ||
5360 | __attribute__((visibility("hidden"))) void _g_log_fallback_handler (const gchar *log_domain, | |
5361 | GLogLevelFlags log_level, | |
5362 | const gchar *message, | |
5363 | gpointer unused_data); | |
5364 | ||
5365 | ||
5366 | void g_return_if_fail_warning (const char *log_domain, | |
5367 | const char *pretty_function, | |
5368 | const char *expression); | |
5369 | void g_assert_warning (const char *log_domain, | |
5370 | const char *file, | |
5371 | const int line, | |
5372 | const char *pretty_function, | |
5373 | const char *expression) __attribute__((__noreturn__)); | |
5374 | # 205 "/usr/include/glib-2.0/glib/gmessages.h" 3 | |
5375 | typedef void (*GPrintFunc) (const gchar *string); | |
5376 | void g_print (const gchar *format, | |
5377 | ...) __attribute__((__format__ (__printf__, 1, 2))); | |
5378 | GPrintFunc g_set_print_handler (GPrintFunc func); | |
5379 | void g_printerr (const gchar *format, | |
5380 | ...) __attribute__((__format__ (__printf__, 1, 2))); | |
5381 | GPrintFunc g_set_printerr_handler (GPrintFunc func); | |
5382 | # 361 "/usr/include/glib-2.0/glib/gmessages.h" 3 | |
5383 | ||
5384 | # 56 "/usr/include/glib-2.0/glib.h" 2 | |
5385 | # 1 "/usr/include/glib-2.0/glib/gnode.h" 1 | |
5386 | # 32 "/usr/include/glib-2.0/glib/gnode.h" | |
5387 | ||
5388 | ||
5389 | typedef struct _GNode GNode; | |
5390 | ||
5391 | ||
5392 | typedef enum | |
5393 | { | |
5394 | G_TRAVERSE_LEAVES = 1 << 0, | |
5395 | G_TRAVERSE_NON_LEAVES = 1 << 1, | |
5396 | G_TRAVERSE_ALL = G_TRAVERSE_LEAVES | G_TRAVERSE_NON_LEAVES, | |
5397 | G_TRAVERSE_MASK = 0x03, | |
5398 | G_TRAVERSE_LEAFS = G_TRAVERSE_LEAVES, | |
5399 | G_TRAVERSE_NON_LEAFS = G_TRAVERSE_NON_LEAVES | |
5400 | } GTraverseFlags; | |
5401 | ||
5402 | ||
5403 | typedef enum | |
5404 | { | |
5405 | G_IN_ORDER, | |
5406 | G_PRE_ORDER, | |
5407 | G_POST_ORDER, | |
5408 | G_LEVEL_ORDER | |
5409 | } GTraverseType; | |
5410 | ||
5411 | typedef gboolean (*GNodeTraverseFunc) (GNode *node, | |
5412 | gpointer data); | |
5413 | typedef void (*GNodeForeachFunc) (GNode *node, | |
5414 | gpointer data); | |
5415 | typedef gpointer (*GCopyFunc) (gconstpointer src, | |
5416 | gpointer data); | |
5417 | ||
5418 | ||
5419 | ||
5420 | struct _GNode | |
5421 | { | |
5422 | gpointer data; | |
5423 | GNode *next; | |
5424 | GNode *prev; | |
5425 | GNode *parent; | |
5426 | GNode *children; | |
5427 | }; | |
5428 | ||
5429 | ||
5430 | ||
5431 | ||
5432 | ||
5433 | ||
5434 | GNode* g_node_new (gpointer data); | |
5435 | void g_node_destroy (GNode *root); | |
5436 | void g_node_unlink (GNode *node); | |
5437 | GNode* g_node_copy_deep (GNode *node, | |
5438 | GCopyFunc copy_func, | |
5439 | gpointer data); | |
5440 | GNode* g_node_copy (GNode *node); | |
5441 | GNode* g_node_insert (GNode *parent, | |
5442 | gint position, | |
5443 | GNode *node); | |
5444 | GNode* g_node_insert_before (GNode *parent, | |
5445 | GNode *sibling, | |
5446 | GNode *node); | |
5447 | GNode* g_node_insert_after (GNode *parent, | |
5448 | GNode *sibling, | |
5449 | GNode *node); | |
5450 | GNode* g_node_prepend (GNode *parent, | |
5451 | GNode *node); | |
5452 | guint g_node_n_nodes (GNode *root, | |
5453 | GTraverseFlags flags); | |
5454 | GNode* g_node_get_root (GNode *node); | |
5455 | gboolean g_node_is_ancestor (GNode *node, | |
5456 | GNode *descendant); | |
5457 | guint g_node_depth (GNode *node); | |
5458 | GNode* g_node_find (GNode *root, | |
5459 | GTraverseType order, | |
5460 | GTraverseFlags flags, | |
5461 | gpointer data); | |
5462 | # 125 "/usr/include/glib-2.0/glib/gnode.h" | |
5463 | void g_node_traverse (GNode *root, | |
5464 | GTraverseType order, | |
5465 | GTraverseFlags flags, | |
5466 | gint max_depth, | |
5467 | GNodeTraverseFunc func, | |
5468 | gpointer data); | |
5469 | ||
5470 | ||
5471 | ||
5472 | ||
5473 | ||
5474 | ||
5475 | guint g_node_max_height (GNode *root); | |
5476 | ||
5477 | void g_node_children_foreach (GNode *node, | |
5478 | GTraverseFlags flags, | |
5479 | GNodeForeachFunc func, | |
5480 | gpointer data); | |
5481 | void g_node_reverse_children (GNode *node); | |
5482 | guint g_node_n_children (GNode *node); | |
5483 | GNode* g_node_nth_child (GNode *node, | |
5484 | guint n); | |
5485 | GNode* g_node_last_child (GNode *node); | |
5486 | GNode* g_node_find_child (GNode *node, | |
5487 | GTraverseFlags flags, | |
5488 | gpointer data); | |
5489 | gint g_node_child_position (GNode *node, | |
5490 | GNode *child); | |
5491 | gint g_node_child_index (GNode *node, | |
5492 | gpointer data); | |
5493 | ||
5494 | GNode* g_node_first_sibling (GNode *node); | |
5495 | GNode* g_node_last_sibling (GNode *node); | |
5496 | # 167 "/usr/include/glib-2.0/glib/gnode.h" | |
5497 | void g_node_push_allocator (gpointer dummy); | |
5498 | void g_node_pop_allocator (void); | |
5499 | ||
5500 | ||
5501 | # 57 "/usr/include/glib-2.0/glib.h" 2 | |
5502 | # 1 "/usr/include/glib-2.0/glib/goption.h" 1 | |
5503 | # 27 "/usr/include/glib-2.0/glib/goption.h" | |
5504 | ||
5505 | ||
5506 | typedef struct _GOptionContext GOptionContext; | |
5507 | typedef struct _GOptionGroup GOptionGroup; | |
5508 | typedef struct _GOptionEntry GOptionEntry; | |
5509 | ||
5510 | typedef enum | |
5511 | { | |
5512 | G_OPTION_FLAG_HIDDEN = 1 << 0, | |
5513 | G_OPTION_FLAG_IN_MAIN = 1 << 1, | |
5514 | G_OPTION_FLAG_REVERSE = 1 << 2, | |
5515 | G_OPTION_FLAG_NO_ARG = 1 << 3, | |
5516 | G_OPTION_FLAG_FILENAME = 1 << 4, | |
5517 | G_OPTION_FLAG_OPTIONAL_ARG = 1 << 5, | |
5518 | G_OPTION_FLAG_NOALIAS = 1 << 6 | |
5519 | } GOptionFlags; | |
5520 | ||
5521 | typedef enum | |
5522 | { | |
5523 | G_OPTION_ARG_NONE, | |
5524 | G_OPTION_ARG_STRING, | |
5525 | G_OPTION_ARG_INT, | |
5526 | G_OPTION_ARG_CALLBACK, | |
5527 | G_OPTION_ARG_FILENAME, | |
5528 | G_OPTION_ARG_STRING_ARRAY, | |
5529 | G_OPTION_ARG_FILENAME_ARRAY, | |
5530 | G_OPTION_ARG_DOUBLE, | |
5531 | G_OPTION_ARG_INT64 | |
5532 | } GOptionArg; | |
5533 | ||
5534 | typedef gboolean (*GOptionArgFunc) (const gchar *option_name, | |
5535 | const gchar *value, | |
5536 | gpointer data, | |
5537 | GError **error); | |
5538 | ||
5539 | typedef gboolean (*GOptionParseFunc) (GOptionContext *context, | |
5540 | GOptionGroup *group, | |
5541 | gpointer data, | |
5542 | GError **error); | |
5543 | ||
5544 | typedef void (*GOptionErrorFunc) (GOptionContext *context, | |
5545 | GOptionGroup *group, | |
5546 | gpointer data, | |
5547 | GError **error); | |
5548 | ||
5549 | ||
5550 | ||
5551 | typedef enum | |
5552 | { | |
5553 | G_OPTION_ERROR_UNKNOWN_OPTION, | |
5554 | G_OPTION_ERROR_BAD_VALUE, | |
5555 | G_OPTION_ERROR_FAILED | |
5556 | } GOptionError; | |
5557 | ||
5558 | GQuark g_option_error_quark (void); | |
5559 | ||
5560 | ||
5561 | struct _GOptionEntry | |
5562 | { | |
5563 | const gchar *long_name; | |
5564 | gchar short_name; | |
5565 | gint flags; | |
5566 | ||
5567 | GOptionArg arg; | |
5568 | gpointer arg_data; | |
5569 | ||
5570 | const gchar *description; | |
5571 | const gchar *arg_description; | |
5572 | }; | |
5573 | ||
5574 | ||
5575 | ||
5576 | GOptionContext *g_option_context_new (const gchar *parameter_string); | |
5577 | void g_option_context_set_summary (GOptionContext *context, | |
5578 | const gchar *summary); | |
5579 | const gchar *g_option_context_get_summary (GOptionContext *context); | |
5580 | void g_option_context_set_description (GOptionContext *context, | |
5581 | const gchar *description); | |
5582 | const gchar *g_option_context_get_description (GOptionContext *context); | |
5583 | void g_option_context_free (GOptionContext *context); | |
5584 | void g_option_context_set_help_enabled (GOptionContext *context, | |
5585 | gboolean help_enabled); | |
5586 | gboolean g_option_context_get_help_enabled (GOptionContext *context); | |
5587 | void g_option_context_set_ignore_unknown_options (GOptionContext *context, | |
5588 | gboolean ignore_unknown); | |
5589 | gboolean g_option_context_get_ignore_unknown_options (GOptionContext *context); | |
5590 | ||
5591 | void g_option_context_add_main_entries (GOptionContext *context, | |
5592 | const GOptionEntry *entries, | |
5593 | const gchar *translation_domain); | |
5594 | gboolean g_option_context_parse (GOptionContext *context, | |
5595 | gint *argc, | |
5596 | gchar ***argv, | |
5597 | GError **error); | |
5598 | void g_option_context_set_translate_func (GOptionContext *context, | |
5599 | GTranslateFunc func, | |
5600 | gpointer data, | |
5601 | GDestroyNotify destroy_notify); | |
5602 | void g_option_context_set_translation_domain (GOptionContext *context, | |
5603 | const gchar *domain); | |
5604 | ||
5605 | void g_option_context_add_group (GOptionContext *context, | |
5606 | GOptionGroup *group); | |
5607 | void g_option_context_set_main_group (GOptionContext *context, | |
5608 | GOptionGroup *group); | |
5609 | GOptionGroup *g_option_context_get_main_group (GOptionContext *context); | |
5610 | gchar *g_option_context_get_help (GOptionContext *context, | |
5611 | gboolean main_help, | |
5612 | GOptionGroup *group); | |
5613 | ||
5614 | GOptionGroup *g_option_group_new (const gchar *name, | |
5615 | const gchar *description, | |
5616 | const gchar *help_description, | |
5617 | gpointer user_data, | |
5618 | GDestroyNotify destroy); | |
5619 | void g_option_group_set_parse_hooks (GOptionGroup *group, | |
5620 | GOptionParseFunc pre_parse_func, | |
5621 | GOptionParseFunc post_parse_func); | |
5622 | void g_option_group_set_error_hook (GOptionGroup *group, | |
5623 | GOptionErrorFunc error_func); | |
5624 | void g_option_group_free (GOptionGroup *group); | |
5625 | void g_option_group_add_entries (GOptionGroup *group, | |
5626 | const GOptionEntry *entries); | |
5627 | void g_option_group_set_translate_func (GOptionGroup *group, | |
5628 | GTranslateFunc func, | |
5629 | gpointer data, | |
5630 | GDestroyNotify destroy_notify); | |
5631 | void g_option_group_set_translation_domain (GOptionGroup *group, | |
5632 | const gchar *domain); | |
5633 | ||
5634 | ||
5635 | ||
5636 | # 58 "/usr/include/glib-2.0/glib.h" 2 | |
5637 | # 1 "/usr/include/glib-2.0/glib/gpattern.h" 1 | |
5638 | # 24 "/usr/include/glib-2.0/glib/gpattern.h" | |
5639 | ||
5640 | ||
5641 | ||
5642 | typedef struct _GPatternSpec GPatternSpec; | |
5643 | ||
5644 | GPatternSpec* g_pattern_spec_new (const gchar *pattern); | |
5645 | void g_pattern_spec_free (GPatternSpec *pspec); | |
5646 | gboolean g_pattern_spec_equal (GPatternSpec *pspec1, | |
5647 | GPatternSpec *pspec2); | |
5648 | gboolean g_pattern_match (GPatternSpec *pspec, | |
5649 | guint string_length, | |
5650 | const gchar *string, | |
5651 | const gchar *string_reversed); | |
5652 | gboolean g_pattern_match_string (GPatternSpec *pspec, | |
5653 | const gchar *string); | |
5654 | gboolean g_pattern_match_simple (const gchar *pattern, | |
5655 | const gchar *string); | |
5656 | ||
5657 | ||
5658 | # 59 "/usr/include/glib-2.0/glib.h" 2 | |
5659 | # 1 "/usr/include/glib-2.0/glib/gprimes.h" 1 | |
5660 | # 32 "/usr/include/glib-2.0/glib/gprimes.h" | |
5661 | ||
5662 | # 43 "/usr/include/glib-2.0/glib/gprimes.h" | |
5663 | guint g_spaced_primes_closest (guint num) __attribute__((__const__)); | |
5664 | ||
5665 | ||
5666 | # 60 "/usr/include/glib-2.0/glib.h" 2 | |
5667 | # 1 "/usr/include/glib-2.0/glib/gqsort.h" 1 | |
5668 | # 33 "/usr/include/glib-2.0/glib/gqsort.h" | |
5669 | ||
5670 | ||
5671 | void g_qsort_with_data (gconstpointer pbase, | |
5672 | gint total_elems, | |
5673 | gsize size, | |
5674 | GCompareDataFunc compare_func, | |
5675 | gpointer user_data); | |
5676 | ||
5677 | ||
5678 | # 61 "/usr/include/glib-2.0/glib.h" 2 | |
5679 | ||
5680 | # 1 "/usr/include/glib-2.0/glib/gqueue.h" 1 | |
5681 | # 32 "/usr/include/glib-2.0/glib/gqueue.h" | |
5682 | ||
5683 | ||
5684 | typedef struct _GQueue GQueue; | |
5685 | ||
5686 | struct _GQueue | |
5687 | { | |
5688 | GList *head; | |
5689 | GList *tail; | |
5690 | guint length; | |
5691 | }; | |
5692 | ||
5693 | ||
5694 | ||
5695 | ||
5696 | ||
5697 | GQueue* g_queue_new (void); | |
5698 | void g_queue_free (GQueue *queue); | |
5699 | void g_queue_init (GQueue *queue); | |
5700 | void g_queue_clear (GQueue *queue); | |
5701 | gboolean g_queue_is_empty (GQueue *queue); | |
5702 | guint g_queue_get_length (GQueue *queue); | |
5703 | void g_queue_reverse (GQueue *queue); | |
5704 | GQueue * g_queue_copy (GQueue *queue); | |
5705 | void g_queue_foreach (GQueue *queue, | |
5706 | GFunc func, | |
5707 | gpointer user_data); | |
5708 | GList * g_queue_find (GQueue *queue, | |
5709 | gconstpointer data); | |
5710 | GList * g_queue_find_custom (GQueue *queue, | |
5711 | gconstpointer data, | |
5712 | GCompareFunc func); | |
5713 | void g_queue_sort (GQueue *queue, | |
5714 | GCompareDataFunc compare_func, | |
5715 | gpointer user_data); | |
5716 | ||
5717 | void g_queue_push_head (GQueue *queue, | |
5718 | gpointer data); | |
5719 | void g_queue_push_tail (GQueue *queue, | |
5720 | gpointer data); | |
5721 | void g_queue_push_nth (GQueue *queue, | |
5722 | gpointer data, | |
5723 | gint n); | |
5724 | gpointer g_queue_pop_head (GQueue *queue); | |
5725 | gpointer g_queue_pop_tail (GQueue *queue); | |
5726 | gpointer g_queue_pop_nth (GQueue *queue, | |
5727 | guint n); | |
5728 | gpointer g_queue_peek_head (GQueue *queue); | |
5729 | gpointer g_queue_peek_tail (GQueue *queue); | |
5730 | gpointer g_queue_peek_nth (GQueue *queue, | |
5731 | guint n); | |
5732 | gint g_queue_index (GQueue *queue, | |
5733 | gconstpointer data); | |
5734 | void g_queue_remove (GQueue *queue, | |
5735 | gconstpointer data); | |
5736 | void g_queue_remove_all (GQueue *queue, | |
5737 | gconstpointer data); | |
5738 | void g_queue_insert_before (GQueue *queue, | |
5739 | GList *sibling, | |
5740 | gpointer data); | |
5741 | void g_queue_insert_after (GQueue *queue, | |
5742 | GList *sibling, | |
5743 | gpointer data); | |
5744 | void g_queue_insert_sorted (GQueue *queue, | |
5745 | gpointer data, | |
5746 | GCompareDataFunc func, | |
5747 | gpointer user_data); | |
5748 | ||
5749 | void g_queue_push_head_link (GQueue *queue, | |
5750 | GList *link_); | |
5751 | void g_queue_push_tail_link (GQueue *queue, | |
5752 | GList *link_); | |
5753 | void g_queue_push_nth_link (GQueue *queue, | |
5754 | gint n, | |
5755 | GList *link_); | |
5756 | GList* g_queue_pop_head_link (GQueue *queue); | |
5757 | GList* g_queue_pop_tail_link (GQueue *queue); | |
5758 | GList* g_queue_pop_nth_link (GQueue *queue, | |
5759 | guint n); | |
5760 | GList* g_queue_peek_head_link (GQueue *queue); | |
5761 | GList* g_queue_peek_tail_link (GQueue *queue); | |
5762 | GList* g_queue_peek_nth_link (GQueue *queue, | |
5763 | guint n); | |
5764 | gint g_queue_link_index (GQueue *queue, | |
5765 | GList *link_); | |
5766 | void g_queue_unlink (GQueue *queue, | |
5767 | GList *link_); | |
5768 | void g_queue_delete_link (GQueue *queue, | |
5769 | GList *link_); | |
5770 | ||
5771 | ||
5772 | # 63 "/usr/include/glib-2.0/glib.h" 2 | |
5773 | # 1 "/usr/include/glib-2.0/glib/grand.h" 1 | |
5774 | # 32 "/usr/include/glib-2.0/glib/grand.h" | |
5775 | ||
5776 | ||
5777 | typedef struct _GRand GRand; | |
5778 | # 45 "/usr/include/glib-2.0/glib/grand.h" | |
5779 | GRand* g_rand_new_with_seed (guint32 seed); | |
5780 | GRand* g_rand_new_with_seed_array (const guint32 *seed, | |
5781 | guint seed_length); | |
5782 | GRand* g_rand_new (void); | |
5783 | void g_rand_free (GRand *rand_); | |
5784 | GRand* g_rand_copy (GRand *rand_); | |
5785 | void g_rand_set_seed (GRand *rand_, | |
5786 | guint32 seed); | |
5787 | void g_rand_set_seed_array (GRand *rand_, | |
5788 | const guint32 *seed, | |
5789 | guint seed_length); | |
5790 | ||
5791 | ||
5792 | ||
5793 | guint32 g_rand_int (GRand *rand_); | |
5794 | gint32 g_rand_int_range (GRand *rand_, | |
5795 | gint32 begin, | |
5796 | gint32 end); | |
5797 | gdouble g_rand_double (GRand *rand_); | |
5798 | gdouble g_rand_double_range (GRand *rand_, | |
5799 | gdouble begin, | |
5800 | gdouble end); | |
5801 | void g_random_set_seed (guint32 seed); | |
5802 | ||
5803 | ||
5804 | ||
5805 | guint32 g_random_int (void); | |
5806 | gint32 g_random_int_range (gint32 begin, | |
5807 | gint32 end); | |
5808 | gdouble g_random_double (void); | |
5809 | gdouble g_random_double_range (gdouble begin, | |
5810 | gdouble end); | |
5811 | ||
5812 | ||
5813 | ||
5814 | # 64 "/usr/include/glib-2.0/glib.h" 2 | |
5815 | # 1 "/usr/include/glib-2.0/glib/grel.h" 1 | |
5816 | # 32 "/usr/include/glib-2.0/glib/grel.h" | |
5817 | ||
5818 | ||
5819 | typedef struct _GRelation GRelation; | |
5820 | typedef struct _GTuples GTuples; | |
5821 | ||
5822 | struct _GTuples | |
5823 | { | |
5824 | guint len; | |
5825 | }; | |
5826 | # 65 "/usr/include/glib-2.0/glib/grel.h" | |
5827 | GRelation* g_relation_new (gint fields); | |
5828 | void g_relation_destroy (GRelation *relation); | |
5829 | void g_relation_index (GRelation *relation, | |
5830 | gint field, | |
5831 | GHashFunc hash_func, | |
5832 | GEqualFunc key_equal_func); | |
5833 | void g_relation_insert (GRelation *relation, | |
5834 | ...); | |
5835 | gint g_relation_delete (GRelation *relation, | |
5836 | gconstpointer key, | |
5837 | gint field); | |
5838 | GTuples* g_relation_select (GRelation *relation, | |
5839 | gconstpointer key, | |
5840 | gint field); | |
5841 | gint g_relation_count (GRelation *relation, | |
5842 | gconstpointer key, | |
5843 | gint field); | |
5844 | gboolean g_relation_exists (GRelation *relation, | |
5845 | ...); | |
5846 | void g_relation_print (GRelation *relation); | |
5847 | ||
5848 | void g_tuples_destroy (GTuples *tuples); | |
5849 | gpointer g_tuples_index (GTuples *tuples, | |
5850 | gint index_, | |
5851 | gint field); | |
5852 | ||
5853 | ||
5854 | # 65 "/usr/include/glib-2.0/glib.h" 2 | |
5855 | # 1 "/usr/include/glib-2.0/glib/gregex.h" 1 | |
5856 | # 28 "/usr/include/glib-2.0/glib/gregex.h" | |
5857 | ||
5858 | ||
5859 | typedef enum | |
5860 | { | |
5861 | G_REGEX_ERROR_COMPILE, | |
5862 | G_REGEX_ERROR_OPTIMIZE, | |
5863 | G_REGEX_ERROR_REPLACE, | |
5864 | G_REGEX_ERROR_MATCH | |
5865 | } GRegexError; | |
5866 | ||
5867 | ||
5868 | ||
5869 | GQuark g_regex_error_quark (void); | |
5870 | ||
5871 | ||
5872 | ||
5873 | typedef enum | |
5874 | { | |
5875 | G_REGEX_CASELESS = 1 << 0, | |
5876 | G_REGEX_MULTILINE = 1 << 1, | |
5877 | G_REGEX_DOTALL = 1 << 2, | |
5878 | G_REGEX_EXTENDED = 1 << 3, | |
5879 | G_REGEX_ANCHORED = 1 << 4, | |
5880 | G_REGEX_DOLLAR_ENDONLY = 1 << 5, | |
5881 | G_REGEX_UNGREEDY = 1 << 9, | |
5882 | G_REGEX_RAW = 1 << 11, | |
5883 | G_REGEX_NO_AUTO_CAPTURE = 1 << 12, | |
5884 | G_REGEX_OPTIMIZE = 1 << 13, | |
5885 | G_REGEX_DUPNAMES = 1 << 19, | |
5886 | G_REGEX_NEWLINE_CR = 1 << 20, | |
5887 | G_REGEX_NEWLINE_LF = 1 << 21, | |
5888 | G_REGEX_NEWLINE_CRLF = G_REGEX_NEWLINE_CR | G_REGEX_NEWLINE_LF | |
5889 | } GRegexCompileFlags; | |
5890 | ||
5891 | ||
5892 | ||
5893 | typedef enum | |
5894 | { | |
5895 | G_REGEX_MATCH_ANCHORED = 1 << 4, | |
5896 | G_REGEX_MATCH_NOTBOL = 1 << 7, | |
5897 | G_REGEX_MATCH_NOTEOL = 1 << 8, | |
5898 | G_REGEX_MATCH_NOTEMPTY = 1 << 10, | |
5899 | G_REGEX_MATCH_PARTIAL = 1 << 15, | |
5900 | G_REGEX_MATCH_NEWLINE_CR = 1 << 20, | |
5901 | G_REGEX_MATCH_NEWLINE_LF = 1 << 21, | |
5902 | G_REGEX_MATCH_NEWLINE_CRLF = G_REGEX_MATCH_NEWLINE_CR | G_REGEX_MATCH_NEWLINE_LF, | |
5903 | G_REGEX_MATCH_NEWLINE_ANY = 1 << 22 | |
5904 | } GRegexMatchFlags; | |
5905 | ||
5906 | typedef struct _GRegex GRegex; | |
5907 | typedef struct _GMatchInfo GMatchInfo; | |
5908 | ||
5909 | typedef gboolean (*GRegexEvalCallback) (const GMatchInfo *match_info, | |
5910 | GString *result, | |
5911 | gpointer user_data); | |
5912 | ||
5913 | ||
5914 | GRegex *g_regex_new (const gchar *pattern, | |
5915 | GRegexCompileFlags compile_options, | |
5916 | GRegexMatchFlags match_options, | |
5917 | GError **error); | |
5918 | GRegex *g_regex_ref (GRegex *regex); | |
5919 | void g_regex_unref (GRegex *regex); | |
5920 | const gchar *g_regex_get_pattern (const GRegex *regex); | |
5921 | gint g_regex_get_max_backref (const GRegex *regex); | |
5922 | gint g_regex_get_capture_count (const GRegex *regex); | |
5923 | gint g_regex_get_string_number (const GRegex *regex, | |
5924 | const gchar *name); | |
5925 | gchar *g_regex_escape_string (const gchar *string, | |
5926 | gint length); | |
5927 | ||
5928 | ||
5929 | gboolean g_regex_match_simple (const gchar *pattern, | |
5930 | const gchar *string, | |
5931 | GRegexCompileFlags compile_options, | |
5932 | GRegexMatchFlags match_options); | |
5933 | gboolean g_regex_match (const GRegex *regex, | |
5934 | const gchar *string, | |
5935 | GRegexMatchFlags match_options, | |
5936 | GMatchInfo **match_info); | |
5937 | gboolean g_regex_match_full (const GRegex *regex, | |
5938 | const gchar *string, | |
5939 | gssize string_len, | |
5940 | gint start_position, | |
5941 | GRegexMatchFlags match_options, | |
5942 | GMatchInfo **match_info, | |
5943 | GError **error); | |
5944 | gboolean g_regex_match_all (const GRegex *regex, | |
5945 | const gchar *string, | |
5946 | GRegexMatchFlags match_options, | |
5947 | GMatchInfo **match_info); | |
5948 | gboolean g_regex_match_all_full (const GRegex *regex, | |
5949 | const gchar *string, | |
5950 | gssize string_len, | |
5951 | gint start_position, | |
5952 | GRegexMatchFlags match_options, | |
5953 | GMatchInfo **match_info, | |
5954 | GError **error); | |
5955 | ||
5956 | ||
5957 | gchar **g_regex_split_simple (const gchar *pattern, | |
5958 | const gchar *string, | |
5959 | GRegexCompileFlags compile_options, | |
5960 | GRegexMatchFlags match_options); | |
5961 | gchar **g_regex_split (const GRegex *regex, | |
5962 | const gchar *string, | |
5963 | GRegexMatchFlags match_options); | |
5964 | gchar **g_regex_split_full (const GRegex *regex, | |
5965 | const gchar *string, | |
5966 | gssize string_len, | |
5967 | gint start_position, | |
5968 | GRegexMatchFlags match_options, | |
5969 | gint max_tokens, | |
5970 | GError **error); | |
5971 | ||
5972 | ||
5973 | gchar *g_regex_replace (const GRegex *regex, | |
5974 | const gchar *string, | |
5975 | gssize string_len, | |
5976 | gint start_position, | |
5977 | const gchar *replacement, | |
5978 | GRegexMatchFlags match_options, | |
5979 | GError **error); | |
5980 | gchar *g_regex_replace_literal (const GRegex *regex, | |
5981 | const gchar *string, | |
5982 | gssize string_len, | |
5983 | gint start_position, | |
5984 | const gchar *replacement, | |
5985 | GRegexMatchFlags match_options, | |
5986 | GError **error); | |
5987 | gchar *g_regex_replace_eval (const GRegex *regex, | |
5988 | const gchar *string, | |
5989 | gssize string_len, | |
5990 | gint start_position, | |
5991 | GRegexMatchFlags match_options, | |
5992 | GRegexEvalCallback eval, | |
5993 | gpointer user_data, | |
5994 | GError **error); | |
5995 | gboolean g_regex_check_replacement (const gchar *replacement, | |
5996 | gboolean *has_references, | |
5997 | GError **error); | |
5998 | ||
5999 | ||
6000 | GRegex *g_match_info_get_regex (const GMatchInfo *match_info); | |
6001 | const gchar *g_match_info_get_string (const GMatchInfo *match_info); | |
6002 | ||
6003 | void g_match_info_free (GMatchInfo *match_info); | |
6004 | gboolean g_match_info_next (GMatchInfo *match_info, | |
6005 | GError **error); | |
6006 | gboolean g_match_info_matches (const GMatchInfo *match_info); | |
6007 | gint g_match_info_get_match_count (const GMatchInfo *match_info); | |
6008 | gboolean g_match_info_is_partial_match (const GMatchInfo *match_info); | |
6009 | gchar *g_match_info_expand_references(const GMatchInfo *match_info, | |
6010 | const gchar *string_to_expand, | |
6011 | GError **error); | |
6012 | gchar *g_match_info_fetch (const GMatchInfo *match_info, | |
6013 | gint match_num); | |
6014 | gboolean g_match_info_fetch_pos (const GMatchInfo *match_info, | |
6015 | gint match_num, | |
6016 | gint *start_pos, | |
6017 | gint *end_pos); | |
6018 | gchar *g_match_info_fetch_named (const GMatchInfo *match_info, | |
6019 | const gchar *name); | |
6020 | gboolean g_match_info_fetch_named_pos (const GMatchInfo *match_info, | |
6021 | const gchar *name, | |
6022 | gint *start_pos, | |
6023 | gint *end_pos); | |
6024 | gchar **g_match_info_fetch_all (const GMatchInfo *match_info); | |
6025 | ||
6026 | ||
6027 | # 66 "/usr/include/glib-2.0/glib.h" 2 | |
6028 | # 1 "/usr/include/glib-2.0/glib/gscanner.h" 1 | |
6029 | # 33 "/usr/include/glib-2.0/glib/gscanner.h" | |
6030 | ||
6031 | ||
6032 | typedef struct _GScanner GScanner; | |
6033 | typedef struct _GScannerConfig GScannerConfig; | |
6034 | typedef union _GTokenValue GTokenValue; | |
6035 | ||
6036 | typedef void (*GScannerMsgFunc) (GScanner *scanner, | |
6037 | gchar *message, | |
6038 | gboolean error); | |
6039 | # 60 "/usr/include/glib-2.0/glib/gscanner.h" | |
6040 | typedef enum | |
6041 | { | |
6042 | G_ERR_UNKNOWN, | |
6043 | G_ERR_UNEXP_EOF, | |
6044 | G_ERR_UNEXP_EOF_IN_STRING, | |
6045 | G_ERR_UNEXP_EOF_IN_COMMENT, | |
6046 | G_ERR_NON_DIGIT_IN_CONST, | |
6047 | G_ERR_DIGIT_RADIX, | |
6048 | G_ERR_FLOAT_RADIX, | |
6049 | G_ERR_FLOAT_MALFORMED | |
6050 | } GErrorType; | |
6051 | ||
6052 | ||
6053 | typedef enum | |
6054 | { | |
6055 | G_TOKEN_EOF = 0, | |
6056 | ||
6057 | G_TOKEN_LEFT_PAREN = '(', | |
6058 | G_TOKEN_RIGHT_PAREN = ')', | |
6059 | G_TOKEN_LEFT_CURLY = '{', | |
6060 | G_TOKEN_RIGHT_CURLY = '}', | |
6061 | G_TOKEN_LEFT_BRACE = '[', | |
6062 | G_TOKEN_RIGHT_BRACE = ']', | |
6063 | G_TOKEN_EQUAL_SIGN = '=', | |
6064 | G_TOKEN_COMMA = ',', | |
6065 | ||
6066 | G_TOKEN_NONE = 256, | |
6067 | ||
6068 | G_TOKEN_ERROR, | |
6069 | ||
6070 | G_TOKEN_CHAR, | |
6071 | G_TOKEN_BINARY, | |
6072 | G_TOKEN_OCTAL, | |
6073 | G_TOKEN_INT, | |
6074 | G_TOKEN_HEX, | |
6075 | G_TOKEN_FLOAT, | |
6076 | G_TOKEN_STRING, | |
6077 | ||
6078 | G_TOKEN_SYMBOL, | |
6079 | G_TOKEN_IDENTIFIER, | |
6080 | G_TOKEN_IDENTIFIER_NULL, | |
6081 | ||
6082 | G_TOKEN_COMMENT_SINGLE, | |
6083 | G_TOKEN_COMMENT_MULTI, | |
6084 | G_TOKEN_LAST | |
6085 | } GTokenType; | |
6086 | ||
6087 | union _GTokenValue | |
6088 | { | |
6089 | gpointer v_symbol; | |
6090 | gchar *v_identifier; | |
6091 | gulong v_binary; | |
6092 | gulong v_octal; | |
6093 | gulong v_int; | |
6094 | guint64 v_int64; | |
6095 | gdouble v_float; | |
6096 | gulong v_hex; | |
6097 | gchar *v_string; | |
6098 | gchar *v_comment; | |
6099 | guchar v_char; | |
6100 | guint v_error; | |
6101 | }; | |
6102 | ||
6103 | struct _GScannerConfig | |
6104 | { | |
6105 | ||
6106 | ||
6107 | gchar *cset_skip_characters; | |
6108 | gchar *cset_identifier_first; | |
6109 | gchar *cset_identifier_nth; | |
6110 | gchar *cpair_comment_single; | |
6111 | ||
6112 | ||
6113 | ||
6114 | guint case_sensitive : 1; | |
6115 | ||
6116 | ||
6117 | ||
6118 | ||
6119 | guint skip_comment_multi : 1; | |
6120 | guint skip_comment_single : 1; | |
6121 | guint scan_comment_multi : 1; | |
6122 | guint scan_identifier : 1; | |
6123 | guint scan_identifier_1char : 1; | |
6124 | guint scan_identifier_NULL : 1; | |
6125 | guint scan_symbols : 1; | |
6126 | guint scan_binary : 1; | |
6127 | guint scan_octal : 1; | |
6128 | guint scan_float : 1; | |
6129 | guint scan_hex : 1; | |
6130 | guint scan_hex_dollar : 1; | |
6131 | guint scan_string_sq : 1; | |
6132 | guint scan_string_dq : 1; | |
6133 | guint numbers_2_int : 1; | |
6134 | guint int_2_float : 1; | |
6135 | guint identifier_2_string : 1; | |
6136 | guint char_2_token : 1; | |
6137 | guint symbol_2_token : 1; | |
6138 | guint scope_0_fallback : 1; | |
6139 | guint store_int64 : 1; | |
6140 | guint padding_dummy; | |
6141 | }; | |
6142 | ||
6143 | struct _GScanner | |
6144 | { | |
6145 | ||
6146 | gpointer user_data; | |
6147 | guint max_parse_errors; | |
6148 | ||
6149 | ||
6150 | guint parse_errors; | |
6151 | ||
6152 | ||
6153 | const gchar *input_name; | |
6154 | ||
6155 | ||
6156 | GData *qdata; | |
6157 | ||
6158 | ||
6159 | GScannerConfig *config; | |
6160 | ||
6161 | ||
6162 | GTokenType token; | |
6163 | GTokenValue value; | |
6164 | guint line; | |
6165 | guint position; | |
6166 | ||
6167 | ||
6168 | GTokenType next_token; | |
6169 | GTokenValue next_value; | |
6170 | guint next_line; | |
6171 | guint next_position; | |
6172 | ||
6173 | ||
6174 | GHashTable *symbol_table; | |
6175 | gint input_fd; | |
6176 | const gchar *text; | |
6177 | const gchar *text_end; | |
6178 | gchar *buffer; | |
6179 | guint scope_id; | |
6180 | ||
6181 | ||
6182 | GScannerMsgFunc msg_handler; | |
6183 | }; | |
6184 | ||
6185 | GScanner* g_scanner_new (const GScannerConfig *config_templ); | |
6186 | void g_scanner_destroy (GScanner *scanner); | |
6187 | void g_scanner_input_file (GScanner *scanner, | |
6188 | gint input_fd); | |
6189 | void g_scanner_sync_file_offset (GScanner *scanner); | |
6190 | void g_scanner_input_text (GScanner *scanner, | |
6191 | const gchar *text, | |
6192 | guint text_len); | |
6193 | GTokenType g_scanner_get_next_token (GScanner *scanner); | |
6194 | GTokenType g_scanner_peek_next_token (GScanner *scanner); | |
6195 | GTokenType g_scanner_cur_token (GScanner *scanner); | |
6196 | GTokenValue g_scanner_cur_value (GScanner *scanner); | |
6197 | guint g_scanner_cur_line (GScanner *scanner); | |
6198 | guint g_scanner_cur_position (GScanner *scanner); | |
6199 | gboolean g_scanner_eof (GScanner *scanner); | |
6200 | guint g_scanner_set_scope (GScanner *scanner, | |
6201 | guint scope_id); | |
6202 | void g_scanner_scope_add_symbol (GScanner *scanner, | |
6203 | guint scope_id, | |
6204 | const gchar *symbol, | |
6205 | gpointer value); | |
6206 | void g_scanner_scope_remove_symbol (GScanner *scanner, | |
6207 | guint scope_id, | |
6208 | const gchar *symbol); | |
6209 | gpointer g_scanner_scope_lookup_symbol (GScanner *scanner, | |
6210 | guint scope_id, | |
6211 | const gchar *symbol); | |
6212 | void g_scanner_scope_foreach_symbol (GScanner *scanner, | |
6213 | guint scope_id, | |
6214 | GHFunc func, | |
6215 | gpointer user_data); | |
6216 | gpointer g_scanner_lookup_symbol (GScanner *scanner, | |
6217 | const gchar *symbol); | |
6218 | void g_scanner_unexp_token (GScanner *scanner, | |
6219 | GTokenType expected_token, | |
6220 | const gchar *identifier_spec, | |
6221 | const gchar *symbol_spec, | |
6222 | const gchar *symbol_name, | |
6223 | const gchar *message, | |
6224 | gint is_error); | |
6225 | void g_scanner_error (GScanner *scanner, | |
6226 | const gchar *format, | |
6227 | ...) __attribute__((__format__ (__printf__, 2, 3))); | |
6228 | void g_scanner_warn (GScanner *scanner, | |
6229 | const gchar *format, | |
6230 | ...) __attribute__((__format__ (__printf__, 2, 3))); | |
6231 | # 272 "/usr/include/glib-2.0/glib/gscanner.h" | |
6232 | ||
6233 | # 67 "/usr/include/glib-2.0/glib.h" 2 | |
6234 | # 1 "/usr/include/glib-2.0/glib/gsequence.h" 1 | |
6235 | # 26 "/usr/include/glib-2.0/glib/gsequence.h" | |
6236 | typedef struct _GSequence GSequence; | |
6237 | typedef struct _GSequenceNode GSequenceIter; | |
6238 | ||
6239 | typedef gint (* GSequenceIterCompareFunc) (GSequenceIter *a, | |
6240 | GSequenceIter *b, | |
6241 | gpointer data); | |
6242 | ||
6243 | ||
6244 | ||
6245 | GSequence * g_sequence_new (GDestroyNotify data_destroy); | |
6246 | void g_sequence_free (GSequence *seq); | |
6247 | gint g_sequence_get_length (GSequence *seq); | |
6248 | void g_sequence_foreach (GSequence *seq, | |
6249 | GFunc func, | |
6250 | gpointer user_data); | |
6251 | void g_sequence_foreach_range (GSequenceIter *begin, | |
6252 | GSequenceIter *end, | |
6253 | GFunc func, | |
6254 | gpointer user_data); | |
6255 | void g_sequence_sort (GSequence *seq, | |
6256 | GCompareDataFunc cmp_func, | |
6257 | gpointer cmp_data); | |
6258 | void g_sequence_sort_iter (GSequence *seq, | |
6259 | GSequenceIterCompareFunc cmp_func, | |
6260 | gpointer cmp_data); | |
6261 | ||
6262 | ||
6263 | ||
6264 | GSequenceIter *g_sequence_get_begin_iter (GSequence *seq); | |
6265 | GSequenceIter *g_sequence_get_end_iter (GSequence *seq); | |
6266 | GSequenceIter *g_sequence_get_iter_at_pos (GSequence *seq, | |
6267 | gint pos); | |
6268 | GSequenceIter *g_sequence_append (GSequence *seq, | |
6269 | gpointer data); | |
6270 | GSequenceIter *g_sequence_prepend (GSequence *seq, | |
6271 | gpointer data); | |
6272 | GSequenceIter *g_sequence_insert_before (GSequenceIter *iter, | |
6273 | gpointer data); | |
6274 | void g_sequence_move (GSequenceIter *src, | |
6275 | GSequenceIter *dest); | |
6276 | void g_sequence_swap (GSequenceIter *a, | |
6277 | GSequenceIter *b); | |
6278 | GSequenceIter *g_sequence_insert_sorted (GSequence *seq, | |
6279 | gpointer data, | |
6280 | GCompareDataFunc cmp_func, | |
6281 | gpointer cmp_data); | |
6282 | GSequenceIter *g_sequence_insert_sorted_iter (GSequence *seq, | |
6283 | gpointer data, | |
6284 | GSequenceIterCompareFunc iter_cmp, | |
6285 | gpointer cmp_data); | |
6286 | void g_sequence_sort_changed (GSequenceIter *iter, | |
6287 | GCompareDataFunc cmp_func, | |
6288 | gpointer cmp_data); | |
6289 | void g_sequence_sort_changed_iter (GSequenceIter *iter, | |
6290 | GSequenceIterCompareFunc iter_cmp, | |
6291 | gpointer cmp_data); | |
6292 | void g_sequence_remove (GSequenceIter *iter); | |
6293 | void g_sequence_remove_range (GSequenceIter *begin, | |
6294 | GSequenceIter *end); | |
6295 | void g_sequence_move_range (GSequenceIter *dest, | |
6296 | GSequenceIter *begin, | |
6297 | GSequenceIter *end); | |
6298 | GSequenceIter *g_sequence_search (GSequence *seq, | |
6299 | gpointer data, | |
6300 | GCompareDataFunc cmp_func, | |
6301 | gpointer cmp_data); | |
6302 | GSequenceIter *g_sequence_search_iter (GSequence *seq, | |
6303 | gpointer data, | |
6304 | GSequenceIterCompareFunc iter_cmp, | |
6305 | gpointer cmp_data); | |
6306 | ||
6307 | ||
6308 | ||
6309 | gpointer g_sequence_get (GSequenceIter *iter); | |
6310 | void g_sequence_set (GSequenceIter *iter, | |
6311 | gpointer data); | |
6312 | ||
6313 | ||
6314 | gboolean g_sequence_iter_is_begin (GSequenceIter *iter); | |
6315 | gboolean g_sequence_iter_is_end (GSequenceIter *iter); | |
6316 | GSequenceIter *g_sequence_iter_next (GSequenceIter *iter); | |
6317 | GSequenceIter *g_sequence_iter_prev (GSequenceIter *iter); | |
6318 | gint g_sequence_iter_get_position (GSequenceIter *iter); | |
6319 | GSequenceIter *g_sequence_iter_move (GSequenceIter *iter, | |
6320 | gint delta); | |
6321 | GSequence * g_sequence_iter_get_sequence (GSequenceIter *iter); | |
6322 | ||
6323 | ||
6324 | ||
6325 | gint g_sequence_iter_compare (GSequenceIter *a, | |
6326 | GSequenceIter *b); | |
6327 | GSequenceIter *g_sequence_range_get_midpoint (GSequenceIter *begin, | |
6328 | GSequenceIter *end); | |
6329 | # 68 "/usr/include/glib-2.0/glib.h" 2 | |
6330 | # 1 "/usr/include/glib-2.0/glib/gshell.h" 1 | |
6331 | # 26 "/usr/include/glib-2.0/glib/gshell.h" | |
6332 | ||
6333 | ||
6334 | ||
6335 | ||
6336 | typedef enum | |
6337 | { | |
6338 | ||
6339 | G_SHELL_ERROR_BAD_QUOTING, | |
6340 | ||
6341 | G_SHELL_ERROR_EMPTY_STRING, | |
6342 | G_SHELL_ERROR_FAILED | |
6343 | } GShellError; | |
6344 | ||
6345 | GQuark g_shell_error_quark (void); | |
6346 | ||
6347 | gchar* g_shell_quote (const gchar *unquoted_string); | |
6348 | gchar* g_shell_unquote (const gchar *quoted_string, | |
6349 | GError **error); | |
6350 | gboolean g_shell_parse_argv (const gchar *command_line, | |
6351 | gint *argcp, | |
6352 | gchar ***argvp, | |
6353 | GError **error); | |
6354 | ||
6355 | ||
6356 | # 69 "/usr/include/glib-2.0/glib.h" 2 | |
6357 | ||
6358 | # 1 "/usr/include/glib-2.0/glib/gspawn.h" 1 | |
6359 | # 26 "/usr/include/glib-2.0/glib/gspawn.h" | |
6360 | ||
6361 | ||
6362 | ||
6363 | ||
6364 | ||
6365 | typedef enum | |
6366 | { | |
6367 | G_SPAWN_ERROR_FORK, | |
6368 | G_SPAWN_ERROR_READ, | |
6369 | G_SPAWN_ERROR_CHDIR, | |
6370 | G_SPAWN_ERROR_ACCES, | |
6371 | G_SPAWN_ERROR_PERM, | |
6372 | G_SPAWN_ERROR_2BIG, | |
6373 | G_SPAWN_ERROR_NOEXEC, | |
6374 | G_SPAWN_ERROR_NAMETOOLONG, | |
6375 | G_SPAWN_ERROR_NOENT, | |
6376 | G_SPAWN_ERROR_NOMEM, | |
6377 | G_SPAWN_ERROR_NOTDIR, | |
6378 | G_SPAWN_ERROR_LOOP, | |
6379 | G_SPAWN_ERROR_TXTBUSY, | |
6380 | G_SPAWN_ERROR_IO, | |
6381 | G_SPAWN_ERROR_NFILE, | |
6382 | G_SPAWN_ERROR_MFILE, | |
6383 | G_SPAWN_ERROR_INVAL, | |
6384 | G_SPAWN_ERROR_ISDIR, | |
6385 | G_SPAWN_ERROR_LIBBAD, | |
6386 | G_SPAWN_ERROR_FAILED | |
6387 | ||
6388 | ||
6389 | } GSpawnError; | |
6390 | ||
6391 | typedef void (* GSpawnChildSetupFunc) (gpointer user_data); | |
6392 | ||
6393 | typedef enum | |
6394 | { | |
6395 | G_SPAWN_LEAVE_DESCRIPTORS_OPEN = 1 << 0, | |
6396 | G_SPAWN_DO_NOT_REAP_CHILD = 1 << 1, | |
6397 | ||
6398 | G_SPAWN_SEARCH_PATH = 1 << 2, | |
6399 | ||
6400 | G_SPAWN_STDOUT_TO_DEV_NULL = 1 << 3, | |
6401 | G_SPAWN_STDERR_TO_DEV_NULL = 1 << 4, | |
6402 | G_SPAWN_CHILD_INHERITS_STDIN = 1 << 5, | |
6403 | G_SPAWN_FILE_AND_ARGV_ZERO = 1 << 6 | |
6404 | } GSpawnFlags; | |
6405 | ||
6406 | GQuark g_spawn_error_quark (void); | |
6407 | # 82 "/usr/include/glib-2.0/glib/gspawn.h" | |
6408 | gboolean g_spawn_async (const gchar *working_directory, | |
6409 | gchar **argv, | |
6410 | gchar **envp, | |
6411 | GSpawnFlags flags, | |
6412 | GSpawnChildSetupFunc child_setup, | |
6413 | gpointer user_data, | |
6414 | GPid *child_pid, | |
6415 | GError **error); | |
6416 | ||
6417 | ||
6418 | ||
6419 | ||
6420 | ||
6421 | gboolean g_spawn_async_with_pipes (const gchar *working_directory, | |
6422 | gchar **argv, | |
6423 | gchar **envp, | |
6424 | GSpawnFlags flags, | |
6425 | GSpawnChildSetupFunc child_setup, | |
6426 | gpointer user_data, | |
6427 | GPid *child_pid, | |
6428 | gint *standard_input, | |
6429 | gint *standard_output, | |
6430 | gint *standard_error, | |
6431 | GError **error); | |
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
6437 | ||
6438 | gboolean g_spawn_sync (const gchar *working_directory, | |
6439 | gchar **argv, | |
6440 | gchar **envp, | |
6441 | GSpawnFlags flags, | |
6442 | GSpawnChildSetupFunc child_setup, | |
6443 | gpointer user_data, | |
6444 | gchar **standard_output, | |
6445 | gchar **standard_error, | |
6446 | gint *exit_status, | |
6447 | GError **error); | |
6448 | ||
6449 | gboolean g_spawn_command_line_sync (const gchar *command_line, | |
6450 | gchar **standard_output, | |
6451 | gchar **standard_error, | |
6452 | gint *exit_status, | |
6453 | GError **error); | |
6454 | gboolean g_spawn_command_line_async (const gchar *command_line, | |
6455 | GError **error); | |
6456 | ||
6457 | void g_spawn_close_pid (GPid pid); | |
6458 | ||
6459 | ||
6460 | ||
6461 | # 71 "/usr/include/glib-2.0/glib.h" 2 | |
6462 | # 1 "/usr/include/glib-2.0/glib/gstrfuncs.h" 1 | |
6463 | # 33 "/usr/include/glib-2.0/glib/gstrfuncs.h" | |
6464 | ||
6465 | ||
6466 | ||
6467 | typedef enum { | |
6468 | G_ASCII_ALNUM = 1 << 0, | |
6469 | G_ASCII_ALPHA = 1 << 1, | |
6470 | G_ASCII_CNTRL = 1 << 2, | |
6471 | G_ASCII_DIGIT = 1 << 3, | |
6472 | G_ASCII_GRAPH = 1 << 4, | |
6473 | G_ASCII_LOWER = 1 << 5, | |
6474 | G_ASCII_PRINT = 1 << 6, | |
6475 | G_ASCII_PUNCT = 1 << 7, | |
6476 | G_ASCII_SPACE = 1 << 8, | |
6477 | G_ASCII_UPPER = 1 << 9, | |
6478 | G_ASCII_XDIGIT = 1 << 10 | |
6479 | } GAsciiType; | |
6480 | ||
6481 | extern const guint16 * const g_ascii_table; | |
6482 | # 85 "/usr/include/glib-2.0/glib/gstrfuncs.h" | |
6483 | gchar g_ascii_tolower (gchar c) __attribute__((__const__)); | |
6484 | gchar g_ascii_toupper (gchar c) __attribute__((__const__)); | |
6485 | ||
6486 | gint g_ascii_digit_value (gchar c) __attribute__((__const__)); | |
6487 | gint g_ascii_xdigit_value (gchar c) __attribute__((__const__)); | |
6488 | ||
6489 | ||
6490 | ||
6491 | ||
6492 | ||
6493 | gchar* g_strdelimit (gchar *string, | |
6494 | const gchar *delimiters, | |
6495 | gchar new_delimiter); | |
6496 | gchar* g_strcanon (gchar *string, | |
6497 | const gchar *valid_chars, | |
6498 | gchar substitutor); | |
6499 | const gchar* g_strerror (gint errnum) __attribute__((__const__)); | |
6500 | const gchar* g_strsignal (gint signum) __attribute__((__const__)); | |
6501 | gchar* g_strreverse (gchar *string); | |
6502 | gsize g_strlcpy (gchar *dest, | |
6503 | const gchar *src, | |
6504 | gsize dest_size); | |
6505 | gsize g_strlcat (gchar *dest, | |
6506 | const gchar *src, | |
6507 | gsize dest_size); | |
6508 | gchar * g_strstr_len (const gchar *haystack, | |
6509 | gssize haystack_len, | |
6510 | const gchar *needle); | |
6511 | gchar * g_strrstr (const gchar *haystack, | |
6512 | const gchar *needle); | |
6513 | gchar * g_strrstr_len (const gchar *haystack, | |
6514 | gssize haystack_len, | |
6515 | const gchar *needle); | |
6516 | ||
6517 | gboolean g_str_has_suffix (const gchar *str, | |
6518 | const gchar *suffix); | |
6519 | gboolean g_str_has_prefix (const gchar *str, | |
6520 | const gchar *prefix); | |
6521 | ||
6522 | ||
6523 | ||
6524 | gdouble g_strtod (const gchar *nptr, | |
6525 | gchar **endptr); | |
6526 | gdouble g_ascii_strtod (const gchar *nptr, | |
6527 | gchar **endptr); | |
6528 | guint64 g_ascii_strtoull (const gchar *nptr, | |
6529 | gchar **endptr, | |
6530 | guint base); | |
6531 | gint64 g_ascii_strtoll (const gchar *nptr, | |
6532 | gchar **endptr, | |
6533 | guint base); | |
6534 | ||
6535 | ||
6536 | ||
6537 | ||
6538 | gchar * g_ascii_dtostr (gchar *buffer, | |
6539 | gint buf_len, | |
6540 | gdouble d); | |
6541 | gchar * g_ascii_formatd (gchar *buffer, | |
6542 | gint buf_len, | |
6543 | const gchar *format, | |
6544 | gdouble d); | |
6545 | ||
6546 | ||
6547 | gchar* g_strchug (gchar *string); | |
6548 | ||
6549 | gchar* g_strchomp (gchar *string); | |
6550 | ||
6551 | ||
6552 | ||
6553 | gint g_ascii_strcasecmp (const gchar *s1, | |
6554 | const gchar *s2); | |
6555 | gint g_ascii_strncasecmp (const gchar *s1, | |
6556 | const gchar *s2, | |
6557 | gsize n); | |
6558 | gchar* g_ascii_strdown (const gchar *str, | |
6559 | gssize len) __attribute__((__malloc__)); | |
6560 | gchar* g_ascii_strup (const gchar *str, | |
6561 | gssize len) __attribute__((__malloc__)); | |
6562 | # 172 "/usr/include/glib-2.0/glib/gstrfuncs.h" | |
6563 | gint g_strcasecmp (const gchar *s1, | |
6564 | const gchar *s2); | |
6565 | gint g_strncasecmp (const gchar *s1, | |
6566 | const gchar *s2, | |
6567 | guint n); | |
6568 | gchar* g_strdown (gchar *string); | |
6569 | gchar* g_strup (gchar *string); | |
6570 | ||
6571 | ||
6572 | ||
6573 | ||
6574 | ||
6575 | ||
6576 | gchar* g_strdup (const gchar *str) __attribute__((__malloc__)); | |
6577 | gchar* g_strdup_printf (const gchar *format, | |
6578 | ...) __attribute__((__format__ (__printf__, 1, 2))) __attribute__((__malloc__)); | |
6579 | gchar* g_strdup_vprintf (const gchar *format, | |
6580 | va_list args) __attribute__((__malloc__)); | |
6581 | gchar* g_strndup (const gchar *str, | |
6582 | gsize n) __attribute__((__malloc__)); | |
6583 | gchar* g_strnfill (gsize length, | |
6584 | gchar fill_char) __attribute__((__malloc__)); | |
6585 | gchar* g_strconcat (const gchar *string1, | |
6586 | ...) __attribute__((__malloc__)) __attribute__((__sentinel__)); | |
6587 | gchar* g_strjoin (const gchar *separator, | |
6588 | ...) __attribute__((__malloc__)) __attribute__((__sentinel__)); | |
6589 | ||
6590 | ||
6591 | ||
6592 | ||
6593 | ||
6594 | gchar* g_strcompress (const gchar *source) __attribute__((__malloc__)); | |
6595 | # 213 "/usr/include/glib-2.0/glib/gstrfuncs.h" | |
6596 | gchar* g_strescape (const gchar *source, | |
6597 | const gchar *exceptions) __attribute__((__malloc__)); | |
6598 | ||
6599 | gpointer g_memdup (gconstpointer mem, | |
6600 | guint byte_size) __attribute__((__malloc__)); | |
6601 | # 228 "/usr/include/glib-2.0/glib/gstrfuncs.h" | |
6602 | gchar** g_strsplit (const gchar *string, | |
6603 | const gchar *delimiter, | |
6604 | gint max_tokens) __attribute__((__malloc__)); | |
6605 | gchar ** g_strsplit_set (const gchar *string, | |
6606 | const gchar *delimiters, | |
6607 | gint max_tokens) __attribute__((__malloc__)); | |
6608 | gchar* g_strjoinv (const gchar *separator, | |
6609 | gchar **str_array) __attribute__((__malloc__)); | |
6610 | void g_strfreev (gchar **str_array); | |
6611 | gchar** g_strdupv (gchar **str_array) __attribute__((__malloc__)); | |
6612 | guint g_strv_length (gchar **str_array); | |
6613 | ||
6614 | gchar* g_stpcpy (gchar *dest, | |
6615 | const char *src); | |
6616 | ||
6617 | const gchar *g_strip_context (const gchar *msgid, | |
6618 | const gchar *msgval); | |
6619 | ||
6620 | ||
6621 | # 72 "/usr/include/glib-2.0/glib.h" 2 | |
6622 | ||
6623 | ||
6624 | # 1 "/usr/include/glib-2.0/glib/gthreadpool.h" 1 | |
6625 | # 32 "/usr/include/glib-2.0/glib/gthreadpool.h" | |
6626 | ||
6627 | ||
6628 | typedef struct _GThreadPool GThreadPool; | |
6629 | ||
6630 | ||
6631 | ||
6632 | ||
6633 | ||
6634 | ||
6635 | struct _GThreadPool | |
6636 | { | |
6637 | GFunc func; | |
6638 | gpointer user_data; | |
6639 | gboolean exclusive; | |
6640 | }; | |
6641 | ||
6642 | ||
6643 | ||
6644 | ||
6645 | ||
6646 | ||
6647 | GThreadPool* g_thread_pool_new (GFunc func, | |
6648 | gpointer user_data, | |
6649 | gint max_threads, | |
6650 | gboolean exclusive, | |
6651 | GError **error); | |
6652 | ||
6653 | ||
6654 | ||
6655 | ||
6656 | ||
6657 | void g_thread_pool_push (GThreadPool *pool, | |
6658 | gpointer data, | |
6659 | GError **error); | |
6660 | ||
6661 | ||
6662 | ||
6663 | ||
6664 | void g_thread_pool_set_max_threads (GThreadPool *pool, | |
6665 | gint max_threads, | |
6666 | GError **error); | |
6667 | gint g_thread_pool_get_max_threads (GThreadPool *pool); | |
6668 | ||
6669 | ||
6670 | ||
6671 | guint g_thread_pool_get_num_threads (GThreadPool *pool); | |
6672 | ||
6673 | ||
6674 | guint g_thread_pool_unprocessed (GThreadPool *pool); | |
6675 | ||
6676 | ||
6677 | ||
6678 | ||
6679 | ||
6680 | void g_thread_pool_free (GThreadPool *pool, | |
6681 | gboolean immediate, | |
6682 | gboolean wait_); | |
6683 | ||
6684 | ||
6685 | ||
6686 | void g_thread_pool_set_max_unused_threads (gint max_threads); | |
6687 | gint g_thread_pool_get_max_unused_threads (void); | |
6688 | guint g_thread_pool_get_num_unused_threads (void); | |
6689 | ||
6690 | ||
6691 | void g_thread_pool_stop_unused_threads (void); | |
6692 | ||
6693 | ||
6694 | void g_thread_pool_set_sort_function (GThreadPool *pool, | |
6695 | GCompareDataFunc func, | |
6696 | gpointer user_data); | |
6697 | ||
6698 | ||
6699 | void g_thread_pool_set_max_idle_time (guint interval); | |
6700 | guint g_thread_pool_get_max_idle_time (void); | |
6701 | ||
6702 | ||
6703 | # 75 "/usr/include/glib-2.0/glib.h" 2 | |
6704 | # 1 "/usr/include/glib-2.0/glib/gtimer.h" 1 | |
6705 | # 32 "/usr/include/glib-2.0/glib/gtimer.h" | |
6706 | ||
6707 | ||
6708 | ||
6709 | ||
6710 | ||
6711 | ||
6712 | typedef struct _GTimer GTimer; | |
6713 | ||
6714 | ||
6715 | ||
6716 | GTimer* g_timer_new (void); | |
6717 | void g_timer_destroy (GTimer *timer); | |
6718 | void g_timer_start (GTimer *timer); | |
6719 | void g_timer_stop (GTimer *timer); | |
6720 | void g_timer_reset (GTimer *timer); | |
6721 | void g_timer_continue (GTimer *timer); | |
6722 | gdouble g_timer_elapsed (GTimer *timer, | |
6723 | gulong *microseconds); | |
6724 | ||
6725 | void g_usleep (gulong microseconds); | |
6726 | ||
6727 | void g_time_val_add (GTimeVal *time_, | |
6728 | glong microseconds); | |
6729 | gboolean g_time_val_from_iso8601 (const gchar *iso_date, | |
6730 | GTimeVal *time_); | |
6731 | gchar* g_time_val_to_iso8601 (GTimeVal *time_) __attribute__((__malloc__)); | |
6732 | ||
6733 | ||
6734 | # 76 "/usr/include/glib-2.0/glib.h" 2 | |
6735 | # 1 "/usr/include/glib-2.0/glib/gtree.h" 1 | |
6736 | # 32 "/usr/include/glib-2.0/glib/gtree.h" | |
6737 | ||
6738 | ||
6739 | typedef struct _GTree GTree; | |
6740 | ||
6741 | typedef gboolean (*GTraverseFunc) (gpointer key, | |
6742 | gpointer value, | |
6743 | gpointer data); | |
6744 | ||
6745 | ||
6746 | ||
6747 | GTree* g_tree_new (GCompareFunc key_compare_func); | |
6748 | GTree* g_tree_new_with_data (GCompareDataFunc key_compare_func, | |
6749 | gpointer key_compare_data); | |
6750 | GTree* g_tree_new_full (GCompareDataFunc key_compare_func, | |
6751 | gpointer key_compare_data, | |
6752 | GDestroyNotify key_destroy_func, | |
6753 | GDestroyNotify value_destroy_func); | |
6754 | void g_tree_destroy (GTree *tree); | |
6755 | void g_tree_insert (GTree *tree, | |
6756 | gpointer key, | |
6757 | gpointer value); | |
6758 | void g_tree_replace (GTree *tree, | |
6759 | gpointer key, | |
6760 | gpointer value); | |
6761 | gboolean g_tree_remove (GTree *tree, | |
6762 | gconstpointer key); | |
6763 | gboolean g_tree_steal (GTree *tree, | |
6764 | gconstpointer key); | |
6765 | gpointer g_tree_lookup (GTree *tree, | |
6766 | gconstpointer key); | |
6767 | gboolean g_tree_lookup_extended (GTree *tree, | |
6768 | gconstpointer lookup_key, | |
6769 | gpointer *orig_key, | |
6770 | gpointer *value); | |
6771 | void g_tree_foreach (GTree *tree, | |
6772 | GTraverseFunc func, | |
6773 | gpointer user_data); | |
6774 | ||
6775 | ||
6776 | void g_tree_traverse (GTree *tree, | |
6777 | GTraverseFunc traverse_func, | |
6778 | GTraverseType traverse_type, | |
6779 | gpointer user_data); | |
6780 | ||
6781 | ||
6782 | gpointer g_tree_search (GTree *tree, | |
6783 | GCompareFunc search_func, | |
6784 | gconstpointer user_data); | |
6785 | gint g_tree_height (GTree *tree); | |
6786 | gint g_tree_nnodes (GTree *tree); | |
6787 | ||
6788 | ||
6789 | ||
6790 | ||
6791 | # 77 "/usr/include/glib-2.0/glib.h" 2 | |
6792 | # 33 "../gdk/gdktypes.h" 2 | |
6793 | # 1 "/usr/include/pango-1.0/pango/pango.h" 1 | |
6794 | # 25 "/usr/include/pango-1.0/pango/pango.h" | |
6795 | # 1 "/usr/include/pango-1.0/pango/pango-attributes.h" 1 | |
6796 | # 25 "/usr/include/pango-1.0/pango/pango-attributes.h" | |
6797 | # 1 "/usr/include/pango-1.0/pango/pango-font.h" 1 | |
6798 | # 25 "/usr/include/pango-1.0/pango/pango-font.h" | |
6799 | # 1 "/usr/include/pango-1.0/pango/pango-coverage.h" 1 | |
6800 | # 27 "/usr/include/pango-1.0/pango/pango-coverage.h" | |
6801 | ||
6802 | ||
6803 | typedef struct _PangoCoverage PangoCoverage; | |
6804 | ||
6805 | typedef enum { | |
6806 | PANGO_COVERAGE_NONE, | |
6807 | PANGO_COVERAGE_FALLBACK, | |
6808 | PANGO_COVERAGE_APPROXIMATE, | |
6809 | PANGO_COVERAGE_EXACT | |
6810 | } PangoCoverageLevel; | |
6811 | ||
6812 | PangoCoverage * pango_coverage_new (void); | |
6813 | PangoCoverage * pango_coverage_ref (PangoCoverage *coverage); | |
6814 | void pango_coverage_unref (PangoCoverage *coverage); | |
6815 | PangoCoverage * pango_coverage_copy (PangoCoverage *coverage); | |
6816 | PangoCoverageLevel pango_coverage_get (PangoCoverage *coverage, | |
6817 | int index_); | |
6818 | void pango_coverage_set (PangoCoverage *coverage, | |
6819 | int index_, | |
6820 | PangoCoverageLevel level); | |
6821 | void pango_coverage_max (PangoCoverage *coverage, | |
6822 | PangoCoverage *other); | |
6823 | ||
6824 | void pango_coverage_to_bytes (PangoCoverage *coverage, | |
6825 | guchar **bytes, | |
6826 | int *n_bytes); | |
6827 | PangoCoverage *pango_coverage_from_bytes (guchar *bytes, | |
6828 | int n_bytes); | |
6829 | ||
6830 | ||
6831 | # 26 "/usr/include/pango-1.0/pango/pango-font.h" 2 | |
6832 | # 1 "/usr/include/pango-1.0/pango/pango-types.h" 1 | |
6833 | # 26 "/usr/include/pango-1.0/pango/pango-types.h" | |
6834 | # 1 "/usr/include/glib-2.0/glib-object.h" 1 | |
6835 | # 25 "/usr/include/glib-2.0/glib-object.h" | |
6836 | # 1 "/usr/include/glib-2.0/gobject/gboxed.h" 1 | |
6837 | # 26 "/usr/include/glib-2.0/gobject/gboxed.h" | |
6838 | # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1 | |
6839 | # 28 "/usr/include/glib-2.0/gobject/gtype.h" | |
6840 | ||
6841 | # 92 "/usr/include/glib-2.0/gobject/gtype.h" | |
6842 | typedef gsize GType; | |
6843 | ||
6844 | ||
6845 | ||
6846 | typedef struct _GValue GValue; | |
6847 | typedef union _GTypeCValue GTypeCValue; | |
6848 | typedef struct _GTypePlugin GTypePlugin; | |
6849 | typedef struct _GTypeClass GTypeClass; | |
6850 | typedef struct _GTypeInterface GTypeInterface; | |
6851 | typedef struct _GTypeInstance GTypeInstance; | |
6852 | typedef struct _GTypeInfo GTypeInfo; | |
6853 | typedef struct _GTypeFundamentalInfo GTypeFundamentalInfo; | |
6854 | typedef struct _GInterfaceInfo GInterfaceInfo; | |
6855 | typedef struct _GTypeValueTable GTypeValueTable; | |
6856 | typedef struct _GTypeQuery GTypeQuery; | |
6857 | ||
6858 | ||
6859 | ||
6860 | ||
6861 | struct _GTypeClass | |
6862 | { | |
6863 | ||
6864 | GType g_type; | |
6865 | }; | |
6866 | struct _GTypeInstance | |
6867 | { | |
6868 | ||
6869 | GTypeClass *g_class; | |
6870 | }; | |
6871 | struct _GTypeInterface | |
6872 | { | |
6873 | ||
6874 | GType g_type; | |
6875 | GType g_instance_type; | |
6876 | }; | |
6877 | struct _GTypeQuery | |
6878 | { | |
6879 | GType type; | |
6880 | const gchar *type_name; | |
6881 | guint class_size; | |
6882 | guint instance_size; | |
6883 | }; | |
6884 | # 157 "/usr/include/glib-2.0/gobject/gtype.h" | |
6885 | typedef enum | |
6886 | { | |
6887 | G_TYPE_DEBUG_NONE = 0, | |
6888 | G_TYPE_DEBUG_OBJECTS = 1 << 0, | |
6889 | G_TYPE_DEBUG_SIGNALS = 1 << 1, | |
6890 | G_TYPE_DEBUG_MASK = 0x03 | |
6891 | } GTypeDebugFlags; | |
6892 | ||
6893 | ||
6894 | ||
6895 | void g_type_init (void); | |
6896 | void g_type_init_with_debug_flags (GTypeDebugFlags debug_flags); | |
6897 | const gchar* g_type_name (GType type); | |
6898 | GQuark g_type_qname (GType type); | |
6899 | GType g_type_from_name (const gchar *name); | |
6900 | GType g_type_parent (GType type); | |
6901 | guint g_type_depth (GType type); | |
6902 | GType g_type_next_base (GType leaf_type, | |
6903 | GType root_type); | |
6904 | gboolean g_type_is_a (GType type, | |
6905 | GType is_a_type); | |
6906 | gpointer g_type_class_ref (GType type); | |
6907 | gpointer g_type_class_peek (GType type); | |
6908 | gpointer g_type_class_peek_static (GType type); | |
6909 | void g_type_class_unref (gpointer g_class); | |
6910 | gpointer g_type_class_peek_parent (gpointer g_class); | |
6911 | gpointer g_type_interface_peek (gpointer instance_class, | |
6912 | GType iface_type); | |
6913 | gpointer g_type_interface_peek_parent (gpointer g_iface); | |
6914 | ||
6915 | gpointer g_type_default_interface_ref (GType g_type); | |
6916 | gpointer g_type_default_interface_peek (GType g_type); | |
6917 | void g_type_default_interface_unref (gpointer g_iface); | |
6918 | ||
6919 | ||
6920 | GType* g_type_children (GType type, | |
6921 | guint *n_children); | |
6922 | GType* g_type_interfaces (GType type, | |
6923 | guint *n_interfaces); | |
6924 | ||
6925 | ||
6926 | void g_type_set_qdata (GType type, | |
6927 | GQuark quark, | |
6928 | gpointer data); | |
6929 | gpointer g_type_get_qdata (GType type, | |
6930 | GQuark quark); | |
6931 | void g_type_query (GType type, | |
6932 | GTypeQuery *query); | |
6933 | ||
6934 | ||
6935 | ||
6936 | typedef void (*GBaseInitFunc) (gpointer g_class); | |
6937 | typedef void (*GBaseFinalizeFunc) (gpointer g_class); | |
6938 | typedef void (*GClassInitFunc) (gpointer g_class, | |
6939 | gpointer class_data); | |
6940 | typedef void (*GClassFinalizeFunc) (gpointer g_class, | |
6941 | gpointer class_data); | |
6942 | typedef void (*GInstanceInitFunc) (GTypeInstance *instance, | |
6943 | gpointer g_class); | |
6944 | typedef void (*GInterfaceInitFunc) (gpointer g_iface, | |
6945 | gpointer iface_data); | |
6946 | typedef void (*GInterfaceFinalizeFunc) (gpointer g_iface, | |
6947 | gpointer iface_data); | |
6948 | typedef gboolean (*GTypeClassCacheFunc) (gpointer cache_data, | |
6949 | GTypeClass *g_class); | |
6950 | typedef void (*GTypeInterfaceCheckFunc) (gpointer check_data, | |
6951 | gpointer g_iface); | |
6952 | typedef enum | |
6953 | { | |
6954 | G_TYPE_FLAG_CLASSED = (1 << 0), | |
6955 | G_TYPE_FLAG_INSTANTIATABLE = (1 << 1), | |
6956 | G_TYPE_FLAG_DERIVABLE = (1 << 2), | |
6957 | G_TYPE_FLAG_DEEP_DERIVABLE = (1 << 3) | |
6958 | } GTypeFundamentalFlags; | |
6959 | typedef enum | |
6960 | { | |
6961 | G_TYPE_FLAG_ABSTRACT = (1 << 4), | |
6962 | G_TYPE_FLAG_VALUE_ABSTRACT = (1 << 5) | |
6963 | } GTypeFlags; | |
6964 | struct _GTypeInfo | |
6965 | { | |
6966 | ||
6967 | guint16 class_size; | |
6968 | ||
6969 | GBaseInitFunc base_init; | |
6970 | GBaseFinalizeFunc base_finalize; | |
6971 | ||
6972 | ||
6973 | GClassInitFunc class_init; | |
6974 | GClassFinalizeFunc class_finalize; | |
6975 | gconstpointer class_data; | |
6976 | ||
6977 | ||
6978 | guint16 instance_size; | |
6979 | guint16 n_preallocs; | |
6980 | GInstanceInitFunc instance_init; | |
6981 | ||
6982 | ||
6983 | const GTypeValueTable *value_table; | |
6984 | }; | |
6985 | struct _GTypeFundamentalInfo | |
6986 | { | |
6987 | GTypeFundamentalFlags type_flags; | |
6988 | }; | |
6989 | struct _GInterfaceInfo | |
6990 | { | |
6991 | GInterfaceInitFunc interface_init; | |
6992 | GInterfaceFinalizeFunc interface_finalize; | |
6993 | gpointer interface_data; | |
6994 | }; | |
6995 | struct _GTypeValueTable | |
6996 | { | |
6997 | void (*value_init) (GValue *value); | |
6998 | void (*value_free) (GValue *value); | |
6999 | void (*value_copy) (const GValue *src_value, | |
7000 | GValue *dest_value); | |
7001 | ||
7002 | gpointer (*value_peek_pointer) (const GValue *value); | |
7003 | gchar *collect_format; | |
7004 | gchar* (*collect_value) (GValue *value, | |
7005 | guint n_collect_values, | |
7006 | GTypeCValue *collect_values, | |
7007 | guint collect_flags); | |
7008 | gchar *lcopy_format; | |
7009 | gchar* (*lcopy_value) (const GValue *value, | |
7010 | guint n_collect_values, | |
7011 | GTypeCValue *collect_values, | |
7012 | guint collect_flags); | |
7013 | }; | |
7014 | GType g_type_register_static (GType parent_type, | |
7015 | const gchar *type_name, | |
7016 | const GTypeInfo *info, | |
7017 | GTypeFlags flags); | |
7018 | GType g_type_register_static_simple (GType parent_type, | |
7019 | const gchar *type_name, | |
7020 | guint class_size, | |
7021 | GClassInitFunc class_init, | |
7022 | guint instance_size, | |
7023 | GInstanceInitFunc instance_init, | |
7024 | GTypeFlags flags); | |
7025 | ||
7026 | GType g_type_register_dynamic (GType parent_type, | |
7027 | const gchar *type_name, | |
7028 | GTypePlugin *plugin, | |
7029 | GTypeFlags flags); | |
7030 | GType g_type_register_fundamental (GType type_id, | |
7031 | const gchar *type_name, | |
7032 | const GTypeInfo *info, | |
7033 | const GTypeFundamentalInfo *finfo, | |
7034 | GTypeFlags flags); | |
7035 | void g_type_add_interface_static (GType instance_type, | |
7036 | GType interface_type, | |
7037 | const GInterfaceInfo *info); | |
7038 | void g_type_add_interface_dynamic (GType instance_type, | |
7039 | GType interface_type, | |
7040 | GTypePlugin *plugin); | |
7041 | void g_type_interface_add_prerequisite (GType interface_type, | |
7042 | GType prerequisite_type); | |
7043 | GType*g_type_interface_prerequisites (GType interface_type, | |
7044 | guint *n_prerequisites); | |
7045 | void g_type_class_add_private (gpointer g_class, | |
7046 | gsize private_size); | |
7047 | gpointer g_type_instance_get_private (GTypeInstance *instance, | |
7048 | GType private_type); | |
7049 | # 393 "/usr/include/glib-2.0/gobject/gtype.h" | |
7050 | GTypePlugin* g_type_get_plugin (GType type); | |
7051 | GTypePlugin* g_type_interface_get_plugin (GType instance_type, | |
7052 | GType interface_type); | |
7053 | GType g_type_fundamental_next (void); | |
7054 | GType g_type_fundamental (GType type_id); | |
7055 | GTypeInstance* g_type_create_instance (GType type); | |
7056 | void g_type_free_instance (GTypeInstance *instance); | |
7057 | ||
7058 | void g_type_add_class_cache_func (gpointer cache_data, | |
7059 | GTypeClassCacheFunc cache_func); | |
7060 | void g_type_remove_class_cache_func (gpointer cache_data, | |
7061 | GTypeClassCacheFunc cache_func); | |
7062 | void g_type_class_unref_uncached (gpointer g_class); | |
7063 | ||
7064 | void g_type_add_interface_check (gpointer check_data, | |
7065 | GTypeInterfaceCheckFunc check_func); | |
7066 | void g_type_remove_interface_check (gpointer check_data, | |
7067 | GTypeInterfaceCheckFunc check_func); | |
7068 | ||
7069 | GTypeValueTable* g_type_value_table_peek (GType type); | |
7070 | ||
7071 | ||
7072 | ||
7073 | gboolean g_type_check_instance (GTypeInstance *instance) __attribute__((__pure__)); | |
7074 | GTypeInstance* g_type_check_instance_cast (GTypeInstance *instance, | |
7075 | GType iface_type); | |
7076 | gboolean g_type_check_instance_is_a (GTypeInstance *instance, | |
7077 | GType iface_type) __attribute__((__pure__)); | |
7078 | GTypeClass* g_type_check_class_cast (GTypeClass *g_class, | |
7079 | GType is_a_type); | |
7080 | gboolean g_type_check_class_is_a (GTypeClass *g_class, | |
7081 | GType is_a_type) __attribute__((__pure__)); | |
7082 | gboolean g_type_check_is_value_type (GType type) __attribute__((__const__)); | |
7083 | gboolean g_type_check_value (GValue *value) __attribute__((__pure__)); | |
7084 | gboolean g_type_check_value_holds (GValue *value, | |
7085 | GType type) __attribute__((__pure__)); | |
7086 | gboolean g_type_test_flags (GType type, | |
7087 | guint flags) __attribute__((__const__)); | |
7088 | ||
7089 | ||
7090 | ||
7091 | const gchar* g_type_name_from_instance (GTypeInstance *instance); | |
7092 | const gchar* g_type_name_from_class (GTypeClass *g_class); | |
7093 | ||
7094 | ||
7095 | ||
7096 | __attribute__((visibility("hidden"))) void g_value_c_init (void); | |
7097 | __attribute__((visibility("hidden"))) void g_value_types_init (void); | |
7098 | __attribute__((visibility("hidden"))) void g_enum_types_init (void); | |
7099 | __attribute__((visibility("hidden"))) void g_param_type_init (void); | |
7100 | __attribute__((visibility("hidden"))) void g_boxed_type_init (void); | |
7101 | __attribute__((visibility("hidden"))) void g_object_type_init (void); | |
7102 | __attribute__((visibility("hidden"))) void g_param_spec_types_init (void); | |
7103 | __attribute__((visibility("hidden"))) void g_value_transforms_init (void); | |
7104 | __attribute__((visibility("hidden"))) void g_signal_init (void); | |
7105 | # 495 "/usr/include/glib-2.0/gobject/gtype.h" | |
7106 | extern GTypeDebugFlags _g_type_debug_flags; | |
7107 | ||
7108 | ||
7109 | # 27 "/usr/include/glib-2.0/gobject/gboxed.h" 2 | |
7110 | ||
7111 | ||
7112 | ||
7113 | ||
7114 | ||
7115 | ||
7116 | ||
7117 | ||
7118 | ||
7119 | typedef gpointer (*GBoxedCopyFunc) (gpointer boxed); | |
7120 | typedef void (*GBoxedFreeFunc) (gpointer boxed); | |
7121 | ||
7122 | ||
7123 | ||
7124 | gpointer g_boxed_copy (GType boxed_type, | |
7125 | gconstpointer src_boxed); | |
7126 | void g_boxed_free (GType boxed_type, | |
7127 | gpointer boxed); | |
7128 | void g_value_set_boxed (GValue *value, | |
7129 | gconstpointer v_boxed); | |
7130 | void g_value_set_static_boxed (GValue *value, | |
7131 | gconstpointer v_boxed); | |
7132 | gpointer g_value_get_boxed (const GValue *value); | |
7133 | gpointer g_value_dup_boxed (const GValue *value); | |
7134 | ||
7135 | ||
7136 | ||
7137 | GType g_boxed_type_register_static (const gchar *name, | |
7138 | GBoxedCopyFunc boxed_copy, | |
7139 | GBoxedFreeFunc boxed_free); | |
7140 | # 70 "/usr/include/glib-2.0/gobject/gboxed.h" | |
7141 | void g_value_take_boxed (GValue *value, | |
7142 | gconstpointer v_boxed); | |
7143 | ||
7144 | void g_value_set_boxed_take_ownership (GValue *value, | |
7145 | gconstpointer v_boxed); | |
7146 | ||
7147 | GType g_closure_get_type (void) __attribute__((__const__)); | |
7148 | GType g_value_get_type (void) __attribute__((__const__)); | |
7149 | GType g_value_array_get_type (void) __attribute__((__const__)); | |
7150 | GType g_date_get_type (void) __attribute__((__const__)); | |
7151 | GType g_strv_get_type (void) __attribute__((__const__)); | |
7152 | GType g_gstring_get_type (void) __attribute__((__const__)); | |
7153 | GType g_hash_table_get_type (void) __attribute__((__const__)); | |
7154 | GType g_regex_get_type (void) __attribute__((__const__)); | |
7155 | ||
7156 | typedef gchar** GStrv; | |
7157 | ||
7158 | ||
7159 | # 26 "/usr/include/glib-2.0/glib-object.h" 2 | |
7160 | # 1 "/usr/include/glib-2.0/gobject/genums.h" 1 | |
7161 | # 26 "/usr/include/glib-2.0/gobject/genums.h" | |
7162 | # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1 | |
7163 | # 27 "/usr/include/glib-2.0/gobject/genums.h" 2 | |
7164 | ||
7165 | ||
7166 | # 46 "/usr/include/glib-2.0/gobject/genums.h" | |
7167 | typedef struct _GEnumClass GEnumClass; | |
7168 | typedef struct _GFlagsClass GFlagsClass; | |
7169 | typedef struct _GEnumValue GEnumValue; | |
7170 | typedef struct _GFlagsValue GFlagsValue; | |
7171 | struct _GEnumClass | |
7172 | { | |
7173 | GTypeClass g_type_class; | |
7174 | ||
7175 | ||
7176 | gint minimum; | |
7177 | gint maximum; | |
7178 | guint n_values; | |
7179 | GEnumValue *values; | |
7180 | }; | |
7181 | struct _GFlagsClass | |
7182 | { | |
7183 | GTypeClass g_type_class; | |
7184 | ||
7185 | ||
7186 | guint mask; | |
7187 | guint n_values; | |
7188 | GFlagsValue *values; | |
7189 | }; | |
7190 | struct _GEnumValue | |
7191 | { | |
7192 | gint value; | |
7193 | const gchar *value_name; | |
7194 | const gchar *value_nick; | |
7195 | }; | |
7196 | struct _GFlagsValue | |
7197 | { | |
7198 | guint value; | |
7199 | const gchar *value_name; | |
7200 | const gchar *value_nick; | |
7201 | }; | |
7202 | ||
7203 | ||
7204 | ||
7205 | GEnumValue* g_enum_get_value (GEnumClass *enum_class, | |
7206 | gint value); | |
7207 | GEnumValue* g_enum_get_value_by_name (GEnumClass *enum_class, | |
7208 | const gchar *name); | |
7209 | GEnumValue* g_enum_get_value_by_nick (GEnumClass *enum_class, | |
7210 | const gchar *nick); | |
7211 | GFlagsValue* g_flags_get_first_value (GFlagsClass *flags_class, | |
7212 | guint value); | |
7213 | GFlagsValue* g_flags_get_value_by_name (GFlagsClass *flags_class, | |
7214 | const gchar *name); | |
7215 | GFlagsValue* g_flags_get_value_by_nick (GFlagsClass *flags_class, | |
7216 | const gchar *nick); | |
7217 | void g_value_set_enum (GValue *value, | |
7218 | gint v_enum); | |
7219 | gint g_value_get_enum (const GValue *value); | |
7220 | void g_value_set_flags (GValue *value, | |
7221 | guint v_flags); | |
7222 | guint g_value_get_flags (const GValue *value); | |
7223 | ||
7224 | ||
7225 | ||
7226 | ||
7227 | ||
7228 | ||
7229 | ||
7230 | GType g_enum_register_static (const gchar *name, | |
7231 | const GEnumValue *const_static_values); | |
7232 | GType g_flags_register_static (const gchar *name, | |
7233 | const GFlagsValue *const_static_values); | |
7234 | ||
7235 | ||
7236 | ||
7237 | void g_enum_complete_type_info (GType g_enum_type, | |
7238 | GTypeInfo *info, | |
7239 | const GEnumValue *const_values); | |
7240 | void g_flags_complete_type_info (GType g_flags_type, | |
7241 | GTypeInfo *info, | |
7242 | const GFlagsValue *const_values); | |
7243 | ||
7244 | ||
7245 | # 27 "/usr/include/glib-2.0/glib-object.h" 2 | |
7246 | # 1 "/usr/include/glib-2.0/gobject/gobject.h" 1 | |
7247 | # 26 "/usr/include/glib-2.0/gobject/gobject.h" | |
7248 | # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1 | |
7249 | # 27 "/usr/include/glib-2.0/gobject/gobject.h" 2 | |
7250 | # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1 | |
7251 | # 28 "/usr/include/glib-2.0/gobject/gvalue.h" | |
7252 | # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1 | |
7253 | # 29 "/usr/include/glib-2.0/gobject/gvalue.h" 2 | |
7254 | ||
7255 | ||
7256 | # 41 "/usr/include/glib-2.0/gobject/gvalue.h" | |
7257 | typedef void (*GValueTransform) (const GValue *src_value, | |
7258 | GValue *dest_value); | |
7259 | struct _GValue | |
7260 | { | |
7261 | ||
7262 | GType g_type; | |
7263 | ||
7264 | ||
7265 | union { | |
7266 | gint v_int; | |
7267 | guint v_uint; | |
7268 | glong v_long; | |
7269 | gulong v_ulong; | |
7270 | gint64 v_int64; | |
7271 | guint64 v_uint64; | |
7272 | gfloat v_float; | |
7273 | gdouble v_double; | |
7274 | gpointer v_pointer; | |
7275 | } data[2]; | |
7276 | }; | |
7277 | ||
7278 | ||
7279 | ||
7280 | GValue* g_value_init (GValue *value, | |
7281 | GType g_type); | |
7282 | void g_value_copy (const GValue *src_value, | |
7283 | GValue *dest_value); | |
7284 | GValue* g_value_reset (GValue *value); | |
7285 | void g_value_unset (GValue *value); | |
7286 | void g_value_set_instance (GValue *value, | |
7287 | gpointer instance); | |
7288 | ||
7289 | ||
7290 | ||
7291 | gboolean g_value_fits_pointer (const GValue *value); | |
7292 | gpointer g_value_peek_pointer (const GValue *value); | |
7293 | ||
7294 | ||
7295 | ||
7296 | gboolean g_value_type_compatible (GType src_type, | |
7297 | GType dest_type); | |
7298 | gboolean g_value_type_transformable (GType src_type, | |
7299 | GType dest_type); | |
7300 | gboolean g_value_transform (const GValue *src_value, | |
7301 | GValue *dest_value); | |
7302 | void g_value_register_transform_func (GType src_type, | |
7303 | GType dest_type, | |
7304 | GValueTransform transform_func); | |
7305 | ||
7306 | ||
7307 | ||
7308 | ||
7309 | # 28 "/usr/include/glib-2.0/gobject/gobject.h" 2 | |
7310 | # 1 "/usr/include/glib-2.0/gobject/gparam.h" 1 | |
7311 | # 28 "/usr/include/glib-2.0/gobject/gparam.h" | |
7312 | # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1 | |
7313 | # 29 "/usr/include/glib-2.0/gobject/gparam.h" 2 | |
7314 | ||
7315 | ||
7316 | # 49 "/usr/include/glib-2.0/gobject/gparam.h" | |
7317 | typedef enum | |
7318 | { | |
7319 | G_PARAM_READABLE = 1 << 0, | |
7320 | G_PARAM_WRITABLE = 1 << 1, | |
7321 | G_PARAM_CONSTRUCT = 1 << 2, | |
7322 | G_PARAM_CONSTRUCT_ONLY = 1 << 3, | |
7323 | G_PARAM_LAX_VALIDATION = 1 << 4, | |
7324 | G_PARAM_STATIC_NAME = 1 << 5, | |
7325 | ||
7326 | G_PARAM_PRIVATE = G_PARAM_STATIC_NAME, | |
7327 | ||
7328 | G_PARAM_STATIC_NICK = 1 << 6, | |
7329 | G_PARAM_STATIC_BLURB = 1 << 7 | |
7330 | } GParamFlags; | |
7331 | # 71 "/usr/include/glib-2.0/gobject/gparam.h" | |
7332 | typedef struct _GParamSpec GParamSpec; | |
7333 | typedef struct _GParamSpecClass GParamSpecClass; | |
7334 | typedef struct _GParameter GParameter; | |
7335 | typedef struct _GParamSpecPool GParamSpecPool; | |
7336 | struct _GParamSpec | |
7337 | { | |
7338 | GTypeInstance g_type_instance; | |
7339 | ||
7340 | gchar *name; | |
7341 | GParamFlags flags; | |
7342 | GType value_type; | |
7343 | GType owner_type; | |
7344 | ||
7345 | ||
7346 | gchar *_nick; | |
7347 | gchar *_blurb; | |
7348 | GData *qdata; | |
7349 | guint ref_count; | |
7350 | guint param_id; | |
7351 | }; | |
7352 | struct _GParamSpecClass | |
7353 | { | |
7354 | GTypeClass g_type_class; | |
7355 | ||
7356 | GType value_type; | |
7357 | ||
7358 | void (*finalize) (GParamSpec *pspec); | |
7359 | ||
7360 | ||
7361 | void (*value_set_default) (GParamSpec *pspec, | |
7362 | GValue *value); | |
7363 | gboolean (*value_validate) (GParamSpec *pspec, | |
7364 | GValue *value); | |
7365 | gint (*values_cmp) (GParamSpec *pspec, | |
7366 | const GValue *value1, | |
7367 | const GValue *value2); | |
7368 | ||
7369 | gpointer dummy[4]; | |
7370 | }; | |
7371 | struct _GParameter | |
7372 | { | |
7373 | const gchar *name; | |
7374 | GValue value; | |
7375 | }; | |
7376 | ||
7377 | ||
7378 | ||
7379 | GParamSpec* g_param_spec_ref (GParamSpec *pspec); | |
7380 | void g_param_spec_unref (GParamSpec *pspec); | |
7381 | void g_param_spec_sink (GParamSpec *pspec); | |
7382 | GParamSpec* g_param_spec_ref_sink (GParamSpec *pspec); | |
7383 | gpointer g_param_spec_get_qdata (GParamSpec *pspec, | |
7384 | GQuark quark); | |
7385 | void g_param_spec_set_qdata (GParamSpec *pspec, | |
7386 | GQuark quark, | |
7387 | gpointer data); | |
7388 | void g_param_spec_set_qdata_full (GParamSpec *pspec, | |
7389 | GQuark quark, | |
7390 | gpointer data, | |
7391 | GDestroyNotify destroy); | |
7392 | gpointer g_param_spec_steal_qdata (GParamSpec *pspec, | |
7393 | GQuark quark); | |
7394 | GParamSpec* g_param_spec_get_redirect_target (GParamSpec *pspec); | |
7395 | ||
7396 | void g_param_value_set_default (GParamSpec *pspec, | |
7397 | GValue *value); | |
7398 | gboolean g_param_value_defaults (GParamSpec *pspec, | |
7399 | GValue *value); | |
7400 | gboolean g_param_value_validate (GParamSpec *pspec, | |
7401 | GValue *value); | |
7402 | gboolean g_param_value_convert (GParamSpec *pspec, | |
7403 | const GValue *src_value, | |
7404 | GValue *dest_value, | |
7405 | gboolean strict_validation); | |
7406 | gint g_param_values_cmp (GParamSpec *pspec, | |
7407 | const GValue *value1, | |
7408 | const GValue *value2); | |
7409 | const gchar* g_param_spec_get_name (GParamSpec *pspec); | |
7410 | const gchar* g_param_spec_get_nick (GParamSpec *pspec); | |
7411 | const gchar* g_param_spec_get_blurb (GParamSpec *pspec); | |
7412 | void g_value_set_param (GValue *value, | |
7413 | GParamSpec *param); | |
7414 | GParamSpec* g_value_get_param (const GValue *value); | |
7415 | GParamSpec* g_value_dup_param (const GValue *value); | |
7416 | ||
7417 | ||
7418 | void g_value_take_param (GValue *value, | |
7419 | GParamSpec *param); | |
7420 | ||
7421 | void g_value_set_param_take_ownership (GValue *value, | |
7422 | GParamSpec *param); | |
7423 | ||
7424 | ||
7425 | ||
7426 | typedef struct _GParamSpecTypeInfo GParamSpecTypeInfo; | |
7427 | struct _GParamSpecTypeInfo | |
7428 | { | |
7429 | ||
7430 | guint16 instance_size; | |
7431 | guint16 n_preallocs; | |
7432 | void (*instance_init) (GParamSpec *pspec); | |
7433 | ||
7434 | ||
7435 | GType value_type; | |
7436 | void (*finalize) (GParamSpec *pspec); | |
7437 | void (*value_set_default) (GParamSpec *pspec, | |
7438 | GValue *value); | |
7439 | gboolean (*value_validate) (GParamSpec *pspec, | |
7440 | GValue *value); | |
7441 | gint (*values_cmp) (GParamSpec *pspec, | |
7442 | const GValue *value1, | |
7443 | const GValue *value2); | |
7444 | }; | |
7445 | GType g_param_type_register_static (const gchar *name, | |
7446 | const GParamSpecTypeInfo *pspec_info); | |
7447 | ||
7448 | ||
7449 | GType _g_param_type_register_static_constant (const gchar *name, | |
7450 | const GParamSpecTypeInfo *pspec_info, | |
7451 | GType opt_type); | |
7452 | ||
7453 | ||
7454 | ||
7455 | gpointer g_param_spec_internal (GType param_type, | |
7456 | const gchar *name, | |
7457 | const gchar *nick, | |
7458 | const gchar *blurb, | |
7459 | GParamFlags flags); | |
7460 | GParamSpecPool* g_param_spec_pool_new (gboolean type_prefixing); | |
7461 | void g_param_spec_pool_insert (GParamSpecPool *pool, | |
7462 | GParamSpec *pspec, | |
7463 | GType owner_type); | |
7464 | void g_param_spec_pool_remove (GParamSpecPool *pool, | |
7465 | GParamSpec *pspec); | |
7466 | GParamSpec* g_param_spec_pool_lookup (GParamSpecPool *pool, | |
7467 | const gchar *param_name, | |
7468 | GType owner_type, | |
7469 | gboolean walk_ancestors); | |
7470 | GList* g_param_spec_pool_list_owned (GParamSpecPool *pool, | |
7471 | GType owner_type); | |
7472 | GParamSpec** g_param_spec_pool_list (GParamSpecPool *pool, | |
7473 | GType owner_type, | |
7474 | guint *n_pspecs_p); | |
7475 | # 233 "/usr/include/glib-2.0/gobject/gparam.h" | |
7476 | ||
7477 | # 29 "/usr/include/glib-2.0/gobject/gobject.h" 2 | |
7478 | # 1 "/usr/include/glib-2.0/gobject/gclosure.h" 1 | |
7479 | # 27 "/usr/include/glib-2.0/gobject/gclosure.h" | |
7480 | # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1 | |
7481 | # 28 "/usr/include/glib-2.0/gobject/gclosure.h" 2 | |
7482 | ||
7483 | ||
7484 | # 40 "/usr/include/glib-2.0/gobject/gclosure.h" | |
7485 | typedef struct _GClosure GClosure; | |
7486 | typedef struct _GClosureNotifyData GClosureNotifyData; | |
7487 | typedef void (*GCallback) (void); | |
7488 | typedef void (*GClosureNotify) (gpointer data, | |
7489 | GClosure *closure); | |
7490 | typedef void (*GClosureMarshal) (GClosure *closure, | |
7491 | GValue *return_value, | |
7492 | guint n_param_values, | |
7493 | const GValue *param_values, | |
7494 | gpointer invocation_hint, | |
7495 | gpointer marshal_data); | |
7496 | typedef struct _GCClosure GCClosure; | |
7497 | ||
7498 | ||
7499 | ||
7500 | struct _GClosureNotifyData | |
7501 | { | |
7502 | gpointer data; | |
7503 | GClosureNotify notify; | |
7504 | }; | |
7505 | struct _GClosure | |
7506 | { | |
7507 | ||
7508 | volatile guint ref_count : 15; | |
7509 | volatile guint meta_marshal : 1; | |
7510 | volatile guint n_guards : 1; | |
7511 | volatile guint n_fnotifiers : 2; | |
7512 | volatile guint n_inotifiers : 8; | |
7513 | volatile guint in_inotify : 1; | |
7514 | volatile guint floating : 1; | |
7515 | ||
7516 | volatile guint derivative_flag : 1; | |
7517 | ||
7518 | volatile guint in_marshal : 1; | |
7519 | volatile guint is_invalid : 1; | |
7520 | ||
7521 | void (*marshal) (GClosure *closure, | |
7522 | GValue *return_value, | |
7523 | guint n_param_values, | |
7524 | const GValue *param_values, | |
7525 | gpointer invocation_hint, | |
7526 | gpointer marshal_data); | |
7527 | gpointer data; | |
7528 | ||
7529 | GClosureNotifyData *notifiers; | |
7530 | # 96 "/usr/include/glib-2.0/gobject/gclosure.h" | |
7531 | }; | |
7532 | ||
7533 | ||
7534 | struct _GCClosure | |
7535 | { | |
7536 | GClosure closure; | |
7537 | gpointer callback; | |
7538 | }; | |
7539 | ||
7540 | ||
7541 | ||
7542 | GClosure* g_cclosure_new (GCallback callback_func, | |
7543 | gpointer user_data, | |
7544 | GClosureNotify destroy_data); | |
7545 | GClosure* g_cclosure_new_swap (GCallback callback_func, | |
7546 | gpointer user_data, | |
7547 | GClosureNotify destroy_data); | |
7548 | GClosure* g_signal_type_cclosure_new (GType itype, | |
7549 | guint struct_offset); | |
7550 | ||
7551 | ||
7552 | ||
7553 | GClosure* g_closure_ref (GClosure *closure); | |
7554 | void g_closure_sink (GClosure *closure); | |
7555 | void g_closure_unref (GClosure *closure); | |
7556 | ||
7557 | GClosure* g_closure_new_simple (guint sizeof_closure, | |
7558 | gpointer data); | |
7559 | void g_closure_add_finalize_notifier (GClosure *closure, | |
7560 | gpointer notify_data, | |
7561 | GClosureNotify notify_func); | |
7562 | void g_closure_remove_finalize_notifier (GClosure *closure, | |
7563 | gpointer notify_data, | |
7564 | GClosureNotify notify_func); | |
7565 | void g_closure_add_invalidate_notifier (GClosure *closure, | |
7566 | gpointer notify_data, | |
7567 | GClosureNotify notify_func); | |
7568 | void g_closure_remove_invalidate_notifier (GClosure *closure, | |
7569 | gpointer notify_data, | |
7570 | GClosureNotify notify_func); | |
7571 | void g_closure_add_marshal_guards (GClosure *closure, | |
7572 | gpointer pre_marshal_data, | |
7573 | GClosureNotify pre_marshal_notify, | |
7574 | gpointer post_marshal_data, | |
7575 | GClosureNotify post_marshal_notify); | |
7576 | void g_closure_set_marshal (GClosure *closure, | |
7577 | GClosureMarshal marshal); | |
7578 | void g_closure_set_meta_marshal (GClosure *closure, | |
7579 | gpointer marshal_data, | |
7580 | GClosureMarshal meta_marshal); | |
7581 | void g_closure_invalidate (GClosure *closure); | |
7582 | void g_closure_invoke (GClosure *closure, | |
7583 | GValue *return_value, | |
7584 | guint n_param_values, | |
7585 | const GValue *param_values, | |
7586 | gpointer invocation_hint); | |
7587 | # 164 "/usr/include/glib-2.0/gobject/gclosure.h" | |
7588 | ||
7589 | # 30 "/usr/include/glib-2.0/gobject/gobject.h" 2 | |
7590 | # 1 "/usr/include/glib-2.0/gobject/gsignal.h" 1 | |
7591 | # 26 "/usr/include/glib-2.0/gobject/gsignal.h" | |
7592 | # 1 "/usr/include/glib-2.0/gobject/gclosure.h" 1 | |
7593 | # 27 "/usr/include/glib-2.0/gobject/gsignal.h" 2 | |
7594 | # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1 | |
7595 | # 28 "/usr/include/glib-2.0/gobject/gsignal.h" 2 | |
7596 | # 1 "/usr/include/glib-2.0/gobject/gparam.h" 1 | |
7597 | # 29 "/usr/include/glib-2.0/gobject/gsignal.h" 2 | |
7598 | # 1 "/usr/include/glib-2.0/gobject/gmarshal.h" 1 | |
7599 | ||
7600 | ||
7601 | ||
7602 | ||
7603 | ||
7604 | ||
7605 | extern void g_cclosure_marshal_VOID__VOID (GClosure *closure, | |
7606 | GValue *return_value, | |
7607 | guint n_param_values, | |
7608 | const GValue *param_values, | |
7609 | gpointer invocation_hint, | |
7610 | gpointer marshal_data); | |
7611 | ||
7612 | ||
7613 | extern void g_cclosure_marshal_VOID__BOOLEAN (GClosure *closure, | |
7614 | GValue *return_value, | |
7615 | guint n_param_values, | |
7616 | const GValue *param_values, | |
7617 | gpointer invocation_hint, | |
7618 | gpointer marshal_data); | |
7619 | ||
7620 | ||
7621 | extern void g_cclosure_marshal_VOID__CHAR (GClosure *closure, | |
7622 | GValue *return_value, | |
7623 | guint n_param_values, | |
7624 | const GValue *param_values, | |
7625 | gpointer invocation_hint, | |
7626 | gpointer marshal_data); | |
7627 | ||
7628 | ||
7629 | extern void g_cclosure_marshal_VOID__UCHAR (GClosure *closure, | |
7630 | GValue *return_value, | |
7631 | guint n_param_values, | |
7632 | const GValue *param_values, | |
7633 | gpointer invocation_hint, | |
7634 | gpointer marshal_data); | |
7635 | ||
7636 | ||
7637 | extern void g_cclosure_marshal_VOID__INT (GClosure *closure, | |
7638 | GValue *return_value, | |
7639 | guint n_param_values, | |
7640 | const GValue *param_values, | |
7641 | gpointer invocation_hint, | |
7642 | gpointer marshal_data); | |
7643 | ||
7644 | ||
7645 | extern void g_cclosure_marshal_VOID__UINT (GClosure *closure, | |
7646 | GValue *return_value, | |
7647 | guint n_param_values, | |
7648 | const GValue *param_values, | |
7649 | gpointer invocation_hint, | |
7650 | gpointer marshal_data); | |
7651 | ||
7652 | ||
7653 | extern void g_cclosure_marshal_VOID__LONG (GClosure *closure, | |
7654 | GValue *return_value, | |
7655 | guint n_param_values, | |
7656 | const GValue *param_values, | |
7657 | gpointer invocation_hint, | |
7658 | gpointer marshal_data); | |
7659 | ||
7660 | ||
7661 | extern void g_cclosure_marshal_VOID__ULONG (GClosure *closure, | |
7662 | GValue *return_value, | |
7663 | guint n_param_values, | |
7664 | const GValue *param_values, | |
7665 | gpointer invocation_hint, | |
7666 | gpointer marshal_data); | |
7667 | ||
7668 | ||
7669 | extern void g_cclosure_marshal_VOID__ENUM (GClosure *closure, | |
7670 | GValue *return_value, | |
7671 | guint n_param_values, | |
7672 | const GValue *param_values, | |
7673 | gpointer invocation_hint, | |
7674 | gpointer marshal_data); | |
7675 | ||
7676 | ||
7677 | extern void g_cclosure_marshal_VOID__FLAGS (GClosure *closure, | |
7678 | GValue *return_value, | |
7679 | guint n_param_values, | |
7680 | const GValue *param_values, | |
7681 | gpointer invocation_hint, | |
7682 | gpointer marshal_data); | |
7683 | ||
7684 | ||
7685 | extern void g_cclosure_marshal_VOID__FLOAT (GClosure *closure, | |
7686 | GValue *return_value, | |
7687 | guint n_param_values, | |
7688 | const GValue *param_values, | |
7689 | gpointer invocation_hint, | |
7690 | gpointer marshal_data); | |
7691 | ||
7692 | ||
7693 | extern void g_cclosure_marshal_VOID__DOUBLE (GClosure *closure, | |
7694 | GValue *return_value, | |
7695 | guint n_param_values, | |
7696 | const GValue *param_values, | |
7697 | gpointer invocation_hint, | |
7698 | gpointer marshal_data); | |
7699 | ||
7700 | ||
7701 | extern void g_cclosure_marshal_VOID__STRING (GClosure *closure, | |
7702 | GValue *return_value, | |
7703 | guint n_param_values, | |
7704 | const GValue *param_values, | |
7705 | gpointer invocation_hint, | |
7706 | gpointer marshal_data); | |
7707 | ||
7708 | ||
7709 | extern void g_cclosure_marshal_VOID__PARAM (GClosure *closure, | |
7710 | GValue *return_value, | |
7711 | guint n_param_values, | |
7712 | const GValue *param_values, | |
7713 | gpointer invocation_hint, | |
7714 | gpointer marshal_data); | |
7715 | ||
7716 | ||
7717 | extern void g_cclosure_marshal_VOID__BOXED (GClosure *closure, | |
7718 | GValue *return_value, | |
7719 | guint n_param_values, | |
7720 | const GValue *param_values, | |
7721 | gpointer invocation_hint, | |
7722 | gpointer marshal_data); | |
7723 | ||
7724 | ||
7725 | extern void g_cclosure_marshal_VOID__POINTER (GClosure *closure, | |
7726 | GValue *return_value, | |
7727 | guint n_param_values, | |
7728 | const GValue *param_values, | |
7729 | gpointer invocation_hint, | |
7730 | gpointer marshal_data); | |
7731 | ||
7732 | ||
7733 | extern void g_cclosure_marshal_VOID__OBJECT (GClosure *closure, | |
7734 | GValue *return_value, | |
7735 | guint n_param_values, | |
7736 | const GValue *param_values, | |
7737 | gpointer invocation_hint, | |
7738 | gpointer marshal_data); | |
7739 | ||
7740 | ||
7741 | extern void g_cclosure_marshal_VOID__UINT_POINTER (GClosure *closure, | |
7742 | GValue *return_value, | |
7743 | guint n_param_values, | |
7744 | const GValue *param_values, | |
7745 | gpointer invocation_hint, | |
7746 | gpointer marshal_data); | |
7747 | ||
7748 | ||
7749 | extern void g_cclosure_marshal_BOOLEAN__FLAGS (GClosure *closure, | |
7750 | GValue *return_value, | |
7751 | guint n_param_values, | |
7752 | const GValue *param_values, | |
7753 | gpointer invocation_hint, | |
7754 | gpointer marshal_data); | |
7755 | ||
7756 | ||
7757 | ||
7758 | extern void g_cclosure_marshal_STRING__OBJECT_POINTER (GClosure *closure, | |
7759 | GValue *return_value, | |
7760 | guint n_param_values, | |
7761 | const GValue *param_values, | |
7762 | gpointer invocation_hint, | |
7763 | gpointer marshal_data); | |
7764 | ||
7765 | ||
7766 | # 30 "/usr/include/glib-2.0/gobject/gsignal.h" 2 | |
7767 | ||
7768 | ||
7769 | ||
7770 | ||
7771 | typedef struct _GSignalQuery GSignalQuery; | |
7772 | typedef struct _GSignalInvocationHint GSignalInvocationHint; | |
7773 | typedef GClosureMarshal GSignalCMarshaller; | |
7774 | typedef gboolean (*GSignalEmissionHook) (GSignalInvocationHint *ihint, | |
7775 | guint n_param_values, | |
7776 | const GValue *param_values, | |
7777 | gpointer data); | |
7778 | typedef gboolean (*GSignalAccumulator) (GSignalInvocationHint *ihint, | |
7779 | GValue *return_accu, | |
7780 | const GValue *handler_return, | |
7781 | gpointer data); | |
7782 | ||
7783 | ||
7784 | ||
7785 | typedef enum | |
7786 | { | |
7787 | G_SIGNAL_RUN_FIRST = 1 << 0, | |
7788 | G_SIGNAL_RUN_LAST = 1 << 1, | |
7789 | G_SIGNAL_RUN_CLEANUP = 1 << 2, | |
7790 | G_SIGNAL_NO_RECURSE = 1 << 3, | |
7791 | G_SIGNAL_DETAILED = 1 << 4, | |
7792 | G_SIGNAL_ACTION = 1 << 5, | |
7793 | G_SIGNAL_NO_HOOKS = 1 << 6 | |
7794 | } GSignalFlags; | |
7795 | ||
7796 | typedef enum | |
7797 | { | |
7798 | G_CONNECT_AFTER = 1 << 0, | |
7799 | G_CONNECT_SWAPPED = 1 << 1 | |
7800 | } GConnectFlags; | |
7801 | typedef enum | |
7802 | { | |
7803 | G_SIGNAL_MATCH_ID = 1 << 0, | |
7804 | G_SIGNAL_MATCH_DETAIL = 1 << 1, | |
7805 | G_SIGNAL_MATCH_CLOSURE = 1 << 2, | |
7806 | G_SIGNAL_MATCH_FUNC = 1 << 3, | |
7807 | G_SIGNAL_MATCH_DATA = 1 << 4, | |
7808 | G_SIGNAL_MATCH_UNBLOCKED = 1 << 5 | |
7809 | } GSignalMatchType; | |
7810 | ||
7811 | ||
7812 | ||
7813 | ||
7814 | ||
7815 | struct _GSignalInvocationHint | |
7816 | { | |
7817 | guint signal_id; | |
7818 | GQuark detail; | |
7819 | GSignalFlags run_type; | |
7820 | }; | |
7821 | struct _GSignalQuery | |
7822 | { | |
7823 | guint signal_id; | |
7824 | const gchar *signal_name; | |
7825 | GType itype; | |
7826 | GSignalFlags signal_flags; | |
7827 | GType return_type; | |
7828 | guint n_params; | |
7829 | const GType *param_types; | |
7830 | }; | |
7831 | ||
7832 | ||
7833 | ||
7834 | guint g_signal_newv (const gchar *signal_name, | |
7835 | GType itype, | |
7836 | GSignalFlags signal_flags, | |
7837 | GClosure *class_closure, | |
7838 | GSignalAccumulator accumulator, | |
7839 | gpointer accu_data, | |
7840 | GSignalCMarshaller c_marshaller, | |
7841 | GType return_type, | |
7842 | guint n_params, | |
7843 | GType *param_types); | |
7844 | guint g_signal_new_valist (const gchar *signal_name, | |
7845 | GType itype, | |
7846 | GSignalFlags signal_flags, | |
7847 | GClosure *class_closure, | |
7848 | GSignalAccumulator accumulator, | |
7849 | gpointer accu_data, | |
7850 | GSignalCMarshaller c_marshaller, | |
7851 | GType return_type, | |
7852 | guint n_params, | |
7853 | va_list args); | |
7854 | guint g_signal_new (const gchar *signal_name, | |
7855 | GType itype, | |
7856 | GSignalFlags signal_flags, | |
7857 | guint class_offset, | |
7858 | GSignalAccumulator accumulator, | |
7859 | gpointer accu_data, | |
7860 | GSignalCMarshaller c_marshaller, | |
7861 | GType return_type, | |
7862 | guint n_params, | |
7863 | ...); | |
7864 | void g_signal_emitv (const GValue *instance_and_params, | |
7865 | guint signal_id, | |
7866 | GQuark detail, | |
7867 | GValue *return_value); | |
7868 | void g_signal_emit_valist (gpointer instance, | |
7869 | guint signal_id, | |
7870 | GQuark detail, | |
7871 | va_list var_args); | |
7872 | void g_signal_emit (gpointer instance, | |
7873 | guint signal_id, | |
7874 | GQuark detail, | |
7875 | ...); | |
7876 | void g_signal_emit_by_name (gpointer instance, | |
7877 | const gchar *detailed_signal, | |
7878 | ...); | |
7879 | guint g_signal_lookup (const gchar *name, | |
7880 | GType itype); | |
7881 | const gchar* g_signal_name (guint signal_id); | |
7882 | void g_signal_query (guint signal_id, | |
7883 | GSignalQuery *query); | |
7884 | guint* g_signal_list_ids (GType itype, | |
7885 | guint *n_ids); | |
7886 | gboolean g_signal_parse_name (const gchar *detailed_signal, | |
7887 | GType itype, | |
7888 | guint *signal_id_p, | |
7889 | GQuark *detail_p, | |
7890 | gboolean force_detail_quark); | |
7891 | GSignalInvocationHint* g_signal_get_invocation_hint (gpointer instance); | |
7892 | ||
7893 | ||
7894 | ||
7895 | void g_signal_stop_emission (gpointer instance, | |
7896 | guint signal_id, | |
7897 | GQuark detail); | |
7898 | void g_signal_stop_emission_by_name (gpointer instance, | |
7899 | const gchar *detailed_signal); | |
7900 | gulong g_signal_add_emission_hook (guint signal_id, | |
7901 | GQuark detail, | |
7902 | GSignalEmissionHook hook_func, | |
7903 | gpointer hook_data, | |
7904 | GDestroyNotify data_destroy); | |
7905 | void g_signal_remove_emission_hook (guint signal_id, | |
7906 | gulong hook_id); | |
7907 | ||
7908 | ||
7909 | ||
7910 | gboolean g_signal_has_handler_pending (gpointer instance, | |
7911 | guint signal_id, | |
7912 | GQuark detail, | |
7913 | gboolean may_be_blocked); | |
7914 | gulong g_signal_connect_closure_by_id (gpointer instance, | |
7915 | guint signal_id, | |
7916 | GQuark detail, | |
7917 | GClosure *closure, | |
7918 | gboolean after); | |
7919 | gulong g_signal_connect_closure (gpointer instance, | |
7920 | const gchar *detailed_signal, | |
7921 | GClosure *closure, | |
7922 | gboolean after); | |
7923 | gulong g_signal_connect_data (gpointer instance, | |
7924 | const gchar *detailed_signal, | |
7925 | GCallback c_handler, | |
7926 | gpointer data, | |
7927 | GClosureNotify destroy_data, | |
7928 | GConnectFlags connect_flags); | |
7929 | void g_signal_handler_block (gpointer instance, | |
7930 | gulong handler_id); | |
7931 | void g_signal_handler_unblock (gpointer instance, | |
7932 | gulong handler_id); | |
7933 | void g_signal_handler_disconnect (gpointer instance, | |
7934 | gulong handler_id); | |
7935 | gboolean g_signal_handler_is_connected (gpointer instance, | |
7936 | gulong handler_id); | |
7937 | gulong g_signal_handler_find (gpointer instance, | |
7938 | GSignalMatchType mask, | |
7939 | guint signal_id, | |
7940 | GQuark detail, | |
7941 | GClosure *closure, | |
7942 | gpointer func, | |
7943 | gpointer data); | |
7944 | guint g_signal_handlers_block_matched (gpointer instance, | |
7945 | GSignalMatchType mask, | |
7946 | guint signal_id, | |
7947 | GQuark detail, | |
7948 | GClosure *closure, | |
7949 | gpointer func, | |
7950 | gpointer data); | |
7951 | guint g_signal_handlers_unblock_matched (gpointer instance, | |
7952 | GSignalMatchType mask, | |
7953 | guint signal_id, | |
7954 | GQuark detail, | |
7955 | GClosure *closure, | |
7956 | gpointer func, | |
7957 | gpointer data); | |
7958 | guint g_signal_handlers_disconnect_matched (gpointer instance, | |
7959 | GSignalMatchType mask, | |
7960 | guint signal_id, | |
7961 | GQuark detail, | |
7962 | GClosure *closure, | |
7963 | gpointer func, | |
7964 | gpointer data); | |
7965 | ||
7966 | ||
7967 | ||
7968 | void g_signal_override_class_closure (guint signal_id, | |
7969 | GType instance_type, | |
7970 | GClosure *class_closure); | |
7971 | void g_signal_chain_from_overridden (const GValue *instance_and_params, | |
7972 | GValue *return_value); | |
7973 | # 259 "/usr/include/glib-2.0/gobject/gsignal.h" | |
7974 | gboolean g_signal_accumulator_true_handled (GSignalInvocationHint *ihint, | |
7975 | GValue *return_accu, | |
7976 | const GValue *handler_return, | |
7977 | gpointer dummy); | |
7978 | ||
7979 | ||
7980 | void g_signal_handlers_destroy (gpointer instance); | |
7981 | void _g_signals_destroy (GType itype); | |
7982 | ||
7983 | ||
7984 | # 31 "/usr/include/glib-2.0/gobject/gobject.h" 2 | |
7985 | ||
7986 | ||
7987 | # 58 "/usr/include/glib-2.0/gobject/gobject.h" | |
7988 | typedef struct _GObject GObject; | |
7989 | typedef struct _GObjectClass GObjectClass; | |
7990 | typedef struct _GObject GInitiallyUnowned; | |
7991 | typedef struct _GObjectClass GInitiallyUnownedClass; | |
7992 | typedef struct _GObjectConstructParam GObjectConstructParam; | |
7993 | typedef void (*GObjectGetPropertyFunc) (GObject *object, | |
7994 | guint property_id, | |
7995 | GValue *value, | |
7996 | GParamSpec *pspec); | |
7997 | typedef void (*GObjectSetPropertyFunc) (GObject *object, | |
7998 | guint property_id, | |
7999 | const GValue *value, | |
8000 | GParamSpec *pspec); | |
8001 | typedef void (*GObjectFinalizeFunc) (GObject *object); | |
8002 | typedef void (*GWeakNotify) (gpointer data, | |
8003 | GObject *where_the_object_was); | |
8004 | struct _GObject | |
8005 | { | |
8006 | GTypeInstance g_type_instance; | |
8007 | ||
8008 | ||
8009 | volatile guint ref_count; | |
8010 | GData *qdata; | |
8011 | }; | |
8012 | struct _GObjectClass | |
8013 | { | |
8014 | GTypeClass g_type_class; | |
8015 | ||
8016 | ||
8017 | GSList *construct_properties; | |
8018 | ||
8019 | ||
8020 | ||
8021 | GObject* (*constructor) (GType type, | |
8022 | guint n_construct_properties, | |
8023 | GObjectConstructParam *construct_properties); | |
8024 | ||
8025 | void (*set_property) (GObject *object, | |
8026 | guint property_id, | |
8027 | const GValue *value, | |
8028 | GParamSpec *pspec); | |
8029 | void (*get_property) (GObject *object, | |
8030 | guint property_id, | |
8031 | GValue *value, | |
8032 | GParamSpec *pspec); | |
8033 | void (*dispose) (GObject *object); | |
8034 | void (*finalize) (GObject *object); | |
8035 | ||
8036 | void (*dispatch_properties_changed) (GObject *object, | |
8037 | guint n_pspecs, | |
8038 | GParamSpec **pspecs); | |
8039 | ||
8040 | void (*notify) (GObject *object, | |
8041 | GParamSpec *pspec); | |
8042 | ||
8043 | ||
8044 | void (*constructed) (GObject *object); | |
8045 | ||
8046 | ||
8047 | ||
8048 | gpointer pdummy[7]; | |
8049 | }; | |
8050 | struct _GObjectConstructParam | |
8051 | { | |
8052 | GParamSpec *pspec; | |
8053 | GValue *value; | |
8054 | }; | |
8055 | ||
8056 | ||
8057 | ||
8058 | GType g_initially_unowned_get_type (void); | |
8059 | void g_object_class_install_property (GObjectClass *oclass, | |
8060 | guint property_id, | |
8061 | GParamSpec *pspec); | |
8062 | GParamSpec* g_object_class_find_property (GObjectClass *oclass, | |
8063 | const gchar *property_name); | |
8064 | GParamSpec**g_object_class_list_properties (GObjectClass *oclass, | |
8065 | guint *n_properties); | |
8066 | void g_object_class_override_property (GObjectClass *oclass, | |
8067 | guint property_id, | |
8068 | const gchar *name); | |
8069 | ||
8070 | void g_object_interface_install_property (gpointer g_iface, | |
8071 | GParamSpec *pspec); | |
8072 | GParamSpec* g_object_interface_find_property (gpointer g_iface, | |
8073 | const gchar *property_name); | |
8074 | GParamSpec**g_object_interface_list_properties (gpointer g_iface, | |
8075 | guint *n_properties_p); | |
8076 | ||
8077 | gpointer g_object_new (GType object_type, | |
8078 | const gchar *first_property_name, | |
8079 | ...); | |
8080 | gpointer g_object_newv (GType object_type, | |
8081 | guint n_parameters, | |
8082 | GParameter *parameters); | |
8083 | GObject* g_object_new_valist (GType object_type, | |
8084 | const gchar *first_property_name, | |
8085 | va_list var_args); | |
8086 | void g_object_set (gpointer object, | |
8087 | const gchar *first_property_name, | |
8088 | ...) __attribute__((__sentinel__)); | |
8089 | void g_object_get (gpointer object, | |
8090 | const gchar *first_property_name, | |
8091 | ...) __attribute__((__sentinel__)); | |
8092 | gpointer g_object_connect (gpointer object, | |
8093 | const gchar *signal_spec, | |
8094 | ...) __attribute__((__sentinel__)); | |
8095 | void g_object_disconnect (gpointer object, | |
8096 | const gchar *signal_spec, | |
8097 | ...) __attribute__((__sentinel__)); | |
8098 | void g_object_set_valist (GObject *object, | |
8099 | const gchar *first_property_name, | |
8100 | va_list var_args); | |
8101 | void g_object_get_valist (GObject *object, | |
8102 | const gchar *first_property_name, | |
8103 | va_list var_args); | |
8104 | void g_object_set_property (GObject *object, | |
8105 | const gchar *property_name, | |
8106 | const GValue *value); | |
8107 | void g_object_get_property (GObject *object, | |
8108 | const gchar *property_name, | |
8109 | GValue *value); | |
8110 | void g_object_freeze_notify (GObject *object); | |
8111 | void g_object_notify (GObject *object, | |
8112 | const gchar *property_name); | |
8113 | void g_object_thaw_notify (GObject *object); | |
8114 | gboolean g_object_is_floating (gpointer object); | |
8115 | gpointer g_object_ref_sink (gpointer object); | |
8116 | gpointer g_object_ref (gpointer object); | |
8117 | void g_object_unref (gpointer object); | |
8118 | void g_object_weak_ref (GObject *object, | |
8119 | GWeakNotify notify, | |
8120 | gpointer data); | |
8121 | void g_object_weak_unref (GObject *object, | |
8122 | GWeakNotify notify, | |
8123 | gpointer data); | |
8124 | void g_object_add_weak_pointer (GObject *object, | |
8125 | gpointer *weak_pointer_location); | |
8126 | void g_object_remove_weak_pointer (GObject *object, | |
8127 | gpointer *weak_pointer_location); | |
8128 | ||
8129 | typedef void (*GToggleNotify) (gpointer data, | |
8130 | GObject *object, | |
8131 | gboolean is_last_ref); | |
8132 | ||
8133 | void g_object_add_toggle_ref (GObject *object, | |
8134 | GToggleNotify notify, | |
8135 | gpointer data); | |
8136 | void g_object_remove_toggle_ref (GObject *object, | |
8137 | GToggleNotify notify, | |
8138 | gpointer data); | |
8139 | ||
8140 | gpointer g_object_get_qdata (GObject *object, | |
8141 | GQuark quark); | |
8142 | void g_object_set_qdata (GObject *object, | |
8143 | GQuark quark, | |
8144 | gpointer data); | |
8145 | void g_object_set_qdata_full (GObject *object, | |
8146 | GQuark quark, | |
8147 | gpointer data, | |
8148 | GDestroyNotify destroy); | |
8149 | gpointer g_object_steal_qdata (GObject *object, | |
8150 | GQuark quark); | |
8151 | gpointer g_object_get_data (GObject *object, | |
8152 | const gchar *key); | |
8153 | void g_object_set_data (GObject *object, | |
8154 | const gchar *key, | |
8155 | gpointer data); | |
8156 | void g_object_set_data_full (GObject *object, | |
8157 | const gchar *key, | |
8158 | gpointer data, | |
8159 | GDestroyNotify destroy); | |
8160 | gpointer g_object_steal_data (GObject *object, | |
8161 | const gchar *key); | |
8162 | void g_object_watch_closure (GObject *object, | |
8163 | GClosure *closure); | |
8164 | GClosure* g_cclosure_new_object (GCallback callback_func, | |
8165 | GObject *object); | |
8166 | GClosure* g_cclosure_new_object_swap (GCallback callback_func, | |
8167 | GObject *object); | |
8168 | GClosure* g_closure_new_object (guint sizeof_closure, | |
8169 | GObject *object); | |
8170 | void g_value_set_object (GValue *value, | |
8171 | gpointer v_object); | |
8172 | gpointer g_value_get_object (const GValue *value); | |
8173 | gpointer g_value_dup_object (const GValue *value); | |
8174 | gulong g_signal_connect_object (gpointer instance, | |
8175 | const gchar *detailed_signal, | |
8176 | GCallback c_handler, | |
8177 | gpointer gobject, | |
8178 | GConnectFlags connect_flags); | |
8179 | ||
8180 | ||
8181 | void g_object_force_floating (GObject *object); | |
8182 | void g_object_run_dispose (GObject *object); | |
8183 | ||
8184 | ||
8185 | void g_value_take_object (GValue *value, | |
8186 | gpointer v_object); | |
8187 | ||
8188 | void g_value_set_object_take_ownership (GValue *value, | |
8189 | gpointer v_object); | |
8190 | ||
8191 | ||
8192 | ||
8193 | gsize g_object_compat_control (gsize what, | |
8194 | gpointer data); | |
8195 | # 284 "/usr/include/glib-2.0/gobject/gobject.h" | |
8196 | ||
8197 | # 28 "/usr/include/glib-2.0/glib-object.h" 2 | |
8198 | # 1 "/usr/include/glib-2.0/gobject/gparam.h" 1 | |
8199 | # 29 "/usr/include/glib-2.0/glib-object.h" 2 | |
8200 | # 1 "/usr/include/glib-2.0/gobject/gparamspecs.h" 1 | |
8201 | # 28 "/usr/include/glib-2.0/gobject/gparamspecs.h" | |
8202 | # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1 | |
8203 | # 29 "/usr/include/glib-2.0/gobject/gparamspecs.h" 2 | |
8204 | # 1 "/usr/include/glib-2.0/gobject/genums.h" 1 | |
8205 | # 30 "/usr/include/glib-2.0/gobject/gparamspecs.h" 2 | |
8206 | # 1 "/usr/include/glib-2.0/gobject/gboxed.h" 1 | |
8207 | # 31 "/usr/include/glib-2.0/gobject/gparamspecs.h" 2 | |
8208 | # 1 "/usr/include/glib-2.0/gobject/gobject.h" 1 | |
8209 | # 32 "/usr/include/glib-2.0/gobject/gparamspecs.h" 2 | |
8210 | ||
8211 | ||
8212 | # 105 "/usr/include/glib-2.0/gobject/gparamspecs.h" | |
8213 | typedef struct _GParamSpecChar GParamSpecChar; | |
8214 | typedef struct _GParamSpecUChar GParamSpecUChar; | |
8215 | typedef struct _GParamSpecBoolean GParamSpecBoolean; | |
8216 | typedef struct _GParamSpecInt GParamSpecInt; | |
8217 | typedef struct _GParamSpecUInt GParamSpecUInt; | |
8218 | typedef struct _GParamSpecLong GParamSpecLong; | |
8219 | typedef struct _GParamSpecULong GParamSpecULong; | |
8220 | typedef struct _GParamSpecInt64 GParamSpecInt64; | |
8221 | typedef struct _GParamSpecUInt64 GParamSpecUInt64; | |
8222 | typedef struct _GParamSpecUnichar GParamSpecUnichar; | |
8223 | typedef struct _GParamSpecEnum GParamSpecEnum; | |
8224 | typedef struct _GParamSpecFlags GParamSpecFlags; | |
8225 | typedef struct _GParamSpecFloat GParamSpecFloat; | |
8226 | typedef struct _GParamSpecDouble GParamSpecDouble; | |
8227 | typedef struct _GParamSpecString GParamSpecString; | |
8228 | typedef struct _GParamSpecParam GParamSpecParam; | |
8229 | typedef struct _GParamSpecBoxed GParamSpecBoxed; | |
8230 | typedef struct _GParamSpecPointer GParamSpecPointer; | |
8231 | typedef struct _GParamSpecValueArray GParamSpecValueArray; | |
8232 | typedef struct _GParamSpecObject GParamSpecObject; | |
8233 | typedef struct _GParamSpecOverride GParamSpecOverride; | |
8234 | typedef struct _GParamSpecGType GParamSpecGType; | |
8235 | ||
8236 | struct _GParamSpecChar | |
8237 | { | |
8238 | GParamSpec parent_instance; | |
8239 | ||
8240 | gint8 minimum; | |
8241 | gint8 maximum; | |
8242 | gint8 default_value; | |
8243 | }; | |
8244 | struct _GParamSpecUChar | |
8245 | { | |
8246 | GParamSpec parent_instance; | |
8247 | ||
8248 | guint8 minimum; | |
8249 | guint8 maximum; | |
8250 | guint8 default_value; | |
8251 | }; | |
8252 | struct _GParamSpecBoolean | |
8253 | { | |
8254 | GParamSpec parent_instance; | |
8255 | ||
8256 | gboolean default_value; | |
8257 | }; | |
8258 | struct _GParamSpecInt | |
8259 | { | |
8260 | GParamSpec parent_instance; | |
8261 | ||
8262 | gint minimum; | |
8263 | gint maximum; | |
8264 | gint default_value; | |
8265 | }; | |
8266 | struct _GParamSpecUInt | |
8267 | { | |
8268 | GParamSpec parent_instance; | |
8269 | ||
8270 | guint minimum; | |
8271 | guint maximum; | |
8272 | guint default_value; | |
8273 | }; | |
8274 | struct _GParamSpecLong | |
8275 | { | |
8276 | GParamSpec parent_instance; | |
8277 | ||
8278 | glong minimum; | |
8279 | glong maximum; | |
8280 | glong default_value; | |
8281 | }; | |
8282 | struct _GParamSpecULong | |
8283 | { | |
8284 | GParamSpec parent_instance; | |
8285 | ||
8286 | gulong minimum; | |
8287 | gulong maximum; | |
8288 | gulong default_value; | |
8289 | }; | |
8290 | struct _GParamSpecInt64 | |
8291 | { | |
8292 | GParamSpec parent_instance; | |
8293 | ||
8294 | gint64 minimum; | |
8295 | gint64 maximum; | |
8296 | gint64 default_value; | |
8297 | }; | |
8298 | struct _GParamSpecUInt64 | |
8299 | { | |
8300 | GParamSpec parent_instance; | |
8301 | ||
8302 | guint64 minimum; | |
8303 | guint64 maximum; | |
8304 | guint64 default_value; | |
8305 | }; | |
8306 | struct _GParamSpecUnichar | |
8307 | { | |
8308 | GParamSpec parent_instance; | |
8309 | ||
8310 | gunichar default_value; | |
8311 | }; | |
8312 | struct _GParamSpecEnum | |
8313 | { | |
8314 | GParamSpec parent_instance; | |
8315 | ||
8316 | GEnumClass *enum_class; | |
8317 | gint default_value; | |
8318 | }; | |
8319 | struct _GParamSpecFlags | |
8320 | { | |
8321 | GParamSpec parent_instance; | |
8322 | ||
8323 | GFlagsClass *flags_class; | |
8324 | guint default_value; | |
8325 | }; | |
8326 | struct _GParamSpecFloat | |
8327 | { | |
8328 | GParamSpec parent_instance; | |
8329 | ||
8330 | gfloat minimum; | |
8331 | gfloat maximum; | |
8332 | gfloat default_value; | |
8333 | gfloat epsilon; | |
8334 | }; | |
8335 | struct _GParamSpecDouble | |
8336 | { | |
8337 | GParamSpec parent_instance; | |
8338 | ||
8339 | gdouble minimum; | |
8340 | gdouble maximum; | |
8341 | gdouble default_value; | |
8342 | gdouble epsilon; | |
8343 | }; | |
8344 | struct _GParamSpecString | |
8345 | { | |
8346 | GParamSpec parent_instance; | |
8347 | ||
8348 | gchar *default_value; | |
8349 | gchar *cset_first; | |
8350 | gchar *cset_nth; | |
8351 | gchar substitutor; | |
8352 | guint null_fold_if_empty : 1; | |
8353 | guint ensure_non_null : 1; | |
8354 | }; | |
8355 | struct _GParamSpecParam | |
8356 | { | |
8357 | GParamSpec parent_instance; | |
8358 | }; | |
8359 | struct _GParamSpecBoxed | |
8360 | { | |
8361 | GParamSpec parent_instance; | |
8362 | }; | |
8363 | struct _GParamSpecPointer | |
8364 | { | |
8365 | GParamSpec parent_instance; | |
8366 | }; | |
8367 | struct _GParamSpecValueArray | |
8368 | { | |
8369 | GParamSpec parent_instance; | |
8370 | GParamSpec *element_spec; | |
8371 | guint fixed_n_elements; | |
8372 | }; | |
8373 | struct _GParamSpecObject | |
8374 | { | |
8375 | GParamSpec parent_instance; | |
8376 | }; | |
8377 | struct _GParamSpecOverride | |
8378 | { | |
8379 | ||
8380 | GParamSpec parent_instance; | |
8381 | GParamSpec *overridden; | |
8382 | }; | |
8383 | struct _GParamSpecGType | |
8384 | { | |
8385 | GParamSpec parent_instance; | |
8386 | GType is_a_type; | |
8387 | }; | |
8388 | ||
8389 | ||
8390 | GParamSpec* g_param_spec_char (const gchar *name, | |
8391 | const gchar *nick, | |
8392 | const gchar *blurb, | |
8393 | gint8 minimum, | |
8394 | gint8 maximum, | |
8395 | gint8 default_value, | |
8396 | GParamFlags flags); | |
8397 | GParamSpec* g_param_spec_uchar (const gchar *name, | |
8398 | const gchar *nick, | |
8399 | const gchar *blurb, | |
8400 | guint8 minimum, | |
8401 | guint8 maximum, | |
8402 | guint8 default_value, | |
8403 | GParamFlags flags); | |
8404 | GParamSpec* g_param_spec_boolean (const gchar *name, | |
8405 | const gchar *nick, | |
8406 | const gchar *blurb, | |
8407 | gboolean default_value, | |
8408 | GParamFlags flags); | |
8409 | GParamSpec* g_param_spec_int (const gchar *name, | |
8410 | const gchar *nick, | |
8411 | const gchar *blurb, | |
8412 | gint minimum, | |
8413 | gint maximum, | |
8414 | gint default_value, | |
8415 | GParamFlags flags); | |
8416 | GParamSpec* g_param_spec_uint (const gchar *name, | |
8417 | const gchar *nick, | |
8418 | const gchar *blurb, | |
8419 | guint minimum, | |
8420 | guint maximum, | |
8421 | guint default_value, | |
8422 | GParamFlags flags); | |
8423 | GParamSpec* g_param_spec_long (const gchar *name, | |
8424 | const gchar *nick, | |
8425 | const gchar *blurb, | |
8426 | glong minimum, | |
8427 | glong maximum, | |
8428 | glong default_value, | |
8429 | GParamFlags flags); | |
8430 | GParamSpec* g_param_spec_ulong (const gchar *name, | |
8431 | const gchar *nick, | |
8432 | const gchar *blurb, | |
8433 | gulong minimum, | |
8434 | gulong maximum, | |
8435 | gulong default_value, | |
8436 | GParamFlags flags); | |
8437 | GParamSpec* g_param_spec_int64 (const gchar *name, | |
8438 | const gchar *nick, | |
8439 | const gchar *blurb, | |
8440 | gint64 minimum, | |
8441 | gint64 maximum, | |
8442 | gint64 default_value, | |
8443 | GParamFlags flags); | |
8444 | GParamSpec* g_param_spec_uint64 (const gchar *name, | |
8445 | const gchar *nick, | |
8446 | const gchar *blurb, | |
8447 | guint64 minimum, | |
8448 | guint64 maximum, | |
8449 | guint64 default_value, | |
8450 | GParamFlags flags); | |
8451 | GParamSpec* g_param_spec_unichar (const gchar *name, | |
8452 | const gchar *nick, | |
8453 | const gchar *blurb, | |
8454 | gunichar default_value, | |
8455 | GParamFlags flags); | |
8456 | GParamSpec* g_param_spec_enum (const gchar *name, | |
8457 | const gchar *nick, | |
8458 | const gchar *blurb, | |
8459 | GType enum_type, | |
8460 | gint default_value, | |
8461 | GParamFlags flags); | |
8462 | GParamSpec* g_param_spec_flags (const gchar *name, | |
8463 | const gchar *nick, | |
8464 | const gchar *blurb, | |
8465 | GType flags_type, | |
8466 | guint default_value, | |
8467 | GParamFlags flags); | |
8468 | GParamSpec* g_param_spec_float (const gchar *name, | |
8469 | const gchar *nick, | |
8470 | const gchar *blurb, | |
8471 | gfloat minimum, | |
8472 | gfloat maximum, | |
8473 | gfloat default_value, | |
8474 | GParamFlags flags); | |
8475 | GParamSpec* g_param_spec_double (const gchar *name, | |
8476 | const gchar *nick, | |
8477 | const gchar *blurb, | |
8478 | gdouble minimum, | |
8479 | gdouble maximum, | |
8480 | gdouble default_value, | |
8481 | GParamFlags flags); | |
8482 | GParamSpec* g_param_spec_string (const gchar *name, | |
8483 | const gchar *nick, | |
8484 | const gchar *blurb, | |
8485 | const gchar *default_value, | |
8486 | GParamFlags flags); | |
8487 | GParamSpec* g_param_spec_param (const gchar *name, | |
8488 | const gchar *nick, | |
8489 | const gchar *blurb, | |
8490 | GType param_type, | |
8491 | GParamFlags flags); | |
8492 | GParamSpec* g_param_spec_boxed (const gchar *name, | |
8493 | const gchar *nick, | |
8494 | const gchar *blurb, | |
8495 | GType boxed_type, | |
8496 | GParamFlags flags); | |
8497 | GParamSpec* g_param_spec_pointer (const gchar *name, | |
8498 | const gchar *nick, | |
8499 | const gchar *blurb, | |
8500 | GParamFlags flags); | |
8501 | GParamSpec* g_param_spec_value_array (const gchar *name, | |
8502 | const gchar *nick, | |
8503 | const gchar *blurb, | |
8504 | GParamSpec *element_spec, | |
8505 | GParamFlags flags); | |
8506 | GParamSpec* g_param_spec_object (const gchar *name, | |
8507 | const gchar *nick, | |
8508 | const gchar *blurb, | |
8509 | GType object_type, | |
8510 | GParamFlags flags); | |
8511 | GParamSpec* g_param_spec_override (const gchar *name, | |
8512 | GParamSpec *overridden); | |
8513 | GParamSpec* g_param_spec_gtype (const gchar *name, | |
8514 | const gchar *nick, | |
8515 | const gchar *blurb, | |
8516 | GType is_a_type, | |
8517 | GParamFlags flags); | |
8518 | # 435 "/usr/include/glib-2.0/gobject/gparamspecs.h" | |
8519 | extern GType *g_param_spec_types; | |
8520 | ||
8521 | ||
8522 | # 30 "/usr/include/glib-2.0/glib-object.h" 2 | |
8523 | # 1 "/usr/include/glib-2.0/gobject/gsignal.h" 1 | |
8524 | # 31 "/usr/include/glib-2.0/glib-object.h" 2 | |
8525 | # 1 "/usr/include/glib-2.0/gobject/gsourceclosure.h" 1 | |
8526 | # 26 "/usr/include/glib-2.0/gobject/gsourceclosure.h" | |
8527 | # 1 "/usr/include/glib-2.0/gobject/gclosure.h" 1 | |
8528 | # 27 "/usr/include/glib-2.0/gobject/gsourceclosure.h" 2 | |
8529 | ||
8530 | ||
8531 | ||
8532 | void g_source_set_closure (GSource *source, | |
8533 | GClosure *closure); | |
8534 | ||
8535 | GType g_io_channel_get_type (void); | |
8536 | GType g_io_condition_get_type (void); | |
8537 | ||
8538 | ||
8539 | ||
8540 | ||
8541 | ||
8542 | # 32 "/usr/include/glib-2.0/glib-object.h" 2 | |
8543 | # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1 | |
8544 | # 33 "/usr/include/glib-2.0/glib-object.h" 2 | |
8545 | # 1 "/usr/include/glib-2.0/gobject/gtypemodule.h" 1 | |
8546 | # 26 "/usr/include/glib-2.0/gobject/gtypemodule.h" | |
8547 | # 1 "/usr/include/glib-2.0/gobject/gobject.h" 1 | |
8548 | # 27 "/usr/include/glib-2.0/gobject/gtypemodule.h" 2 | |
8549 | # 1 "/usr/include/glib-2.0/gobject/genums.h" 1 | |
8550 | # 28 "/usr/include/glib-2.0/gobject/gtypemodule.h" 2 | |
8551 | ||
8552 | ||
8553 | ||
8554 | typedef struct _GTypeModule GTypeModule; | |
8555 | typedef struct _GTypeModuleClass GTypeModuleClass; | |
8556 | # 41 "/usr/include/glib-2.0/gobject/gtypemodule.h" | |
8557 | struct _GTypeModule | |
8558 | { | |
8559 | GObject parent_instance; | |
8560 | ||
8561 | guint use_count; | |
8562 | GSList *type_infos; | |
8563 | GSList *interface_infos; | |
8564 | ||
8565 | ||
8566 | gchar *name; | |
8567 | }; | |
8568 | ||
8569 | struct _GTypeModuleClass | |
8570 | { | |
8571 | GObjectClass parent_class; | |
8572 | ||
8573 | ||
8574 | gboolean (* load) (GTypeModule *module); | |
8575 | void (* unload) (GTypeModule *module); | |
8576 | ||
8577 | ||
8578 | ||
8579 | void (*reserved1) (void); | |
8580 | void (*reserved2) (void); | |
8581 | void (*reserved3) (void); | |
8582 | void (*reserved4) (void); | |
8583 | }; | |
8584 | # 112 "/usr/include/glib-2.0/gobject/gtypemodule.h" | |
8585 | GType g_type_module_get_type (void) __attribute__((__const__)); | |
8586 | gboolean g_type_module_use (GTypeModule *module); | |
8587 | void g_type_module_unuse (GTypeModule *module); | |
8588 | void g_type_module_set_name (GTypeModule *module, | |
8589 | const gchar *name); | |
8590 | GType g_type_module_register_type (GTypeModule *module, | |
8591 | GType parent_type, | |
8592 | const gchar *type_name, | |
8593 | const GTypeInfo *type_info, | |
8594 | GTypeFlags flags); | |
8595 | void g_type_module_add_interface (GTypeModule *module, | |
8596 | GType instance_type, | |
8597 | GType interface_type, | |
8598 | const GInterfaceInfo *interface_info); | |
8599 | GType g_type_module_register_enum (GTypeModule *module, | |
8600 | const gchar *name, | |
8601 | const GEnumValue *const_static_values); | |
8602 | GType g_type_module_register_flags (GTypeModule *module, | |
8603 | const gchar *name, | |
8604 | const GFlagsValue *const_static_values); | |
8605 | ||
8606 | ||
8607 | # 34 "/usr/include/glib-2.0/glib-object.h" 2 | |
8608 | # 1 "/usr/include/glib-2.0/gobject/gtypeplugin.h" 1 | |
8609 | # 26 "/usr/include/glib-2.0/gobject/gtypeplugin.h" | |
8610 | # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1 | |
8611 | # 27 "/usr/include/glib-2.0/gobject/gtypeplugin.h" 2 | |
8612 | ||
8613 | ||
8614 | # 40 "/usr/include/glib-2.0/gobject/gtypeplugin.h" | |
8615 | typedef struct _GTypePluginClass GTypePluginClass; | |
8616 | typedef void (*GTypePluginUse) (GTypePlugin *plugin); | |
8617 | typedef void (*GTypePluginUnuse) (GTypePlugin *plugin); | |
8618 | typedef void (*GTypePluginCompleteTypeInfo) (GTypePlugin *plugin, | |
8619 | GType g_type, | |
8620 | GTypeInfo *info, | |
8621 | GTypeValueTable *value_table); | |
8622 | typedef void (*GTypePluginCompleteInterfaceInfo) (GTypePlugin *plugin, | |
8623 | GType instance_type, | |
8624 | GType interface_type, | |
8625 | GInterfaceInfo *info); | |
8626 | struct _GTypePluginClass | |
8627 | { | |
8628 | ||
8629 | GTypeInterface base_iface; | |
8630 | ||
8631 | ||
8632 | GTypePluginUse use_plugin; | |
8633 | GTypePluginUnuse unuse_plugin; | |
8634 | GTypePluginCompleteTypeInfo complete_type_info; | |
8635 | GTypePluginCompleteInterfaceInfo complete_interface_info; | |
8636 | }; | |
8637 | ||
8638 | ||
8639 | ||
8640 | GType g_type_plugin_get_type (void) __attribute__((__const__)); | |
8641 | void g_type_plugin_use (GTypePlugin *plugin); | |
8642 | void g_type_plugin_unuse (GTypePlugin *plugin); | |
8643 | void g_type_plugin_complete_type_info (GTypePlugin *plugin, | |
8644 | GType g_type, | |
8645 | GTypeInfo *info, | |
8646 | GTypeValueTable *value_table); | |
8647 | void g_type_plugin_complete_interface_info (GTypePlugin *plugin, | |
8648 | GType instance_type, | |
8649 | GType interface_type, | |
8650 | GInterfaceInfo *info); | |
8651 | ||
8652 | ||
8653 | # 35 "/usr/include/glib-2.0/glib-object.h" 2 | |
8654 | # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1 | |
8655 | # 36 "/usr/include/glib-2.0/glib-object.h" 2 | |
8656 | # 1 "/usr/include/glib-2.0/gobject/gvaluearray.h" 1 | |
8657 | # 28 "/usr/include/glib-2.0/gobject/gvaluearray.h" | |
8658 | # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1 | |
8659 | # 29 "/usr/include/glib-2.0/gobject/gvaluearray.h" 2 | |
8660 | ||
8661 | ||
8662 | ||
8663 | ||
8664 | ||
8665 | ||
8666 | typedef struct _GValueArray GValueArray; | |
8667 | struct _GValueArray | |
8668 | { | |
8669 | guint n_values; | |
8670 | GValue *values; | |
8671 | ||
8672 | ||
8673 | guint n_prealloced; | |
8674 | }; | |
8675 | ||
8676 | ||
8677 | ||
8678 | GValue* g_value_array_get_nth (GValueArray *value_array, | |
8679 | guint index_); | |
8680 | GValueArray* g_value_array_new (guint n_prealloced); | |
8681 | void g_value_array_free (GValueArray *value_array); | |
8682 | GValueArray* g_value_array_copy (const GValueArray *value_array); | |
8683 | GValueArray* g_value_array_prepend (GValueArray *value_array, | |
8684 | const GValue *value); | |
8685 | GValueArray* g_value_array_append (GValueArray *value_array, | |
8686 | const GValue *value); | |
8687 | GValueArray* g_value_array_insert (GValueArray *value_array, | |
8688 | guint index_, | |
8689 | const GValue *value); | |
8690 | GValueArray* g_value_array_remove (GValueArray *value_array, | |
8691 | guint index_); | |
8692 | GValueArray* g_value_array_sort (GValueArray *value_array, | |
8693 | GCompareFunc compare_func); | |
8694 | GValueArray* g_value_array_sort_with_data (GValueArray *value_array, | |
8695 | GCompareDataFunc compare_func, | |
8696 | gpointer user_data); | |
8697 | ||
8698 | ||
8699 | ||
8700 | # 37 "/usr/include/glib-2.0/glib-object.h" 2 | |
8701 | # 1 "/usr/include/glib-2.0/gobject/gvaluetypes.h" 1 | |
8702 | # 28 "/usr/include/glib-2.0/gobject/gvaluetypes.h" | |
8703 | # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1 | |
8704 | # 29 "/usr/include/glib-2.0/gobject/gvaluetypes.h" 2 | |
8705 | ||
8706 | ||
8707 | # 51 "/usr/include/glib-2.0/gobject/gvaluetypes.h" | |
8708 | void g_value_set_char (GValue *value, | |
8709 | gchar v_char); | |
8710 | gchar g_value_get_char (const GValue *value); | |
8711 | void g_value_set_uchar (GValue *value, | |
8712 | guchar v_uchar); | |
8713 | guchar g_value_get_uchar (const GValue *value); | |
8714 | void g_value_set_boolean (GValue *value, | |
8715 | gboolean v_boolean); | |
8716 | gboolean g_value_get_boolean (const GValue *value); | |
8717 | void g_value_set_int (GValue *value, | |
8718 | gint v_int); | |
8719 | gint g_value_get_int (const GValue *value); | |
8720 | void g_value_set_uint (GValue *value, | |
8721 | guint v_uint); | |
8722 | guint g_value_get_uint (const GValue *value); | |
8723 | void g_value_set_long (GValue *value, | |
8724 | glong v_long); | |
8725 | glong g_value_get_long (const GValue *value); | |
8726 | void g_value_set_ulong (GValue *value, | |
8727 | gulong v_ulong); | |
8728 | gulong g_value_get_ulong (const GValue *value); | |
8729 | void g_value_set_int64 (GValue *value, | |
8730 | gint64 v_int64); | |
8731 | gint64 g_value_get_int64 (const GValue *value); | |
8732 | void g_value_set_uint64 (GValue *value, | |
8733 | guint64 v_uint64); | |
8734 | guint64 g_value_get_uint64 (const GValue *value); | |
8735 | void g_value_set_float (GValue *value, | |
8736 | gfloat v_float); | |
8737 | gfloat g_value_get_float (const GValue *value); | |
8738 | void g_value_set_double (GValue *value, | |
8739 | gdouble v_double); | |
8740 | gdouble g_value_get_double (const GValue *value); | |
8741 | void g_value_set_string (GValue *value, | |
8742 | const gchar *v_string); | |
8743 | void g_value_set_static_string (GValue *value, | |
8744 | const gchar *v_string); | |
8745 | const gchar* g_value_get_string (const GValue *value); | |
8746 | gchar* g_value_dup_string (const GValue *value); | |
8747 | void g_value_set_pointer (GValue *value, | |
8748 | gpointer v_pointer); | |
8749 | gpointer g_value_get_pointer (const GValue *value); | |
8750 | GType g_gtype_get_type (void); | |
8751 | void g_value_set_gtype (GValue *value, | |
8752 | GType v_gtype); | |
8753 | GType g_value_get_gtype (const GValue *value); | |
8754 | ||
8755 | ||
8756 | ||
8757 | GType g_pointer_type_register_static (const gchar *name); | |
8758 | ||
8759 | ||
8760 | gchar* g_strdup_value_contents (const GValue *value); | |
8761 | ||
8762 | ||
8763 | void g_value_take_string (GValue *value, | |
8764 | gchar *v_string); | |
8765 | ||
8766 | void g_value_set_string_take_ownership (GValue *value, | |
8767 | gchar *v_string); | |
8768 | ||
8769 | ||
8770 | ||
8771 | ||
8772 | typedef gchar* gchararray; | |
8773 | ||
8774 | ||
8775 | ||
8776 | # 38 "/usr/include/glib-2.0/glib-object.h" 2 | |
8777 | # 27 "/usr/include/pango-1.0/pango/pango-types.h" 2 | |
8778 | ||
8779 | ||
8780 | ||
8781 | typedef struct _PangoLogAttr PangoLogAttr; | |
8782 | ||
8783 | typedef struct _PangoEngineLang PangoEngineLang; | |
8784 | typedef struct _PangoEngineShape PangoEngineShape; | |
8785 | ||
8786 | typedef struct _PangoFont PangoFont; | |
8787 | typedef struct _PangoFontMap PangoFontMap; | |
8788 | ||
8789 | typedef struct _PangoRectangle PangoRectangle; | |
8790 | ||
8791 | ||
8792 | ||
8793 | ||
8794 | typedef guint32 PangoGlyph; | |
8795 | # 64 "/usr/include/pango-1.0/pango/pango-types.h" | |
8796 | int pango_units_from_double (double d) __attribute__((__const__)); | |
8797 | double pango_units_to_double (int i) __attribute__((__const__)); | |
8798 | ||
8799 | ||
8800 | ||
8801 | ||
8802 | ||
8803 | ||
8804 | struct _PangoRectangle | |
8805 | { | |
8806 | int x; | |
8807 | int y; | |
8808 | int width; | |
8809 | int height; | |
8810 | }; | |
8811 | # 87 "/usr/include/pango-1.0/pango/pango-types.h" | |
8812 | void pango_extents_to_pixels (PangoRectangle *ink_rect, | |
8813 | PangoRectangle *logical_rect); | |
8814 | # 118 "/usr/include/pango-1.0/pango/pango-types.h" | |
8815 | typedef enum { | |
8816 | PANGO_DIRECTION_LTR, | |
8817 | PANGO_DIRECTION_RTL, | |
8818 | PANGO_DIRECTION_TTB_LTR, | |
8819 | PANGO_DIRECTION_TTB_RTL, | |
8820 | PANGO_DIRECTION_WEAK_LTR, | |
8821 | PANGO_DIRECTION_WEAK_RTL, | |
8822 | PANGO_DIRECTION_NEUTRAL | |
8823 | } PangoDirection; | |
8824 | ||
8825 | PangoDirection pango_unichar_direction (gunichar ch) __attribute__((__const__)); | |
8826 | PangoDirection pango_find_base_dir (const gchar *text, | |
8827 | gint length); | |
8828 | ||
8829 | ||
8830 | gboolean pango_get_mirror_char (gunichar ch, | |
8831 | gunichar *mirrored_ch); | |
8832 | ||
8833 | ||
8834 | ||
8835 | # 1 "/usr/include/pango-1.0/pango/pango-gravity.h" 1 | |
8836 | # 27 "/usr/include/pango-1.0/pango/pango-gravity.h" | |
8837 | ||
8838 | # 50 "/usr/include/pango-1.0/pango/pango-gravity.h" | |
8839 | typedef enum { | |
8840 | PANGO_GRAVITY_SOUTH, | |
8841 | PANGO_GRAVITY_EAST, | |
8842 | PANGO_GRAVITY_NORTH, | |
8843 | PANGO_GRAVITY_WEST, | |
8844 | PANGO_GRAVITY_AUTO | |
8845 | } PangoGravity; | |
8846 | # 77 "/usr/include/pango-1.0/pango/pango-gravity.h" | |
8847 | typedef enum { | |
8848 | PANGO_GRAVITY_HINT_NATURAL, | |
8849 | PANGO_GRAVITY_HINT_STRONG, | |
8850 | PANGO_GRAVITY_HINT_LINE | |
8851 | } PangoGravityHint; | |
8852 | # 97 "/usr/include/pango-1.0/pango/pango-gravity.h" | |
8853 | # 1 "/usr/include/pango-1.0/pango/pango-matrix.h" 1 | |
8854 | # 28 "/usr/include/pango-1.0/pango/pango-matrix.h" | |
8855 | ||
8856 | ||
8857 | typedef struct _PangoMatrix PangoMatrix; | |
8858 | # 52 "/usr/include/pango-1.0/pango/pango-matrix.h" | |
8859 | struct _PangoMatrix | |
8860 | { | |
8861 | double xx; | |
8862 | double xy; | |
8863 | double yx; | |
8864 | double yy; | |
8865 | double x0; | |
8866 | double y0; | |
8867 | }; | |
8868 | # 85 "/usr/include/pango-1.0/pango/pango-matrix.h" | |
8869 | # 1 "/usr/include/pango-1.0/pango/pango-types.h" 1 | |
8870 | # 86 "/usr/include/pango-1.0/pango/pango-matrix.h" 2 | |
8871 | ||
8872 | GType pango_matrix_get_type (void) __attribute__((__const__)); | |
8873 | ||
8874 | PangoMatrix *pango_matrix_copy (const PangoMatrix *matrix); | |
8875 | void pango_matrix_free (PangoMatrix *matrix); | |
8876 | ||
8877 | void pango_matrix_translate (PangoMatrix *matrix, | |
8878 | double tx, | |
8879 | double ty); | |
8880 | void pango_matrix_scale (PangoMatrix *matrix, | |
8881 | double scale_x, | |
8882 | double scale_y); | |
8883 | void pango_matrix_rotate (PangoMatrix *matrix, | |
8884 | double degrees); | |
8885 | void pango_matrix_concat (PangoMatrix *matrix, | |
8886 | const PangoMatrix *new_matrix); | |
8887 | void pango_matrix_transform_point (const PangoMatrix *matrix, | |
8888 | double *x, | |
8889 | double *y); | |
8890 | void pango_matrix_transform_distance (const PangoMatrix *matrix, | |
8891 | double *dx, | |
8892 | double *dy); | |
8893 | void pango_matrix_transform_rectangle (const PangoMatrix *matrix, | |
8894 | PangoRectangle *rect); | |
8895 | void pango_matrix_transform_pixel_rectangle (const PangoMatrix *matrix, | |
8896 | PangoRectangle *rect); | |
8897 | double pango_matrix_get_font_scale_factor (const PangoMatrix *matrix) __attribute__((__pure__)); | |
8898 | ||
8899 | ||
8900 | ||
8901 | # 98 "/usr/include/pango-1.0/pango/pango-gravity.h" 2 | |
8902 | # 1 "/usr/include/pango-1.0/pango/pango-script.h" 1 | |
8903 | # 27 "/usr/include/pango-1.0/pango/pango-script.h" | |
8904 | # 1 "/usr/include/pango-1.0/pango/pango-language.h" 1 | |
8905 | # 28 "/usr/include/pango-1.0/pango/pango-language.h" | |
8906 | ||
8907 | ||
8908 | ||
8909 | typedef struct _PangoLanguage PangoLanguage; | |
8910 | ||
8911 | ||
8912 | ||
8913 | GType pango_language_get_type (void) __attribute__((__const__)); | |
8914 | PangoLanguage *pango_language_from_string (const char *language); | |
8915 | ||
8916 | ||
8917 | ||
8918 | const char *pango_language_get_sample_string (PangoLanguage *language) __attribute__((__const__)); | |
8919 | PangoLanguage *pango_language_get_default (void) __attribute__((__const__)); | |
8920 | ||
8921 | gboolean pango_language_matches (PangoLanguage *language, | |
8922 | const char *range_list) __attribute__((__pure__)); | |
8923 | ||
8924 | ||
8925 | # 28 "/usr/include/pango-1.0/pango/pango-script.h" 2 | |
8926 | ||
8927 | ||
8928 | ||
8929 | ||
8930 | ||
8931 | ||
8932 | ||
8933 | ||
8934 | ||
8935 | typedef struct _PangoScriptIter PangoScriptIter; | |
8936 | ||
8937 | typedef enum { | |
8938 | PANGO_SCRIPT_INVALID_CODE = -1, | |
8939 | PANGO_SCRIPT_COMMON = 0, | |
8940 | PANGO_SCRIPT_INHERITED, | |
8941 | PANGO_SCRIPT_ARABIC, | |
8942 | PANGO_SCRIPT_ARMENIAN, | |
8943 | PANGO_SCRIPT_BENGALI, | |
8944 | PANGO_SCRIPT_BOPOMOFO, | |
8945 | PANGO_SCRIPT_CHEROKEE, | |
8946 | PANGO_SCRIPT_COPTIC, | |
8947 | PANGO_SCRIPT_CYRILLIC, | |
8948 | PANGO_SCRIPT_DESERET, | |
8949 | PANGO_SCRIPT_DEVANAGARI, | |
8950 | PANGO_SCRIPT_ETHIOPIC, | |
8951 | PANGO_SCRIPT_GEORGIAN, | |
8952 | PANGO_SCRIPT_GOTHIC, | |
8953 | PANGO_SCRIPT_GREEK, | |
8954 | PANGO_SCRIPT_GUJARATI, | |
8955 | PANGO_SCRIPT_GURMUKHI, | |
8956 | PANGO_SCRIPT_HAN, | |
8957 | PANGO_SCRIPT_HANGUL, | |
8958 | PANGO_SCRIPT_HEBREW, | |
8959 | PANGO_SCRIPT_HIRAGANA, | |
8960 | PANGO_SCRIPT_KANNADA, | |
8961 | PANGO_SCRIPT_KATAKANA, | |
8962 | PANGO_SCRIPT_KHMER, | |
8963 | PANGO_SCRIPT_LAO, | |
8964 | PANGO_SCRIPT_LATIN, | |
8965 | PANGO_SCRIPT_MALAYALAM, | |
8966 | PANGO_SCRIPT_MONGOLIAN, | |
8967 | PANGO_SCRIPT_MYANMAR, | |
8968 | PANGO_SCRIPT_OGHAM, | |
8969 | PANGO_SCRIPT_OLD_ITALIC, | |
8970 | PANGO_SCRIPT_ORIYA, | |
8971 | PANGO_SCRIPT_RUNIC, | |
8972 | PANGO_SCRIPT_SINHALA, | |
8973 | PANGO_SCRIPT_SYRIAC, | |
8974 | PANGO_SCRIPT_TAMIL, | |
8975 | PANGO_SCRIPT_TELUGU, | |
8976 | PANGO_SCRIPT_THAANA, | |
8977 | PANGO_SCRIPT_THAI, | |
8978 | PANGO_SCRIPT_TIBETAN, | |
8979 | PANGO_SCRIPT_CANADIAN_ABORIGINAL, | |
8980 | PANGO_SCRIPT_YI, | |
8981 | PANGO_SCRIPT_TAGALOG, | |
8982 | PANGO_SCRIPT_HANUNOO, | |
8983 | PANGO_SCRIPT_BUHID, | |
8984 | PANGO_SCRIPT_TAGBANWA, | |
8985 | ||
8986 | ||
8987 | PANGO_SCRIPT_BRAILLE, | |
8988 | PANGO_SCRIPT_CYPRIOT, | |
8989 | PANGO_SCRIPT_LIMBU, | |
8990 | PANGO_SCRIPT_OSMANYA, | |
8991 | PANGO_SCRIPT_SHAVIAN, | |
8992 | PANGO_SCRIPT_LINEAR_B, | |
8993 | PANGO_SCRIPT_TAI_LE, | |
8994 | PANGO_SCRIPT_UGARITIC, | |
8995 | ||
8996 | ||
8997 | PANGO_SCRIPT_NEW_TAI_LUE, | |
8998 | PANGO_SCRIPT_BUGINESE, | |
8999 | PANGO_SCRIPT_GLAGOLITIC, | |
9000 | PANGO_SCRIPT_TIFINAGH, | |
9001 | PANGO_SCRIPT_SYLOTI_NAGRI, | |
9002 | PANGO_SCRIPT_OLD_PERSIAN, | |
9003 | PANGO_SCRIPT_KHAROSHTHI, | |
9004 | ||
9005 | ||
9006 | PANGO_SCRIPT_UNKNOWN, | |
9007 | PANGO_SCRIPT_BALINESE, | |
9008 | PANGO_SCRIPT_CUNEIFORM, | |
9009 | PANGO_SCRIPT_PHOENICIAN, | |
9010 | PANGO_SCRIPT_PHAGS_PA, | |
9011 | PANGO_SCRIPT_NKO | |
9012 | } PangoScript; | |
9013 | ||
9014 | PangoScript pango_script_for_unichar (gunichar ch) __attribute__((__const__)); | |
9015 | ||
9016 | PangoScriptIter *pango_script_iter_new (const char *text, | |
9017 | int length); | |
9018 | void pango_script_iter_get_range (PangoScriptIter *iter, | |
9019 | const char **start, | |
9020 | const char **end, | |
9021 | PangoScript *script); | |
9022 | gboolean pango_script_iter_next (PangoScriptIter *iter); | |
9023 | void pango_script_iter_free (PangoScriptIter *iter); | |
9024 | ||
9025 | PangoLanguage *pango_script_get_sample_language (PangoScript script) __attribute__((__pure__)); | |
9026 | gboolean pango_language_includes_script (PangoLanguage *language, | |
9027 | PangoScript script) __attribute__((__pure__)); | |
9028 | ||
9029 | ||
9030 | # 99 "/usr/include/pango-1.0/pango/pango-gravity.h" 2 | |
9031 | ||
9032 | double pango_gravity_to_rotation (PangoGravity gravity) __attribute__((__const__)); | |
9033 | PangoGravity pango_gravity_get_for_matrix (const PangoMatrix *matrix) __attribute__((__pure__)); | |
9034 | PangoGravity pango_gravity_get_for_script (PangoScript script, | |
9035 | PangoGravity base_gravity, | |
9036 | PangoGravityHint hint) __attribute__((__const__)); | |
9037 | ||
9038 | ||
9039 | ||
9040 | # 139 "/usr/include/pango-1.0/pango/pango-types.h" 2 | |
9041 | ||
9042 | ||
9043 | ||
9044 | ||
9045 | ||
9046 | ||
9047 | # 27 "/usr/include/pango-1.0/pango/pango-font.h" 2 | |
9048 | ||
9049 | ||
9050 | ||
9051 | ||
9052 | ||
9053 | typedef struct _PangoFontDescription PangoFontDescription; | |
9054 | typedef struct _PangoFontMetrics PangoFontMetrics; | |
9055 | # 43 "/usr/include/pango-1.0/pango/pango-font.h" | |
9056 | typedef enum { | |
9057 | PANGO_STYLE_NORMAL, | |
9058 | PANGO_STYLE_OBLIQUE, | |
9059 | PANGO_STYLE_ITALIC | |
9060 | } PangoStyle; | |
9061 | ||
9062 | typedef enum { | |
9063 | PANGO_VARIANT_NORMAL, | |
9064 | PANGO_VARIANT_SMALL_CAPS | |
9065 | } PangoVariant; | |
9066 | ||
9067 | typedef enum { | |
9068 | PANGO_WEIGHT_ULTRALIGHT = 200, | |
9069 | PANGO_WEIGHT_LIGHT = 300, | |
9070 | PANGO_WEIGHT_NORMAL = 400, | |
9071 | PANGO_WEIGHT_SEMIBOLD = 600, | |
9072 | PANGO_WEIGHT_BOLD = 700, | |
9073 | PANGO_WEIGHT_ULTRABOLD = 800, | |
9074 | PANGO_WEIGHT_HEAVY = 900 | |
9075 | } PangoWeight; | |
9076 | ||
9077 | typedef enum { | |
9078 | PANGO_STRETCH_ULTRA_CONDENSED, | |
9079 | PANGO_STRETCH_EXTRA_CONDENSED, | |
9080 | PANGO_STRETCH_CONDENSED, | |
9081 | PANGO_STRETCH_SEMI_CONDENSED, | |
9082 | PANGO_STRETCH_NORMAL, | |
9083 | PANGO_STRETCH_SEMI_EXPANDED, | |
9084 | PANGO_STRETCH_EXPANDED, | |
9085 | PANGO_STRETCH_EXTRA_EXPANDED, | |
9086 | PANGO_STRETCH_ULTRA_EXPANDED | |
9087 | } PangoStretch; | |
9088 | ||
9089 | typedef enum { | |
9090 | PANGO_FONT_MASK_FAMILY = 1 << 0, | |
9091 | PANGO_FONT_MASK_STYLE = 1 << 1, | |
9092 | PANGO_FONT_MASK_VARIANT = 1 << 2, | |
9093 | PANGO_FONT_MASK_WEIGHT = 1 << 3, | |
9094 | PANGO_FONT_MASK_STRETCH = 1 << 4, | |
9095 | PANGO_FONT_MASK_SIZE = 1 << 5, | |
9096 | PANGO_FONT_MASK_GRAVITY = 1 << 6 | |
9097 | } PangoFontMask; | |
9098 | # 101 "/usr/include/pango-1.0/pango/pango-font.h" | |
9099 | GType pango_font_description_get_type (void) __attribute__((__const__)); | |
9100 | PangoFontDescription *pango_font_description_new (void); | |
9101 | PangoFontDescription *pango_font_description_copy (const PangoFontDescription *desc); | |
9102 | PangoFontDescription *pango_font_description_copy_static (const PangoFontDescription *desc); | |
9103 | guint pango_font_description_hash (const PangoFontDescription *desc) __attribute__((__pure__)); | |
9104 | gboolean pango_font_description_equal (const PangoFontDescription *desc1, | |
9105 | const PangoFontDescription *desc2) __attribute__((__pure__)); | |
9106 | void pango_font_description_free (PangoFontDescription *desc); | |
9107 | void pango_font_descriptions_free (PangoFontDescription **descs, | |
9108 | int n_descs); | |
9109 | ||
9110 | void pango_font_description_set_family (PangoFontDescription *desc, | |
9111 | const char *family); | |
9112 | void pango_font_description_set_family_static (PangoFontDescription *desc, | |
9113 | const char *family); | |
9114 | const char *pango_font_description_get_family (const PangoFontDescription *desc) __attribute__((__pure__)); | |
9115 | void pango_font_description_set_style (PangoFontDescription *desc, | |
9116 | PangoStyle style); | |
9117 | PangoStyle pango_font_description_get_style (const PangoFontDescription *desc) __attribute__((__pure__)); | |
9118 | void pango_font_description_set_variant (PangoFontDescription *desc, | |
9119 | PangoVariant variant); | |
9120 | PangoVariant pango_font_description_get_variant (const PangoFontDescription *desc) __attribute__((__pure__)); | |
9121 | void pango_font_description_set_weight (PangoFontDescription *desc, | |
9122 | PangoWeight weight); | |
9123 | PangoWeight pango_font_description_get_weight (const PangoFontDescription *desc) __attribute__((__pure__)); | |
9124 | void pango_font_description_set_stretch (PangoFontDescription *desc, | |
9125 | PangoStretch stretch); | |
9126 | PangoStretch pango_font_description_get_stretch (const PangoFontDescription *desc) __attribute__((__pure__)); | |
9127 | void pango_font_description_set_size (PangoFontDescription *desc, | |
9128 | gint size); | |
9129 | gint pango_font_description_get_size (const PangoFontDescription *desc) __attribute__((__pure__)); | |
9130 | void pango_font_description_set_absolute_size (PangoFontDescription *desc, | |
9131 | double size); | |
9132 | gboolean pango_font_description_get_size_is_absolute (const PangoFontDescription *desc) __attribute__((__pure__)); | |
9133 | void pango_font_description_set_gravity (PangoFontDescription *desc, | |
9134 | PangoGravity gravity); | |
9135 | PangoGravity pango_font_description_get_gravity (const PangoFontDescription *desc) __attribute__((__pure__)); | |
9136 | ||
9137 | PangoFontMask pango_font_description_get_set_fields (const PangoFontDescription *desc) __attribute__((__pure__)); | |
9138 | void pango_font_description_unset_fields (PangoFontDescription *desc, | |
9139 | PangoFontMask to_unset); | |
9140 | ||
9141 | void pango_font_description_merge (PangoFontDescription *desc, | |
9142 | const PangoFontDescription *desc_to_merge, | |
9143 | gboolean replace_existing); | |
9144 | void pango_font_description_merge_static (PangoFontDescription *desc, | |
9145 | const PangoFontDescription *desc_to_merge, | |
9146 | gboolean replace_existing); | |
9147 | ||
9148 | gboolean pango_font_description_better_match (const PangoFontDescription *desc, | |
9149 | const PangoFontDescription *old_match, | |
9150 | const PangoFontDescription *new_match) __attribute__((__pure__)); | |
9151 | ||
9152 | PangoFontDescription *pango_font_description_from_string (const char *str); | |
9153 | char * pango_font_description_to_string (const PangoFontDescription *desc); | |
9154 | char * pango_font_description_to_filename (const PangoFontDescription *desc); | |
9155 | ||
9156 | ||
9157 | ||
9158 | ||
9159 | ||
9160 | ||
9161 | GType pango_font_metrics_get_type (void) __attribute__((__const__)); | |
9162 | PangoFontMetrics *pango_font_metrics_ref (PangoFontMetrics *metrics); | |
9163 | void pango_font_metrics_unref (PangoFontMetrics *metrics); | |
9164 | int pango_font_metrics_get_ascent (PangoFontMetrics *metrics) __attribute__((__pure__)); | |
9165 | int pango_font_metrics_get_descent (PangoFontMetrics *metrics) __attribute__((__pure__)); | |
9166 | int pango_font_metrics_get_approximate_char_width (PangoFontMetrics *metrics) __attribute__((__pure__)); | |
9167 | int pango_font_metrics_get_approximate_digit_width (PangoFontMetrics *metrics) __attribute__((__pure__)); | |
9168 | int pango_font_metrics_get_underline_position (PangoFontMetrics *metrics) __attribute__((__pure__)); | |
9169 | int pango_font_metrics_get_underline_thickness (PangoFontMetrics *metrics) __attribute__((__pure__)); | |
9170 | int pango_font_metrics_get_strikethrough_position (PangoFontMetrics *metrics) __attribute__((__pure__)); | |
9171 | int pango_font_metrics_get_strikethrough_thickness (PangoFontMetrics *metrics) __attribute__((__pure__)); | |
9172 | # 203 "/usr/include/pango-1.0/pango/pango-font.h" | |
9173 | typedef struct _PangoFontFamily PangoFontFamily; | |
9174 | typedef struct _PangoFontFace PangoFontFace; | |
9175 | ||
9176 | GType pango_font_family_get_type (void) __attribute__((__const__)); | |
9177 | ||
9178 | void pango_font_family_list_faces (PangoFontFamily *family, | |
9179 | PangoFontFace ***faces, | |
9180 | int *n_faces); | |
9181 | const char *pango_font_family_get_name (PangoFontFamily *family) __attribute__((__pure__)); | |
9182 | gboolean pango_font_family_is_monospace (PangoFontFamily *family) __attribute__((__pure__)); | |
9183 | # 257 "/usr/include/pango-1.0/pango/pango-font.h" | |
9184 | GType pango_font_face_get_type (void) __attribute__((__const__)); | |
9185 | ||
9186 | PangoFontDescription *pango_font_face_describe (PangoFontFace *face); | |
9187 | const char *pango_font_face_get_face_name (PangoFontFace *face) __attribute__((__pure__)); | |
9188 | void pango_font_face_list_sizes (PangoFontFace *face, | |
9189 | int **sizes, | |
9190 | int *n_sizes); | |
9191 | gboolean pango_font_face_is_synthesized (PangoFontFace *face) __attribute__((__pure__)); | |
9192 | # 309 "/usr/include/pango-1.0/pango/pango-font.h" | |
9193 | GType pango_font_get_type (void) __attribute__((__const__)); | |
9194 | ||
9195 | PangoFontDescription *pango_font_describe (PangoFont *font); | |
9196 | PangoFontDescription *pango_font_describe_with_absolute_size (PangoFont *font); | |
9197 | PangoCoverage * pango_font_get_coverage (PangoFont *font, | |
9198 | PangoLanguage *language); | |
9199 | PangoEngineShape * pango_font_find_shaper (PangoFont *font, | |
9200 | PangoLanguage *language, | |
9201 | guint32 ch); | |
9202 | PangoFontMetrics * pango_font_get_metrics (PangoFont *font, | |
9203 | PangoLanguage *language); | |
9204 | void pango_font_get_glyph_extents (PangoFont *font, | |
9205 | PangoGlyph glyph, | |
9206 | PangoRectangle *ink_rect, | |
9207 | PangoRectangle *logical_rect); | |
9208 | PangoFontMap *pango_font_get_font_map (PangoFont *font); | |
9209 | # 381 "/usr/include/pango-1.0/pango/pango-font.h" | |
9210 | ||
9211 | # 26 "/usr/include/pango-1.0/pango/pango-attributes.h" 2 | |
9212 | ||
9213 | ||
9214 | ||
9215 | ||
9216 | ||
9217 | ||
9218 | typedef struct _PangoColor PangoColor; | |
9219 | ||
9220 | struct _PangoColor | |
9221 | { | |
9222 | guint16 red; | |
9223 | guint16 green; | |
9224 | guint16 blue; | |
9225 | }; | |
9226 | ||
9227 | ||
9228 | GType pango_color_get_type (void) __attribute__((__const__)); | |
9229 | ||
9230 | PangoColor *pango_color_copy (const PangoColor *src); | |
9231 | void pango_color_free (PangoColor *color); | |
9232 | gboolean pango_color_parse (PangoColor *color, | |
9233 | const char *spec); | |
9234 | gchar *pango_color_to_string(const PangoColor *color); | |
9235 | ||
9236 | ||
9237 | ||
9238 | ||
9239 | typedef struct _PangoAttribute PangoAttribute; | |
9240 | typedef struct _PangoAttrClass PangoAttrClass; | |
9241 | ||
9242 | typedef struct _PangoAttrString PangoAttrString; | |
9243 | typedef struct _PangoAttrLanguage PangoAttrLanguage; | |
9244 | typedef struct _PangoAttrInt PangoAttrInt; | |
9245 | typedef struct _PangoAttrSize PangoAttrSize; | |
9246 | typedef struct _PangoAttrFloat PangoAttrFloat; | |
9247 | typedef struct _PangoAttrColor PangoAttrColor; | |
9248 | typedef struct _PangoAttrFontDesc PangoAttrFontDesc; | |
9249 | typedef struct _PangoAttrShape PangoAttrShape; | |
9250 | ||
9251 | ||
9252 | typedef struct _PangoAttrList PangoAttrList; | |
9253 | typedef struct _PangoAttrIterator PangoAttrIterator; | |
9254 | ||
9255 | typedef enum | |
9256 | { | |
9257 | PANGO_ATTR_INVALID, | |
9258 | PANGO_ATTR_LANGUAGE, | |
9259 | PANGO_ATTR_FAMILY, | |
9260 | PANGO_ATTR_STYLE, | |
9261 | PANGO_ATTR_WEIGHT, | |
9262 | PANGO_ATTR_VARIANT, | |
9263 | PANGO_ATTR_STRETCH, | |
9264 | PANGO_ATTR_SIZE, | |
9265 | PANGO_ATTR_FONT_DESC, | |
9266 | PANGO_ATTR_FOREGROUND, | |
9267 | PANGO_ATTR_BACKGROUND, | |
9268 | PANGO_ATTR_UNDERLINE, | |
9269 | PANGO_ATTR_STRIKETHROUGH, | |
9270 | PANGO_ATTR_RISE, | |
9271 | PANGO_ATTR_SHAPE, | |
9272 | PANGO_ATTR_SCALE, | |
9273 | PANGO_ATTR_FALLBACK, | |
9274 | PANGO_ATTR_LETTER_SPACING, | |
9275 | PANGO_ATTR_UNDERLINE_COLOR, | |
9276 | PANGO_ATTR_STRIKETHROUGH_COLOR, | |
9277 | PANGO_ATTR_ABSOLUTE_SIZE, | |
9278 | PANGO_ATTR_GRAVITY, | |
9279 | PANGO_ATTR_GRAVITY_HINT | |
9280 | } PangoAttrType; | |
9281 | ||
9282 | typedef enum { | |
9283 | PANGO_UNDERLINE_NONE, | |
9284 | PANGO_UNDERLINE_SINGLE, | |
9285 | PANGO_UNDERLINE_DOUBLE, | |
9286 | PANGO_UNDERLINE_LOW, | |
9287 | PANGO_UNDERLINE_ERROR | |
9288 | } PangoUnderline; | |
9289 | ||
9290 | struct _PangoAttribute | |
9291 | { | |
9292 | const PangoAttrClass *klass; | |
9293 | guint start_index; | |
9294 | guint end_index; | |
9295 | }; | |
9296 | ||
9297 | typedef gboolean (*PangoAttrFilterFunc) (PangoAttribute *attribute, | |
9298 | gpointer data); | |
9299 | ||
9300 | typedef gpointer (*PangoAttrDataCopyFunc) (gconstpointer data); | |
9301 | ||
9302 | struct _PangoAttrClass | |
9303 | { | |
9304 | ||
9305 | PangoAttrType type; | |
9306 | PangoAttribute * (*copy) (const PangoAttribute *attr); | |
9307 | void (*destroy) (PangoAttribute *attr); | |
9308 | gboolean (*equal) (const PangoAttribute *attr1, const PangoAttribute *attr2); | |
9309 | }; | |
9310 | ||
9311 | struct _PangoAttrString | |
9312 | { | |
9313 | PangoAttribute attr; | |
9314 | char *value; | |
9315 | }; | |
9316 | ||
9317 | struct _PangoAttrLanguage | |
9318 | { | |
9319 | PangoAttribute attr; | |
9320 | PangoLanguage *value; | |
9321 | }; | |
9322 | ||
9323 | struct _PangoAttrInt | |
9324 | { | |
9325 | PangoAttribute attr; | |
9326 | int value; | |
9327 | }; | |
9328 | ||
9329 | struct _PangoAttrFloat | |
9330 | { | |
9331 | PangoAttribute attr; | |
9332 | double value; | |
9333 | }; | |
9334 | ||
9335 | struct _PangoAttrColor | |
9336 | { | |
9337 | PangoAttribute attr; | |
9338 | PangoColor color; | |
9339 | }; | |
9340 | ||
9341 | struct _PangoAttrSize | |
9342 | { | |
9343 | PangoAttribute attr; | |
9344 | int size; | |
9345 | guint absolute : 1; | |
9346 | }; | |
9347 | ||
9348 | struct _PangoAttrShape | |
9349 | { | |
9350 | PangoAttribute attr; | |
9351 | PangoRectangle ink_rect; | |
9352 | PangoRectangle logical_rect; | |
9353 | ||
9354 | gpointer data; | |
9355 | PangoAttrDataCopyFunc copy_func; | |
9356 | GDestroyNotify destroy_func; | |
9357 | }; | |
9358 | ||
9359 | struct _PangoAttrFontDesc | |
9360 | { | |
9361 | PangoAttribute attr; | |
9362 | PangoFontDescription *desc; | |
9363 | }; | |
9364 | ||
9365 | PangoAttrType pango_attr_type_register (const gchar *name); | |
9366 | ||
9367 | PangoAttribute * pango_attribute_copy (const PangoAttribute *attr); | |
9368 | void pango_attribute_destroy (PangoAttribute *attr); | |
9369 | gboolean pango_attribute_equal (const PangoAttribute *attr1, | |
9370 | const PangoAttribute *attr2) __attribute__((__pure__)); | |
9371 | ||
9372 | PangoAttribute *pango_attr_language_new (PangoLanguage *language); | |
9373 | PangoAttribute *pango_attr_family_new (const char *family); | |
9374 | PangoAttribute *pango_attr_foreground_new (guint16 red, | |
9375 | guint16 green, | |
9376 | guint16 blue); | |
9377 | PangoAttribute *pango_attr_background_new (guint16 red, | |
9378 | guint16 green, | |
9379 | guint16 blue); | |
9380 | PangoAttribute *pango_attr_size_new (int size); | |
9381 | PangoAttribute *pango_attr_size_new_absolute (int size); | |
9382 | PangoAttribute *pango_attr_style_new (PangoStyle style); | |
9383 | PangoAttribute *pango_attr_weight_new (PangoWeight weight); | |
9384 | PangoAttribute *pango_attr_variant_new (PangoVariant variant); | |
9385 | PangoAttribute *pango_attr_stretch_new (PangoStretch stretch); | |
9386 | PangoAttribute *pango_attr_font_desc_new (const PangoFontDescription *desc); | |
9387 | ||
9388 | PangoAttribute *pango_attr_underline_new (PangoUnderline underline); | |
9389 | PangoAttribute *pango_attr_underline_color_new (guint16 red, | |
9390 | guint16 green, | |
9391 | guint16 blue); | |
9392 | PangoAttribute *pango_attr_strikethrough_new (gboolean strikethrough); | |
9393 | PangoAttribute *pango_attr_strikethrough_color_new (guint16 red, | |
9394 | guint16 green, | |
9395 | guint16 blue); | |
9396 | ||
9397 | PangoAttribute *pango_attr_rise_new (int rise); | |
9398 | PangoAttribute *pango_attr_scale_new (double scale_factor); | |
9399 | PangoAttribute *pango_attr_fallback_new (gboolean enable_fallback); | |
9400 | PangoAttribute *pango_attr_letter_spacing_new (int letter_spacing); | |
9401 | ||
9402 | PangoAttribute *pango_attr_shape_new (const PangoRectangle *ink_rect, | |
9403 | const PangoRectangle *logical_rect); | |
9404 | PangoAttribute *pango_attr_shape_new_with_data (const PangoRectangle *ink_rect, | |
9405 | const PangoRectangle *logical_rect, | |
9406 | gpointer data, | |
9407 | PangoAttrDataCopyFunc copy_func, | |
9408 | GDestroyNotify destroy_func); | |
9409 | ||
9410 | PangoAttribute *pango_attr_gravity_new (PangoGravity gravity); | |
9411 | PangoAttribute *pango_attr_gravity_hint_new (PangoGravityHint hint); | |
9412 | ||
9413 | GType pango_attr_list_get_type (void) __attribute__((__const__)); | |
9414 | PangoAttrList * pango_attr_list_new (void); | |
9415 | PangoAttrList * pango_attr_list_ref (PangoAttrList *list); | |
9416 | void pango_attr_list_unref (PangoAttrList *list); | |
9417 | PangoAttrList * pango_attr_list_copy (PangoAttrList *list); | |
9418 | void pango_attr_list_insert (PangoAttrList *list, | |
9419 | PangoAttribute *attr); | |
9420 | void pango_attr_list_insert_before (PangoAttrList *list, | |
9421 | PangoAttribute *attr); | |
9422 | void pango_attr_list_change (PangoAttrList *list, | |
9423 | PangoAttribute *attr); | |
9424 | void pango_attr_list_splice (PangoAttrList *list, | |
9425 | PangoAttrList *other, | |
9426 | gint pos, | |
9427 | gint len); | |
9428 | ||
9429 | PangoAttrList *pango_attr_list_filter (PangoAttrList *list, | |
9430 | PangoAttrFilterFunc func, | |
9431 | gpointer data); | |
9432 | ||
9433 | PangoAttrIterator *pango_attr_list_get_iterator (PangoAttrList *list); | |
9434 | ||
9435 | void pango_attr_iterator_range (PangoAttrIterator *iterator, | |
9436 | gint *start, | |
9437 | gint *end); | |
9438 | gboolean pango_attr_iterator_next (PangoAttrIterator *iterator); | |
9439 | PangoAttrIterator *pango_attr_iterator_copy (PangoAttrIterator *iterator); | |
9440 | void pango_attr_iterator_destroy (PangoAttrIterator *iterator); | |
9441 | PangoAttribute * pango_attr_iterator_get (PangoAttrIterator *iterator, | |
9442 | PangoAttrType type); | |
9443 | void pango_attr_iterator_get_font (PangoAttrIterator *iterator, | |
9444 | PangoFontDescription *desc, | |
9445 | PangoLanguage **language, | |
9446 | GSList **extra_attrs); | |
9447 | GSList * pango_attr_iterator_get_attrs (PangoAttrIterator *iterator); | |
9448 | ||
9449 | ||
9450 | gboolean pango_parse_markup (const char *markup_text, | |
9451 | int length, | |
9452 | gunichar accel_marker, | |
9453 | PangoAttrList **attr_list, | |
9454 | char **text, | |
9455 | gunichar *accel_char, | |
9456 | GError **error); | |
9457 | ||
9458 | ||
9459 | # 26 "/usr/include/pango-1.0/pango/pango.h" 2 | |
9460 | # 1 "/usr/include/pango-1.0/pango/pango-break.h" 1 | |
9461 | # 27 "/usr/include/pango-1.0/pango/pango-break.h" | |
9462 | ||
9463 | ||
9464 | # 1 "/usr/include/pango-1.0/pango/pango-item.h" 1 | |
9465 | # 27 "/usr/include/pango-1.0/pango/pango-item.h" | |
9466 | ||
9467 | ||
9468 | typedef struct _PangoAnalysis PangoAnalysis; | |
9469 | typedef struct _PangoItem PangoItem; | |
9470 | ||
9471 | ||
9472 | ||
9473 | ||
9474 | struct _PangoAnalysis | |
9475 | { | |
9476 | PangoEngineShape *shape_engine; | |
9477 | PangoEngineLang *lang_engine; | |
9478 | PangoFont *font; | |
9479 | ||
9480 | guint8 level; | |
9481 | guint8 gravity; | |
9482 | guint8 flags; | |
9483 | ||
9484 | guint8 script; | |
9485 | PangoLanguage *language; | |
9486 | ||
9487 | GSList *extra_attrs; | |
9488 | }; | |
9489 | ||
9490 | struct _PangoItem | |
9491 | { | |
9492 | gint offset; | |
9493 | gint length; | |
9494 | gint num_chars; | |
9495 | PangoAnalysis analysis; | |
9496 | }; | |
9497 | ||
9498 | ||
9499 | ||
9500 | GType pango_item_get_type (void) __attribute__((__const__)); | |
9501 | ||
9502 | PangoItem *pango_item_new (void); | |
9503 | PangoItem *pango_item_copy (PangoItem *item); | |
9504 | void pango_item_free (PangoItem *item); | |
9505 | PangoItem *pango_item_split (PangoItem *orig, | |
9506 | int split_index, | |
9507 | int split_offset); | |
9508 | ||
9509 | ||
9510 | # 30 "/usr/include/pango-1.0/pango/pango-break.h" 2 | |
9511 | ||
9512 | ||
9513 | ||
9514 | struct _PangoLogAttr | |
9515 | { | |
9516 | guint is_line_break : 1; | |
9517 | ||
9518 | guint is_mandatory_break : 1; | |
9519 | ||
9520 | guint is_char_break : 1; | |
9521 | ||
9522 | guint is_white : 1; | |
9523 | ||
9524 | ||
9525 | ||
9526 | ||
9527 | guint is_cursor_position : 1; | |
9528 | ||
9529 | ||
9530 | ||
9531 | ||
9532 | ||
9533 | ||
9534 | guint is_word_start : 1; | |
9535 | guint is_word_end : 1; | |
9536 | # 64 "/usr/include/pango-1.0/pango/pango-break.h" | |
9537 | guint is_sentence_boundary : 1; | |
9538 | guint is_sentence_start : 1; | |
9539 | guint is_sentence_end : 1; | |
9540 | ||
9541 | ||
9542 | ||
9543 | ||
9544 | guint backspace_deletes_character : 1; | |
9545 | ||
9546 | ||
9547 | ||
9548 | ||
9549 | guint is_expandable_space : 1; | |
9550 | }; | |
9551 | ||
9552 | ||
9553 | ||
9554 | ||
9555 | void pango_break (const gchar *text, | |
9556 | int length, | |
9557 | PangoAnalysis *analysis, | |
9558 | PangoLogAttr *attrs, | |
9559 | int attrs_len); | |
9560 | ||
9561 | void pango_find_paragraph_boundary (const gchar *text, | |
9562 | gint length, | |
9563 | gint *paragraph_delimiter_index, | |
9564 | gint *next_paragraph_start); | |
9565 | ||
9566 | void pango_get_log_attrs (const char *text, | |
9567 | int length, | |
9568 | int level, | |
9569 | PangoLanguage *language, | |
9570 | PangoLogAttr *log_attrs, | |
9571 | int attrs_len); | |
9572 | # 115 "/usr/include/pango-1.0/pango/pango-break.h" | |
9573 | ||
9574 | # 27 "/usr/include/pango-1.0/pango/pango.h" 2 | |
9575 | # 1 "/usr/include/pango-1.0/pango/pango-context.h" 1 | |
9576 | # 26 "/usr/include/pango-1.0/pango/pango-context.h" | |
9577 | # 1 "/usr/include/pango-1.0/pango/pango-fontmap.h" 1 | |
9578 | # 26 "/usr/include/pango-1.0/pango/pango-fontmap.h" | |
9579 | # 1 "/usr/include/pango-1.0/pango/pango-fontset.h" 1 | |
9580 | # 30 "/usr/include/pango-1.0/pango/pango-fontset.h" | |
9581 | ||
9582 | # 40 "/usr/include/pango-1.0/pango/pango-fontset.h" | |
9583 | GType pango_fontset_get_type (void) __attribute__((__const__)); | |
9584 | ||
9585 | typedef struct _PangoFontset PangoFontset; | |
9586 | # 57 "/usr/include/pango-1.0/pango/pango-fontset.h" | |
9587 | typedef gboolean (*PangoFontsetForeachFunc) (PangoFontset *fontset, | |
9588 | PangoFont *font, | |
9589 | gpointer data); | |
9590 | ||
9591 | PangoFont * pango_fontset_get_font (PangoFontset *fontset, | |
9592 | guint wc); | |
9593 | PangoFontMetrics *pango_fontset_get_metrics (PangoFontset *fontset); | |
9594 | void pango_fontset_foreach (PangoFontset *fontset, | |
9595 | PangoFontsetForeachFunc func, | |
9596 | gpointer data); | |
9597 | # 125 "/usr/include/pango-1.0/pango/pango-fontset.h" | |
9598 | ||
9599 | # 27 "/usr/include/pango-1.0/pango/pango-fontmap.h" 2 | |
9600 | ||
9601 | ||
9602 | ||
9603 | ||
9604 | ||
9605 | ||
9606 | ||
9607 | typedef struct _PangoContext PangoContext; | |
9608 | ||
9609 | GType pango_font_map_get_type (void) __attribute__((__const__)); | |
9610 | PangoFont * pango_font_map_load_font (PangoFontMap *fontmap, | |
9611 | PangoContext *context, | |
9612 | const PangoFontDescription *desc); | |
9613 | PangoFontset *pango_font_map_load_fontset (PangoFontMap *fontmap, | |
9614 | PangoContext *context, | |
9615 | const PangoFontDescription *desc, | |
9616 | PangoLanguage *language); | |
9617 | void pango_font_map_list_families (PangoFontMap *fontmap, | |
9618 | PangoFontFamily ***families, | |
9619 | int *n_families); | |
9620 | # 93 "/usr/include/pango-1.0/pango/pango-fontmap.h" | |
9621 | ||
9622 | # 27 "/usr/include/pango-1.0/pango/pango-context.h" 2 | |
9623 | ||
9624 | ||
9625 | ||
9626 | ||
9627 | ||
9628 | ||
9629 | ||
9630 | ||
9631 | ||
9632 | typedef struct _PangoContextClass PangoContextClass; | |
9633 | # 50 "/usr/include/pango-1.0/pango/pango-context.h" | |
9634 | GType pango_context_get_type (void) __attribute__((__const__)); | |
9635 | ||
9636 | ||
9637 | ||
9638 | ||
9639 | ||
9640 | ||
9641 | PangoFontMap *pango_context_get_font_map (PangoContext *context); | |
9642 | ||
9643 | void pango_context_list_families (PangoContext *context, | |
9644 | PangoFontFamily ***families, | |
9645 | int *n_families); | |
9646 | PangoFont * pango_context_load_font (PangoContext *context, | |
9647 | const PangoFontDescription *desc); | |
9648 | PangoFontset *pango_context_load_fontset (PangoContext *context, | |
9649 | const PangoFontDescription *desc, | |
9650 | PangoLanguage *language); | |
9651 | ||
9652 | PangoFontMetrics *pango_context_get_metrics (PangoContext *context, | |
9653 | const PangoFontDescription *desc, | |
9654 | PangoLanguage *language); | |
9655 | ||
9656 | void pango_context_set_font_description (PangoContext *context, | |
9657 | const PangoFontDescription *desc); | |
9658 | PangoFontDescription * pango_context_get_font_description (PangoContext *context); | |
9659 | PangoLanguage *pango_context_get_language (PangoContext *context); | |
9660 | void pango_context_set_language (PangoContext *context, | |
9661 | PangoLanguage *language); | |
9662 | void pango_context_set_base_dir (PangoContext *context, | |
9663 | PangoDirection direction); | |
9664 | PangoDirection pango_context_get_base_dir (PangoContext *context); | |
9665 | void pango_context_set_base_gravity (PangoContext *context, | |
9666 | PangoGravity gravity); | |
9667 | PangoGravity pango_context_get_base_gravity (PangoContext *context); | |
9668 | PangoGravity pango_context_get_gravity (PangoContext *context); | |
9669 | void pango_context_set_gravity_hint (PangoContext *context, | |
9670 | PangoGravityHint hint); | |
9671 | PangoGravityHint pango_context_get_gravity_hint (PangoContext *context); | |
9672 | ||
9673 | void pango_context_set_matrix (PangoContext *context, | |
9674 | const PangoMatrix *matrix); | |
9675 | const PangoMatrix *pango_context_get_matrix (PangoContext *context); | |
9676 | ||
9677 | ||
9678 | ||
9679 | ||
9680 | ||
9681 | GList *pango_itemize (PangoContext *context, | |
9682 | const char *text, | |
9683 | int start_index, | |
9684 | int length, | |
9685 | PangoAttrList *attrs, | |
9686 | PangoAttrIterator *cached_iter); | |
9687 | GList *pango_itemize_with_base_dir (PangoContext *context, | |
9688 | PangoDirection base_dir, | |
9689 | const char *text, | |
9690 | int start_index, | |
9691 | int length, | |
9692 | PangoAttrList *attrs, | |
9693 | PangoAttrIterator *cached_iter); | |
9694 | ||
9695 | ||
9696 | # 28 "/usr/include/pango-1.0/pango/pango.h" 2 | |
9697 | ||
9698 | # 1 "/usr/include/pango-1.0/pango/pango-engine.h" 1 | |
9699 | # 28 "/usr/include/pango-1.0/pango/pango-engine.h" | |
9700 | # 1 "/usr/include/pango-1.0/pango/pango-glyph.h" 1 | |
9701 | # 28 "/usr/include/pango-1.0/pango/pango-glyph.h" | |
9702 | ||
9703 | ||
9704 | typedef struct _PangoGlyphGeometry PangoGlyphGeometry; | |
9705 | typedef struct _PangoGlyphVisAttr PangoGlyphVisAttr; | |
9706 | typedef struct _PangoGlyphInfo PangoGlyphInfo; | |
9707 | typedef struct _PangoGlyphString PangoGlyphString; | |
9708 | ||
9709 | ||
9710 | typedef gint32 PangoGlyphUnit; | |
9711 | ||
9712 | ||
9713 | ||
9714 | struct _PangoGlyphGeometry | |
9715 | { | |
9716 | PangoGlyphUnit width; | |
9717 | PangoGlyphUnit x_offset; | |
9718 | PangoGlyphUnit y_offset; | |
9719 | }; | |
9720 | ||
9721 | ||
9722 | ||
9723 | struct _PangoGlyphVisAttr | |
9724 | { | |
9725 | guint is_cluster_start : 1; | |
9726 | }; | |
9727 | ||
9728 | ||
9729 | ||
9730 | struct _PangoGlyphInfo | |
9731 | { | |
9732 | PangoGlyph glyph; | |
9733 | PangoGlyphGeometry geometry; | |
9734 | PangoGlyphVisAttr attr; | |
9735 | }; | |
9736 | ||
9737 | ||
9738 | ||
9739 | ||
9740 | struct _PangoGlyphString { | |
9741 | gint num_glyphs; | |
9742 | ||
9743 | PangoGlyphInfo *glyphs; | |
9744 | ||
9745 | ||
9746 | ||
9747 | ||
9748 | ||
9749 | ||
9750 | gint *log_clusters; | |
9751 | ||
9752 | ||
9753 | gint space; | |
9754 | }; | |
9755 | ||
9756 | ||
9757 | ||
9758 | PangoGlyphString *pango_glyph_string_new (void); | |
9759 | void pango_glyph_string_set_size (PangoGlyphString *string, | |
9760 | gint new_len); | |
9761 | GType pango_glyph_string_get_type (void) __attribute__((__const__)); | |
9762 | PangoGlyphString *pango_glyph_string_copy (PangoGlyphString *string); | |
9763 | void pango_glyph_string_free (PangoGlyphString *string); | |
9764 | void pango_glyph_string_extents (PangoGlyphString *glyphs, | |
9765 | PangoFont *font, | |
9766 | PangoRectangle *ink_rect, | |
9767 | PangoRectangle *logical_rect); | |
9768 | int pango_glyph_string_get_width(PangoGlyphString *glyphs) __attribute__((__pure__)); | |
9769 | ||
9770 | void pango_glyph_string_extents_range (PangoGlyphString *glyphs, | |
9771 | int start, | |
9772 | int end, | |
9773 | PangoFont *font, | |
9774 | PangoRectangle *ink_rect, | |
9775 | PangoRectangle *logical_rect); | |
9776 | ||
9777 | void pango_glyph_string_get_logical_widths (PangoGlyphString *glyphs, | |
9778 | const char *text, | |
9779 | int length, | |
9780 | int embedding_level, | |
9781 | int *logical_widths); | |
9782 | ||
9783 | void pango_glyph_string_index_to_x (PangoGlyphString *glyphs, | |
9784 | char *text, | |
9785 | int length, | |
9786 | PangoAnalysis *analysis, | |
9787 | int index_, | |
9788 | gboolean trailing, | |
9789 | int *x_pos); | |
9790 | void pango_glyph_string_x_to_index (PangoGlyphString *glyphs, | |
9791 | char *text, | |
9792 | int length, | |
9793 | PangoAnalysis *analysis, | |
9794 | int x_pos, | |
9795 | int *index_, | |
9796 | int *trailing); | |
9797 | ||
9798 | ||
9799 | ||
9800 | void pango_shape (const gchar *text, | |
9801 | gint length, | |
9802 | const PangoAnalysis *analysis, | |
9803 | PangoGlyphString *glyphs); | |
9804 | ||
9805 | GList *pango_reorder_items (GList *logical_items); | |
9806 | ||
9807 | ||
9808 | # 29 "/usr/include/pango-1.0/pango/pango-engine.h" 2 | |
9809 | ||
9810 | ||
9811 | ||
9812 | # 377 "/usr/include/pango-1.0/pango/pango-engine.h" | |
9813 | ||
9814 | # 30 "/usr/include/pango-1.0/pango/pango.h" 2 | |
9815 | # 1 "/usr/include/pango-1.0/pango/pango-enum-types.h" 1 | |
9816 | # 9 "/usr/include/pango-1.0/pango/pango-enum-types.h" | |
9817 | ||
9818 | ||
9819 | GType pango_attr_type_get_type (void); | |
9820 | ||
9821 | GType pango_underline_get_type (void); | |
9822 | ||
9823 | ||
9824 | GType pango_coverage_level_get_type (void); | |
9825 | ||
9826 | ||
9827 | GType pango_style_get_type (void); | |
9828 | ||
9829 | GType pango_variant_get_type (void); | |
9830 | ||
9831 | GType pango_weight_get_type (void); | |
9832 | ||
9833 | GType pango_stretch_get_type (void); | |
9834 | ||
9835 | GType pango_font_mask_get_type (void); | |
9836 | ||
9837 | ||
9838 | GType pango_gravity_get_type (void); | |
9839 | ||
9840 | GType pango_gravity_hint_get_type (void); | |
9841 | ||
9842 | ||
9843 | GType pango_alignment_get_type (void); | |
9844 | ||
9845 | GType pango_wrap_mode_get_type (void); | |
9846 | ||
9847 | GType pango_ellipsize_mode_get_type (void); | |
9848 | ||
9849 | ||
9850 | GType pango_render_part_get_type (void); | |
9851 | ||
9852 | ||
9853 | GType pango_script_get_type (void); | |
9854 | ||
9855 | ||
9856 | GType pango_tab_align_get_type (void); | |
9857 | ||
9858 | ||
9859 | GType pango_direction_get_type (void); | |
9860 | ||
9861 | ||
9862 | # 31 "/usr/include/pango-1.0/pango/pango.h" 2 | |
9863 | # 1 "/usr/include/pango-1.0/pango/pango-features.h" 1 | |
9864 | # 32 "/usr/include/pango-1.0/pango/pango.h" 2 | |
9865 | ||
9866 | ||
9867 | ||
9868 | ||
9869 | # 1 "/usr/include/pango-1.0/pango/pango-glyph-item.h" 1 | |
9870 | # 30 "/usr/include/pango-1.0/pango/pango-glyph-item.h" | |
9871 | ||
9872 | ||
9873 | typedef struct _PangoGlyphItem PangoGlyphItem; | |
9874 | ||
9875 | struct _PangoGlyphItem | |
9876 | { | |
9877 | PangoItem *item; | |
9878 | PangoGlyphString *glyphs; | |
9879 | }; | |
9880 | ||
9881 | PangoGlyphItem *pango_glyph_item_split (PangoGlyphItem *orig, | |
9882 | const char *text, | |
9883 | int split_index); | |
9884 | void pango_glyph_item_free (PangoGlyphItem *glyph_item); | |
9885 | GSList * pango_glyph_item_apply_attrs (PangoGlyphItem *glyph_item, | |
9886 | const char *text, | |
9887 | PangoAttrList *list); | |
9888 | void pango_glyph_item_letter_space (PangoGlyphItem *glyph_item, | |
9889 | const char *text, | |
9890 | PangoLogAttr *log_attrs, | |
9891 | int letter_spacing); | |
9892 | ||
9893 | ||
9894 | # 37 "/usr/include/pango-1.0/pango/pango.h" 2 | |
9895 | ||
9896 | ||
9897 | # 1 "/usr/include/pango-1.0/pango/pango-layout.h" 1 | |
9898 | # 28 "/usr/include/pango-1.0/pango/pango-layout.h" | |
9899 | # 1 "/usr/include/pango-1.0/pango/pango-tabs.h" 1 | |
9900 | # 27 "/usr/include/pango-1.0/pango/pango-tabs.h" | |
9901 | ||
9902 | ||
9903 | typedef struct _PangoTabArray PangoTabArray; | |
9904 | ||
9905 | typedef enum | |
9906 | { | |
9907 | PANGO_TAB_LEFT | |
9908 | # 42 "/usr/include/pango-1.0/pango/pango-tabs.h" | |
9909 | } PangoTabAlign; | |
9910 | ||
9911 | ||
9912 | ||
9913 | PangoTabArray *pango_tab_array_new (gint initial_size, | |
9914 | gboolean positions_in_pixels); | |
9915 | PangoTabArray *pango_tab_array_new_with_positions (gint size, | |
9916 | gboolean positions_in_pixels, | |
9917 | PangoTabAlign first_alignment, | |
9918 | gint first_position, | |
9919 | ...); | |
9920 | GType pango_tab_array_get_type (void) __attribute__((__const__)); | |
9921 | PangoTabArray *pango_tab_array_copy (PangoTabArray *src); | |
9922 | void pango_tab_array_free (PangoTabArray *tab_array); | |
9923 | gint pango_tab_array_get_size (PangoTabArray *tab_array); | |
9924 | void pango_tab_array_resize (PangoTabArray *tab_array, | |
9925 | gint new_size); | |
9926 | void pango_tab_array_set_tab (PangoTabArray *tab_array, | |
9927 | gint tab_index, | |
9928 | PangoTabAlign alignment, | |
9929 | gint location); | |
9930 | void pango_tab_array_get_tab (PangoTabArray *tab_array, | |
9931 | gint tab_index, | |
9932 | PangoTabAlign *alignment, | |
9933 | gint *location); | |
9934 | void pango_tab_array_get_tabs (PangoTabArray *tab_array, | |
9935 | PangoTabAlign **alignments, | |
9936 | gint **locations); | |
9937 | ||
9938 | gboolean pango_tab_array_get_positions_in_pixels (PangoTabArray *tab_array); | |
9939 | ||
9940 | ||
9941 | ||
9942 | # 29 "/usr/include/pango-1.0/pango/pango-layout.h" 2 | |
9943 | ||
9944 | ||
9945 | ||
9946 | typedef struct _PangoLayout PangoLayout; | |
9947 | typedef struct _PangoLayoutClass PangoLayoutClass; | |
9948 | typedef struct _PangoLayoutLine PangoLayoutLine; | |
9949 | ||
9950 | ||
9951 | typedef PangoGlyphItem PangoLayoutRun; | |
9952 | ||
9953 | typedef enum { | |
9954 | PANGO_ALIGN_LEFT, | |
9955 | PANGO_ALIGN_CENTER, | |
9956 | PANGO_ALIGN_RIGHT | |
9957 | } PangoAlignment; | |
9958 | ||
9959 | typedef enum { | |
9960 | PANGO_WRAP_WORD, | |
9961 | PANGO_WRAP_CHAR, | |
9962 | PANGO_WRAP_WORD_CHAR | |
9963 | } PangoWrapMode; | |
9964 | # 64 "/usr/include/pango-1.0/pango/pango-layout.h" | |
9965 | typedef enum { | |
9966 | PANGO_ELLIPSIZE_NONE, | |
9967 | PANGO_ELLIPSIZE_START, | |
9968 | PANGO_ELLIPSIZE_MIDDLE, | |
9969 | PANGO_ELLIPSIZE_END | |
9970 | } PangoEllipsizeMode; | |
9971 | ||
9972 | struct _PangoLayoutLine | |
9973 | { | |
9974 | PangoLayout *layout; | |
9975 | gint start_index; | |
9976 | gint length; | |
9977 | GSList *runs; | |
9978 | guint is_paragraph_start : 1; | |
9979 | guint resolved_dir : 3; | |
9980 | }; | |
9981 | # 92 "/usr/include/pango-1.0/pango/pango-layout.h" | |
9982 | GType pango_layout_get_type (void) __attribute__((__const__)); | |
9983 | PangoLayout *pango_layout_new (PangoContext *context); | |
9984 | PangoLayout *pango_layout_copy (PangoLayout *src); | |
9985 | ||
9986 | PangoContext *pango_layout_get_context (PangoLayout *layout); | |
9987 | ||
9988 | void pango_layout_set_attributes (PangoLayout *layout, | |
9989 | PangoAttrList *attrs); | |
9990 | PangoAttrList *pango_layout_get_attributes (PangoLayout *layout); | |
9991 | ||
9992 | void pango_layout_set_text (PangoLayout *layout, | |
9993 | const char *text, | |
9994 | int length); | |
9995 | const char *pango_layout_get_text (PangoLayout *layout); | |
9996 | ||
9997 | void pango_layout_set_markup (PangoLayout *layout, | |
9998 | const char *markup, | |
9999 | int length); | |
10000 | ||
10001 | void pango_layout_set_markup_with_accel (PangoLayout *layout, | |
10002 | const char *markup, | |
10003 | int length, | |
10004 | gunichar accel_marker, | |
10005 | gunichar *accel_char); | |
10006 | ||
10007 | void pango_layout_set_font_description (PangoLayout *layout, | |
10008 | const PangoFontDescription *desc); | |
10009 | ||
10010 | const PangoFontDescription *pango_layout_get_font_description (PangoLayout *layout); | |
10011 | ||
10012 | void pango_layout_set_width (PangoLayout *layout, | |
10013 | int width); | |
10014 | int pango_layout_get_width (PangoLayout *layout); | |
10015 | void pango_layout_set_wrap (PangoLayout *layout, | |
10016 | PangoWrapMode wrap); | |
10017 | PangoWrapMode pango_layout_get_wrap (PangoLayout *layout); | |
10018 | gboolean pango_layout_is_wrapped (PangoLayout *layout); | |
10019 | void pango_layout_set_indent (PangoLayout *layout, | |
10020 | int indent); | |
10021 | int pango_layout_get_indent (PangoLayout *layout); | |
10022 | void pango_layout_set_spacing (PangoLayout *layout, | |
10023 | int spacing); | |
10024 | int pango_layout_get_spacing (PangoLayout *layout); | |
10025 | void pango_layout_set_justify (PangoLayout *layout, | |
10026 | gboolean justify); | |
10027 | gboolean pango_layout_get_justify (PangoLayout *layout); | |
10028 | void pango_layout_set_auto_dir (PangoLayout *layout, | |
10029 | gboolean auto_dir); | |
10030 | gboolean pango_layout_get_auto_dir (PangoLayout *layout); | |
10031 | void pango_layout_set_alignment (PangoLayout *layout, | |
10032 | PangoAlignment alignment); | |
10033 | PangoAlignment pango_layout_get_alignment (PangoLayout *layout); | |
10034 | ||
10035 | void pango_layout_set_tabs (PangoLayout *layout, | |
10036 | PangoTabArray *tabs); | |
10037 | ||
10038 | PangoTabArray* pango_layout_get_tabs (PangoLayout *layout); | |
10039 | ||
10040 | void pango_layout_set_single_paragraph_mode (PangoLayout *layout, | |
10041 | gboolean setting); | |
10042 | gboolean pango_layout_get_single_paragraph_mode (PangoLayout *layout); | |
10043 | ||
10044 | void pango_layout_set_ellipsize (PangoLayout *layout, | |
10045 | PangoEllipsizeMode ellipsize); | |
10046 | PangoEllipsizeMode pango_layout_get_ellipsize (PangoLayout *layout); | |
10047 | gboolean pango_layout_is_ellipsized (PangoLayout *layout); | |
10048 | ||
10049 | int pango_layout_get_unknown_glyphs_count (PangoLayout *layout); | |
10050 | ||
10051 | void pango_layout_context_changed (PangoLayout *layout); | |
10052 | ||
10053 | void pango_layout_get_log_attrs (PangoLayout *layout, | |
10054 | PangoLogAttr **attrs, | |
10055 | gint *n_attrs); | |
10056 | ||
10057 | void pango_layout_index_to_pos (PangoLayout *layout, | |
10058 | int index_, | |
10059 | PangoRectangle *pos); | |
10060 | void pango_layout_index_to_line_x (PangoLayout *layout, | |
10061 | int index_, | |
10062 | gboolean trailing, | |
10063 | int *line, | |
10064 | int *x_pos); | |
10065 | void pango_layout_get_cursor_pos (PangoLayout *layout, | |
10066 | int index_, | |
10067 | PangoRectangle *strong_pos, | |
10068 | PangoRectangle *weak_pos); | |
10069 | void pango_layout_move_cursor_visually (PangoLayout *layout, | |
10070 | gboolean strong, | |
10071 | int old_index, | |
10072 | int old_trailing, | |
10073 | int direction, | |
10074 | int *new_index, | |
10075 | int *new_trailing); | |
10076 | gboolean pango_layout_xy_to_index (PangoLayout *layout, | |
10077 | int x, | |
10078 | int y, | |
10079 | int *index_, | |
10080 | int *trailing); | |
10081 | void pango_layout_get_extents (PangoLayout *layout, | |
10082 | PangoRectangle *ink_rect, | |
10083 | PangoRectangle *logical_rect); | |
10084 | void pango_layout_get_pixel_extents (PangoLayout *layout, | |
10085 | PangoRectangle *ink_rect, | |
10086 | PangoRectangle *logical_rect); | |
10087 | void pango_layout_get_size (PangoLayout *layout, | |
10088 | int *width, | |
10089 | int *height); | |
10090 | void pango_layout_get_pixel_size (PangoLayout *layout, | |
10091 | int *width, | |
10092 | int *height); | |
10093 | ||
10094 | int pango_layout_get_line_count (PangoLayout *layout); | |
10095 | PangoLayoutLine *pango_layout_get_line (PangoLayout *layout, | |
10096 | int line); | |
10097 | PangoLayoutLine *pango_layout_get_line_readonly (PangoLayout *layout, | |
10098 | int line); | |
10099 | GSList * pango_layout_get_lines (PangoLayout *layout); | |
10100 | GSList * pango_layout_get_lines_readonly (PangoLayout *layout); | |
10101 | ||
10102 | ||
10103 | ||
10104 | ||
10105 | GType pango_layout_line_get_type (void) __attribute__((__const__)); | |
10106 | ||
10107 | PangoLayoutLine *pango_layout_line_ref (PangoLayoutLine *line); | |
10108 | void pango_layout_line_unref (PangoLayoutLine *line); | |
10109 | ||
10110 | gboolean pango_layout_line_x_to_index (PangoLayoutLine *line, | |
10111 | int x_pos, | |
10112 | int *index_, | |
10113 | int *trailing); | |
10114 | void pango_layout_line_index_to_x (PangoLayoutLine *line, | |
10115 | int index_, | |
10116 | gboolean trailing, | |
10117 | int *x_pos); | |
10118 | void pango_layout_line_get_x_ranges (PangoLayoutLine *line, | |
10119 | int start_index, | |
10120 | int end_index, | |
10121 | int **ranges, | |
10122 | int *n_ranges); | |
10123 | void pango_layout_line_get_extents (PangoLayoutLine *line, | |
10124 | PangoRectangle *ink_rect, | |
10125 | PangoRectangle *logical_rect); | |
10126 | void pango_layout_line_get_pixel_extents (PangoLayoutLine *layout_line, | |
10127 | PangoRectangle *ink_rect, | |
10128 | PangoRectangle *logical_rect); | |
10129 | ||
10130 | typedef struct _PangoLayoutIter PangoLayoutIter; | |
10131 | ||
10132 | ||
10133 | ||
10134 | GType pango_layout_iter_get_type (void) __attribute__((__const__)); | |
10135 | ||
10136 | PangoLayoutIter *pango_layout_get_iter (PangoLayout *layout); | |
10137 | void pango_layout_iter_free (PangoLayoutIter *iter); | |
10138 | ||
10139 | int pango_layout_iter_get_index (PangoLayoutIter *iter); | |
10140 | PangoLayoutRun *pango_layout_iter_get_run (PangoLayoutIter *iter); | |
10141 | PangoLayoutRun *pango_layout_iter_get_run_readonly (PangoLayoutIter *iter); | |
10142 | PangoLayoutLine *pango_layout_iter_get_line (PangoLayoutIter *iter); | |
10143 | PangoLayoutLine *pango_layout_iter_get_line_readonly (PangoLayoutIter *iter); | |
10144 | gboolean pango_layout_iter_at_last_line (PangoLayoutIter *iter); | |
10145 | ||
10146 | gboolean pango_layout_iter_next_char (PangoLayoutIter *iter); | |
10147 | gboolean pango_layout_iter_next_cluster (PangoLayoutIter *iter); | |
10148 | gboolean pango_layout_iter_next_run (PangoLayoutIter *iter); | |
10149 | gboolean pango_layout_iter_next_line (PangoLayoutIter *iter); | |
10150 | ||
10151 | void pango_layout_iter_get_char_extents (PangoLayoutIter *iter, | |
10152 | PangoRectangle *logical_rect); | |
10153 | void pango_layout_iter_get_cluster_extents (PangoLayoutIter *iter, | |
10154 | PangoRectangle *ink_rect, | |
10155 | PangoRectangle *logical_rect); | |
10156 | void pango_layout_iter_get_run_extents (PangoLayoutIter *iter, | |
10157 | PangoRectangle *ink_rect, | |
10158 | PangoRectangle *logical_rect); | |
10159 | void pango_layout_iter_get_line_extents (PangoLayoutIter *iter, | |
10160 | PangoRectangle *ink_rect, | |
10161 | PangoRectangle *logical_rect); | |
10162 | ||
10163 | ||
10164 | ||
10165 | void pango_layout_iter_get_line_yrange (PangoLayoutIter *iter, | |
10166 | int *y0_, | |
10167 | int *y1_); | |
10168 | void pango_layout_iter_get_layout_extents (PangoLayoutIter *iter, | |
10169 | PangoRectangle *ink_rect, | |
10170 | PangoRectangle *logical_rect); | |
10171 | int pango_layout_iter_get_baseline (PangoLayoutIter *iter); | |
10172 | ||
10173 | ||
10174 | # 40 "/usr/include/pango-1.0/pango/pango.h" 2 | |
10175 | ||
10176 | # 1 "/usr/include/pango-1.0/pango/pango-renderer.h" 1 | |
10177 | # 26 "/usr/include/pango-1.0/pango/pango-renderer.h" | |
10178 | ||
10179 | # 35 "/usr/include/pango-1.0/pango/pango-renderer.h" | |
10180 | typedef struct _PangoRenderer PangoRenderer; | |
10181 | typedef struct _PangoRendererClass PangoRendererClass; | |
10182 | typedef struct _PangoRendererPrivate PangoRendererPrivate; | |
10183 | # 52 "/usr/include/pango-1.0/pango/pango-renderer.h" | |
10184 | typedef enum | |
10185 | { | |
10186 | PANGO_RENDER_PART_FOREGROUND, | |
10187 | PANGO_RENDER_PART_BACKGROUND, | |
10188 | PANGO_RENDER_PART_UNDERLINE, | |
10189 | PANGO_RENDER_PART_STRIKETHROUGH | |
10190 | } PangoRenderPart; | |
10191 | # 71 "/usr/include/pango-1.0/pango/pango-renderer.h" | |
10192 | struct _PangoRenderer | |
10193 | { | |
10194 | ||
10195 | GObject parent_instance; | |
10196 | ||
10197 | PangoUnderline underline; | |
10198 | gboolean strikethrough; | |
10199 | int active_count; | |
10200 | ||
10201 | ||
10202 | PangoMatrix *matrix; | |
10203 | ||
10204 | ||
10205 | PangoRendererPrivate *priv; | |
10206 | }; | |
10207 | # 109 "/usr/include/pango-1.0/pango/pango-renderer.h" | |
10208 | struct _PangoRendererClass | |
10209 | { | |
10210 | ||
10211 | GObjectClass parent_class; | |
10212 | ||
10213 | ||
10214 | ||
10215 | ||
10216 | ||
10217 | ||
10218 | ||
10219 | void (*draw_glyphs) (PangoRenderer *renderer, | |
10220 | PangoFont *font, | |
10221 | PangoGlyphString *glyphs, | |
10222 | int x, | |
10223 | int y); | |
10224 | void (*draw_rectangle) (PangoRenderer *renderer, | |
10225 | PangoRenderPart part, | |
10226 | int x, | |
10227 | int y, | |
10228 | int width, | |
10229 | int height); | |
10230 | void (*draw_error_underline) (PangoRenderer *renderer, | |
10231 | int x, | |
10232 | int y, | |
10233 | int width, | |
10234 | int height); | |
10235 | ||
10236 | ||
10237 | void (*draw_shape) (PangoRenderer *renderer, | |
10238 | PangoAttrShape *attr, | |
10239 | int x, | |
10240 | int y); | |
10241 | ||
10242 | ||
10243 | ||
10244 | ||
10245 | void (*draw_trapezoid) (PangoRenderer *renderer, | |
10246 | PangoRenderPart part, | |
10247 | double y1_, | |
10248 | double x11, | |
10249 | double x21, | |
10250 | double y2, | |
10251 | double x12, | |
10252 | double x22); | |
10253 | void (*draw_glyph) (PangoRenderer *renderer, | |
10254 | PangoFont *font, | |
10255 | PangoGlyph glyph, | |
10256 | double x, | |
10257 | double y); | |
10258 | ||
10259 | ||
10260 | ||
10261 | void (*part_changed) (PangoRenderer *renderer, | |
10262 | PangoRenderPart part); | |
10263 | ||
10264 | ||
10265 | ||
10266 | void (*begin) (PangoRenderer *renderer); | |
10267 | void (*end) (PangoRenderer *renderer); | |
10268 | ||
10269 | ||
10270 | ||
10271 | void (*prepare_run) (PangoRenderer *renderer, | |
10272 | PangoLayoutRun *run); | |
10273 | ||
10274 | ||
10275 | ||
10276 | ||
10277 | void (*_pango_reserved1) (void); | |
10278 | void (*_pango_reserved2) (void); | |
10279 | void (*_pango_reserved3) (void); | |
10280 | void (*_pango_reserved4) (void); | |
10281 | }; | |
10282 | ||
10283 | GType pango_renderer_get_type (void) __attribute__((__const__)); | |
10284 | ||
10285 | void pango_renderer_draw_layout (PangoRenderer *renderer, | |
10286 | PangoLayout *layout, | |
10287 | int x, | |
10288 | int y); | |
10289 | void pango_renderer_draw_layout_line (PangoRenderer *renderer, | |
10290 | PangoLayoutLine *line, | |
10291 | int x, | |
10292 | int y); | |
10293 | void pango_renderer_draw_glyphs (PangoRenderer *renderer, | |
10294 | PangoFont *font, | |
10295 | PangoGlyphString *glyphs, | |
10296 | int x, | |
10297 | int y); | |
10298 | void pango_renderer_draw_rectangle (PangoRenderer *renderer, | |
10299 | PangoRenderPart part, | |
10300 | int x, | |
10301 | int y, | |
10302 | int width, | |
10303 | int height); | |
10304 | void pango_renderer_draw_error_underline (PangoRenderer *renderer, | |
10305 | int x, | |
10306 | int y, | |
10307 | int width, | |
10308 | int height); | |
10309 | void pango_renderer_draw_trapezoid (PangoRenderer *renderer, | |
10310 | PangoRenderPart part, | |
10311 | double y1_, | |
10312 | double x11, | |
10313 | double x21, | |
10314 | double y2, | |
10315 | double x12, | |
10316 | double x22); | |
10317 | void pango_renderer_draw_glyph (PangoRenderer *renderer, | |
10318 | PangoFont *font, | |
10319 | PangoGlyph glyph, | |
10320 | double x, | |
10321 | double y); | |
10322 | ||
10323 | void pango_renderer_activate (PangoRenderer *renderer); | |
10324 | void pango_renderer_deactivate (PangoRenderer *renderer); | |
10325 | ||
10326 | void pango_renderer_part_changed (PangoRenderer *renderer, | |
10327 | PangoRenderPart part); | |
10328 | ||
10329 | void pango_renderer_set_color (PangoRenderer *renderer, | |
10330 | PangoRenderPart part, | |
10331 | const PangoColor *color); | |
10332 | PangoColor *pango_renderer_get_color (PangoRenderer *renderer, | |
10333 | PangoRenderPart part); | |
10334 | ||
10335 | void pango_renderer_set_matrix (PangoRenderer *renderer, | |
10336 | const PangoMatrix *matrix); | |
10337 | const PangoMatrix *pango_renderer_get_matrix (PangoRenderer *renderer); | |
10338 | ||
10339 | ||
10340 | # 42 "/usr/include/pango-1.0/pango/pango.h" 2 | |
10341 | ||
10342 | ||
10343 | ||
10344 | # 1 "/usr/include/pango-1.0/pango/pango-utils.h" 1 | |
10345 | # 25 "/usr/include/pango-1.0/pango/pango-utils.h" | |
10346 | # 1 "/usr/include/stdio.h" 1 3 4 | |
10347 | # 30 "/usr/include/stdio.h" 3 4 | |
10348 | ||
10349 | ||
10350 | ||
10351 | ||
10352 | # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 1 3 4 | |
10353 | # 35 "/usr/include/stdio.h" 2 3 4 | |
10354 | # 45 "/usr/include/stdio.h" 3 4 | |
10355 | struct _IO_FILE; | |
10356 | ||
10357 | ||
10358 | ||
10359 | typedef struct _IO_FILE FILE; | |
10360 | ||
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | # 65 "/usr/include/stdio.h" 3 4 | |
10366 | typedef struct _IO_FILE __FILE; | |
10367 | # 75 "/usr/include/stdio.h" 3 4 | |
10368 | # 1 "/usr/include/libio.h" 1 3 4 | |
10369 | # 32 "/usr/include/libio.h" 3 4 | |
10370 | # 1 "/usr/include/_G_config.h" 1 3 4 | |
10371 | # 15 "/usr/include/_G_config.h" 3 4 | |
10372 | # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 1 3 4 | |
10373 | # 16 "/usr/include/_G_config.h" 2 3 4 | |
10374 | ||
10375 | ||
10376 | ||
10377 | ||
10378 | # 1 "/usr/include/wchar.h" 1 3 4 | |
10379 | # 78 "/usr/include/wchar.h" 3 4 | |
10380 | typedef struct | |
10381 | { | |
10382 | int __count; | |
10383 | union | |
10384 | { | |
10385 | ||
10386 | unsigned int __wch; | |
10387 | ||
10388 | ||
10389 | ||
10390 | char __wchb[4]; | |
10391 | } __value; | |
10392 | } __mbstate_t; | |
10393 | # 21 "/usr/include/_G_config.h" 2 3 4 | |
10394 | ||
10395 | typedef struct | |
10396 | { | |
10397 | __off_t __pos; | |
10398 | __mbstate_t __state; | |
10399 | } _G_fpos_t; | |
10400 | typedef struct | |
10401 | { | |
10402 | __off64_t __pos; | |
10403 | __mbstate_t __state; | |
10404 | } _G_fpos64_t; | |
10405 | # 53 "/usr/include/_G_config.h" 3 4 | |
10406 | typedef int _G_int16_t __attribute__ ((__mode__ (__HI__))); | |
10407 | typedef int _G_int32_t __attribute__ ((__mode__ (__SI__))); | |
10408 | typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__))); | |
10409 | typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__))); | |
10410 | # 33 "/usr/include/libio.h" 2 3 4 | |
10411 | # 170 "/usr/include/libio.h" 3 4 | |
10412 | struct _IO_jump_t; struct _IO_FILE; | |
10413 | # 180 "/usr/include/libio.h" 3 4 | |
10414 | typedef void _IO_lock_t; | |
10415 | ||
10416 | ||
10417 | ||
10418 | ||
10419 | ||
10420 | struct _IO_marker { | |
10421 | struct _IO_marker *_next; | |
10422 | struct _IO_FILE *_sbuf; | |
10423 | ||
10424 | ||
10425 | ||
10426 | int _pos; | |
10427 | # 203 "/usr/include/libio.h" 3 4 | |
10428 | }; | |
10429 | ||
10430 | ||
10431 | enum __codecvt_result | |
10432 | { | |
10433 | __codecvt_ok, | |
10434 | __codecvt_partial, | |
10435 | __codecvt_error, | |
10436 | __codecvt_noconv | |
10437 | }; | |
10438 | # 271 "/usr/include/libio.h" 3 4 | |
10439 | struct _IO_FILE { | |
10440 | int _flags; | |
10441 | ||
10442 | ||
10443 | ||
10444 | ||
10445 | char* _IO_read_ptr; | |
10446 | char* _IO_read_end; | |
10447 | char* _IO_read_base; | |
10448 | char* _IO_write_base; | |
10449 | char* _IO_write_ptr; | |
10450 | char* _IO_write_end; | |
10451 | char* _IO_buf_base; | |
10452 | char* _IO_buf_end; | |
10453 | ||
10454 | char *_IO_save_base; | |
10455 | char *_IO_backup_base; | |
10456 | char *_IO_save_end; | |
10457 | ||
10458 | struct _IO_marker *_markers; | |
10459 | ||
10460 | struct _IO_FILE *_chain; | |
10461 | ||
10462 | int _fileno; | |
10463 | ||
10464 | ||
10465 | ||
10466 | int _flags2; | |
10467 | ||
10468 | __off_t _old_offset; | |
10469 | ||
10470 | ||
10471 | ||
10472 | unsigned short _cur_column; | |
10473 | signed char _vtable_offset; | |
10474 | char _shortbuf[1]; | |
10475 | ||
10476 | ||
10477 | ||
10478 | _IO_lock_t *_lock; | |
10479 | # 319 "/usr/include/libio.h" 3 4 | |
10480 | __off64_t _offset; | |
10481 | # 328 "/usr/include/libio.h" 3 4 | |
10482 | void *__pad1; | |
10483 | void *__pad2; | |
10484 | void *__pad3; | |
10485 | void *__pad4; | |
10486 | size_t __pad5; | |
10487 | ||
10488 | int _mode; | |
10489 | ||
10490 | char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; | |
10491 | ||
10492 | }; | |
10493 | ||
10494 | ||
10495 | typedef struct _IO_FILE _IO_FILE; | |
10496 | ||
10497 | ||
10498 | struct _IO_FILE_plus; | |
10499 | ||
10500 | extern struct _IO_FILE_plus _IO_2_1_stdin_; | |
10501 | extern struct _IO_FILE_plus _IO_2_1_stdout_; | |
10502 | extern struct _IO_FILE_plus _IO_2_1_stderr_; | |
10503 | # 364 "/usr/include/libio.h" 3 4 | |
10504 | typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); | |
10505 | ||
10506 | ||
10507 | ||
10508 | ||
10509 | ||
10510 | ||
10511 | ||
10512 | typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf, | |
10513 | size_t __n); | |
10514 | ||
10515 | ||
10516 | ||
10517 | ||
10518 | ||
10519 | ||
10520 | ||
10521 | typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w); | |
10522 | ||
10523 | ||
10524 | typedef int __io_close_fn (void *__cookie); | |
10525 | # 416 "/usr/include/libio.h" 3 4 | |
10526 | extern int __underflow (_IO_FILE *); | |
10527 | extern int __uflow (_IO_FILE *); | |
10528 | extern int __overflow (_IO_FILE *, int); | |
10529 | # 458 "/usr/include/libio.h" 3 4 | |
10530 | extern int _IO_getc (_IO_FILE *__fp); | |
10531 | extern int _IO_putc (int __c, _IO_FILE *__fp); | |
10532 | extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__)); | |
10533 | extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__)); | |
10534 | ||
10535 | extern int _IO_peekc_locked (_IO_FILE *__fp); | |
10536 | ||
10537 | ||
10538 | ||
10539 | ||
10540 | ||
10541 | extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__)); | |
10542 | extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__)); | |
10543 | extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__)); | |
10544 | # 488 "/usr/include/libio.h" 3 4 | |
10545 | extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, | |
10546 | __gnuc_va_list, int *__restrict); | |
10547 | extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, | |
10548 | __gnuc_va_list); | |
10549 | extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t); | |
10550 | extern size_t _IO_sgetn (_IO_FILE *, void *, size_t); | |
10551 | ||
10552 | extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int); | |
10553 | extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int); | |
10554 | ||
10555 | extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__)); | |
10556 | # 76 "/usr/include/stdio.h" 2 3 4 | |
10557 | # 89 "/usr/include/stdio.h" 3 4 | |
10558 | ||
10559 | ||
10560 | ||
10561 | ||
10562 | typedef _G_fpos64_t fpos_t; | |
10563 | ||
10564 | ||
10565 | # 141 "/usr/include/stdio.h" 3 4 | |
10566 | # 1 "/usr/include/bits/stdio_lim.h" 1 3 4 | |
10567 | # 142 "/usr/include/stdio.h" 2 3 4 | |
10568 | ||
10569 | ||
10570 | ||
10571 | extern struct _IO_FILE *stdin; | |
10572 | extern struct _IO_FILE *stdout; | |
10573 | extern struct _IO_FILE *stderr; | |
10574 | ||
10575 | ||
10576 | ||
10577 | ||
10578 | ||
10579 | ||
10580 | ||
10581 | extern int remove (__const char *__filename) __attribute__ ((__nothrow__)); | |
10582 | ||
10583 | extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__)); | |
10584 | ||
10585 | ||
10586 | ||
10587 | ||
10588 | ||
10589 | ||
10590 | ||
10591 | ||
10592 | ||
10593 | # 175 "/usr/include/stdio.h" 3 4 | |
10594 | extern FILE *tmpfile (void) __asm__ ("" "tmpfile64") ; | |
10595 | # 186 "/usr/include/stdio.h" 3 4 | |
10596 | extern char *tmpnam (char *__s) __attribute__ ((__nothrow__)) ; | |
10597 | ||
10598 | ||
10599 | ||
10600 | ||
10601 | ||
10602 | extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__)) ; | |
10603 | # 204 "/usr/include/stdio.h" 3 4 | |
10604 | extern char *tempnam (__const char *__dir, __const char *__pfx) | |
10605 | __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ; | |
10606 | ||
10607 | ||
10608 | ||
10609 | ||
10610 | ||
10611 | ||
10612 | ||
10613 | ||
10614 | extern int fclose (FILE *__stream); | |
10615 | ||
10616 | ||
10617 | ||
10618 | ||
10619 | extern int fflush (FILE *__stream); | |
10620 | ||
10621 | # 229 "/usr/include/stdio.h" 3 4 | |
10622 | extern int fflush_unlocked (FILE *__stream); | |
10623 | # 243 "/usr/include/stdio.h" 3 4 | |
10624 | ||
10625 | # 260 "/usr/include/stdio.h" 3 4 | |
10626 | extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __asm__ ("" "fopen64") | |
10627 | ||
10628 | ; | |
10629 | extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64") | |
10630 | ||
10631 | ||
10632 | ; | |
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
10639 | # 283 "/usr/include/stdio.h" 3 4 | |
10640 | extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__)) ; | |
10641 | # 304 "/usr/include/stdio.h" 3 4 | |
10642 | ||
10643 | ||
10644 | ||
10645 | extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__)); | |
10646 | ||
10647 | ||
10648 | ||
10649 | extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, | |
10650 | int __modes, size_t __n) __attribute__ ((__nothrow__)); | |
10651 | ||
10652 | ||
10653 | ||
10654 | ||
10655 | ||
10656 | extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, | |
10657 | size_t __size) __attribute__ ((__nothrow__)); | |
10658 | ||
10659 | ||
10660 | extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__)); | |
10661 | ||
10662 | ||
10663 | ||
10664 | ||
10665 | ||
10666 | ||
10667 | ||
10668 | ||
10669 | extern int fprintf (FILE *__restrict __stream, | |
10670 | __const char *__restrict __format, ...); | |
10671 | ||
10672 | ||
10673 | ||
10674 | ||
10675 | extern int printf (__const char *__restrict __format, ...); | |
10676 | ||
10677 | extern int sprintf (char *__restrict __s, | |
10678 | __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); | |
10679 | ||
10680 | ||
10681 | ||
10682 | ||
10683 | ||
10684 | extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format, | |
10685 | __gnuc_va_list __arg); | |
10686 | ||
10687 | ||
10688 | ||
10689 | ||
10690 | extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg); | |
10691 | ||
10692 | extern int vsprintf (char *__restrict __s, __const char *__restrict __format, | |
10693 | __gnuc_va_list __arg) __attribute__ ((__nothrow__)); | |
10694 | ||
10695 | ||
10696 | ||
10697 | ||
10698 | ||
10699 | extern int snprintf (char *__restrict __s, size_t __maxlen, | |
10700 | __const char *__restrict __format, ...) | |
10701 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4))); | |
10702 | ||
10703 | extern int vsnprintf (char *__restrict __s, size_t __maxlen, | |
10704 | __const char *__restrict __format, __gnuc_va_list __arg) | |
10705 | __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0))); | |
10706 | ||
10707 | # 398 "/usr/include/stdio.h" 3 4 | |
10708 | ||
10709 | ||
10710 | ||
10711 | ||
10712 | ||
10713 | extern int fscanf (FILE *__restrict __stream, | |
10714 | __const char *__restrict __format, ...) ; | |
10715 | ||
10716 | ||
10717 | ||
10718 | ||
10719 | extern int scanf (__const char *__restrict __format, ...) ; | |
10720 | ||
10721 | extern int sscanf (__const char *__restrict __s, | |
10722 | __const char *__restrict __format, ...) __attribute__ ((__nothrow__)); | |
10723 | # 441 "/usr/include/stdio.h" 3 4 | |
10724 | ||
10725 | # 504 "/usr/include/stdio.h" 3 4 | |
10726 | ||
10727 | ||
10728 | ||
10729 | ||
10730 | ||
10731 | extern int fgetc (FILE *__stream); | |
10732 | extern int getc (FILE *__stream); | |
10733 | ||
10734 | ||
10735 | ||
10736 | ||
10737 | ||
10738 | extern int getchar (void); | |
10739 | ||
10740 | # 528 "/usr/include/stdio.h" 3 4 | |
10741 | extern int getc_unlocked (FILE *__stream); | |
10742 | extern int getchar_unlocked (void); | |
10743 | # 539 "/usr/include/stdio.h" 3 4 | |
10744 | extern int fgetc_unlocked (FILE *__stream); | |
10745 | ||
10746 | ||
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
10756 | extern int fputc (int __c, FILE *__stream); | |
10757 | extern int putc (int __c, FILE *__stream); | |
10758 | ||
10759 | ||
10760 | ||
10761 | ||
10762 | ||
10763 | extern int putchar (int __c); | |
10764 | ||
10765 | # 572 "/usr/include/stdio.h" 3 4 | |
10766 | extern int fputc_unlocked (int __c, FILE *__stream); | |
10767 | ||
10768 | ||
10769 | ||
10770 | ||
10771 | ||
10772 | ||
10773 | ||
10774 | extern int putc_unlocked (int __c, FILE *__stream); | |
10775 | extern int putchar_unlocked (int __c); | |
10776 | ||
10777 | ||
10778 | ||
10779 | ||
10780 | ||
10781 | ||
10782 | extern int getw (FILE *__stream); | |
10783 | ||
10784 | ||
10785 | extern int putw (int __w, FILE *__stream); | |
10786 | ||
10787 | ||
10788 | ||
10789 | ||
10790 | ||
10791 | ||
10792 | ||
10793 | ||
10794 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) | |
10795 | ; | |
10796 | ||
10797 | ||
10798 | ||
10799 | ||
10800 | ||
10801 | ||
10802 | extern char *gets (char *__s) ; | |
10803 | ||
10804 | # 653 "/usr/include/stdio.h" 3 4 | |
10805 | ||
10806 | ||
10807 | ||
10808 | ||
10809 | ||
10810 | extern int fputs (__const char *__restrict __s, FILE *__restrict __stream); | |
10811 | ||
10812 | ||
10813 | ||
10814 | ||
10815 | ||
10816 | extern int puts (__const char *__s); | |
10817 | ||
10818 | ||
10819 | ||
10820 | ||
10821 | ||
10822 | ||
10823 | extern int ungetc (int __c, FILE *__stream); | |
10824 | ||
10825 | ||
10826 | ||
10827 | ||
10828 | ||
10829 | ||
10830 | extern size_t fread (void *__restrict __ptr, size_t __size, | |
10831 | size_t __n, FILE *__restrict __stream) ; | |
10832 | ||
10833 | ||
10834 | ||
10835 | ||
10836 | extern size_t fwrite (__const void *__restrict __ptr, size_t __size, | |
10837 | size_t __n, FILE *__restrict __s) ; | |
10838 | ||
10839 | # 706 "/usr/include/stdio.h" 3 4 | |
10840 | extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, | |
10841 | size_t __n, FILE *__restrict __stream) ; | |
10842 | extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size, | |
10843 | size_t __n, FILE *__restrict __stream) ; | |
10844 | ||
10845 | ||
10846 | ||
10847 | ||
10848 | ||
10849 | ||
10850 | ||
10851 | ||
10852 | extern int fseek (FILE *__stream, long int __off, int __whence); | |
10853 | ||
10854 | ||
10855 | ||
10856 | ||
10857 | extern long int ftell (FILE *__stream) ; | |
10858 | ||
10859 | ||
10860 | ||
10861 | ||
10862 | extern void rewind (FILE *__stream); | |
10863 | ||
10864 | # 750 "/usr/include/stdio.h" 3 4 | |
10865 | extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64"); | |
10866 | ||
10867 | ||
10868 | extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64"); | |
10869 | ||
10870 | ||
10871 | ||
10872 | ||
10873 | ||
10874 | ||
10875 | ||
10876 | ||
10877 | # 775 "/usr/include/stdio.h" 3 4 | |
10878 | extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64"); | |
10879 | ||
10880 | extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __asm__ ("" "fsetpos64"); | |
10881 | ||
10882 | ||
10883 | ||
10884 | ||
10885 | ||
10886 | ||
10887 | ||
10888 | # 793 "/usr/include/stdio.h" 3 4 | |
10889 | ||
10890 | ||
10891 | extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__)); | |
10892 | ||
10893 | extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ; | |
10894 | ||
10895 | extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ; | |
10896 | ||
10897 | ||
10898 | ||
10899 | ||
10900 | extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__)); | |
10901 | extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; | |
10902 | extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; | |
10903 | ||
10904 | ||
10905 | ||
10906 | ||
10907 | ||
10908 | ||
10909 | ||
10910 | ||
10911 | extern void perror (__const char *__s); | |
10912 | ||
10913 | ||
10914 | ||
10915 | ||
10916 | ||
10917 | ||
10918 | # 1 "/usr/include/bits/sys_errlist.h" 1 3 4 | |
10919 | # 27 "/usr/include/bits/sys_errlist.h" 3 4 | |
10920 | extern int sys_nerr; | |
10921 | extern __const char *__const sys_errlist[]; | |
10922 | # 823 "/usr/include/stdio.h" 2 3 4 | |
10923 | ||
10924 | ||
10925 | ||
10926 | ||
10927 | extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ; | |
10928 | ||
10929 | ||
10930 | ||
10931 | ||
10932 | extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ; | |
10933 | # 842 "/usr/include/stdio.h" 3 4 | |
10934 | extern FILE *popen (__const char *__command, __const char *__modes) ; | |
10935 | ||
10936 | ||
10937 | ||
10938 | ||
10939 | ||
10940 | extern int pclose (FILE *__stream); | |
10941 | ||
10942 | ||
10943 | ||
10944 | ||
10945 | ||
10946 | extern char *ctermid (char *__s) __attribute__ ((__nothrow__)); | |
10947 | # 882 "/usr/include/stdio.h" 3 4 | |
10948 | extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__)); | |
10949 | ||
10950 | ||
10951 | ||
10952 | extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ; | |
10953 | ||
10954 | ||
10955 | extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__)); | |
10956 | # 903 "/usr/include/stdio.h" 3 4 | |
10957 | # 1 "/usr/include/bits/stdio.h" 1 3 4 | |
10958 | # 36 "/usr/include/bits/stdio.h" 3 4 | |
10959 | extern __inline int | |
10960 | vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg) | |
10961 | { | |
10962 | return vfprintf (stdout, __fmt, __arg); | |
10963 | } | |
10964 | ||
10965 | ||
10966 | ||
10967 | extern __inline int | |
10968 | getchar (void) | |
10969 | { | |
10970 | return _IO_getc (stdin); | |
10971 | } | |
10972 | ||
10973 | ||
10974 | ||
10975 | ||
10976 | extern __inline int | |
10977 | fgetc_unlocked (FILE *__fp) | |
10978 | { | |
10979 | return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); | |
10980 | } | |
10981 | ||
10982 | ||
10983 | ||
10984 | ||
10985 | ||
10986 | extern __inline int | |
10987 | getc_unlocked (FILE *__fp) | |
10988 | { | |
10989 | return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++); | |
10990 | } | |
10991 | ||
10992 | ||
10993 | extern __inline int | |
10994 | getchar_unlocked (void) | |
10995 | { | |
10996 | return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++); | |
10997 | } | |
10998 | ||
10999 | ||
11000 | ||
11001 | ||
11002 | extern __inline int | |
11003 | putchar (int __c) | |
11004 | { | |
11005 | return _IO_putc (__c, stdout); | |
11006 | } | |
11007 | ||
11008 | ||
11009 | ||
11010 | ||
11011 | extern __inline int | |
11012 | fputc_unlocked (int __c, FILE *__stream) | |
11013 | { | |
11014 | return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); | |
11015 | } | |
11016 | ||
11017 | ||
11018 | ||
11019 | ||
11020 | ||
11021 | extern __inline int | |
11022 | putc_unlocked (int __c, FILE *__stream) | |
11023 | { | |
11024 | return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c))); | |
11025 | } | |
11026 | ||
11027 | ||
11028 | extern __inline int | |
11029 | putchar_unlocked (int __c) | |
11030 | { | |
11031 | return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c))); | |
11032 | } | |
11033 | # 125 "/usr/include/bits/stdio.h" 3 4 | |
11034 | extern __inline int | |
11035 | __attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream) | |
11036 | { | |
11037 | return (((__stream)->_flags & 0x10) != 0); | |
11038 | } | |
11039 | ||
11040 | ||
11041 | extern __inline int | |
11042 | __attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream) | |
11043 | { | |
11044 | return (((__stream)->_flags & 0x20) != 0); | |
11045 | } | |
11046 | # 904 "/usr/include/stdio.h" 2 3 4 | |
11047 | # 912 "/usr/include/stdio.h" 3 4 | |
11048 | ||
11049 | # 26 "/usr/include/pango-1.0/pango/pango-utils.h" 2 | |
11050 | ||
11051 | ||
11052 | ||
11053 | ||
11054 | ||
11055 | char ** pango_split_file_list (const char *str); | |
11056 | ||
11057 | char *pango_trim_string (const char *str); | |
11058 | gint pango_read_line (FILE *stream, | |
11059 | GString *str); | |
11060 | gboolean pango_skip_space (const char **pos); | |
11061 | gboolean pango_scan_word (const char **pos, | |
11062 | GString *out); | |
11063 | gboolean pango_scan_string (const char **pos, | |
11064 | GString *out); | |
11065 | gboolean pango_scan_int (const char **pos, | |
11066 | int *out); | |
11067 | # 51 "/usr/include/pango-1.0/pango/pango-utils.h" | |
11068 | gboolean pango_parse_enum (GType type, | |
11069 | const char *str, | |
11070 | int *value, | |
11071 | gboolean warn, | |
11072 | char **possible_values); | |
11073 | # 64 "/usr/include/pango-1.0/pango/pango-utils.h" | |
11074 | gboolean pango_parse_style (const char *str, | |
11075 | PangoStyle *style, | |
11076 | gboolean warn); | |
11077 | gboolean pango_parse_variant (const char *str, | |
11078 | PangoVariant *variant, | |
11079 | gboolean warn); | |
11080 | gboolean pango_parse_weight (const char *str, | |
11081 | PangoWeight *weight, | |
11082 | gboolean warn); | |
11083 | gboolean pango_parse_stretch (const char *str, | |
11084 | PangoStretch *stretch, | |
11085 | gboolean warn); | |
11086 | # 97 "/usr/include/pango-1.0/pango/pango-utils.h" | |
11087 | void pango_quantize_line_geometry (int *thickness, | |
11088 | int *position); | |
11089 | ||
11090 | ||
11091 | ||
11092 | guint8 * pango_log2vis_get_embedding_levels (const gchar *text, | |
11093 | int length, | |
11094 | PangoDirection *pbase_dir); | |
11095 | ||
11096 | ||
11097 | ||
11098 | ||
11099 | gboolean pango_is_zero_width (gunichar ch) __attribute__((__const__)); | |
11100 | # 131 "/usr/include/pango-1.0/pango/pango-utils.h" | |
11101 | int pango_version (void) __attribute__((__const__)); | |
11102 | ||
11103 | ||
11104 | const char * pango_version_string (void) __attribute__((__const__)); | |
11105 | ||
11106 | ||
11107 | const char * pango_version_check (int required_major, | |
11108 | int required_minor, | |
11109 | int required_micro) __attribute__((__const__)); | |
11110 | ||
11111 | ||
11112 | # 46 "/usr/include/pango-1.0/pango/pango.h" 2 | |
11113 | # 34 "../gdk/gdktypes.h" 2 | |
11114 | # 51 "../gdk/gdktypes.h" | |
11115 | # 1 "../gdk/gdkconfig.h" 1 | |
11116 | # 52 "../gdk/gdktypes.h" 2 | |
11117 | ||
11118 | ||
11119 | ||
11120 | ||
11121 | ||
11122 | ||
11123 | ||
11124 | ||
11125 | ||
11126 | ||
11127 | ||
11128 | ||
11129 | typedef struct _GdkPoint GdkPoint; | |
11130 | typedef struct _GdkRectangle GdkRectangle; | |
11131 | typedef struct _GdkSegment GdkSegment; | |
11132 | typedef struct _GdkSpan GdkSpan; | |
11133 | ||
11134 | ||
11135 | ||
11136 | ||
11137 | ||
11138 | ||
11139 | typedef guint32 GdkWChar; | |
11140 | ||
11141 | typedef struct _GdkAtom *GdkAtom; | |
11142 | # 87 "../gdk/gdktypes.h" | |
11143 | typedef guint32 GdkNativeWindow; | |
11144 | ||
11145 | ||
11146 | ||
11147 | ||
11148 | typedef struct _GdkColor GdkColor; | |
11149 | typedef struct _GdkColormap GdkColormap; | |
11150 | typedef struct _GdkCursor GdkCursor; | |
11151 | typedef struct _GdkFont GdkFont; | |
11152 | typedef struct _GdkGC GdkGC; | |
11153 | typedef struct _GdkImage GdkImage; | |
11154 | typedef struct _GdkRegion GdkRegion; | |
11155 | typedef struct _GdkVisual GdkVisual; | |
11156 | ||
11157 | typedef struct _GdkDrawable GdkDrawable; | |
11158 | typedef struct _GdkDrawable GdkBitmap; | |
11159 | typedef struct _GdkDrawable GdkPixmap; | |
11160 | typedef struct _GdkDrawable GdkWindow; | |
11161 | typedef struct _GdkDisplay GdkDisplay; | |
11162 | typedef struct _GdkScreen GdkScreen; | |
11163 | ||
11164 | typedef enum | |
11165 | { | |
11166 | GDK_LSB_FIRST, | |
11167 | GDK_MSB_FIRST | |
11168 | } GdkByteOrder; | |
11169 | ||
11170 | ||
11171 | ||
11172 | typedef enum | |
11173 | { | |
11174 | GDK_SHIFT_MASK = 1 << 0, | |
11175 | GDK_LOCK_MASK = 1 << 1, | |
11176 | GDK_CONTROL_MASK = 1 << 2, | |
11177 | GDK_MOD1_MASK = 1 << 3, | |
11178 | GDK_MOD2_MASK = 1 << 4, | |
11179 | GDK_MOD3_MASK = 1 << 5, | |
11180 | GDK_MOD4_MASK = 1 << 6, | |
11181 | GDK_MOD5_MASK = 1 << 7, | |
11182 | GDK_BUTTON1_MASK = 1 << 8, | |
11183 | GDK_BUTTON2_MASK = 1 << 9, | |
11184 | GDK_BUTTON3_MASK = 1 << 10, | |
11185 | GDK_BUTTON4_MASK = 1 << 11, | |
11186 | GDK_BUTTON5_MASK = 1 << 12, | |
11187 | ||
11188 | ||
11189 | ||
11190 | ||
11191 | ||
11192 | GDK_SUPER_MASK = 1 << 26, | |
11193 | GDK_HYPER_MASK = 1 << 27, | |
11194 | GDK_META_MASK = 1 << 28, | |
11195 | ||
11196 | GDK_RELEASE_MASK = 1 << 30, | |
11197 | ||
11198 | GDK_MODIFIER_MASK = 0x5c001fff | |
11199 | } GdkModifierType; | |
11200 | ||
11201 | typedef enum | |
11202 | { | |
11203 | GDK_INPUT_READ = 1 << 0, | |
11204 | GDK_INPUT_WRITE = 1 << 1, | |
11205 | GDK_INPUT_EXCEPTION = 1 << 2 | |
11206 | } GdkInputCondition; | |
11207 | ||
11208 | typedef enum | |
11209 | { | |
11210 | GDK_OK = 0, | |
11211 | GDK_ERROR = -1, | |
11212 | GDK_ERROR_PARAM = -2, | |
11213 | GDK_ERROR_FILE = -3, | |
11214 | GDK_ERROR_MEM = -4 | |
11215 | } GdkStatus; | |
11216 | ||
11217 | ||
11218 | ||
11219 | ||
11220 | ||
11221 | typedef enum | |
11222 | { | |
11223 | GDK_GRAB_SUCCESS = 0, | |
11224 | GDK_GRAB_ALREADY_GRABBED = 1, | |
11225 | GDK_GRAB_INVALID_TIME = 2, | |
11226 | GDK_GRAB_NOT_VIEWABLE = 3, | |
11227 | GDK_GRAB_FROZEN = 4 | |
11228 | } GdkGrabStatus; | |
11229 | ||
11230 | typedef void (*GdkInputFunction) (gpointer data, | |
11231 | gint source, | |
11232 | GdkInputCondition condition); | |
11233 | ||
11234 | typedef void (*GdkDestroyNotify) (gpointer data); | |
11235 | ||
11236 | struct _GdkPoint | |
11237 | { | |
11238 | gint x; | |
11239 | gint y; | |
11240 | }; | |
11241 | ||
11242 | struct _GdkRectangle | |
11243 | { | |
11244 | gint x; | |
11245 | gint y; | |
11246 | gint width; | |
11247 | gint height; | |
11248 | }; | |
11249 | ||
11250 | struct _GdkSegment | |
11251 | { | |
11252 | gint x1; | |
11253 | gint y1; | |
11254 | gint x2; | |
11255 | gint y2; | |
11256 | }; | |
11257 | ||
11258 | struct _GdkSpan | |
11259 | { | |
11260 | gint x; | |
11261 | gint y; | |
11262 | gint width; | |
11263 | }; | |
11264 | ||
11265 | ||
11266 | # 32 "../gdk/gdkcolor.h" 2 | |
11267 | ||
11268 | ||
11269 | # 42 "../gdk/gdkcolor.h" | |
11270 | struct _GdkColor | |
11271 | { | |
11272 | guint32 pixel; | |
11273 | guint16 red; | |
11274 | guint16 green; | |
11275 | guint16 blue; | |
11276 | }; | |
11277 | ||
11278 | ||
11279 | ||
11280 | ||
11281 | typedef struct _GdkColormapClass GdkColormapClass; | |
11282 | # 64 "../gdk/gdkcolor.h" | |
11283 | struct _GdkColormap | |
11284 | { | |
11285 | ||
11286 | GObject parent_instance; | |
11287 | ||
11288 | ||
11289 | gint size; | |
11290 | GdkColor *colors; | |
11291 | ||
11292 | ||
11293 | GdkVisual *visual; | |
11294 | ||
11295 | gpointer windowing_data; | |
11296 | }; | |
11297 | ||
11298 | struct _GdkColormapClass | |
11299 | { | |
11300 | GObjectClass parent_class; | |
11301 | ||
11302 | }; | |
11303 | ||
11304 | GType gdk_colormap_get_type (void) __attribute__((__const__)); | |
11305 | ||
11306 | GdkColormap* gdk_colormap_new (GdkVisual *visual, | |
11307 | gboolean allocate); | |
11308 | ||
11309 | ||
11310 | ||
11311 | ||
11312 | ||
11313 | ||
11314 | ||
11315 | GdkColormap* gdk_colormap_get_system (void); | |
11316 | ||
11317 | ||
11318 | GdkScreen *gdk_colormap_get_screen (GdkColormap *cmap); | |
11319 | # 111 "../gdk/gdkcolor.h" | |
11320 | gint gdk_colormap_alloc_colors (GdkColormap *colormap, | |
11321 | GdkColor *colors, | |
11322 | gint ncolors, | |
11323 | gboolean writeable, | |
11324 | gboolean best_match, | |
11325 | gboolean *success); | |
11326 | gboolean gdk_colormap_alloc_color (GdkColormap *colormap, | |
11327 | GdkColor *color, | |
11328 | gboolean writeable, | |
11329 | gboolean best_match); | |
11330 | void gdk_colormap_free_colors (GdkColormap *colormap, | |
11331 | GdkColor *colors, | |
11332 | gint ncolors); | |
11333 | void gdk_colormap_query_color (GdkColormap *colormap, | |
11334 | gulong pixel, | |
11335 | GdkColor *result); | |
11336 | ||
11337 | GdkVisual *gdk_colormap_get_visual (GdkColormap *colormap); | |
11338 | ||
11339 | GdkColor *gdk_color_copy (const GdkColor *color); | |
11340 | void gdk_color_free (GdkColor *color); | |
11341 | gboolean gdk_color_parse (const gchar *spec, | |
11342 | GdkColor *color); | |
11343 | guint gdk_color_hash (const GdkColor *colora); | |
11344 | gboolean gdk_color_equal (const GdkColor *colora, | |
11345 | const GdkColor *colorb); | |
11346 | gchar * gdk_color_to_string (const GdkColor *color); | |
11347 | ||
11348 | GType gdk_color_get_type (void) __attribute__((__const__)); | |
11349 | # 170 "../gdk/gdkcolor.h" | |
11350 | ||
11351 | # 24 "../gdk/gdkcairo.h" 2 | |
11352 | # 1 "../gdk/gdkpixbuf.h" 1 | |
11353 | # 32 "../gdk/gdkpixbuf.h" | |
11354 | # 1 "../gdk/gdkrgb.h" 1 | |
11355 | # 32 "../gdk/gdkrgb.h" | |
11356 | ||
11357 | ||
11358 | typedef struct _GdkRgbCmap GdkRgbCmap; | |
11359 | ||
11360 | struct _GdkRgbCmap { | |
11361 | guint32 colors[256]; | |
11362 | gint n_colors; | |
11363 | ||
11364 | ||
11365 | GSList *info_list; | |
11366 | }; | |
11367 | # 55 "../gdk/gdkrgb.h" | |
11368 | void gdk_rgb_find_color (GdkColormap *colormap, | |
11369 | GdkColor *color); | |
11370 | ||
11371 | typedef enum | |
11372 | { | |
11373 | GDK_RGB_DITHER_NONE, | |
11374 | GDK_RGB_DITHER_NORMAL, | |
11375 | GDK_RGB_DITHER_MAX | |
11376 | } GdkRgbDither; | |
11377 | ||
11378 | void gdk_draw_rgb_image (GdkDrawable *drawable, | |
11379 | GdkGC *gc, | |
11380 | gint x, | |
11381 | gint y, | |
11382 | gint width, | |
11383 | gint height, | |
11384 | GdkRgbDither dith, | |
11385 | guchar *rgb_buf, | |
11386 | gint rowstride); | |
11387 | void gdk_draw_rgb_image_dithalign (GdkDrawable *drawable, | |
11388 | GdkGC *gc, | |
11389 | gint x, | |
11390 | gint y, | |
11391 | gint width, | |
11392 | gint height, | |
11393 | GdkRgbDither dith, | |
11394 | guchar *rgb_buf, | |
11395 | gint rowstride, | |
11396 | gint xdith, | |
11397 | gint ydith); | |
11398 | void gdk_draw_rgb_32_image (GdkDrawable *drawable, | |
11399 | GdkGC *gc, | |
11400 | gint x, | |
11401 | gint y, | |
11402 | gint width, | |
11403 | gint height, | |
11404 | GdkRgbDither dith, | |
11405 | guchar *buf, | |
11406 | gint rowstride); | |
11407 | void gdk_draw_rgb_32_image_dithalign (GdkDrawable *drawable, | |
11408 | GdkGC *gc, | |
11409 | gint x, | |
11410 | gint y, | |
11411 | gint width, | |
11412 | gint height, | |
11413 | GdkRgbDither dith, | |
11414 | guchar *buf, | |
11415 | gint rowstride, | |
11416 | gint xdith, | |
11417 | gint ydith); | |
11418 | void gdk_draw_gray_image (GdkDrawable *drawable, | |
11419 | GdkGC *gc, | |
11420 | gint x, | |
11421 | gint y, | |
11422 | gint width, | |
11423 | gint height, | |
11424 | GdkRgbDither dith, | |
11425 | guchar *buf, | |
11426 | gint rowstride); | |
11427 | void gdk_draw_indexed_image (GdkDrawable *drawable, | |
11428 | GdkGC *gc, | |
11429 | gint x, | |
11430 | gint y, | |
11431 | gint width, | |
11432 | gint height, | |
11433 | GdkRgbDither dith, | |
11434 | guchar *buf, | |
11435 | gint rowstride, | |
11436 | GdkRgbCmap *cmap); | |
11437 | GdkRgbCmap *gdk_rgb_cmap_new (guint32 *colors, | |
11438 | gint n_colors); | |
11439 | void gdk_rgb_cmap_free (GdkRgbCmap *cmap); | |
11440 | ||
11441 | void gdk_rgb_set_verbose (gboolean verbose); | |
11442 | ||
11443 | ||
11444 | void gdk_rgb_set_install (gboolean install); | |
11445 | void gdk_rgb_set_min_colors (gint min_colors); | |
11446 | ||
11447 | ||
11448 | GdkColormap *gdk_rgb_get_colormap (void); | |
11449 | GdkVisual * gdk_rgb_get_visual (void); | |
11450 | gboolean gdk_rgb_ditherable (void); | |
11451 | gboolean gdk_rgb_colormap_ditherable (GdkColormap *cmap); | |
11452 | ||
11453 | ||
11454 | ||
11455 | # 33 "../gdk/gdkpixbuf.h" 2 | |
11456 | # 1 "../gdk-pixbuf/gdk-pixbuf.h" 1 | |
11457 | # 30 "../gdk-pixbuf/gdk-pixbuf.h" | |
11458 | # 1 "../gdk-pixbuf/gdk-pixbuf-features.h" 1 | |
11459 | # 36 "../gdk-pixbuf/gdk-pixbuf-features.h" | |
11460 | extern const guint gdk_pixbuf_major_version; | |
11461 | extern const guint gdk_pixbuf_minor_version; | |
11462 | extern const guint gdk_pixbuf_micro_version; | |
11463 | extern const char *gdk_pixbuf_version; | |
11464 | # 31 "../gdk-pixbuf/gdk-pixbuf.h" 2 | |
11465 | ||
11466 | ||
11467 | # 1 "../gdk-pixbuf/gdk-pixbuf-core.h" 1 | |
11468 | # 32 "../gdk-pixbuf/gdk-pixbuf-core.h" | |
11469 | ||
11470 | ||
11471 | ||
11472 | typedef enum | |
11473 | { | |
11474 | GDK_PIXBUF_ALPHA_BILEVEL, | |
11475 | GDK_PIXBUF_ALPHA_FULL | |
11476 | } GdkPixbufAlphaMode; | |
11477 | ||
11478 | ||
11479 | ||
11480 | ||
11481 | ||
11482 | typedef enum { | |
11483 | GDK_COLORSPACE_RGB | |
11484 | } GdkColorspace; | |
11485 | ||
11486 | ||
11487 | typedef struct _GdkPixbuf GdkPixbuf; | |
11488 | ||
11489 | ||
11490 | ||
11491 | ||
11492 | ||
11493 | ||
11494 | ||
11495 | typedef void (* GdkPixbufDestroyNotify) (guchar *pixels, gpointer data); | |
11496 | ||
11497 | ||
11498 | ||
11499 | typedef enum { | |
11500 | ||
11501 | GDK_PIXBUF_ERROR_CORRUPT_IMAGE, | |
11502 | ||
11503 | GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, | |
11504 | ||
11505 | GDK_PIXBUF_ERROR_BAD_OPTION, | |
11506 | ||
11507 | GDK_PIXBUF_ERROR_UNKNOWN_TYPE, | |
11508 | ||
11509 | GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION, | |
11510 | GDK_PIXBUF_ERROR_FAILED | |
11511 | } GdkPixbufError; | |
11512 | ||
11513 | GQuark gdk_pixbuf_error_quark (void); | |
11514 | ||
11515 | ||
11516 | ||
11517 | GType gdk_pixbuf_get_type (void) __attribute__((__const__)); | |
11518 | # 91 "../gdk-pixbuf/gdk-pixbuf-core.h" | |
11519 | GdkColorspace gdk_pixbuf_get_colorspace (const GdkPixbuf *pixbuf); | |
11520 | int gdk_pixbuf_get_n_channels (const GdkPixbuf *pixbuf); | |
11521 | gboolean gdk_pixbuf_get_has_alpha (const GdkPixbuf *pixbuf); | |
11522 | int gdk_pixbuf_get_bits_per_sample (const GdkPixbuf *pixbuf); | |
11523 | guchar *gdk_pixbuf_get_pixels (const GdkPixbuf *pixbuf); | |
11524 | int gdk_pixbuf_get_width (const GdkPixbuf *pixbuf); | |
11525 | int gdk_pixbuf_get_height (const GdkPixbuf *pixbuf); | |
11526 | int gdk_pixbuf_get_rowstride (const GdkPixbuf *pixbuf); | |
11527 | ||
11528 | ||
11529 | ||
11530 | ||
11531 | GdkPixbuf *gdk_pixbuf_new (GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample, | |
11532 | int width, int height); | |
11533 | ||
11534 | ||
11535 | ||
11536 | GdkPixbuf *gdk_pixbuf_copy (const GdkPixbuf *pixbuf); | |
11537 | ||
11538 | ||
11539 | GdkPixbuf *gdk_pixbuf_new_subpixbuf (GdkPixbuf *src_pixbuf, | |
11540 | int src_x, | |
11541 | int src_y, | |
11542 | int width, | |
11543 | int height); | |
11544 | # 126 "../gdk-pixbuf/gdk-pixbuf-core.h" | |
11545 | GdkPixbuf *gdk_pixbuf_new_from_file (const char *filename, | |
11546 | GError **error); | |
11547 | GdkPixbuf *gdk_pixbuf_new_from_file_at_size (const char *filename, | |
11548 | int width, | |
11549 | int height, | |
11550 | GError **error); | |
11551 | GdkPixbuf *gdk_pixbuf_new_from_file_at_scale (const char *filename, | |
11552 | int width, | |
11553 | int height, | |
11554 | gboolean preserve_aspect_ratio, | |
11555 | GError **error); | |
11556 | ||
11557 | GdkPixbuf *gdk_pixbuf_new_from_data (const guchar *data, | |
11558 | GdkColorspace colorspace, | |
11559 | gboolean has_alpha, | |
11560 | int bits_per_sample, | |
11561 | int width, int height, | |
11562 | int rowstride, | |
11563 | GdkPixbufDestroyNotify destroy_fn, | |
11564 | gpointer destroy_fn_data); | |
11565 | ||
11566 | GdkPixbuf *gdk_pixbuf_new_from_xpm_data (const char **data); | |
11567 | GdkPixbuf* gdk_pixbuf_new_from_inline (gint data_length, | |
11568 | const guint8 *data, | |
11569 | gboolean copy_pixels, | |
11570 | GError **error); | |
11571 | ||
11572 | ||
11573 | void gdk_pixbuf_fill (GdkPixbuf *pixbuf, | |
11574 | guint32 pixel); | |
11575 | # 165 "../gdk-pixbuf/gdk-pixbuf-core.h" | |
11576 | gboolean gdk_pixbuf_save (GdkPixbuf *pixbuf, | |
11577 | const char *filename, | |
11578 | const char *type, | |
11579 | GError **error, | |
11580 | ...) __attribute__((__sentinel__)); | |
11581 | ||
11582 | gboolean gdk_pixbuf_savev (GdkPixbuf *pixbuf, | |
11583 | const char *filename, | |
11584 | const char *type, | |
11585 | char **option_keys, | |
11586 | char **option_values, | |
11587 | GError **error); | |
11588 | ||
11589 | ||
11590 | ||
11591 | typedef gboolean (*GdkPixbufSaveFunc) (const gchar *buf, | |
11592 | gsize count, | |
11593 | GError **error, | |
11594 | gpointer data); | |
11595 | ||
11596 | gboolean gdk_pixbuf_save_to_callback (GdkPixbuf *pixbuf, | |
11597 | GdkPixbufSaveFunc save_func, | |
11598 | gpointer user_data, | |
11599 | const char *type, | |
11600 | GError **error, | |
11601 | ...) __attribute__((__sentinel__)); | |
11602 | ||
11603 | gboolean gdk_pixbuf_save_to_callbackv (GdkPixbuf *pixbuf, | |
11604 | GdkPixbufSaveFunc save_func, | |
11605 | gpointer user_data, | |
11606 | const char *type, | |
11607 | char **option_keys, | |
11608 | char **option_values, | |
11609 | GError **error); | |
11610 | ||
11611 | ||
11612 | ||
11613 | gboolean gdk_pixbuf_save_to_buffer (GdkPixbuf *pixbuf, | |
11614 | gchar **buffer, | |
11615 | gsize *buffer_size, | |
11616 | const char *type, | |
11617 | GError **error, | |
11618 | ...) __attribute__((__sentinel__)); | |
11619 | ||
11620 | gboolean gdk_pixbuf_save_to_bufferv (GdkPixbuf *pixbuf, | |
11621 | gchar **buffer, | |
11622 | gsize *buffer_size, | |
11623 | const char *type, | |
11624 | char **option_keys, | |
11625 | char **option_values, | |
11626 | GError **error); | |
11627 | ||
11628 | ||
11629 | GdkPixbuf *gdk_pixbuf_add_alpha (const GdkPixbuf *pixbuf, gboolean substitute_color, | |
11630 | guchar r, guchar g, guchar b); | |
11631 | ||
11632 | ||
11633 | void gdk_pixbuf_copy_area (const GdkPixbuf *src_pixbuf, | |
11634 | int src_x, int src_y, | |
11635 | int width, int height, | |
11636 | GdkPixbuf *dest_pixbuf, | |
11637 | int dest_x, int dest_y); | |
11638 | ||
11639 | ||
11640 | void gdk_pixbuf_saturate_and_pixelate (const GdkPixbuf *src, | |
11641 | GdkPixbuf *dest, | |
11642 | gfloat saturation, | |
11643 | gboolean pixelate); | |
11644 | ||
11645 | ||
11646 | GdkPixbuf *gdk_pixbuf_apply_embedded_orientation (GdkPixbuf *src); | |
11647 | ||
11648 | const gchar * gdk_pixbuf_get_option (GdkPixbuf *pixbuf, | |
11649 | const gchar *key); | |
11650 | ||
11651 | ||
11652 | ||
11653 | # 34 "../gdk-pixbuf/gdk-pixbuf.h" 2 | |
11654 | # 1 "../gdk-pixbuf/gdk-pixbuf-transform.h" 1 | |
11655 | # 33 "../gdk-pixbuf/gdk-pixbuf-transform.h" | |
11656 | ||
11657 | ||
11658 | ||
11659 | ||
11660 | ||
11661 | typedef enum { | |
11662 | GDK_INTERP_NEAREST, | |
11663 | GDK_INTERP_TILES, | |
11664 | GDK_INTERP_BILINEAR, | |
11665 | GDK_INTERP_HYPER | |
11666 | } GdkInterpType; | |
11667 | ||
11668 | typedef enum { | |
11669 | GDK_PIXBUF_ROTATE_NONE = 0, | |
11670 | GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE = 90, | |
11671 | GDK_PIXBUF_ROTATE_UPSIDEDOWN = 180, | |
11672 | GDK_PIXBUF_ROTATE_CLOCKWISE = 270 | |
11673 | } GdkPixbufRotation; | |
11674 | ||
11675 | void gdk_pixbuf_scale (const GdkPixbuf *src, | |
11676 | GdkPixbuf *dest, | |
11677 | int dest_x, | |
11678 | int dest_y, | |
11679 | int dest_width, | |
11680 | int dest_height, | |
11681 | double offset_x, | |
11682 | double offset_y, | |
11683 | double scale_x, | |
11684 | double scale_y, | |
11685 | GdkInterpType interp_type); | |
11686 | void gdk_pixbuf_composite (const GdkPixbuf *src, | |
11687 | GdkPixbuf *dest, | |
11688 | int dest_x, | |
11689 | int dest_y, | |
11690 | int dest_width, | |
11691 | int dest_height, | |
11692 | double offset_x, | |
11693 | double offset_y, | |
11694 | double scale_x, | |
11695 | double scale_y, | |
11696 | GdkInterpType interp_type, | |
11697 | int overall_alpha); | |
11698 | void gdk_pixbuf_composite_color (const GdkPixbuf *src, | |
11699 | GdkPixbuf *dest, | |
11700 | int dest_x, | |
11701 | int dest_y, | |
11702 | int dest_width, | |
11703 | int dest_height, | |
11704 | double offset_x, | |
11705 | double offset_y, | |
11706 | double scale_x, | |
11707 | double scale_y, | |
11708 | GdkInterpType interp_type, | |
11709 | int overall_alpha, | |
11710 | int check_x, | |
11711 | int check_y, | |
11712 | int check_size, | |
11713 | guint32 color1, | |
11714 | guint32 color2); | |
11715 | ||
11716 | GdkPixbuf *gdk_pixbuf_scale_simple (const GdkPixbuf *src, | |
11717 | int dest_width, | |
11718 | int dest_height, | |
11719 | GdkInterpType interp_type); | |
11720 | ||
11721 | GdkPixbuf *gdk_pixbuf_composite_color_simple (const GdkPixbuf *src, | |
11722 | int dest_width, | |
11723 | int dest_height, | |
11724 | GdkInterpType interp_type, | |
11725 | int overall_alpha, | |
11726 | int check_size, | |
11727 | guint32 color1, | |
11728 | guint32 color2); | |
11729 | ||
11730 | GdkPixbuf *gdk_pixbuf_rotate_simple (const GdkPixbuf *src, | |
11731 | GdkPixbufRotation angle); | |
11732 | GdkPixbuf *gdk_pixbuf_flip (const GdkPixbuf *src, | |
11733 | gboolean horizontal); | |
11734 | ||
11735 | ||
11736 | # 35 "../gdk-pixbuf/gdk-pixbuf.h" 2 | |
11737 | # 1 "../gdk-pixbuf/gdk-pixbuf-animation.h" 1 | |
11738 | # 34 "../gdk-pixbuf/gdk-pixbuf-animation.h" | |
11739 | ||
11740 | ||
11741 | ||
11742 | ||
11743 | typedef struct _GdkPixbufAnimation GdkPixbufAnimation; | |
11744 | typedef struct _GdkPixbufAnimationIter GdkPixbufAnimationIter; | |
11745 | # 49 "../gdk-pixbuf/gdk-pixbuf-animation.h" | |
11746 | GType gdk_pixbuf_animation_get_type (void) __attribute__((__const__)); | |
11747 | ||
11748 | ||
11749 | ||
11750 | ||
11751 | ||
11752 | GdkPixbufAnimation *gdk_pixbuf_animation_new_from_file (const char *filename, | |
11753 | GError **error); | |
11754 | ||
11755 | ||
11756 | ||
11757 | ||
11758 | ||
11759 | ||
11760 | int gdk_pixbuf_animation_get_width (GdkPixbufAnimation *animation); | |
11761 | int gdk_pixbuf_animation_get_height (GdkPixbufAnimation *animation); | |
11762 | gboolean gdk_pixbuf_animation_is_static_image (GdkPixbufAnimation *animation); | |
11763 | GdkPixbuf *gdk_pixbuf_animation_get_static_image (GdkPixbufAnimation *animation); | |
11764 | ||
11765 | GdkPixbufAnimationIter *gdk_pixbuf_animation_get_iter (GdkPixbufAnimation *animation, | |
11766 | const GTimeVal *start_time); | |
11767 | GType gdk_pixbuf_animation_iter_get_type (void) __attribute__((__const__)); | |
11768 | int gdk_pixbuf_animation_iter_get_delay_time (GdkPixbufAnimationIter *iter); | |
11769 | GdkPixbuf *gdk_pixbuf_animation_iter_get_pixbuf (GdkPixbufAnimationIter *iter); | |
11770 | gboolean gdk_pixbuf_animation_iter_on_currently_loading_frame (GdkPixbufAnimationIter *iter); | |
11771 | gboolean gdk_pixbuf_animation_iter_advance (GdkPixbufAnimationIter *iter, | |
11772 | const GTimeVal *current_time); | |
11773 | # 145 "../gdk-pixbuf/gdk-pixbuf-animation.h" | |
11774 | ||
11775 | # 36 "../gdk-pixbuf/gdk-pixbuf.h" 2 | |
11776 | # 1 "../gdk-pixbuf/gdk-pixbuf-simple-anim.h" 1 | |
11777 | # 29 "../gdk-pixbuf/gdk-pixbuf-simple-anim.h" | |
11778 | ||
11779 | ||
11780 | typedef struct _GdkPixbufSimpleAnim GdkPixbufSimpleAnim; | |
11781 | typedef struct _GdkPixbufSimpleAnimClass GdkPixbufSimpleAnimClass; | |
11782 | # 42 "../gdk-pixbuf/gdk-pixbuf-simple-anim.h" | |
11783 | GType gdk_pixbuf_simple_anim_get_type (void) __attribute__((__const__)); | |
11784 | GType gdk_pixbuf_simple_anim_iter_get_type (void) __attribute__((__const__)); | |
11785 | ||
11786 | GdkPixbufSimpleAnim *gdk_pixbuf_simple_anim_new (gint width, | |
11787 | gint height, | |
11788 | gfloat rate); | |
11789 | void gdk_pixbuf_simple_anim_add_frame (GdkPixbufSimpleAnim *animation, | |
11790 | GdkPixbuf *pixbuf); | |
11791 | ||
11792 | ||
11793 | # 37 "../gdk-pixbuf/gdk-pixbuf.h" 2 | |
11794 | # 1 "../gdk-pixbuf/gdk-pixbuf-io.h" 1 | |
11795 | # 34 "../gdk-pixbuf/gdk-pixbuf-io.h" | |
11796 | # 1 "/usr/include/glib-2.0/gmodule.h" 1 | |
11797 | # 32 "/usr/include/glib-2.0/gmodule.h" | |
11798 | ||
11799 | # 44 "/usr/include/glib-2.0/gmodule.h" | |
11800 | typedef enum | |
11801 | { | |
11802 | G_MODULE_BIND_LAZY = 1 << 0, | |
11803 | G_MODULE_BIND_LOCAL = 1 << 1, | |
11804 | G_MODULE_BIND_MASK = 0x03 | |
11805 | } GModuleFlags; | |
11806 | ||
11807 | typedef struct _GModule GModule; | |
11808 | typedef const gchar* (*GModuleCheckInit) (GModule *module); | |
11809 | typedef void (*GModuleUnload) (GModule *module); | |
11810 | ||
11811 | ||
11812 | ||
11813 | ||
11814 | ||
11815 | ||
11816 | ||
11817 | gboolean g_module_supported (void) __attribute__((__const__)); | |
11818 | ||
11819 | ||
11820 | GModule* g_module_open (const gchar *file_name, | |
11821 | GModuleFlags flags); | |
11822 | ||
11823 | ||
11824 | gboolean g_module_close (GModule *module); | |
11825 | ||
11826 | ||
11827 | void g_module_make_resident (GModule *module); | |
11828 | ||
11829 | ||
11830 | const gchar* g_module_error (void); | |
11831 | ||
11832 | ||
11833 | gboolean g_module_symbol (GModule *module, | |
11834 | const gchar *symbol_name, | |
11835 | gpointer *symbol); | |
11836 | ||
11837 | ||
11838 | const gchar* g_module_name (GModule *module); | |
11839 | # 95 "/usr/include/glib-2.0/gmodule.h" | |
11840 | gchar* g_module_build_path (const gchar *directory, | |
11841 | const gchar *module_name); | |
11842 | ||
11843 | ||
11844 | ||
11845 | # 35 "../gdk-pixbuf/gdk-pixbuf-io.h" 2 | |
11846 | ||
11847 | ||
11848 | ||
11849 | ||
11850 | ||
11851 | typedef struct _GdkPixbufFormat GdkPixbufFormat; | |
11852 | ||
11853 | GSList *gdk_pixbuf_get_formats (void); | |
11854 | gchar *gdk_pixbuf_format_get_name (GdkPixbufFormat *format); | |
11855 | gchar *gdk_pixbuf_format_get_description (GdkPixbufFormat *format); | |
11856 | gchar **gdk_pixbuf_format_get_mime_types (GdkPixbufFormat *format); | |
11857 | gchar **gdk_pixbuf_format_get_extensions (GdkPixbufFormat *format); | |
11858 | gboolean gdk_pixbuf_format_is_writable (GdkPixbufFormat *format); | |
11859 | gboolean gdk_pixbuf_format_is_scalable (GdkPixbufFormat *format); | |
11860 | gboolean gdk_pixbuf_format_is_disabled (GdkPixbufFormat *format); | |
11861 | void gdk_pixbuf_format_set_disabled (GdkPixbufFormat *format, | |
11862 | gboolean disabled); | |
11863 | gchar *gdk_pixbuf_format_get_license (GdkPixbufFormat *format); | |
11864 | ||
11865 | GdkPixbufFormat *gdk_pixbuf_get_file_info (const gchar *filename, | |
11866 | gint *width, | |
11867 | gint *height); | |
11868 | # 166 "../gdk-pixbuf/gdk-pixbuf-io.h" | |
11869 | ||
11870 | # 38 "../gdk-pixbuf/gdk-pixbuf.h" 2 | |
11871 | # 1 "../gdk-pixbuf/gdk-pixbuf-loader.h" 1 | |
11872 | # 35 "../gdk-pixbuf/gdk-pixbuf-loader.h" | |
11873 | ||
11874 | # 45 "../gdk-pixbuf/gdk-pixbuf-loader.h" | |
11875 | typedef struct _GdkPixbufLoader GdkPixbufLoader; | |
11876 | struct _GdkPixbufLoader | |
11877 | { | |
11878 | GObject parent_instance; | |
11879 | ||
11880 | ||
11881 | gpointer priv; | |
11882 | }; | |
11883 | ||
11884 | typedef struct _GdkPixbufLoaderClass GdkPixbufLoaderClass; | |
11885 | struct _GdkPixbufLoaderClass | |
11886 | { | |
11887 | GObjectClass parent_class; | |
11888 | ||
11889 | void (*size_prepared) (GdkPixbufLoader *loader, | |
11890 | int width, | |
11891 | int height); | |
11892 | ||
11893 | void (*area_prepared) (GdkPixbufLoader *loader); | |
11894 | ||
11895 | ||
11896 | void (*area_updated) (GdkPixbufLoader *loader, | |
11897 | int x, | |
11898 | int y, | |
11899 | int width, | |
11900 | int height); | |
11901 | ||
11902 | void (*closed) (GdkPixbufLoader *loader); | |
11903 | }; | |
11904 | ||
11905 | GType gdk_pixbuf_loader_get_type (void) __attribute__((__const__)); | |
11906 | GdkPixbufLoader * gdk_pixbuf_loader_new (void); | |
11907 | GdkPixbufLoader * gdk_pixbuf_loader_new_with_type (const char *image_type, | |
11908 | GError **error); | |
11909 | GdkPixbufLoader * gdk_pixbuf_loader_new_with_mime_type (const char *mime_type, | |
11910 | GError **error); | |
11911 | void gdk_pixbuf_loader_set_size (GdkPixbufLoader *loader, | |
11912 | int width, | |
11913 | int height); | |
11914 | gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader, | |
11915 | const guchar *buf, | |
11916 | gsize count, | |
11917 | GError **error); | |
11918 | GdkPixbuf * gdk_pixbuf_loader_get_pixbuf (GdkPixbufLoader *loader); | |
11919 | GdkPixbufAnimation * gdk_pixbuf_loader_get_animation (GdkPixbufLoader *loader); | |
11920 | gboolean gdk_pixbuf_loader_close (GdkPixbufLoader *loader, | |
11921 | GError **error); | |
11922 | GdkPixbufFormat *gdk_pixbuf_loader_get_format (GdkPixbufLoader *loader); | |
11923 | ||
11924 | ||
11925 | # 39 "../gdk-pixbuf/gdk-pixbuf.h" 2 | |
11926 | # 1 "../gdk-pixbuf/gdk-pixbuf-enum-types.h" 1 | |
11927 | # 9 "../gdk-pixbuf/gdk-pixbuf-enum-types.h" | |
11928 | ||
11929 | ||
11930 | GType gdk_pixbuf_alpha_mode_get_type (void) __attribute__((__const__)); | |
11931 | ||
11932 | GType gdk_colorspace_get_type (void) __attribute__((__const__)); | |
11933 | ||
11934 | GType gdk_pixbuf_error_get_type (void) __attribute__((__const__)); | |
11935 | ||
11936 | ||
11937 | GType gdk_interp_type_get_type (void) __attribute__((__const__)); | |
11938 | ||
11939 | GType gdk_pixbuf_rotation_get_type (void) __attribute__((__const__)); | |
11940 | ||
11941 | ||
11942 | # 40 "../gdk-pixbuf/gdk-pixbuf.h" 2 | |
11943 | # 34 "../gdk/gdkpixbuf.h" 2 | |
11944 | ||
11945 | ||
11946 | ||
11947 | ||
11948 | ||
11949 | void gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf, | |
11950 | GdkBitmap *bitmap, | |
11951 | int src_x, | |
11952 | int src_y, | |
11953 | int dest_x, | |
11954 | int dest_y, | |
11955 | int width, | |
11956 | int height, | |
11957 | int alpha_threshold); | |
11958 | # 75 "../gdk/gdkpixbuf.h" | |
11959 | void gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf *pixbuf, | |
11960 | GdkColormap *colormap, | |
11961 | GdkPixmap **pixmap_return, | |
11962 | GdkBitmap **mask_return, | |
11963 | int alpha_threshold); | |
11964 | ||
11965 | void gdk_pixbuf_render_pixmap_and_mask (GdkPixbuf *pixbuf, | |
11966 | GdkPixmap **pixmap_return, | |
11967 | GdkBitmap **mask_return, | |
11968 | int alpha_threshold); | |
11969 | ||
11970 | ||
11971 | ||
11972 | ||
11973 | GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf *dest, | |
11974 | GdkDrawable *src, | |
11975 | GdkColormap *cmap, | |
11976 | int src_x, | |
11977 | int src_y, | |
11978 | int dest_x, | |
11979 | int dest_y, | |
11980 | int width, | |
11981 | int height); | |
11982 | ||
11983 | GdkPixbuf *gdk_pixbuf_get_from_image (GdkPixbuf *dest, | |
11984 | GdkImage *src, | |
11985 | GdkColormap *cmap, | |
11986 | int src_x, | |
11987 | int src_y, | |
11988 | int dest_x, | |
11989 | int dest_y, | |
11990 | int width, | |
11991 | int height); | |
11992 | ||
11993 | ||
11994 | # 25 "../gdk/gdkcairo.h" 2 | |
11995 | # 1 "/usr/include/pango-1.0/pango/pangocairo.h" 1 | |
11996 | # 30 "/usr/include/pango-1.0/pango/pangocairo.h" | |
11997 | ||
11998 | # 41 "/usr/include/pango-1.0/pango/pangocairo.h" | |
11999 | typedef struct _PangoCairoFont PangoCairoFont; | |
12000 | # 55 "/usr/include/pango-1.0/pango/pangocairo.h" | |
12001 | typedef struct _PangoCairoFontMap PangoCairoFontMap; | |
12002 | ||
12003 | ||
12004 | ||
12005 | ||
12006 | typedef void (* PangoCairoShapeRendererFunc) (cairo_t *cr, | |
12007 | PangoAttrShape *attr, | |
12008 | gboolean do_path, | |
12009 | gpointer data); | |
12010 | ||
12011 | ||
12012 | ||
12013 | ||
12014 | GType pango_cairo_font_map_get_type (void) __attribute__((__const__)); | |
12015 | ||
12016 | PangoFontMap *pango_cairo_font_map_new (void); | |
12017 | PangoFontMap *pango_cairo_font_map_new_for_font_type (cairo_font_type_t fonttype); | |
12018 | PangoFontMap *pango_cairo_font_map_get_default (void); | |
12019 | cairo_font_type_t pango_cairo_font_map_get_font_type (PangoCairoFontMap *fontmap); | |
12020 | ||
12021 | void pango_cairo_font_map_set_resolution (PangoCairoFontMap *fontmap, | |
12022 | double dpi); | |
12023 | double pango_cairo_font_map_get_resolution (PangoCairoFontMap *fontmap); | |
12024 | PangoContext *pango_cairo_font_map_create_context (PangoCairoFontMap *fontmap); | |
12025 | ||
12026 | ||
12027 | ||
12028 | ||
12029 | GType pango_cairo_font_get_type (void) __attribute__((__const__)); | |
12030 | ||
12031 | cairo_scaled_font_t *pango_cairo_font_get_scaled_font (PangoCairoFont *font); | |
12032 | ||
12033 | ||
12034 | ||
12035 | void pango_cairo_update_context (cairo_t *cr, | |
12036 | PangoContext *context); | |
12037 | ||
12038 | void pango_cairo_context_set_font_options (PangoContext *context, | |
12039 | const cairo_font_options_t *options); | |
12040 | const cairo_font_options_t *pango_cairo_context_get_font_options (PangoContext *context); | |
12041 | ||
12042 | void pango_cairo_context_set_resolution (PangoContext *context, | |
12043 | double dpi); | |
12044 | double pango_cairo_context_get_resolution (PangoContext *context); | |
12045 | ||
12046 | void pango_cairo_context_set_shape_renderer (PangoContext *context, | |
12047 | PangoCairoShapeRendererFunc func, | |
12048 | gpointer data, | |
12049 | GDestroyNotify dnotify); | |
12050 | PangoCairoShapeRendererFunc pango_cairo_context_get_shape_renderer (PangoContext *context, | |
12051 | gpointer *data); | |
12052 | ||
12053 | ||
12054 | ||
12055 | PangoLayout *pango_cairo_create_layout (cairo_t *cr); | |
12056 | void pango_cairo_update_layout (cairo_t *cr, | |
12057 | PangoLayout *layout); | |
12058 | ||
12059 | ||
12060 | ||
12061 | ||
12062 | void pango_cairo_show_glyph_string (cairo_t *cr, | |
12063 | PangoFont *font, | |
12064 | PangoGlyphString *glyphs); | |
12065 | void pango_cairo_show_layout_line (cairo_t *cr, | |
12066 | PangoLayoutLine *line); | |
12067 | void pango_cairo_show_layout (cairo_t *cr, | |
12068 | PangoLayout *layout); | |
12069 | ||
12070 | void pango_cairo_show_error_underline (cairo_t *cr, | |
12071 | double x, | |
12072 | double y, | |
12073 | double width, | |
12074 | double height); | |
12075 | ||
12076 | ||
12077 | ||
12078 | ||
12079 | void pango_cairo_glyph_string_path (cairo_t *cr, | |
12080 | PangoFont *font, | |
12081 | PangoGlyphString *glyphs); | |
12082 | void pango_cairo_layout_line_path (cairo_t *cr, | |
12083 | PangoLayoutLine *line); | |
12084 | void pango_cairo_layout_path (cairo_t *cr, | |
12085 | PangoLayout *layout); | |
12086 | ||
12087 | void pango_cairo_error_underline_path (cairo_t *cr, | |
12088 | double x, | |
12089 | double y, | |
12090 | double width, | |
12091 | double height); | |
12092 | ||
12093 | ||
12094 | # 26 "../gdk/gdkcairo.h" 2 | |
12095 | ||
12096 | ||
12097 | ||
12098 | cairo_t *gdk_cairo_create (GdkDrawable *drawable); | |
12099 | ||
12100 | void gdk_cairo_set_source_color (cairo_t *cr, | |
12101 | GdkColor *color); | |
12102 | void gdk_cairo_set_source_pixbuf (cairo_t *cr, | |
12103 | GdkPixbuf *pixbuf, | |
12104 | double pixbuf_x, | |
12105 | double pixbuf_y); | |
12106 | void gdk_cairo_set_source_pixmap (cairo_t *cr, | |
12107 | GdkPixmap *pixmap, | |
12108 | double pixmap_x, | |
12109 | double pixmap_y); | |
12110 | ||
12111 | void gdk_cairo_rectangle (cairo_t *cr, | |
12112 | GdkRectangle *rectangle); | |
12113 | void gdk_cairo_region (cairo_t *cr, | |
12114 | GdkRegion *region); | |
12115 | ||
12116 | ||
12117 | # 31 "../gdk/gdk.h" 2 | |
12118 | ||
12119 | # 1 "../gdk/gdkcursor.h" 1 | |
12120 | # 33 "../gdk/gdkcursor.h" | |
12121 | ||
12122 | ||
12123 | ||
12124 | ||
12125 | ||
12126 | ||
12127 | typedef enum | |
12128 | { | |
12129 | GDK_X_CURSOR = 0, | |
12130 | GDK_ARROW = 2, | |
12131 | GDK_BASED_ARROW_DOWN = 4, | |
12132 | GDK_BASED_ARROW_UP = 6, | |
12133 | GDK_BOAT = 8, | |
12134 | GDK_BOGOSITY = 10, | |
12135 | GDK_BOTTOM_LEFT_CORNER = 12, | |
12136 | GDK_BOTTOM_RIGHT_CORNER = 14, | |
12137 | GDK_BOTTOM_SIDE = 16, | |
12138 | GDK_BOTTOM_TEE = 18, | |
12139 | GDK_BOX_SPIRAL = 20, | |
12140 | GDK_CENTER_PTR = 22, | |
12141 | GDK_CIRCLE = 24, | |
12142 | GDK_CLOCK = 26, | |
12143 | GDK_COFFEE_MUG = 28, | |
12144 | GDK_CROSS = 30, | |
12145 | GDK_CROSS_REVERSE = 32, | |
12146 | GDK_CROSSHAIR = 34, | |
12147 | GDK_DIAMOND_CROSS = 36, | |
12148 | GDK_DOT = 38, | |
12149 | GDK_DOTBOX = 40, | |
12150 | GDK_DOUBLE_ARROW = 42, | |
12151 | GDK_DRAFT_LARGE = 44, | |
12152 | GDK_DRAFT_SMALL = 46, | |
12153 | GDK_DRAPED_BOX = 48, | |
12154 | GDK_EXCHANGE = 50, | |
12155 | GDK_FLEUR = 52, | |
12156 | GDK_GOBBLER = 54, | |
12157 | GDK_GUMBY = 56, | |
12158 | GDK_HAND1 = 58, | |
12159 | GDK_HAND2 = 60, | |
12160 | GDK_HEART = 62, | |
12161 | GDK_ICON = 64, | |
12162 | GDK_IRON_CROSS = 66, | |
12163 | GDK_LEFT_PTR = 68, | |
12164 | GDK_LEFT_SIDE = 70, | |
12165 | GDK_LEFT_TEE = 72, | |
12166 | GDK_LEFTBUTTON = 74, | |
12167 | GDK_LL_ANGLE = 76, | |
12168 | GDK_LR_ANGLE = 78, | |
12169 | GDK_MAN = 80, | |
12170 | GDK_MIDDLEBUTTON = 82, | |
12171 | GDK_MOUSE = 84, | |
12172 | GDK_PENCIL = 86, | |
12173 | GDK_PIRATE = 88, | |
12174 | GDK_PLUS = 90, | |
12175 | GDK_QUESTION_ARROW = 92, | |
12176 | GDK_RIGHT_PTR = 94, | |
12177 | GDK_RIGHT_SIDE = 96, | |
12178 | GDK_RIGHT_TEE = 98, | |
12179 | GDK_RIGHTBUTTON = 100, | |
12180 | GDK_RTL_LOGO = 102, | |
12181 | GDK_SAILBOAT = 104, | |
12182 | GDK_SB_DOWN_ARROW = 106, | |
12183 | GDK_SB_H_DOUBLE_ARROW = 108, | |
12184 | GDK_SB_LEFT_ARROW = 110, | |
12185 | GDK_SB_RIGHT_ARROW = 112, | |
12186 | GDK_SB_UP_ARROW = 114, | |
12187 | GDK_SB_V_DOUBLE_ARROW = 116, | |
12188 | GDK_SHUTTLE = 118, | |
12189 | GDK_SIZING = 120, | |
12190 | GDK_SPIDER = 122, | |
12191 | GDK_SPRAYCAN = 124, | |
12192 | GDK_STAR = 126, | |
12193 | GDK_TARGET = 128, | |
12194 | GDK_TCROSS = 130, | |
12195 | GDK_TOP_LEFT_ARROW = 132, | |
12196 | GDK_TOP_LEFT_CORNER = 134, | |
12197 | GDK_TOP_RIGHT_CORNER = 136, | |
12198 | GDK_TOP_SIDE = 138, | |
12199 | GDK_TOP_TEE = 140, | |
12200 | GDK_TREK = 142, | |
12201 | GDK_UL_ANGLE = 144, | |
12202 | GDK_UMBRELLA = 146, | |
12203 | GDK_UR_ANGLE = 148, | |
12204 | GDK_WATCH = 150, | |
12205 | GDK_XTERM = 152, | |
12206 | GDK_LAST_CURSOR, | |
12207 | GDK_CURSOR_IS_PIXMAP = -1 | |
12208 | } GdkCursorType; | |
12209 | ||
12210 | struct _GdkCursor | |
12211 | { | |
12212 | GdkCursorType type; | |
12213 | ||
12214 | guint ref_count; | |
12215 | }; | |
12216 | ||
12217 | ||
12218 | ||
12219 | ||
12220 | GType gdk_cursor_get_type (void) __attribute__((__const__)); | |
12221 | ||
12222 | GdkCursor* gdk_cursor_new_for_display (GdkDisplay *display, | |
12223 | GdkCursorType cursor_type); | |
12224 | ||
12225 | GdkCursor* gdk_cursor_new (GdkCursorType cursor_type); | |
12226 | ||
12227 | GdkCursor* gdk_cursor_new_from_pixmap (GdkPixmap *source, | |
12228 | GdkPixmap *mask, | |
12229 | const GdkColor *fg, | |
12230 | const GdkColor *bg, | |
12231 | gint x, | |
12232 | gint y); | |
12233 | GdkCursor* gdk_cursor_new_from_pixbuf (GdkDisplay *display, | |
12234 | GdkPixbuf *pixbuf, | |
12235 | gint x, | |
12236 | gint y); | |
12237 | GdkDisplay* gdk_cursor_get_display (GdkCursor *cursor); | |
12238 | GdkCursor* gdk_cursor_ref (GdkCursor *cursor); | |
12239 | void gdk_cursor_unref (GdkCursor *cursor); | |
12240 | GdkCursor* gdk_cursor_new_from_name (GdkDisplay *display, | |
12241 | const gchar *name); | |
12242 | GdkPixbuf* gdk_cursor_get_image (GdkCursor *cursor); | |
12243 | ||
12244 | ||
12245 | ||
12246 | ||
12247 | ||
12248 | ||
12249 | # 33 "../gdk/gdk.h" 2 | |
12250 | # 1 "../gdk/gdkdisplay.h" 1 | |
12251 | # 28 "../gdk/gdkdisplay.h" | |
12252 | # 1 "../gdk/gdkevents.h" 1 | |
12253 | # 32 "../gdk/gdkevents.h" | |
12254 | # 1 "../gdk/gdkdnd.h" 1 | |
12255 | # 31 "../gdk/gdkdnd.h" | |
12256 | ||
12257 | ||
12258 | typedef struct _GdkDragContext GdkDragContext; | |
12259 | ||
12260 | typedef enum | |
12261 | { | |
12262 | GDK_ACTION_DEFAULT = 1 << 0, | |
12263 | GDK_ACTION_COPY = 1 << 1, | |
12264 | GDK_ACTION_MOVE = 1 << 2, | |
12265 | GDK_ACTION_LINK = 1 << 3, | |
12266 | GDK_ACTION_PRIVATE = 1 << 4, | |
12267 | GDK_ACTION_ASK = 1 << 5 | |
12268 | } GdkDragAction; | |
12269 | ||
12270 | typedef enum | |
12271 | { | |
12272 | GDK_DRAG_PROTO_MOTIF, | |
12273 | GDK_DRAG_PROTO_XDND, | |
12274 | GDK_DRAG_PROTO_ROOTWIN, | |
12275 | ||
12276 | GDK_DRAG_PROTO_NONE, | |
12277 | GDK_DRAG_PROTO_WIN32_DROPFILES, | |
12278 | GDK_DRAG_PROTO_OLE2, | |
12279 | GDK_DRAG_PROTO_LOCAL | |
12280 | } GdkDragProtocol; | |
12281 | ||
12282 | ||
12283 | ||
12284 | ||
12285 | ||
12286 | typedef struct _GdkDragContextClass GdkDragContextClass; | |
12287 | # 70 "../gdk/gdkdnd.h" | |
12288 | struct _GdkDragContext { | |
12289 | GObject parent_instance; | |
12290 | ||
12291 | ||
12292 | ||
12293 | GdkDragProtocol protocol; | |
12294 | ||
12295 | gboolean is_source; | |
12296 | ||
12297 | GdkWindow *source_window; | |
12298 | GdkWindow *dest_window; | |
12299 | ||
12300 | GList *targets; | |
12301 | GdkDragAction actions; | |
12302 | GdkDragAction suggested_action; | |
12303 | GdkDragAction action; | |
12304 | ||
12305 | guint32 start_time; | |
12306 | ||
12307 | ||
12308 | ||
12309 | gpointer windowing_data; | |
12310 | }; | |
12311 | ||
12312 | struct _GdkDragContextClass { | |
12313 | GObjectClass parent_class; | |
12314 | ||
12315 | ||
12316 | }; | |
12317 | ||
12318 | ||
12319 | ||
12320 | GType gdk_drag_context_get_type (void) __attribute__((__const__)); | |
12321 | GdkDragContext * gdk_drag_context_new (void); | |
12322 | # 112 "../gdk/gdkdnd.h" | |
12323 | void gdk_drag_status (GdkDragContext *context, | |
12324 | GdkDragAction action, | |
12325 | guint32 time_); | |
12326 | void gdk_drop_reply (GdkDragContext *context, | |
12327 | gboolean ok, | |
12328 | guint32 time_); | |
12329 | void gdk_drop_finish (GdkDragContext *context, | |
12330 | gboolean success, | |
12331 | guint32 time_); | |
12332 | GdkAtom gdk_drag_get_selection (GdkDragContext *context); | |
12333 | ||
12334 | ||
12335 | ||
12336 | GdkDragContext * gdk_drag_begin (GdkWindow *window, | |
12337 | GList *targets); | |
12338 | ||
12339 | guint32 gdk_drag_get_protocol_for_display (GdkDisplay *display, | |
12340 | guint32 xid, | |
12341 | GdkDragProtocol *protocol); | |
12342 | void gdk_drag_find_window_for_screen (GdkDragContext *context, | |
12343 | GdkWindow *drag_window, | |
12344 | GdkScreen *screen, | |
12345 | gint x_root, | |
12346 | gint y_root, | |
12347 | GdkWindow **dest_window, | |
12348 | GdkDragProtocol *protocol); | |
12349 | ||
12350 | ||
12351 | guint32 gdk_drag_get_protocol (guint32 xid, | |
12352 | GdkDragProtocol *protocol); | |
12353 | void gdk_drag_find_window (GdkDragContext *context, | |
12354 | GdkWindow *drag_window, | |
12355 | gint x_root, | |
12356 | gint y_root, | |
12357 | GdkWindow **dest_window, | |
12358 | GdkDragProtocol *protocol); | |
12359 | ||
12360 | ||
12361 | gboolean gdk_drag_motion (GdkDragContext *context, | |
12362 | GdkWindow *dest_window, | |
12363 | GdkDragProtocol protocol, | |
12364 | gint x_root, | |
12365 | gint y_root, | |
12366 | GdkDragAction suggested_action, | |
12367 | GdkDragAction possible_actions, | |
12368 | guint32 time_); | |
12369 | void gdk_drag_drop (GdkDragContext *context, | |
12370 | guint32 time_); | |
12371 | void gdk_drag_abort (GdkDragContext *context, | |
12372 | guint32 time_); | |
12373 | gboolean gdk_drag_drop_succeeded (GdkDragContext *context); | |
12374 | ||
12375 | ||
12376 | # 33 "../gdk/gdkevents.h" 2 | |
12377 | # 1 "../gdk/gdkinput.h" 1 | |
12378 | # 32 "../gdk/gdkinput.h" | |
12379 | ||
12380 | # 41 "../gdk/gdkinput.h" | |
12381 | typedef struct _GdkDeviceKey GdkDeviceKey; | |
12382 | typedef struct _GdkDeviceAxis GdkDeviceAxis; | |
12383 | typedef struct _GdkDevice GdkDevice; | |
12384 | typedef struct _GdkDeviceClass GdkDeviceClass; | |
12385 | typedef struct _GdkTimeCoord GdkTimeCoord; | |
12386 | ||
12387 | typedef enum | |
12388 | { | |
12389 | GDK_EXTENSION_EVENTS_NONE, | |
12390 | GDK_EXTENSION_EVENTS_ALL, | |
12391 | GDK_EXTENSION_EVENTS_CURSOR | |
12392 | } GdkExtensionMode; | |
12393 | ||
12394 | typedef enum | |
12395 | { | |
12396 | GDK_SOURCE_MOUSE, | |
12397 | GDK_SOURCE_PEN, | |
12398 | GDK_SOURCE_ERASER, | |
12399 | GDK_SOURCE_CURSOR | |
12400 | } GdkInputSource; | |
12401 | ||
12402 | typedef enum | |
12403 | { | |
12404 | GDK_MODE_DISABLED, | |
12405 | GDK_MODE_SCREEN, | |
12406 | GDK_MODE_WINDOW | |
12407 | } GdkInputMode; | |
12408 | ||
12409 | typedef enum | |
12410 | { | |
12411 | GDK_AXIS_IGNORE, | |
12412 | GDK_AXIS_X, | |
12413 | GDK_AXIS_Y, | |
12414 | GDK_AXIS_PRESSURE, | |
12415 | GDK_AXIS_XTILT, | |
12416 | GDK_AXIS_YTILT, | |
12417 | GDK_AXIS_WHEEL, | |
12418 | GDK_AXIS_LAST | |
12419 | } GdkAxisUse; | |
12420 | ||
12421 | struct _GdkDeviceKey | |
12422 | { | |
12423 | guint keyval; | |
12424 | GdkModifierType modifiers; | |
12425 | }; | |
12426 | ||
12427 | struct _GdkDeviceAxis | |
12428 | { | |
12429 | GdkAxisUse use; | |
12430 | gdouble min; | |
12431 | gdouble max; | |
12432 | }; | |
12433 | ||
12434 | struct _GdkDevice | |
12435 | { | |
12436 | GObject parent_instance; | |
12437 | ||
12438 | ||
12439 | gchar *name; | |
12440 | GdkInputSource source; | |
12441 | GdkInputMode mode; | |
12442 | gboolean has_cursor; | |
12443 | ||
12444 | gint num_axes; | |
12445 | GdkDeviceAxis *axes; | |
12446 | ||
12447 | gint num_keys; | |
12448 | GdkDeviceKey *keys; | |
12449 | }; | |
12450 | ||
12451 | ||
12452 | ||
12453 | ||
12454 | ||
12455 | ||
12456 | struct _GdkTimeCoord | |
12457 | { | |
12458 | guint32 time; | |
12459 | gdouble axes[128]; | |
12460 | }; | |
12461 | ||
12462 | GType gdk_device_get_type (void) __attribute__((__const__)); | |
12463 | ||
12464 | ||
12465 | ||
12466 | GList * gdk_devices_list (void); | |
12467 | ||
12468 | ||
12469 | ||
12470 | void gdk_device_set_source (GdkDevice *device, | |
12471 | GdkInputSource source); | |
12472 | ||
12473 | gboolean gdk_device_set_mode (GdkDevice *device, | |
12474 | GdkInputMode mode); | |
12475 | ||
12476 | void gdk_device_set_key (GdkDevice *device, | |
12477 | guint index_, | |
12478 | guint keyval, | |
12479 | GdkModifierType modifiers); | |
12480 | ||
12481 | void gdk_device_set_axis_use (GdkDevice *device, | |
12482 | guint index_, | |
12483 | GdkAxisUse use); | |
12484 | void gdk_device_get_state (GdkDevice *device, | |
12485 | GdkWindow *window, | |
12486 | gdouble *axes, | |
12487 | GdkModifierType *mask); | |
12488 | gboolean gdk_device_get_history (GdkDevice *device, | |
12489 | GdkWindow *window, | |
12490 | guint32 start, | |
12491 | guint32 stop, | |
12492 | GdkTimeCoord ***events, | |
12493 | gint *n_events); | |
12494 | void gdk_device_free_history (GdkTimeCoord **events, | |
12495 | gint n_events); | |
12496 | gboolean gdk_device_get_axis (GdkDevice *device, | |
12497 | gdouble *axes, | |
12498 | GdkAxisUse use, | |
12499 | gdouble *value); | |
12500 | ||
12501 | void gdk_input_set_extension_events (GdkWindow *window, | |
12502 | gint mask, | |
12503 | GdkExtensionMode mode); | |
12504 | ||
12505 | ||
12506 | GdkDevice *gdk_device_get_core_pointer (void); | |
12507 | ||
12508 | ||
12509 | ||
12510 | # 34 "../gdk/gdkevents.h" 2 | |
12511 | ||
12512 | ||
12513 | ||
12514 | ||
12515 | ||
12516 | ||
12517 | ||
12518 | ||
12519 | ||
12520 | typedef struct _GdkEventAny GdkEventAny; | |
12521 | typedef struct _GdkEventExpose GdkEventExpose; | |
12522 | typedef struct _GdkEventNoExpose GdkEventNoExpose; | |
12523 | typedef struct _GdkEventVisibility GdkEventVisibility; | |
12524 | typedef struct _GdkEventMotion GdkEventMotion; | |
12525 | typedef struct _GdkEventButton GdkEventButton; | |
12526 | typedef struct _GdkEventScroll GdkEventScroll; | |
12527 | typedef struct _GdkEventKey GdkEventKey; | |
12528 | typedef struct _GdkEventFocus GdkEventFocus; | |
12529 | typedef struct _GdkEventCrossing GdkEventCrossing; | |
12530 | typedef struct _GdkEventConfigure GdkEventConfigure; | |
12531 | typedef struct _GdkEventProperty GdkEventProperty; | |
12532 | typedef struct _GdkEventSelection GdkEventSelection; | |
12533 | typedef struct _GdkEventOwnerChange GdkEventOwnerChange; | |
12534 | typedef struct _GdkEventProximity GdkEventProximity; | |
12535 | typedef struct _GdkEventClient GdkEventClient; | |
12536 | typedef struct _GdkEventDND GdkEventDND; | |
12537 | typedef struct _GdkEventWindowState GdkEventWindowState; | |
12538 | typedef struct _GdkEventSetting GdkEventSetting; | |
12539 | typedef struct _GdkEventGrabBroken GdkEventGrabBroken; | |
12540 | ||
12541 | typedef union _GdkEvent GdkEvent; | |
12542 | ||
12543 | typedef void (*GdkEventFunc) (GdkEvent *event, | |
12544 | gpointer data); | |
12545 | ||
12546 | ||
12547 | ||
12548 | typedef void GdkXEvent; | |
12549 | ||
12550 | ||
12551 | ||
12552 | typedef enum { | |
12553 | GDK_FILTER_CONTINUE, | |
12554 | GDK_FILTER_TRANSLATE, | |
12555 | ||
12556 | ||
12557 | GDK_FILTER_REMOVE | |
12558 | } GdkFilterReturn; | |
12559 | ||
12560 | typedef GdkFilterReturn (*GdkFilterFunc) (GdkXEvent *xevent, | |
12561 | GdkEvent *event, | |
12562 | gpointer data); | |
12563 | # 111 "../gdk/gdkevents.h" | |
12564 | typedef enum | |
12565 | { | |
12566 | GDK_NOTHING = -1, | |
12567 | GDK_DELETE = 0, | |
12568 | GDK_DESTROY = 1, | |
12569 | GDK_EXPOSE = 2, | |
12570 | GDK_MOTION_NOTIFY = 3, | |
12571 | GDK_BUTTON_PRESS = 4, | |
12572 | GDK_2BUTTON_PRESS = 5, | |
12573 | GDK_3BUTTON_PRESS = 6, | |
12574 | GDK_BUTTON_RELEASE = 7, | |
12575 | GDK_KEY_PRESS = 8, | |
12576 | GDK_KEY_RELEASE = 9, | |
12577 | GDK_ENTER_NOTIFY = 10, | |
12578 | GDK_LEAVE_NOTIFY = 11, | |
12579 | GDK_FOCUS_CHANGE = 12, | |
12580 | GDK_CONFIGURE = 13, | |
12581 | GDK_MAP = 14, | |
12582 | GDK_UNMAP = 15, | |
12583 | GDK_PROPERTY_NOTIFY = 16, | |
12584 | GDK_SELECTION_CLEAR = 17, | |
12585 | GDK_SELECTION_REQUEST = 18, | |
12586 | GDK_SELECTION_NOTIFY = 19, | |
12587 | GDK_PROXIMITY_IN = 20, | |
12588 | GDK_PROXIMITY_OUT = 21, | |
12589 | GDK_DRAG_ENTER = 22, | |
12590 | GDK_DRAG_LEAVE = 23, | |
12591 | GDK_DRAG_MOTION = 24, | |
12592 | GDK_DRAG_STATUS = 25, | |
12593 | GDK_DROP_START = 26, | |
12594 | GDK_DROP_FINISHED = 27, | |
12595 | GDK_CLIENT_EVENT = 28, | |
12596 | GDK_VISIBILITY_NOTIFY = 29, | |
12597 | GDK_NO_EXPOSE = 30, | |
12598 | GDK_SCROLL = 31, | |
12599 | GDK_WINDOW_STATE = 32, | |
12600 | GDK_SETTING = 33, | |
12601 | GDK_OWNER_CHANGE = 34, | |
12602 | GDK_GRAB_BROKEN = 35 | |
12603 | } GdkEventType; | |
12604 | ||
12605 | ||
12606 | ||
12607 | ||
12608 | typedef enum | |
12609 | { | |
12610 | GDK_EXPOSURE_MASK = 1 << 1, | |
12611 | GDK_POINTER_MOTION_MASK = 1 << 2, | |
12612 | GDK_POINTER_MOTION_HINT_MASK = 1 << 3, | |
12613 | GDK_BUTTON_MOTION_MASK = 1 << 4, | |
12614 | GDK_BUTTON1_MOTION_MASK = 1 << 5, | |
12615 | GDK_BUTTON2_MOTION_MASK = 1 << 6, | |
12616 | GDK_BUTTON3_MOTION_MASK = 1 << 7, | |
12617 | GDK_BUTTON_PRESS_MASK = 1 << 8, | |
12618 | GDK_BUTTON_RELEASE_MASK = 1 << 9, | |
12619 | GDK_KEY_PRESS_MASK = 1 << 10, | |
12620 | GDK_KEY_RELEASE_MASK = 1 << 11, | |
12621 | GDK_ENTER_NOTIFY_MASK = 1 << 12, | |
12622 | GDK_LEAVE_NOTIFY_MASK = 1 << 13, | |
12623 | GDK_FOCUS_CHANGE_MASK = 1 << 14, | |
12624 | GDK_STRUCTURE_MASK = 1 << 15, | |
12625 | GDK_PROPERTY_CHANGE_MASK = 1 << 16, | |
12626 | GDK_VISIBILITY_NOTIFY_MASK = 1 << 17, | |
12627 | GDK_PROXIMITY_IN_MASK = 1 << 18, | |
12628 | GDK_PROXIMITY_OUT_MASK = 1 << 19, | |
12629 | GDK_SUBSTRUCTURE_MASK = 1 << 20, | |
12630 | GDK_SCROLL_MASK = 1 << 21, | |
12631 | GDK_ALL_EVENTS_MASK = 0x3FFFFE | |
12632 | } GdkEventMask; | |
12633 | ||
12634 | typedef enum | |
12635 | { | |
12636 | GDK_VISIBILITY_UNOBSCURED, | |
12637 | GDK_VISIBILITY_PARTIAL, | |
12638 | GDK_VISIBILITY_FULLY_OBSCURED | |
12639 | } GdkVisibilityState; | |
12640 | ||
12641 | typedef enum | |
12642 | { | |
12643 | GDK_SCROLL_UP, | |
12644 | GDK_SCROLL_DOWN, | |
12645 | GDK_SCROLL_LEFT, | |
12646 | GDK_SCROLL_RIGHT | |
12647 | } GdkScrollDirection; | |
12648 | # 204 "../gdk/gdkevents.h" | |
12649 | typedef enum | |
12650 | { | |
12651 | GDK_NOTIFY_ANCESTOR = 0, | |
12652 | GDK_NOTIFY_VIRTUAL = 1, | |
12653 | GDK_NOTIFY_INFERIOR = 2, | |
12654 | GDK_NOTIFY_NONLINEAR = 3, | |
12655 | GDK_NOTIFY_NONLINEAR_VIRTUAL = 4, | |
12656 | GDK_NOTIFY_UNKNOWN = 5 | |
12657 | } GdkNotifyType; | |
12658 | ||
12659 | ||
12660 | ||
12661 | ||
12662 | ||
12663 | ||
12664 | typedef enum | |
12665 | { | |
12666 | GDK_CROSSING_NORMAL, | |
12667 | GDK_CROSSING_GRAB, | |
12668 | GDK_CROSSING_UNGRAB | |
12669 | } GdkCrossingMode; | |
12670 | ||
12671 | typedef enum | |
12672 | { | |
12673 | GDK_PROPERTY_NEW_VALUE, | |
12674 | GDK_PROPERTY_DELETE | |
12675 | } GdkPropertyState; | |
12676 | ||
12677 | typedef enum | |
12678 | { | |
12679 | GDK_WINDOW_STATE_WITHDRAWN = 1 << 0, | |
12680 | GDK_WINDOW_STATE_ICONIFIED = 1 << 1, | |
12681 | GDK_WINDOW_STATE_MAXIMIZED = 1 << 2, | |
12682 | GDK_WINDOW_STATE_STICKY = 1 << 3, | |
12683 | GDK_WINDOW_STATE_FULLSCREEN = 1 << 4, | |
12684 | GDK_WINDOW_STATE_ABOVE = 1 << 5, | |
12685 | GDK_WINDOW_STATE_BELOW = 1 << 6 | |
12686 | } GdkWindowState; | |
12687 | ||
12688 | typedef enum | |
12689 | { | |
12690 | GDK_SETTING_ACTION_NEW, | |
12691 | GDK_SETTING_ACTION_CHANGED, | |
12692 | GDK_SETTING_ACTION_DELETED | |
12693 | } GdkSettingAction; | |
12694 | ||
12695 | typedef enum | |
12696 | { | |
12697 | GDK_OWNER_CHANGE_NEW_OWNER, | |
12698 | GDK_OWNER_CHANGE_DESTROY, | |
12699 | GDK_OWNER_CHANGE_CLOSE | |
12700 | } GdkOwnerChange; | |
12701 | ||
12702 | struct _GdkEventAny | |
12703 | { | |
12704 | GdkEventType type; | |
12705 | GdkWindow *window; | |
12706 | gint8 send_event; | |
12707 | }; | |
12708 | ||
12709 | struct _GdkEventExpose | |
12710 | { | |
12711 | GdkEventType type; | |
12712 | GdkWindow *window; | |
12713 | gint8 send_event; | |
12714 | GdkRectangle area; | |
12715 | GdkRegion *region; | |
12716 | gint count; | |
12717 | }; | |
12718 | ||
12719 | struct _GdkEventNoExpose | |
12720 | { | |
12721 | GdkEventType type; | |
12722 | GdkWindow *window; | |
12723 | gint8 send_event; | |
12724 | }; | |
12725 | ||
12726 | struct _GdkEventVisibility | |
12727 | { | |
12728 | GdkEventType type; | |
12729 | GdkWindow *window; | |
12730 | gint8 send_event; | |
12731 | GdkVisibilityState state; | |
12732 | }; | |
12733 | ||
12734 | struct _GdkEventMotion | |
12735 | { | |
12736 | GdkEventType type; | |
12737 | GdkWindow *window; | |
12738 | gint8 send_event; | |
12739 | guint32 time; | |
12740 | gdouble x; | |
12741 | gdouble y; | |
12742 | gdouble *axes; | |
12743 | guint state; | |
12744 | gint16 is_hint; | |
12745 | GdkDevice *device; | |
12746 | gdouble x_root, y_root; | |
12747 | }; | |
12748 | ||
12749 | struct _GdkEventButton | |
12750 | { | |
12751 | GdkEventType type; | |
12752 | GdkWindow *window; | |
12753 | gint8 send_event; | |
12754 | guint32 time; | |
12755 | gdouble x; | |
12756 | gdouble y; | |
12757 | gdouble *axes; | |
12758 | guint state; | |
12759 | guint button; | |
12760 | GdkDevice *device; | |
12761 | gdouble x_root, y_root; | |
12762 | }; | |
12763 | ||
12764 | struct _GdkEventScroll | |
12765 | { | |
12766 | GdkEventType type; | |
12767 | GdkWindow *window; | |
12768 | gint8 send_event; | |
12769 | guint32 time; | |
12770 | gdouble x; | |
12771 | gdouble y; | |
12772 | guint state; | |
12773 | GdkScrollDirection direction; | |
12774 | GdkDevice *device; | |
12775 | gdouble x_root, y_root; | |
12776 | }; | |
12777 | ||
12778 | struct _GdkEventKey | |
12779 | { | |
12780 | GdkEventType type; | |
12781 | GdkWindow *window; | |
12782 | gint8 send_event; | |
12783 | guint32 time; | |
12784 | guint state; | |
12785 | guint keyval; | |
12786 | gint length; | |
12787 | gchar *string; | |
12788 | guint16 hardware_keycode; | |
12789 | guint8 group; | |
12790 | guint is_modifier : 1; | |
12791 | }; | |
12792 | ||
12793 | struct _GdkEventCrossing | |
12794 | { | |
12795 | GdkEventType type; | |
12796 | GdkWindow *window; | |
12797 | gint8 send_event; | |
12798 | GdkWindow *subwindow; | |
12799 | guint32 time; | |
12800 | gdouble x; | |
12801 | gdouble y; | |
12802 | gdouble x_root; | |
12803 | gdouble y_root; | |
12804 | GdkCrossingMode mode; | |
12805 | GdkNotifyType detail; | |
12806 | gboolean focus; | |
12807 | guint state; | |
12808 | }; | |
12809 | ||
12810 | struct _GdkEventFocus | |
12811 | { | |
12812 | GdkEventType type; | |
12813 | GdkWindow *window; | |
12814 | gint8 send_event; | |
12815 | gint16 in; | |
12816 | }; | |
12817 | ||
12818 | struct _GdkEventConfigure | |
12819 | { | |
12820 | GdkEventType type; | |
12821 | GdkWindow *window; | |
12822 | gint8 send_event; | |
12823 | gint x, y; | |
12824 | gint width; | |
12825 | gint height; | |
12826 | }; | |
12827 | ||
12828 | struct _GdkEventProperty | |
12829 | { | |
12830 | GdkEventType type; | |
12831 | GdkWindow *window; | |
12832 | gint8 send_event; | |
12833 | GdkAtom atom; | |
12834 | guint32 time; | |
12835 | guint state; | |
12836 | }; | |
12837 | ||
12838 | struct _GdkEventSelection | |
12839 | { | |
12840 | GdkEventType type; | |
12841 | GdkWindow *window; | |
12842 | gint8 send_event; | |
12843 | GdkAtom selection; | |
12844 | GdkAtom target; | |
12845 | GdkAtom property; | |
12846 | guint32 time; | |
12847 | GdkNativeWindow requestor; | |
12848 | }; | |
12849 | ||
12850 | struct _GdkEventOwnerChange | |
12851 | { | |
12852 | GdkEventType type; | |
12853 | GdkWindow *window; | |
12854 | gint8 send_event; | |
12855 | GdkNativeWindow owner; | |
12856 | GdkOwnerChange reason; | |
12857 | GdkAtom selection; | |
12858 | guint32 time; | |
12859 | guint32 selection_time; | |
12860 | }; | |
12861 | ||
12862 | ||
12863 | ||
12864 | ||
12865 | struct _GdkEventProximity | |
12866 | { | |
12867 | GdkEventType type; | |
12868 | GdkWindow *window; | |
12869 | gint8 send_event; | |
12870 | guint32 time; | |
12871 | GdkDevice *device; | |
12872 | }; | |
12873 | ||
12874 | struct _GdkEventClient | |
12875 | { | |
12876 | GdkEventType type; | |
12877 | GdkWindow *window; | |
12878 | gint8 send_event; | |
12879 | GdkAtom message_type; | |
12880 | gushort data_format; | |
12881 | union { | |
12882 | char b[20]; | |
12883 | short s[10]; | |
12884 | long l[5]; | |
12885 | } data; | |
12886 | }; | |
12887 | ||
12888 | struct _GdkEventSetting | |
12889 | { | |
12890 | GdkEventType type; | |
12891 | GdkWindow *window; | |
12892 | gint8 send_event; | |
12893 | GdkSettingAction action; | |
12894 | char *name; | |
12895 | }; | |
12896 | ||
12897 | struct _GdkEventWindowState | |
12898 | { | |
12899 | GdkEventType type; | |
12900 | GdkWindow *window; | |
12901 | gint8 send_event; | |
12902 | GdkWindowState changed_mask; | |
12903 | GdkWindowState new_window_state; | |
12904 | }; | |
12905 | ||
12906 | struct _GdkEventGrabBroken { | |
12907 | GdkEventType type; | |
12908 | GdkWindow *window; | |
12909 | gint8 send_event; | |
12910 | gboolean keyboard; | |
12911 | gboolean implicit; | |
12912 | GdkWindow *grab_window; | |
12913 | }; | |
12914 | ||
12915 | ||
12916 | ||
12917 | struct _GdkEventDND { | |
12918 | GdkEventType type; | |
12919 | GdkWindow *window; | |
12920 | gint8 send_event; | |
12921 | GdkDragContext *context; | |
12922 | ||
12923 | guint32 time; | |
12924 | gshort x_root, y_root; | |
12925 | }; | |
12926 | ||
12927 | union _GdkEvent | |
12928 | { | |
12929 | GdkEventType type; | |
12930 | GdkEventAny any; | |
12931 | GdkEventExpose expose; | |
12932 | GdkEventNoExpose no_expose; | |
12933 | GdkEventVisibility visibility; | |
12934 | GdkEventMotion motion; | |
12935 | GdkEventButton button; | |
12936 | GdkEventScroll scroll; | |
12937 | GdkEventKey key; | |
12938 | GdkEventCrossing crossing; | |
12939 | GdkEventFocus focus_change; | |
12940 | GdkEventConfigure configure; | |
12941 | GdkEventProperty property; | |
12942 | GdkEventSelection selection; | |
12943 | GdkEventOwnerChange owner_change; | |
12944 | GdkEventProximity proximity; | |
12945 | GdkEventClient client; | |
12946 | GdkEventDND dnd; | |
12947 | GdkEventWindowState window_state; | |
12948 | GdkEventSetting setting; | |
12949 | GdkEventGrabBroken grab_broken; | |
12950 | }; | |
12951 | ||
12952 | GType gdk_event_get_type (void) __attribute__((__const__)); | |
12953 | ||
12954 | gboolean gdk_events_pending (void); | |
12955 | GdkEvent* gdk_event_get (void); | |
12956 | ||
12957 | GdkEvent* gdk_event_peek (void); | |
12958 | GdkEvent* gdk_event_get_graphics_expose (GdkWindow *window); | |
12959 | void gdk_event_put (GdkEvent *event); | |
12960 | ||
12961 | GdkEvent* gdk_event_new (GdkEventType type); | |
12962 | GdkEvent* gdk_event_copy (GdkEvent *event); | |
12963 | void gdk_event_free (GdkEvent *event); | |
12964 | ||
12965 | guint32 gdk_event_get_time (GdkEvent *event); | |
12966 | gboolean gdk_event_get_state (GdkEvent *event, | |
12967 | GdkModifierType *state); | |
12968 | gboolean gdk_event_get_coords (GdkEvent *event, | |
12969 | gdouble *x_win, | |
12970 | gdouble *y_win); | |
12971 | gboolean gdk_event_get_root_coords (GdkEvent *event, | |
12972 | gdouble *x_root, | |
12973 | gdouble *y_root); | |
12974 | gboolean gdk_event_get_axis (GdkEvent *event, | |
12975 | GdkAxisUse axis_use, | |
12976 | gdouble *value); | |
12977 | void gdk_event_request_motions (GdkEventMotion *event); | |
12978 | void gdk_event_handler_set (GdkEventFunc func, | |
12979 | gpointer data, | |
12980 | GDestroyNotify notify); | |
12981 | ||
12982 | void gdk_event_set_screen (GdkEvent *event, | |
12983 | GdkScreen *screen); | |
12984 | GdkScreen *gdk_event_get_screen (GdkEvent *event); | |
12985 | ||
12986 | void gdk_set_show_events (gboolean show_events); | |
12987 | gboolean gdk_get_show_events (void); | |
12988 | ||
12989 | ||
12990 | void gdk_add_client_message_filter (GdkAtom message_type, | |
12991 | GdkFilterFunc func, | |
12992 | gpointer data); | |
12993 | ||
12994 | gboolean gdk_setting_get (const gchar *name, | |
12995 | GValue *value); | |
12996 | ||
12997 | ||
12998 | ||
12999 | # 29 "../gdk/gdkdisplay.h" 2 | |
13000 | ||
13001 | ||
13002 | ||
13003 | ||
13004 | typedef struct _GdkDisplayClass GdkDisplayClass; | |
13005 | typedef struct _GdkDisplayPointerHooks GdkDisplayPointerHooks; | |
13006 | # 43 "../gdk/gdkdisplay.h" | |
13007 | struct _GdkDisplay | |
13008 | { | |
13009 | GObject parent_instance; | |
13010 | ||
13011 | ||
13012 | GList *queued_events; | |
13013 | GList *queued_tail; | |
13014 | ||
13015 | ||
13016 | ||
13017 | ||
13018 | guint32 button_click_time[2]; | |
13019 | GdkWindow *button_window[2]; | |
13020 | gint button_number[2]; | |
13021 | ||
13022 | guint double_click_time; | |
13023 | GdkDevice *core_pointer; | |
13024 | ||
13025 | const GdkDisplayPointerHooks *pointer_hooks; | |
13026 | ||
13027 | guint closed : 1; | |
13028 | ||
13029 | guint double_click_distance; | |
13030 | gint button_x[2]; | |
13031 | gint button_y[2]; | |
13032 | }; | |
13033 | ||
13034 | struct _GdkDisplayClass | |
13035 | { | |
13036 | GObjectClass parent_class; | |
13037 | ||
13038 | const gchar * (*get_display_name) (GdkDisplay *display); | |
13039 | gint (*get_n_screens) (GdkDisplay *display); | |
13040 | GdkScreen * (*get_screen) (GdkDisplay *display, | |
13041 | gint screen_num); | |
13042 | GdkScreen * (*get_default_screen) (GdkDisplay *display); | |
13043 | ||
13044 | ||
13045 | ||
13046 | void (*closed) (GdkDisplay *display, | |
13047 | gboolean is_error); | |
13048 | }; | |
13049 | ||
13050 | struct _GdkDisplayPointerHooks | |
13051 | { | |
13052 | void (*get_pointer) (GdkDisplay *display, | |
13053 | GdkScreen **screen, | |
13054 | gint *x, | |
13055 | gint *y, | |
13056 | GdkModifierType *mask); | |
13057 | GdkWindow* (*window_get_pointer) (GdkDisplay *display, | |
13058 | GdkWindow *window, | |
13059 | gint *x, | |
13060 | gint *y, | |
13061 | GdkModifierType *mask); | |
13062 | GdkWindow* (*window_at_pointer) (GdkDisplay *display, | |
13063 | gint *win_x, | |
13064 | gint *win_y); | |
13065 | }; | |
13066 | ||
13067 | GType gdk_display_get_type (void) __attribute__((__const__)); | |
13068 | GdkDisplay *gdk_display_open (const gchar *display_name); | |
13069 | ||
13070 | const gchar * gdk_display_get_name (GdkDisplay *display); | |
13071 | ||
13072 | gint gdk_display_get_n_screens (GdkDisplay *display); | |
13073 | GdkScreen * gdk_display_get_screen (GdkDisplay *display, | |
13074 | gint screen_num); | |
13075 | GdkScreen * gdk_display_get_default_screen (GdkDisplay *display); | |
13076 | void gdk_display_pointer_ungrab (GdkDisplay *display, | |
13077 | guint32 time_); | |
13078 | void gdk_display_keyboard_ungrab (GdkDisplay *display, | |
13079 | guint32 time_); | |
13080 | gboolean gdk_display_pointer_is_grabbed (GdkDisplay *display); | |
13081 | void gdk_display_beep (GdkDisplay *display); | |
13082 | void gdk_display_sync (GdkDisplay *display); | |
13083 | void gdk_display_flush (GdkDisplay *display); | |
13084 | ||
13085 | void gdk_display_close (GdkDisplay *display); | |
13086 | ||
13087 | GList * gdk_display_list_devices (GdkDisplay *display); | |
13088 | ||
13089 | GdkEvent* gdk_display_get_event (GdkDisplay *display); | |
13090 | GdkEvent* gdk_display_peek_event (GdkDisplay *display); | |
13091 | void gdk_display_put_event (GdkDisplay *display, | |
13092 | GdkEvent *event); | |
13093 | ||
13094 | void gdk_display_add_client_message_filter (GdkDisplay *display, | |
13095 | GdkAtom message_type, | |
13096 | GdkFilterFunc func, | |
13097 | gpointer data); | |
13098 | ||
13099 | void gdk_display_set_double_click_time (GdkDisplay *display, | |
13100 | guint msec); | |
13101 | void gdk_display_set_double_click_distance (GdkDisplay *display, | |
13102 | guint distance); | |
13103 | ||
13104 | GdkDisplay *gdk_display_get_default (void); | |
13105 | ||
13106 | GdkDevice *gdk_display_get_core_pointer (GdkDisplay *display); | |
13107 | ||
13108 | void gdk_display_get_pointer (GdkDisplay *display, | |
13109 | GdkScreen **screen, | |
13110 | gint *x, | |
13111 | gint *y, | |
13112 | GdkModifierType *mask); | |
13113 | GdkWindow * gdk_display_get_window_at_pointer (GdkDisplay *display, | |
13114 | gint *win_x, | |
13115 | gint *win_y); | |
13116 | void gdk_display_warp_pointer (GdkDisplay *display, | |
13117 | GdkScreen *screen, | |
13118 | gint x, | |
13119 | gint y); | |
13120 | ||
13121 | GdkDisplayPointerHooks *gdk_display_set_pointer_hooks (GdkDisplay *display, | |
13122 | const GdkDisplayPointerHooks *new_hooks); | |
13123 | ||
13124 | GdkDisplay *gdk_display_open_default_libgtk_only (void); | |
13125 | ||
13126 | gboolean gdk_display_supports_cursor_alpha (GdkDisplay *display); | |
13127 | gboolean gdk_display_supports_cursor_color (GdkDisplay *display); | |
13128 | guint gdk_display_get_default_cursor_size (GdkDisplay *display); | |
13129 | void gdk_display_get_maximal_cursor_size (GdkDisplay *display, | |
13130 | guint *width, | |
13131 | guint *height); | |
13132 | ||
13133 | GdkWindow *gdk_display_get_default_group (GdkDisplay *display); | |
13134 | ||
13135 | gboolean gdk_display_supports_selection_notification (GdkDisplay *display); | |
13136 | gboolean gdk_display_request_selection_notification (GdkDisplay *display, | |
13137 | GdkAtom selection); | |
13138 | ||
13139 | gboolean gdk_display_supports_clipboard_persistence (GdkDisplay *display); | |
13140 | void gdk_display_store_clipboard (GdkDisplay *display, | |
13141 | GdkWindow *clipboard_window, | |
13142 | guint32 time_, | |
13143 | GdkAtom *targets, | |
13144 | gint n_targets); | |
13145 | ||
13146 | gboolean gdk_display_supports_shapes (GdkDisplay *display); | |
13147 | gboolean gdk_display_supports_input_shapes (GdkDisplay *display); | |
13148 | gboolean gdk_display_supports_composite (GdkDisplay *display); | |
13149 | ||
13150 | ||
13151 | # 34 "../gdk/gdk.h" 2 | |
13152 | ||
13153 | # 1 "../gdk/gdkdrawable.h" 1 | |
13154 | # 30 "../gdk/gdkdrawable.h" | |
13155 | # 1 "../gdk/gdkgc.h" 1 | |
13156 | # 33 "../gdk/gdkgc.h" | |
13157 | ||
13158 | ||
13159 | typedef struct _GdkGCValues GdkGCValues; | |
13160 | typedef struct _GdkGCClass GdkGCClass; | |
13161 | ||
13162 | ||
13163 | ||
13164 | ||
13165 | ||
13166 | ||
13167 | ||
13168 | typedef enum | |
13169 | { | |
13170 | GDK_CAP_NOT_LAST, | |
13171 | GDK_CAP_BUTT, | |
13172 | GDK_CAP_ROUND, | |
13173 | GDK_CAP_PROJECTING | |
13174 | } GdkCapStyle; | |
13175 | ||
13176 | ||
13177 | ||
13178 | ||
13179 | ||
13180 | ||
13181 | ||
13182 | typedef enum | |
13183 | { | |
13184 | GDK_SOLID, | |
13185 | GDK_TILED, | |
13186 | GDK_STIPPLED, | |
13187 | GDK_OPAQUE_STIPPLED | |
13188 | } GdkFill; | |
13189 | # 84 "../gdk/gdkgc.h" | |
13190 | typedef enum | |
13191 | { | |
13192 | GDK_COPY, | |
13193 | GDK_INVERT, | |
13194 | GDK_XOR, | |
13195 | GDK_CLEAR, | |
13196 | GDK_AND, | |
13197 | GDK_AND_REVERSE, | |
13198 | GDK_AND_INVERT, | |
13199 | GDK_NOOP, | |
13200 | GDK_OR, | |
13201 | GDK_EQUIV, | |
13202 | GDK_OR_REVERSE, | |
13203 | GDK_COPY_INVERT, | |
13204 | GDK_OR_INVERT, | |
13205 | GDK_NAND, | |
13206 | GDK_NOR, | |
13207 | GDK_SET | |
13208 | } GdkFunction; | |
13209 | ||
13210 | ||
13211 | ||
13212 | ||
13213 | ||
13214 | ||
13215 | typedef enum | |
13216 | { | |
13217 | GDK_JOIN_MITER, | |
13218 | GDK_JOIN_ROUND, | |
13219 | GDK_JOIN_BEVEL | |
13220 | } GdkJoinStyle; | |
13221 | ||
13222 | ||
13223 | ||
13224 | ||
13225 | ||
13226 | ||
13227 | typedef enum | |
13228 | { | |
13229 | GDK_LINE_SOLID, | |
13230 | GDK_LINE_ON_OFF_DASH, | |
13231 | GDK_LINE_DOUBLE_DASH | |
13232 | } GdkLineStyle; | |
13233 | ||
13234 | typedef enum | |
13235 | { | |
13236 | GDK_CLIP_BY_CHILDREN = 0, | |
13237 | GDK_INCLUDE_INFERIORS = 1 | |
13238 | } GdkSubwindowMode; | |
13239 | ||
13240 | typedef enum | |
13241 | { | |
13242 | GDK_GC_FOREGROUND = 1 << 0, | |
13243 | GDK_GC_BACKGROUND = 1 << 1, | |
13244 | GDK_GC_FONT = 1 << 2, | |
13245 | GDK_GC_FUNCTION = 1 << 3, | |
13246 | GDK_GC_FILL = 1 << 4, | |
13247 | GDK_GC_TILE = 1 << 5, | |
13248 | GDK_GC_STIPPLE = 1 << 6, | |
13249 | GDK_GC_CLIP_MASK = 1 << 7, | |
13250 | GDK_GC_SUBWINDOW = 1 << 8, | |
13251 | GDK_GC_TS_X_ORIGIN = 1 << 9, | |
13252 | GDK_GC_TS_Y_ORIGIN = 1 << 10, | |
13253 | GDK_GC_CLIP_X_ORIGIN = 1 << 11, | |
13254 | GDK_GC_CLIP_Y_ORIGIN = 1 << 12, | |
13255 | GDK_GC_EXPOSURES = 1 << 13, | |
13256 | GDK_GC_LINE_WIDTH = 1 << 14, | |
13257 | GDK_GC_LINE_STYLE = 1 << 15, | |
13258 | GDK_GC_CAP_STYLE = 1 << 16, | |
13259 | GDK_GC_JOIN_STYLE = 1 << 17 | |
13260 | } GdkGCValuesMask; | |
13261 | ||
13262 | struct _GdkGCValues | |
13263 | { | |
13264 | GdkColor foreground; | |
13265 | GdkColor background; | |
13266 | GdkFont *font; | |
13267 | GdkFunction function; | |
13268 | GdkFill fill; | |
13269 | GdkPixmap *tile; | |
13270 | GdkPixmap *stipple; | |
13271 | GdkPixmap *clip_mask; | |
13272 | GdkSubwindowMode subwindow_mode; | |
13273 | gint ts_x_origin; | |
13274 | gint ts_y_origin; | |
13275 | gint clip_x_origin; | |
13276 | gint clip_y_origin; | |
13277 | gint graphics_exposures; | |
13278 | gint line_width; | |
13279 | GdkLineStyle line_style; | |
13280 | GdkCapStyle cap_style; | |
13281 | GdkJoinStyle join_style; | |
13282 | }; | |
13283 | # 185 "../gdk/gdkgc.h" | |
13284 | struct _GdkGC | |
13285 | { | |
13286 | GObject parent_instance; | |
13287 | ||
13288 | gint clip_x_origin; | |
13289 | gint clip_y_origin; | |
13290 | gint ts_x_origin; | |
13291 | gint ts_y_origin; | |
13292 | ||
13293 | GdkColormap *colormap; | |
13294 | }; | |
13295 | ||
13296 | struct _GdkGCClass | |
13297 | { | |
13298 | GObjectClass parent_class; | |
13299 | ||
13300 | void (*get_values) (GdkGC *gc, | |
13301 | GdkGCValues *values); | |
13302 | void (*set_values) (GdkGC *gc, | |
13303 | GdkGCValues *values, | |
13304 | GdkGCValuesMask mask); | |
13305 | void (*set_dashes) (GdkGC *gc, | |
13306 | gint dash_offset, | |
13307 | gint8 dash_list[], | |
13308 | gint n); | |
13309 | ||
13310 | ||
13311 | void (*_gdk_reserved1) (void); | |
13312 | void (*_gdk_reserved2) (void); | |
13313 | void (*_gdk_reserved3) (void); | |
13314 | void (*_gdk_reserved4) (void); | |
13315 | }; | |
13316 | ||
13317 | ||
13318 | GType gdk_gc_get_type (void) __attribute__((__const__)); | |
13319 | GdkGC *gdk_gc_new (GdkDrawable *drawable); | |
13320 | GdkGC *gdk_gc_new_with_values (GdkDrawable *drawable, | |
13321 | GdkGCValues *values, | |
13322 | GdkGCValuesMask values_mask); | |
13323 | ||
13324 | ||
13325 | ||
13326 | ||
13327 | ||
13328 | ||
13329 | void gdk_gc_get_values (GdkGC *gc, | |
13330 | GdkGCValues *values); | |
13331 | void gdk_gc_set_values (GdkGC *gc, | |
13332 | GdkGCValues *values, | |
13333 | GdkGCValuesMask values_mask); | |
13334 | void gdk_gc_set_foreground (GdkGC *gc, | |
13335 | const GdkColor *color); | |
13336 | void gdk_gc_set_background (GdkGC *gc, | |
13337 | const GdkColor *color); | |
13338 | ||
13339 | ||
13340 | ||
13341 | ||
13342 | void gdk_gc_set_function (GdkGC *gc, | |
13343 | GdkFunction function); | |
13344 | void gdk_gc_set_fill (GdkGC *gc, | |
13345 | GdkFill fill); | |
13346 | void gdk_gc_set_tile (GdkGC *gc, | |
13347 | GdkPixmap *tile); | |
13348 | void gdk_gc_set_stipple (GdkGC *gc, | |
13349 | GdkPixmap *stipple); | |
13350 | void gdk_gc_set_ts_origin (GdkGC *gc, | |
13351 | gint x, | |
13352 | gint y); | |
13353 | void gdk_gc_set_clip_origin (GdkGC *gc, | |
13354 | gint x, | |
13355 | gint y); | |
13356 | void gdk_gc_set_clip_mask (GdkGC *gc, | |
13357 | GdkBitmap *mask); | |
13358 | void gdk_gc_set_clip_rectangle (GdkGC *gc, | |
13359 | GdkRectangle *rectangle); | |
13360 | void gdk_gc_set_clip_region (GdkGC *gc, | |
13361 | GdkRegion *region); | |
13362 | void gdk_gc_set_subwindow (GdkGC *gc, | |
13363 | GdkSubwindowMode mode); | |
13364 | void gdk_gc_set_exposures (GdkGC *gc, | |
13365 | gboolean exposures); | |
13366 | void gdk_gc_set_line_attributes (GdkGC *gc, | |
13367 | gint line_width, | |
13368 | GdkLineStyle line_style, | |
13369 | GdkCapStyle cap_style, | |
13370 | GdkJoinStyle join_style); | |
13371 | void gdk_gc_set_dashes (GdkGC *gc, | |
13372 | gint dash_offset, | |
13373 | gint8 dash_list[], | |
13374 | gint n); | |
13375 | void gdk_gc_offset (GdkGC *gc, | |
13376 | gint x_offset, | |
13377 | gint y_offset); | |
13378 | void gdk_gc_copy (GdkGC *dst_gc, | |
13379 | GdkGC *src_gc); | |
13380 | ||
13381 | ||
13382 | void gdk_gc_set_colormap (GdkGC *gc, | |
13383 | GdkColormap *colormap); | |
13384 | GdkColormap *gdk_gc_get_colormap (GdkGC *gc); | |
13385 | void gdk_gc_set_rgb_fg_color (GdkGC *gc, | |
13386 | const GdkColor *color); | |
13387 | void gdk_gc_set_rgb_bg_color (GdkGC *gc, | |
13388 | const GdkColor *color); | |
13389 | GdkScreen * gdk_gc_get_screen (GdkGC *gc); | |
13390 | ||
13391 | ||
13392 | ||
13393 | ||
13394 | ||
13395 | ||
13396 | # 31 "../gdk/gdkdrawable.h" 2 | |
13397 | ||
13398 | ||
13399 | ||
13400 | ||
13401 | ||
13402 | ||
13403 | ||
13404 | typedef struct _GdkDrawableClass GdkDrawableClass; | |
13405 | typedef struct _GdkTrapezoid GdkTrapezoid; | |
13406 | # 48 "../gdk/gdkdrawable.h" | |
13407 | struct _GdkDrawable | |
13408 | { | |
13409 | GObject parent_instance; | |
13410 | }; | |
13411 | ||
13412 | struct _GdkDrawableClass | |
13413 | { | |
13414 | GObjectClass parent_class; | |
13415 | ||
13416 | GdkGC *(*create_gc) (GdkDrawable *drawable, | |
13417 | GdkGCValues *values, | |
13418 | GdkGCValuesMask mask); | |
13419 | void (*draw_rectangle) (GdkDrawable *drawable, | |
13420 | GdkGC *gc, | |
13421 | gboolean filled, | |
13422 | gint x, | |
13423 | gint y, | |
13424 | gint width, | |
13425 | gint height); | |
13426 | void (*draw_arc) (GdkDrawable *drawable, | |
13427 | GdkGC *gc, | |
13428 | gboolean filled, | |
13429 | gint x, | |
13430 | gint y, | |
13431 | gint width, | |
13432 | gint height, | |
13433 | gint angle1, | |
13434 | gint angle2); | |
13435 | void (*draw_polygon) (GdkDrawable *drawable, | |
13436 | GdkGC *gc, | |
13437 | gboolean filled, | |
13438 | GdkPoint *points, | |
13439 | gint npoints); | |
13440 | void (*draw_text) (GdkDrawable *drawable, | |
13441 | GdkFont *font, | |
13442 | GdkGC *gc, | |
13443 | gint x, | |
13444 | gint y, | |
13445 | const gchar *text, | |
13446 | gint text_length); | |
13447 | void (*draw_text_wc) (GdkDrawable *drawable, | |
13448 | GdkFont *font, | |
13449 | GdkGC *gc, | |
13450 | gint x, | |
13451 | gint y, | |
13452 | const GdkWChar *text, | |
13453 | gint text_length); | |
13454 | void (*draw_drawable) (GdkDrawable *drawable, | |
13455 | GdkGC *gc, | |
13456 | GdkDrawable *src, | |
13457 | gint xsrc, | |
13458 | gint ysrc, | |
13459 | gint xdest, | |
13460 | gint ydest, | |
13461 | gint width, | |
13462 | gint height); | |
13463 | void (*draw_points) (GdkDrawable *drawable, | |
13464 | GdkGC *gc, | |
13465 | GdkPoint *points, | |
13466 | gint npoints); | |
13467 | void (*draw_segments) (GdkDrawable *drawable, | |
13468 | GdkGC *gc, | |
13469 | GdkSegment *segs, | |
13470 | gint nsegs); | |
13471 | void (*draw_lines) (GdkDrawable *drawable, | |
13472 | GdkGC *gc, | |
13473 | GdkPoint *points, | |
13474 | gint npoints); | |
13475 | ||
13476 | void (*draw_glyphs) (GdkDrawable *drawable, | |
13477 | GdkGC *gc, | |
13478 | PangoFont *font, | |
13479 | gint x, | |
13480 | gint y, | |
13481 | PangoGlyphString *glyphs); | |
13482 | ||
13483 | void (*draw_image) (GdkDrawable *drawable, | |
13484 | GdkGC *gc, | |
13485 | GdkImage *image, | |
13486 | gint xsrc, | |
13487 | gint ysrc, | |
13488 | gint xdest, | |
13489 | gint ydest, | |
13490 | gint width, | |
13491 | gint height); | |
13492 | ||
13493 | gint (*get_depth) (GdkDrawable *drawable); | |
13494 | void (*get_size) (GdkDrawable *drawable, | |
13495 | gint *width, | |
13496 | gint *height); | |
13497 | ||
13498 | void (*set_colormap) (GdkDrawable *drawable, | |
13499 | GdkColormap *cmap); | |
13500 | ||
13501 | GdkColormap* (*get_colormap) (GdkDrawable *drawable); | |
13502 | GdkVisual* (*get_visual) (GdkDrawable *drawable); | |
13503 | GdkScreen* (*get_screen) (GdkDrawable *drawable); | |
13504 | ||
13505 | GdkImage* (*get_image) (GdkDrawable *drawable, | |
13506 | gint x, | |
13507 | gint y, | |
13508 | gint width, | |
13509 | gint height); | |
13510 | ||
13511 | GdkRegion* (*get_clip_region) (GdkDrawable *drawable); | |
13512 | GdkRegion* (*get_visible_region) (GdkDrawable *drawable); | |
13513 | ||
13514 | GdkDrawable* (*get_composite_drawable) (GdkDrawable *drawable, | |
13515 | gint x, | |
13516 | gint y, | |
13517 | gint width, | |
13518 | gint height, | |
13519 | gint *composite_x_offset, | |
13520 | gint *composite_y_offset); | |
13521 | ||
13522 | void (*draw_pixbuf) (GdkDrawable *drawable, | |
13523 | GdkGC *gc, | |
13524 | GdkPixbuf *pixbuf, | |
13525 | gint src_x, | |
13526 | gint src_y, | |
13527 | gint dest_x, | |
13528 | gint dest_y, | |
13529 | gint width, | |
13530 | gint height, | |
13531 | GdkRgbDither dither, | |
13532 | gint x_dither, | |
13533 | gint y_dither); | |
13534 | GdkImage* (*_copy_to_image) (GdkDrawable *drawable, | |
13535 | GdkImage *image, | |
13536 | gint src_x, | |
13537 | gint src_y, | |
13538 | gint dest_x, | |
13539 | gint dest_y, | |
13540 | gint width, | |
13541 | gint height); | |
13542 | ||
13543 | void (*draw_glyphs_transformed) (GdkDrawable *drawable, | |
13544 | GdkGC *gc, | |
13545 | PangoMatrix *matrix, | |
13546 | PangoFont *font, | |
13547 | gint x, | |
13548 | gint y, | |
13549 | PangoGlyphString *glyphs); | |
13550 | void (*draw_trapezoids) (GdkDrawable *drawable, | |
13551 | GdkGC *gc, | |
13552 | GdkTrapezoid *trapezoids, | |
13553 | gint n_trapezoids); | |
13554 | ||
13555 | cairo_surface_t *(*ref_cairo_surface) (GdkDrawable *drawable); | |
13556 | ||
13557 | ||
13558 | void (*_gdk_reserved4) (void); | |
13559 | void (*_gdk_reserved5) (void); | |
13560 | void (*_gdk_reserved6) (void); | |
13561 | void (*_gdk_reserved7) (void); | |
13562 | void (*_gdk_reserved9) (void); | |
13563 | void (*_gdk_reserved10) (void); | |
13564 | void (*_gdk_reserved11) (void); | |
13565 | void (*_gdk_reserved12) (void); | |
13566 | void (*_gdk_reserved13) (void); | |
13567 | void (*_gdk_reserved14) (void); | |
13568 | void (*_gdk_reserved15) (void); | |
13569 | void (*_gdk_reserved16) (void); | |
13570 | }; | |
13571 | ||
13572 | struct _GdkTrapezoid | |
13573 | { | |
13574 | double y1, x11, x21, y2, x12, x22; | |
13575 | }; | |
13576 | ||
13577 | GType gdk_drawable_get_type (void) __attribute__((__const__)); | |
13578 | # 232 "../gdk/gdkdrawable.h" | |
13579 | void gdk_drawable_get_size (GdkDrawable *drawable, | |
13580 | gint *width, | |
13581 | gint *height); | |
13582 | void gdk_drawable_set_colormap (GdkDrawable *drawable, | |
13583 | GdkColormap *colormap); | |
13584 | GdkColormap* gdk_drawable_get_colormap (GdkDrawable *drawable); | |
13585 | GdkVisual* gdk_drawable_get_visual (GdkDrawable *drawable); | |
13586 | gint gdk_drawable_get_depth (GdkDrawable *drawable); | |
13587 | GdkScreen* gdk_drawable_get_screen (GdkDrawable *drawable); | |
13588 | GdkDisplay* gdk_drawable_get_display (GdkDrawable *drawable); | |
13589 | # 250 "../gdk/gdkdrawable.h" | |
13590 | void gdk_draw_point (GdkDrawable *drawable, | |
13591 | GdkGC *gc, | |
13592 | gint x, | |
13593 | gint y); | |
13594 | void gdk_draw_line (GdkDrawable *drawable, | |
13595 | GdkGC *gc, | |
13596 | gint x1_, | |
13597 | gint y1_, | |
13598 | gint x2_, | |
13599 | gint y2_); | |
13600 | void gdk_draw_rectangle (GdkDrawable *drawable, | |
13601 | GdkGC *gc, | |
13602 | gboolean filled, | |
13603 | gint x, | |
13604 | gint y, | |
13605 | gint width, | |
13606 | gint height); | |
13607 | void gdk_draw_arc (GdkDrawable *drawable, | |
13608 | GdkGC *gc, | |
13609 | gboolean filled, | |
13610 | gint x, | |
13611 | gint y, | |
13612 | gint width, | |
13613 | gint height, | |
13614 | gint angle1, | |
13615 | gint angle2); | |
13616 | void gdk_draw_polygon (GdkDrawable *drawable, | |
13617 | GdkGC *gc, | |
13618 | gboolean filled, | |
13619 | GdkPoint *points, | |
13620 | gint npoints); | |
13621 | ||
13622 | ||
13623 | void gdk_draw_string (GdkDrawable *drawable, | |
13624 | GdkFont *font, | |
13625 | GdkGC *gc, | |
13626 | gint x, | |
13627 | gint y, | |
13628 | const gchar *string); | |
13629 | # 308 "../gdk/gdkdrawable.h" | |
13630 | void gdk_draw_drawable (GdkDrawable *drawable, | |
13631 | GdkGC *gc, | |
13632 | GdkDrawable *src, | |
13633 | gint xsrc, | |
13634 | gint ysrc, | |
13635 | gint xdest, | |
13636 | gint ydest, | |
13637 | gint width, | |
13638 | gint height); | |
13639 | void gdk_draw_image (GdkDrawable *drawable, | |
13640 | GdkGC *gc, | |
13641 | GdkImage *image, | |
13642 | gint xsrc, | |
13643 | gint ysrc, | |
13644 | gint xdest, | |
13645 | gint ydest, | |
13646 | gint width, | |
13647 | gint height); | |
13648 | void gdk_draw_points (GdkDrawable *drawable, | |
13649 | GdkGC *gc, | |
13650 | GdkPoint *points, | |
13651 | gint npoints); | |
13652 | void gdk_draw_segments (GdkDrawable *drawable, | |
13653 | GdkGC *gc, | |
13654 | GdkSegment *segs, | |
13655 | gint nsegs); | |
13656 | void gdk_draw_lines (GdkDrawable *drawable, | |
13657 | GdkGC *gc, | |
13658 | GdkPoint *points, | |
13659 | gint npoints); | |
13660 | void gdk_draw_pixbuf (GdkDrawable *drawable, | |
13661 | GdkGC *gc, | |
13662 | GdkPixbuf *pixbuf, | |
13663 | gint src_x, | |
13664 | gint src_y, | |
13665 | gint dest_x, | |
13666 | gint dest_y, | |
13667 | gint width, | |
13668 | gint height, | |
13669 | GdkRgbDither dither, | |
13670 | gint x_dither, | |
13671 | gint y_dither); | |
13672 | ||
13673 | void gdk_draw_glyphs (GdkDrawable *drawable, | |
13674 | GdkGC *gc, | |
13675 | PangoFont *font, | |
13676 | gint x, | |
13677 | gint y, | |
13678 | PangoGlyphString *glyphs); | |
13679 | void gdk_draw_layout_line (GdkDrawable *drawable, | |
13680 | GdkGC *gc, | |
13681 | gint x, | |
13682 | gint y, | |
13683 | PangoLayoutLine *line); | |
13684 | void gdk_draw_layout (GdkDrawable *drawable, | |
13685 | GdkGC *gc, | |
13686 | gint x, | |
13687 | gint y, | |
13688 | PangoLayout *layout); | |
13689 | ||
13690 | void gdk_draw_layout_line_with_colors (GdkDrawable *drawable, | |
13691 | GdkGC *gc, | |
13692 | gint x, | |
13693 | gint y, | |
13694 | PangoLayoutLine *line, | |
13695 | const GdkColor *foreground, | |
13696 | const GdkColor *background); | |
13697 | void gdk_draw_layout_with_colors (GdkDrawable *drawable, | |
13698 | GdkGC *gc, | |
13699 | gint x, | |
13700 | gint y, | |
13701 | PangoLayout *layout, | |
13702 | const GdkColor *foreground, | |
13703 | const GdkColor *background); | |
13704 | ||
13705 | void gdk_draw_glyphs_transformed (GdkDrawable *drawable, | |
13706 | GdkGC *gc, | |
13707 | PangoMatrix *matrix, | |
13708 | PangoFont *font, | |
13709 | gint x, | |
13710 | gint y, | |
13711 | PangoGlyphString *glyphs); | |
13712 | void gdk_draw_trapezoids (GdkDrawable *drawable, | |
13713 | GdkGC *gc, | |
13714 | GdkTrapezoid *trapezoids, | |
13715 | gint n_trapezoids); | |
13716 | ||
13717 | ||
13718 | ||
13719 | ||
13720 | ||
13721 | ||
13722 | GdkImage* gdk_drawable_get_image (GdkDrawable *drawable, | |
13723 | gint x, | |
13724 | gint y, | |
13725 | gint width, | |
13726 | gint height); | |
13727 | GdkImage *gdk_drawable_copy_to_image (GdkDrawable *drawable, | |
13728 | GdkImage *image, | |
13729 | gint src_x, | |
13730 | gint src_y, | |
13731 | gint dest_x, | |
13732 | gint dest_y, | |
13733 | gint width, | |
13734 | gint height); | |
13735 | ||
13736 | GdkRegion *gdk_drawable_get_clip_region (GdkDrawable *drawable); | |
13737 | GdkRegion *gdk_drawable_get_visible_region (GdkDrawable *drawable); | |
13738 | ||
13739 | ||
13740 | # 36 "../gdk/gdk.h" 2 | |
13741 | # 1 "../gdk/gdkenumtypes.h" 1 | |
13742 | # 9 "../gdk/gdkenumtypes.h" | |
13743 | ||
13744 | ||
13745 | GType gdk_cursor_type_get_type (void) __attribute__((__const__)); | |
13746 | ||
13747 | ||
13748 | GType gdk_drag_action_get_type (void) __attribute__((__const__)); | |
13749 | ||
13750 | GType gdk_drag_protocol_get_type (void) __attribute__((__const__)); | |
13751 | ||
13752 | ||
13753 | GType gdk_filter_return_get_type (void) __attribute__((__const__)); | |
13754 | ||
13755 | GType gdk_event_type_get_type (void) __attribute__((__const__)); | |
13756 | ||
13757 | GType gdk_event_mask_get_type (void) __attribute__((__const__)); | |
13758 | ||
13759 | GType gdk_visibility_state_get_type (void) __attribute__((__const__)); | |
13760 | ||
13761 | GType gdk_scroll_direction_get_type (void) __attribute__((__const__)); | |
13762 | ||
13763 | GType gdk_notify_type_get_type (void) __attribute__((__const__)); | |
13764 | ||
13765 | GType gdk_crossing_mode_get_type (void) __attribute__((__const__)); | |
13766 | ||
13767 | GType gdk_property_state_get_type (void) __attribute__((__const__)); | |
13768 | ||
13769 | GType gdk_window_state_get_type (void) __attribute__((__const__)); | |
13770 | ||
13771 | GType gdk_setting_action_get_type (void) __attribute__((__const__)); | |
13772 | ||
13773 | GType gdk_owner_change_get_type (void) __attribute__((__const__)); | |
13774 | ||
13775 | ||
13776 | GType gdk_font_type_get_type (void) __attribute__((__const__)); | |
13777 | ||
13778 | ||
13779 | GType gdk_cap_style_get_type (void) __attribute__((__const__)); | |
13780 | ||
13781 | GType gdk_fill_get_type (void) __attribute__((__const__)); | |
13782 | ||
13783 | GType gdk_function_get_type (void) __attribute__((__const__)); | |
13784 | ||
13785 | GType gdk_join_style_get_type (void) __attribute__((__const__)); | |
13786 | ||
13787 | GType gdk_line_style_get_type (void) __attribute__((__const__)); | |
13788 | ||
13789 | GType gdk_subwindow_mode_get_type (void) __attribute__((__const__)); | |
13790 | ||
13791 | GType gdk_gc_values_mask_get_type (void) __attribute__((__const__)); | |
13792 | ||
13793 | ||
13794 | GType gdk_image_type_get_type (void) __attribute__((__const__)); | |
13795 | ||
13796 | ||
13797 | GType gdk_extension_mode_get_type (void) __attribute__((__const__)); | |
13798 | ||
13799 | GType gdk_input_source_get_type (void) __attribute__((__const__)); | |
13800 | ||
13801 | GType gdk_input_mode_get_type (void) __attribute__((__const__)); | |
13802 | ||
13803 | GType gdk_axis_use_get_type (void) __attribute__((__const__)); | |
13804 | ||
13805 | ||
13806 | GType gdk_prop_mode_get_type (void) __attribute__((__const__)); | |
13807 | ||
13808 | ||
13809 | GType gdk_fill_rule_get_type (void) __attribute__((__const__)); | |
13810 | ||
13811 | GType gdk_overlap_type_get_type (void) __attribute__((__const__)); | |
13812 | ||
13813 | ||
13814 | GType gdk_rgb_dither_get_type (void) __attribute__((__const__)); | |
13815 | ||
13816 | ||
13817 | GType gdk_byte_order_get_type (void) __attribute__((__const__)); | |
13818 | ||
13819 | GType gdk_modifier_type_get_type (void) __attribute__((__const__)); | |
13820 | ||
13821 | GType gdk_input_condition_get_type (void) __attribute__((__const__)); | |
13822 | ||
13823 | GType gdk_status_get_type (void) __attribute__((__const__)); | |
13824 | ||
13825 | GType gdk_grab_status_get_type (void) __attribute__((__const__)); | |
13826 | ||
13827 | ||
13828 | GType gdk_visual_type_get_type (void) __attribute__((__const__)); | |
13829 | ||
13830 | ||
13831 | GType gdk_window_class_get_type (void) __attribute__((__const__)); | |
13832 | ||
13833 | GType gdk_window_type_get_type (void) __attribute__((__const__)); | |
13834 | ||
13835 | GType gdk_window_attributes_type_get_type (void) __attribute__((__const__)); | |
13836 | ||
13837 | GType gdk_window_hints_get_type (void) __attribute__((__const__)); | |
13838 | ||
13839 | GType gdk_window_type_hint_get_type (void) __attribute__((__const__)); | |
13840 | ||
13841 | GType gdk_wm_decoration_get_type (void) __attribute__((__const__)); | |
13842 | ||
13843 | GType gdk_wm_function_get_type (void) __attribute__((__const__)); | |
13844 | ||
13845 | GType gdk_gravity_get_type (void) __attribute__((__const__)); | |
13846 | ||
13847 | GType gdk_window_edge_get_type (void) __attribute__((__const__)); | |
13848 | ||
13849 | ||
13850 | # 37 "../gdk/gdk.h" 2 | |
13851 | ||
13852 | # 1 "../gdk/gdkfont.h" 1 | |
13853 | # 35 "../gdk/gdkfont.h" | |
13854 | ||
13855 | ||
13856 | ||
13857 | ||
13858 | ||
13859 | ||
13860 | ||
13861 | ||
13862 | typedef enum | |
13863 | { | |
13864 | GDK_FONT_FONT, | |
13865 | GDK_FONT_FONTSET | |
13866 | } GdkFontType; | |
13867 | ||
13868 | struct _GdkFont | |
13869 | { | |
13870 | GdkFontType type; | |
13871 | gint ascent; | |
13872 | gint descent; | |
13873 | }; | |
13874 | ||
13875 | GType gdk_font_get_type (void) __attribute__((__const__)); | |
13876 | ||
13877 | GdkFont* gdk_font_ref (GdkFont *font); | |
13878 | void gdk_font_unref (GdkFont *font); | |
13879 | gint gdk_font_id (const GdkFont *font); | |
13880 | gboolean gdk_font_equal (const GdkFont *fonta, | |
13881 | const GdkFont *fontb); | |
13882 | ||
13883 | GdkFont *gdk_font_load_for_display (GdkDisplay *display, | |
13884 | const gchar *font_name); | |
13885 | GdkFont *gdk_fontset_load_for_display (GdkDisplay *display, | |
13886 | const gchar *fontset_name); | |
13887 | GdkFont *gdk_font_from_description_for_display (GdkDisplay *display, | |
13888 | PangoFontDescription *font_desc); | |
13889 | # 134 "../gdk/gdkfont.h" | |
13890 | ||
13891 | # 39 "../gdk/gdk.h" 2 | |
13892 | ||
13893 | # 1 "../gdk/gdkimage.h" 1 | |
13894 | # 32 "../gdk/gdkimage.h" | |
13895 | ||
13896 | # 45 "../gdk/gdkimage.h" | |
13897 | typedef enum | |
13898 | { | |
13899 | GDK_IMAGE_NORMAL, | |
13900 | GDK_IMAGE_SHARED, | |
13901 | GDK_IMAGE_FASTEST | |
13902 | } GdkImageType; | |
13903 | ||
13904 | typedef struct _GdkImageClass GdkImageClass; | |
13905 | # 61 "../gdk/gdkimage.h" | |
13906 | struct _GdkImage | |
13907 | { | |
13908 | GObject parent_instance; | |
13909 | ||
13910 | ||
13911 | ||
13912 | GdkImageType type; | |
13913 | GdkVisual *visual; | |
13914 | GdkByteOrder byte_order; | |
13915 | gint width; | |
13916 | gint height; | |
13917 | guint16 depth; | |
13918 | guint16 bpp; | |
13919 | guint16 bpl; | |
13920 | guint16 bits_per_pixel; | |
13921 | gpointer mem; | |
13922 | ||
13923 | GdkColormap *colormap; | |
13924 | ||
13925 | ||
13926 | gpointer windowing_data; | |
13927 | }; | |
13928 | ||
13929 | struct _GdkImageClass | |
13930 | { | |
13931 | GObjectClass parent_class; | |
13932 | }; | |
13933 | ||
13934 | GType gdk_image_get_type (void) __attribute__((__const__)); | |
13935 | ||
13936 | GdkImage* gdk_image_new (GdkImageType type, | |
13937 | GdkVisual *visual, | |
13938 | gint width, | |
13939 | gint height); | |
13940 | # 107 "../gdk/gdkimage.h" | |
13941 | void gdk_image_put_pixel (GdkImage *image, | |
13942 | gint x, | |
13943 | gint y, | |
13944 | guint32 pixel); | |
13945 | guint32 gdk_image_get_pixel (GdkImage *image, | |
13946 | gint x, | |
13947 | gint y); | |
13948 | ||
13949 | void gdk_image_set_colormap (GdkImage *image, | |
13950 | GdkColormap *colormap); | |
13951 | GdkColormap* gdk_image_get_colormap (GdkImage *image); | |
13952 | # 131 "../gdk/gdkimage.h" | |
13953 | ||
13954 | # 41 "../gdk/gdk.h" 2 | |
13955 | ||
13956 | # 1 "../gdk/gdkkeys.h" 1 | |
13957 | # 32 "../gdk/gdkkeys.h" | |
13958 | ||
13959 | ||
13960 | typedef struct _GdkKeymapKey GdkKeymapKey; | |
13961 | ||
13962 | ||
13963 | struct _GdkKeymapKey | |
13964 | { | |
13965 | guint keycode; | |
13966 | gint group; | |
13967 | gint level; | |
13968 | }; | |
13969 | # 52 "../gdk/gdkkeys.h" | |
13970 | typedef struct _GdkKeymap GdkKeymap; | |
13971 | typedef struct _GdkKeymapClass GdkKeymapClass; | |
13972 | # 62 "../gdk/gdkkeys.h" | |
13973 | struct _GdkKeymap | |
13974 | { | |
13975 | GObject parent_instance; | |
13976 | GdkDisplay *display; | |
13977 | }; | |
13978 | ||
13979 | struct _GdkKeymapClass | |
13980 | { | |
13981 | GObjectClass parent_class; | |
13982 | ||
13983 | void (*direction_changed) (GdkKeymap *keymap); | |
13984 | void (*keys_changed) (GdkKeymap *keymap); | |
13985 | }; | |
13986 | ||
13987 | GType gdk_keymap_get_type (void) __attribute__((__const__)); | |
13988 | ||
13989 | ||
13990 | GdkKeymap* gdk_keymap_get_default (void); | |
13991 | ||
13992 | GdkKeymap* gdk_keymap_get_for_display (GdkDisplay *display); | |
13993 | ||
13994 | ||
13995 | guint gdk_keymap_lookup_key (GdkKeymap *keymap, | |
13996 | const GdkKeymapKey *key); | |
13997 | gboolean gdk_keymap_translate_keyboard_state (GdkKeymap *keymap, | |
13998 | guint hardware_keycode, | |
13999 | GdkModifierType state, | |
14000 | gint group, | |
14001 | guint *keyval, | |
14002 | gint *effective_group, | |
14003 | gint *level, | |
14004 | GdkModifierType *consumed_modifiers); | |
14005 | gboolean gdk_keymap_get_entries_for_keyval (GdkKeymap *keymap, | |
14006 | guint keyval, | |
14007 | GdkKeymapKey **keys, | |
14008 | gint *n_keys); | |
14009 | gboolean gdk_keymap_get_entries_for_keycode (GdkKeymap *keymap, | |
14010 | guint hardware_keycode, | |
14011 | GdkKeymapKey **keys, | |
14012 | guint **keyvals, | |
14013 | gint *n_entries); | |
14014 | PangoDirection gdk_keymap_get_direction (GdkKeymap *keymap); | |
14015 | gboolean gdk_keymap_have_bidi_layouts (GdkKeymap *keymap); | |
14016 | ||
14017 | ||
14018 | ||
14019 | gchar* gdk_keyval_name (guint keyval) __attribute__((__const__)); | |
14020 | guint gdk_keyval_from_name (const gchar *keyval_name); | |
14021 | void gdk_keyval_convert_case (guint symbol, | |
14022 | guint *lower, | |
14023 | guint *upper); | |
14024 | guint gdk_keyval_to_upper (guint keyval) __attribute__((__const__)); | |
14025 | guint gdk_keyval_to_lower (guint keyval) __attribute__((__const__)); | |
14026 | gboolean gdk_keyval_is_upper (guint keyval) __attribute__((__const__)); | |
14027 | gboolean gdk_keyval_is_lower (guint keyval) __attribute__((__const__)); | |
14028 | ||
14029 | guint32 gdk_keyval_to_unicode (guint keyval) __attribute__((__const__)); | |
14030 | guint gdk_unicode_to_keyval (guint32 wc) __attribute__((__const__)); | |
14031 | ||
14032 | ||
14033 | ||
14034 | # 43 "../gdk/gdk.h" 2 | |
14035 | # 1 "../gdk/gdkdisplaymanager.h" 1 | |
14036 | # 33 "../gdk/gdkdisplaymanager.h" | |
14037 | ||
14038 | ||
14039 | typedef struct _GdkDisplayManager GdkDisplayManager; | |
14040 | typedef struct _GdkDisplayManagerClass GdkDisplayManagerClass; | |
14041 | # 45 "../gdk/gdkdisplaymanager.h" | |
14042 | struct _GdkDisplayManagerClass | |
14043 | { | |
14044 | GObjectClass parent_class; | |
14045 | ||
14046 | void (*display_opened) (GdkDisplayManager *display_manager, | |
14047 | GdkDisplay *display); | |
14048 | }; | |
14049 | ||
14050 | GType gdk_display_manager_get_type (void) __attribute__((__const__)); | |
14051 | ||
14052 | GdkDisplayManager *gdk_display_manager_get (void); | |
14053 | GdkDisplay * gdk_display_manager_get_default_display (GdkDisplayManager *display_manager); | |
14054 | void gdk_display_manager_set_default_display (GdkDisplayManager *display_manager, | |
14055 | GdkDisplay *display); | |
14056 | GSList * gdk_display_manager_list_displays (GdkDisplayManager *display_manager); | |
14057 | ||
14058 | ||
14059 | # 44 "../gdk/gdk.h" 2 | |
14060 | # 1 "../gdk/gdkpango.h" 1 | |
14061 | # 25 "../gdk/gdkpango.h" | |
14062 | ||
14063 | ||
14064 | ||
14065 | ||
14066 | typedef struct _GdkPangoRenderer GdkPangoRenderer; | |
14067 | typedef struct _GdkPangoRendererClass GdkPangoRendererClass; | |
14068 | typedef struct _GdkPangoRendererPrivate GdkPangoRendererPrivate; | |
14069 | # 64 "../gdk/gdkpango.h" | |
14070 | struct _GdkPangoRenderer | |
14071 | { | |
14072 | ||
14073 | PangoRenderer parent_instance; | |
14074 | ||
14075 | GdkPangoRendererPrivate *priv; | |
14076 | }; | |
14077 | # 79 "../gdk/gdkpango.h" | |
14078 | struct _GdkPangoRendererClass | |
14079 | { | |
14080 | ||
14081 | PangoRendererClass parent_class; | |
14082 | }; | |
14083 | ||
14084 | GType gdk_pango_renderer_get_type (void) __attribute__((__const__)); | |
14085 | ||
14086 | PangoRenderer *gdk_pango_renderer_new (GdkScreen *screen); | |
14087 | PangoRenderer *gdk_pango_renderer_get_default (GdkScreen *screen); | |
14088 | ||
14089 | void gdk_pango_renderer_set_drawable (GdkPangoRenderer *gdk_renderer, | |
14090 | GdkDrawable *drawable); | |
14091 | void gdk_pango_renderer_set_gc (GdkPangoRenderer *gdk_renderer, | |
14092 | GdkGC *gc); | |
14093 | void gdk_pango_renderer_set_stipple (GdkPangoRenderer *gdk_renderer, | |
14094 | PangoRenderPart part, | |
14095 | GdkBitmap *stipple); | |
14096 | void gdk_pango_renderer_set_override_color (GdkPangoRenderer *gdk_renderer, | |
14097 | PangoRenderPart part, | |
14098 | const GdkColor *color); | |
14099 | ||
14100 | ||
14101 | ||
14102 | PangoContext *gdk_pango_context_get_for_screen (GdkScreen *screen); | |
14103 | ||
14104 | PangoContext *gdk_pango_context_get (void); | |
14105 | # 119 "../gdk/gdkpango.h" | |
14106 | GdkRegion *gdk_pango_layout_line_get_clip_region (PangoLayoutLine *line, | |
14107 | gint x_origin, | |
14108 | gint y_origin, | |
14109 | gint *index_ranges, | |
14110 | gint n_ranges); | |
14111 | GdkRegion *gdk_pango_layout_get_clip_region (PangoLayout *layout, | |
14112 | gint x_origin, | |
14113 | gint y_origin, | |
14114 | gint *index_ranges, | |
14115 | gint n_ranges); | |
14116 | ||
14117 | ||
14118 | ||
14119 | ||
14120 | ||
14121 | typedef struct _GdkPangoAttrStipple GdkPangoAttrStipple; | |
14122 | typedef struct _GdkPangoAttrEmbossed GdkPangoAttrEmbossed; | |
14123 | typedef struct _GdkPangoAttrEmbossColor GdkPangoAttrEmbossColor; | |
14124 | ||
14125 | struct _GdkPangoAttrStipple | |
14126 | { | |
14127 | PangoAttribute attr; | |
14128 | GdkBitmap *stipple; | |
14129 | }; | |
14130 | ||
14131 | struct _GdkPangoAttrEmbossed | |
14132 | { | |
14133 | PangoAttribute attr; | |
14134 | gboolean embossed; | |
14135 | }; | |
14136 | ||
14137 | struct _GdkPangoAttrEmbossColor | |
14138 | { | |
14139 | PangoAttribute attr; | |
14140 | PangoColor color; | |
14141 | }; | |
14142 | ||
14143 | PangoAttribute *gdk_pango_attr_stipple_new (GdkBitmap *stipple); | |
14144 | PangoAttribute *gdk_pango_attr_embossed_new (gboolean embossed); | |
14145 | PangoAttribute *gdk_pango_attr_emboss_color_new (const GdkColor *color); | |
14146 | ||
14147 | ||
14148 | # 45 "../gdk/gdk.h" 2 | |
14149 | ||
14150 | # 1 "../gdk/gdkpixmap.h" 1 | |
14151 | # 33 "../gdk/gdkpixmap.h" | |
14152 | ||
14153 | ||
14154 | typedef struct _GdkPixmapObject GdkPixmapObject; | |
14155 | typedef struct _GdkPixmapObjectClass GdkPixmapObjectClass; | |
14156 | # 46 "../gdk/gdkpixmap.h" | |
14157 | struct _GdkPixmapObject | |
14158 | { | |
14159 | GdkDrawable parent_instance; | |
14160 | ||
14161 | GdkDrawable *impl; | |
14162 | ||
14163 | gint depth; | |
14164 | }; | |
14165 | ||
14166 | struct _GdkPixmapObjectClass | |
14167 | { | |
14168 | GdkDrawableClass parent_class; | |
14169 | ||
14170 | }; | |
14171 | ||
14172 | GType gdk_pixmap_get_type (void) __attribute__((__const__)); | |
14173 | ||
14174 | ||
14175 | ||
14176 | GdkPixmap* gdk_pixmap_new (GdkDrawable *drawable, | |
14177 | gint width, | |
14178 | gint height, | |
14179 | gint depth); | |
14180 | GdkBitmap* gdk_bitmap_create_from_data (GdkDrawable *drawable, | |
14181 | const gchar *data, | |
14182 | gint width, | |
14183 | gint height); | |
14184 | GdkPixmap* gdk_pixmap_create_from_data (GdkDrawable *drawable, | |
14185 | const gchar *data, | |
14186 | gint width, | |
14187 | gint height, | |
14188 | gint depth, | |
14189 | const GdkColor *fg, | |
14190 | const GdkColor *bg); | |
14191 | ||
14192 | GdkPixmap* gdk_pixmap_create_from_xpm (GdkDrawable *drawable, | |
14193 | GdkBitmap **mask, | |
14194 | const GdkColor *transparent_color, | |
14195 | const gchar *filename); | |
14196 | GdkPixmap* gdk_pixmap_colormap_create_from_xpm (GdkDrawable *drawable, | |
14197 | GdkColormap *colormap, | |
14198 | GdkBitmap **mask, | |
14199 | const GdkColor *transparent_color, | |
14200 | const gchar *filename); | |
14201 | GdkPixmap* gdk_pixmap_create_from_xpm_d (GdkDrawable *drawable, | |
14202 | GdkBitmap **mask, | |
14203 | const GdkColor *transparent_color, | |
14204 | gchar **data); | |
14205 | GdkPixmap* gdk_pixmap_colormap_create_from_xpm_d (GdkDrawable *drawable, | |
14206 | GdkColormap *colormap, | |
14207 | GdkBitmap **mask, | |
14208 | const GdkColor *transparent_color, | |
14209 | gchar **data); | |
14210 | ||
14211 | ||
14212 | ||
14213 | ||
14214 | GdkPixmap* gdk_pixmap_foreign_new (GdkNativeWindow anid); | |
14215 | GdkPixmap* gdk_pixmap_lookup (GdkNativeWindow anid); | |
14216 | ||
14217 | ||
14218 | GdkPixmap* gdk_pixmap_foreign_new_for_display (GdkDisplay *display, | |
14219 | GdkNativeWindow anid); | |
14220 | GdkPixmap* gdk_pixmap_lookup_for_display (GdkDisplay *display, | |
14221 | GdkNativeWindow anid); | |
14222 | GdkPixmap* gdk_pixmap_foreign_new_for_screen (GdkScreen *screen, | |
14223 | GdkNativeWindow anid, | |
14224 | gint width, | |
14225 | gint height, | |
14226 | gint depth); | |
14227 | # 124 "../gdk/gdkpixmap.h" | |
14228 | ||
14229 | # 47 "../gdk/gdk.h" 2 | |
14230 | # 1 "../gdk/gdkproperty.h" 1 | |
14231 | # 32 "../gdk/gdkproperty.h" | |
14232 | ||
14233 | ||
14234 | typedef enum | |
14235 | { | |
14236 | GDK_PROP_MODE_REPLACE, | |
14237 | GDK_PROP_MODE_PREPEND, | |
14238 | GDK_PROP_MODE_APPEND | |
14239 | } GdkPropMode; | |
14240 | ||
14241 | GdkAtom gdk_atom_intern (const gchar *atom_name, | |
14242 | gboolean only_if_exists); | |
14243 | GdkAtom gdk_atom_intern_static_string (const gchar *atom_name); | |
14244 | gchar* gdk_atom_name (GdkAtom atom); | |
14245 | ||
14246 | gboolean gdk_property_get (GdkWindow *window, | |
14247 | GdkAtom property, | |
14248 | GdkAtom type, | |
14249 | gulong offset, | |
14250 | gulong length, | |
14251 | gint pdelete, | |
14252 | GdkAtom *actual_property_type, | |
14253 | gint *actual_format, | |
14254 | gint *actual_length, | |
14255 | guchar **data); | |
14256 | void gdk_property_change (GdkWindow *window, | |
14257 | GdkAtom property, | |
14258 | GdkAtom type, | |
14259 | gint format, | |
14260 | GdkPropMode mode, | |
14261 | const guchar *data, | |
14262 | gint nelements); | |
14263 | void gdk_property_delete (GdkWindow *window, | |
14264 | GdkAtom property); | |
14265 | ||
14266 | gint gdk_text_property_to_text_list (GdkAtom encoding, | |
14267 | gint format, | |
14268 | const guchar *text, | |
14269 | gint length, | |
14270 | gchar ***list); | |
14271 | gint gdk_text_property_to_utf8_list (GdkAtom encoding, | |
14272 | gint format, | |
14273 | const guchar *text, | |
14274 | gint length, | |
14275 | gchar ***list); | |
14276 | gboolean gdk_utf8_to_compound_text (const gchar *str, | |
14277 | GdkAtom *encoding, | |
14278 | gint *format, | |
14279 | guchar **ctext, | |
14280 | gint *length); | |
14281 | gint gdk_string_to_compound_text (const gchar *str, | |
14282 | GdkAtom *encoding, | |
14283 | gint *format, | |
14284 | guchar **ctext, | |
14285 | gint *length); | |
14286 | ||
14287 | ||
14288 | gint gdk_text_property_to_text_list_for_display (GdkDisplay *display, | |
14289 | GdkAtom encoding, | |
14290 | gint format, | |
14291 | const guchar *text, | |
14292 | gint length, | |
14293 | gchar ***list); | |
14294 | gint gdk_text_property_to_utf8_list_for_display (GdkDisplay *display, | |
14295 | GdkAtom encoding, | |
14296 | gint format, | |
14297 | const guchar *text, | |
14298 | gint length, | |
14299 | gchar ***list); | |
14300 | ||
14301 | gchar *gdk_utf8_to_string_target (const gchar *str); | |
14302 | gint gdk_string_to_compound_text_for_display (GdkDisplay *display, | |
14303 | const gchar *str, | |
14304 | GdkAtom *encoding, | |
14305 | gint *format, | |
14306 | guchar **ctext, | |
14307 | gint *length); | |
14308 | gboolean gdk_utf8_to_compound_text_for_display (GdkDisplay *display, | |
14309 | const gchar *str, | |
14310 | GdkAtom *encoding, | |
14311 | gint *format, | |
14312 | guchar **ctext, | |
14313 | gint *length); | |
14314 | ||
14315 | void gdk_free_text_list (gchar **list); | |
14316 | void gdk_free_compound_text (guchar *ctext); | |
14317 | ||
14318 | ||
14319 | # 48 "../gdk/gdk.h" 2 | |
14320 | # 1 "../gdk/gdkregion.h" 1 | |
14321 | # 32 "../gdk/gdkregion.h" | |
14322 | ||
14323 | ||
14324 | ||
14325 | ||
14326 | ||
14327 | ||
14328 | typedef enum | |
14329 | { | |
14330 | GDK_EVEN_ODD_RULE, | |
14331 | GDK_WINDING_RULE | |
14332 | } GdkFillRule; | |
14333 | ||
14334 | ||
14335 | ||
14336 | ||
14337 | ||
14338 | ||
14339 | typedef enum | |
14340 | { | |
14341 | GDK_OVERLAP_RECTANGLE_IN, | |
14342 | GDK_OVERLAP_RECTANGLE_OUT, | |
14343 | GDK_OVERLAP_RECTANGLE_PART | |
14344 | } GdkOverlapType; | |
14345 | ||
14346 | typedef void (*GdkSpanFunc) (GdkSpan *span, | |
14347 | gpointer data); | |
14348 | ||
14349 | GdkRegion *gdk_region_new (void); | |
14350 | GdkRegion *gdk_region_polygon (GdkPoint *points, | |
14351 | gint npoints, | |
14352 | GdkFillRule fill_rule); | |
14353 | GdkRegion *gdk_region_copy (GdkRegion *region); | |
14354 | GdkRegion *gdk_region_rectangle (GdkRectangle *rectangle); | |
14355 | void gdk_region_destroy (GdkRegion *region); | |
14356 | ||
14357 | void gdk_region_get_clipbox (GdkRegion *region, | |
14358 | GdkRectangle *rectangle); | |
14359 | void gdk_region_get_rectangles (GdkRegion *region, | |
14360 | GdkRectangle **rectangles, | |
14361 | gint *n_rectangles); | |
14362 | ||
14363 | gboolean gdk_region_empty (GdkRegion *region); | |
14364 | gboolean gdk_region_equal (GdkRegion *region1, | |
14365 | GdkRegion *region2); | |
14366 | gboolean gdk_region_point_in (GdkRegion *region, | |
14367 | int x, | |
14368 | int y); | |
14369 | GdkOverlapType gdk_region_rect_in (GdkRegion *region, | |
14370 | GdkRectangle *rectangle); | |
14371 | ||
14372 | void gdk_region_offset (GdkRegion *region, | |
14373 | gint dx, | |
14374 | gint dy); | |
14375 | void gdk_region_shrink (GdkRegion *region, | |
14376 | gint dx, | |
14377 | gint dy); | |
14378 | void gdk_region_union_with_rect (GdkRegion *region, | |
14379 | GdkRectangle *rect); | |
14380 | void gdk_region_intersect (GdkRegion *source1, | |
14381 | GdkRegion *source2); | |
14382 | void gdk_region_union (GdkRegion *source1, | |
14383 | GdkRegion *source2); | |
14384 | void gdk_region_subtract (GdkRegion *source1, | |
14385 | GdkRegion *source2); | |
14386 | void gdk_region_xor (GdkRegion *source1, | |
14387 | GdkRegion *source2); | |
14388 | ||
14389 | void gdk_region_spans_intersect_foreach (GdkRegion *region, | |
14390 | GdkSpan *spans, | |
14391 | int n_spans, | |
14392 | gboolean sorted, | |
14393 | GdkSpanFunc function, | |
14394 | gpointer data); | |
14395 | ||
14396 | ||
14397 | # 49 "../gdk/gdk.h" 2 | |
14398 | ||
14399 | # 1 "../gdk/gdkscreen.h" 1 | |
14400 | # 31 "../gdk/gdkscreen.h" | |
14401 | ||
14402 | ||
14403 | typedef struct _GdkScreenClass GdkScreenClass; | |
14404 | # 42 "../gdk/gdkscreen.h" | |
14405 | struct _GdkScreen | |
14406 | { | |
14407 | GObject parent_instance; | |
14408 | ||
14409 | guint closed : 1; | |
14410 | ||
14411 | GdkGC *normal_gcs[32]; | |
14412 | GdkGC *exposure_gcs[32]; | |
14413 | ||
14414 | cairo_font_options_t *font_options; | |
14415 | double resolution; | |
14416 | }; | |
14417 | ||
14418 | struct _GdkScreenClass | |
14419 | { | |
14420 | GObjectClass parent_class; | |
14421 | ||
14422 | void (*size_changed) (GdkScreen *screen); | |
14423 | void (*composited_changed) (GdkScreen *screen); | |
14424 | }; | |
14425 | ||
14426 | GType gdk_screen_get_type (void) __attribute__((__const__)); | |
14427 | GdkColormap *gdk_screen_get_default_colormap (GdkScreen *screen); | |
14428 | void gdk_screen_set_default_colormap (GdkScreen *screen, | |
14429 | GdkColormap *colormap); | |
14430 | GdkColormap* gdk_screen_get_system_colormap (GdkScreen *screen); | |
14431 | GdkVisual* gdk_screen_get_system_visual (GdkScreen *screen); | |
14432 | GdkColormap *gdk_screen_get_rgb_colormap (GdkScreen *screen); | |
14433 | GdkVisual * gdk_screen_get_rgb_visual (GdkScreen *screen); | |
14434 | GdkColormap *gdk_screen_get_rgba_colormap (GdkScreen *screen); | |
14435 | GdkVisual * gdk_screen_get_rgba_visual (GdkScreen *screen); | |
14436 | gboolean gdk_screen_is_composited (GdkScreen *screen); | |
14437 | ||
14438 | GdkWindow * gdk_screen_get_root_window (GdkScreen *screen); | |
14439 | GdkDisplay * gdk_screen_get_display (GdkScreen *screen); | |
14440 | gint gdk_screen_get_number (GdkScreen *screen); | |
14441 | gint gdk_screen_get_width (GdkScreen *screen); | |
14442 | gint gdk_screen_get_height (GdkScreen *screen); | |
14443 | gint gdk_screen_get_width_mm (GdkScreen *screen); | |
14444 | gint gdk_screen_get_height_mm (GdkScreen *screen); | |
14445 | ||
14446 | GList * gdk_screen_list_visuals (GdkScreen *screen); | |
14447 | GList * gdk_screen_get_toplevel_windows (GdkScreen *screen); | |
14448 | gchar * gdk_screen_make_display_name (GdkScreen *screen); | |
14449 | ||
14450 | gint gdk_screen_get_n_monitors (GdkScreen *screen); | |
14451 | void gdk_screen_get_monitor_geometry (GdkScreen *screen, | |
14452 | gint monitor_num, | |
14453 | GdkRectangle *dest); | |
14454 | gint gdk_screen_get_monitor_at_point (GdkScreen *screen, | |
14455 | gint x, | |
14456 | gint y); | |
14457 | gint gdk_screen_get_monitor_at_window (GdkScreen *screen, | |
14458 | GdkWindow *window); | |
14459 | ||
14460 | void gdk_screen_broadcast_client_message (GdkScreen *screen, | |
14461 | GdkEvent *event); | |
14462 | ||
14463 | GdkScreen *gdk_screen_get_default (void); | |
14464 | ||
14465 | gboolean gdk_screen_get_setting (GdkScreen *screen, | |
14466 | const gchar *name, | |
14467 | GValue *value); | |
14468 | ||
14469 | void gdk_screen_set_font_options (GdkScreen *screen, | |
14470 | const cairo_font_options_t *options); | |
14471 | const cairo_font_options_t *gdk_screen_get_font_options (GdkScreen *screen); | |
14472 | ||
14473 | void gdk_screen_set_resolution (GdkScreen *screen, | |
14474 | gdouble dpi); | |
14475 | gdouble gdk_screen_get_resolution (GdkScreen *screen); | |
14476 | ||
14477 | GdkWindow *gdk_screen_get_active_window (GdkScreen *screen); | |
14478 | GList *gdk_screen_get_window_stack (GdkScreen *screen); | |
14479 | ||
14480 | ||
14481 | # 51 "../gdk/gdk.h" 2 | |
14482 | # 1 "../gdk/gdkselection.h" 1 | |
14483 | # 32 "../gdk/gdkselection.h" | |
14484 | ||
14485 | # 66 "../gdk/gdkselection.h" | |
14486 | gboolean gdk_selection_owner_set (GdkWindow *owner, | |
14487 | GdkAtom selection, | |
14488 | guint32 time_, | |
14489 | gboolean send_event); | |
14490 | GdkWindow* gdk_selection_owner_get (GdkAtom selection); | |
14491 | ||
14492 | ||
14493 | gboolean gdk_selection_owner_set_for_display (GdkDisplay *display, | |
14494 | GdkWindow *owner, | |
14495 | GdkAtom selection, | |
14496 | guint32 time_, | |
14497 | gboolean send_event); | |
14498 | GdkWindow *gdk_selection_owner_get_for_display (GdkDisplay *display, | |
14499 | GdkAtom selection); | |
14500 | ||
14501 | void gdk_selection_convert (GdkWindow *requestor, | |
14502 | GdkAtom selection, | |
14503 | GdkAtom target, | |
14504 | guint32 time_); | |
14505 | gboolean gdk_selection_property_get (GdkWindow *requestor, | |
14506 | guchar **data, | |
14507 | GdkAtom *prop_type, | |
14508 | gint *prop_format); | |
14509 | ||
14510 | ||
14511 | void gdk_selection_send_notify (guint32 requestor, | |
14512 | GdkAtom selection, | |
14513 | GdkAtom target, | |
14514 | GdkAtom property, | |
14515 | guint32 time_); | |
14516 | ||
14517 | ||
14518 | void gdk_selection_send_notify_for_display (GdkDisplay *display, | |
14519 | guint32 requestor, | |
14520 | GdkAtom selection, | |
14521 | GdkAtom target, | |
14522 | GdkAtom property, | |
14523 | guint32 time_); | |
14524 | ||
14525 | ||
14526 | # 52 "../gdk/gdk.h" 2 | |
14527 | # 1 "../gdk/gdkspawn.h" 1 | |
14528 | # 28 "../gdk/gdkspawn.h" | |
14529 | ||
14530 | ||
14531 | gboolean gdk_spawn_on_screen (GdkScreen *screen, | |
14532 | const gchar *working_directory, | |
14533 | gchar **argv, | |
14534 | gchar **envp, | |
14535 | GSpawnFlags flags, | |
14536 | GSpawnChildSetupFunc child_setup, | |
14537 | gpointer user_data, | |
14538 | gint *child_pid, | |
14539 | GError **error); | |
14540 | ||
14541 | gboolean gdk_spawn_on_screen_with_pipes (GdkScreen *screen, | |
14542 | const gchar *working_directory, | |
14543 | gchar **argv, | |
14544 | gchar **envp, | |
14545 | GSpawnFlags flags, | |
14546 | GSpawnChildSetupFunc child_setup, | |
14547 | gpointer user_data, | |
14548 | gint *child_pid, | |
14549 | gint *standard_input, | |
14550 | gint *standard_output, | |
14551 | gint *standard_error, | |
14552 | GError **error); | |
14553 | ||
14554 | gboolean gdk_spawn_command_line_on_screen (GdkScreen *screen, | |
14555 | const gchar *command_line, | |
14556 | GError **error); | |
14557 | ||
14558 | ||
14559 | # 53 "../gdk/gdk.h" 2 | |
14560 | ||
14561 | # 1 "../gdk/gdkvisual.h" 1 | |
14562 | # 32 "../gdk/gdkvisual.h" | |
14563 | ||
14564 | # 41 "../gdk/gdkvisual.h" | |
14565 | typedef struct _GdkVisualClass GdkVisualClass; | |
14566 | # 51 "../gdk/gdkvisual.h" | |
14567 | typedef enum | |
14568 | { | |
14569 | GDK_VISUAL_STATIC_GRAY, | |
14570 | GDK_VISUAL_GRAYSCALE, | |
14571 | GDK_VISUAL_STATIC_COLOR, | |
14572 | GDK_VISUAL_PSEUDO_COLOR, | |
14573 | GDK_VISUAL_TRUE_COLOR, | |
14574 | GDK_VISUAL_DIRECT_COLOR | |
14575 | } GdkVisualType; | |
14576 | # 73 "../gdk/gdkvisual.h" | |
14577 | struct _GdkVisual | |
14578 | { | |
14579 | GObject parent_instance; | |
14580 | ||
14581 | GdkVisualType type; | |
14582 | gint depth; | |
14583 | GdkByteOrder byte_order; | |
14584 | gint colormap_size; | |
14585 | gint bits_per_rgb; | |
14586 | ||
14587 | guint32 red_mask; | |
14588 | gint red_shift; | |
14589 | gint red_prec; | |
14590 | ||
14591 | guint32 green_mask; | |
14592 | gint green_shift; | |
14593 | gint green_prec; | |
14594 | ||
14595 | guint32 blue_mask; | |
14596 | gint blue_shift; | |
14597 | gint blue_prec; | |
14598 | }; | |
14599 | ||
14600 | GType gdk_visual_get_type (void) __attribute__((__const__)); | |
14601 | ||
14602 | ||
14603 | gint gdk_visual_get_best_depth (void); | |
14604 | GdkVisualType gdk_visual_get_best_type (void); | |
14605 | GdkVisual* gdk_visual_get_system (void); | |
14606 | GdkVisual* gdk_visual_get_best (void); | |
14607 | GdkVisual* gdk_visual_get_best_with_depth (gint depth); | |
14608 | GdkVisual* gdk_visual_get_best_with_type (GdkVisualType visual_type); | |
14609 | GdkVisual* gdk_visual_get_best_with_both (gint depth, | |
14610 | GdkVisualType visual_type); | |
14611 | ||
14612 | void gdk_query_depths (gint **depths, | |
14613 | gint *count); | |
14614 | void gdk_query_visual_types (GdkVisualType **visual_types, | |
14615 | gint *count); | |
14616 | ||
14617 | GList* gdk_list_visuals (void); | |
14618 | ||
14619 | ||
14620 | GdkScreen *gdk_visual_get_screen (GdkVisual *visual); | |
14621 | ||
14622 | ||
14623 | ||
14624 | ||
14625 | ||
14626 | ||
14627 | ||
14628 | # 55 "../gdk/gdk.h" 2 | |
14629 | # 1 "../gdk/gdkwindow.h" 1 | |
14630 | # 34 "../gdk/gdkwindow.h" | |
14631 | ||
14632 | ||
14633 | typedef struct _GdkGeometry GdkGeometry; | |
14634 | typedef struct _GdkWindowAttr GdkWindowAttr; | |
14635 | typedef struct _GdkPointerHooks GdkPointerHooks; | |
14636 | # 49 "../gdk/gdkwindow.h" | |
14637 | typedef enum | |
14638 | { | |
14639 | GDK_INPUT_OUTPUT, | |
14640 | GDK_INPUT_ONLY | |
14641 | } GdkWindowClass; | |
14642 | # 68 "../gdk/gdkwindow.h" | |
14643 | typedef enum | |
14644 | { | |
14645 | GDK_WINDOW_ROOT, | |
14646 | GDK_WINDOW_TOPLEVEL, | |
14647 | GDK_WINDOW_CHILD, | |
14648 | GDK_WINDOW_DIALOG, | |
14649 | GDK_WINDOW_TEMP, | |
14650 | GDK_WINDOW_FOREIGN | |
14651 | } GdkWindowType; | |
14652 | # 86 "../gdk/gdkwindow.h" | |
14653 | typedef enum | |
14654 | { | |
14655 | GDK_WA_TITLE = 1 << 1, | |
14656 | GDK_WA_X = 1 << 2, | |
14657 | GDK_WA_Y = 1 << 3, | |
14658 | GDK_WA_CURSOR = 1 << 4, | |
14659 | GDK_WA_COLORMAP = 1 << 5, | |
14660 | GDK_WA_VISUAL = 1 << 6, | |
14661 | GDK_WA_WMCLASS = 1 << 7, | |
14662 | GDK_WA_NOREDIR = 1 << 8, | |
14663 | GDK_WA_TYPE_HINT = 1 << 9 | |
14664 | } GdkWindowAttributesType; | |
14665 | ||
14666 | ||
14667 | ||
14668 | typedef enum | |
14669 | { | |
14670 | GDK_HINT_POS = 1 << 0, | |
14671 | GDK_HINT_MIN_SIZE = 1 << 1, | |
14672 | GDK_HINT_MAX_SIZE = 1 << 2, | |
14673 | GDK_HINT_BASE_SIZE = 1 << 3, | |
14674 | GDK_HINT_ASPECT = 1 << 4, | |
14675 | GDK_HINT_RESIZE_INC = 1 << 5, | |
14676 | GDK_HINT_WIN_GRAVITY = 1 << 6, | |
14677 | GDK_HINT_USER_POS = 1 << 7, | |
14678 | GDK_HINT_USER_SIZE = 1 << 8 | |
14679 | } GdkWindowHints; | |
14680 | # 127 "../gdk/gdkwindow.h" | |
14681 | typedef enum | |
14682 | { | |
14683 | GDK_WINDOW_TYPE_HINT_NORMAL, | |
14684 | GDK_WINDOW_TYPE_HINT_DIALOG, | |
14685 | GDK_WINDOW_TYPE_HINT_MENU, | |
14686 | GDK_WINDOW_TYPE_HINT_TOOLBAR, | |
14687 | GDK_WINDOW_TYPE_HINT_SPLASHSCREEN, | |
14688 | GDK_WINDOW_TYPE_HINT_UTILITY, | |
14689 | GDK_WINDOW_TYPE_HINT_DOCK, | |
14690 | GDK_WINDOW_TYPE_HINT_DESKTOP, | |
14691 | GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU, | |
14692 | GDK_WINDOW_TYPE_HINT_POPUP_MENU, | |
14693 | GDK_WINDOW_TYPE_HINT_TOOLTIP, | |
14694 | GDK_WINDOW_TYPE_HINT_NOTIFICATION, | |
14695 | GDK_WINDOW_TYPE_HINT_COMBO, | |
14696 | GDK_WINDOW_TYPE_HINT_DND | |
14697 | } GdkWindowTypeHint; | |
14698 | ||
14699 | ||
14700 | ||
14701 | ||
14702 | ||
14703 | ||
14704 | typedef enum | |
14705 | { | |
14706 | GDK_DECOR_ALL = 1 << 0, | |
14707 | GDK_DECOR_BORDER = 1 << 1, | |
14708 | GDK_DECOR_RESIZEH = 1 << 2, | |
14709 | GDK_DECOR_TITLE = 1 << 3, | |
14710 | GDK_DECOR_MENU = 1 << 4, | |
14711 | GDK_DECOR_MINIMIZE = 1 << 5, | |
14712 | GDK_DECOR_MAXIMIZE = 1 << 6 | |
14713 | } GdkWMDecoration; | |
14714 | ||
14715 | typedef enum | |
14716 | { | |
14717 | GDK_FUNC_ALL = 1 << 0, | |
14718 | GDK_FUNC_RESIZE = 1 << 1, | |
14719 | GDK_FUNC_MOVE = 1 << 2, | |
14720 | GDK_FUNC_MINIMIZE = 1 << 3, | |
14721 | GDK_FUNC_MAXIMIZE = 1 << 4, | |
14722 | GDK_FUNC_CLOSE = 1 << 5 | |
14723 | } GdkWMFunction; | |
14724 | ||
14725 | ||
14726 | ||
14727 | ||
14728 | ||
14729 | typedef enum | |
14730 | { | |
14731 | GDK_GRAVITY_NORTH_WEST = 1, | |
14732 | GDK_GRAVITY_NORTH, | |
14733 | GDK_GRAVITY_NORTH_EAST, | |
14734 | GDK_GRAVITY_WEST, | |
14735 | GDK_GRAVITY_CENTER, | |
14736 | GDK_GRAVITY_EAST, | |
14737 | GDK_GRAVITY_SOUTH_WEST, | |
14738 | GDK_GRAVITY_SOUTH, | |
14739 | GDK_GRAVITY_SOUTH_EAST, | |
14740 | GDK_GRAVITY_STATIC | |
14741 | } GdkGravity; | |
14742 | ||
14743 | ||
14744 | typedef enum | |
14745 | { | |
14746 | GDK_WINDOW_EDGE_NORTH_WEST, | |
14747 | GDK_WINDOW_EDGE_NORTH, | |
14748 | GDK_WINDOW_EDGE_NORTH_EAST, | |
14749 | GDK_WINDOW_EDGE_WEST, | |
14750 | GDK_WINDOW_EDGE_EAST, | |
14751 | GDK_WINDOW_EDGE_SOUTH_WEST, | |
14752 | GDK_WINDOW_EDGE_SOUTH, | |
14753 | GDK_WINDOW_EDGE_SOUTH_EAST | |
14754 | } GdkWindowEdge; | |
14755 | ||
14756 | struct _GdkWindowAttr | |
14757 | { | |
14758 | gchar *title; | |
14759 | gint event_mask; | |
14760 | gint x, y; | |
14761 | gint width; | |
14762 | gint height; | |
14763 | GdkWindowClass wclass; | |
14764 | GdkVisual *visual; | |
14765 | GdkColormap *colormap; | |
14766 | GdkWindowType window_type; | |
14767 | GdkCursor *cursor; | |
14768 | gchar *wmclass_name; | |
14769 | gchar *wmclass_class; | |
14770 | gboolean override_redirect; | |
14771 | GdkWindowTypeHint type_hint; | |
14772 | }; | |
14773 | ||
14774 | struct _GdkGeometry | |
14775 | { | |
14776 | gint min_width; | |
14777 | gint min_height; | |
14778 | gint max_width; | |
14779 | gint max_height; | |
14780 | gint base_width; | |
14781 | gint base_height; | |
14782 | gint width_inc; | |
14783 | gint height_inc; | |
14784 | gdouble min_aspect; | |
14785 | gdouble max_aspect; | |
14786 | GdkGravity win_gravity; | |
14787 | }; | |
14788 | ||
14789 | struct _GdkPointerHooks | |
14790 | { | |
14791 | GdkWindow* (*get_pointer) (GdkWindow *window, | |
14792 | gint *x, | |
14793 | gint *y, | |
14794 | GdkModifierType *mask); | |
14795 | GdkWindow* (*window_at_pointer) (GdkScreen *screen, | |
14796 | gint *win_x, | |
14797 | gint *win_y); | |
14798 | }; | |
14799 | ||
14800 | typedef struct _GdkWindowObject GdkWindowObject; | |
14801 | typedef struct _GdkWindowObjectClass GdkWindowObjectClass; | |
14802 | # 257 "../gdk/gdkwindow.h" | |
14803 | struct _GdkWindowObject | |
14804 | { | |
14805 | GdkDrawable parent_instance; | |
14806 | ||
14807 | GdkDrawable *impl; | |
14808 | ||
14809 | GdkWindowObject *parent; | |
14810 | ||
14811 | gpointer user_data; | |
14812 | ||
14813 | gint x; | |
14814 | gint y; | |
14815 | ||
14816 | gint extension_events; | |
14817 | ||
14818 | GList *filters; | |
14819 | GList *children; | |
14820 | ||
14821 | GdkColor bg_color; | |
14822 | GdkPixmap *bg_pixmap; | |
14823 | ||
14824 | GSList *paint_stack; | |
14825 | ||
14826 | GdkRegion *update_area; | |
14827 | guint update_freeze_count; | |
14828 | ||
14829 | guint8 window_type; | |
14830 | guint8 depth; | |
14831 | guint8 resize_count; | |
14832 | ||
14833 | GdkWindowState state; | |
14834 | ||
14835 | guint guffaw_gravity : 1; | |
14836 | guint input_only : 1; | |
14837 | guint modal_hint : 1; | |
14838 | guint composited : 1; | |
14839 | ||
14840 | guint destroyed : 2; | |
14841 | ||
14842 | guint accept_focus : 1; | |
14843 | guint focus_on_map : 1; | |
14844 | guint shaped : 1; | |
14845 | ||
14846 | GdkEventMask event_mask; | |
14847 | ||
14848 | guint update_and_descendants_freeze_count; | |
14849 | }; | |
14850 | ||
14851 | struct _GdkWindowObjectClass | |
14852 | { | |
14853 | GdkDrawableClass parent_class; | |
14854 | }; | |
14855 | ||
14856 | ||
14857 | ||
14858 | GType gdk_window_object_get_type (void) __attribute__((__const__)); | |
14859 | GdkWindow* gdk_window_new (GdkWindow *parent, | |
14860 | GdkWindowAttr *attributes, | |
14861 | gint attributes_mask); | |
14862 | void gdk_window_destroy (GdkWindow *window); | |
14863 | GdkWindowType gdk_window_get_window_type (GdkWindow *window); | |
14864 | GdkWindow* gdk_window_at_pointer (gint *win_x, | |
14865 | gint *win_y); | |
14866 | void gdk_window_show (GdkWindow *window); | |
14867 | void gdk_window_hide (GdkWindow *window); | |
14868 | void gdk_window_withdraw (GdkWindow *window); | |
14869 | void gdk_window_show_unraised (GdkWindow *window); | |
14870 | void gdk_window_move (GdkWindow *window, | |
14871 | gint x, | |
14872 | gint y); | |
14873 | void gdk_window_resize (GdkWindow *window, | |
14874 | gint width, | |
14875 | gint height); | |
14876 | void gdk_window_move_resize (GdkWindow *window, | |
14877 | gint x, | |
14878 | gint y, | |
14879 | gint width, | |
14880 | gint height); | |
14881 | void gdk_window_reparent (GdkWindow *window, | |
14882 | GdkWindow *new_parent, | |
14883 | gint x, | |
14884 | gint y); | |
14885 | void gdk_window_clear (GdkWindow *window); | |
14886 | void gdk_window_clear_area (GdkWindow *window, | |
14887 | gint x, | |
14888 | gint y, | |
14889 | gint width, | |
14890 | gint height); | |
14891 | void gdk_window_clear_area_e (GdkWindow *window, | |
14892 | gint x, | |
14893 | gint y, | |
14894 | gint width, | |
14895 | gint height); | |
14896 | void gdk_window_raise (GdkWindow *window); | |
14897 | void gdk_window_lower (GdkWindow *window); | |
14898 | void gdk_window_focus (GdkWindow *window, | |
14899 | guint32 timestamp); | |
14900 | void gdk_window_set_user_data (GdkWindow *window, | |
14901 | gpointer user_data); | |
14902 | void gdk_window_set_override_redirect (GdkWindow *window, | |
14903 | gboolean override_redirect); | |
14904 | void gdk_window_set_accept_focus (GdkWindow *window, | |
14905 | gboolean accept_focus); | |
14906 | void gdk_window_set_focus_on_map (GdkWindow *window, | |
14907 | gboolean focus_on_map); | |
14908 | void gdk_window_add_filter (GdkWindow *window, | |
14909 | GdkFilterFunc function, | |
14910 | gpointer data); | |
14911 | void gdk_window_remove_filter (GdkWindow *window, | |
14912 | GdkFilterFunc function, | |
14913 | gpointer data); | |
14914 | void gdk_window_scroll (GdkWindow *window, | |
14915 | gint dx, | |
14916 | gint dy); | |
14917 | void gdk_window_move_region (GdkWindow *window, | |
14918 | GdkRegion *region, | |
14919 | gint dx, | |
14920 | gint dy); | |
14921 | ||
14922 | ||
14923 | ||
14924 | ||
14925 | ||
14926 | ||
14927 | ||
14928 | void gdk_window_shape_combine_mask (GdkWindow *window, | |
14929 | GdkBitmap *mask, | |
14930 | gint x, | |
14931 | gint y); | |
14932 | void gdk_window_shape_combine_region (GdkWindow *window, | |
14933 | GdkRegion *shape_region, | |
14934 | gint offset_x, | |
14935 | gint offset_y); | |
14936 | # 398 "../gdk/gdkwindow.h" | |
14937 | void gdk_window_set_child_shapes (GdkWindow *window); | |
14938 | ||
14939 | void gdk_window_set_composited (GdkWindow *window, | |
14940 | gboolean composited); | |
14941 | # 410 "../gdk/gdkwindow.h" | |
14942 | void gdk_window_merge_child_shapes (GdkWindow *window); | |
14943 | ||
14944 | void gdk_window_input_shape_combine_mask (GdkWindow *window, | |
14945 | GdkBitmap *mask, | |
14946 | gint x, | |
14947 | gint y); | |
14948 | void gdk_window_input_shape_combine_region (GdkWindow *window, | |
14949 | GdkRegion *shape_region, | |
14950 | gint offset_x, | |
14951 | gint offset_y); | |
14952 | void gdk_window_set_child_input_shapes (GdkWindow *window); | |
14953 | void gdk_window_merge_child_input_shapes (GdkWindow *window); | |
14954 | # 430 "../gdk/gdkwindow.h" | |
14955 | gboolean gdk_window_is_visible (GdkWindow *window); | |
14956 | gboolean gdk_window_is_viewable (GdkWindow *window); | |
14957 | ||
14958 | GdkWindowState gdk_window_get_state (GdkWindow *window); | |
14959 | ||
14960 | ||
14961 | ||
14962 | ||
14963 | gboolean gdk_window_set_static_gravities (GdkWindow *window, | |
14964 | gboolean use_static); | |
14965 | ||
14966 | ||
14967 | ||
14968 | GdkWindow* gdk_window_foreign_new (GdkNativeWindow anid); | |
14969 | GdkWindow* gdk_window_lookup (GdkNativeWindow anid); | |
14970 | ||
14971 | GdkWindow *gdk_window_foreign_new_for_display (GdkDisplay *display, | |
14972 | GdkNativeWindow anid); | |
14973 | GdkWindow* gdk_window_lookup_for_display (GdkDisplay *display, | |
14974 | GdkNativeWindow anid); | |
14975 | # 464 "../gdk/gdkwindow.h" | |
14976 | void gdk_window_set_type_hint (GdkWindow *window, | |
14977 | GdkWindowTypeHint hint); | |
14978 | GdkWindowTypeHint gdk_window_get_type_hint (GdkWindow *window); | |
14979 | ||
14980 | void gdk_window_set_modal_hint (GdkWindow *window, | |
14981 | gboolean modal); | |
14982 | ||
14983 | void gdk_window_set_skip_taskbar_hint (GdkWindow *window, | |
14984 | gboolean skips_taskbar); | |
14985 | void gdk_window_set_skip_pager_hint (GdkWindow *window, | |
14986 | gboolean skips_pager); | |
14987 | void gdk_window_set_urgency_hint (GdkWindow *window, | |
14988 | gboolean urgent); | |
14989 | ||
14990 | void gdk_window_set_geometry_hints (GdkWindow *window, | |
14991 | GdkGeometry *geometry, | |
14992 | GdkWindowHints geom_mask); | |
14993 | void gdk_set_sm_client_id (const gchar *sm_client_id); | |
14994 | ||
14995 | void gdk_window_begin_paint_rect (GdkWindow *window, | |
14996 | GdkRectangle *rectangle); | |
14997 | void gdk_window_begin_paint_region (GdkWindow *window, | |
14998 | GdkRegion *region); | |
14999 | void gdk_window_end_paint (GdkWindow *window); | |
15000 | ||
15001 | void gdk_window_set_title (GdkWindow *window, | |
15002 | const gchar *title); | |
15003 | void gdk_window_set_role (GdkWindow *window, | |
15004 | const gchar *role); | |
15005 | void gdk_window_set_startup_id (GdkWindow *window, | |
15006 | const gchar *startup_id); | |
15007 | void gdk_window_set_transient_for (GdkWindow *window, | |
15008 | GdkWindow *parent); | |
15009 | void gdk_window_set_background (GdkWindow *window, | |
15010 | const GdkColor *color); | |
15011 | void gdk_window_set_back_pixmap (GdkWindow *window, | |
15012 | GdkPixmap *pixmap, | |
15013 | gboolean parent_relative); | |
15014 | void gdk_window_set_cursor (GdkWindow *window, | |
15015 | GdkCursor *cursor); | |
15016 | void gdk_window_get_user_data (GdkWindow *window, | |
15017 | gpointer *data); | |
15018 | void gdk_window_get_geometry (GdkWindow *window, | |
15019 | gint *x, | |
15020 | gint *y, | |
15021 | gint *width, | |
15022 | gint *height, | |
15023 | gint *depth); | |
15024 | void gdk_window_get_position (GdkWindow *window, | |
15025 | gint *x, | |
15026 | gint *y); | |
15027 | gint gdk_window_get_origin (GdkWindow *window, | |
15028 | gint *x, | |
15029 | gint *y); | |
15030 | ||
15031 | ||
15032 | ||
15033 | gboolean gdk_window_get_deskrelative_origin (GdkWindow *window, | |
15034 | gint *x, | |
15035 | gint *y); | |
15036 | ||
15037 | ||
15038 | void gdk_window_get_root_origin (GdkWindow *window, | |
15039 | gint *x, | |
15040 | gint *y); | |
15041 | void gdk_window_get_frame_extents (GdkWindow *window, | |
15042 | GdkRectangle *rect); | |
15043 | GdkWindow* gdk_window_get_pointer (GdkWindow *window, | |
15044 | gint *x, | |
15045 | gint *y, | |
15046 | GdkModifierType *mask); | |
15047 | GdkWindow * gdk_window_get_parent (GdkWindow *window); | |
15048 | GdkWindow * gdk_window_get_toplevel (GdkWindow *window); | |
15049 | ||
15050 | GList * gdk_window_get_children (GdkWindow *window); | |
15051 | GList * gdk_window_peek_children (GdkWindow *window); | |
15052 | GdkEventMask gdk_window_get_events (GdkWindow *window); | |
15053 | void gdk_window_set_events (GdkWindow *window, | |
15054 | GdkEventMask event_mask); | |
15055 | ||
15056 | void gdk_window_set_icon_list (GdkWindow *window, | |
15057 | GList *pixbufs); | |
15058 | void gdk_window_set_icon (GdkWindow *window, | |
15059 | GdkWindow *icon_window, | |
15060 | GdkPixmap *pixmap, | |
15061 | GdkBitmap *mask); | |
15062 | void gdk_window_set_icon_name (GdkWindow *window, | |
15063 | const gchar *name); | |
15064 | void gdk_window_set_group (GdkWindow *window, | |
15065 | GdkWindow *leader); | |
15066 | GdkWindow* gdk_window_get_group (GdkWindow *window); | |
15067 | void gdk_window_set_decorations (GdkWindow *window, | |
15068 | GdkWMDecoration decorations); | |
15069 | gboolean gdk_window_get_decorations (GdkWindow *window, | |
15070 | GdkWMDecoration *decorations); | |
15071 | void gdk_window_set_functions (GdkWindow *window, | |
15072 | GdkWMFunction functions); | |
15073 | ||
15074 | GList * gdk_window_get_toplevels (void); | |
15075 | ||
15076 | ||
15077 | void gdk_window_beep (GdkWindow *window); | |
15078 | void gdk_window_iconify (GdkWindow *window); | |
15079 | void gdk_window_deiconify (GdkWindow *window); | |
15080 | void gdk_window_stick (GdkWindow *window); | |
15081 | void gdk_window_unstick (GdkWindow *window); | |
15082 | void gdk_window_maximize (GdkWindow *window); | |
15083 | void gdk_window_unmaximize (GdkWindow *window); | |
15084 | void gdk_window_fullscreen (GdkWindow *window); | |
15085 | void gdk_window_unfullscreen (GdkWindow *window); | |
15086 | void gdk_window_set_keep_above (GdkWindow *window, | |
15087 | gboolean setting); | |
15088 | void gdk_window_set_keep_below (GdkWindow *window, | |
15089 | gboolean setting); | |
15090 | void gdk_window_set_opacity (GdkWindow *window, | |
15091 | gdouble opacity); | |
15092 | void gdk_window_register_dnd (GdkWindow *window); | |
15093 | ||
15094 | void gdk_window_begin_resize_drag (GdkWindow *window, | |
15095 | GdkWindowEdge edge, | |
15096 | gint button, | |
15097 | gint root_x, | |
15098 | gint root_y, | |
15099 | guint32 timestamp); | |
15100 | void gdk_window_begin_move_drag (GdkWindow *window, | |
15101 | gint button, | |
15102 | gint root_x, | |
15103 | gint root_y, | |
15104 | guint32 timestamp); | |
15105 | ||
15106 | ||
15107 | void gdk_window_invalidate_rect (GdkWindow *window, | |
15108 | GdkRectangle *rect, | |
15109 | gboolean invalidate_children); | |
15110 | void gdk_window_invalidate_region (GdkWindow *window, | |
15111 | GdkRegion *region, | |
15112 | gboolean invalidate_children); | |
15113 | void gdk_window_invalidate_maybe_recurse (GdkWindow *window, | |
15114 | GdkRegion *region, | |
15115 | gboolean (*child_func) (GdkWindow *, gpointer), | |
15116 | gpointer user_data); | |
15117 | GdkRegion *gdk_window_get_update_area (GdkWindow *window); | |
15118 | ||
15119 | void gdk_window_freeze_updates (GdkWindow *window); | |
15120 | void gdk_window_thaw_updates (GdkWindow *window); | |
15121 | ||
15122 | void gdk_window_freeze_toplevel_updates_libgtk_only (GdkWindow *window); | |
15123 | void gdk_window_thaw_toplevel_updates_libgtk_only (GdkWindow *window); | |
15124 | ||
15125 | void gdk_window_process_all_updates (void); | |
15126 | void gdk_window_process_updates (GdkWindow *window, | |
15127 | gboolean update_children); | |
15128 | ||
15129 | ||
15130 | void gdk_window_set_debug_updates (gboolean setting); | |
15131 | ||
15132 | void gdk_window_constrain_size (GdkGeometry *geometry, | |
15133 | guint flags, | |
15134 | gint width, | |
15135 | gint height, | |
15136 | gint *new_width, | |
15137 | gint *new_height); | |
15138 | ||
15139 | void gdk_window_get_internal_paint_info (GdkWindow *window, | |
15140 | GdkDrawable **real_drawable, | |
15141 | gint *x_offset, | |
15142 | gint *y_offset); | |
15143 | ||
15144 | void gdk_window_enable_synchronized_configure (GdkWindow *window); | |
15145 | void gdk_window_configure_finished (GdkWindow *window); | |
15146 | ||
15147 | ||
15148 | GdkPointerHooks *gdk_set_pointer_hooks (const GdkPointerHooks *new_hooks); | |
15149 | ||
15150 | ||
15151 | GdkWindow *gdk_get_default_root_window (void); | |
15152 | # 655 "../gdk/gdkwindow.h" | |
15153 | ||
15154 | # 56 "../gdk/gdk.h" 2 | |
15155 | ||
15156 | ||
15157 | ||
15158 | ||
15159 | ||
15160 | ||
15161 | ||
15162 | void gdk_parse_args (gint *argc, | |
15163 | gchar ***argv); | |
15164 | void gdk_init (gint *argc, | |
15165 | gchar ***argv); | |
15166 | gboolean gdk_init_check (gint *argc, | |
15167 | gchar ***argv); | |
15168 | void gdk_add_option_entries_libgtk_only (GOptionGroup *group); | |
15169 | void gdk_pre_parse_libgtk_only (void); | |
15170 | ||
15171 | ||
15172 | ||
15173 | ||
15174 | gchar* gdk_set_locale (void); | |
15175 | ||
15176 | const char *gdk_get_program_class (void); | |
15177 | void gdk_set_program_class (const char *program_class); | |
15178 | ||
15179 | ||
15180 | ||
15181 | void gdk_error_trap_push (void); | |
15182 | gint gdk_error_trap_pop (void); | |
15183 | ||
15184 | ||
15185 | ||
15186 | ||
15187 | ||
15188 | ||
15189 | gchar* gdk_get_display (void); | |
15190 | const gchar* gdk_get_display_arg_name (void); | |
15191 | ||
15192 | ||
15193 | ||
15194 | gint gdk_input_add_full (gint source, | |
15195 | GdkInputCondition condition, | |
15196 | GdkInputFunction function, | |
15197 | gpointer data, | |
15198 | GdkDestroyNotify destroy); | |
15199 | # 109 "../gdk/gdk.h" | |
15200 | GdkGrabStatus gdk_pointer_grab (GdkWindow *window, | |
15201 | gboolean owner_events, | |
15202 | GdkEventMask event_mask, | |
15203 | GdkWindow *confine_to, | |
15204 | GdkCursor *cursor, | |
15205 | guint32 time_); | |
15206 | GdkGrabStatus gdk_keyboard_grab (GdkWindow *window, | |
15207 | gboolean owner_events, | |
15208 | guint32 time_); | |
15209 | ||
15210 | gboolean gdk_pointer_grab_info_libgtk_only (GdkDisplay *display, | |
15211 | GdkWindow **grab_window, | |
15212 | gboolean *owner_events); | |
15213 | gboolean gdk_keyboard_grab_info_libgtk_only (GdkDisplay *display, | |
15214 | GdkWindow **grab_window, | |
15215 | gboolean *owner_events); | |
15216 | ||
15217 | ||
15218 | void gdk_pointer_ungrab (guint32 time_); | |
15219 | void gdk_keyboard_ungrab (guint32 time_); | |
15220 | gboolean gdk_pointer_is_grabbed (void); | |
15221 | ||
15222 | gint gdk_screen_width (void) __attribute__((__const__)); | |
15223 | gint gdk_screen_height (void) __attribute__((__const__)); | |
15224 | ||
15225 | gint gdk_screen_width_mm (void) __attribute__((__const__)); | |
15226 | gint gdk_screen_height_mm (void) __attribute__((__const__)); | |
15227 | ||
15228 | void gdk_beep (void); | |
15229 | ||
15230 | ||
15231 | void gdk_flush (void); | |
15232 | ||
15233 | ||
15234 | void gdk_set_double_click_time (guint msec); | |
15235 | ||
15236 | ||
15237 | ||
15238 | ||
15239 | gboolean gdk_rectangle_intersect (GdkRectangle *src1, | |
15240 | GdkRectangle *src2, | |
15241 | GdkRectangle *dest); | |
15242 | void gdk_rectangle_union (GdkRectangle *src1, | |
15243 | GdkRectangle *src2, | |
15244 | GdkRectangle *dest); | |
15245 | ||
15246 | GType gdk_rectangle_get_type (void) __attribute__((__const__)); | |
15247 | # 170 "../gdk/gdk.h" | |
15248 | gboolean gdk_event_send_client_message (GdkEvent *event, | |
15249 | GdkNativeWindow winid); | |
15250 | void gdk_event_send_clientmessage_toall (GdkEvent *event); | |
15251 | ||
15252 | gboolean gdk_event_send_client_message_for_display (GdkDisplay *display, | |
15253 | GdkEvent *event, | |
15254 | GdkNativeWindow winid); | |
15255 | ||
15256 | void gdk_notify_startup_complete (void); | |
15257 | ||
15258 | void gdk_notify_startup_complete_with_id (const gchar* startup_id); | |
15259 | # 189 "../gdk/gdk.h" | |
15260 | extern GCallback gdk_threads_lock; | |
15261 | extern GCallback gdk_threads_unlock; | |
15262 | ||
15263 | void gdk_threads_enter (void); | |
15264 | void gdk_threads_leave (void); | |
15265 | void gdk_threads_init (void); | |
15266 | void gdk_threads_set_lock_functions (GCallback enter_fn, | |
15267 | GCallback leave_fn); | |
15268 | ||
15269 | guint gdk_threads_add_idle_full (gint priority, | |
15270 | GSourceFunc function, | |
15271 | gpointer data, | |
15272 | GDestroyNotify notify); | |
15273 | guint gdk_threads_add_idle (GSourceFunc function, | |
15274 | gpointer data); | |
15275 | guint gdk_threads_add_timeout_full (gint priority, | |
15276 | guint interval, | |
15277 | GSourceFunc function, | |
15278 | gpointer data, | |
15279 | GDestroyNotify notify); | |
15280 | guint gdk_threads_add_timeout (guint interval, | |
15281 | GSourceFunc function, | |
15282 | gpointer data); | |
15283 | # 227 "../gdk/gdk.h" | |
15284 | ||
15285 | # 33 "gtknotebook.h" 2 | |
15286 | # 1 "../gtk/gtkcontainer.h" 1 | |
15287 | # 32 "../gtk/gtkcontainer.h" | |
15288 | # 1 "../gtk/gtkenums.h" 1 | |
15289 | # 32 "../gtk/gtkenums.h" | |
15290 | ||
15291 | ||
15292 | ||
15293 | typedef enum | |
15294 | { | |
15295 | GTK_ANCHOR_CENTER, | |
15296 | GTK_ANCHOR_NORTH, | |
15297 | GTK_ANCHOR_NORTH_WEST, | |
15298 | GTK_ANCHOR_NORTH_EAST, | |
15299 | GTK_ANCHOR_SOUTH, | |
15300 | GTK_ANCHOR_SOUTH_WEST, | |
15301 | GTK_ANCHOR_SOUTH_EAST, | |
15302 | GTK_ANCHOR_WEST, | |
15303 | GTK_ANCHOR_EAST, | |
15304 | GTK_ANCHOR_N = GTK_ANCHOR_NORTH, | |
15305 | GTK_ANCHOR_NW = GTK_ANCHOR_NORTH_WEST, | |
15306 | GTK_ANCHOR_NE = GTK_ANCHOR_NORTH_EAST, | |
15307 | GTK_ANCHOR_S = GTK_ANCHOR_SOUTH, | |
15308 | GTK_ANCHOR_SW = GTK_ANCHOR_SOUTH_WEST, | |
15309 | GTK_ANCHOR_SE = GTK_ANCHOR_SOUTH_EAST, | |
15310 | GTK_ANCHOR_W = GTK_ANCHOR_WEST, | |
15311 | GTK_ANCHOR_E = GTK_ANCHOR_EAST | |
15312 | } GtkAnchorType; | |
15313 | ||
15314 | ||
15315 | typedef enum | |
15316 | { | |
15317 | GTK_ARROW_UP, | |
15318 | GTK_ARROW_DOWN, | |
15319 | GTK_ARROW_LEFT, | |
15320 | GTK_ARROW_RIGHT, | |
15321 | GTK_ARROW_NONE | |
15322 | } GtkArrowType; | |
15323 | ||
15324 | ||
15325 | typedef enum | |
15326 | { | |
15327 | GTK_EXPAND = 1 << 0, | |
15328 | GTK_SHRINK = 1 << 1, | |
15329 | GTK_FILL = 1 << 2 | |
15330 | } GtkAttachOptions; | |
15331 | ||
15332 | ||
15333 | typedef enum | |
15334 | { | |
15335 | GTK_BUTTONBOX_DEFAULT_STYLE, | |
15336 | GTK_BUTTONBOX_SPREAD, | |
15337 | GTK_BUTTONBOX_EDGE, | |
15338 | GTK_BUTTONBOX_START, | |
15339 | GTK_BUTTONBOX_END, | |
15340 | GTK_BUTTONBOX_CENTER | |
15341 | } GtkButtonBoxStyle; | |
15342 | ||
15343 | ||
15344 | typedef enum | |
15345 | { | |
15346 | GTK_CURVE_TYPE_LINEAR, | |
15347 | GTK_CURVE_TYPE_SPLINE, | |
15348 | GTK_CURVE_TYPE_FREE | |
15349 | } GtkCurveType; | |
15350 | ||
15351 | typedef enum { | |
15352 | GTK_DELETE_CHARS, | |
15353 | GTK_DELETE_WORD_ENDS, | |
15354 | ||
15355 | ||
15356 | GTK_DELETE_WORDS, | |
15357 | GTK_DELETE_DISPLAY_LINES, | |
15358 | GTK_DELETE_DISPLAY_LINE_ENDS, | |
15359 | GTK_DELETE_PARAGRAPH_ENDS, | |
15360 | GTK_DELETE_PARAGRAPHS, | |
15361 | GTK_DELETE_WHITESPACE | |
15362 | } GtkDeleteType; | |
15363 | ||
15364 | ||
15365 | typedef enum | |
15366 | { | |
15367 | GTK_DIR_TAB_FORWARD, | |
15368 | GTK_DIR_TAB_BACKWARD, | |
15369 | GTK_DIR_UP, | |
15370 | GTK_DIR_DOWN, | |
15371 | GTK_DIR_LEFT, | |
15372 | GTK_DIR_RIGHT | |
15373 | } GtkDirectionType; | |
15374 | ||
15375 | ||
15376 | typedef enum | |
15377 | { | |
15378 | GTK_EXPANDER_COLLAPSED, | |
15379 | GTK_EXPANDER_SEMI_COLLAPSED, | |
15380 | GTK_EXPANDER_SEMI_EXPANDED, | |
15381 | GTK_EXPANDER_EXPANDED | |
15382 | } GtkExpanderStyle; | |
15383 | ||
15384 | ||
15385 | typedef enum | |
15386 | { | |
15387 | GTK_ICON_SIZE_INVALID, | |
15388 | GTK_ICON_SIZE_MENU, | |
15389 | GTK_ICON_SIZE_SMALL_TOOLBAR, | |
15390 | GTK_ICON_SIZE_LARGE_TOOLBAR, | |
15391 | GTK_ICON_SIZE_BUTTON, | |
15392 | GTK_ICON_SIZE_DND, | |
15393 | GTK_ICON_SIZE_DIALOG | |
15394 | } GtkIconSize; | |
15395 | ||
15396 | ||
15397 | typedef enum | |
15398 | { | |
15399 | GTK_SENSITIVITY_AUTO, | |
15400 | GTK_SENSITIVITY_ON, | |
15401 | GTK_SENSITIVITY_OFF | |
15402 | } GtkSensitivityType; | |
15403 | ||
15404 | ||
15405 | ||
15406 | typedef enum | |
15407 | { | |
15408 | GTK_SIDE_TOP, | |
15409 | GTK_SIDE_BOTTOM, | |
15410 | GTK_SIDE_LEFT, | |
15411 | GTK_SIDE_RIGHT | |
15412 | } GtkSideType; | |
15413 | ||
15414 | ||
15415 | ||
15416 | typedef enum | |
15417 | { | |
15418 | GTK_TEXT_DIR_NONE, | |
15419 | GTK_TEXT_DIR_LTR, | |
15420 | GTK_TEXT_DIR_RTL | |
15421 | } GtkTextDirection; | |
15422 | ||
15423 | ||
15424 | typedef enum | |
15425 | { | |
15426 | GTK_JUSTIFY_LEFT, | |
15427 | GTK_JUSTIFY_RIGHT, | |
15428 | GTK_JUSTIFY_CENTER, | |
15429 | GTK_JUSTIFY_FILL | |
15430 | } GtkJustification; | |
15431 | ||
15432 | ||
15433 | ||
15434 | typedef enum | |
15435 | { | |
15436 | GTK_MATCH_ALL, | |
15437 | GTK_MATCH_ALL_TAIL, | |
15438 | GTK_MATCH_HEAD, | |
15439 | GTK_MATCH_TAIL, | |
15440 | GTK_MATCH_EXACT, | |
15441 | GTK_MATCH_LAST | |
15442 | } GtkMatchType; | |
15443 | ||
15444 | ||
15445 | ||
15446 | typedef enum | |
15447 | { | |
15448 | GTK_MENU_DIR_PARENT, | |
15449 | GTK_MENU_DIR_CHILD, | |
15450 | GTK_MENU_DIR_NEXT, | |
15451 | GTK_MENU_DIR_PREV | |
15452 | } GtkMenuDirectionType; | |
15453 | ||
15454 | typedef enum | |
15455 | { | |
15456 | GTK_PIXELS, | |
15457 | GTK_INCHES, | |
15458 | GTK_CENTIMETERS | |
15459 | } GtkMetricType; | |
15460 | ||
15461 | typedef enum | |
15462 | { | |
15463 | GTK_MOVEMENT_LOGICAL_POSITIONS, | |
15464 | GTK_MOVEMENT_VISUAL_POSITIONS, | |
15465 | GTK_MOVEMENT_WORDS, | |
15466 | GTK_MOVEMENT_DISPLAY_LINES, | |
15467 | GTK_MOVEMENT_DISPLAY_LINE_ENDS, | |
15468 | GTK_MOVEMENT_PARAGRAPHS, | |
15469 | GTK_MOVEMENT_PARAGRAPH_ENDS, | |
15470 | GTK_MOVEMENT_PAGES, | |
15471 | GTK_MOVEMENT_BUFFER_ENDS, | |
15472 | GTK_MOVEMENT_HORIZONTAL_PAGES | |
15473 | } GtkMovementStep; | |
15474 | ||
15475 | typedef enum | |
15476 | { | |
15477 | GTK_SCROLL_STEPS, | |
15478 | GTK_SCROLL_PAGES, | |
15479 | GTK_SCROLL_ENDS, | |
15480 | GTK_SCROLL_HORIZONTAL_STEPS, | |
15481 | GTK_SCROLL_HORIZONTAL_PAGES, | |
15482 | GTK_SCROLL_HORIZONTAL_ENDS | |
15483 | } GtkScrollStep; | |
15484 | ||
15485 | ||
15486 | typedef enum | |
15487 | { | |
15488 | GTK_ORIENTATION_HORIZONTAL, | |
15489 | GTK_ORIENTATION_VERTICAL | |
15490 | } GtkOrientation; | |
15491 | ||
15492 | ||
15493 | typedef enum | |
15494 | { | |
15495 | GTK_CORNER_TOP_LEFT, | |
15496 | GTK_CORNER_BOTTOM_LEFT, | |
15497 | GTK_CORNER_TOP_RIGHT, | |
15498 | GTK_CORNER_BOTTOM_RIGHT | |
15499 | } GtkCornerType; | |
15500 | ||
15501 | ||
15502 | typedef enum | |
15503 | { | |
15504 | GTK_PACK_START, | |
15505 | GTK_PACK_END | |
15506 | } GtkPackType; | |
15507 | ||
15508 | ||
15509 | typedef enum | |
15510 | { | |
15511 | GTK_PATH_PRIO_LOWEST = 0, | |
15512 | GTK_PATH_PRIO_GTK = 4, | |
15513 | GTK_PATH_PRIO_APPLICATION = 8, | |
15514 | GTK_PATH_PRIO_THEME = 10, | |
15515 | GTK_PATH_PRIO_RC = 12, | |
15516 | GTK_PATH_PRIO_HIGHEST = 15 | |
15517 | } GtkPathPriorityType; | |
15518 | ||
15519 | ||
15520 | ||
15521 | typedef enum | |
15522 | { | |
15523 | GTK_PATH_WIDGET, | |
15524 | GTK_PATH_WIDGET_CLASS, | |
15525 | GTK_PATH_CLASS | |
15526 | } GtkPathType; | |
15527 | ||
15528 | ||
15529 | typedef enum | |
15530 | { | |
15531 | GTK_POLICY_ALWAYS, | |
15532 | GTK_POLICY_AUTOMATIC, | |
15533 | GTK_POLICY_NEVER | |
15534 | } GtkPolicyType; | |
15535 | ||
15536 | typedef enum | |
15537 | { | |
15538 | GTK_POS_LEFT, | |
15539 | GTK_POS_RIGHT, | |
15540 | GTK_POS_TOP, | |
15541 | GTK_POS_BOTTOM | |
15542 | } GtkPositionType; | |
15543 | ||
15544 | ||
15545 | typedef enum | |
15546 | { | |
15547 | GTK_PREVIEW_COLOR, | |
15548 | GTK_PREVIEW_GRAYSCALE | |
15549 | } GtkPreviewType; | |
15550 | ||
15551 | ||
15552 | ||
15553 | typedef enum | |
15554 | { | |
15555 | GTK_RELIEF_NORMAL, | |
15556 | GTK_RELIEF_HALF, | |
15557 | GTK_RELIEF_NONE | |
15558 | } GtkReliefStyle; | |
15559 | ||
15560 | ||
15561 | typedef enum | |
15562 | { | |
15563 | GTK_RESIZE_PARENT, | |
15564 | GTK_RESIZE_QUEUE, | |
15565 | GTK_RESIZE_IMMEDIATE | |
15566 | } GtkResizeMode; | |
15567 | ||
15568 | ||
15569 | ||
15570 | typedef enum | |
15571 | { | |
15572 | GTK_RUN_FIRST = G_SIGNAL_RUN_FIRST, | |
15573 | GTK_RUN_LAST = G_SIGNAL_RUN_LAST, | |
15574 | GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST), | |
15575 | GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE, | |
15576 | GTK_RUN_ACTION = G_SIGNAL_ACTION, | |
15577 | GTK_RUN_NO_HOOKS = G_SIGNAL_NO_HOOKS | |
15578 | } GtkSignalRunType; | |
15579 | ||
15580 | ||
15581 | ||
15582 | typedef enum | |
15583 | { | |
15584 | GTK_SCROLL_NONE, | |
15585 | GTK_SCROLL_JUMP, | |
15586 | GTK_SCROLL_STEP_BACKWARD, | |
15587 | GTK_SCROLL_STEP_FORWARD, | |
15588 | GTK_SCROLL_PAGE_BACKWARD, | |
15589 | GTK_SCROLL_PAGE_FORWARD, | |
15590 | GTK_SCROLL_STEP_UP, | |
15591 | GTK_SCROLL_STEP_DOWN, | |
15592 | GTK_SCROLL_PAGE_UP, | |
15593 | GTK_SCROLL_PAGE_DOWN, | |
15594 | GTK_SCROLL_STEP_LEFT, | |
15595 | GTK_SCROLL_STEP_RIGHT, | |
15596 | GTK_SCROLL_PAGE_LEFT, | |
15597 | GTK_SCROLL_PAGE_RIGHT, | |
15598 | GTK_SCROLL_START, | |
15599 | GTK_SCROLL_END | |
15600 | } GtkScrollType; | |
15601 | ||
15602 | ||
15603 | typedef enum | |
15604 | { | |
15605 | GTK_SELECTION_NONE, | |
15606 | GTK_SELECTION_SINGLE, | |
15607 | GTK_SELECTION_BROWSE, | |
15608 | GTK_SELECTION_MULTIPLE, | |
15609 | GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE | |
15610 | } GtkSelectionMode; | |
15611 | ||
15612 | ||
15613 | typedef enum | |
15614 | { | |
15615 | GTK_SHADOW_NONE, | |
15616 | GTK_SHADOW_IN, | |
15617 | GTK_SHADOW_OUT, | |
15618 | GTK_SHADOW_ETCHED_IN, | |
15619 | GTK_SHADOW_ETCHED_OUT | |
15620 | } GtkShadowType; | |
15621 | ||
15622 | ||
15623 | typedef enum | |
15624 | { | |
15625 | GTK_STATE_NORMAL, | |
15626 | GTK_STATE_ACTIVE, | |
15627 | GTK_STATE_PRELIGHT, | |
15628 | GTK_STATE_SELECTED, | |
15629 | GTK_STATE_INSENSITIVE | |
15630 | } GtkStateType; | |
15631 | ||
15632 | ||
15633 | ||
15634 | typedef enum | |
15635 | { | |
15636 | GTK_DIRECTION_LEFT, | |
15637 | GTK_DIRECTION_RIGHT | |
15638 | } GtkSubmenuDirection; | |
15639 | ||
15640 | ||
15641 | typedef enum | |
15642 | { | |
15643 | GTK_TOP_BOTTOM, | |
15644 | GTK_LEFT_RIGHT | |
15645 | } GtkSubmenuPlacement; | |
15646 | ||
15647 | ||
15648 | ||
15649 | typedef enum | |
15650 | { | |
15651 | GTK_TOOLBAR_ICONS, | |
15652 | GTK_TOOLBAR_TEXT, | |
15653 | GTK_TOOLBAR_BOTH, | |
15654 | GTK_TOOLBAR_BOTH_HORIZ | |
15655 | } GtkToolbarStyle; | |
15656 | ||
15657 | ||
15658 | typedef enum | |
15659 | { | |
15660 | GTK_UPDATE_CONTINUOUS, | |
15661 | GTK_UPDATE_DISCONTINUOUS, | |
15662 | GTK_UPDATE_DELAYED | |
15663 | } GtkUpdateType; | |
15664 | ||
15665 | ||
15666 | typedef enum | |
15667 | { | |
15668 | GTK_VISIBILITY_NONE, | |
15669 | GTK_VISIBILITY_PARTIAL, | |
15670 | GTK_VISIBILITY_FULL | |
15671 | } GtkVisibility; | |
15672 | ||
15673 | ||
15674 | typedef enum | |
15675 | { | |
15676 | GTK_WIN_POS_NONE, | |
15677 | GTK_WIN_POS_CENTER, | |
15678 | GTK_WIN_POS_MOUSE, | |
15679 | GTK_WIN_POS_CENTER_ALWAYS, | |
15680 | GTK_WIN_POS_CENTER_ON_PARENT | |
15681 | } GtkWindowPosition; | |
15682 | ||
15683 | ||
15684 | typedef enum | |
15685 | { | |
15686 | GTK_WINDOW_TOPLEVEL, | |
15687 | GTK_WINDOW_POPUP | |
15688 | } GtkWindowType; | |
15689 | ||
15690 | ||
15691 | typedef enum | |
15692 | { | |
15693 | GTK_WRAP_NONE, | |
15694 | GTK_WRAP_CHAR, | |
15695 | GTK_WRAP_WORD, | |
15696 | GTK_WRAP_WORD_CHAR | |
15697 | } GtkWrapMode; | |
15698 | ||
15699 | ||
15700 | typedef enum | |
15701 | { | |
15702 | GTK_SORT_ASCENDING, | |
15703 | GTK_SORT_DESCENDING | |
15704 | } GtkSortType; | |
15705 | ||
15706 | ||
15707 | typedef enum | |
15708 | { | |
15709 | GTK_IM_PREEDIT_NOTHING, | |
15710 | GTK_IM_PREEDIT_CALLBACK, | |
15711 | GTK_IM_PREEDIT_NONE | |
15712 | } GtkIMPreeditStyle; | |
15713 | ||
15714 | typedef enum | |
15715 | { | |
15716 | GTK_IM_STATUS_NOTHING, | |
15717 | GTK_IM_STATUS_CALLBACK, | |
15718 | GTK_IM_STATUS_NONE | |
15719 | } GtkIMStatusStyle; | |
15720 | ||
15721 | typedef enum | |
15722 | { | |
15723 | GTK_PACK_DIRECTION_LTR, | |
15724 | GTK_PACK_DIRECTION_RTL, | |
15725 | GTK_PACK_DIRECTION_TTB, | |
15726 | GTK_PACK_DIRECTION_BTT | |
15727 | } GtkPackDirection; | |
15728 | ||
15729 | typedef enum { | |
15730 | GTK_PRINT_PAGES_ALL, | |
15731 | GTK_PRINT_PAGES_CURRENT, | |
15732 | GTK_PRINT_PAGES_RANGES | |
15733 | } GtkPrintPages; | |
15734 | ||
15735 | typedef enum { | |
15736 | GTK_PAGE_SET_ALL, | |
15737 | GTK_PAGE_SET_EVEN, | |
15738 | GTK_PAGE_SET_ODD | |
15739 | } GtkPageSet; | |
15740 | ||
15741 | typedef enum { | |
15742 | GTK_PAGE_ORIENTATION_PORTRAIT, | |
15743 | GTK_PAGE_ORIENTATION_LANDSCAPE, | |
15744 | GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT, | |
15745 | GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE | |
15746 | } GtkPageOrientation; | |
15747 | ||
15748 | typedef enum { | |
15749 | GTK_PRINT_QUALITY_LOW, | |
15750 | GTK_PRINT_QUALITY_NORMAL, | |
15751 | GTK_PRINT_QUALITY_HIGH, | |
15752 | GTK_PRINT_QUALITY_DRAFT | |
15753 | } GtkPrintQuality; | |
15754 | ||
15755 | typedef enum { | |
15756 | GTK_PRINT_DUPLEX_SIMPLEX, | |
15757 | GTK_PRINT_DUPLEX_HORIZONTAL, | |
15758 | GTK_PRINT_DUPLEX_VERTICAL | |
15759 | } GtkPrintDuplex; | |
15760 | ||
15761 | ||
15762 | typedef enum { | |
15763 | GTK_UNIT_PIXEL, | |
15764 | GTK_UNIT_POINTS, | |
15765 | GTK_UNIT_INCH, | |
15766 | GTK_UNIT_MM | |
15767 | } GtkUnit; | |
15768 | ||
15769 | typedef enum { | |
15770 | GTK_TREE_VIEW_GRID_LINES_NONE, | |
15771 | GTK_TREE_VIEW_GRID_LINES_HORIZONTAL, | |
15772 | GTK_TREE_VIEW_GRID_LINES_VERTICAL, | |
15773 | GTK_TREE_VIEW_GRID_LINES_BOTH | |
15774 | } GtkTreeViewGridLines; | |
15775 | ||
15776 | typedef enum { | |
15777 | GTK_DRAG_RESULT_SUCCESS, | |
15778 | GTK_DRAG_RESULT_NO_TARGET, | |
15779 | GTK_DRAG_RESULT_USER_CANCELLED, | |
15780 | GTK_DRAG_RESULT_TIMEOUT_EXPIRED, | |
15781 | GTK_DRAG_RESULT_GRAB_BROKEN, | |
15782 | GTK_DRAG_RESULT_ERROR | |
15783 | } GtkDragResult; | |
15784 | ||
15785 | ||
15786 | # 33 "../gtk/gtkcontainer.h" 2 | |
15787 | # 1 "../gtk/gtkwidget.h" 1 | |
15788 | # 31 "../gtk/gtkwidget.h" | |
15789 | # 1 "../gtk/gtkaccelgroup.h" 1 | |
15790 | # 34 "../gtk/gtkaccelgroup.h" | |
15791 | ||
15792 | # 47 "../gtk/gtkaccelgroup.h" | |
15793 | typedef enum | |
15794 | { | |
15795 | GTK_ACCEL_VISIBLE = 1 << 0, | |
15796 | GTK_ACCEL_LOCKED = 1 << 1, | |
15797 | GTK_ACCEL_MASK = 0x07 | |
15798 | } GtkAccelFlags; | |
15799 | ||
15800 | ||
15801 | ||
15802 | typedef struct _GtkAccelGroup GtkAccelGroup; | |
15803 | typedef struct _GtkAccelGroupClass GtkAccelGroupClass; | |
15804 | typedef struct _GtkAccelKey GtkAccelKey; | |
15805 | typedef struct _GtkAccelGroupEntry GtkAccelGroupEntry; | |
15806 | typedef gboolean (*GtkAccelGroupActivate) (GtkAccelGroup *accel_group, | |
15807 | GObject *acceleratable, | |
15808 | guint keyval, | |
15809 | GdkModifierType modifier); | |
15810 | ||
15811 | typedef gboolean (*GtkAccelGroupFindFunc) (GtkAccelKey *key, | |
15812 | GClosure *closure, | |
15813 | gpointer data); | |
15814 | ||
15815 | struct _GtkAccelGroup | |
15816 | { | |
15817 | GObject parent; | |
15818 | guint lock_count; | |
15819 | GdkModifierType modifier_mask; | |
15820 | GSList *acceleratables; | |
15821 | guint n_accels; | |
15822 | GtkAccelGroupEntry *priv_accels; | |
15823 | }; | |
15824 | ||
15825 | struct _GtkAccelGroupClass | |
15826 | { | |
15827 | GObjectClass parent_class; | |
15828 | ||
15829 | void (*accel_changed) (GtkAccelGroup *accel_group, | |
15830 | guint keyval, | |
15831 | GdkModifierType modifier, | |
15832 | GClosure *accel_closure); | |
15833 | ||
15834 | ||
15835 | void (*_gtk_reserved1) (void); | |
15836 | void (*_gtk_reserved2) (void); | |
15837 | void (*_gtk_reserved3) (void); | |
15838 | void (*_gtk_reserved4) (void); | |
15839 | }; | |
15840 | ||
15841 | struct _GtkAccelKey | |
15842 | { | |
15843 | guint accel_key; | |
15844 | GdkModifierType accel_mods; | |
15845 | guint accel_flags : 16; | |
15846 | }; | |
15847 | ||
15848 | ||
15849 | ||
15850 | GType gtk_accel_group_get_type (void) __attribute__((__const__)); | |
15851 | GtkAccelGroup* gtk_accel_group_new (void); | |
15852 | void gtk_accel_group_lock (GtkAccelGroup *accel_group); | |
15853 | void gtk_accel_group_unlock (GtkAccelGroup *accel_group); | |
15854 | void gtk_accel_group_connect (GtkAccelGroup *accel_group, | |
15855 | guint accel_key, | |
15856 | GdkModifierType accel_mods, | |
15857 | GtkAccelFlags accel_flags, | |
15858 | GClosure *closure); | |
15859 | void gtk_accel_group_connect_by_path (GtkAccelGroup *accel_group, | |
15860 | const gchar *accel_path, | |
15861 | GClosure *closure); | |
15862 | gboolean gtk_accel_group_disconnect (GtkAccelGroup *accel_group, | |
15863 | GClosure *closure); | |
15864 | gboolean gtk_accel_group_disconnect_key (GtkAccelGroup *accel_group, | |
15865 | guint accel_key, | |
15866 | GdkModifierType accel_mods); | |
15867 | gboolean gtk_accel_group_activate (GtkAccelGroup *accel_group, | |
15868 | GQuark accel_quark, | |
15869 | GObject *acceleratable, | |
15870 | guint accel_key, | |
15871 | GdkModifierType accel_mods); | |
15872 | ||
15873 | ||
15874 | ||
15875 | void _gtk_accel_group_attach (GtkAccelGroup *accel_group, | |
15876 | GObject *object); | |
15877 | void _gtk_accel_group_detach (GtkAccelGroup *accel_group, | |
15878 | GObject *object); | |
15879 | gboolean gtk_accel_groups_activate (GObject *object, | |
15880 | guint accel_key, | |
15881 | GdkModifierType accel_mods); | |
15882 | GSList* gtk_accel_groups_from_object (GObject *object); | |
15883 | GtkAccelKey* gtk_accel_group_find (GtkAccelGroup *accel_group, | |
15884 | GtkAccelGroupFindFunc find_func, | |
15885 | gpointer data); | |
15886 | GtkAccelGroup* gtk_accel_group_from_accel_closure (GClosure *closure); | |
15887 | ||
15888 | ||
15889 | ||
15890 | gboolean gtk_accelerator_valid (guint keyval, | |
15891 | GdkModifierType modifiers) __attribute__((__const__)); | |
15892 | void gtk_accelerator_parse (const gchar *accelerator, | |
15893 | guint *accelerator_key, | |
15894 | GdkModifierType *accelerator_mods); | |
15895 | gchar* gtk_accelerator_name (guint accelerator_key, | |
15896 | GdkModifierType accelerator_mods); | |
15897 | gchar* gtk_accelerator_get_label (guint accelerator_key, | |
15898 | GdkModifierType accelerator_mods); | |
15899 | void gtk_accelerator_set_default_mod_mask (GdkModifierType default_mod_mask); | |
15900 | guint gtk_accelerator_get_default_mod_mask (void); | |
15901 | ||
15902 | ||
15903 | ||
15904 | GtkAccelGroupEntry* gtk_accel_group_query (GtkAccelGroup *accel_group, | |
15905 | guint accel_key, | |
15906 | GdkModifierType accel_mods, | |
15907 | guint *n_entries); | |
15908 | ||
15909 | void _gtk_accel_group_reconnect (GtkAccelGroup *accel_group, | |
15910 | GQuark accel_path_quark); | |
15911 | ||
15912 | struct _GtkAccelGroupEntry | |
15913 | { | |
15914 | GtkAccelKey key; | |
15915 | GClosure *closure; | |
15916 | GQuark accel_path_quark; | |
15917 | }; | |
15918 | ||
15919 | ||
15920 | ||
15921 | ||
15922 | ||
15923 | ||
15924 | ||
15925 | ||
15926 | # 32 "../gtk/gtkwidget.h" 2 | |
15927 | # 1 "../gtk/gtkobject.h" 1 | |
15928 | # 32 "../gtk/gtkobject.h" | |
15929 | # 1 "../gtk/gtktypeutils.h" 1 | |
15930 | # 34 "../gtk/gtktypeutils.h" | |
15931 | ||
15932 | # 62 "../gtk/gtktypeutils.h" | |
15933 | typedef GType GtkFundamentalType; | |
15934 | # 89 "../gtk/gtktypeutils.h" | |
15935 | typedef GType GtkType; | |
15936 | ||
15937 | ||
15938 | ||
15939 | typedef GTypeInstance GtkTypeObject; | |
15940 | typedef GTypeClass GtkTypeClass; | |
15941 | typedef GBaseInitFunc GtkClassInitFunc; | |
15942 | typedef GInstanceInitFunc GtkObjectInitFunc; | |
15943 | ||
15944 | ||
15945 | ||
15946 | ||
15947 | ||
15948 | ||
15949 | ||
15950 | # 1 "../gtk/gtktypebuiltins.h" 1 | |
15951 | # 9 "../gtk/gtktypebuiltins.h" | |
15952 | ||
15953 | ||
15954 | GType gtk_accel_flags_get_type (void) __attribute__((__const__)); | |
15955 | ||
15956 | ||
15957 | GType gtk_assistant_page_type_get_type (void) __attribute__((__const__)); | |
15958 | ||
15959 | ||
15960 | GType gtk_builder_error_get_type (void) __attribute__((__const__)); | |
15961 | ||
15962 | ||
15963 | GType gtk_calendar_display_options_get_type (void) __attribute__((__const__)); | |
15964 | ||
15965 | ||
15966 | GType gtk_cell_renderer_state_get_type (void) __attribute__((__const__)); | |
15967 | ||
15968 | GType gtk_cell_renderer_mode_get_type (void) __attribute__((__const__)); | |
15969 | ||
15970 | ||
15971 | GType gtk_cell_renderer_accel_mode_get_type (void) __attribute__((__const__)); | |
15972 | ||
15973 | ||
15974 | GType gtk_cell_type_get_type (void) __attribute__((__const__)); | |
15975 | ||
15976 | GType gtk_clist_drag_pos_get_type (void) __attribute__((__const__)); | |
15977 | ||
15978 | GType gtk_button_action_get_type (void) __attribute__((__const__)); | |
15979 | ||
15980 | ||
15981 | GType gtk_ctree_pos_get_type (void) __attribute__((__const__)); | |
15982 | ||
15983 | GType gtk_ctree_line_style_get_type (void) __attribute__((__const__)); | |
15984 | ||
15985 | GType gtk_ctree_expander_style_get_type (void) __attribute__((__const__)); | |
15986 | ||
15987 | GType gtk_ctree_expansion_type_get_type (void) __attribute__((__const__)); | |
15988 | ||
15989 | ||
15990 | GType gtk_debug_flag_get_type (void) __attribute__((__const__)); | |
15991 | ||
15992 | ||
15993 | GType gtk_dialog_flags_get_type (void) __attribute__((__const__)); | |
15994 | ||
15995 | GType gtk_response_type_get_type (void) __attribute__((__const__)); | |
15996 | ||
15997 | ||
15998 | GType gtk_dest_defaults_get_type (void) __attribute__((__const__)); | |
15999 | ||
16000 | GType gtk_target_flags_get_type (void) __attribute__((__const__)); | |
16001 | ||
16002 | ||
16003 | GType gtk_anchor_type_get_type (void) __attribute__((__const__)); | |
16004 | ||
16005 | GType gtk_arrow_type_get_type (void) __attribute__((__const__)); | |
16006 | ||
16007 | GType gtk_attach_options_get_type (void) __attribute__((__const__)); | |
16008 | ||
16009 | GType gtk_button_box_style_get_type (void) __attribute__((__const__)); | |
16010 | ||
16011 | GType gtk_curve_type_get_type (void) __attribute__((__const__)); | |
16012 | ||
16013 | GType gtk_delete_type_get_type (void) __attribute__((__const__)); | |
16014 | ||
16015 | GType gtk_direction_type_get_type (void) __attribute__((__const__)); | |
16016 | ||
16017 | GType gtk_expander_style_get_type (void) __attribute__((__const__)); | |
16018 | ||
16019 | GType gtk_icon_size_get_type (void) __attribute__((__const__)); | |
16020 | ||
16021 | GType gtk_sensitivity_type_get_type (void) __attribute__((__const__)); | |
16022 | ||
16023 | GType gtk_side_type_get_type (void) __attribute__((__const__)); | |
16024 | ||
16025 | GType gtk_text_direction_get_type (void) __attribute__((__const__)); | |
16026 | ||
16027 | GType gtk_justification_get_type (void) __attribute__((__const__)); | |
16028 | ||
16029 | GType gtk_match_type_get_type (void) __attribute__((__const__)); | |
16030 | ||
16031 | GType gtk_menu_direction_type_get_type (void) __attribute__((__const__)); | |
16032 | ||
16033 | GType gtk_metric_type_get_type (void) __attribute__((__const__)); | |
16034 | ||
16035 | GType gtk_movement_step_get_type (void) __attribute__((__const__)); | |
16036 | ||
16037 | GType gtk_scroll_step_get_type (void) __attribute__((__const__)); | |
16038 | ||
16039 | GType gtk_orientation_get_type (void) __attribute__((__const__)); | |
16040 | ||
16041 | GType gtk_corner_type_get_type (void) __attribute__((__const__)); | |
16042 | ||
16043 | GType gtk_pack_type_get_type (void) __attribute__((__const__)); | |
16044 | ||
16045 | GType gtk_path_priority_type_get_type (void) __attribute__((__const__)); | |
16046 | ||
16047 | GType gtk_path_type_get_type (void) __attribute__((__const__)); | |
16048 | ||
16049 | GType gtk_policy_type_get_type (void) __attribute__((__const__)); | |
16050 | ||
16051 | GType gtk_position_type_get_type (void) __attribute__((__const__)); | |
16052 | ||
16053 | GType gtk_preview_type_get_type (void) __attribute__((__const__)); | |
16054 | ||
16055 | GType gtk_relief_style_get_type (void) __attribute__((__const__)); | |
16056 | ||
16057 | GType gtk_resize_mode_get_type (void) __attribute__((__const__)); | |
16058 | ||
16059 | GType gtk_signal_run_type_get_type (void) __attribute__((__const__)); | |
16060 | ||
16061 | GType gtk_scroll_type_get_type (void) __attribute__((__const__)); | |
16062 | ||
16063 | GType gtk_selection_mode_get_type (void) __attribute__((__const__)); | |
16064 | ||
16065 | GType gtk_shadow_type_get_type (void) __attribute__((__const__)); | |
16066 | ||
16067 | GType gtk_state_type_get_type (void) __attribute__((__const__)); | |
16068 | ||
16069 | GType gtk_submenu_direction_get_type (void) __attribute__((__const__)); | |
16070 | ||
16071 | GType gtk_submenu_placement_get_type (void) __attribute__((__const__)); | |
16072 | ||
16073 | GType gtk_toolbar_style_get_type (void) __attribute__((__const__)); | |
16074 | ||
16075 | GType gtk_update_type_get_type (void) __attribute__((__const__)); | |
16076 | ||
16077 | GType gtk_visibility_get_type (void) __attribute__((__const__)); | |
16078 | ||
16079 | GType gtk_window_position_get_type (void) __attribute__((__const__)); | |
16080 | ||
16081 | GType gtk_window_type_get_type (void) __attribute__((__const__)); | |
16082 | ||
16083 | GType gtk_wrap_mode_get_type (void) __attribute__((__const__)); | |
16084 | ||
16085 | GType gtk_sort_type_get_type (void) __attribute__((__const__)); | |
16086 | ||
16087 | GType gtk_im_preedit_style_get_type (void) __attribute__((__const__)); | |
16088 | ||
16089 | GType gtk_im_status_style_get_type (void) __attribute__((__const__)); | |
16090 | ||
16091 | GType gtk_pack_direction_get_type (void) __attribute__((__const__)); | |
16092 | ||
16093 | GType gtk_print_pages_get_type (void) __attribute__((__const__)); | |
16094 | ||
16095 | GType gtk_page_set_get_type (void) __attribute__((__const__)); | |
16096 | ||
16097 | GType gtk_page_orientation_get_type (void) __attribute__((__const__)); | |
16098 | ||
16099 | GType gtk_print_quality_get_type (void) __attribute__((__const__)); | |
16100 | ||
16101 | GType gtk_print_duplex_get_type (void) __attribute__((__const__)); | |
16102 | ||
16103 | GType gtk_unit_get_type (void) __attribute__((__const__)); | |
16104 | ||
16105 | GType gtk_tree_view_grid_lines_get_type (void) __attribute__((__const__)); | |
16106 | ||
16107 | GType gtk_drag_result_get_type (void) __attribute__((__const__)); | |
16108 | ||
16109 | ||
16110 | GType gtk_file_chooser_action_get_type (void) __attribute__((__const__)); | |
16111 | ||
16112 | GType gtk_file_chooser_confirmation_get_type (void) __attribute__((__const__)); | |
16113 | ||
16114 | GType gtk_file_chooser_error_get_type (void) __attribute__((__const__)); | |
16115 | ||
16116 | ||
16117 | GType gtk_file_filter_flags_get_type (void) __attribute__((__const__)); | |
16118 | ||
16119 | ||
16120 | GType gtk_icon_lookup_flags_get_type (void) __attribute__((__const__)); | |
16121 | ||
16122 | GType gtk_icon_theme_error_get_type (void) __attribute__((__const__)); | |
16123 | ||
16124 | ||
16125 | GType gtk_icon_view_drop_position_get_type (void) __attribute__((__const__)); | |
16126 | ||
16127 | ||
16128 | GType gtk_image_type_get_type (void) __attribute__((__const__)); | |
16129 | ||
16130 | ||
16131 | GType gtk_message_type_get_type (void) __attribute__((__const__)); | |
16132 | ||
16133 | GType gtk_buttons_type_get_type (void) __attribute__((__const__)); | |
16134 | ||
16135 | ||
16136 | GType gtk_notebook_tab_get_type (void) __attribute__((__const__)); | |
16137 | ||
16138 | ||
16139 | GType gtk_object_flags_get_type (void) __attribute__((__const__)); | |
16140 | ||
16141 | GType gtk_arg_flags_get_type (void) __attribute__((__const__)); | |
16142 | ||
16143 | ||
16144 | GType gtk_print_status_get_type (void) __attribute__((__const__)); | |
16145 | ||
16146 | GType gtk_print_operation_result_get_type (void) __attribute__((__const__)); | |
16147 | ||
16148 | GType gtk_print_operation_action_get_type (void) __attribute__((__const__)); | |
16149 | ||
16150 | GType gtk_print_error_get_type (void) __attribute__((__const__)); | |
16151 | ||
16152 | ||
16153 | GType gtk_private_flags_get_type (void) __attribute__((__const__)); | |
16154 | ||
16155 | ||
16156 | GType gtk_progress_bar_style_get_type (void) __attribute__((__const__)); | |
16157 | ||
16158 | GType gtk_progress_bar_orientation_get_type (void) __attribute__((__const__)); | |
16159 | ||
16160 | ||
16161 | GType gtk_rc_flags_get_type (void) __attribute__((__const__)); | |
16162 | ||
16163 | GType gtk_rc_token_type_get_type (void) __attribute__((__const__)); | |
16164 | ||
16165 | ||
16166 | GType gtk_recent_sort_type_get_type (void) __attribute__((__const__)); | |
16167 | ||
16168 | GType gtk_recent_chooser_error_get_type (void) __attribute__((__const__)); | |
16169 | ||
16170 | ||
16171 | GType gtk_recent_filter_flags_get_type (void) __attribute__((__const__)); | |
16172 | ||
16173 | ||
16174 | GType gtk_recent_manager_error_get_type (void) __attribute__((__const__)); | |
16175 | ||
16176 | ||
16177 | GType gtk_size_group_mode_get_type (void) __attribute__((__const__)); | |
16178 | ||
16179 | ||
16180 | GType gtk_spin_button_update_policy_get_type (void) __attribute__((__const__)); | |
16181 | ||
16182 | GType gtk_spin_type_get_type (void) __attribute__((__const__)); | |
16183 | ||
16184 | ||
16185 | GType gtk_text_buffer_target_info_get_type (void) __attribute__((__const__)); | |
16186 | ||
16187 | ||
16188 | GType gtk_text_search_flags_get_type (void) __attribute__((__const__)); | |
16189 | ||
16190 | ||
16191 | GType gtk_text_window_type_get_type (void) __attribute__((__const__)); | |
16192 | ||
16193 | ||
16194 | GType gtk_toolbar_child_type_get_type (void) __attribute__((__const__)); | |
16195 | ||
16196 | GType gtk_toolbar_space_style_get_type (void) __attribute__((__const__)); | |
16197 | ||
16198 | ||
16199 | GType gtk_tree_view_mode_get_type (void) __attribute__((__const__)); | |
16200 | ||
16201 | ||
16202 | GType gtk_tree_model_flags_get_type (void) __attribute__((__const__)); | |
16203 | ||
16204 | ||
16205 | GType gtk_tree_view_drop_position_get_type (void) __attribute__((__const__)); | |
16206 | ||
16207 | ||
16208 | GType gtk_tree_view_column_sizing_get_type (void) __attribute__((__const__)); | |
16209 | ||
16210 | ||
16211 | GType gtk_ui_manager_item_type_get_type (void) __attribute__((__const__)); | |
16212 | ||
16213 | ||
16214 | GType gtk_widget_flags_get_type (void) __attribute__((__const__)); | |
16215 | ||
16216 | GType gtk_widget_help_type_get_type (void) __attribute__((__const__)); | |
16217 | ||
16218 | ||
16219 | # 105 "../gtk/gtktypeutils.h" 2 | |
16220 | ||
16221 | ||
16222 | ||
16223 | ||
16224 | ||
16225 | GType gtk_identifier_get_type (void) __attribute__((__const__)); | |
16226 | ||
16227 | ||
16228 | ||
16229 | ||
16230 | ||
16231 | typedef struct _GtkArg GtkArg; | |
16232 | typedef struct _GtkObject GtkObject; | |
16233 | typedef gboolean (*GtkFunction) (gpointer data); | |
16234 | typedef void (*GtkDestroyNotify) (gpointer data); | |
16235 | typedef void (*GtkCallbackMarshal) (GtkObject *object, | |
16236 | gpointer data, | |
16237 | guint n_args, | |
16238 | GtkArg *args); | |
16239 | typedef void (*GtkSignalFunc) (void); | |
16240 | ||
16241 | ||
16242 | ||
16243 | typedef struct _GtkTypeInfo GtkTypeInfo; | |
16244 | typedef GSignalCMarshaller GtkSignalMarshaller; | |
16245 | ||
16246 | ||
16247 | ||
16248 | ||
16249 | ||
16250 | ||
16251 | struct _GtkArg | |
16252 | { | |
16253 | GtkType type; | |
16254 | gchar *name; | |
16255 | ||
16256 | ||
16257 | ||
16258 | ||
16259 | ||
16260 | ||
16261 | ||
16262 | union { | |
16263 | ||
16264 | gchar char_data; | |
16265 | guchar uchar_data; | |
16266 | gboolean bool_data; | |
16267 | gint int_data; | |
16268 | guint uint_data; | |
16269 | glong long_data; | |
16270 | gulong ulong_data; | |
16271 | gfloat float_data; | |
16272 | gdouble double_data; | |
16273 | gchar *string_data; | |
16274 | GtkObject *object_data; | |
16275 | gpointer pointer_data; | |
16276 | ||
16277 | ||
16278 | struct { | |
16279 | GtkSignalFunc f; | |
16280 | gpointer d; | |
16281 | } signal_data; | |
16282 | } d; | |
16283 | }; | |
16284 | # 218 "../gtk/gtktypeutils.h" | |
16285 | struct _GtkTypeInfo | |
16286 | { | |
16287 | gchar *type_name; | |
16288 | guint object_size; | |
16289 | guint class_size; | |
16290 | GtkClassInitFunc class_init_func; | |
16291 | GtkObjectInitFunc object_init_func; | |
16292 | gpointer reserved_1; | |
16293 | gpointer reserved_2; | |
16294 | GtkClassInitFunc base_class_init_func; | |
16295 | }; | |
16296 | ||
16297 | ||
16298 | ||
16299 | gpointer gtk_type_class (GtkType type); | |
16300 | ||
16301 | ||
16302 | ||
16303 | GtkType gtk_type_unique (GtkType parent_type, | |
16304 | const GtkTypeInfo *gtkinfo); | |
16305 | gpointer gtk_type_new (GtkType type); | |
16306 | # 249 "../gtk/gtktypeutils.h" | |
16307 | typedef GEnumValue GtkEnumValue; | |
16308 | typedef GFlagsValue GtkFlagValue; | |
16309 | GtkEnumValue* gtk_type_enum_get_values (GtkType enum_type); | |
16310 | GtkFlagValue* gtk_type_flags_get_values (GtkType flags_type); | |
16311 | GtkEnumValue* gtk_type_enum_find_value (GtkType enum_type, | |
16312 | const gchar *value_name); | |
16313 | GtkFlagValue* gtk_type_flags_find_value (GtkType flags_type, | |
16314 | const gchar *value_name); | |
16315 | ||
16316 | ||
16317 | ||
16318 | ||
16319 | ||
16320 | void gtk_type_init (GTypeDebugFlags debug_flags); | |
16321 | ||
16322 | ||
16323 | ||
16324 | # 33 "../gtk/gtkobject.h" 2 | |
16325 | # 1 "../gtk/gtkdebug.h" 1 | |
16326 | # 32 "../gtk/gtkdebug.h" | |
16327 | ||
16328 | ||
16329 | typedef enum { | |
16330 | GTK_DEBUG_MISC = 1 << 0, | |
16331 | GTK_DEBUG_PLUGSOCKET = 1 << 1, | |
16332 | GTK_DEBUG_TEXT = 1 << 2, | |
16333 | GTK_DEBUG_TREE = 1 << 3, | |
16334 | GTK_DEBUG_UPDATES = 1 << 4, | |
16335 | GTK_DEBUG_KEYBINDINGS = 1 << 5, | |
16336 | GTK_DEBUG_MULTIHEAD = 1 << 6, | |
16337 | GTK_DEBUG_MODULES = 1 << 7, | |
16338 | GTK_DEBUG_GEOMETRY = 1 << 8, | |
16339 | GTK_DEBUG_ICONTHEME = 1 << 9, | |
16340 | GTK_DEBUG_PRINTING = 1 << 10, | |
16341 | GTK_DEBUG_BUILDER = 1 << 11 | |
16342 | } GtkDebugFlag; | |
16343 | # 71 "../gtk/gtkdebug.h" | |
16344 | extern guint gtk_debug_flags; | |
16345 | ||
16346 | ||
16347 | # 34 "../gtk/gtkobject.h" 2 | |
16348 | ||
16349 | ||
16350 | # 58 "../gtk/gtkobject.h" | |
16351 | typedef enum | |
16352 | { | |
16353 | GTK_IN_DESTRUCTION = 1 << 0, | |
16354 | ||
16355 | GTK_FLOATING = 1 << 1, | |
16356 | ||
16357 | GTK_RESERVED_1 = 1 << 2, | |
16358 | GTK_RESERVED_2 = 1 << 3 | |
16359 | } GtkObjectFlags; | |
16360 | # 80 "../gtk/gtkobject.h" | |
16361 | typedef struct _GtkObjectClass GtkObjectClass; | |
16362 | ||
16363 | ||
16364 | struct _GtkObject | |
16365 | { | |
16366 | GInitiallyUnowned parent_instance; | |
16367 | ||
16368 | ||
16369 | ||
16370 | ||
16371 | ||
16372 | ||
16373 | guint32 flags; | |
16374 | }; | |
16375 | ||
16376 | struct _GtkObjectClass | |
16377 | { | |
16378 | GInitiallyUnownedClass parent_class; | |
16379 | ||
16380 | ||
16381 | void (*set_arg) (GtkObject *object, | |
16382 | GtkArg *arg, | |
16383 | guint arg_id); | |
16384 | void (*get_arg) (GtkObject *object, | |
16385 | GtkArg *arg, | |
16386 | guint arg_id); | |
16387 | # 115 "../gtk/gtkobject.h" | |
16388 | void (*destroy) (GtkObject *object); | |
16389 | }; | |
16390 | ||
16391 | ||
16392 | ||
16393 | ||
16394 | ||
16395 | GtkType gtk_object_get_type (void) __attribute__((__const__)); | |
16396 | ||
16397 | ||
16398 | void gtk_object_sink (GtkObject *object); | |
16399 | ||
16400 | void gtk_object_destroy (GtkObject *object); | |
16401 | ||
16402 | ||
16403 | ||
16404 | ||
16405 | ||
16406 | GtkObject* gtk_object_new (GtkType type, | |
16407 | const gchar *first_property_name, | |
16408 | ...); | |
16409 | GtkObject* gtk_object_ref (GtkObject *object); | |
16410 | void gtk_object_unref (GtkObject *object); | |
16411 | void gtk_object_weakref (GtkObject *object, | |
16412 | GtkDestroyNotify notify, | |
16413 | gpointer data); | |
16414 | void gtk_object_weakunref (GtkObject *object, | |
16415 | GtkDestroyNotify notify, | |
16416 | gpointer data); | |
16417 | # 157 "../gtk/gtkobject.h" | |
16418 | void gtk_object_set_data (GtkObject *object, | |
16419 | const gchar *key, | |
16420 | gpointer data); | |
16421 | void gtk_object_set_data_full (GtkObject *object, | |
16422 | const gchar *key, | |
16423 | gpointer data, | |
16424 | GtkDestroyNotify destroy); | |
16425 | void gtk_object_remove_data (GtkObject *object, | |
16426 | const gchar *key); | |
16427 | gpointer gtk_object_get_data (GtkObject *object, | |
16428 | const gchar *key); | |
16429 | void gtk_object_remove_no_notify (GtkObject *object, | |
16430 | const gchar *key); | |
16431 | ||
16432 | ||
16433 | ||
16434 | ||
16435 | ||
16436 | ||
16437 | void gtk_object_set_user_data (GtkObject *object, | |
16438 | gpointer data); | |
16439 | gpointer gtk_object_get_user_data (GtkObject *object); | |
16440 | ||
16441 | ||
16442 | ||
16443 | ||
16444 | ||
16445 | void gtk_object_set_data_by_id (GtkObject *object, | |
16446 | GQuark data_id, | |
16447 | gpointer data); | |
16448 | void gtk_object_set_data_by_id_full (GtkObject *object, | |
16449 | GQuark data_id, | |
16450 | gpointer data, | |
16451 | GtkDestroyNotify destroy); | |
16452 | gpointer gtk_object_get_data_by_id (GtkObject *object, | |
16453 | GQuark data_id); | |
16454 | void gtk_object_remove_data_by_id (GtkObject *object, | |
16455 | GQuark data_id); | |
16456 | void gtk_object_remove_no_notify_by_id (GtkObject *object, | |
16457 | GQuark key_id); | |
16458 | ||
16459 | ||
16460 | ||
16461 | ||
16462 | ||
16463 | typedef enum | |
16464 | { | |
16465 | GTK_ARG_READABLE = G_PARAM_READABLE, | |
16466 | GTK_ARG_WRITABLE = G_PARAM_WRITABLE, | |
16467 | GTK_ARG_CONSTRUCT = G_PARAM_CONSTRUCT, | |
16468 | GTK_ARG_CONSTRUCT_ONLY = G_PARAM_CONSTRUCT_ONLY, | |
16469 | GTK_ARG_CHILD_ARG = 1 << 4 | |
16470 | } GtkArgFlags; | |
16471 | ||
16472 | void gtk_object_get (GtkObject *object, | |
16473 | const gchar *first_property_name, | |
16474 | ...) __attribute__((__sentinel__)); | |
16475 | void gtk_object_set (GtkObject *object, | |
16476 | const gchar *first_property_name, | |
16477 | ...) __attribute__((__sentinel__)); | |
16478 | void gtk_object_add_arg_type (const gchar *arg_name, | |
16479 | GtkType arg_type, | |
16480 | guint arg_flags, | |
16481 | guint arg_id); | |
16482 | ||
16483 | ||
16484 | ||
16485 | ||
16486 | # 33 "../gtk/gtkwidget.h" 2 | |
16487 | # 1 "../gtk/gtkadjustment.h" 1 | |
16488 | # 34 "../gtk/gtkadjustment.h" | |
16489 | ||
16490 | # 44 "../gtk/gtkadjustment.h" | |
16491 | typedef struct _GtkAdjustment GtkAdjustment; | |
16492 | typedef struct _GtkAdjustmentClass GtkAdjustmentClass; | |
16493 | ||
16494 | struct _GtkAdjustment | |
16495 | { | |
16496 | GtkObject parent_instance; | |
16497 | ||
16498 | gdouble lower; | |
16499 | gdouble upper; | |
16500 | gdouble value; | |
16501 | gdouble step_increment; | |
16502 | gdouble page_increment; | |
16503 | gdouble page_size; | |
16504 | }; | |
16505 | ||
16506 | struct _GtkAdjustmentClass | |
16507 | { | |
16508 | GtkObjectClass parent_class; | |
16509 | ||
16510 | void (* changed) (GtkAdjustment *adjustment); | |
16511 | void (* value_changed) (GtkAdjustment *adjustment); | |
16512 | ||
16513 | ||
16514 | void (*_gtk_reserved1) (void); | |
16515 | void (*_gtk_reserved2) (void); | |
16516 | void (*_gtk_reserved3) (void); | |
16517 | void (*_gtk_reserved4) (void); | |
16518 | }; | |
16519 | ||
16520 | ||
16521 | GType gtk_adjustment_get_type (void) __attribute__((__const__)); | |
16522 | GtkObject* gtk_adjustment_new (gdouble value, | |
16523 | gdouble lower, | |
16524 | gdouble upper, | |
16525 | gdouble step_increment, | |
16526 | gdouble page_increment, | |
16527 | gdouble page_size); | |
16528 | void gtk_adjustment_changed (GtkAdjustment *adjustment); | |
16529 | void gtk_adjustment_value_changed (GtkAdjustment *adjustment); | |
16530 | void gtk_adjustment_clamp_page (GtkAdjustment *adjustment, | |
16531 | gdouble lower, | |
16532 | gdouble upper); | |
16533 | gdouble gtk_adjustment_get_value (GtkAdjustment *adjustment); | |
16534 | void gtk_adjustment_set_value (GtkAdjustment *adjustment, | |
16535 | gdouble value); | |
16536 | ||
16537 | ||
16538 | # 34 "../gtk/gtkwidget.h" 2 | |
16539 | # 1 "../gtk/gtkstyle.h" 1 | |
16540 | # 35 "../gtk/gtkstyle.h" | |
16541 | ||
16542 | # 49 "../gtk/gtkstyle.h" | |
16543 | typedef struct _GtkBorder GtkBorder; | |
16544 | typedef struct _GtkStyle GtkStyle; | |
16545 | typedef struct _GtkStyleClass GtkStyleClass; | |
16546 | typedef struct _GtkThemeEngine GtkThemeEngine; | |
16547 | typedef struct _GtkRcStyle GtkRcStyle; | |
16548 | typedef struct _GtkIconSet GtkIconSet; | |
16549 | typedef struct _GtkIconSource GtkIconSource; | |
16550 | typedef struct _GtkRcProperty GtkRcProperty; | |
16551 | typedef struct _GtkSettings GtkSettings; | |
16552 | typedef gboolean (*GtkRcPropertyParser) (const GParamSpec *pspec, | |
16553 | const GString *rc_string, | |
16554 | GValue *property_value); | |
16555 | ||
16556 | ||
16557 | ||
16558 | ||
16559 | typedef struct _GtkWidget GtkWidget; | |
16560 | ||
16561 | ||
16562 | ||
16563 | struct _GtkStyle | |
16564 | { | |
16565 | GObject parent_instance; | |
16566 | ||
16567 | ||
16568 | ||
16569 | GdkColor fg[5]; | |
16570 | GdkColor bg[5]; | |
16571 | GdkColor light[5]; | |
16572 | GdkColor dark[5]; | |
16573 | GdkColor mid[5]; | |
16574 | GdkColor text[5]; | |
16575 | GdkColor base[5]; | |
16576 | GdkColor text_aa[5]; | |
16577 | ||
16578 | GdkColor black; | |
16579 | GdkColor white; | |
16580 | PangoFontDescription *font_desc; | |
16581 | ||
16582 | gint xthickness; | |
16583 | gint ythickness; | |
16584 | ||
16585 | GdkGC *fg_gc[5]; | |
16586 | GdkGC *bg_gc[5]; | |
16587 | GdkGC *light_gc[5]; | |
16588 | GdkGC *dark_gc[5]; | |
16589 | GdkGC *mid_gc[5]; | |
16590 | GdkGC *text_gc[5]; | |
16591 | GdkGC *base_gc[5]; | |
16592 | GdkGC *text_aa_gc[5]; | |
16593 | GdkGC *black_gc; | |
16594 | GdkGC *white_gc; | |
16595 | ||
16596 | GdkPixmap *bg_pixmap[5]; | |
16597 | ||
16598 | ||
16599 | ||
16600 | gint attach_count; | |
16601 | ||
16602 | gint depth; | |
16603 | GdkColormap *colormap; | |
16604 | GdkFont *private_font; | |
16605 | PangoFontDescription *private_font_desc; | |
16606 | ||
16607 | ||
16608 | GtkRcStyle *rc_style; | |
16609 | ||
16610 | GSList *styles; | |
16611 | GArray *property_cache; | |
16612 | GSList *icon_factories; | |
16613 | }; | |
16614 | ||
16615 | struct _GtkStyleClass | |
16616 | { | |
16617 | GObjectClass parent_class; | |
16618 | ||
16619 | ||
16620 | ||
16621 | ||
16622 | ||
16623 | void (*realize) (GtkStyle *style); | |
16624 | ||
16625 | ||
16626 | ||
16627 | ||
16628 | void (*unrealize) (GtkStyle *style); | |
16629 | ||
16630 | ||
16631 | ||
16632 | void (*copy) (GtkStyle *style, | |
16633 | GtkStyle *src); | |
16634 | ||
16635 | ||
16636 | ||
16637 | ||
16638 | ||
16639 | ||
16640 | GtkStyle *(*clone) (GtkStyle *style); | |
16641 | ||
16642 | ||
16643 | ||
16644 | ||
16645 | void (*init_from_rc) (GtkStyle *style, | |
16646 | GtkRcStyle *rc_style); | |
16647 | ||
16648 | void (*set_background) (GtkStyle *style, | |
16649 | GdkWindow *window, | |
16650 | GtkStateType state_type); | |
16651 | ||
16652 | ||
16653 | GdkPixbuf * (* render_icon) (GtkStyle *style, | |
16654 | const GtkIconSource *source, | |
16655 | GtkTextDirection direction, | |
16656 | GtkStateType state, | |
16657 | GtkIconSize size, | |
16658 | GtkWidget *widget, | |
16659 | const gchar *detail); | |
16660 | ||
16661 | ||
16662 | ||
16663 | ||
16664 | void (*draw_hline) (GtkStyle *style, | |
16665 | GdkWindow *window, | |
16666 | GtkStateType state_type, | |
16667 | GdkRectangle *area, | |
16668 | GtkWidget *widget, | |
16669 | const gchar *detail, | |
16670 | gint x1, | |
16671 | gint x2, | |
16672 | gint y); | |
16673 | void (*draw_vline) (GtkStyle *style, | |
16674 | GdkWindow *window, | |
16675 | GtkStateType state_type, | |
16676 | GdkRectangle *area, | |
16677 | GtkWidget *widget, | |
16678 | const gchar *detail, | |
16679 | gint y1_, | |
16680 | gint y2_, | |
16681 | gint x); | |
16682 | void (*draw_shadow) (GtkStyle *style, | |
16683 | GdkWindow *window, | |
16684 | GtkStateType state_type, | |
16685 | GtkShadowType shadow_type, | |
16686 | GdkRectangle *area, | |
16687 | GtkWidget *widget, | |
16688 | const gchar *detail, | |
16689 | gint x, | |
16690 | gint y, | |
16691 | gint width, | |
16692 | gint height); | |
16693 | void (*draw_polygon) (GtkStyle *style, | |
16694 | GdkWindow *window, | |
16695 | GtkStateType state_type, | |
16696 | GtkShadowType shadow_type, | |
16697 | GdkRectangle *area, | |
16698 | GtkWidget *widget, | |
16699 | const gchar *detail, | |
16700 | GdkPoint *point, | |
16701 | gint npoints, | |
16702 | gboolean fill); | |
16703 | void (*draw_arrow) (GtkStyle *style, | |
16704 | GdkWindow *window, | |
16705 | GtkStateType state_type, | |
16706 | GtkShadowType shadow_type, | |
16707 | GdkRectangle *area, | |
16708 | GtkWidget *widget, | |
16709 | const gchar *detail, | |
16710 | GtkArrowType arrow_type, | |
16711 | gboolean fill, | |
16712 | gint x, | |
16713 | gint y, | |
16714 | gint width, | |
16715 | gint height); | |
16716 | void (*draw_diamond) (GtkStyle *style, | |
16717 | GdkWindow *window, | |
16718 | GtkStateType state_type, | |
16719 | GtkShadowType shadow_type, | |
16720 | GdkRectangle *area, | |
16721 | GtkWidget *widget, | |
16722 | const gchar *detail, | |
16723 | gint x, | |
16724 | gint y, | |
16725 | gint width, | |
16726 | gint height); | |
16727 | void (*draw_string) (GtkStyle *style, | |
16728 | GdkWindow *window, | |
16729 | GtkStateType state_type, | |
16730 | GdkRectangle *area, | |
16731 | GtkWidget *widget, | |
16732 | const gchar *detail, | |
16733 | gint x, | |
16734 | gint y, | |
16735 | const gchar *string); | |
16736 | void (*draw_box) (GtkStyle *style, | |
16737 | GdkWindow *window, | |
16738 | GtkStateType state_type, | |
16739 | GtkShadowType shadow_type, | |
16740 | GdkRectangle *area, | |
16741 | GtkWidget *widget, | |
16742 | const gchar *detail, | |
16743 | gint x, | |
16744 | gint y, | |
16745 | gint width, | |
16746 | gint height); | |
16747 | void (*draw_flat_box) (GtkStyle *style, | |
16748 | GdkWindow *window, | |
16749 | GtkStateType state_type, | |
16750 | GtkShadowType shadow_type, | |
16751 | GdkRectangle *area, | |
16752 | GtkWidget *widget, | |
16753 | const gchar *detail, | |
16754 | gint x, | |
16755 | gint y, | |
16756 | gint width, | |
16757 | gint height); | |
16758 | void (*draw_check) (GtkStyle *style, | |
16759 | GdkWindow *window, | |
16760 | GtkStateType state_type, | |
16761 | GtkShadowType shadow_type, | |
16762 | GdkRectangle *area, | |
16763 | GtkWidget *widget, | |
16764 | const gchar *detail, | |
16765 | gint x, | |
16766 | gint y, | |
16767 | gint width, | |
16768 | gint height); | |
16769 | void (*draw_option) (GtkStyle *style, | |
16770 | GdkWindow *window, | |
16771 | GtkStateType state_type, | |
16772 | GtkShadowType shadow_type, | |
16773 | GdkRectangle *area, | |
16774 | GtkWidget *widget, | |
16775 | const gchar *detail, | |
16776 | gint x, | |
16777 | gint y, | |
16778 | gint width, | |
16779 | gint height); | |
16780 | void (*draw_tab) (GtkStyle *style, | |
16781 | GdkWindow *window, | |
16782 | GtkStateType state_type, | |
16783 | GtkShadowType shadow_type, | |
16784 | GdkRectangle *area, | |
16785 | GtkWidget *widget, | |
16786 | const gchar *detail, | |
16787 | gint x, | |
16788 | gint y, | |
16789 | gint width, | |
16790 | gint height); | |
16791 | void (*draw_shadow_gap) (GtkStyle *style, | |
16792 | GdkWindow *window, | |
16793 | GtkStateType state_type, | |
16794 | GtkShadowType shadow_type, | |
16795 | GdkRectangle *area, | |
16796 | GtkWidget *widget, | |
16797 | const gchar *detail, | |
16798 | gint x, | |
16799 | gint y, | |
16800 | gint width, | |
16801 | gint height, | |
16802 | GtkPositionType gap_side, | |
16803 | gint gap_x, | |
16804 | gint gap_width); | |
16805 | void (*draw_box_gap) (GtkStyle *style, | |
16806 | GdkWindow *window, | |
16807 | GtkStateType state_type, | |
16808 | GtkShadowType shadow_type, | |
16809 | GdkRectangle *area, | |
16810 | GtkWidget *widget, | |
16811 | const gchar *detail, | |
16812 | gint x, | |
16813 | gint y, | |
16814 | gint width, | |
16815 | gint height, | |
16816 | GtkPositionType gap_side, | |
16817 | gint gap_x, | |
16818 | gint gap_width); | |
16819 | void (*draw_extension) (GtkStyle *style, | |
16820 | GdkWindow *window, | |
16821 | GtkStateType state_type, | |
16822 | GtkShadowType shadow_type, | |
16823 | GdkRectangle *area, | |
16824 | GtkWidget *widget, | |
16825 | const gchar *detail, | |
16826 | gint x, | |
16827 | gint y, | |
16828 | gint width, | |
16829 | gint height, | |
16830 | GtkPositionType gap_side); | |
16831 | void (*draw_focus) (GtkStyle *style, | |
16832 | GdkWindow *window, | |
16833 | GtkStateType state_type, | |
16834 | GdkRectangle *area, | |
16835 | GtkWidget *widget, | |
16836 | const gchar *detail, | |
16837 | gint x, | |
16838 | gint y, | |
16839 | gint width, | |
16840 | gint height); | |
16841 | void (*draw_slider) (GtkStyle *style, | |
16842 | GdkWindow *window, | |
16843 | GtkStateType state_type, | |
16844 | GtkShadowType shadow_type, | |
16845 | GdkRectangle *area, | |
16846 | GtkWidget *widget, | |
16847 | const gchar *detail, | |
16848 | gint x, | |
16849 | gint y, | |
16850 | gint width, | |
16851 | gint height, | |
16852 | GtkOrientation orientation); | |
16853 | void (*draw_handle) (GtkStyle *style, | |
16854 | GdkWindow *window, | |
16855 | GtkStateType state_type, | |
16856 | GtkShadowType shadow_type, | |
16857 | GdkRectangle *area, | |
16858 | GtkWidget *widget, | |
16859 | const gchar *detail, | |
16860 | gint x, | |
16861 | gint y, | |
16862 | gint width, | |
16863 | gint height, | |
16864 | GtkOrientation orientation); | |
16865 | ||
16866 | void (*draw_expander) (GtkStyle *style, | |
16867 | GdkWindow *window, | |
16868 | GtkStateType state_type, | |
16869 | GdkRectangle *area, | |
16870 | GtkWidget *widget, | |
16871 | const gchar *detail, | |
16872 | gint x, | |
16873 | gint y, | |
16874 | GtkExpanderStyle expander_style); | |
16875 | void (*draw_layout) (GtkStyle *style, | |
16876 | GdkWindow *window, | |
16877 | GtkStateType state_type, | |
16878 | gboolean use_text, | |
16879 | GdkRectangle *area, | |
16880 | GtkWidget *widget, | |
16881 | const gchar *detail, | |
16882 | gint x, | |
16883 | gint y, | |
16884 | PangoLayout *layout); | |
16885 | void (*draw_resize_grip) (GtkStyle *style, | |
16886 | GdkWindow *window, | |
16887 | GtkStateType state_type, | |
16888 | GdkRectangle *area, | |
16889 | GtkWidget *widget, | |
16890 | const gchar *detail, | |
16891 | GdkWindowEdge edge, | |
16892 | gint x, | |
16893 | gint y, | |
16894 | gint width, | |
16895 | gint height); | |
16896 | ||
16897 | ||
16898 | void (*_gtk_reserved1) (void); | |
16899 | void (*_gtk_reserved2) (void); | |
16900 | void (*_gtk_reserved3) (void); | |
16901 | void (*_gtk_reserved4) (void); | |
16902 | void (*_gtk_reserved5) (void); | |
16903 | void (*_gtk_reserved6) (void); | |
16904 | void (*_gtk_reserved7) (void); | |
16905 | void (*_gtk_reserved8) (void); | |
16906 | void (*_gtk_reserved9) (void); | |
16907 | void (*_gtk_reserved10) (void); | |
16908 | void (*_gtk_reserved11) (void); | |
16909 | void (*_gtk_reserved12) (void); | |
16910 | }; | |
16911 | ||
16912 | struct _GtkBorder | |
16913 | { | |
16914 | gint left; | |
16915 | gint right; | |
16916 | gint top; | |
16917 | gint bottom; | |
16918 | }; | |
16919 | ||
16920 | GType gtk_style_get_type (void) __attribute__((__const__)); | |
16921 | GtkStyle* gtk_style_new (void); | |
16922 | GtkStyle* gtk_style_copy (GtkStyle *style); | |
16923 | GtkStyle* gtk_style_attach (GtkStyle *style, | |
16924 | GdkWindow *window) __attribute__((warn_unused_result)); | |
16925 | void gtk_style_detach (GtkStyle *style); | |
16926 | ||
16927 | ||
16928 | GtkStyle* gtk_style_ref (GtkStyle *style); | |
16929 | void gtk_style_unref (GtkStyle *style); | |
16930 | ||
16931 | GdkFont * gtk_style_get_font (GtkStyle *style); | |
16932 | void gtk_style_set_font (GtkStyle *style, | |
16933 | GdkFont *font); | |
16934 | ||
16935 | ||
16936 | void gtk_style_set_background (GtkStyle *style, | |
16937 | GdkWindow *window, | |
16938 | GtkStateType state_type); | |
16939 | void gtk_style_apply_default_background (GtkStyle *style, | |
16940 | GdkWindow *window, | |
16941 | gboolean set_bg, | |
16942 | GtkStateType state_type, | |
16943 | GdkRectangle *area, | |
16944 | gint x, | |
16945 | gint y, | |
16946 | gint width, | |
16947 | gint height); | |
16948 | ||
16949 | GtkIconSet* gtk_style_lookup_icon_set (GtkStyle *style, | |
16950 | const gchar *stock_id); | |
16951 | gboolean gtk_style_lookup_color (GtkStyle *style, | |
16952 | const gchar *color_name, | |
16953 | GdkColor *color); | |
16954 | ||
16955 | GdkPixbuf* gtk_style_render_icon (GtkStyle *style, | |
16956 | const GtkIconSource *source, | |
16957 | GtkTextDirection direction, | |
16958 | GtkStateType state, | |
16959 | GtkIconSize size, | |
16960 | GtkWidget *widget, | |
16961 | const gchar *detail); | |
16962 | ||
16963 | ||
16964 | void gtk_draw_hline (GtkStyle *style, | |
16965 | GdkWindow *window, | |
16966 | GtkStateType state_type, | |
16967 | gint x1, | |
16968 | gint x2, | |
16969 | gint y); | |
16970 | void gtk_draw_vline (GtkStyle *style, | |
16971 | GdkWindow *window, | |
16972 | GtkStateType state_type, | |
16973 | gint y1_, | |
16974 | gint y2_, | |
16975 | gint x); | |
16976 | void gtk_draw_shadow (GtkStyle *style, | |
16977 | GdkWindow *window, | |
16978 | GtkStateType state_type, | |
16979 | GtkShadowType shadow_type, | |
16980 | gint x, | |
16981 | gint y, | |
16982 | gint width, | |
16983 | gint height); | |
16984 | void gtk_draw_polygon (GtkStyle *style, | |
16985 | GdkWindow *window, | |
16986 | GtkStateType state_type, | |
16987 | GtkShadowType shadow_type, | |
16988 | GdkPoint *points, | |
16989 | gint npoints, | |
16990 | gboolean fill); | |
16991 | void gtk_draw_arrow (GtkStyle *style, | |
16992 | GdkWindow *window, | |
16993 | GtkStateType state_type, | |
16994 | GtkShadowType shadow_type, | |
16995 | GtkArrowType arrow_type, | |
16996 | gboolean fill, | |
16997 | gint x, | |
16998 | gint y, | |
16999 | gint width, | |
17000 | gint height); | |
17001 | void gtk_draw_diamond (GtkStyle *style, | |
17002 | GdkWindow *window, | |
17003 | GtkStateType state_type, | |
17004 | GtkShadowType shadow_type, | |
17005 | gint x, | |
17006 | gint y, | |
17007 | gint width, | |
17008 | gint height); | |
17009 | void gtk_draw_box (GtkStyle *style, | |
17010 | GdkWindow *window, | |
17011 | GtkStateType state_type, | |
17012 | GtkShadowType shadow_type, | |
17013 | gint x, | |
17014 | gint y, | |
17015 | gint width, | |
17016 | gint height); | |
17017 | void gtk_draw_flat_box (GtkStyle *style, | |
17018 | GdkWindow *window, | |
17019 | GtkStateType state_type, | |
17020 | GtkShadowType shadow_type, | |
17021 | gint x, | |
17022 | gint y, | |
17023 | gint width, | |
17024 | gint height); | |
17025 | void gtk_draw_check (GtkStyle *style, | |
17026 | GdkWindow *window, | |
17027 | GtkStateType state_type, | |
17028 | GtkShadowType shadow_type, | |
17029 | gint x, | |
17030 | gint y, | |
17031 | gint width, | |
17032 | gint height); | |
17033 | void gtk_draw_option (GtkStyle *style, | |
17034 | GdkWindow *window, | |
17035 | GtkStateType state_type, | |
17036 | GtkShadowType shadow_type, | |
17037 | gint x, | |
17038 | gint y, | |
17039 | gint width, | |
17040 | gint height); | |
17041 | void gtk_draw_tab (GtkStyle *style, | |
17042 | GdkWindow *window, | |
17043 | GtkStateType state_type, | |
17044 | GtkShadowType shadow_type, | |
17045 | gint x, | |
17046 | gint y, | |
17047 | gint width, | |
17048 | gint height); | |
17049 | void gtk_draw_shadow_gap (GtkStyle *style, | |
17050 | GdkWindow *window, | |
17051 | GtkStateType state_type, | |
17052 | GtkShadowType shadow_type, | |
17053 | gint x, | |
17054 | gint y, | |
17055 | gint width, | |
17056 | gint height, | |
17057 | GtkPositionType gap_side, | |
17058 | gint gap_x, | |
17059 | gint gap_width); | |
17060 | void gtk_draw_box_gap (GtkStyle *style, | |
17061 | GdkWindow *window, | |
17062 | GtkStateType state_type, | |
17063 | GtkShadowType shadow_type, | |
17064 | gint x, | |
17065 | gint y, | |
17066 | gint width, | |
17067 | gint height, | |
17068 | GtkPositionType gap_side, | |
17069 | gint gap_x, | |
17070 | gint gap_width); | |
17071 | void gtk_draw_extension (GtkStyle *style, | |
17072 | GdkWindow *window, | |
17073 | GtkStateType state_type, | |
17074 | GtkShadowType shadow_type, | |
17075 | gint x, | |
17076 | gint y, | |
17077 | gint width, | |
17078 | gint height, | |
17079 | GtkPositionType gap_side); | |
17080 | void gtk_draw_focus (GtkStyle *style, | |
17081 | GdkWindow *window, | |
17082 | gint x, | |
17083 | gint y, | |
17084 | gint width, | |
17085 | gint height); | |
17086 | void gtk_draw_slider (GtkStyle *style, | |
17087 | GdkWindow *window, | |
17088 | GtkStateType state_type, | |
17089 | GtkShadowType shadow_type, | |
17090 | gint x, | |
17091 | gint y, | |
17092 | gint width, | |
17093 | gint height, | |
17094 | GtkOrientation orientation); | |
17095 | void gtk_draw_handle (GtkStyle *style, | |
17096 | GdkWindow *window, | |
17097 | GtkStateType state_type, | |
17098 | GtkShadowType shadow_type, | |
17099 | gint x, | |
17100 | gint y, | |
17101 | gint width, | |
17102 | gint height, | |
17103 | GtkOrientation orientation); | |
17104 | void gtk_draw_expander (GtkStyle *style, | |
17105 | GdkWindow *window, | |
17106 | GtkStateType state_type, | |
17107 | gint x, | |
17108 | gint y, | |
17109 | GtkExpanderStyle expander_style); | |
17110 | void gtk_draw_layout (GtkStyle *style, | |
17111 | GdkWindow *window, | |
17112 | GtkStateType state_type, | |
17113 | gboolean use_text, | |
17114 | gint x, | |
17115 | gint y, | |
17116 | PangoLayout *layout); | |
17117 | void gtk_draw_resize_grip (GtkStyle *style, | |
17118 | GdkWindow *window, | |
17119 | GtkStateType state_type, | |
17120 | GdkWindowEdge edge, | |
17121 | gint x, | |
17122 | gint y, | |
17123 | gint width, | |
17124 | gint height); | |
17125 | ||
17126 | ||
17127 | void gtk_paint_hline (GtkStyle *style, | |
17128 | GdkWindow *window, | |
17129 | GtkStateType state_type, | |
17130 | GdkRectangle *area, | |
17131 | GtkWidget *widget, | |
17132 | const gchar *detail, | |
17133 | gint x1, | |
17134 | gint x2, | |
17135 | gint y); | |
17136 | void gtk_paint_vline (GtkStyle *style, | |
17137 | GdkWindow *window, | |
17138 | GtkStateType state_type, | |
17139 | GdkRectangle *area, | |
17140 | GtkWidget *widget, | |
17141 | const gchar *detail, | |
17142 | gint y1_, | |
17143 | gint y2_, | |
17144 | gint x); | |
17145 | void gtk_paint_shadow (GtkStyle *style, | |
17146 | GdkWindow *window, | |
17147 | GtkStateType state_type, | |
17148 | GtkShadowType shadow_type, | |
17149 | GdkRectangle *area, | |
17150 | GtkWidget *widget, | |
17151 | const gchar *detail, | |
17152 | gint x, | |
17153 | gint y, | |
17154 | gint width, | |
17155 | gint height); | |
17156 | void gtk_paint_polygon (GtkStyle *style, | |
17157 | GdkWindow *window, | |
17158 | GtkStateType state_type, | |
17159 | GtkShadowType shadow_type, | |
17160 | GdkRectangle *area, | |
17161 | GtkWidget *widget, | |
17162 | const gchar *detail, | |
17163 | GdkPoint *points, | |
17164 | gint npoints, | |
17165 | gboolean fill); | |
17166 | void gtk_paint_arrow (GtkStyle *style, | |
17167 | GdkWindow *window, | |
17168 | GtkStateType state_type, | |
17169 | GtkShadowType shadow_type, | |
17170 | GdkRectangle *area, | |
17171 | GtkWidget *widget, | |
17172 | const gchar *detail, | |
17173 | GtkArrowType arrow_type, | |
17174 | gboolean fill, | |
17175 | gint x, | |
17176 | gint y, | |
17177 | gint width, | |
17178 | gint height); | |
17179 | void gtk_paint_diamond (GtkStyle *style, | |
17180 | GdkWindow *window, | |
17181 | GtkStateType state_type, | |
17182 | GtkShadowType shadow_type, | |
17183 | GdkRectangle *area, | |
17184 | GtkWidget *widget, | |
17185 | const gchar *detail, | |
17186 | gint x, | |
17187 | gint y, | |
17188 | gint width, | |
17189 | gint height); | |
17190 | void gtk_paint_box (GtkStyle *style, | |
17191 | GdkWindow *window, | |
17192 | GtkStateType state_type, | |
17193 | GtkShadowType shadow_type, | |
17194 | GdkRectangle *area, | |
17195 | GtkWidget *widget, | |
17196 | const gchar *detail, | |
17197 | gint x, | |
17198 | gint y, | |
17199 | gint width, | |
17200 | gint height); | |
17201 | void gtk_paint_flat_box (GtkStyle *style, | |
17202 | GdkWindow *window, | |
17203 | GtkStateType state_type, | |
17204 | GtkShadowType shadow_type, | |
17205 | GdkRectangle *area, | |
17206 | GtkWidget *widget, | |
17207 | const gchar *detail, | |
17208 | gint x, | |
17209 | gint y, | |
17210 | gint width, | |
17211 | gint height); | |
17212 | void gtk_paint_check (GtkStyle *style, | |
17213 | GdkWindow *window, | |
17214 | GtkStateType state_type, | |
17215 | GtkShadowType shadow_type, | |
17216 | GdkRectangle *area, | |
17217 | GtkWidget *widget, | |
17218 | const gchar *detail, | |
17219 | gint x, | |
17220 | gint y, | |
17221 | gint width, | |
17222 | gint height); | |
17223 | void gtk_paint_option (GtkStyle *style, | |
17224 | GdkWindow *window, | |
17225 | GtkStateType state_type, | |
17226 | GtkShadowType shadow_type, | |
17227 | GdkRectangle *area, | |
17228 | GtkWidget *widget, | |
17229 | const gchar *detail, | |
17230 | gint x, | |
17231 | gint y, | |
17232 | gint width, | |
17233 | gint height); | |
17234 | void gtk_paint_tab (GtkStyle *style, | |
17235 | GdkWindow *window, | |
17236 | GtkStateType state_type, | |
17237 | GtkShadowType shadow_type, | |
17238 | GdkRectangle *area, | |
17239 | GtkWidget *widget, | |
17240 | const gchar *detail, | |
17241 | gint x, | |
17242 | gint y, | |
17243 | gint width, | |
17244 | gint height); | |
17245 | void gtk_paint_shadow_gap (GtkStyle *style, | |
17246 | GdkWindow *window, | |
17247 | GtkStateType state_type, | |
17248 | GtkShadowType shadow_type, | |
17249 | GdkRectangle *area, | |
17250 | GtkWidget *widget, | |
17251 | gchar *detail, | |
17252 | gint x, | |
17253 | gint y, | |
17254 | gint width, | |
17255 | gint height, | |
17256 | GtkPositionType gap_side, | |
17257 | gint gap_x, | |
17258 | gint gap_width); | |
17259 | void gtk_paint_box_gap (GtkStyle *style, | |
17260 | GdkWindow *window, | |
17261 | GtkStateType state_type, | |
17262 | GtkShadowType shadow_type, | |
17263 | GdkRectangle *area, | |
17264 | GtkWidget *widget, | |
17265 | gchar *detail, | |
17266 | gint x, | |
17267 | gint y, | |
17268 | gint width, | |
17269 | gint height, | |
17270 | GtkPositionType gap_side, | |
17271 | gint gap_x, | |
17272 | gint gap_width); | |
17273 | void gtk_paint_extension (GtkStyle *style, | |
17274 | GdkWindow *window, | |
17275 | GtkStateType state_type, | |
17276 | GtkShadowType shadow_type, | |
17277 | GdkRectangle *area, | |
17278 | GtkWidget *widget, | |
17279 | gchar *detail, | |
17280 | gint x, | |
17281 | gint y, | |
17282 | gint width, | |
17283 | gint height, | |
17284 | GtkPositionType gap_side); | |
17285 | void gtk_paint_focus (GtkStyle *style, | |
17286 | GdkWindow *window, | |
17287 | GtkStateType state_type, | |
17288 | GdkRectangle *area, | |
17289 | GtkWidget *widget, | |
17290 | const gchar *detail, | |
17291 | gint x, | |
17292 | gint y, | |
17293 | gint width, | |
17294 | gint height); | |
17295 | void gtk_paint_slider (GtkStyle *style, | |
17296 | GdkWindow *window, | |
17297 | GtkStateType state_type, | |
17298 | GtkShadowType shadow_type, | |
17299 | GdkRectangle *area, | |
17300 | GtkWidget *widget, | |
17301 | const gchar *detail, | |
17302 | gint x, | |
17303 | gint y, | |
17304 | gint width, | |
17305 | gint height, | |
17306 | GtkOrientation orientation); | |
17307 | void gtk_paint_handle (GtkStyle *style, | |
17308 | GdkWindow *window, | |
17309 | GtkStateType state_type, | |
17310 | GtkShadowType shadow_type, | |
17311 | GdkRectangle *area, | |
17312 | GtkWidget *widget, | |
17313 | const gchar *detail, | |
17314 | gint x, | |
17315 | gint y, | |
17316 | gint width, | |
17317 | gint height, | |
17318 | GtkOrientation orientation); | |
17319 | void gtk_paint_expander (GtkStyle *style, | |
17320 | GdkWindow *window, | |
17321 | GtkStateType state_type, | |
17322 | GdkRectangle *area, | |
17323 | GtkWidget *widget, | |
17324 | const gchar *detail, | |
17325 | gint x, | |
17326 | gint y, | |
17327 | GtkExpanderStyle expander_style); | |
17328 | void gtk_paint_layout (GtkStyle *style, | |
17329 | GdkWindow *window, | |
17330 | GtkStateType state_type, | |
17331 | gboolean use_text, | |
17332 | GdkRectangle *area, | |
17333 | GtkWidget *widget, | |
17334 | const gchar *detail, | |
17335 | gint x, | |
17336 | gint y, | |
17337 | PangoLayout *layout); | |
17338 | ||
17339 | void gtk_paint_resize_grip (GtkStyle *style, | |
17340 | GdkWindow *window, | |
17341 | GtkStateType state_type, | |
17342 | GdkRectangle *area, | |
17343 | GtkWidget *widget, | |
17344 | const gchar *detail, | |
17345 | GdkWindowEdge edge, | |
17346 | gint x, | |
17347 | gint y, | |
17348 | gint width, | |
17349 | gint height); | |
17350 | ||
17351 | ||
17352 | GType gtk_border_get_type (void) __attribute__((__const__)); | |
17353 | GtkBorder *gtk_border_copy (const GtkBorder *border_); | |
17354 | void gtk_border_free (GtkBorder *border_); | |
17355 | ||
17356 | ||
17357 | const GValue* _gtk_style_peek_property_value (GtkStyle *style, | |
17358 | GType widget_type, | |
17359 | GParamSpec *pspec, | |
17360 | GtkRcPropertyParser parser); | |
17361 | ||
17362 | void _gtk_style_init_for_settings (GtkStyle *style, | |
17363 | GtkSettings *settings); | |
17364 | ||
17365 | void _gtk_style_shade (GdkColor *a, | |
17366 | GdkColor *b, | |
17367 | gdouble k); | |
17368 | ||
17369 | ||
17370 | ||
17371 | ||
17372 | void gtk_draw_string (GtkStyle *style, | |
17373 | GdkWindow *window, | |
17374 | GtkStateType state_type, | |
17375 | gint x, | |
17376 | gint y, | |
17377 | const gchar *string); | |
17378 | void gtk_paint_string (GtkStyle *style, | |
17379 | GdkWindow *window, | |
17380 | GtkStateType state_type, | |
17381 | GdkRectangle *area, | |
17382 | GtkWidget *widget, | |
17383 | const gchar *detail, | |
17384 | gint x, | |
17385 | gint y, | |
17386 | const gchar *string); | |
17387 | ||
17388 | ||
17389 | void gtk_draw_insertion_cursor (GtkWidget *widget, | |
17390 | GdkDrawable *drawable, | |
17391 | GdkRectangle *area, | |
17392 | GdkRectangle *location, | |
17393 | gboolean is_primary, | |
17394 | GtkTextDirection direction, | |
17395 | gboolean draw_arrow); | |
17396 | GdkGC *_gtk_widget_get_cursor_gc (GtkWidget *widget); | |
17397 | void _gtk_widget_get_cursor_color (GtkWidget *widget, | |
17398 | GdkColor *color); | |
17399 | ||
17400 | ||
17401 | # 35 "../gtk/gtkwidget.h" 2 | |
17402 | # 1 "../gtk/gtksettings.h" 1 | |
17403 | # 21 "../gtk/gtksettings.h" | |
17404 | # 1 "../gtk/gtkrc.h" 1 | |
17405 | # 33 "../gtk/gtkrc.h" | |
17406 | ||
17407 | ||
17408 | ||
17409 | typedef struct _GtkIconFactory GtkIconFactory; | |
17410 | typedef struct _GtkRcContext GtkRcContext; | |
17411 | ||
17412 | typedef struct _GtkRcStyleClass GtkRcStyleClass; | |
17413 | # 48 "../gtk/gtkrc.h" | |
17414 | typedef enum | |
17415 | { | |
17416 | GTK_RC_FG = 1 << 0, | |
17417 | GTK_RC_BG = 1 << 1, | |
17418 | GTK_RC_TEXT = 1 << 2, | |
17419 | GTK_RC_BASE = 1 << 3 | |
17420 | } GtkRcFlags; | |
17421 | ||
17422 | struct _GtkRcStyle | |
17423 | { | |
17424 | GObject parent_instance; | |
17425 | ||
17426 | ||
17427 | ||
17428 | gchar *name; | |
17429 | gchar *bg_pixmap_name[5]; | |
17430 | PangoFontDescription *font_desc; | |
17431 | ||
17432 | GtkRcFlags color_flags[5]; | |
17433 | GdkColor fg[5]; | |
17434 | GdkColor bg[5]; | |
17435 | GdkColor text[5]; | |
17436 | GdkColor base[5]; | |
17437 | ||
17438 | gint xthickness; | |
17439 | gint ythickness; | |
17440 | ||
17441 | ||
17442 | GArray *rc_properties; | |
17443 | ||
17444 | ||
17445 | GSList *rc_style_lists; | |
17446 | ||
17447 | GSList *icon_factories; | |
17448 | ||
17449 | guint engine_specified : 1; | |
17450 | }; | |
17451 | ||
17452 | struct _GtkRcStyleClass | |
17453 | { | |
17454 | GObjectClass parent_class; | |
17455 | ||
17456 | ||
17457 | ||
17458 | ||
17459 | ||
17460 | ||
17461 | GtkRcStyle * (*create_rc_style) (GtkRcStyle *rc_style); | |
17462 | ||
17463 | ||
17464 | ||
17465 | ||
17466 | ||
17467 | guint (*parse) (GtkRcStyle *rc_style, | |
17468 | GtkSettings *settings, | |
17469 | GScanner *scanner); | |
17470 | ||
17471 | ||
17472 | ||
17473 | ||
17474 | void (*merge) (GtkRcStyle *dest, | |
17475 | GtkRcStyle *src); | |
17476 | ||
17477 | ||
17478 | ||
17479 | GtkStyle * (*create_style) (GtkRcStyle *rc_style); | |
17480 | ||
17481 | ||
17482 | void (*_gtk_reserved1) (void); | |
17483 | void (*_gtk_reserved2) (void); | |
17484 | void (*_gtk_reserved3) (void); | |
17485 | void (*_gtk_reserved4) (void); | |
17486 | }; | |
17487 | # 129 "../gtk/gtkrc.h" | |
17488 | void _gtk_rc_init (void); | |
17489 | GSList* _gtk_rc_parse_widget_class_path (const gchar *pattern); | |
17490 | void _gtk_rc_free_widget_class_path (GSList *list); | |
17491 | gboolean _gtk_rc_match_widget_class (GSList *list, | |
17492 | gint length, | |
17493 | gchar *path, | |
17494 | gchar *path_reversed); | |
17495 | ||
17496 | void gtk_rc_add_default_file (const gchar *filename); | |
17497 | void gtk_rc_set_default_files (gchar **filenames); | |
17498 | gchar** gtk_rc_get_default_files (void); | |
17499 | GtkStyle* gtk_rc_get_style (GtkWidget *widget); | |
17500 | GtkStyle* gtk_rc_get_style_by_paths (GtkSettings *settings, | |
17501 | const char *widget_path, | |
17502 | const char *class_path, | |
17503 | GType type); | |
17504 | ||
17505 | gboolean gtk_rc_reparse_all_for_settings (GtkSettings *settings, | |
17506 | gboolean force_load); | |
17507 | void gtk_rc_reset_styles (GtkSettings *settings); | |
17508 | ||
17509 | gchar* gtk_rc_find_pixmap_in_path (GtkSettings *settings, | |
17510 | GScanner *scanner, | |
17511 | const gchar *pixmap_file); | |
17512 | ||
17513 | void gtk_rc_parse (const gchar *filename); | |
17514 | void gtk_rc_parse_string (const gchar *rc_string); | |
17515 | gboolean gtk_rc_reparse_all (void); | |
17516 | ||
17517 | ||
17518 | void gtk_rc_add_widget_name_style (GtkRcStyle *rc_style, | |
17519 | const gchar *pattern); | |
17520 | void gtk_rc_add_widget_class_style (GtkRcStyle *rc_style, | |
17521 | const gchar *pattern); | |
17522 | void gtk_rc_add_class_style (GtkRcStyle *rc_style, | |
17523 | const gchar *pattern); | |
17524 | ||
17525 | ||
17526 | ||
17527 | GType gtk_rc_style_get_type (void) __attribute__((__const__)); | |
17528 | GtkRcStyle* gtk_rc_style_new (void); | |
17529 | GtkRcStyle* gtk_rc_style_copy (GtkRcStyle *orig); | |
17530 | ||
17531 | ||
17532 | void gtk_rc_style_ref (GtkRcStyle *rc_style); | |
17533 | void gtk_rc_style_unref (GtkRcStyle *rc_style); | |
17534 | ||
17535 | ||
17536 | gchar* gtk_rc_find_module_in_path (const gchar *module_file); | |
17537 | gchar* gtk_rc_get_theme_dir (void); | |
17538 | gchar* gtk_rc_get_module_dir (void); | |
17539 | gchar* gtk_rc_get_im_module_path (void); | |
17540 | gchar* gtk_rc_get_im_module_file (void); | |
17541 | ||
17542 | ||
17543 | typedef enum { | |
17544 | GTK_RC_TOKEN_INVALID = G_TOKEN_LAST, | |
17545 | GTK_RC_TOKEN_INCLUDE, | |
17546 | GTK_RC_TOKEN_NORMAL, | |
17547 | GTK_RC_TOKEN_ACTIVE, | |
17548 | GTK_RC_TOKEN_PRELIGHT, | |
17549 | GTK_RC_TOKEN_SELECTED, | |
17550 | GTK_RC_TOKEN_INSENSITIVE, | |
17551 | GTK_RC_TOKEN_FG, | |
17552 | GTK_RC_TOKEN_BG, | |
17553 | GTK_RC_TOKEN_TEXT, | |
17554 | GTK_RC_TOKEN_BASE, | |
17555 | GTK_RC_TOKEN_XTHICKNESS, | |
17556 | GTK_RC_TOKEN_YTHICKNESS, | |
17557 | GTK_RC_TOKEN_FONT, | |
17558 | GTK_RC_TOKEN_FONTSET, | |
17559 | GTK_RC_TOKEN_FONT_NAME, | |
17560 | GTK_RC_TOKEN_BG_PIXMAP, | |
17561 | GTK_RC_TOKEN_PIXMAP_PATH, | |
17562 | GTK_RC_TOKEN_STYLE, | |
17563 | GTK_RC_TOKEN_BINDING, | |
17564 | GTK_RC_TOKEN_BIND, | |
17565 | GTK_RC_TOKEN_WIDGET, | |
17566 | GTK_RC_TOKEN_WIDGET_CLASS, | |
17567 | GTK_RC_TOKEN_CLASS, | |
17568 | GTK_RC_TOKEN_LOWEST, | |
17569 | GTK_RC_TOKEN_GTK, | |
17570 | GTK_RC_TOKEN_APPLICATION, | |
17571 | GTK_RC_TOKEN_THEME, | |
17572 | GTK_RC_TOKEN_RC, | |
17573 | GTK_RC_TOKEN_HIGHEST, | |
17574 | GTK_RC_TOKEN_ENGINE, | |
17575 | GTK_RC_TOKEN_MODULE_PATH, | |
17576 | GTK_RC_TOKEN_IM_MODULE_PATH, | |
17577 | GTK_RC_TOKEN_IM_MODULE_FILE, | |
17578 | GTK_RC_TOKEN_STOCK, | |
17579 | GTK_RC_TOKEN_LTR, | |
17580 | GTK_RC_TOKEN_RTL, | |
17581 | GTK_RC_TOKEN_COLOR, | |
17582 | GTK_RC_TOKEN_UNBIND, | |
17583 | GTK_RC_TOKEN_LAST | |
17584 | } GtkRcTokenType; | |
17585 | ||
17586 | GScanner* gtk_rc_scanner_new (void); | |
17587 | guint gtk_rc_parse_color (GScanner *scanner, | |
17588 | GdkColor *color); | |
17589 | guint gtk_rc_parse_color_full (GScanner *scanner, | |
17590 | GtkRcStyle *style, | |
17591 | GdkColor *color); | |
17592 | guint gtk_rc_parse_state (GScanner *scanner, | |
17593 | GtkStateType *state); | |
17594 | guint gtk_rc_parse_priority (GScanner *scanner, | |
17595 | GtkPathPriorityType *priority); | |
17596 | ||
17597 | ||
17598 | ||
17599 | ||
17600 | struct _GtkRcProperty | |
17601 | { | |
17602 | ||
17603 | GQuark type_name; | |
17604 | GQuark property_name; | |
17605 | ||
17606 | ||
17607 | gchar *origin; | |
17608 | GValue value; | |
17609 | }; | |
17610 | const GtkRcProperty* _gtk_rc_style_lookup_rc_property (GtkRcStyle *rc_style, | |
17611 | GQuark type_name, | |
17612 | GQuark property_name); | |
17613 | void _gtk_rc_style_set_rc_property (GtkRcStyle *rc_style, | |
17614 | GtkRcProperty *property); | |
17615 | void _gtk_rc_style_unset_rc_property (GtkRcStyle *rc_style, | |
17616 | GQuark type_name, | |
17617 | GQuark property_name); | |
17618 | ||
17619 | GSList * _gtk_rc_style_get_color_hashes (GtkRcStyle *rc_style); | |
17620 | ||
17621 | const gchar* _gtk_rc_context_get_default_font_name (GtkSettings *settings); | |
17622 | void _gtk_rc_context_destroy (GtkSettings *settings); | |
17623 | ||
17624 | ||
17625 | # 22 "../gtk/gtksettings.h" 2 | |
17626 | ||
17627 | ||
17628 | # 36 "../gtk/gtksettings.h" | |
17629 | typedef struct _GtkSettingsClass GtkSettingsClass; | |
17630 | typedef struct _GtkSettingsValue GtkSettingsValue; | |
17631 | typedef struct _GtkSettingsPropertyValue GtkSettingsPropertyValue; | |
17632 | ||
17633 | ||
17634 | ||
17635 | struct _GtkSettings | |
17636 | { | |
17637 | GObject parent_instance; | |
17638 | ||
17639 | GData *queued_settings; | |
17640 | GtkSettingsPropertyValue *property_values; | |
17641 | ||
17642 | GtkRcContext *rc_context; | |
17643 | GdkScreen *screen; | |
17644 | }; | |
17645 | struct _GtkSettingsClass | |
17646 | { | |
17647 | GObjectClass parent_class; | |
17648 | ||
17649 | }; | |
17650 | struct _GtkSettingsValue | |
17651 | { | |
17652 | ||
17653 | ||
17654 | ||
17655 | gchar *origin; | |
17656 | ||
17657 | ||
17658 | ||
17659 | ||
17660 | GValue value; | |
17661 | }; | |
17662 | ||
17663 | ||
17664 | ||
17665 | GType gtk_settings_get_type (void) __attribute__((__const__)); | |
17666 | ||
17667 | GtkSettings* gtk_settings_get_default (void); | |
17668 | ||
17669 | GtkSettings* gtk_settings_get_for_screen (GdkScreen *screen); | |
17670 | ||
17671 | void gtk_settings_install_property (GParamSpec *pspec); | |
17672 | void gtk_settings_install_property_parser (GParamSpec *pspec, | |
17673 | GtkRcPropertyParser parser); | |
17674 | ||
17675 | ||
17676 | gboolean gtk_rc_property_parse_color (const GParamSpec *pspec, | |
17677 | const GString *gstring, | |
17678 | GValue *property_value); | |
17679 | gboolean gtk_rc_property_parse_enum (const GParamSpec *pspec, | |
17680 | const GString *gstring, | |
17681 | GValue *property_value); | |
17682 | gboolean gtk_rc_property_parse_flags (const GParamSpec *pspec, | |
17683 | const GString *gstring, | |
17684 | GValue *property_value); | |
17685 | gboolean gtk_rc_property_parse_requisition (const GParamSpec *pspec, | |
17686 | const GString *gstring, | |
17687 | GValue *property_value); | |
17688 | gboolean gtk_rc_property_parse_border (const GParamSpec *pspec, | |
17689 | const GString *gstring, | |
17690 | GValue *property_value); | |
17691 | ||
17692 | ||
17693 | void gtk_settings_set_property_value (GtkSettings *settings, | |
17694 | const gchar *name, | |
17695 | const GtkSettingsValue *svalue); | |
17696 | void gtk_settings_set_string_property (GtkSettings *settings, | |
17697 | const gchar *name, | |
17698 | const gchar *v_string, | |
17699 | const gchar *origin); | |
17700 | void gtk_settings_set_long_property (GtkSettings *settings, | |
17701 | const gchar *name, | |
17702 | glong v_long, | |
17703 | const gchar *origin); | |
17704 | void gtk_settings_set_double_property (GtkSettings *settings, | |
17705 | const gchar *name, | |
17706 | gdouble v_double, | |
17707 | const gchar *origin); | |
17708 | ||
17709 | ||
17710 | ||
17711 | void _gtk_settings_set_property_value_from_rc (GtkSettings *settings, | |
17712 | const gchar *name, | |
17713 | const GtkSettingsValue *svalue); | |
17714 | void _gtk_settings_reset_rc_values (GtkSettings *settings); | |
17715 | ||
17716 | void _gtk_settings_handle_event (GdkEventSetting *event); | |
17717 | GtkRcPropertyParser _gtk_rc_property_parser_from_type (GType type); | |
17718 | gboolean _gtk_settings_parse_convert (GtkRcPropertyParser parser, | |
17719 | const GValue *src_value, | |
17720 | GParamSpec *pspec, | |
17721 | GValue *dest_value); | |
17722 | ||
17723 | ||
17724 | ||
17725 | # 36 "../gtk/gtkwidget.h" 2 | |
17726 | # 1 "/usr/include/atk-1.0/atk/atkobject.h" 1 | |
17727 | # 28 "/usr/include/atk-1.0/atk/atkobject.h" | |
17728 | # 1 "/usr/include/atk-1.0/atk/atkstate.h" 1 | |
17729 | # 122 "/usr/include/atk-1.0/atk/atkstate.h" | |
17730 | typedef enum | |
17731 | { | |
17732 | ATK_STATE_INVALID, | |
17733 | ATK_STATE_ACTIVE, | |
17734 | ATK_STATE_ARMED, | |
17735 | ATK_STATE_BUSY, | |
17736 | ATK_STATE_CHECKED, | |
17737 | ATK_STATE_DEFUNCT, | |
17738 | ATK_STATE_EDITABLE, | |
17739 | ATK_STATE_ENABLED, | |
17740 | ATK_STATE_EXPANDABLE, | |
17741 | ATK_STATE_EXPANDED, | |
17742 | ATK_STATE_FOCUSABLE, | |
17743 | ATK_STATE_FOCUSED, | |
17744 | ATK_STATE_HORIZONTAL, | |
17745 | ATK_STATE_ICONIFIED, | |
17746 | ATK_STATE_MODAL, | |
17747 | ATK_STATE_MULTI_LINE, | |
17748 | ATK_STATE_MULTISELECTABLE, | |
17749 | ATK_STATE_OPAQUE, | |
17750 | ATK_STATE_PRESSED, | |
17751 | ATK_STATE_RESIZABLE, | |
17752 | ATK_STATE_SELECTABLE, | |
17753 | ATK_STATE_SELECTED, | |
17754 | ATK_STATE_SENSITIVE, | |
17755 | ATK_STATE_SHOWING, | |
17756 | ATK_STATE_SINGLE_LINE, | |
17757 | ATK_STATE_STALE, | |
17758 | ATK_STATE_TRANSIENT, | |
17759 | ATK_STATE_VERTICAL, | |
17760 | ATK_STATE_VISIBLE, | |
17761 | ATK_STATE_MANAGES_DESCENDANTS, | |
17762 | ATK_STATE_INDETERMINATE, | |
17763 | ATK_STATE_TRUNCATED, | |
17764 | ATK_STATE_REQUIRED, | |
17765 | ATK_STATE_INVALID_ENTRY, | |
17766 | ATK_STATE_SUPPORTS_AUTOCOMPLETION, | |
17767 | ATK_STATE_SELECTABLE_TEXT, | |
17768 | ATK_STATE_DEFAULT, | |
17769 | ATK_STATE_ANIMATED, | |
17770 | ATK_STATE_VISITED, | |
17771 | ||
17772 | ATK_STATE_LAST_DEFINED | |
17773 | } AtkStateType; | |
17774 | ||
17775 | typedef guint64 AtkState; | |
17776 | ||
17777 | AtkStateType atk_state_type_register (const gchar *name); | |
17778 | ||
17779 | const gchar* atk_state_type_get_name (AtkStateType type); | |
17780 | AtkStateType atk_state_type_for_name (const gchar *name); | |
17781 | # 29 "/usr/include/atk-1.0/atk/atkobject.h" 2 | |
17782 | # 1 "/usr/include/atk-1.0/atk/atkrelationtype.h" 1 | |
17783 | # 54 "/usr/include/atk-1.0/atk/atkrelationtype.h" | |
17784 | typedef enum | |
17785 | { | |
17786 | ATK_RELATION_NULL = 0, | |
17787 | ATK_RELATION_CONTROLLED_BY, | |
17788 | ATK_RELATION_CONTROLLER_FOR, | |
17789 | ATK_RELATION_LABEL_FOR, | |
17790 | ATK_RELATION_LABELLED_BY, | |
17791 | ATK_RELATION_MEMBER_OF, | |
17792 | ATK_RELATION_NODE_CHILD_OF, | |
17793 | ATK_RELATION_FLOWS_TO, | |
17794 | ATK_RELATION_FLOWS_FROM, | |
17795 | ATK_RELATION_SUBWINDOW_OF, | |
17796 | ATK_RELATION_EMBEDS, | |
17797 | ATK_RELATION_EMBEDDED_BY, | |
17798 | ATK_RELATION_POPUP_FOR, | |
17799 | ATK_RELATION_PARENT_WINDOW_OF, | |
17800 | ATK_RELATION_DESCRIBED_BY, | |
17801 | ATK_RELATION_DESCRIPTION_FOR, | |
17802 | ATK_RELATION_LAST_DEFINED | |
17803 | } AtkRelationType; | |
17804 | # 30 "/usr/include/atk-1.0/atk/atkobject.h" 2 | |
17805 | # 148 "/usr/include/atk-1.0/atk/atkobject.h" | |
17806 | typedef enum | |
17807 | { | |
17808 | ATK_ROLE_INVALID = 0, | |
17809 | ATK_ROLE_ACCEL_LABEL, | |
17810 | ATK_ROLE_ALERT, | |
17811 | ATK_ROLE_ANIMATION, | |
17812 | ATK_ROLE_ARROW, | |
17813 | ATK_ROLE_CALENDAR, | |
17814 | ATK_ROLE_CANVAS, | |
17815 | ATK_ROLE_CHECK_BOX, | |
17816 | ATK_ROLE_CHECK_MENU_ITEM, | |
17817 | ATK_ROLE_COLOR_CHOOSER, | |
17818 | ATK_ROLE_COLUMN_HEADER, | |
17819 | ATK_ROLE_COMBO_BOX, | |
17820 | ATK_ROLE_DATE_EDITOR, | |
17821 | ATK_ROLE_DESKTOP_ICON, | |
17822 | ATK_ROLE_DESKTOP_FRAME, | |
17823 | ATK_ROLE_DIAL, | |
17824 | ATK_ROLE_DIALOG, | |
17825 | ATK_ROLE_DIRECTORY_PANE, | |
17826 | ATK_ROLE_DRAWING_AREA, | |
17827 | ATK_ROLE_FILE_CHOOSER, | |
17828 | ATK_ROLE_FILLER, | |
17829 | ATK_ROLE_FONT_CHOOSER, | |
17830 | ATK_ROLE_FRAME, | |
17831 | ATK_ROLE_GLASS_PANE, | |
17832 | ATK_ROLE_HTML_CONTAINER, | |
17833 | ATK_ROLE_ICON, | |
17834 | ATK_ROLE_IMAGE, | |
17835 | ATK_ROLE_INTERNAL_FRAME, | |
17836 | ATK_ROLE_LABEL, | |
17837 | ATK_ROLE_LAYERED_PANE, | |
17838 | ATK_ROLE_LIST, | |
17839 | ATK_ROLE_LIST_ITEM, | |
17840 | ATK_ROLE_MENU, | |
17841 | ATK_ROLE_MENU_BAR, | |
17842 | ATK_ROLE_MENU_ITEM, | |
17843 | ATK_ROLE_OPTION_PANE, | |
17844 | ATK_ROLE_PAGE_TAB, | |
17845 | ATK_ROLE_PAGE_TAB_LIST, | |
17846 | ATK_ROLE_PANEL, | |
17847 | ATK_ROLE_PASSWORD_TEXT, | |
17848 | ATK_ROLE_POPUP_MENU, | |
17849 | ATK_ROLE_PROGRESS_BAR, | |
17850 | ATK_ROLE_PUSH_BUTTON, | |
17851 | ATK_ROLE_RADIO_BUTTON, | |
17852 | ATK_ROLE_RADIO_MENU_ITEM, | |
17853 | ATK_ROLE_ROOT_PANE, | |
17854 | ATK_ROLE_ROW_HEADER, | |
17855 | ATK_ROLE_SCROLL_BAR, | |
17856 | ATK_ROLE_SCROLL_PANE, | |
17857 | ATK_ROLE_SEPARATOR, | |
17858 | ATK_ROLE_SLIDER, | |
17859 | ATK_ROLE_SPLIT_PANE, | |
17860 | ATK_ROLE_SPIN_BUTTON, | |
17861 | ATK_ROLE_STATUSBAR, | |
17862 | ATK_ROLE_TABLE, | |
17863 | ATK_ROLE_TABLE_CELL, | |
17864 | ATK_ROLE_TABLE_COLUMN_HEADER, | |
17865 | ATK_ROLE_TABLE_ROW_HEADER, | |
17866 | ATK_ROLE_TEAR_OFF_MENU_ITEM, | |
17867 | ATK_ROLE_TERMINAL, | |
17868 | ATK_ROLE_TEXT, | |
17869 | ATK_ROLE_TOGGLE_BUTTON, | |
17870 | ATK_ROLE_TOOL_BAR, | |
17871 | ATK_ROLE_TOOL_TIP, | |
17872 | ATK_ROLE_TREE, | |
17873 | ATK_ROLE_TREE_TABLE, | |
17874 | ATK_ROLE_UNKNOWN, | |
17875 | ATK_ROLE_VIEWPORT, | |
17876 | ATK_ROLE_WINDOW, | |
17877 | ATK_ROLE_HEADER, | |
17878 | ATK_ROLE_FOOTER, | |
17879 | ATK_ROLE_PARAGRAPH, | |
17880 | ATK_ROLE_RULER, | |
17881 | ATK_ROLE_APPLICATION, | |
17882 | ATK_ROLE_AUTOCOMPLETE, | |
17883 | ATK_ROLE_EDITBAR, | |
17884 | ATK_ROLE_EMBEDDED, | |
17885 | ATK_ROLE_ENTRY, | |
17886 | ATK_ROLE_CHART, | |
17887 | ATK_ROLE_CAPTION, | |
17888 | ATK_ROLE_DOCUMENT_FRAME, | |
17889 | ATK_ROLE_HEADING, | |
17890 | ATK_ROLE_PAGE, | |
17891 | ATK_ROLE_SECTION, | |
17892 | ATK_ROLE_REDUNDANT_OBJECT, | |
17893 | ATK_ROLE_FORM, | |
17894 | ATK_ROLE_LINK, | |
17895 | ATK_ROLE_INPUT_METHOD_WINDOW, | |
17896 | ATK_ROLE_LAST_DEFINED | |
17897 | } AtkRole; | |
17898 | ||
17899 | AtkRole atk_role_register (const gchar *name); | |
17900 | # 260 "/usr/include/atk-1.0/atk/atkobject.h" | |
17901 | typedef enum | |
17902 | { | |
17903 | ATK_LAYER_INVALID, | |
17904 | ATK_LAYER_BACKGROUND, | |
17905 | ATK_LAYER_CANVAS, | |
17906 | ATK_LAYER_WIDGET, | |
17907 | ATK_LAYER_MDI, | |
17908 | ATK_LAYER_POPUP, | |
17909 | ATK_LAYER_OVERLAY, | |
17910 | ATK_LAYER_WINDOW | |
17911 | } AtkLayer; | |
17912 | # 279 "/usr/include/atk-1.0/atk/atkobject.h" | |
17913 | typedef GSList AtkAttributeSet; | |
17914 | # 291 "/usr/include/atk-1.0/atk/atkobject.h" | |
17915 | typedef struct _AtkAttribute AtkAttribute; | |
17916 | ||
17917 | struct _AtkAttribute { | |
17918 | gchar* name; | |
17919 | gchar* value; | |
17920 | }; | |
17921 | # 311 "/usr/include/atk-1.0/atk/atkobject.h" | |
17922 | typedef struct _AtkImplementor AtkImplementor; | |
17923 | typedef struct _AtkImplementorIface AtkImplementorIface; | |
17924 | ||
17925 | ||
17926 | typedef struct _AtkObject AtkObject; | |
17927 | typedef struct _AtkObjectClass AtkObjectClass; | |
17928 | typedef struct _AtkRelationSet AtkRelationSet; | |
17929 | typedef struct _AtkStateSet AtkStateSet; | |
17930 | # 338 "/usr/include/atk-1.0/atk/atkobject.h" | |
17931 | struct _AtkPropertyValues | |
17932 | { | |
17933 | const gchar *property_name; | |
17934 | GValue old_value; | |
17935 | GValue new_value; | |
17936 | }; | |
17937 | ||
17938 | typedef struct _AtkPropertyValues AtkPropertyValues; | |
17939 | ||
17940 | typedef gboolean (*AtkFunction) (gpointer data); | |
17941 | # 360 "/usr/include/atk-1.0/atk/atkobject.h" | |
17942 | typedef void (*AtkPropertyChangeHandler) (AtkObject*, AtkPropertyValues*); | |
17943 | ||
17944 | ||
17945 | struct _AtkObject | |
17946 | { | |
17947 | GObject parent; | |
17948 | ||
17949 | gchar *description; | |
17950 | gchar *name; | |
17951 | AtkObject *accessible_parent; | |
17952 | AtkRole role; | |
17953 | AtkRelationSet *relation_set; | |
17954 | AtkLayer layer; | |
17955 | }; | |
17956 | ||
17957 | struct _AtkObjectClass | |
17958 | { | |
17959 | GObjectClass parent; | |
17960 | ||
17961 | ||
17962 | ||
17963 | ||
17964 | const gchar* (* get_name) (AtkObject *accessible); | |
17965 | ||
17966 | ||
17967 | ||
17968 | const gchar* (* get_description) (AtkObject *accessible); | |
17969 | ||
17970 | ||
17971 | ||
17972 | AtkObject* (*get_parent) (AtkObject *accessible); | |
17973 | ||
17974 | ||
17975 | ||
17976 | ||
17977 | gint (* get_n_children) (AtkObject *accessible); | |
17978 | ||
17979 | ||
17980 | ||
17981 | ||
17982 | ||
17983 | AtkObject* (* ref_child) (AtkObject *accessible, | |
17984 | gint i); | |
17985 | ||
17986 | ||
17987 | ||
17988 | ||
17989 | gint (* get_index_in_parent) (AtkObject *accessible); | |
17990 | ||
17991 | ||
17992 | ||
17993 | AtkRelationSet* (* ref_relation_set) (AtkObject *accessible); | |
17994 | ||
17995 | ||
17996 | ||
17997 | AtkRole (* get_role) (AtkObject *accessible); | |
17998 | AtkLayer (* get_layer) (AtkObject *accessible); | |
17999 | gint (* get_mdi_zorder) (AtkObject *accessible); | |
18000 | ||
18001 | ||
18002 | ||
18003 | AtkStateSet* (* ref_state_set) (AtkObject *accessible); | |
18004 | ||
18005 | ||
18006 | ||
18007 | void (* set_name) (AtkObject *accessible, | |
18008 | const gchar *name); | |
18009 | ||
18010 | ||
18011 | ||
18012 | void (* set_description) (AtkObject *accessible, | |
18013 | const gchar *description); | |
18014 | ||
18015 | ||
18016 | ||
18017 | void (* set_parent) (AtkObject *accessible, | |
18018 | AtkObject *parent); | |
18019 | ||
18020 | ||
18021 | ||
18022 | void (* set_role) (AtkObject *accessible, | |
18023 | AtkRole role); | |
18024 | ||
18025 | ||
18026 | ||
18027 | guint (* connect_property_change_handler) (AtkObject | |
18028 | *accessible, | |
18029 | AtkPropertyChangeHandler *handler); | |
18030 | ||
18031 | ||
18032 | ||
18033 | ||
18034 | void (* remove_property_change_handler) (AtkObject | |
18035 | *accessible, | |
18036 | guint | |
18037 | handler_id); | |
18038 | void (* initialize) (AtkObject *accessible, | |
18039 | gpointer data); | |
18040 | ||
18041 | ||
18042 | ||
18043 | ||
18044 | void (* children_changed) (AtkObject *accessible, | |
18045 | guint change_index, | |
18046 | gpointer changed_child); | |
18047 | ||
18048 | ||
18049 | ||
18050 | ||
18051 | void (* focus_event) (AtkObject *accessible, | |
18052 | gboolean focus_in); | |
18053 | ||
18054 | ||
18055 | ||
18056 | ||
18057 | void (* property_change) (AtkObject *accessible, | |
18058 | AtkPropertyValues *values); | |
18059 | ||
18060 | ||
18061 | ||
18062 | ||
18063 | void (* state_change) (AtkObject *accessible, | |
18064 | const gchar *name, | |
18065 | gboolean state_set); | |
18066 | ||
18067 | ||
18068 | ||
18069 | ||
18070 | void (*visible_data_changed) (AtkObject *accessible); | |
18071 | ||
18072 | ||
18073 | ||
18074 | ||
18075 | ||
18076 | ||
18077 | ||
18078 | void (*active_descendant_changed) (AtkObject *accessible, | |
18079 | gpointer *child); | |
18080 | ||
18081 | ||
18082 | ||
18083 | ||
18084 | ||
18085 | AtkAttributeSet* (*get_attributes) (AtkObject *accessible); | |
18086 | AtkFunction pad1; | |
18087 | AtkFunction pad2; | |
18088 | }; | |
18089 | ||
18090 | GType atk_object_get_type (void); | |
18091 | ||
18092 | struct _AtkImplementorIface | |
18093 | { | |
18094 | GTypeInterface parent; | |
18095 | ||
18096 | AtkObject* (*ref_accessible) (AtkImplementor *implementor); | |
18097 | }; | |
18098 | GType atk_implementor_get_type (void); | |
18099 | # 530 "/usr/include/atk-1.0/atk/atkobject.h" | |
18100 | AtkObject* atk_implementor_ref_accessible (AtkImplementor *implementor); | |
18101 | ||
18102 | ||
18103 | ||
18104 | ||
18105 | ||
18106 | const gchar* atk_object_get_name (AtkObject *accessible); | |
18107 | const gchar* atk_object_get_description (AtkObject *accessible); | |
18108 | AtkObject* atk_object_get_parent (AtkObject *accessible); | |
18109 | gint atk_object_get_n_accessible_children (AtkObject *accessible); | |
18110 | AtkObject* atk_object_ref_accessible_child (AtkObject *accessible, | |
18111 | gint i); | |
18112 | AtkRelationSet* atk_object_ref_relation_set (AtkObject *accessible); | |
18113 | AtkRole atk_object_get_role (AtkObject *accessible); | |
18114 | AtkLayer atk_object_get_layer (AtkObject *accessible); | |
18115 | gint atk_object_get_mdi_zorder (AtkObject *accessible); | |
18116 | AtkAttributeSet* atk_object_get_attributes (AtkObject *accessible); | |
18117 | AtkStateSet* atk_object_ref_state_set (AtkObject *accessible); | |
18118 | gint atk_object_get_index_in_parent (AtkObject *accessible); | |
18119 | void atk_object_set_name (AtkObject *accessible, | |
18120 | const gchar *name); | |
18121 | void atk_object_set_description (AtkObject *accessible, | |
18122 | const gchar *description); | |
18123 | void atk_object_set_parent (AtkObject *accessible, | |
18124 | AtkObject *parent); | |
18125 | void atk_object_set_role (AtkObject *accessible, | |
18126 | AtkRole role); | |
18127 | ||
18128 | ||
18129 | guint atk_object_connect_property_change_handler (AtkObject *accessible, | |
18130 | AtkPropertyChangeHandler *handler); | |
18131 | void atk_object_remove_property_change_handler (AtkObject *accessible, | |
18132 | guint handler_id); | |
18133 | ||
18134 | void atk_object_notify_state_change (AtkObject *accessible, | |
18135 | AtkState state, | |
18136 | gboolean value); | |
18137 | void atk_object_initialize (AtkObject *accessible, | |
18138 | gpointer data); | |
18139 | ||
18140 | const gchar* atk_role_get_name (AtkRole role); | |
18141 | AtkRole atk_role_for_name (const gchar *name); | |
18142 | ||
18143 | ||
18144 | ||
18145 | gboolean atk_object_add_relationship (AtkObject *object, | |
18146 | AtkRelationType relationship, | |
18147 | AtkObject *target); | |
18148 | gboolean atk_object_remove_relationship (AtkObject *object, | |
18149 | AtkRelationType relationship, | |
18150 | AtkObject *target); | |
18151 | const gchar* atk_role_get_localized_name (AtkRole role); | |
18152 | # 37 "../gtk/gtkwidget.h" 2 | |
18153 | ||
18154 | ||
18155 | ||
18156 | ||
18157 | ||
18158 | ||
18159 | typedef enum | |
18160 | { | |
18161 | GTK_TOPLEVEL = 1 << 4, | |
18162 | GTK_NO_WINDOW = 1 << 5, | |
18163 | GTK_REALIZED = 1 << 6, | |
18164 | GTK_MAPPED = 1 << 7, | |
18165 | GTK_VISIBLE = 1 << 8, | |
18166 | GTK_SENSITIVE = 1 << 9, | |
18167 | GTK_PARENT_SENSITIVE = 1 << 10, | |
18168 | GTK_CAN_FOCUS = 1 << 11, | |
18169 | GTK_HAS_FOCUS = 1 << 12, | |
18170 | ||
18171 | ||
18172 | ||
18173 | ||
18174 | GTK_CAN_DEFAULT = 1 << 13, | |
18175 | ||
18176 | ||
18177 | ||
18178 | ||
18179 | GTK_HAS_DEFAULT = 1 << 14, | |
18180 | ||
18181 | GTK_HAS_GRAB = 1 << 15, | |
18182 | GTK_RC_STYLE = 1 << 16, | |
18183 | GTK_COMPOSITE_CHILD = 1 << 17, | |
18184 | GTK_NO_REPARENT = 1 << 18, | |
18185 | GTK_APP_PAINTABLE = 1 << 19, | |
18186 | ||
18187 | ||
18188 | ||
18189 | ||
18190 | GTK_RECEIVES_DEFAULT = 1 << 20, | |
18191 | ||
18192 | GTK_DOUBLE_BUFFERED = 1 << 21, | |
18193 | GTK_NO_SHOW_ALL = 1 << 22 | |
18194 | } GtkWidgetFlags; | |
18195 | ||
18196 | ||
18197 | typedef enum | |
18198 | { | |
18199 | GTK_WIDGET_HELP_TOOLTIP, | |
18200 | GTK_WIDGET_HELP_WHATS_THIS | |
18201 | } GtkWidgetHelpType; | |
18202 | # 136 "../gtk/gtkwidget.h" | |
18203 | typedef struct _GtkRequisition GtkRequisition; | |
18204 | typedef GdkRectangle GtkAllocation; | |
18205 | typedef struct _GtkSelectionData GtkSelectionData; | |
18206 | typedef struct _GtkWidgetClass GtkWidgetClass; | |
18207 | typedef struct _GtkWidgetAuxInfo GtkWidgetAuxInfo; | |
18208 | typedef struct _GtkWidgetShapeInfo GtkWidgetShapeInfo; | |
18209 | typedef struct _GtkClipboard GtkClipboard; | |
18210 | typedef struct _GtkTooltip GtkTooltip; | |
18211 | typedef struct _GtkWindow GtkWindow; | |
18212 | typedef void (*GtkCallback) (GtkWidget *widget, | |
18213 | gpointer data); | |
18214 | ||
18215 | ||
18216 | ||
18217 | ||
18218 | struct _GtkRequisition | |
18219 | { | |
18220 | gint width; | |
18221 | gint height; | |
18222 | }; | |
18223 | ||
18224 | ||
18225 | ||
18226 | ||
18227 | ||
18228 | ||
18229 | struct _GtkWidget | |
18230 | { | |
18231 | ||
18232 | ||
18233 | ||
18234 | ||
18235 | ||
18236 | ||
18237 | GtkObject object; | |
18238 | ||
18239 | ||
18240 | ||
18241 | ||
18242 | ||
18243 | ||
18244 | guint16 private_flags; | |
18245 | ||
18246 | ||
18247 | ||
18248 | ||
18249 | guint8 state; | |
18250 | ||
18251 | ||
18252 | ||
18253 | ||
18254 | ||
18255 | ||
18256 | ||
18257 | guint8 saved_state; | |
18258 | ||
18259 | ||
18260 | ||
18261 | ||
18262 | ||
18263 | ||
18264 | ||
18265 | gchar *name; | |
18266 | # 207 "../gtk/gtkwidget.h" | |
18267 | GtkStyle *style; | |
18268 | ||
18269 | ||
18270 | ||
18271 | GtkRequisition requisition; | |
18272 | ||
18273 | ||
18274 | ||
18275 | GtkAllocation allocation; | |
18276 | ||
18277 | ||
18278 | ||
18279 | ||
18280 | ||
18281 | GdkWindow *window; | |
18282 | ||
18283 | ||
18284 | ||
18285 | GtkWidget *parent; | |
18286 | }; | |
18287 | ||
18288 | struct _GtkWidgetClass | |
18289 | { | |
18290 | ||
18291 | ||
18292 | ||
18293 | ||
18294 | ||
18295 | ||
18296 | GtkObjectClass parent_class; | |
18297 | ||
18298 | ||
18299 | ||
18300 | guint activate_signal; | |
18301 | ||
18302 | guint set_scroll_adjustments_signal; | |
18303 | ||
18304 | ||
18305 | ||
18306 | ||
18307 | void (*dispatch_child_properties_changed) (GtkWidget *widget, | |
18308 | guint n_pspecs, | |
18309 | GParamSpec **pspecs); | |
18310 | ||
18311 | ||
18312 | void (* show) (GtkWidget *widget); | |
18313 | void (* show_all) (GtkWidget *widget); | |
18314 | void (* hide) (GtkWidget *widget); | |
18315 | void (* hide_all) (GtkWidget *widget); | |
18316 | void (* map) (GtkWidget *widget); | |
18317 | void (* unmap) (GtkWidget *widget); | |
18318 | void (* realize) (GtkWidget *widget); | |
18319 | void (* unrealize) (GtkWidget *widget); | |
18320 | void (* size_request) (GtkWidget *widget, | |
18321 | GtkRequisition *requisition); | |
18322 | void (* size_allocate) (GtkWidget *widget, | |
18323 | GtkAllocation *allocation); | |
18324 | void (* state_changed) (GtkWidget *widget, | |
18325 | GtkStateType previous_state); | |
18326 | void (* parent_set) (GtkWidget *widget, | |
18327 | GtkWidget *previous_parent); | |
18328 | void (* hierarchy_changed) (GtkWidget *widget, | |
18329 | GtkWidget *previous_toplevel); | |
18330 | void (* style_set) (GtkWidget *widget, | |
18331 | GtkStyle *previous_style); | |
18332 | void (* direction_changed) (GtkWidget *widget, | |
18333 | GtkTextDirection previous_direction); | |
18334 | void (* grab_notify) (GtkWidget *widget, | |
18335 | gboolean was_grabbed); | |
18336 | void (* child_notify) (GtkWidget *widget, | |
18337 | GParamSpec *pspec); | |
18338 | ||
18339 | ||
18340 | gboolean (* mnemonic_activate) (GtkWidget *widget, | |
18341 | gboolean group_cycling); | |
18342 | ||
18343 | ||
18344 | void (* grab_focus) (GtkWidget *widget); | |
18345 | gboolean (* focus) (GtkWidget *widget, | |
18346 | GtkDirectionType direction); | |
18347 | ||
18348 | ||
18349 | gboolean (* event) (GtkWidget *widget, | |
18350 | GdkEvent *event); | |
18351 | gboolean (* button_press_event) (GtkWidget *widget, | |
18352 | GdkEventButton *event); | |
18353 | gboolean (* button_release_event) (GtkWidget *widget, | |
18354 | GdkEventButton *event); | |
18355 | gboolean (* scroll_event) (GtkWidget *widget, | |
18356 | GdkEventScroll *event); | |
18357 | gboolean (* motion_notify_event) (GtkWidget *widget, | |
18358 | GdkEventMotion *event); | |
18359 | gboolean (* delete_event) (GtkWidget *widget, | |
18360 | GdkEventAny *event); | |
18361 | gboolean (* destroy_event) (GtkWidget *widget, | |
18362 | GdkEventAny *event); | |
18363 | gboolean (* expose_event) (GtkWidget *widget, | |
18364 | GdkEventExpose *event); | |
18365 | gboolean (* key_press_event) (GtkWidget *widget, | |
18366 | GdkEventKey *event); | |
18367 | gboolean (* key_release_event) (GtkWidget *widget, | |
18368 | GdkEventKey *event); | |
18369 | gboolean (* enter_notify_event) (GtkWidget *widget, | |
18370 | GdkEventCrossing *event); | |
18371 | gboolean (* leave_notify_event) (GtkWidget *widget, | |
18372 | GdkEventCrossing *event); | |
18373 | gboolean (* configure_event) (GtkWidget *widget, | |
18374 | GdkEventConfigure *event); | |
18375 | gboolean (* focus_in_event) (GtkWidget *widget, | |
18376 | GdkEventFocus *event); | |
18377 | gboolean (* focus_out_event) (GtkWidget *widget, | |
18378 | GdkEventFocus *event); | |
18379 | gboolean (* map_event) (GtkWidget *widget, | |
18380 | GdkEventAny *event); | |
18381 | gboolean (* unmap_event) (GtkWidget *widget, | |
18382 | GdkEventAny *event); | |
18383 | gboolean (* property_notify_event) (GtkWidget *widget, | |
18384 | GdkEventProperty *event); | |
18385 | gboolean (* selection_clear_event) (GtkWidget *widget, | |
18386 | GdkEventSelection *event); | |
18387 | gboolean (* selection_request_event) (GtkWidget *widget, | |
18388 | GdkEventSelection *event); | |
18389 | gboolean (* selection_notify_event) (GtkWidget *widget, | |
18390 | GdkEventSelection *event); | |
18391 | gboolean (* proximity_in_event) (GtkWidget *widget, | |
18392 | GdkEventProximity *event); | |
18393 | gboolean (* proximity_out_event) (GtkWidget *widget, | |
18394 | GdkEventProximity *event); | |
18395 | gboolean (* visibility_notify_event) (GtkWidget *widget, | |
18396 | GdkEventVisibility *event); | |
18397 | gboolean (* client_event) (GtkWidget *widget, | |
18398 | GdkEventClient *event); | |
18399 | gboolean (* no_expose_event) (GtkWidget *widget, | |
18400 | GdkEventAny *event); | |
18401 | gboolean (* window_state_event) (GtkWidget *widget, | |
18402 | GdkEventWindowState *event); | |
18403 | ||
18404 | ||
18405 | void (* selection_get) (GtkWidget *widget, | |
18406 | GtkSelectionData *selection_data, | |
18407 | guint info, | |
18408 | guint time_); | |
18409 | void (* selection_received) (GtkWidget *widget, | |
18410 | GtkSelectionData *selection_data, | |
18411 | guint time_); | |
18412 | ||
18413 | ||
18414 | void (* drag_begin) (GtkWidget *widget, | |
18415 | GdkDragContext *context); | |
18416 | void (* drag_end) (GtkWidget *widget, | |
18417 | GdkDragContext *context); | |
18418 | void (* drag_data_get) (GtkWidget *widget, | |
18419 | GdkDragContext *context, | |
18420 | GtkSelectionData *selection_data, | |
18421 | guint info, | |
18422 | guint time_); | |
18423 | void (* drag_data_delete) (GtkWidget *widget, | |
18424 | GdkDragContext *context); | |
18425 | ||
18426 | ||
18427 | void (* drag_leave) (GtkWidget *widget, | |
18428 | GdkDragContext *context, | |
18429 | guint time_); | |
18430 | gboolean (* drag_motion) (GtkWidget *widget, | |
18431 | GdkDragContext *context, | |
18432 | gint x, | |
18433 | gint y, | |
18434 | guint time_); | |
18435 | gboolean (* drag_drop) (GtkWidget *widget, | |
18436 | GdkDragContext *context, | |
18437 | gint x, | |
18438 | gint y, | |
18439 | guint time_); | |
18440 | void (* drag_data_received) (GtkWidget *widget, | |
18441 | GdkDragContext *context, | |
18442 | gint x, | |
18443 | gint y, | |
18444 | GtkSelectionData *selection_data, | |
18445 | guint info, | |
18446 | guint time_); | |
18447 | ||
18448 | ||
18449 | gboolean (* popup_menu) (GtkWidget *widget); | |
18450 | ||
18451 | ||
18452 | ||
18453 | ||
18454 | ||
18455 | ||
18456 | gboolean (* show_help) (GtkWidget *widget, | |
18457 | GtkWidgetHelpType help_type); | |
18458 | ||
18459 | ||
18460 | ||
18461 | AtkObject* (*get_accessible) (GtkWidget *widget); | |
18462 | ||
18463 | void (*screen_changed) (GtkWidget *widget, | |
18464 | GdkScreen *previous_screen); | |
18465 | gboolean (*can_activate_accel) (GtkWidget *widget, | |
18466 | guint signal_id); | |
18467 | ||
18468 | ||
18469 | gboolean (*grab_broken_event) (GtkWidget *widget, | |
18470 | GdkEventGrabBroken *event); | |
18471 | ||
18472 | void (* composited_changed) (GtkWidget *widget); | |
18473 | ||
18474 | gboolean (* query_tooltip) (GtkWidget *widget, | |
18475 | gint x, | |
18476 | gint y, | |
18477 | gboolean keyboard_tooltip, | |
18478 | GtkTooltip *tooltip); | |
18479 | ||
18480 | ||
18481 | void (*_gtk_reserved5) (void); | |
18482 | void (*_gtk_reserved6) (void); | |
18483 | void (*_gtk_reserved7) (void); | |
18484 | }; | |
18485 | ||
18486 | struct _GtkWidgetAuxInfo | |
18487 | { | |
18488 | gint x; | |
18489 | gint y; | |
18490 | gint width; | |
18491 | gint height; | |
18492 | guint x_set : 1; | |
18493 | guint y_set : 1; | |
18494 | }; | |
18495 | ||
18496 | struct _GtkWidgetShapeInfo | |
18497 | { | |
18498 | gint16 offset_x; | |
18499 | gint16 offset_y; | |
18500 | GdkBitmap *shape_mask; | |
18501 | }; | |
18502 | ||
18503 | GType gtk_widget_get_type (void) __attribute__((__const__)); | |
18504 | GtkWidget* gtk_widget_new (GType type, | |
18505 | const gchar *first_property_name, | |
18506 | ...); | |
18507 | void gtk_widget_destroy (GtkWidget *widget); | |
18508 | void gtk_widget_destroyed (GtkWidget *widget, | |
18509 | GtkWidget **widget_pointer); | |
18510 | ||
18511 | GtkWidget* gtk_widget_ref (GtkWidget *widget); | |
18512 | void gtk_widget_unref (GtkWidget *widget); | |
18513 | void gtk_widget_set (GtkWidget *widget, | |
18514 | const gchar *first_property_name, | |
18515 | ...) __attribute__((__sentinel__)); | |
18516 | ||
18517 | void gtk_widget_unparent (GtkWidget *widget); | |
18518 | void gtk_widget_show (GtkWidget *widget); | |
18519 | void gtk_widget_show_now (GtkWidget *widget); | |
18520 | void gtk_widget_hide (GtkWidget *widget); | |
18521 | void gtk_widget_show_all (GtkWidget *widget); | |
18522 | void gtk_widget_hide_all (GtkWidget *widget); | |
18523 | void gtk_widget_set_no_show_all (GtkWidget *widget, | |
18524 | gboolean no_show_all); | |
18525 | gboolean gtk_widget_get_no_show_all (GtkWidget *widget); | |
18526 | void gtk_widget_map (GtkWidget *widget); | |
18527 | void gtk_widget_unmap (GtkWidget *widget); | |
18528 | void gtk_widget_realize (GtkWidget *widget); | |
18529 | void gtk_widget_unrealize (GtkWidget *widget); | |
18530 | ||
18531 | ||
18532 | void gtk_widget_queue_draw (GtkWidget *widget); | |
18533 | void gtk_widget_queue_draw_area (GtkWidget *widget, | |
18534 | gint x, | |
18535 | gint y, | |
18536 | gint width, | |
18537 | gint height); | |
18538 | ||
18539 | void gtk_widget_queue_clear (GtkWidget *widget); | |
18540 | void gtk_widget_queue_clear_area (GtkWidget *widget, | |
18541 | gint x, | |
18542 | gint y, | |
18543 | gint width, | |
18544 | gint height); | |
18545 | ||
18546 | ||
18547 | ||
18548 | void gtk_widget_queue_resize (GtkWidget *widget); | |
18549 | void gtk_widget_queue_resize_no_redraw (GtkWidget *widget); | |
18550 | ||
18551 | void gtk_widget_draw (GtkWidget *widget, | |
18552 | GdkRectangle *area); | |
18553 | ||
18554 | void gtk_widget_size_request (GtkWidget *widget, | |
18555 | GtkRequisition *requisition); | |
18556 | void gtk_widget_size_allocate (GtkWidget *widget, | |
18557 | GtkAllocation *allocation); | |
18558 | void gtk_widget_get_child_requisition (GtkWidget *widget, | |
18559 | GtkRequisition *requisition); | |
18560 | void gtk_widget_add_accelerator (GtkWidget *widget, | |
18561 | const gchar *accel_signal, | |
18562 | GtkAccelGroup *accel_group, | |
18563 | guint accel_key, | |
18564 | GdkModifierType accel_mods, | |
18565 | GtkAccelFlags accel_flags); | |
18566 | gboolean gtk_widget_remove_accelerator (GtkWidget *widget, | |
18567 | GtkAccelGroup *accel_group, | |
18568 | guint accel_key, | |
18569 | GdkModifierType accel_mods); | |
18570 | void gtk_widget_set_accel_path (GtkWidget *widget, | |
18571 | const gchar *accel_path, | |
18572 | GtkAccelGroup *accel_group); | |
18573 | const gchar* _gtk_widget_get_accel_path (GtkWidget *widget, | |
18574 | gboolean *locked); | |
18575 | GList* gtk_widget_list_accel_closures (GtkWidget *widget); | |
18576 | gboolean gtk_widget_can_activate_accel (GtkWidget *widget, | |
18577 | guint signal_id); | |
18578 | gboolean gtk_widget_mnemonic_activate (GtkWidget *widget, | |
18579 | gboolean group_cycling); | |
18580 | gboolean gtk_widget_event (GtkWidget *widget, | |
18581 | GdkEvent *event); | |
18582 | gint gtk_widget_send_expose (GtkWidget *widget, | |
18583 | GdkEvent *event); | |
18584 | ||
18585 | gboolean gtk_widget_activate (GtkWidget *widget); | |
18586 | gboolean gtk_widget_set_scroll_adjustments (GtkWidget *widget, | |
18587 | GtkAdjustment *hadjustment, | |
18588 | GtkAdjustment *vadjustment); | |
18589 | ||
18590 | void gtk_widget_reparent (GtkWidget *widget, | |
18591 | GtkWidget *new_parent); | |
18592 | gboolean gtk_widget_intersect (GtkWidget *widget, | |
18593 | GdkRectangle *area, | |
18594 | GdkRectangle *intersection); | |
18595 | GdkRegion *gtk_widget_region_intersect (GtkWidget *widget, | |
18596 | GdkRegion *region); | |
18597 | ||
18598 | void gtk_widget_freeze_child_notify (GtkWidget *widget); | |
18599 | void gtk_widget_child_notify (GtkWidget *widget, | |
18600 | const gchar *child_property); | |
18601 | void gtk_widget_thaw_child_notify (GtkWidget *widget); | |
18602 | ||
18603 | gboolean gtk_widget_is_focus (GtkWidget *widget); | |
18604 | void gtk_widget_grab_focus (GtkWidget *widget); | |
18605 | void gtk_widget_grab_default (GtkWidget *widget); | |
18606 | ||
18607 | void gtk_widget_set_name (GtkWidget *widget, | |
18608 | const gchar *name); | |
18609 | const gchar* gtk_widget_get_name (GtkWidget *widget); | |
18610 | void gtk_widget_set_state (GtkWidget *widget, | |
18611 | GtkStateType state); | |
18612 | void gtk_widget_set_sensitive (GtkWidget *widget, | |
18613 | gboolean sensitive); | |
18614 | void gtk_widget_set_app_paintable (GtkWidget *widget, | |
18615 | gboolean app_paintable); | |
18616 | void gtk_widget_set_double_buffered (GtkWidget *widget, | |
18617 | gboolean double_buffered); | |
18618 | void gtk_widget_set_redraw_on_allocate (GtkWidget *widget, | |
18619 | gboolean redraw_on_allocate); | |
18620 | void gtk_widget_set_parent (GtkWidget *widget, | |
18621 | GtkWidget *parent); | |
18622 | void gtk_widget_set_parent_window (GtkWidget *widget, | |
18623 | GdkWindow *parent_window); | |
18624 | void gtk_widget_set_child_visible (GtkWidget *widget, | |
18625 | gboolean is_visible); | |
18626 | gboolean gtk_widget_get_child_visible (GtkWidget *widget); | |
18627 | ||
18628 | GtkWidget *gtk_widget_get_parent (GtkWidget *widget); | |
18629 | GdkWindow *gtk_widget_get_parent_window (GtkWidget *widget); | |
18630 | ||
18631 | gboolean gtk_widget_child_focus (GtkWidget *widget, | |
18632 | GtkDirectionType direction); | |
18633 | gboolean gtk_widget_keynav_failed (GtkWidget *widget, | |
18634 | GtkDirectionType direction); | |
18635 | void gtk_widget_error_bell (GtkWidget *widget); | |
18636 | ||
18637 | void gtk_widget_set_size_request (GtkWidget *widget, | |
18638 | gint width, | |
18639 | gint height); | |
18640 | void gtk_widget_get_size_request (GtkWidget *widget, | |
18641 | gint *width, | |
18642 | gint *height); | |
18643 | ||
18644 | void gtk_widget_set_uposition (GtkWidget *widget, | |
18645 | gint x, | |
18646 | gint y); | |
18647 | void gtk_widget_set_usize (GtkWidget *widget, | |
18648 | gint width, | |
18649 | gint height); | |
18650 | ||
18651 | ||
18652 | void gtk_widget_set_events (GtkWidget *widget, | |
18653 | gint events); | |
18654 | void gtk_widget_add_events (GtkWidget *widget, | |
18655 | gint events); | |
18656 | void gtk_widget_set_extension_events (GtkWidget *widget, | |
18657 | GdkExtensionMode mode); | |
18658 | ||
18659 | GdkExtensionMode gtk_widget_get_extension_events (GtkWidget *widget); | |
18660 | GtkWidget* gtk_widget_get_toplevel (GtkWidget *widget); | |
18661 | GtkWidget* gtk_widget_get_ancestor (GtkWidget *widget, | |
18662 | GType widget_type); | |
18663 | GdkColormap* gtk_widget_get_colormap (GtkWidget *widget); | |
18664 | GdkVisual* gtk_widget_get_visual (GtkWidget *widget); | |
18665 | ||
18666 | GdkScreen * gtk_widget_get_screen (GtkWidget *widget); | |
18667 | gboolean gtk_widget_has_screen (GtkWidget *widget); | |
18668 | GdkDisplay * gtk_widget_get_display (GtkWidget *widget); | |
18669 | GdkWindow * gtk_widget_get_root_window (GtkWidget *widget); | |
18670 | GtkSettings* gtk_widget_get_settings (GtkWidget *widget); | |
18671 | GtkClipboard *gtk_widget_get_clipboard (GtkWidget *widget, | |
18672 | GdkAtom selection); | |
18673 | # 622 "../gtk/gtkwidget.h" | |
18674 | AtkObject* gtk_widget_get_accessible (GtkWidget *widget); | |
18675 | ||
18676 | ||
18677 | ||
18678 | ||
18679 | ||
18680 | ||
18681 | ||
18682 | void gtk_widget_set_colormap (GtkWidget *widget, | |
18683 | GdkColormap *colormap); | |
18684 | ||
18685 | gint gtk_widget_get_events (GtkWidget *widget); | |
18686 | void gtk_widget_get_pointer (GtkWidget *widget, | |
18687 | gint *x, | |
18688 | gint *y); | |
18689 | ||
18690 | gboolean gtk_widget_is_ancestor (GtkWidget *widget, | |
18691 | GtkWidget *ancestor); | |
18692 | ||
18693 | gboolean gtk_widget_translate_coordinates (GtkWidget *src_widget, | |
18694 | GtkWidget *dest_widget, | |
18695 | gint src_x, | |
18696 | gint src_y, | |
18697 | gint *dest_x, | |
18698 | gint *dest_y); | |
18699 | ||
18700 | ||
18701 | ||
18702 | gboolean gtk_widget_hide_on_delete (GtkWidget *widget); | |
18703 | ||
18704 | ||
18705 | ||
18706 | void gtk_widget_set_style (GtkWidget *widget, | |
18707 | GtkStyle *style); | |
18708 | void gtk_widget_ensure_style (GtkWidget *widget); | |
18709 | GtkStyle* gtk_widget_get_style (GtkWidget *widget); | |
18710 | ||
18711 | void gtk_widget_modify_style (GtkWidget *widget, | |
18712 | GtkRcStyle *style); | |
18713 | GtkRcStyle *gtk_widget_get_modifier_style (GtkWidget *widget); | |
18714 | void gtk_widget_modify_fg (GtkWidget *widget, | |
18715 | GtkStateType state, | |
18716 | const GdkColor *color); | |
18717 | void gtk_widget_modify_bg (GtkWidget *widget, | |
18718 | GtkStateType state, | |
18719 | const GdkColor *color); | |
18720 | void gtk_widget_modify_text (GtkWidget *widget, | |
18721 | GtkStateType state, | |
18722 | const GdkColor *color); | |
18723 | void gtk_widget_modify_base (GtkWidget *widget, | |
18724 | GtkStateType state, | |
18725 | const GdkColor *color); | |
18726 | void gtk_widget_modify_cursor (GtkWidget *widget, | |
18727 | const GdkColor *primary, | |
18728 | const GdkColor *secondary); | |
18729 | void gtk_widget_modify_font (GtkWidget *widget, | |
18730 | PangoFontDescription *font_desc); | |
18731 | ||
18732 | ||
18733 | ||
18734 | ||
18735 | ||
18736 | ||
18737 | PangoContext *gtk_widget_create_pango_context (GtkWidget *widget); | |
18738 | PangoContext *gtk_widget_get_pango_context (GtkWidget *widget); | |
18739 | PangoLayout *gtk_widget_create_pango_layout (GtkWidget *widget, | |
18740 | const gchar *text); | |
18741 | ||
18742 | GdkPixbuf *gtk_widget_render_icon (GtkWidget *widget, | |
18743 | const gchar *stock_id, | |
18744 | GtkIconSize size, | |
18745 | const gchar *detail); | |
18746 | ||
18747 | ||
18748 | ||
18749 | ||
18750 | void gtk_widget_set_composite_name (GtkWidget *widget, | |
18751 | const gchar *name); | |
18752 | gchar* gtk_widget_get_composite_name (GtkWidget *widget); | |
18753 | ||
18754 | ||
18755 | void gtk_widget_reset_rc_styles (GtkWidget *widget); | |
18756 | ||
18757 | ||
18758 | ||
18759 | ||
18760 | ||
18761 | void gtk_widget_push_colormap (GdkColormap *cmap); | |
18762 | void gtk_widget_push_composite_child (void); | |
18763 | void gtk_widget_pop_composite_child (void); | |
18764 | void gtk_widget_pop_colormap (void); | |
18765 | ||
18766 | ||
18767 | ||
18768 | void gtk_widget_class_install_style_property (GtkWidgetClass *klass, | |
18769 | GParamSpec *pspec); | |
18770 | void gtk_widget_class_install_style_property_parser (GtkWidgetClass *klass, | |
18771 | GParamSpec *pspec, | |
18772 | GtkRcPropertyParser parser); | |
18773 | GParamSpec* gtk_widget_class_find_style_property (GtkWidgetClass *klass, | |
18774 | const gchar *property_name); | |
18775 | GParamSpec** gtk_widget_class_list_style_properties (GtkWidgetClass *klass, | |
18776 | guint *n_properties); | |
18777 | void gtk_widget_style_get_property (GtkWidget *widget, | |
18778 | const gchar *property_name, | |
18779 | GValue *value); | |
18780 | void gtk_widget_style_get_valist (GtkWidget *widget, | |
18781 | const gchar *first_property_name, | |
18782 | va_list var_args); | |
18783 | void gtk_widget_style_get (GtkWidget *widget, | |
18784 | const gchar *first_property_name, | |
18785 | ...) __attribute__((__sentinel__)); | |
18786 | ||
18787 | ||
18788 | ||
18789 | ||
18790 | void gtk_widget_set_default_colormap (GdkColormap *colormap); | |
18791 | GtkStyle* gtk_widget_get_default_style (void); | |
18792 | ||
18793 | GdkColormap* gtk_widget_get_default_colormap (void); | |
18794 | GdkVisual* gtk_widget_get_default_visual (void); | |
18795 | ||
18796 | ||
18797 | ||
18798 | ||
18799 | ||
18800 | void gtk_widget_set_direction (GtkWidget *widget, | |
18801 | GtkTextDirection dir); | |
18802 | GtkTextDirection gtk_widget_get_direction (GtkWidget *widget); | |
18803 | ||
18804 | void gtk_widget_set_default_direction (GtkTextDirection dir); | |
18805 | GtkTextDirection gtk_widget_get_default_direction (void); | |
18806 | ||
18807 | ||
18808 | gboolean gtk_widget_is_composited (GtkWidget *widget); | |
18809 | ||
18810 | ||
18811 | ||
18812 | void gtk_widget_shape_combine_mask (GtkWidget *widget, | |
18813 | GdkBitmap *shape_mask, | |
18814 | gint offset_x, | |
18815 | gint offset_y); | |
18816 | void gtk_widget_input_shape_combine_mask (GtkWidget *widget, | |
18817 | GdkBitmap *shape_mask, | |
18818 | gint offset_x, | |
18819 | gint offset_y); | |
18820 | ||
18821 | ||
18822 | void gtk_widget_reset_shapes (GtkWidget *widget); | |
18823 | ||
18824 | ||
18825 | ||
18826 | ||
18827 | void gtk_widget_path (GtkWidget *widget, | |
18828 | guint *path_length, | |
18829 | gchar **path, | |
18830 | gchar **path_reversed); | |
18831 | void gtk_widget_class_path (GtkWidget *widget, | |
18832 | guint *path_length, | |
18833 | gchar **path, | |
18834 | gchar **path_reversed); | |
18835 | ||
18836 | GList* gtk_widget_list_mnemonic_labels (GtkWidget *widget); | |
18837 | void gtk_widget_add_mnemonic_label (GtkWidget *widget, | |
18838 | GtkWidget *label); | |
18839 | void gtk_widget_remove_mnemonic_label (GtkWidget *widget, | |
18840 | GtkWidget *label); | |
18841 | ||
18842 | void gtk_widget_set_tooltip_window (GtkWidget *widget, | |
18843 | GtkWindow *custom_window); | |
18844 | GtkWindow *gtk_widget_get_tooltip_window (GtkWidget *widget); | |
18845 | void gtk_widget_trigger_tooltip_query (GtkWidget *widget); | |
18846 | void gtk_widget_set_tooltip_text (GtkWidget *widget, | |
18847 | const gchar *text); | |
18848 | gchar * gtk_widget_get_tooltip_text (GtkWidget *widget); | |
18849 | void gtk_widget_set_tooltip_markup (GtkWidget *widget, | |
18850 | const gchar *markup); | |
18851 | gchar * gtk_widget_get_tooltip_markup (GtkWidget *widget); | |
18852 | void gtk_widget_set_has_tooltip (GtkWidget *widget, | |
18853 | gboolean has_tooltip); | |
18854 | gboolean gtk_widget_get_has_tooltip (GtkWidget *widget); | |
18855 | ||
18856 | GType gtk_requisition_get_type (void) __attribute__((__const__)); | |
18857 | GtkRequisition *gtk_requisition_copy (const GtkRequisition *requisition); | |
18858 | void gtk_requisition_free (GtkRequisition *requisition); | |
18859 | ||
18860 | ||
18861 | ||
18862 | ||
18863 | ||
18864 | ||
18865 | void _gtk_widget_grab_notify (GtkWidget *widget, | |
18866 | gboolean was_grabbed); | |
18867 | ||
18868 | GtkWidgetAuxInfo *_gtk_widget_get_aux_info (GtkWidget *widget, | |
18869 | gboolean create); | |
18870 | void _gtk_widget_propagate_hierarchy_changed (GtkWidget *widget, | |
18871 | GtkWidget *previous_toplevel); | |
18872 | void _gtk_widget_propagate_screen_changed (GtkWidget *widget, | |
18873 | GdkScreen *previous_screen); | |
18874 | void _gtk_widget_propagate_composited_changed (GtkWidget *widget); | |
18875 | ||
18876 | GdkColormap* _gtk_widget_peek_colormap (void); | |
18877 | ||
18878 | ||
18879 | # 34 "../gtk/gtkcontainer.h" 2 | |
18880 | ||
18881 | ||
18882 | ||
18883 | ||
18884 | # 49 "../gtk/gtkcontainer.h" | |
18885 | typedef struct _GtkContainer GtkContainer; | |
18886 | typedef struct _GtkContainerClass GtkContainerClass; | |
18887 | ||
18888 | struct _GtkContainer | |
18889 | { | |
18890 | GtkWidget widget; | |
18891 | ||
18892 | GtkWidget *focus_child; | |
18893 | ||
18894 | guint border_width : 16; | |
18895 | ||
18896 | ||
18897 | guint need_resize : 1; | |
18898 | guint resize_mode : 2; | |
18899 | guint reallocate_redraws : 1; | |
18900 | guint has_focus_chain : 1; | |
18901 | }; | |
18902 | ||
18903 | struct _GtkContainerClass | |
18904 | { | |
18905 | GtkWidgetClass parent_class; | |
18906 | ||
18907 | void (*add) (GtkContainer *container, | |
18908 | GtkWidget *widget); | |
18909 | void (*remove) (GtkContainer *container, | |
18910 | GtkWidget *widget); | |
18911 | void (*check_resize) (GtkContainer *container); | |
18912 | void (*forall) (GtkContainer *container, | |
18913 | gboolean include_internals, | |
18914 | GtkCallback callback, | |
18915 | gpointer callback_data); | |
18916 | void (*set_focus_child) (GtkContainer *container, | |
18917 | GtkWidget *widget); | |
18918 | GType (*child_type) (GtkContainer *container); | |
18919 | gchar* (*composite_name) (GtkContainer *container, | |
18920 | GtkWidget *child); | |
18921 | void (*set_child_property) (GtkContainer *container, | |
18922 | GtkWidget *child, | |
18923 | guint property_id, | |
18924 | const GValue *value, | |
18925 | GParamSpec *pspec); | |
18926 | void (*get_child_property) (GtkContainer *container, | |
18927 | GtkWidget *child, | |
18928 | guint property_id, | |
18929 | GValue *value, | |
18930 | GParamSpec *pspec); | |
18931 | ||
18932 | ||
18933 | void (*_gtk_reserved1) (void); | |
18934 | void (*_gtk_reserved2) (void); | |
18935 | void (*_gtk_reserved3) (void); | |
18936 | void (*_gtk_reserved4) (void); | |
18937 | }; | |
18938 | ||
18939 | ||
18940 | ||
18941 | GType gtk_container_get_type (void) __attribute__((__const__)); | |
18942 | void gtk_container_set_border_width (GtkContainer *container, | |
18943 | guint border_width); | |
18944 | guint gtk_container_get_border_width (GtkContainer *container); | |
18945 | void gtk_container_add (GtkContainer *container, | |
18946 | GtkWidget *widget); | |
18947 | void gtk_container_remove (GtkContainer *container, | |
18948 | GtkWidget *widget); | |
18949 | ||
18950 | void gtk_container_set_resize_mode (GtkContainer *container, | |
18951 | GtkResizeMode resize_mode); | |
18952 | GtkResizeMode gtk_container_get_resize_mode (GtkContainer *container); | |
18953 | ||
18954 | void gtk_container_check_resize (GtkContainer *container); | |
18955 | ||
18956 | void gtk_container_foreach (GtkContainer *container, | |
18957 | GtkCallback callback, | |
18958 | gpointer callback_data); | |
18959 | ||
18960 | void gtk_container_foreach_full (GtkContainer *container, | |
18961 | GtkCallback callback, | |
18962 | GtkCallbackMarshal marshal, | |
18963 | gpointer callback_data, | |
18964 | GtkDestroyNotify notify); | |
18965 | ||
18966 | GList* gtk_container_get_children (GtkContainer *container); | |
18967 | ||
18968 | ||
18969 | ||
18970 | ||
18971 | ||
18972 | void gtk_container_propagate_expose (GtkContainer *container, | |
18973 | GtkWidget *child, | |
18974 | GdkEventExpose *event); | |
18975 | ||
18976 | void gtk_container_set_focus_chain (GtkContainer *container, | |
18977 | GList *focusable_widgets); | |
18978 | gboolean gtk_container_get_focus_chain (GtkContainer *container, | |
18979 | GList **focusable_widgets); | |
18980 | void gtk_container_unset_focus_chain (GtkContainer *container); | |
18981 | ||
18982 | ||
18983 | ||
18984 | void gtk_container_set_reallocate_redraws (GtkContainer *container, | |
18985 | gboolean needs_redraws); | |
18986 | void gtk_container_set_focus_child (GtkContainer *container, | |
18987 | GtkWidget *child); | |
18988 | void gtk_container_set_focus_vadjustment (GtkContainer *container, | |
18989 | GtkAdjustment *adjustment); | |
18990 | GtkAdjustment *gtk_container_get_focus_vadjustment (GtkContainer *container); | |
18991 | void gtk_container_set_focus_hadjustment (GtkContainer *container, | |
18992 | GtkAdjustment *adjustment); | |
18993 | GtkAdjustment *gtk_container_get_focus_hadjustment (GtkContainer *container); | |
18994 | ||
18995 | void gtk_container_resize_children (GtkContainer *container); | |
18996 | ||
18997 | GType gtk_container_child_type (GtkContainer *container); | |
18998 | ||
18999 | ||
19000 | void gtk_container_class_install_child_property (GtkContainerClass *cclass, | |
19001 | guint property_id, | |
19002 | GParamSpec *pspec); | |
19003 | GParamSpec* gtk_container_class_find_child_property (GObjectClass *cclass, | |
19004 | const gchar *property_name); | |
19005 | GParamSpec** gtk_container_class_list_child_properties (GObjectClass *cclass, | |
19006 | guint *n_properties); | |
19007 | void gtk_container_add_with_properties (GtkContainer *container, | |
19008 | GtkWidget *widget, | |
19009 | const gchar *first_prop_name, | |
19010 | ...) __attribute__((__sentinel__)); | |
19011 | void gtk_container_child_set (GtkContainer *container, | |
19012 | GtkWidget *child, | |
19013 | const gchar *first_prop_name, | |
19014 | ...) __attribute__((__sentinel__)); | |
19015 | void gtk_container_child_get (GtkContainer *container, | |
19016 | GtkWidget *child, | |
19017 | const gchar *first_prop_name, | |
19018 | ...) __attribute__((__sentinel__)); | |
19019 | void gtk_container_child_set_valist (GtkContainer *container, | |
19020 | GtkWidget *child, | |
19021 | const gchar *first_property_name, | |
19022 | va_list var_args); | |
19023 | void gtk_container_child_get_valist (GtkContainer *container, | |
19024 | GtkWidget *child, | |
19025 | const gchar *first_property_name, | |
19026 | va_list var_args); | |
19027 | void gtk_container_child_set_property (GtkContainer *container, | |
19028 | GtkWidget *child, | |
19029 | const gchar *property_name, | |
19030 | const GValue *value); | |
19031 | void gtk_container_child_get_property (GtkContainer *container, | |
19032 | GtkWidget *child, | |
19033 | const gchar *property_name, | |
19034 | GValue *value); | |
19035 | ||
19036 | ||
19037 | ||
19038 | ||
19039 | ||
19040 | void gtk_container_forall (GtkContainer *container, | |
19041 | GtkCallback callback, | |
19042 | gpointer callback_data); | |
19043 | ||
19044 | ||
19045 | void _gtk_container_queue_resize (GtkContainer *container); | |
19046 | void _gtk_container_clear_resize_widgets (GtkContainer *container); | |
19047 | gchar* _gtk_container_child_composite_name (GtkContainer *container, | |
19048 | GtkWidget *child); | |
19049 | void _gtk_container_dequeue_resize_handler (GtkContainer *container); | |
19050 | GList *_gtk_container_focus_sort (GtkContainer *container, | |
19051 | GList *children, | |
19052 | GtkDirectionType direction, | |
19053 | GtkWidget *old_focus); | |
19054 | ||
19055 | ||
19056 | ||
19057 | ||
19058 | ||
19059 | ||
19060 | # 34 "gtknotebook.h" 2 | |
19061 | ||
19062 | ||
19063 | # 45 "gtknotebook.h" | |
19064 | typedef enum | |
19065 | { | |
19066 | GTK_NOTEBOOK_TAB_FIRST, | |
19067 | GTK_NOTEBOOK_TAB_LAST | |
19068 | } GtkNotebookTab; | |
19069 | ||
19070 | typedef struct _GtkNotebook GtkNotebook; | |
19071 | typedef struct _GtkNotebookClass GtkNotebookClass; | |
19072 | typedef struct _GtkNotebookPage GtkNotebookPage; | |
19073 | ||
19074 | struct _GtkNotebook | |
19075 | { | |
19076 | GtkContainer container; | |
19077 | ||
19078 | GtkNotebookPage *cur_page; | |
19079 | GList *children; | |
19080 | GList *first_tab; | |
19081 | GList *focus_tab; | |
19082 | ||
19083 | GtkWidget *menu; | |
19084 | GdkWindow *event_window; | |
19085 | ||
19086 | guint32 timer; | |
19087 | ||
19088 | guint16 tab_hborder; | |
19089 | guint16 tab_vborder; | |
19090 | ||
19091 | guint show_tabs : 1; | |
19092 | guint homogeneous : 1; | |
19093 | guint show_border : 1; | |
19094 | guint tab_pos : 2; | |
19095 | guint scrollable : 1; | |
19096 | guint in_child : 3; | |
19097 | guint click_child : 3; | |
19098 | guint button : 2; | |
19099 | guint need_timer : 1; | |
19100 | guint child_has_focus : 1; | |
19101 | guint have_visible_child : 1; | |
19102 | guint focus_out : 1; | |
19103 | ||
19104 | guint has_before_previous : 1; | |
19105 | guint has_before_next : 1; | |
19106 | guint has_after_previous : 1; | |
19107 | guint has_after_next : 1; | |
19108 | }; | |
19109 | ||
19110 | struct _GtkNotebookClass | |
19111 | { | |
19112 | GtkContainerClass parent_class; | |
19113 | ||
19114 | void (* switch_page) (GtkNotebook *notebook, | |
19115 | GtkNotebookPage *page, | |
19116 | guint page_num); | |
19117 | ||
19118 | ||
19119 | gboolean (* select_page) (GtkNotebook *notebook, | |
19120 | gboolean move_focus); | |
19121 | gboolean (* focus_tab) (GtkNotebook *notebook, | |
19122 | GtkNotebookTab type); | |
19123 | gboolean (* change_current_page) (GtkNotebook *notebook, | |
19124 | gint offset); | |
19125 | void (* move_focus_out) (GtkNotebook *notebook, | |
19126 | GtkDirectionType direction); | |
19127 | gboolean (* reorder_tab) (GtkNotebook *notebook, | |
19128 | GtkDirectionType direction, | |
19129 | gboolean move_to_last); | |
19130 | ||
19131 | ||
19132 | gint (* insert_page) (GtkNotebook *notebook, | |
19133 | GtkWidget *child, | |
19134 | GtkWidget *tab_label, | |
19135 | GtkWidget *menu_label, | |
19136 | gint position); | |
19137 | ||
19138 | GtkNotebook * (* create_window) (GtkNotebook *notebook, | |
19139 | GtkWidget *page, | |
19140 | gint x, | |
19141 | gint y); | |
19142 | ||
19143 | void (*_gtk_reserved1) (void); | |
19144 | }; | |
19145 | ||
19146 | typedef GtkNotebook* (*GtkNotebookWindowCreationFunc) (GtkNotebook *source, | |
19147 | GtkWidget *page, | |
19148 | gint x, | |
19149 | gint y, | |
19150 | gpointer data); | |
19151 | ||
19152 | ||
19153 | ||
19154 | ||
19155 | ||
19156 | GType gtk_notebook_get_type (void) __attribute__((__const__)); | |
19157 | GtkWidget * gtk_notebook_new (void); | |
19158 | gint gtk_notebook_append_page (GtkNotebook *notebook, | |
19159 | GtkWidget *child, | |
19160 | GtkWidget *tab_label); | |
19161 | gint gtk_notebook_append_page_menu (GtkNotebook *notebook, | |
19162 | GtkWidget *child, | |
19163 | GtkWidget *tab_label, | |
19164 | GtkWidget *menu_label); | |
19165 | gint gtk_notebook_prepend_page (GtkNotebook *notebook, | |
19166 | GtkWidget *child, | |
19167 | GtkWidget *tab_label); | |
19168 | gint gtk_notebook_prepend_page_menu (GtkNotebook *notebook, | |
19169 | GtkWidget *child, | |
19170 | GtkWidget *tab_label, | |
19171 | GtkWidget *menu_label); | |
19172 | gint gtk_notebook_insert_page (GtkNotebook *notebook, | |
19173 | GtkWidget *child, | |
19174 | GtkWidget *tab_label, | |
19175 | gint position); | |
19176 | gint gtk_notebook_insert_page_menu (GtkNotebook *notebook, | |
19177 | GtkWidget *child, | |
19178 | GtkWidget *tab_label, | |
19179 | GtkWidget *menu_label, | |
19180 | gint position); | |
19181 | void gtk_notebook_remove_page (GtkNotebook *notebook, | |
19182 | gint page_num); | |
19183 | ||
19184 | ||
19185 | ||
19186 | ||
19187 | ||
19188 | void gtk_notebook_set_window_creation_hook (GtkNotebookWindowCreationFunc func, | |
19189 | gpointer data, | |
19190 | GDestroyNotify destroy); | |
19191 | ||
19192 | void gtk_notebook_set_group_id (GtkNotebook *notebook, | |
19193 | gint group_id); | |
19194 | gint gtk_notebook_get_group_id (GtkNotebook *notebook); | |
19195 | ||
19196 | ||
19197 | ||
19198 | void gtk_notebook_set_group (GtkNotebook *notebook, | |
19199 | gpointer group); | |
19200 | gpointer gtk_notebook_get_group (GtkNotebook *notebook); | |
19201 | ||
19202 | ||
19203 | ||
19204 | ||
19205 | ||
19206 | ||
19207 | ||
19208 | gint gtk_notebook_get_current_page (GtkNotebook *notebook); | |
19209 | GtkWidget* gtk_notebook_get_nth_page (GtkNotebook *notebook, | |
19210 | gint page_num); | |
19211 | gint gtk_notebook_get_n_pages (GtkNotebook *notebook); | |
19212 | gint gtk_notebook_page_num (GtkNotebook *notebook, | |
19213 | GtkWidget *child); | |
19214 | void gtk_notebook_set_current_page (GtkNotebook *notebook, | |
19215 | gint page_num); | |
19216 | void gtk_notebook_next_page (GtkNotebook *notebook); | |
19217 | void gtk_notebook_prev_page (GtkNotebook *notebook); | |
19218 | ||
19219 | ||
19220 | ||
19221 | ||
19222 | ||
19223 | void gtk_notebook_set_show_border (GtkNotebook *notebook, | |
19224 | gboolean show_border); | |
19225 | gboolean gtk_notebook_get_show_border (GtkNotebook *notebook); | |
19226 | void gtk_notebook_set_show_tabs (GtkNotebook *notebook, | |
19227 | gboolean show_tabs); | |
19228 | gboolean gtk_notebook_get_show_tabs (GtkNotebook *notebook); | |
19229 | void gtk_notebook_set_tab_pos (GtkNotebook *notebook, | |
19230 | GtkPositionType pos); | |
19231 | GtkPositionType gtk_notebook_get_tab_pos (GtkNotebook *notebook); | |
19232 | ||
19233 | ||
19234 | void gtk_notebook_set_homogeneous_tabs (GtkNotebook *notebook, | |
19235 | gboolean homogeneous); | |
19236 | void gtk_notebook_set_tab_border (GtkNotebook *notebook, | |
19237 | guint border_width); | |
19238 | void gtk_notebook_set_tab_hborder (GtkNotebook *notebook, | |
19239 | guint tab_hborder); | |
19240 | void gtk_notebook_set_tab_vborder (GtkNotebook *notebook, | |
19241 | guint tab_vborder); | |
19242 | ||
19243 | ||
19244 | void gtk_notebook_set_scrollable (GtkNotebook *notebook, | |
19245 | gboolean scrollable); | |
19246 | gboolean gtk_notebook_get_scrollable (GtkNotebook *notebook); | |
19247 | ||
19248 | ||
19249 | ||
19250 | ||
19251 | ||
19252 | void gtk_notebook_popup_enable (GtkNotebook *notebook); | |
19253 | void gtk_notebook_popup_disable (GtkNotebook *notebook); | |
19254 | ||
19255 | ||
19256 | ||
19257 | ||
19258 | ||
19259 | GtkWidget * gtk_notebook_get_tab_label (GtkNotebook *notebook, | |
19260 | GtkWidget *child); | |
19261 | void gtk_notebook_set_tab_label (GtkNotebook *notebook, | |
19262 | GtkWidget *child, | |
19263 | GtkWidget *tab_label); | |
19264 | void gtk_notebook_set_tab_label_text (GtkNotebook *notebook, | |
19265 | GtkWidget *child, | |
19266 | const gchar *tab_text); | |
19267 | const gchar *gtk_notebook_get_tab_label_text (GtkNotebook *notebook, | |
19268 | GtkWidget *child); | |
19269 | GtkWidget * gtk_notebook_get_menu_label (GtkNotebook *notebook, | |
19270 | GtkWidget *child); | |
19271 | void gtk_notebook_set_menu_label (GtkNotebook *notebook, | |
19272 | GtkWidget *child, | |
19273 | GtkWidget *menu_label); | |
19274 | void gtk_notebook_set_menu_label_text (GtkNotebook *notebook, | |
19275 | GtkWidget *child, | |
19276 | const gchar *menu_text); | |
19277 | const gchar *gtk_notebook_get_menu_label_text (GtkNotebook *notebook, | |
19278 | GtkWidget *child); | |
19279 | void gtk_notebook_query_tab_label_packing (GtkNotebook *notebook, | |
19280 | GtkWidget *child, | |
19281 | gboolean *expand, | |
19282 | gboolean *fill, | |
19283 | GtkPackType *pack_type); | |
19284 | void gtk_notebook_set_tab_label_packing (GtkNotebook *notebook, | |
19285 | GtkWidget *child, | |
19286 | gboolean expand, | |
19287 | gboolean fill, | |
19288 | GtkPackType pack_type); | |
19289 | void gtk_notebook_reorder_child (GtkNotebook *notebook, | |
19290 | GtkWidget *child, | |
19291 | gint position); | |
19292 | gboolean gtk_notebook_get_tab_reorderable (GtkNotebook *notebook, | |
19293 | GtkWidget *child); | |
19294 | void gtk_notebook_set_tab_reorderable (GtkNotebook *notebook, | |
19295 | GtkWidget *child, | |
19296 | gboolean reorderable); | |
19297 | gboolean gtk_notebook_get_tab_detachable (GtkNotebook *notebook, | |
19298 | GtkWidget *child); | |
19299 | void gtk_notebook_set_tab_detachable (GtkNotebook *notebook, | |
19300 | GtkWidget *child, | |
19301 | gboolean detachable); | |
19302 | ||
19303 | ||
19304 | ||
19305 | ||
19306 | ||
19307 | ||
19308 | ||
19309 | # 31 "gtknotebook.c" 2 | |
19310 | # 1 "gtkmain.h" 1 | |
19311 | # 38 "gtkmain.h" | |
19312 | ||
19313 | # 58 "gtkmain.h" | |
19314 | typedef gint (*GtkKeySnoopFunc) (GtkWidget *grab_widget, | |
19315 | GdkEventKey *event, | |
19316 | gpointer func_data); | |
19317 | # 74 "gtkmain.h" | |
19318 | extern const guint gtk_major_version; | |
19319 | extern const guint gtk_minor_version; | |
19320 | extern const guint gtk_micro_version; | |
19321 | extern const guint gtk_binary_age; | |
19322 | extern const guint gtk_interface_age; | |
19323 | const gchar* gtk_check_version (guint required_major, | |
19324 | guint required_minor, | |
19325 | guint required_micro); | |
19326 | ||
19327 | ||
19328 | ||
19329 | ||
19330 | ||
19331 | gboolean gtk_parse_args (int *argc, | |
19332 | char ***argv); | |
19333 | ||
19334 | void gtk_init (int *argc, | |
19335 | char ***argv); | |
19336 | ||
19337 | gboolean gtk_init_check (int *argc, | |
19338 | char ***argv); | |
19339 | ||
19340 | gboolean gtk_init_with_args (int *argc, | |
19341 | char ***argv, | |
19342 | char *parameter_string, | |
19343 | GOptionEntry *entries, | |
19344 | char *translation_domain, | |
19345 | GError **error); | |
19346 | ||
19347 | GOptionGroup *gtk_get_option_group (gboolean open_default_display); | |
19348 | # 127 "gtkmain.h" | |
19349 | void gtk_exit (gint error_code); | |
19350 | ||
19351 | ||
19352 | void gtk_disable_setlocale (void); | |
19353 | gchar * gtk_set_locale (void); | |
19354 | PangoLanguage *gtk_get_default_language (void); | |
19355 | gboolean gtk_events_pending (void); | |
19356 | ||
19357 | ||
19358 | ||
19359 | ||
19360 | ||
19361 | void gtk_main_do_event (GdkEvent *event); | |
19362 | ||
19363 | void gtk_main (void); | |
19364 | guint gtk_main_level (void); | |
19365 | void gtk_main_quit (void); | |
19366 | gboolean gtk_main_iteration (void); | |
19367 | ||
19368 | gboolean gtk_main_iteration_do (gboolean blocking); | |
19369 | ||
19370 | gboolean gtk_true (void) __attribute__((__const__)); | |
19371 | gboolean gtk_false (void) __attribute__((__const__)); | |
19372 | ||
19373 | void gtk_grab_add (GtkWidget *widget); | |
19374 | GtkWidget* gtk_grab_get_current (void); | |
19375 | void gtk_grab_remove (GtkWidget *widget); | |
19376 | ||
19377 | void gtk_init_add (GtkFunction function, | |
19378 | gpointer data); | |
19379 | void gtk_quit_add_destroy (guint main_level, | |
19380 | GtkObject *object); | |
19381 | guint gtk_quit_add (guint main_level, | |
19382 | GtkFunction function, | |
19383 | gpointer data); | |
19384 | guint gtk_quit_add_full (guint main_level, | |
19385 | GtkFunction function, | |
19386 | GtkCallbackMarshal marshal, | |
19387 | gpointer data, | |
19388 | GtkDestroyNotify destroy); | |
19389 | void gtk_quit_remove (guint quit_handler_id); | |
19390 | void gtk_quit_remove_by_data (gpointer data); | |
19391 | ||
19392 | guint gtk_timeout_add (guint32 interval, | |
19393 | GtkFunction function, | |
19394 | gpointer data); | |
19395 | guint gtk_timeout_add_full (guint32 interval, | |
19396 | GtkFunction function, | |
19397 | GtkCallbackMarshal marshal, | |
19398 | gpointer data, | |
19399 | GtkDestroyNotify destroy); | |
19400 | void gtk_timeout_remove (guint timeout_handler_id); | |
19401 | ||
19402 | guint gtk_idle_add (GtkFunction function, | |
19403 | gpointer data); | |
19404 | guint gtk_idle_add_priority (gint priority, | |
19405 | GtkFunction function, | |
19406 | gpointer data); | |
19407 | guint gtk_idle_add_full (gint priority, | |
19408 | GtkFunction function, | |
19409 | GtkCallbackMarshal marshal, | |
19410 | gpointer data, | |
19411 | GtkDestroyNotify destroy); | |
19412 | void gtk_idle_remove (guint idle_handler_id); | |
19413 | void gtk_idle_remove_by_data (gpointer data); | |
19414 | guint gtk_input_add_full (gint source, | |
19415 | GdkInputCondition condition, | |
19416 | GdkInputFunction function, | |
19417 | GtkCallbackMarshal marshal, | |
19418 | gpointer data, | |
19419 | GtkDestroyNotify destroy); | |
19420 | void gtk_input_remove (guint input_handler_id); | |
19421 | ||
19422 | ||
19423 | guint gtk_key_snooper_install (GtkKeySnoopFunc snooper, | |
19424 | gpointer func_data); | |
19425 | void gtk_key_snooper_remove (guint snooper_handler_id); | |
19426 | ||
19427 | GdkEvent* gtk_get_current_event (void); | |
19428 | guint32 gtk_get_current_event_time (void); | |
19429 | gboolean gtk_get_current_event_state (GdkModifierType *state); | |
19430 | ||
19431 | GtkWidget* gtk_get_event_widget (GdkEvent *event); | |
19432 | ||
19433 | ||
19434 | ||
19435 | ||
19436 | void gtk_propagate_event (GtkWidget *widget, | |
19437 | GdkEvent *event); | |
19438 | ||
19439 | gboolean _gtk_boolean_handled_accumulator (GSignalInvocationHint *ihint, | |
19440 | GValue *return_accu, | |
19441 | const GValue *handler_return, | |
19442 | gpointer dummy); | |
19443 | ||
19444 | gchar *_gtk_get_lc_ctype (void); | |
19445 | ||
19446 | ||
19447 | # 32 "gtknotebook.c" 2 | |
19448 | # 1 "gtkmenu.h" 1 | |
19449 | # 33 "gtkmenu.h" | |
19450 | # 1 "../gtk/gtkmenushell.h" 1 | |
19451 | # 35 "../gtk/gtkmenushell.h" | |
19452 | ||
19453 | # 45 "../gtk/gtkmenushell.h" | |
19454 | typedef struct _GtkMenuShell GtkMenuShell; | |
19455 | typedef struct _GtkMenuShellClass GtkMenuShellClass; | |
19456 | ||
19457 | struct _GtkMenuShell | |
19458 | { | |
19459 | GtkContainer container; | |
19460 | ||
19461 | GList *children; | |
19462 | GtkWidget *active_menu_item; | |
19463 | GtkWidget *parent_menu_shell; | |
19464 | ||
19465 | guint button; | |
19466 | guint32 activate_time; | |
19467 | ||
19468 | guint active : 1; | |
19469 | guint have_grab : 1; | |
19470 | guint have_xgrab : 1; | |
19471 | guint ignore_leave : 1; | |
19472 | guint menu_flag : 1; | |
19473 | guint ignore_enter : 1; | |
19474 | }; | |
19475 | ||
19476 | struct _GtkMenuShellClass | |
19477 | { | |
19478 | GtkContainerClass parent_class; | |
19479 | ||
19480 | guint submenu_placement : 1; | |
19481 | ||
19482 | void (*deactivate) (GtkMenuShell *menu_shell); | |
19483 | void (*selection_done) (GtkMenuShell *menu_shell); | |
19484 | ||
19485 | void (*move_current) (GtkMenuShell *menu_shell, | |
19486 | GtkMenuDirectionType direction); | |
19487 | void (*activate_current) (GtkMenuShell *menu_shell, | |
19488 | gboolean force_hide); | |
19489 | void (*cancel) (GtkMenuShell *menu_shell); | |
19490 | void (*select_item) (GtkMenuShell *menu_shell, | |
19491 | GtkWidget *menu_item); | |
19492 | void (*insert) (GtkMenuShell *menu_shell, | |
19493 | GtkWidget *child, | |
19494 | gint position); | |
19495 | gint (*get_popup_delay) (GtkMenuShell *menu_shell); | |
19496 | gboolean (*move_selected) (GtkMenuShell *menu_shell, | |
19497 | gint distance); | |
19498 | ||
19499 | ||
19500 | void (*_gtk_reserved1) (void); | |
19501 | void (*_gtk_reserved2) (void); | |
19502 | }; | |
19503 | ||
19504 | ||
19505 | GType gtk_menu_shell_get_type (void) __attribute__((__const__)); | |
19506 | void gtk_menu_shell_append (GtkMenuShell *menu_shell, | |
19507 | GtkWidget *child); | |
19508 | void gtk_menu_shell_prepend (GtkMenuShell *menu_shell, | |
19509 | GtkWidget *child); | |
19510 | void gtk_menu_shell_insert (GtkMenuShell *menu_shell, | |
19511 | GtkWidget *child, | |
19512 | gint position); | |
19513 | void gtk_menu_shell_deactivate (GtkMenuShell *menu_shell); | |
19514 | void gtk_menu_shell_select_item (GtkMenuShell *menu_shell, | |
19515 | GtkWidget *menu_item); | |
19516 | void gtk_menu_shell_deselect (GtkMenuShell *menu_shell); | |
19517 | void gtk_menu_shell_activate_item (GtkMenuShell *menu_shell, | |
19518 | GtkWidget *menu_item, | |
19519 | gboolean force_deactivate); | |
19520 | void gtk_menu_shell_select_first (GtkMenuShell *menu_shell, | |
19521 | gboolean search_sensitive); | |
19522 | void _gtk_menu_shell_select_last (GtkMenuShell *menu_shell, | |
19523 | gboolean search_sensitive); | |
19524 | void _gtk_menu_shell_activate (GtkMenuShell *menu_shell); | |
19525 | gint _gtk_menu_shell_get_popup_delay (GtkMenuShell *menu_shell); | |
19526 | void gtk_menu_shell_cancel (GtkMenuShell *menu_shell); | |
19527 | ||
19528 | void _gtk_menu_shell_add_mnemonic (GtkMenuShell *menu_shell, | |
19529 | guint keyval, | |
19530 | GtkWidget *target); | |
19531 | void _gtk_menu_shell_remove_mnemonic (GtkMenuShell *menu_shell, | |
19532 | guint keyval, | |
19533 | GtkWidget *target); | |
19534 | ||
19535 | gboolean gtk_menu_shell_get_take_focus (GtkMenuShell *menu_shell); | |
19536 | void gtk_menu_shell_set_take_focus (GtkMenuShell *menu_shell, | |
19537 | gboolean take_focus); | |
19538 | ||
19539 | ||
19540 | # 34 "gtkmenu.h" 2 | |
19541 | ||
19542 | ||
19543 | ||
19544 | # 46 "gtkmenu.h" | |
19545 | typedef struct _GtkMenu GtkMenu; | |
19546 | typedef struct _GtkMenuClass GtkMenuClass; | |
19547 | ||
19548 | typedef void (*GtkMenuPositionFunc) (GtkMenu *menu, | |
19549 | gint *x, | |
19550 | gint *y, | |
19551 | gboolean *push_in, | |
19552 | gpointer user_data); | |
19553 | typedef void (*GtkMenuDetachFunc) (GtkWidget *attach_widget, | |
19554 | GtkMenu *menu); | |
19555 | ||
19556 | struct _GtkMenu | |
19557 | { | |
19558 | GtkMenuShell menu_shell; | |
19559 | ||
19560 | GtkWidget *parent_menu_item; | |
19561 | GtkWidget *old_active_menu_item; | |
19562 | ||
19563 | GtkAccelGroup *accel_group; | |
19564 | gchar *accel_path; | |
19565 | GtkMenuPositionFunc position_func; | |
19566 | gpointer position_func_data; | |
19567 | ||
19568 | guint toggle_size; | |
19569 | ||
19570 | ||
19571 | ||
19572 | ||
19573 | GtkWidget *toplevel; | |
19574 | ||
19575 | GtkWidget *tearoff_window; | |
19576 | GtkWidget *tearoff_hbox; | |
19577 | GtkWidget *tearoff_scrollbar; | |
19578 | GtkAdjustment *tearoff_adjustment; | |
19579 | ||
19580 | GdkWindow *view_window; | |
19581 | GdkWindow *bin_window; | |
19582 | ||
19583 | gint scroll_offset; | |
19584 | gint saved_scroll_offset; | |
19585 | gint scroll_step; | |
19586 | guint timeout_id; | |
19587 | ||
19588 | ||
19589 | ||
19590 | ||
19591 | GdkRegion *navigation_region; | |
19592 | guint navigation_timeout; | |
19593 | ||
19594 | guint needs_destruction_ref_count : 1; | |
19595 | guint torn_off : 1; | |
19596 | ||
19597 | ||
19598 | ||
19599 | guint tearoff_active : 1; | |
19600 | ||
19601 | guint scroll_fast : 1; | |
19602 | ||
19603 | guint upper_arrow_visible : 1; | |
19604 | guint lower_arrow_visible : 1; | |
19605 | guint upper_arrow_prelight : 1; | |
19606 | guint lower_arrow_prelight : 1; | |
19607 | }; | |
19608 | ||
19609 | struct _GtkMenuClass | |
19610 | { | |
19611 | GtkMenuShellClass parent_class; | |
19612 | ||
19613 | ||
19614 | void (*_gtk_reserved1) (void); | |
19615 | void (*_gtk_reserved2) (void); | |
19616 | void (*_gtk_reserved3) (void); | |
19617 | void (*_gtk_reserved4) (void); | |
19618 | }; | |
19619 | ||
19620 | ||
19621 | GType gtk_menu_get_type (void) __attribute__((__const__)); | |
19622 | GtkWidget* gtk_menu_new (void); | |
19623 | ||
19624 | ||
19625 | void gtk_menu_popup (GtkMenu *menu, | |
19626 | GtkWidget *parent_menu_shell, | |
19627 | GtkWidget *parent_menu_item, | |
19628 | GtkMenuPositionFunc func, | |
19629 | gpointer data, | |
19630 | guint button, | |
19631 | guint32 activate_time); | |
19632 | ||
19633 | ||
19634 | ||
19635 | ||
19636 | void gtk_menu_reposition (GtkMenu *menu); | |
19637 | ||
19638 | void gtk_menu_popdown (GtkMenu *menu); | |
19639 | ||
19640 | ||
19641 | ||
19642 | ||
19643 | GtkWidget* gtk_menu_get_active (GtkMenu *menu); | |
19644 | void gtk_menu_set_active (GtkMenu *menu, | |
19645 | guint index_); | |
19646 | ||
19647 | ||
19648 | ||
19649 | ||
19650 | void gtk_menu_set_accel_group (GtkMenu *menu, | |
19651 | GtkAccelGroup *accel_group); | |
19652 | GtkAccelGroup* gtk_menu_get_accel_group (GtkMenu *menu); | |
19653 | void gtk_menu_set_accel_path (GtkMenu *menu, | |
19654 | const gchar *accel_path); | |
19655 | ||
19656 | ||
19657 | ||
19658 | ||
19659 | ||
19660 | void gtk_menu_attach_to_widget (GtkMenu *menu, | |
19661 | GtkWidget *attach_widget, | |
19662 | GtkMenuDetachFunc detacher); | |
19663 | void gtk_menu_detach (GtkMenu *menu); | |
19664 | ||
19665 | ||
19666 | ||
19667 | ||
19668 | ||
19669 | GtkWidget* gtk_menu_get_attach_widget (GtkMenu *menu); | |
19670 | ||
19671 | void gtk_menu_set_tearoff_state (GtkMenu *menu, | |
19672 | gboolean torn_off); | |
19673 | gboolean gtk_menu_get_tearoff_state (GtkMenu *menu); | |
19674 | ||
19675 | ||
19676 | ||
19677 | ||
19678 | void gtk_menu_set_title (GtkMenu *menu, | |
19679 | const gchar *title); | |
19680 | const gchar *gtk_menu_get_title (GtkMenu *menu); | |
19681 | ||
19682 | void gtk_menu_reorder_child (GtkMenu *menu, | |
19683 | GtkWidget *child, | |
19684 | gint position); | |
19685 | ||
19686 | void gtk_menu_set_screen (GtkMenu *menu, | |
19687 | GdkScreen *screen); | |
19688 | ||
19689 | void gtk_menu_attach (GtkMenu *menu, | |
19690 | GtkWidget *child, | |
19691 | guint left_attach, | |
19692 | guint right_attach, | |
19693 | guint top_attach, | |
19694 | guint bottom_attach); | |
19695 | ||
19696 | void gtk_menu_set_monitor (GtkMenu *menu, | |
19697 | gint monitor_num); | |
19698 | GList* gtk_menu_get_for_attach_widget (GtkWidget *widget); | |
19699 | ||
19700 | ||
19701 | ||
19702 | ||
19703 | ||
19704 | ||
19705 | ||
19706 | ||
19707 | # 33 "gtknotebook.c" 2 | |
19708 | # 1 "gtkmenuitem.h" 1 | |
19709 | # 32 "gtkmenuitem.h" | |
19710 | # 1 "../gtk/gtkitem.h" 1 | |
19711 | # 32 "../gtk/gtkitem.h" | |
19712 | # 1 "../gtk/gtkbin.h" 1 | |
19713 | # 35 "../gtk/gtkbin.h" | |
19714 | ||
19715 | # 45 "../gtk/gtkbin.h" | |
19716 | typedef struct _GtkBin GtkBin; | |
19717 | typedef struct _GtkBinClass GtkBinClass; | |
19718 | ||
19719 | struct _GtkBin | |
19720 | { | |
19721 | GtkContainer container; | |
19722 | ||
19723 | GtkWidget *child; | |
19724 | }; | |
19725 | ||
19726 | struct _GtkBinClass | |
19727 | { | |
19728 | GtkContainerClass parent_class; | |
19729 | }; | |
19730 | ||
19731 | ||
19732 | GType gtk_bin_get_type (void) __attribute__((__const__)); | |
19733 | ||
19734 | GtkWidget *gtk_bin_get_child (GtkBin *bin); | |
19735 | ||
19736 | ||
19737 | # 33 "../gtk/gtkitem.h" 2 | |
19738 | ||
19739 | ||
19740 | ||
19741 | # 45 "../gtk/gtkitem.h" | |
19742 | typedef struct _GtkItem GtkItem; | |
19743 | typedef struct _GtkItemClass GtkItemClass; | |
19744 | ||
19745 | struct _GtkItem | |
19746 | { | |
19747 | GtkBin bin; | |
19748 | }; | |
19749 | ||
19750 | struct _GtkItemClass | |
19751 | { | |
19752 | GtkBinClass parent_class; | |
19753 | ||
19754 | void (* select) (GtkItem *item); | |
19755 | void (* deselect) (GtkItem *item); | |
19756 | void (* toggle) (GtkItem *item); | |
19757 | ||
19758 | ||
19759 | void (*_gtk_reserved1) (void); | |
19760 | void (*_gtk_reserved2) (void); | |
19761 | void (*_gtk_reserved3) (void); | |
19762 | void (*_gtk_reserved4) (void); | |
19763 | }; | |
19764 | ||
19765 | ||
19766 | GType gtk_item_get_type (void) __attribute__((__const__)); | |
19767 | void gtk_item_select (GtkItem *item); | |
19768 | void gtk_item_deselect (GtkItem *item); | |
19769 | void gtk_item_toggle (GtkItem *item); | |
19770 | ||
19771 | ||
19772 | # 33 "gtkmenuitem.h" 2 | |
19773 | ||
19774 | ||
19775 | ||
19776 | # 45 "gtkmenuitem.h" | |
19777 | typedef struct _GtkMenuItem GtkMenuItem; | |
19778 | typedef struct _GtkMenuItemClass GtkMenuItemClass; | |
19779 | ||
19780 | struct _GtkMenuItem | |
19781 | { | |
19782 | GtkItem item; | |
19783 | ||
19784 | GtkWidget *submenu; | |
19785 | GdkWindow *event_window; | |
19786 | ||
19787 | guint16 toggle_size; | |
19788 | guint16 accelerator_width; | |
19789 | gchar *accel_path; | |
19790 | ||
19791 | guint show_submenu_indicator : 1; | |
19792 | guint submenu_placement : 1; | |
19793 | guint submenu_direction : 1; | |
19794 | guint right_justify: 1; | |
19795 | guint timer_from_keypress : 1; | |
19796 | guint from_menubar : 1; | |
19797 | guint timer; | |
19798 | }; | |
19799 | ||
19800 | struct _GtkMenuItemClass | |
19801 | { | |
19802 | GtkItemClass parent_class; | |
19803 | ||
19804 | ||
19805 | ||
19806 | ||
19807 | ||
19808 | ||
19809 | ||
19810 | guint hide_on_activate : 1; | |
19811 | ||
19812 | void (* activate) (GtkMenuItem *menu_item); | |
19813 | void (* activate_item) (GtkMenuItem *menu_item); | |
19814 | void (* toggle_size_request) (GtkMenuItem *menu_item, | |
19815 | gint *requisition); | |
19816 | void (* toggle_size_allocate) (GtkMenuItem *menu_item, | |
19817 | gint allocation); | |
19818 | ||
19819 | ||
19820 | void (*_gtk_reserved1) (void); | |
19821 | void (*_gtk_reserved2) (void); | |
19822 | void (*_gtk_reserved3) (void); | |
19823 | void (*_gtk_reserved4) (void); | |
19824 | }; | |
19825 | ||
19826 | ||
19827 | GType gtk_menu_item_get_type (void) __attribute__((__const__)); | |
19828 | GtkWidget* gtk_menu_item_new (void); | |
19829 | GtkWidget* gtk_menu_item_new_with_label (const gchar *label); | |
19830 | GtkWidget* gtk_menu_item_new_with_mnemonic (const gchar *label); | |
19831 | void gtk_menu_item_set_submenu (GtkMenuItem *menu_item, | |
19832 | GtkWidget *submenu); | |
19833 | GtkWidget* gtk_menu_item_get_submenu (GtkMenuItem *menu_item); | |
19834 | void gtk_menu_item_select (GtkMenuItem *menu_item); | |
19835 | void gtk_menu_item_deselect (GtkMenuItem *menu_item); | |
19836 | void gtk_menu_item_activate (GtkMenuItem *menu_item); | |
19837 | void gtk_menu_item_toggle_size_request (GtkMenuItem *menu_item, | |
19838 | gint *requisition); | |
19839 | void gtk_menu_item_toggle_size_allocate (GtkMenuItem *menu_item, | |
19840 | gint allocation); | |
19841 | void gtk_menu_item_set_right_justified (GtkMenuItem *menu_item, | |
19842 | gboolean right_justified); | |
19843 | gboolean gtk_menu_item_get_right_justified (GtkMenuItem *menu_item); | |
19844 | void gtk_menu_item_set_accel_path (GtkMenuItem *menu_item, | |
19845 | const gchar *accel_path); | |
19846 | ||
19847 | ||
19848 | void _gtk_menu_item_refresh_accel_path (GtkMenuItem *menu_item, | |
19849 | const gchar *prefix, | |
19850 | GtkAccelGroup *accel_group, | |
19851 | gboolean group_changed); | |
19852 | gboolean _gtk_menu_item_is_selectable (GtkWidget *menu_item); | |
19853 | void _gtk_menu_item_popup_submenu (GtkWidget *menu_item, | |
19854 | gboolean with_delay); | |
19855 | void _gtk_menu_item_popdown_submenu (GtkWidget *menu_item); | |
19856 | ||
19857 | ||
19858 | void gtk_menu_item_remove_submenu (GtkMenuItem *menu_item); | |
19859 | ||
19860 | ||
19861 | ||
19862 | ||
19863 | # 34 "gtknotebook.c" 2 | |
19864 | # 1 "gtklabel.h" 1 | |
19865 | # 31 "gtklabel.h" | |
19866 | # 1 "../gtk/gtkmisc.h" 1 | |
19867 | # 35 "../gtk/gtkmisc.h" | |
19868 | ||
19869 | # 45 "../gtk/gtkmisc.h" | |
19870 | typedef struct _GtkMisc GtkMisc; | |
19871 | typedef struct _GtkMiscClass GtkMiscClass; | |
19872 | ||
19873 | struct _GtkMisc | |
19874 | { | |
19875 | GtkWidget widget; | |
19876 | ||
19877 | gfloat xalign; | |
19878 | gfloat yalign; | |
19879 | ||
19880 | guint16 xpad; | |
19881 | guint16 ypad; | |
19882 | }; | |
19883 | ||
19884 | struct _GtkMiscClass | |
19885 | { | |
19886 | GtkWidgetClass parent_class; | |
19887 | }; | |
19888 | ||
19889 | ||
19890 | GType gtk_misc_get_type (void) __attribute__((__const__)); | |
19891 | void gtk_misc_set_alignment (GtkMisc *misc, | |
19892 | gfloat xalign, | |
19893 | gfloat yalign); | |
19894 | void gtk_misc_get_alignment (GtkMisc *misc, | |
19895 | gfloat *xalign, | |
19896 | gfloat *yalign); | |
19897 | void gtk_misc_set_padding (GtkMisc *misc, | |
19898 | gint xpad, | |
19899 | gint ypad); | |
19900 | void gtk_misc_get_padding (GtkMisc *misc, | |
19901 | gint *xpad, | |
19902 | gint *ypad); | |
19903 | ||
19904 | ||
19905 | ||
19906 | # 32 "gtklabel.h" 2 | |
19907 | # 1 "../gtk/gtkwindow.h" 1 | |
19908 | # 37 "../gtk/gtkwindow.h" | |
19909 | ||
19910 | # 47 "../gtk/gtkwindow.h" | |
19911 | typedef struct _GtkWindowClass GtkWindowClass; | |
19912 | typedef struct _GtkWindowGeometryInfo GtkWindowGeometryInfo; | |
19913 | typedef struct _GtkWindowGroup GtkWindowGroup; | |
19914 | typedef struct _GtkWindowGroupClass GtkWindowGroupClass; | |
19915 | ||
19916 | struct _GtkWindow | |
19917 | { | |
19918 | GtkBin bin; | |
19919 | ||
19920 | gchar *title; | |
19921 | gchar *wmclass_name; | |
19922 | gchar *wmclass_class; | |
19923 | gchar *wm_role; | |
19924 | ||
19925 | GtkWidget *focus_widget; | |
19926 | GtkWidget *default_widget; | |
19927 | GtkWindow *transient_parent; | |
19928 | GtkWindowGeometryInfo *geometry_info; | |
19929 | GdkWindow *frame; | |
19930 | GtkWindowGroup *group; | |
19931 | ||
19932 | guint16 configure_request_count; | |
19933 | guint allow_shrink : 1; | |
19934 | guint allow_grow : 1; | |
19935 | guint configure_notify_received : 1; | |
19936 | ||
19937 | ||
19938 | ||
19939 | ||
19940 | ||
19941 | ||
19942 | guint need_default_position : 1; | |
19943 | guint need_default_size : 1; | |
19944 | guint position : 3; | |
19945 | guint type : 4; | |
19946 | guint has_user_ref_count : 1; | |
19947 | guint has_focus : 1; | |
19948 | ||
19949 | guint modal : 1; | |
19950 | guint destroy_with_parent : 1; | |
19951 | ||
19952 | guint has_frame : 1; | |
19953 | ||
19954 | ||
19955 | guint iconify_initially : 1; | |
19956 | guint stick_initially : 1; | |
19957 | guint maximize_initially : 1; | |
19958 | guint decorated : 1; | |
19959 | ||
19960 | guint type_hint : 3; | |
19961 | ||
19962 | ||
19963 | guint gravity : 5; | |
19964 | ||
19965 | guint is_active : 1; | |
19966 | guint has_toplevel_focus : 1; | |
19967 | ||
19968 | guint frame_left; | |
19969 | guint frame_top; | |
19970 | guint frame_right; | |
19971 | guint frame_bottom; | |
19972 | ||
19973 | guint keys_changed_handler; | |
19974 | ||
19975 | GdkModifierType mnemonic_modifier; | |
19976 | GdkScreen *screen; | |
19977 | }; | |
19978 | ||
19979 | struct _GtkWindowClass | |
19980 | { | |
19981 | GtkBinClass parent_class; | |
19982 | ||
19983 | void (* set_focus) (GtkWindow *window, | |
19984 | GtkWidget *focus); | |
19985 | gboolean (* frame_event) (GtkWindow *window, | |
19986 | GdkEvent *event); | |
19987 | ||
19988 | ||
19989 | ||
19990 | void (* activate_focus) (GtkWindow *window); | |
19991 | void (* activate_default) (GtkWindow *window); | |
19992 | ||
19993 | ||
19994 | ||
19995 | ||
19996 | ||
19997 | void (* move_focus) (GtkWindow *window, | |
19998 | GtkDirectionType direction); | |
19999 | ||
20000 | void (*keys_changed) (GtkWindow *window); | |
20001 | ||
20002 | ||
20003 | void (*_gtk_reserved1) (void); | |
20004 | void (*_gtk_reserved2) (void); | |
20005 | void (*_gtk_reserved3) (void); | |
20006 | void (*_gtk_reserved4) (void); | |
20007 | }; | |
20008 | # 152 "../gtk/gtkwindow.h" | |
20009 | struct _GtkWindowGroup | |
20010 | { | |
20011 | GObject parent_instance; | |
20012 | ||
20013 | GSList *grabs; | |
20014 | }; | |
20015 | ||
20016 | struct _GtkWindowGroupClass | |
20017 | { | |
20018 | GObjectClass parent_class; | |
20019 | ||
20020 | ||
20021 | void (*_gtk_reserved1) (void); | |
20022 | void (*_gtk_reserved2) (void); | |
20023 | void (*_gtk_reserved3) (void); | |
20024 | void (*_gtk_reserved4) (void); | |
20025 | }; | |
20026 | ||
20027 | ||
20028 | ||
20029 | ||
20030 | ||
20031 | ||
20032 | ||
20033 | GType gtk_window_get_type (void) __attribute__((__const__)); | |
20034 | GtkWidget* gtk_window_new (GtkWindowType type); | |
20035 | void gtk_window_set_title (GtkWindow *window, | |
20036 | const gchar *title); | |
20037 | const gchar *gtk_window_get_title (GtkWindow *window); | |
20038 | void gtk_window_set_wmclass (GtkWindow *window, | |
20039 | const gchar *wmclass_name, | |
20040 | const gchar *wmclass_class); | |
20041 | void gtk_window_set_role (GtkWindow *window, | |
20042 | const gchar *role); | |
20043 | void gtk_window_set_startup_id (GtkWindow *window, | |
20044 | const gchar *startup_id); | |
20045 | const gchar *gtk_window_get_role (GtkWindow *window); | |
20046 | void gtk_window_add_accel_group (GtkWindow *window, | |
20047 | GtkAccelGroup *accel_group); | |
20048 | void gtk_window_remove_accel_group (GtkWindow *window, | |
20049 | GtkAccelGroup *accel_group); | |
20050 | void gtk_window_set_position (GtkWindow *window, | |
20051 | GtkWindowPosition position); | |
20052 | gboolean gtk_window_activate_focus (GtkWindow *window); | |
20053 | void gtk_window_set_focus (GtkWindow *window, | |
20054 | GtkWidget *focus); | |
20055 | GtkWidget *gtk_window_get_focus (GtkWindow *window); | |
20056 | void gtk_window_set_default (GtkWindow *window, | |
20057 | GtkWidget *default_widget); | |
20058 | gboolean gtk_window_activate_default (GtkWindow *window); | |
20059 | ||
20060 | void gtk_window_set_transient_for (GtkWindow *window, | |
20061 | GtkWindow *parent); | |
20062 | GtkWindow *gtk_window_get_transient_for (GtkWindow *window); | |
20063 | void gtk_window_set_opacity (GtkWindow *window, | |
20064 | gdouble opacity); | |
20065 | gdouble gtk_window_get_opacity (GtkWindow *window); | |
20066 | void gtk_window_set_type_hint (GtkWindow *window, | |
20067 | GdkWindowTypeHint hint); | |
20068 | GdkWindowTypeHint gtk_window_get_type_hint (GtkWindow *window); | |
20069 | void gtk_window_set_skip_taskbar_hint (GtkWindow *window, | |
20070 | gboolean setting); | |
20071 | gboolean gtk_window_get_skip_taskbar_hint (GtkWindow *window); | |
20072 | void gtk_window_set_skip_pager_hint (GtkWindow *window, | |
20073 | gboolean setting); | |
20074 | gboolean gtk_window_get_skip_pager_hint (GtkWindow *window); | |
20075 | void gtk_window_set_urgency_hint (GtkWindow *window, | |
20076 | gboolean setting); | |
20077 | gboolean gtk_window_get_urgency_hint (GtkWindow *window); | |
20078 | void gtk_window_set_accept_focus (GtkWindow *window, | |
20079 | gboolean setting); | |
20080 | gboolean gtk_window_get_accept_focus (GtkWindow *window); | |
20081 | void gtk_window_set_focus_on_map (GtkWindow *window, | |
20082 | gboolean setting); | |
20083 | gboolean gtk_window_get_focus_on_map (GtkWindow *window); | |
20084 | void gtk_window_set_destroy_with_parent (GtkWindow *window, | |
20085 | gboolean setting); | |
20086 | gboolean gtk_window_get_destroy_with_parent (GtkWindow *window); | |
20087 | ||
20088 | void gtk_window_set_resizable (GtkWindow *window, | |
20089 | gboolean resizable); | |
20090 | gboolean gtk_window_get_resizable (GtkWindow *window); | |
20091 | ||
20092 | void gtk_window_set_gravity (GtkWindow *window, | |
20093 | GdkGravity gravity); | |
20094 | GdkGravity gtk_window_get_gravity (GtkWindow *window); | |
20095 | ||
20096 | ||
20097 | void gtk_window_set_geometry_hints (GtkWindow *window, | |
20098 | GtkWidget *geometry_widget, | |
20099 | GdkGeometry *geometry, | |
20100 | GdkWindowHints geom_mask); | |
20101 | ||
20102 | void gtk_window_set_screen (GtkWindow *window, | |
20103 | GdkScreen *screen); | |
20104 | GdkScreen* gtk_window_get_screen (GtkWindow *window); | |
20105 | ||
20106 | gboolean gtk_window_is_active (GtkWindow *window); | |
20107 | gboolean gtk_window_has_toplevel_focus (GtkWindow *window); | |
20108 | ||
20109 | ||
20110 | ||
20111 | ||
20112 | void gtk_window_set_has_frame (GtkWindow *window, | |
20113 | gboolean setting); | |
20114 | gboolean gtk_window_get_has_frame (GtkWindow *window); | |
20115 | void gtk_window_set_frame_dimensions (GtkWindow *window, | |
20116 | gint left, | |
20117 | gint top, | |
20118 | gint right, | |
20119 | gint bottom); | |
20120 | void gtk_window_get_frame_dimensions (GtkWindow *window, | |
20121 | gint *left, | |
20122 | gint *top, | |
20123 | gint *right, | |
20124 | gint *bottom); | |
20125 | void gtk_window_set_decorated (GtkWindow *window, | |
20126 | gboolean setting); | |
20127 | gboolean gtk_window_get_decorated (GtkWindow *window); | |
20128 | void gtk_window_set_deletable (GtkWindow *window, | |
20129 | gboolean setting); | |
20130 | gboolean gtk_window_get_deletable (GtkWindow *window); | |
20131 | ||
20132 | void gtk_window_set_icon_list (GtkWindow *window, | |
20133 | GList *list); | |
20134 | GList* gtk_window_get_icon_list (GtkWindow *window); | |
20135 | void gtk_window_set_icon (GtkWindow *window, | |
20136 | GdkPixbuf *icon); | |
20137 | void gtk_window_set_icon_name (GtkWindow *window, | |
20138 | const gchar *name); | |
20139 | gboolean gtk_window_set_icon_from_file (GtkWindow *window, | |
20140 | const gchar *filename, | |
20141 | GError **err); | |
20142 | GdkPixbuf* gtk_window_get_icon (GtkWindow *window); | |
20143 | const | |
20144 | gchar *gtk_window_get_icon_name (GtkWindow *window); | |
20145 | void gtk_window_set_default_icon_list (GList *list); | |
20146 | GList* gtk_window_get_default_icon_list (void); | |
20147 | void gtk_window_set_default_icon (GdkPixbuf *icon); | |
20148 | void gtk_window_set_default_icon_name (const gchar *name); | |
20149 | gboolean gtk_window_set_default_icon_from_file (const gchar *filename, | |
20150 | GError **err); | |
20151 | ||
20152 | void gtk_window_set_auto_startup_notification (gboolean setting); | |
20153 | ||
20154 | ||
20155 | void gtk_window_set_modal (GtkWindow *window, | |
20156 | gboolean modal); | |
20157 | gboolean gtk_window_get_modal (GtkWindow *window); | |
20158 | GList* gtk_window_list_toplevels (void); | |
20159 | ||
20160 | void gtk_window_add_mnemonic (GtkWindow *window, | |
20161 | guint keyval, | |
20162 | GtkWidget *target); | |
20163 | void gtk_window_remove_mnemonic (GtkWindow *window, | |
20164 | guint keyval, | |
20165 | GtkWidget *target); | |
20166 | gboolean gtk_window_mnemonic_activate (GtkWindow *window, | |
20167 | guint keyval, | |
20168 | GdkModifierType modifier); | |
20169 | void gtk_window_set_mnemonic_modifier (GtkWindow *window, | |
20170 | GdkModifierType modifier); | |
20171 | GdkModifierType gtk_window_get_mnemonic_modifier (GtkWindow *window); | |
20172 | ||
20173 | gboolean gtk_window_activate_key (GtkWindow *window, | |
20174 | GdkEventKey *event); | |
20175 | gboolean gtk_window_propagate_key_event (GtkWindow *window, | |
20176 | GdkEventKey *event); | |
20177 | ||
20178 | void gtk_window_present (GtkWindow *window); | |
20179 | void gtk_window_present_with_time (GtkWindow *window, | |
20180 | guint32 timestamp); | |
20181 | void gtk_window_iconify (GtkWindow *window); | |
20182 | void gtk_window_deiconify (GtkWindow *window); | |
20183 | void gtk_window_stick (GtkWindow *window); | |
20184 | void gtk_window_unstick (GtkWindow *window); | |
20185 | void gtk_window_maximize (GtkWindow *window); | |
20186 | void gtk_window_unmaximize (GtkWindow *window); | |
20187 | void gtk_window_fullscreen (GtkWindow *window); | |
20188 | void gtk_window_unfullscreen (GtkWindow *window); | |
20189 | void gtk_window_set_keep_above (GtkWindow *window, gboolean setting); | |
20190 | void gtk_window_set_keep_below (GtkWindow *window, gboolean setting); | |
20191 | ||
20192 | void gtk_window_begin_resize_drag (GtkWindow *window, | |
20193 | GdkWindowEdge edge, | |
20194 | gint button, | |
20195 | gint root_x, | |
20196 | gint root_y, | |
20197 | guint32 timestamp); | |
20198 | void gtk_window_begin_move_drag (GtkWindow *window, | |
20199 | gint button, | |
20200 | gint root_x, | |
20201 | gint root_y, | |
20202 | guint32 timestamp); | |
20203 | ||
20204 | ||
20205 | void gtk_window_set_policy (GtkWindow *window, | |
20206 | gint allow_shrink, | |
20207 | gint allow_grow, | |
20208 | gint auto_shrink); | |
20209 | ||
20210 | ||
20211 | ||
20212 | ||
20213 | ||
20214 | ||
20215 | void gtk_window_set_default_size (GtkWindow *window, | |
20216 | gint width, | |
20217 | gint height); | |
20218 | void gtk_window_get_default_size (GtkWindow *window, | |
20219 | gint *width, | |
20220 | gint *height); | |
20221 | void gtk_window_resize (GtkWindow *window, | |
20222 | gint width, | |
20223 | gint height); | |
20224 | void gtk_window_get_size (GtkWindow *window, | |
20225 | gint *width, | |
20226 | gint *height); | |
20227 | void gtk_window_move (GtkWindow *window, | |
20228 | gint x, | |
20229 | gint y); | |
20230 | void gtk_window_get_position (GtkWindow *window, | |
20231 | gint *root_x, | |
20232 | gint *root_y); | |
20233 | gboolean gtk_window_parse_geometry (GtkWindow *window, | |
20234 | const gchar *geometry); | |
20235 | GtkWindowGroup *gtk_window_get_group (GtkWindow *window); | |
20236 | ||
20237 | ||
20238 | void gtk_window_reshow_with_initial_size (GtkWindow *window); | |
20239 | ||
20240 | ||
20241 | ||
20242 | GType gtk_window_group_get_type (void) __attribute__((__const__)); | |
20243 | ||
20244 | GtkWindowGroup * gtk_window_group_new (void); | |
20245 | void gtk_window_group_add_window (GtkWindowGroup *window_group, | |
20246 | GtkWindow *window); | |
20247 | void gtk_window_group_remove_window (GtkWindowGroup *window_group, | |
20248 | GtkWindow *window); | |
20249 | ||
20250 | ||
20251 | void _gtk_window_internal_set_focus (GtkWindow *window, | |
20252 | GtkWidget *focus); | |
20253 | void gtk_window_remove_embedded_xid (GtkWindow *window, | |
20254 | guint xid); | |
20255 | void gtk_window_add_embedded_xid (GtkWindow *window, | |
20256 | guint xid); | |
20257 | void _gtk_window_reposition (GtkWindow *window, | |
20258 | gint x, | |
20259 | gint y); | |
20260 | void _gtk_window_constrain_size (GtkWindow *window, | |
20261 | gint width, | |
20262 | gint height, | |
20263 | gint *new_width, | |
20264 | gint *new_height); | |
20265 | GtkWidget *_gtk_window_group_get_current_grab (GtkWindowGroup *window_group); | |
20266 | ||
20267 | void _gtk_window_set_has_toplevel_focus (GtkWindow *window, | |
20268 | gboolean has_toplevel_focus); | |
20269 | void _gtk_window_unset_focus_and_default (GtkWindow *window, | |
20270 | GtkWidget *widget); | |
20271 | ||
20272 | void _gtk_window_set_is_active (GtkWindow *window, | |
20273 | gboolean is_active); | |
20274 | ||
20275 | typedef void (*GtkWindowKeysForeachFunc) (GtkWindow *window, | |
20276 | guint keyval, | |
20277 | GdkModifierType modifiers, | |
20278 | gboolean is_mnemonic, | |
20279 | gpointer data); | |
20280 | ||
20281 | void _gtk_window_keys_foreach (GtkWindow *window, | |
20282 | GtkWindowKeysForeachFunc func, | |
20283 | gpointer func_data); | |
20284 | ||
20285 | ||
20286 | gboolean _gtk_window_query_nonaccels (GtkWindow *window, | |
20287 | guint accel_key, | |
20288 | GdkModifierType accel_mods); | |
20289 | ||
20290 | ||
20291 | # 33 "gtklabel.h" 2 | |
20292 | # 1 "../gtk/gtkmenu.h" 1 | |
20293 | # 34 "gtklabel.h" 2 | |
20294 | ||
20295 | ||
20296 | # 45 "gtklabel.h" | |
20297 | typedef struct _GtkLabel GtkLabel; | |
20298 | typedef struct _GtkLabelClass GtkLabelClass; | |
20299 | ||
20300 | typedef struct _GtkLabelSelectionInfo GtkLabelSelectionInfo; | |
20301 | ||
20302 | struct _GtkLabel | |
20303 | { | |
20304 | GtkMisc misc; | |
20305 | ||
20306 | ||
20307 | gchar *label; | |
20308 | guint jtype : 2; | |
20309 | guint wrap : 1; | |
20310 | guint use_underline : 1; | |
20311 | guint use_markup : 1; | |
20312 | guint ellipsize : 3; | |
20313 | guint single_line_mode : 1; | |
20314 | guint have_transform : 1; | |
20315 | guint in_click : 1; | |
20316 | guint wrap_mode : 3; | |
20317 | guint pattern_set : 1; | |
20318 | ||
20319 | guint mnemonic_keyval; | |
20320 | ||
20321 | gchar *text; | |
20322 | PangoAttrList *attrs; | |
20323 | PangoAttrList *effective_attrs; | |
20324 | ||
20325 | PangoLayout *layout; | |
20326 | ||
20327 | GtkWidget *mnemonic_widget; | |
20328 | GtkWindow *mnemonic_window; | |
20329 | ||
20330 | GtkLabelSelectionInfo *select_info; | |
20331 | }; | |
20332 | ||
20333 | struct _GtkLabelClass | |
20334 | { | |
20335 | GtkMiscClass parent_class; | |
20336 | ||
20337 | void (* move_cursor) (GtkLabel *label, | |
20338 | GtkMovementStep step, | |
20339 | gint count, | |
20340 | gboolean extend_selection); | |
20341 | void (* copy_clipboard) (GtkLabel *label); | |
20342 | ||
20343 | ||
20344 | void (* populate_popup) (GtkLabel *label, | |
20345 | GtkMenu *menu); | |
20346 | ||
20347 | ||
20348 | void (*_gtk_reserved1) (void); | |
20349 | void (*_gtk_reserved2) (void); | |
20350 | void (*_gtk_reserved3) (void); | |
20351 | void (*_gtk_reserved4) (void); | |
20352 | }; | |
20353 | ||
20354 | GType gtk_label_get_type (void) __attribute__((__const__)); | |
20355 | GtkWidget* gtk_label_new (const gchar *str); | |
20356 | GtkWidget* gtk_label_new_with_mnemonic (const gchar *str); | |
20357 | void gtk_label_set_text (GtkLabel *label, | |
20358 | const gchar *str); | |
20359 | const gchar* gtk_label_get_text (GtkLabel *label); | |
20360 | void gtk_label_set_attributes (GtkLabel *label, | |
20361 | PangoAttrList *attrs); | |
20362 | PangoAttrList *gtk_label_get_attributes (GtkLabel *label); | |
20363 | void gtk_label_set_label (GtkLabel *label, | |
20364 | const gchar *str); | |
20365 | const gchar *gtk_label_get_label (GtkLabel *label); | |
20366 | void gtk_label_set_markup (GtkLabel *label, | |
20367 | const gchar *str); | |
20368 | void gtk_label_set_use_markup (GtkLabel *label, | |
20369 | gboolean setting); | |
20370 | gboolean gtk_label_get_use_markup (GtkLabel *label); | |
20371 | void gtk_label_set_use_underline (GtkLabel *label, | |
20372 | gboolean setting); | |
20373 | gboolean gtk_label_get_use_underline (GtkLabel *label); | |
20374 | ||
20375 | void gtk_label_set_markup_with_mnemonic (GtkLabel *label, | |
20376 | const gchar *str); | |
20377 | guint gtk_label_get_mnemonic_keyval (GtkLabel *label); | |
20378 | void gtk_label_set_mnemonic_widget (GtkLabel *label, | |
20379 | GtkWidget *widget); | |
20380 | GtkWidget *gtk_label_get_mnemonic_widget (GtkLabel *label); | |
20381 | void gtk_label_set_text_with_mnemonic (GtkLabel *label, | |
20382 | const gchar *str); | |
20383 | void gtk_label_set_justify (GtkLabel *label, | |
20384 | GtkJustification jtype); | |
20385 | GtkJustification gtk_label_get_justify (GtkLabel *label); | |
20386 | void gtk_label_set_ellipsize (GtkLabel *label, | |
20387 | PangoEllipsizeMode mode); | |
20388 | PangoEllipsizeMode gtk_label_get_ellipsize (GtkLabel *label); | |
20389 | void gtk_label_set_width_chars (GtkLabel *label, | |
20390 | gint n_chars); | |
20391 | gint gtk_label_get_width_chars (GtkLabel *label); | |
20392 | void gtk_label_set_max_width_chars (GtkLabel *label, | |
20393 | gint n_chars); | |
20394 | gint gtk_label_get_max_width_chars (GtkLabel *label); | |
20395 | void gtk_label_set_pattern (GtkLabel *label, | |
20396 | const gchar *pattern); | |
20397 | void gtk_label_set_line_wrap (GtkLabel *label, | |
20398 | gboolean wrap); | |
20399 | gboolean gtk_label_get_line_wrap (GtkLabel *label); | |
20400 | void gtk_label_set_line_wrap_mode (GtkLabel *label, | |
20401 | PangoWrapMode wrap_mode); | |
20402 | PangoWrapMode gtk_label_get_line_wrap_mode (GtkLabel *label); | |
20403 | void gtk_label_set_selectable (GtkLabel *label, | |
20404 | gboolean setting); | |
20405 | gboolean gtk_label_get_selectable (GtkLabel *label); | |
20406 | void gtk_label_set_angle (GtkLabel *label, | |
20407 | gdouble angle); | |
20408 | gdouble gtk_label_get_angle (GtkLabel *label); | |
20409 | void gtk_label_select_region (GtkLabel *label, | |
20410 | gint start_offset, | |
20411 | gint end_offset); | |
20412 | gboolean gtk_label_get_selection_bounds (GtkLabel *label, | |
20413 | gint *start, | |
20414 | gint *end); | |
20415 | ||
20416 | PangoLayout *gtk_label_get_layout (GtkLabel *label); | |
20417 | void gtk_label_get_layout_offsets (GtkLabel *label, | |
20418 | gint *x, | |
20419 | gint *y); | |
20420 | ||
20421 | void gtk_label_set_single_line_mode (GtkLabel *label, | |
20422 | gboolean single_line_mode); | |
20423 | gboolean gtk_label_get_single_line_mode (GtkLabel *label); | |
20424 | ||
20425 | ||
20426 | ||
20427 | ||
20428 | void gtk_label_get (GtkLabel *label, | |
20429 | gchar **str); | |
20430 | ||
20431 | ||
20432 | ||
20433 | ||
20434 | ||
20435 | guint gtk_label_parse_uline (GtkLabel *label, | |
20436 | const gchar *string); | |
20437 | ||
20438 | ||
20439 | ||
20440 | ||
20441 | # 35 "gtknotebook.c" 2 | |
20442 | # 1 "../gdk/gdkkeysyms.h" 1 | |
20443 | # 36 "gtknotebook.c" 2 | |
20444 | ||
20445 | # 1 "gtkintl.h" 1 | |
20446 | ||
20447 | ||
20448 | ||
20449 | # 1 "/usr/include/glib-2.0/glib/gi18n-lib.h" 1 | |
20450 | # 24 "/usr/include/glib-2.0/glib/gi18n-lib.h" | |
20451 | # 1 "/usr/include/libintl.h" 1 3 4 | |
20452 | # 35 "/usr/include/libintl.h" 3 4 | |
20453 | ||
20454 | ||
20455 | ||
20456 | ||
20457 | ||
20458 | extern char *gettext (__const char *__msgid) | |
20459 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (1))); | |
20460 | ||
20461 | ||
20462 | ||
20463 | extern char *dgettext (__const char *__domainname, __const char *__msgid) | |
20464 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))); | |
20465 | extern char *__dgettext (__const char *__domainname, __const char *__msgid) | |
20466 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))); | |
20467 | ||
20468 | ||
20469 | ||
20470 | extern char *dcgettext (__const char *__domainname, | |
20471 | __const char *__msgid, int __category) | |
20472 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))); | |
20473 | extern char *__dcgettext (__const char *__domainname, | |
20474 | __const char *__msgid, int __category) | |
20475 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))); | |
20476 | ||
20477 | ||
20478 | ||
20479 | ||
20480 | extern char *ngettext (__const char *__msgid1, __const char *__msgid2, | |
20481 | unsigned long int __n) | |
20482 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (1))) __attribute__ ((__format_arg__ (2))); | |
20483 | ||
20484 | ||
20485 | ||
20486 | extern char *dngettext (__const char *__domainname, __const char *__msgid1, | |
20487 | __const char *__msgid2, unsigned long int __n) | |
20488 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3))); | |
20489 | ||
20490 | ||
20491 | ||
20492 | extern char *dcngettext (__const char *__domainname, __const char *__msgid1, | |
20493 | __const char *__msgid2, unsigned long int __n, | |
20494 | int __category) | |
20495 | __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3))); | |
20496 | ||
20497 | ||
20498 | ||
20499 | ||
20500 | ||
20501 | extern char *textdomain (__const char *__domainname) __attribute__ ((__nothrow__)); | |
20502 | ||
20503 | ||
20504 | ||
20505 | extern char *bindtextdomain (__const char *__domainname, | |
20506 | __const char *__dirname) __attribute__ ((__nothrow__)); | |
20507 | ||
20508 | ||
20509 | ||
20510 | extern char *bind_textdomain_codeset (__const char *__domainname, | |
20511 | __const char *__codeset) __attribute__ ((__nothrow__)); | |
20512 | ||
20513 | ||
20514 | ||
20515 | ||
20516 | ||
20517 | ||
20518 | ||
20519 | # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 1 3 4 | |
20520 | # 102 "/usr/include/libintl.h" 2 3 4 | |
20521 | ||
20522 | ||
20523 | # 1 "/usr/include/locale.h" 1 3 4 | |
20524 | # 29 "/usr/include/locale.h" 3 4 | |
20525 | # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.2.2/include/stddef.h" 1 3 4 | |
20526 | # 30 "/usr/include/locale.h" 2 3 4 | |
20527 | # 1 "/usr/include/bits/locale.h" 1 3 4 | |
20528 | # 27 "/usr/include/bits/locale.h" 3 4 | |
20529 | enum | |
20530 | { | |
20531 | __LC_CTYPE = 0, | |
20532 | __LC_NUMERIC = 1, | |
20533 | __LC_TIME = 2, | |
20534 | __LC_COLLATE = 3, | |
20535 | __LC_MONETARY = 4, | |
20536 | __LC_MESSAGES = 5, | |
20537 | __LC_ALL = 6, | |
20538 | __LC_PAPER = 7, | |
20539 | __LC_NAME = 8, | |
20540 | __LC_ADDRESS = 9, | |
20541 | __LC_TELEPHONE = 10, | |
20542 | __LC_MEASUREMENT = 11, | |
20543 | __LC_IDENTIFICATION = 12 | |
20544 | }; | |
20545 | # 31 "/usr/include/locale.h" 2 3 4 | |
20546 | ||
20547 | ||
20548 | # 51 "/usr/include/locale.h" 3 4 | |
20549 | ||
20550 | ||
20551 | ||
20552 | struct lconv | |
20553 | { | |
20554 | ||
20555 | ||
20556 | char *decimal_point; | |
20557 | char *thousands_sep; | |
20558 | ||
20559 | ||
20560 | ||
20561 | ||
20562 | ||
20563 | char *grouping; | |
20564 | ||
20565 | ||
20566 | ||
20567 | ||
20568 | ||
20569 | char *int_curr_symbol; | |
20570 | char *currency_symbol; | |
20571 | char *mon_decimal_point; | |
20572 | char *mon_thousands_sep; | |
20573 | char *mon_grouping; | |
20574 | char *positive_sign; | |
20575 | char *negative_sign; | |
20576 | char int_frac_digits; | |
20577 | char frac_digits; | |
20578 | ||
20579 | char p_cs_precedes; | |
20580 | ||
20581 | char p_sep_by_space; | |
20582 | ||
20583 | char n_cs_precedes; | |
20584 | ||
20585 | char n_sep_by_space; | |
20586 | ||
20587 | ||
20588 | ||
20589 | ||
20590 | ||
20591 | ||
20592 | char p_sign_posn; | |
20593 | char n_sign_posn; | |
20594 | # 114 "/usr/include/locale.h" 3 4 | |
20595 | char __int_p_cs_precedes; | |
20596 | char __int_p_sep_by_space; | |
20597 | char __int_n_cs_precedes; | |
20598 | char __int_n_sep_by_space; | |
20599 | char __int_p_sign_posn; | |
20600 | char __int_n_sign_posn; | |
20601 | ||
20602 | }; | |
20603 | ||
20604 | ||
20605 | ||
20606 | extern char *setlocale (int __category, __const char *__locale) __attribute__ ((__nothrow__)); | |
20607 | ||
20608 | ||
20609 | extern struct lconv *localeconv (void) __attribute__ ((__nothrow__)); | |
20610 | ||
20611 | ||
20612 | # 208 "/usr/include/locale.h" 3 4 | |
20613 | ||
20614 | # 105 "/usr/include/libintl.h" 2 3 4 | |
20615 | # 122 "/usr/include/libintl.h" 3 4 | |
20616 | ||
20617 | # 25 "/usr/include/glib-2.0/glib/gi18n-lib.h" 2 | |
20618 | # 5 "gtkintl.h" 2 | |
20619 | # 38 "gtknotebook.c" 2 | |
20620 | # 1 "gtkmarshalers.h" 1 | |
20621 | ||
20622 | ||
20623 | ||
20624 | ||
20625 | ||
20626 | ||
20627 | ||
20628 | ||
20629 | ||
20630 | extern void _gtk_marshal_BOOLEAN__BOXED (GClosure *closure, | |
20631 | GValue *return_value, | |
20632 | guint n_param_values, | |
20633 | const GValue *param_values, | |
20634 | gpointer invocation_hint, | |
20635 | gpointer marshal_data); | |
20636 | ||
20637 | ||
20638 | extern void _gtk_marshal_BOOLEAN__BOXED_BOXED (GClosure *closure, | |
20639 | GValue *return_value, | |
20640 | guint n_param_values, | |
20641 | const GValue *param_values, | |
20642 | gpointer invocation_hint, | |
20643 | gpointer marshal_data); | |
20644 | ||
20645 | ||
20646 | extern void _gtk_marshal_BOOLEAN__ENUM (GClosure *closure, | |
20647 | GValue *return_value, | |
20648 | guint n_param_values, | |
20649 | const GValue *param_values, | |
20650 | gpointer invocation_hint, | |
20651 | gpointer marshal_data); | |
20652 | ||
20653 | ||
20654 | extern void _gtk_marshal_BOOLEAN__ENUM_BOOLEAN (GClosure *closure, | |
20655 | GValue *return_value, | |
20656 | guint n_param_values, | |
20657 | const GValue *param_values, | |
20658 | gpointer invocation_hint, | |
20659 | gpointer marshal_data); | |
20660 | ||
20661 | ||
20662 | extern void _gtk_marshal_BOOLEAN__ENUM_DOUBLE (GClosure *closure, | |
20663 | GValue *return_value, | |
20664 | guint n_param_values, | |
20665 | const GValue *param_values, | |
20666 | gpointer invocation_hint, | |
20667 | gpointer marshal_data); | |
20668 | ||
20669 | ||
20670 | extern void _gtk_marshal_BOOLEAN__ENUM_INT (GClosure *closure, | |
20671 | GValue *return_value, | |
20672 | guint n_param_values, | |
20673 | const GValue *param_values, | |
20674 | gpointer invocation_hint, | |
20675 | gpointer marshal_data); | |
20676 | ||
20677 | ||
20678 | extern void _gtk_marshal_BOOLEAN__OBJECT (GClosure *closure, | |
20679 | GValue *return_value, | |
20680 | guint n_param_values, | |
20681 | const GValue *param_values, | |
20682 | gpointer invocation_hint, | |
20683 | gpointer marshal_data); | |
20684 | ||
20685 | ||
20686 | extern void _gtk_marshal_BOOLEAN__OBJECT_UINT_FLAGS (GClosure *closure, | |
20687 | GValue *return_value, | |
20688 | guint n_param_values, | |
20689 | const GValue *param_values, | |
20690 | gpointer invocation_hint, | |
20691 | gpointer marshal_data); | |
20692 | ||
20693 | ||
20694 | extern void _gtk_marshal_BOOLEAN__OBJECT_INT_INT_UINT (GClosure *closure, | |
20695 | GValue *return_value, | |
20696 | guint n_param_values, | |
20697 | const GValue *param_values, | |
20698 | gpointer invocation_hint, | |
20699 | gpointer marshal_data); | |
20700 | ||
20701 | ||
20702 | extern void _gtk_marshal_BOOLEAN__OBJECT_STRING_STRING_BOXED (GClosure *closure, | |
20703 | GValue *return_value, | |
20704 | guint n_param_values, | |
20705 | const GValue *param_values, | |
20706 | gpointer invocation_hint, | |
20707 | gpointer marshal_data); | |
20708 | ||
20709 | ||
20710 | extern void _gtk_marshal_BOOLEAN__OBJECT_BOXED (GClosure *closure, | |
20711 | GValue *return_value, | |
20712 | guint n_param_values, | |
20713 | const GValue *param_values, | |
20714 | gpointer invocation_hint, | |
20715 | gpointer marshal_data); | |
20716 | ||
20717 | ||
20718 | extern void _gtk_marshal_BOOLEAN__OBJECT_BOXED_BOXED (GClosure *closure, | |
20719 | GValue *return_value, | |
20720 | guint n_param_values, | |
20721 | const GValue *param_values, | |
20722 | gpointer invocation_hint, | |
20723 | gpointer marshal_data); | |
20724 | ||
20725 | ||
20726 | extern void _gtk_marshal_BOOLEAN__OBJECT_OBJECT_OBJECT (GClosure *closure, | |
20727 | GValue *return_value, | |
20728 | guint n_param_values, | |
20729 | const GValue *param_values, | |
20730 | gpointer invocation_hint, | |
20731 | gpointer marshal_data); | |
20732 | ||
20733 | ||
20734 | extern void _gtk_marshal_BOOLEAN__OBJECT_STRING_STRING (GClosure *closure, | |
20735 | GValue *return_value, | |
20736 | guint n_param_values, | |
20737 | const GValue *param_values, | |
20738 | gpointer invocation_hint, | |
20739 | gpointer marshal_data); | |
20740 | ||
20741 | ||
20742 | extern void _gtk_marshal_BOOLEAN__OBJECT_ENUM (GClosure *closure, | |
20743 | GValue *return_value, | |
20744 | guint n_param_values, | |
20745 | const GValue *param_values, | |
20746 | gpointer invocation_hint, | |
20747 | gpointer marshal_data); | |
20748 | ||
20749 | ||
20750 | extern void _gtk_marshal_BOOLEAN__INT (GClosure *closure, | |
20751 | GValue *return_value, | |
20752 | guint n_param_values, | |
20753 | const GValue *param_values, | |
20754 | gpointer invocation_hint, | |
20755 | gpointer marshal_data); | |
20756 | ||
20757 | ||
20758 | extern void _gtk_marshal_BOOLEAN__INT_INT (GClosure *closure, | |
20759 | GValue *return_value, | |
20760 | guint n_param_values, | |
20761 | const GValue *param_values, | |
20762 | gpointer invocation_hint, | |
20763 | gpointer marshal_data); | |
20764 | ||
20765 | ||
20766 | extern void _gtk_marshal_BOOLEAN__INT_INT_INT (GClosure *closure, | |
20767 | GValue *return_value, | |
20768 | guint n_param_values, | |
20769 | const GValue *param_values, | |
20770 | gpointer invocation_hint, | |
20771 | gpointer marshal_data); | |
20772 | ||
20773 | ||
20774 | extern void _gtk_marshal_BOOLEAN__INT_INT_BOOLEAN_OBJECT (GClosure *closure, | |
20775 | GValue *return_value, | |
20776 | guint n_param_values, | |
20777 | const GValue *param_values, | |
20778 | gpointer invocation_hint, | |
20779 | gpointer marshal_data); | |
20780 | ||
20781 | ||
20782 | extern void _gtk_marshal_BOOLEAN__UINT (GClosure *closure, | |
20783 | GValue *return_value, | |
20784 | guint n_param_values, | |
20785 | const GValue *param_values, | |
20786 | gpointer invocation_hint, | |
20787 | gpointer marshal_data); | |
20788 | ||
20789 | ||
20790 | extern void _gtk_marshal_BOOLEAN__VOID (GClosure *closure, | |
20791 | GValue *return_value, | |
20792 | guint n_param_values, | |
20793 | const GValue *param_values, | |
20794 | gpointer invocation_hint, | |
20795 | gpointer marshal_data); | |
20796 | ||
20797 | ||
20798 | extern void _gtk_marshal_BOOLEAN__BOOLEAN (GClosure *closure, | |
20799 | GValue *return_value, | |
20800 | guint n_param_values, | |
20801 | const GValue *param_values, | |
20802 | gpointer invocation_hint, | |
20803 | gpointer marshal_data); | |
20804 | ||
20805 | ||
20806 | ||
20807 | ||
20808 | ||
20809 | extern void _gtk_marshal_BOOLEAN__BOOLEAN_BOOLEAN_BOOLEAN (GClosure *closure, | |
20810 | GValue *return_value, | |
20811 | guint n_param_values, | |
20812 | const GValue *param_values, | |
20813 | gpointer invocation_hint, | |
20814 | gpointer marshal_data); | |
20815 | ||
20816 | ||
20817 | extern void _gtk_marshal_BOOLEAN__STRING (GClosure *closure, | |
20818 | GValue *return_value, | |
20819 | guint n_param_values, | |
20820 | const GValue *param_values, | |
20821 | gpointer invocation_hint, | |
20822 | gpointer marshal_data); | |
20823 | ||
20824 | ||
20825 | extern void _gtk_marshal_ENUM__ENUM (GClosure *closure, | |
20826 | GValue *return_value, | |
20827 | guint n_param_values, | |
20828 | const GValue *param_values, | |
20829 | gpointer invocation_hint, | |
20830 | gpointer marshal_data); | |
20831 | ||
20832 | ||
20833 | extern void _gtk_marshal_ENUM__VOID (GClosure *closure, | |
20834 | GValue *return_value, | |
20835 | guint n_param_values, | |
20836 | const GValue *param_values, | |
20837 | gpointer invocation_hint, | |
20838 | gpointer marshal_data); | |
20839 | ||
20840 | ||
20841 | extern void _gtk_marshal_INT__POINTER (GClosure *closure, | |
20842 | GValue *return_value, | |
20843 | guint n_param_values, | |
20844 | const GValue *param_values, | |
20845 | gpointer invocation_hint, | |
20846 | gpointer marshal_data); | |
20847 | # 241 "gtkmarshalers.h" | |
20848 | extern void _gtk_marshal_VOID__INT_BOOLEAN (GClosure *closure, | |
20849 | GValue *return_value, | |
20850 | guint n_param_values, | |
20851 | const GValue *param_values, | |
20852 | gpointer invocation_hint, | |
20853 | gpointer marshal_data); | |
20854 | ||
20855 | ||
20856 | ||
20857 | extern void _gtk_marshal_VOID__INT_INT (GClosure *closure, | |
20858 | GValue *return_value, | |
20859 | guint n_param_values, | |
20860 | const GValue *param_values, | |
20861 | gpointer invocation_hint, | |
20862 | gpointer marshal_data); | |
20863 | ||
20864 | ||
20865 | ||
20866 | ||
20867 | ||
20868 | ||
20869 | ||
20870 | extern void _gtk_marshal_VOID__STRING_INT_POINTER (GClosure *closure, | |
20871 | GValue *return_value, | |
20872 | guint n_param_values, | |
20873 | const GValue *param_values, | |
20874 | gpointer invocation_hint, | |
20875 | gpointer marshal_data); | |
20876 | ||
20877 | ||
20878 | ||
20879 | extern void _gtk_marshal_OBJECT__VOID (GClosure *closure, | |
20880 | GValue *return_value, | |
20881 | guint n_param_values, | |
20882 | const GValue *param_values, | |
20883 | gpointer invocation_hint, | |
20884 | gpointer marshal_data); | |
20885 | ||
20886 | ||
20887 | extern void _gtk_marshal_STRING__DOUBLE (GClosure *closure, | |
20888 | GValue *return_value, | |
20889 | guint n_param_values, | |
20890 | const GValue *param_values, | |
20891 | gpointer invocation_hint, | |
20892 | gpointer marshal_data); | |
20893 | ||
20894 | ||
20895 | ||
20896 | ||
20897 | ||
20898 | ||
20899 | ||
20900 | extern void _gtk_marshal_VOID__BOOLEAN_BOOLEAN_BOOLEAN (GClosure *closure, | |
20901 | GValue *return_value, | |
20902 | guint n_param_values, | |
20903 | const GValue *param_values, | |
20904 | gpointer invocation_hint, | |
20905 | gpointer marshal_data); | |
20906 | ||
20907 | ||
20908 | ||
20909 | ||
20910 | ||
20911 | extern void _gtk_marshal_VOID__BOXED_BOXED (GClosure *closure, | |
20912 | GValue *return_value, | |
20913 | guint n_param_values, | |
20914 | const GValue *param_values, | |
20915 | gpointer invocation_hint, | |
20916 | gpointer marshal_data); | |
20917 | ||
20918 | ||
20919 | extern void _gtk_marshal_VOID__BOXED_BOXED_POINTER (GClosure *closure, | |
20920 | GValue *return_value, | |
20921 | guint n_param_values, | |
20922 | const GValue *param_values, | |
20923 | gpointer invocation_hint, | |
20924 | gpointer marshal_data); | |
20925 | ||
20926 | ||
20927 | extern void _gtk_marshal_VOID__BOXED_OBJECT (GClosure *closure, | |
20928 | GValue *return_value, | |
20929 | guint n_param_values, | |
20930 | const GValue *param_values, | |
20931 | gpointer invocation_hint, | |
20932 | gpointer marshal_data); | |
20933 | ||
20934 | ||
20935 | extern void _gtk_marshal_VOID__BOXED_STRING_INT (GClosure *closure, | |
20936 | GValue *return_value, | |
20937 | guint n_param_values, | |
20938 | const GValue *param_values, | |
20939 | gpointer invocation_hint, | |
20940 | gpointer marshal_data); | |
20941 | ||
20942 | ||
20943 | extern void _gtk_marshal_VOID__BOXED_UINT (GClosure *closure, | |
20944 | GValue *return_value, | |
20945 | guint n_param_values, | |
20946 | const GValue *param_values, | |
20947 | gpointer invocation_hint, | |
20948 | gpointer marshal_data); | |
20949 | ||
20950 | ||
20951 | extern void _gtk_marshal_VOID__BOXED_UINT_FLAGS (GClosure *closure, | |
20952 | GValue *return_value, | |
20953 | guint n_param_values, | |
20954 | const GValue *param_values, | |
20955 | gpointer invocation_hint, | |
20956 | gpointer marshal_data); | |
20957 | ||
20958 | ||
20959 | extern void _gtk_marshal_VOID__BOXED_UINT_UINT (GClosure *closure, | |
20960 | GValue *return_value, | |
20961 | guint n_param_values, | |
20962 | const GValue *param_values, | |
20963 | gpointer invocation_hint, | |
20964 | gpointer marshal_data); | |
20965 | ||
20966 | ||
20967 | ||
20968 | ||
20969 | extern void _gtk_marshal_VOID__ENUM_BOOLEAN (GClosure *closure, | |
20970 | GValue *return_value, | |
20971 | guint n_param_values, | |
20972 | const GValue *param_values, | |
20973 | gpointer invocation_hint, | |
20974 | gpointer marshal_data); | |
20975 | ||
20976 | ||
20977 | extern void _gtk_marshal_VOID__ENUM_ENUM (GClosure *closure, | |
20978 | GValue *return_value, | |
20979 | guint n_param_values, | |
20980 | const GValue *param_values, | |
20981 | gpointer invocation_hint, | |
20982 | gpointer marshal_data); | |
20983 | ||
20984 | ||
20985 | extern void _gtk_marshal_VOID__ENUM_FLOAT (GClosure *closure, | |
20986 | GValue *return_value, | |
20987 | guint n_param_values, | |
20988 | const GValue *param_values, | |
20989 | gpointer invocation_hint, | |
20990 | gpointer marshal_data); | |
20991 | ||
20992 | ||
20993 | extern void _gtk_marshal_VOID__ENUM_FLOAT_BOOLEAN (GClosure *closure, | |
20994 | GValue *return_value, | |
20995 | guint n_param_values, | |
20996 | const GValue *param_values, | |
20997 | gpointer invocation_hint, | |
20998 | gpointer marshal_data); | |
20999 | ||
21000 | ||
21001 | extern void _gtk_marshal_VOID__ENUM_INT (GClosure *closure, | |
21002 | GValue *return_value, | |
21003 | guint n_param_values, | |
21004 | const GValue *param_values, | |
21005 | gpointer invocation_hint, | |
21006 | gpointer marshal_data); | |
21007 | ||
21008 | ||
21009 | extern void _gtk_marshal_VOID__ENUM_INT_BOOLEAN (GClosure *closure, | |
21010 | GValue *return_value, | |
21011 | guint n_param_values, | |
21012 | const GValue *param_values, | |
21013 | gpointer invocation_hint, | |
21014 | gpointer marshal_data); | |
21015 | ||
21016 | ||
21017 | ||
21018 | ||
21019 | ||
21020 | ||
21021 | extern void _gtk_marshal_VOID__INT_INT_BOXED (GClosure *closure, | |
21022 | GValue *return_value, | |
21023 | guint n_param_values, | |
21024 | const GValue *param_values, | |
21025 | gpointer invocation_hint, | |
21026 | gpointer marshal_data); | |
21027 | ||
21028 | ||
21029 | extern void _gtk_marshal_VOID__INT_INT_INT (GClosure *closure, | |
21030 | GValue *return_value, | |
21031 | guint n_param_values, | |
21032 | const GValue *param_values, | |
21033 | gpointer invocation_hint, | |
21034 | gpointer marshal_data); | |
21035 | ||
21036 | ||
21037 | ||
21038 | ||
21039 | ||
21040 | extern void _gtk_marshal_VOID__OBJECT_BOOLEAN (GClosure *closure, | |
21041 | GValue *return_value, | |
21042 | guint n_param_values, | |
21043 | const GValue *param_values, | |
21044 | gpointer invocation_hint, | |
21045 | gpointer marshal_data); | |
21046 | ||
21047 | ||
21048 | extern void _gtk_marshal_VOID__OBJECT_BOXED_BOXED (GClosure *closure, | |
21049 | GValue *return_value, | |
21050 | guint n_param_values, | |
21051 | const GValue *param_values, | |
21052 | gpointer invocation_hint, | |
21053 | gpointer marshal_data); | |
21054 | ||
21055 | ||
21056 | extern void _gtk_marshal_VOID__OBJECT_BOXED_UINT_UINT (GClosure *closure, | |
21057 | GValue *return_value, | |
21058 | guint n_param_values, | |
21059 | const GValue *param_values, | |
21060 | gpointer invocation_hint, | |
21061 | gpointer marshal_data); | |
21062 | ||
21063 | ||
21064 | extern void _gtk_marshal_VOID__OBJECT_INT (GClosure *closure, | |
21065 | GValue *return_value, | |
21066 | guint n_param_values, | |
21067 | const GValue *param_values, | |
21068 | gpointer invocation_hint, | |
21069 | gpointer marshal_data); | |
21070 | ||
21071 | ||
21072 | extern void _gtk_marshal_VOID__OBJECT_INT_OBJECT (GClosure *closure, | |
21073 | GValue *return_value, | |
21074 | guint n_param_values, | |
21075 | const GValue *param_values, | |
21076 | gpointer invocation_hint, | |
21077 | gpointer marshal_data); | |
21078 | ||
21079 | ||
21080 | extern void _gtk_marshal_VOID__OBJECT_INT_INT (GClosure *closure, | |
21081 | GValue *return_value, | |
21082 | guint n_param_values, | |
21083 | const GValue *param_values, | |
21084 | gpointer invocation_hint, | |
21085 | gpointer marshal_data); | |
21086 | ||
21087 | ||
21088 | extern void _gtk_marshal_VOID__OBJECT_INT_INT_BOXED_UINT_UINT (GClosure *closure, | |
21089 | GValue *return_value, | |
21090 | guint n_param_values, | |
21091 | const GValue *param_values, | |
21092 | gpointer invocation_hint, | |
21093 | gpointer marshal_data); | |
21094 | ||
21095 | ||
21096 | extern void _gtk_marshal_VOID__OBJECT_OBJECT (GClosure *closure, | |
21097 | GValue *return_value, | |
21098 | guint n_param_values, | |
21099 | const GValue *param_values, | |
21100 | gpointer invocation_hint, | |
21101 | gpointer marshal_data); | |
21102 | ||
21103 | ||
21104 | extern void _gtk_marshal_VOID__OBJECT_STRING (GClosure *closure, | |
21105 | GValue *return_value, | |
21106 | guint n_param_values, | |
21107 | const GValue *param_values, | |
21108 | gpointer invocation_hint, | |
21109 | gpointer marshal_data); | |
21110 | ||
21111 | ||
21112 | extern void _gtk_marshal_VOID__OBJECT_STRING_STRING (GClosure *closure, | |
21113 | GValue *return_value, | |
21114 | guint n_param_values, | |
21115 | const GValue *param_values, | |
21116 | gpointer invocation_hint, | |
21117 | gpointer marshal_data); | |
21118 | ||
21119 | ||
21120 | extern void _gtk_marshal_VOID__OBJECT_UINT (GClosure *closure, | |
21121 | GValue *return_value, | |
21122 | guint n_param_values, | |
21123 | const GValue *param_values, | |
21124 | gpointer invocation_hint, | |
21125 | gpointer marshal_data); | |
21126 | ||
21127 | ||
21128 | extern void _gtk_marshal_VOID__OBJECT_UINT_FLAGS (GClosure *closure, | |
21129 | GValue *return_value, | |
21130 | guint n_param_values, | |
21131 | const GValue *param_values, | |
21132 | gpointer invocation_hint, | |
21133 | gpointer marshal_data); | |
21134 | ||
21135 | ||
21136 | ||
21137 | ||
21138 | ||
21139 | ||
21140 | ||
21141 | extern void _gtk_marshal_VOID__POINTER_INT (GClosure *closure, | |
21142 | GValue *return_value, | |
21143 | guint n_param_values, | |
21144 | const GValue *param_values, | |
21145 | gpointer invocation_hint, | |
21146 | gpointer marshal_data); | |
21147 | ||
21148 | ||
21149 | extern void _gtk_marshal_VOID__POINTER_BOOLEAN (GClosure *closure, | |
21150 | GValue *return_value, | |
21151 | guint n_param_values, | |
21152 | const GValue *param_values, | |
21153 | gpointer invocation_hint, | |
21154 | gpointer marshal_data); | |
21155 | ||
21156 | ||
21157 | extern void _gtk_marshal_VOID__POINTER_POINTER_BOOLEAN (GClosure *closure, | |
21158 | GValue *return_value, | |
21159 | guint n_param_values, | |
21160 | const GValue *param_values, | |
21161 | gpointer invocation_hint, | |
21162 | gpointer marshal_data); | |
21163 | ||
21164 | ||
21165 | extern void _gtk_marshal_VOID__POINTER_POINTER_POINTER (GClosure *closure, | |
21166 | GValue *return_value, | |
21167 | guint n_param_values, | |
21168 | const GValue *param_values, | |
21169 | gpointer invocation_hint, | |
21170 | gpointer marshal_data); | |
21171 | ||
21172 | ||
21173 | extern void _gtk_marshal_VOID__POINTER_UINT (GClosure *closure, | |
21174 | GValue *return_value, | |
21175 | guint n_param_values, | |
21176 | const GValue *param_values, | |
21177 | gpointer invocation_hint, | |
21178 | gpointer marshal_data); | |
21179 | ||
21180 | ||
21181 | ||
21182 | ||
21183 | ||
21184 | extern void _gtk_marshal_VOID__STRING_STRING (GClosure *closure, | |
21185 | GValue *return_value, | |
21186 | guint n_param_values, | |
21187 | const GValue *param_values, | |
21188 | gpointer invocation_hint, | |
21189 | gpointer marshal_data); | |
21190 | ||
21191 | ||
21192 | ||
21193 | ||
21194 | extern void _gtk_marshal_VOID__STRING_UINT_FLAGS (GClosure *closure, | |
21195 | GValue *return_value, | |
21196 | guint n_param_values, | |
21197 | const GValue *param_values, | |
21198 | gpointer invocation_hint, | |
21199 | gpointer marshal_data); | |
21200 | ||
21201 | ||
21202 | extern void _gtk_marshal_VOID__STRING_UINT_FLAGS_UINT (GClosure *closure, | |
21203 | GValue *return_value, | |
21204 | guint n_param_values, | |
21205 | const GValue *param_values, | |
21206 | gpointer invocation_hint, | |
21207 | gpointer marshal_data); | |
21208 | ||
21209 | ||
21210 | extern void _gtk_marshal_VOID__UINT_FLAGS_BOXED (GClosure *closure, | |
21211 | GValue *return_value, | |
21212 | guint n_param_values, | |
21213 | const GValue *param_values, | |
21214 | gpointer invocation_hint, | |
21215 | gpointer marshal_data); | |
21216 | ||
21217 | ||
21218 | extern void _gtk_marshal_VOID__UINT_UINT (GClosure *closure, | |
21219 | GValue *return_value, | |
21220 | guint n_param_values, | |
21221 | const GValue *param_values, | |
21222 | gpointer invocation_hint, | |
21223 | gpointer marshal_data); | |
21224 | ||
21225 | ||
21226 | extern void _gtk_marshal_VOID__UINT_STRING (GClosure *closure, | |
21227 | GValue *return_value, | |
21228 | guint n_param_values, | |
21229 | const GValue *param_values, | |
21230 | gpointer invocation_hint, | |
21231 | gpointer marshal_data); | |
21232 | ||
21233 | ||
21234 | extern void _gtk_marshal_VOID__UINT_BOXED_UINT_FLAGS_FLAGS (GClosure *closure, | |
21235 | GValue *return_value, | |
21236 | guint n_param_values, | |
21237 | const GValue *param_values, | |
21238 | gpointer invocation_hint, | |
21239 | gpointer marshal_data); | |
21240 | ||
21241 | ||
21242 | extern void _gtk_marshal_VOID__UINT_OBJECT_UINT_FLAGS_FLAGS (GClosure *closure, | |
21243 | GValue *return_value, | |
21244 | guint n_param_values, | |
21245 | const GValue *param_values, | |
21246 | gpointer invocation_hint, | |
21247 | gpointer marshal_data); | |
21248 | ||
21249 | ||
21250 | ||
21251 | ||
21252 | extern void _gtk_marshal_OBJECT__OBJECT_INT_INT (GClosure *closure, | |
21253 | GValue *return_value, | |
21254 | guint n_param_values, | |
21255 | const GValue *param_values, | |
21256 | gpointer invocation_hint, | |
21257 | gpointer marshal_data); | |
21258 | ||
21259 | ||
21260 | # 39 "gtknotebook.c" 2 | |
21261 | # 1 "gtkbindings.h" 1 | |
21262 | # 39 "gtkbindings.h" | |
21263 | ||
21264 | ||
21265 | ||
21266 | ||
21267 | ||
21268 | ||
21269 | typedef struct _GtkBindingSet GtkBindingSet; | |
21270 | typedef struct _GtkBindingEntry GtkBindingEntry; | |
21271 | typedef struct _GtkBindingSignal GtkBindingSignal; | |
21272 | typedef struct _GtkBindingArg GtkBindingArg; | |
21273 | ||
21274 | struct _GtkBindingSet | |
21275 | { | |
21276 | gchar *set_name; | |
21277 | gint priority; | |
21278 | GSList *widget_path_pspecs; | |
21279 | GSList *widget_class_pspecs; | |
21280 | GSList *class_branch_pspecs; | |
21281 | GtkBindingEntry *entries; | |
21282 | GtkBindingEntry *current; | |
21283 | guint parsed : 1; | |
21284 | }; | |
21285 | ||
21286 | struct _GtkBindingEntry | |
21287 | { | |
21288 | ||
21289 | ||
21290 | guint keyval; | |
21291 | GdkModifierType modifiers; | |
21292 | ||
21293 | GtkBindingSet *binding_set; | |
21294 | guint destroyed : 1; | |
21295 | guint in_emission : 1; | |
21296 | guint marks_unbound : 1; | |
21297 | GtkBindingEntry *set_next; | |
21298 | GtkBindingEntry *hash_next; | |
21299 | GtkBindingSignal *signals; | |
21300 | }; | |
21301 | ||
21302 | struct _GtkBindingArg | |
21303 | { | |
21304 | GType arg_type; | |
21305 | union { | |
21306 | glong long_data; | |
21307 | gdouble double_data; | |
21308 | gchar *string_data; | |
21309 | } d; | |
21310 | }; | |
21311 | ||
21312 | struct _GtkBindingSignal | |
21313 | { | |
21314 | GtkBindingSignal *next; | |
21315 | gchar *signal_name; | |
21316 | guint n_args; | |
21317 | GtkBindingArg *args; | |
21318 | }; | |
21319 | ||
21320 | ||
21321 | ||
21322 | GtkBindingSet* gtk_binding_set_new (const gchar *set_name); | |
21323 | GtkBindingSet* gtk_binding_set_by_class(gpointer object_class); | |
21324 | GtkBindingSet* gtk_binding_set_find (const gchar *set_name); | |
21325 | gboolean gtk_bindings_activate (GtkObject *object, | |
21326 | guint keyval, | |
21327 | GdkModifierType modifiers); | |
21328 | gboolean gtk_bindings_activate_event (GtkObject *object, | |
21329 | GdkEventKey *event); | |
21330 | gboolean gtk_binding_set_activate (GtkBindingSet *binding_set, | |
21331 | guint keyval, | |
21332 | GdkModifierType modifiers, | |
21333 | GtkObject *object); | |
21334 | ||
21335 | ||
21336 | ||
21337 | void gtk_binding_entry_clear (GtkBindingSet *binding_set, | |
21338 | guint keyval, | |
21339 | GdkModifierType modifiers); | |
21340 | void gtk_binding_entry_add_signall (GtkBindingSet *binding_set, | |
21341 | guint keyval, | |
21342 | GdkModifierType modifiers, | |
21343 | const gchar *signal_name, | |
21344 | GSList *binding_args); | |
21345 | guint gtk_binding_parse_binding (GScanner *scanner); | |
21346 | ||
21347 | ||
21348 | void gtk_binding_entry_skip (GtkBindingSet *binding_set, | |
21349 | guint keyval, | |
21350 | GdkModifierType modifiers); | |
21351 | void gtk_binding_entry_add_signal (GtkBindingSet *binding_set, | |
21352 | guint keyval, | |
21353 | GdkModifierType modifiers, | |
21354 | const gchar *signal_name, | |
21355 | guint n_args, | |
21356 | ...); | |
21357 | void gtk_binding_entry_remove (GtkBindingSet *binding_set, | |
21358 | guint keyval, | |
21359 | GdkModifierType modifiers); | |
21360 | ||
21361 | void gtk_binding_set_add_path (GtkBindingSet *binding_set, | |
21362 | GtkPathType path_type, | |
21363 | const gchar *path_pattern, | |
21364 | GtkPathPriorityType priority); | |
21365 | ||
21366 | ||
21367 | ||
21368 | ||
21369 | guint _gtk_binding_parse_binding (GScanner *scanner); | |
21370 | void _gtk_binding_reset_parsed (void); | |
21371 | void _gtk_binding_entry_add_signall (GtkBindingSet *binding_set, | |
21372 | guint keyval, | |
21373 | GdkModifierType modifiers, | |
21374 | const gchar *signal_name, | |
21375 | GSList *binding_args); | |
21376 | ||
21377 | ||
21378 | ||
21379 | ||
21380 | guint _gtk_binding_signal_new (const gchar *signal_name, | |
21381 | GType itype, | |
21382 | GSignalFlags signal_flags, | |
21383 | GCallback handler, | |
21384 | GSignalAccumulator accumulator, | |
21385 | gpointer accu_data, | |
21386 | GSignalCMarshaller c_marshaller, | |
21387 | GType return_type, | |
21388 | guint n_params, | |
21389 | ...); | |
21390 | ||
21391 | ||
21392 | # 40 "gtknotebook.c" 2 | |
21393 | # 1 "gtkprivate.h" 1 | |
21394 | # 35 "gtkprivate.h" | |
21395 | ||
21396 | ||
21397 | ||
21398 | ||
21399 | typedef enum | |
21400 | { | |
21401 | PRIVATE_GTK_USER_STYLE = 1 << 0, | |
21402 | PRIVATE_GTK_RESIZE_PENDING = 1 << 2, | |
21403 | PRIVATE_GTK_LEAVE_PENDING = 1 << 4, | |
21404 | PRIVATE_GTK_HAS_SHAPE_MASK = 1 << 5, | |
21405 | PRIVATE_GTK_IN_REPARENT = 1 << 6, | |
21406 | PRIVATE_GTK_DIRECTION_SET = 1 << 7, | |
21407 | PRIVATE_GTK_DIRECTION_LTR = 1 << 8, | |
21408 | PRIVATE_GTK_ANCHORED = 1 << 9, | |
21409 | PRIVATE_GTK_CHILD_VISIBLE = 1 << 10, | |
21410 | PRIVATE_GTK_REDRAW_ON_ALLOC = 1 << 11, | |
21411 | PRIVATE_GTK_ALLOC_NEEDED = 1 << 12, | |
21412 | PRIVATE_GTK_REQUEST_NEEDED = 1 << 13 | |
21413 | } GtkPrivateFlags; | |
21414 | # 99 "gtkprivate.h" | |
21415 | gboolean _gtk_fnmatch (const char *pattern, | |
21416 | const char *string, | |
21417 | gboolean no_leading_period); | |
21418 | ||
21419 | ||
21420 | ||
21421 | ||
21422 | ||
21423 | ||
21424 | # 41 "gtknotebook.c" 2 | |
21425 | # 1 "gtkdnd.h" 1 | |
21426 | # 34 "gtkdnd.h" | |
21427 | # 1 "../gtk/gtkselection.h" 1 | |
21428 | # 34 "../gtk/gtkselection.h" | |
21429 | # 1 "../gtk/gtktextiter.h" 1 | |
21430 | # 30 "../gtk/gtktextiter.h" | |
21431 | # 1 "../gtk/gtktexttag.h" 1 | |
21432 | # 60 "../gtk/gtktexttag.h" | |
21433 | ||
21434 | ||
21435 | typedef struct _GtkTextIter GtkTextIter; | |
21436 | typedef struct _GtkTextTagTable GtkTextTagTable; | |
21437 | ||
21438 | typedef struct _GtkTextAttributes GtkTextAttributes; | |
21439 | # 76 "../gtk/gtktexttag.h" | |
21440 | typedef struct _GtkTextTag GtkTextTag; | |
21441 | typedef struct _GtkTextTagClass GtkTextTagClass; | |
21442 | ||
21443 | struct _GtkTextTag | |
21444 | { | |
21445 | GObject parent_instance; | |
21446 | ||
21447 | GtkTextTagTable *table; | |
21448 | ||
21449 | char *name; | |
21450 | ||
21451 | ||
21452 | ||
21453 | int priority; | |
21454 | # 101 "../gtk/gtktexttag.h" | |
21455 | GtkTextAttributes *values; | |
21456 | ||
21457 | ||
21458 | ||
21459 | ||
21460 | guint bg_color_set : 1; | |
21461 | guint bg_stipple_set : 1; | |
21462 | guint fg_color_set : 1; | |
21463 | guint scale_set : 1; | |
21464 | guint fg_stipple_set : 1; | |
21465 | guint justification_set : 1; | |
21466 | guint left_margin_set : 1; | |
21467 | guint indent_set : 1; | |
21468 | guint rise_set : 1; | |
21469 | guint strikethrough_set : 1; | |
21470 | guint right_margin_set : 1; | |
21471 | guint pixels_above_lines_set : 1; | |
21472 | guint pixels_below_lines_set : 1; | |
21473 | guint pixels_inside_wrap_set : 1; | |
21474 | guint tabs_set : 1; | |
21475 | guint underline_set : 1; | |
21476 | guint wrap_mode_set : 1; | |
21477 | guint bg_full_height_set : 1; | |
21478 | guint invisible_set : 1; | |
21479 | guint editable_set : 1; | |
21480 | guint language_set : 1; | |
21481 | guint pg_bg_color_set : 1; | |
21482 | ||
21483 | ||
21484 | guint accumulative_margin : 1; | |
21485 | ||
21486 | guint pad1 : 1; | |
21487 | }; | |
21488 | ||
21489 | struct _GtkTextTagClass | |
21490 | { | |
21491 | GObjectClass parent_class; | |
21492 | ||
21493 | gboolean (* event) (GtkTextTag *tag, | |
21494 | GObject *event_object, | |
21495 | GdkEvent *event, | |
21496 | const GtkTextIter *iter); | |
21497 | ||
21498 | ||
21499 | void (*_gtk_reserved1) (void); | |
21500 | void (*_gtk_reserved2) (void); | |
21501 | void (*_gtk_reserved3) (void); | |
21502 | void (*_gtk_reserved4) (void); | |
21503 | }; | |
21504 | ||
21505 | GType gtk_text_tag_get_type (void) __attribute__((__const__)); | |
21506 | GtkTextTag *gtk_text_tag_new (const gchar *name); | |
21507 | gint gtk_text_tag_get_priority (GtkTextTag *tag); | |
21508 | void gtk_text_tag_set_priority (GtkTextTag *tag, | |
21509 | gint priority); | |
21510 | gboolean gtk_text_tag_event (GtkTextTag *tag, | |
21511 | GObject *event_object, | |
21512 | GdkEvent *event, | |
21513 | const GtkTextIter *iter); | |
21514 | ||
21515 | ||
21516 | ||
21517 | ||
21518 | ||
21519 | typedef struct _GtkTextAppearance GtkTextAppearance; | |
21520 | ||
21521 | struct _GtkTextAppearance | |
21522 | { | |
21523 | ||
21524 | GdkColor bg_color; | |
21525 | GdkColor fg_color; | |
21526 | GdkBitmap *bg_stipple; | |
21527 | GdkBitmap *fg_stipple; | |
21528 | ||
21529 | ||
21530 | gint rise; | |
21531 | ||
21532 | ||
21533 | ||
21534 | ||
21535 | ||
21536 | gpointer padding1; | |
21537 | ||
21538 | ||
21539 | guint underline : 4; | |
21540 | guint strikethrough : 1; | |
21541 | ||
21542 | ||
21543 | ||
21544 | ||
21545 | ||
21546 | ||
21547 | guint draw_bg : 1; | |
21548 | ||
21549 | ||
21550 | ||
21551 | ||
21552 | ||
21553 | guint inside_selection : 1; | |
21554 | guint is_text : 1; | |
21555 | ||
21556 | ||
21557 | guint pad1 : 1; | |
21558 | guint pad2 : 1; | |
21559 | guint pad3 : 1; | |
21560 | guint pad4 : 1; | |
21561 | }; | |
21562 | ||
21563 | struct _GtkTextAttributes | |
21564 | { | |
21565 | ||
21566 | guint refcount; | |
21567 | ||
21568 | ||
21569 | GtkTextAppearance appearance; | |
21570 | ||
21571 | GtkJustification justification; | |
21572 | GtkTextDirection direction; | |
21573 | ||
21574 | ||
21575 | PangoFontDescription *font; | |
21576 | ||
21577 | gdouble font_scale; | |
21578 | ||
21579 | gint left_margin; | |
21580 | ||
21581 | gint indent; | |
21582 | ||
21583 | gint right_margin; | |
21584 | ||
21585 | gint pixels_above_lines; | |
21586 | ||
21587 | gint pixels_below_lines; | |
21588 | ||
21589 | gint pixels_inside_wrap; | |
21590 | ||
21591 | PangoTabArray *tabs; | |
21592 | ||
21593 | GtkWrapMode wrap_mode; | |
21594 | ||
21595 | ||
21596 | ||
21597 | ||
21598 | PangoLanguage *language; | |
21599 | ||
21600 | ||
21601 | GdkColor *pg_bg_color; | |
21602 | ||
21603 | ||
21604 | ||
21605 | guint invisible : 1; | |
21606 | ||
21607 | ||
21608 | ||
21609 | ||
21610 | guint bg_full_height : 1; | |
21611 | ||
21612 | ||
21613 | guint editable : 1; | |
21614 | ||
21615 | ||
21616 | guint realized : 1; | |
21617 | ||
21618 | ||
21619 | guint pad1 : 1; | |
21620 | guint pad2 : 1; | |
21621 | guint pad3 : 1; | |
21622 | guint pad4 : 1; | |
21623 | }; | |
21624 | ||
21625 | GtkTextAttributes* gtk_text_attributes_new (void); | |
21626 | GtkTextAttributes* gtk_text_attributes_copy (GtkTextAttributes *src); | |
21627 | void gtk_text_attributes_copy_values (GtkTextAttributes *src, | |
21628 | GtkTextAttributes *dest); | |
21629 | void gtk_text_attributes_unref (GtkTextAttributes *values); | |
21630 | GtkTextAttributes *gtk_text_attributes_ref (GtkTextAttributes *values); | |
21631 | ||
21632 | GType gtk_text_attributes_get_type (void) __attribute__((__const__)); | |
21633 | ||
21634 | ||
21635 | ||
21636 | # 31 "../gtk/gtktextiter.h" 2 | |
21637 | # 1 "../gtk/gtktextchild.h" 1 | |
21638 | # 32 "../gtk/gtktextchild.h" | |
21639 | ||
21640 | ||
21641 | ||
21642 | ||
21643 | ||
21644 | ||
21645 | ||
21646 | ||
21647 | typedef struct _GtkTextChildAnchor GtkTextChildAnchor; | |
21648 | typedef struct _GtkTextChildAnchorClass GtkTextChildAnchorClass; | |
21649 | # 50 "../gtk/gtktextchild.h" | |
21650 | struct _GtkTextChildAnchor | |
21651 | { | |
21652 | GObject parent_instance; | |
21653 | ||
21654 | gpointer segment; | |
21655 | }; | |
21656 | ||
21657 | struct _GtkTextChildAnchorClass | |
21658 | { | |
21659 | GObjectClass parent_class; | |
21660 | ||
21661 | ||
21662 | void (*_gtk_reserved1) (void); | |
21663 | void (*_gtk_reserved2) (void); | |
21664 | void (*_gtk_reserved3) (void); | |
21665 | void (*_gtk_reserved4) (void); | |
21666 | }; | |
21667 | ||
21668 | GType gtk_text_child_anchor_get_type (void) __attribute__((__const__)); | |
21669 | ||
21670 | GtkTextChildAnchor* gtk_text_child_anchor_new (void); | |
21671 | ||
21672 | GList* gtk_text_child_anchor_get_widgets (GtkTextChildAnchor *anchor); | |
21673 | gboolean gtk_text_child_anchor_get_deleted (GtkTextChildAnchor *anchor); | |
21674 | ||
21675 | ||
21676 | # 32 "../gtk/gtktextiter.h" 2 | |
21677 | ||
21678 | ||
21679 | ||
21680 | typedef enum { | |
21681 | GTK_TEXT_SEARCH_VISIBLE_ONLY = 1 << 0, | |
21682 | GTK_TEXT_SEARCH_TEXT_ONLY = 1 << 1 | |
21683 | ||
21684 | } GtkTextSearchFlags; | |
21685 | ||
21686 | ||
21687 | ||
21688 | ||
21689 | ||
21690 | ||
21691 | ||
21692 | typedef struct _GtkTextBuffer GtkTextBuffer; | |
21693 | ||
21694 | ||
21695 | ||
21696 | struct _GtkTextIter { | |
21697 | ||
21698 | ||
21699 | ||
21700 | ||
21701 | ||
21702 | gpointer dummy1; | |
21703 | gpointer dummy2; | |
21704 | gint dummy3; | |
21705 | gint dummy4; | |
21706 | gint dummy5; | |
21707 | gint dummy6; | |
21708 | gint dummy7; | |
21709 | gint dummy8; | |
21710 | gpointer dummy9; | |
21711 | gpointer dummy10; | |
21712 | gint dummy11; | |
21713 | gint dummy12; | |
21714 | ||
21715 | gint dummy13; | |
21716 | gpointer dummy14; | |
21717 | }; | |
21718 | ||
21719 | ||
21720 | ||
21721 | ||
21722 | GtkTextBuffer *gtk_text_iter_get_buffer (const GtkTextIter *iter); | |
21723 | ||
21724 | ||
21725 | ||
21726 | ||
21727 | ||
21728 | GtkTextIter *gtk_text_iter_copy (const GtkTextIter *iter); | |
21729 | void gtk_text_iter_free (GtkTextIter *iter); | |
21730 | ||
21731 | GType gtk_text_iter_get_type (void) __attribute__((__const__)); | |
21732 | ||
21733 | ||
21734 | ||
21735 | ||
21736 | ||
21737 | gint gtk_text_iter_get_offset (const GtkTextIter *iter); | |
21738 | gint gtk_text_iter_get_line (const GtkTextIter *iter); | |
21739 | gint gtk_text_iter_get_line_offset (const GtkTextIter *iter); | |
21740 | gint gtk_text_iter_get_line_index (const GtkTextIter *iter); | |
21741 | ||
21742 | gint gtk_text_iter_get_visible_line_offset (const GtkTextIter *iter); | |
21743 | gint gtk_text_iter_get_visible_line_index (const GtkTextIter *iter); | |
21744 | ||
21745 | ||
21746 | ||
21747 | ||
21748 | ||
21749 | gunichar gtk_text_iter_get_char (const GtkTextIter *iter); | |
21750 | ||
21751 | ||
21752 | ||
21753 | ||
21754 | gchar *gtk_text_iter_get_slice (const GtkTextIter *start, | |
21755 | const GtkTextIter *end); | |
21756 | ||
21757 | ||
21758 | gchar *gtk_text_iter_get_text (const GtkTextIter *start, | |
21759 | const GtkTextIter *end); | |
21760 | ||
21761 | gchar *gtk_text_iter_get_visible_slice (const GtkTextIter *start, | |
21762 | const GtkTextIter *end); | |
21763 | gchar *gtk_text_iter_get_visible_text (const GtkTextIter *start, | |
21764 | const GtkTextIter *end); | |
21765 | ||
21766 | GdkPixbuf* gtk_text_iter_get_pixbuf (const GtkTextIter *iter); | |
21767 | GSList * gtk_text_iter_get_marks (const GtkTextIter *iter); | |
21768 | ||
21769 | GtkTextChildAnchor* gtk_text_iter_get_child_anchor (const GtkTextIter *iter); | |
21770 | ||
21771 | ||
21772 | ||
21773 | ||
21774 | GSList *gtk_text_iter_get_toggled_tags (const GtkTextIter *iter, | |
21775 | gboolean toggled_on); | |
21776 | ||
21777 | gboolean gtk_text_iter_begins_tag (const GtkTextIter *iter, | |
21778 | GtkTextTag *tag); | |
21779 | ||
21780 | gboolean gtk_text_iter_ends_tag (const GtkTextIter *iter, | |
21781 | GtkTextTag *tag); | |
21782 | ||
21783 | gboolean gtk_text_iter_toggles_tag (const GtkTextIter *iter, | |
21784 | GtkTextTag *tag); | |
21785 | ||
21786 | gboolean gtk_text_iter_has_tag (const GtkTextIter *iter, | |
21787 | GtkTextTag *tag); | |
21788 | GSList *gtk_text_iter_get_tags (const GtkTextIter *iter); | |
21789 | ||
21790 | gboolean gtk_text_iter_editable (const GtkTextIter *iter, | |
21791 | gboolean default_setting); | |
21792 | gboolean gtk_text_iter_can_insert (const GtkTextIter *iter, | |
21793 | gboolean default_editability); | |
21794 | ||
21795 | gboolean gtk_text_iter_starts_word (const GtkTextIter *iter); | |
21796 | gboolean gtk_text_iter_ends_word (const GtkTextIter *iter); | |
21797 | gboolean gtk_text_iter_inside_word (const GtkTextIter *iter); | |
21798 | gboolean gtk_text_iter_starts_sentence (const GtkTextIter *iter); | |
21799 | gboolean gtk_text_iter_ends_sentence (const GtkTextIter *iter); | |
21800 | gboolean gtk_text_iter_inside_sentence (const GtkTextIter *iter); | |
21801 | gboolean gtk_text_iter_starts_line (const GtkTextIter *iter); | |
21802 | gboolean gtk_text_iter_ends_line (const GtkTextIter *iter); | |
21803 | gboolean gtk_text_iter_is_cursor_position (const GtkTextIter *iter); | |
21804 | ||
21805 | gint gtk_text_iter_get_chars_in_line (const GtkTextIter *iter); | |
21806 | gint gtk_text_iter_get_bytes_in_line (const GtkTextIter *iter); | |
21807 | ||
21808 | gboolean gtk_text_iter_get_attributes (const GtkTextIter *iter, | |
21809 | GtkTextAttributes *values); | |
21810 | PangoLanguage* gtk_text_iter_get_language (const GtkTextIter *iter); | |
21811 | gboolean gtk_text_iter_is_end (const GtkTextIter *iter); | |
21812 | gboolean gtk_text_iter_is_start (const GtkTextIter *iter); | |
21813 | ||
21814 | ||
21815 | ||
21816 | ||
21817 | ||
21818 | gboolean gtk_text_iter_forward_char (GtkTextIter *iter); | |
21819 | gboolean gtk_text_iter_backward_char (GtkTextIter *iter); | |
21820 | gboolean gtk_text_iter_forward_chars (GtkTextIter *iter, | |
21821 | gint count); | |
21822 | gboolean gtk_text_iter_backward_chars (GtkTextIter *iter, | |
21823 | gint count); | |
21824 | gboolean gtk_text_iter_forward_line (GtkTextIter *iter); | |
21825 | gboolean gtk_text_iter_backward_line (GtkTextIter *iter); | |
21826 | gboolean gtk_text_iter_forward_lines (GtkTextIter *iter, | |
21827 | gint count); | |
21828 | gboolean gtk_text_iter_backward_lines (GtkTextIter *iter, | |
21829 | gint count); | |
21830 | gboolean gtk_text_iter_forward_word_end (GtkTextIter *iter); | |
21831 | gboolean gtk_text_iter_backward_word_start (GtkTextIter *iter); | |
21832 | gboolean gtk_text_iter_forward_word_ends (GtkTextIter *iter, | |
21833 | gint count); | |
21834 | gboolean gtk_text_iter_backward_word_starts (GtkTextIter *iter, | |
21835 | gint count); | |
21836 | ||
21837 | gboolean gtk_text_iter_forward_visible_line (GtkTextIter *iter); | |
21838 | gboolean gtk_text_iter_backward_visible_line (GtkTextIter *iter); | |
21839 | gboolean gtk_text_iter_forward_visible_lines (GtkTextIter *iter, | |
21840 | gint count); | |
21841 | gboolean gtk_text_iter_backward_visible_lines (GtkTextIter *iter, | |
21842 | gint count); | |
21843 | ||
21844 | gboolean gtk_text_iter_forward_visible_word_end (GtkTextIter *iter); | |
21845 | gboolean gtk_text_iter_backward_visible_word_start (GtkTextIter *iter); | |
21846 | gboolean gtk_text_iter_forward_visible_word_ends (GtkTextIter *iter, | |
21847 | gint count); | |
21848 | gboolean gtk_text_iter_backward_visible_word_starts (GtkTextIter *iter, | |
21849 | gint count); | |
21850 | ||
21851 | gboolean gtk_text_iter_forward_sentence_end (GtkTextIter *iter); | |
21852 | gboolean gtk_text_iter_backward_sentence_start (GtkTextIter *iter); | |
21853 | gboolean gtk_text_iter_forward_sentence_ends (GtkTextIter *iter, | |
21854 | gint count); | |
21855 | gboolean gtk_text_iter_backward_sentence_starts (GtkTextIter *iter, | |
21856 | gint count); | |
21857 | ||
21858 | ||
21859 | ||
21860 | ||
21861 | ||
21862 | gboolean gtk_text_iter_forward_cursor_position (GtkTextIter *iter); | |
21863 | gboolean gtk_text_iter_backward_cursor_position (GtkTextIter *iter); | |
21864 | gboolean gtk_text_iter_forward_cursor_positions (GtkTextIter *iter, | |
21865 | gint count); | |
21866 | gboolean gtk_text_iter_backward_cursor_positions (GtkTextIter *iter, | |
21867 | gint count); | |
21868 | ||
21869 | gboolean gtk_text_iter_forward_visible_cursor_position (GtkTextIter *iter); | |
21870 | gboolean gtk_text_iter_backward_visible_cursor_position (GtkTextIter *iter); | |
21871 | gboolean gtk_text_iter_forward_visible_cursor_positions (GtkTextIter *iter, | |
21872 | gint count); | |
21873 | gboolean gtk_text_iter_backward_visible_cursor_positions (GtkTextIter *iter, | |
21874 | gint count); | |
21875 | ||
21876 | ||
21877 | void gtk_text_iter_set_offset (GtkTextIter *iter, | |
21878 | gint char_offset); | |
21879 | void gtk_text_iter_set_line (GtkTextIter *iter, | |
21880 | gint line_number); | |
21881 | void gtk_text_iter_set_line_offset (GtkTextIter *iter, | |
21882 | gint char_on_line); | |
21883 | void gtk_text_iter_set_line_index (GtkTextIter *iter, | |
21884 | gint byte_on_line); | |
21885 | void gtk_text_iter_forward_to_end (GtkTextIter *iter); | |
21886 | gboolean gtk_text_iter_forward_to_line_end (GtkTextIter *iter); | |
21887 | ||
21888 | void gtk_text_iter_set_visible_line_offset (GtkTextIter *iter, | |
21889 | gint char_on_line); | |
21890 | void gtk_text_iter_set_visible_line_index (GtkTextIter *iter, | |
21891 | gint byte_on_line); | |
21892 | ||
21893 | ||
21894 | ||
21895 | ||
21896 | ||
21897 | gboolean gtk_text_iter_forward_to_tag_toggle (GtkTextIter *iter, | |
21898 | GtkTextTag *tag); | |
21899 | ||
21900 | gboolean gtk_text_iter_backward_to_tag_toggle (GtkTextIter *iter, | |
21901 | GtkTextTag *tag); | |
21902 | ||
21903 | typedef gboolean (* GtkTextCharPredicate) (gunichar ch, gpointer user_data); | |
21904 | ||
21905 | gboolean gtk_text_iter_forward_find_char (GtkTextIter *iter, | |
21906 | GtkTextCharPredicate pred, | |
21907 | gpointer user_data, | |
21908 | const GtkTextIter *limit); | |
21909 | gboolean gtk_text_iter_backward_find_char (GtkTextIter *iter, | |
21910 | GtkTextCharPredicate pred, | |
21911 | gpointer user_data, | |
21912 | const GtkTextIter *limit); | |
21913 | ||
21914 | gboolean gtk_text_iter_forward_search (const GtkTextIter *iter, | |
21915 | const gchar *str, | |
21916 | GtkTextSearchFlags flags, | |
21917 | GtkTextIter *match_start, | |
21918 | GtkTextIter *match_end, | |
21919 | const GtkTextIter *limit); | |
21920 | ||
21921 | gboolean gtk_text_iter_backward_search (const GtkTextIter *iter, | |
21922 | const gchar *str, | |
21923 | GtkTextSearchFlags flags, | |
21924 | GtkTextIter *match_start, | |
21925 | GtkTextIter *match_end, | |
21926 | const GtkTextIter *limit); | |
21927 | ||
21928 | ||
21929 | ||
21930 | ||
21931 | ||
21932 | gboolean gtk_text_iter_equal (const GtkTextIter *lhs, | |
21933 | const GtkTextIter *rhs); | |
21934 | gint gtk_text_iter_compare (const GtkTextIter *lhs, | |
21935 | const GtkTextIter *rhs); | |
21936 | gboolean gtk_text_iter_in_range (const GtkTextIter *iter, | |
21937 | const GtkTextIter *start, | |
21938 | const GtkTextIter *end); | |
21939 | ||
21940 | ||
21941 | void gtk_text_iter_order (GtkTextIter *first, | |
21942 | GtkTextIter *second); | |
21943 | ||
21944 | ||
21945 | # 35 "../gtk/gtkselection.h" 2 | |
21946 | ||
21947 | ||
21948 | ||
21949 | typedef struct _GtkTargetList GtkTargetList; | |
21950 | typedef struct _GtkTargetEntry GtkTargetEntry; | |
21951 | # 55 "../gtk/gtkselection.h" | |
21952 | struct _GtkSelectionData | |
21953 | { | |
21954 | GdkAtom selection; | |
21955 | GdkAtom target; | |
21956 | GdkAtom type; | |
21957 | gint format; | |
21958 | guchar *data; | |
21959 | gint length; | |
21960 | GdkDisplay *display; | |
21961 | }; | |
21962 | ||
21963 | struct _GtkTargetEntry { | |
21964 | gchar *target; | |
21965 | guint flags; | |
21966 | guint info; | |
21967 | }; | |
21968 | ||
21969 | ||
21970 | ||
21971 | ||
21972 | ||
21973 | typedef struct _GtkTargetPair GtkTargetPair; | |
21974 | ||
21975 | ||
21976 | struct _GtkTargetList { | |
21977 | GList *list; | |
21978 | guint ref_count; | |
21979 | }; | |
21980 | ||
21981 | struct _GtkTargetPair { | |
21982 | GdkAtom target; | |
21983 | guint flags; | |
21984 | guint info; | |
21985 | }; | |
21986 | ||
21987 | GtkTargetList *gtk_target_list_new (const GtkTargetEntry *targets, | |
21988 | guint ntargets); | |
21989 | GtkTargetList *gtk_target_list_ref (GtkTargetList *list); | |
21990 | void gtk_target_list_unref (GtkTargetList *list); | |
21991 | void gtk_target_list_add (GtkTargetList *list, | |
21992 | GdkAtom target, | |
21993 | guint flags, | |
21994 | guint info); | |
21995 | void gtk_target_list_add_text_targets (GtkTargetList *list, | |
21996 | guint info); | |
21997 | void gtk_target_list_add_rich_text_targets (GtkTargetList *list, | |
21998 | guint info, | |
21999 | gboolean deserializable, | |
22000 | GtkTextBuffer *buffer); | |
22001 | void gtk_target_list_add_image_targets (GtkTargetList *list, | |
22002 | guint info, | |
22003 | gboolean writable); | |
22004 | void gtk_target_list_add_uri_targets (GtkTargetList *list, | |
22005 | guint info); | |
22006 | void gtk_target_list_add_table (GtkTargetList *list, | |
22007 | const GtkTargetEntry *targets, | |
22008 | guint ntargets); | |
22009 | void gtk_target_list_remove (GtkTargetList *list, | |
22010 | GdkAtom target); | |
22011 | gboolean gtk_target_list_find (GtkTargetList *list, | |
22012 | GdkAtom target, | |
22013 | guint *info); | |
22014 | ||
22015 | GtkTargetEntry * gtk_target_table_new_from_list (GtkTargetList *list, | |
22016 | gint *n_targets); | |
22017 | void gtk_target_table_free (GtkTargetEntry *targets, | |
22018 | gint n_targets); | |
22019 | ||
22020 | ||
22021 | ||
22022 | gboolean gtk_selection_owner_set (GtkWidget *widget, | |
22023 | GdkAtom selection, | |
22024 | guint32 time_); | |
22025 | gboolean gtk_selection_owner_set_for_display (GdkDisplay *display, | |
22026 | GtkWidget *widget, | |
22027 | GdkAtom selection, | |
22028 | guint32 time_); | |
22029 | ||
22030 | void gtk_selection_add_target (GtkWidget *widget, | |
22031 | GdkAtom selection, | |
22032 | GdkAtom target, | |
22033 | guint info); | |
22034 | void gtk_selection_add_targets (GtkWidget *widget, | |
22035 | GdkAtom selection, | |
22036 | const GtkTargetEntry *targets, | |
22037 | guint ntargets); | |
22038 | void gtk_selection_clear_targets (GtkWidget *widget, | |
22039 | GdkAtom selection); | |
22040 | gboolean gtk_selection_convert (GtkWidget *widget, | |
22041 | GdkAtom selection, | |
22042 | GdkAtom target, | |
22043 | guint32 time_); | |
22044 | void gtk_selection_data_set (GtkSelectionData *selection_data, | |
22045 | GdkAtom type, | |
22046 | gint format, | |
22047 | const guchar *data, | |
22048 | gint length); | |
22049 | gboolean gtk_selection_data_set_text (GtkSelectionData *selection_data, | |
22050 | const gchar *str, | |
22051 | gint len); | |
22052 | guchar * gtk_selection_data_get_text (GtkSelectionData *selection_data); | |
22053 | gboolean gtk_selection_data_set_pixbuf (GtkSelectionData *selection_data, | |
22054 | GdkPixbuf *pixbuf); | |
22055 | GdkPixbuf *gtk_selection_data_get_pixbuf (GtkSelectionData *selection_data); | |
22056 | gboolean gtk_selection_data_set_uris (GtkSelectionData *selection_data, | |
22057 | gchar **uris); | |
22058 | gchar **gtk_selection_data_get_uris (GtkSelectionData *selection_data); | |
22059 | ||
22060 | gboolean gtk_selection_data_get_targets (GtkSelectionData *selection_data, | |
22061 | GdkAtom **targets, | |
22062 | gint *n_atoms); | |
22063 | gboolean gtk_selection_data_targets_include_text (GtkSelectionData *selection_data); | |
22064 | gboolean gtk_selection_data_targets_include_rich_text (GtkSelectionData *selection_data, | |
22065 | GtkTextBuffer *buffer); | |
22066 | gboolean gtk_selection_data_targets_include_image (GtkSelectionData *selection_data, | |
22067 | gboolean writable); | |
22068 | gboolean gtk_selection_data_targets_include_uri (GtkSelectionData *selection_data); | |
22069 | gboolean gtk_targets_include_text (GdkAtom *targets, | |
22070 | gint n_targets); | |
22071 | gboolean gtk_targets_include_rich_text (GdkAtom *targets, | |
22072 | gint n_targets, | |
22073 | GtkTextBuffer *buffer); | |
22074 | gboolean gtk_targets_include_image (GdkAtom *targets, | |
22075 | gint n_targets, | |
22076 | gboolean writable); | |
22077 | gboolean gtk_targets_include_uri (GdkAtom *targets, | |
22078 | gint n_targets); | |
22079 | ||
22080 | ||
22081 | ||
22082 | void gtk_selection_remove_all (GtkWidget *widget); | |
22083 | ||
22084 | ||
22085 | ||
22086 | gboolean gtk_selection_clear (GtkWidget *widget, | |
22087 | GdkEventSelection *event); | |
22088 | ||
22089 | gboolean _gtk_selection_request (GtkWidget *widget, | |
22090 | GdkEventSelection *event); | |
22091 | gboolean _gtk_selection_incr_event (GdkWindow *window, | |
22092 | GdkEventProperty *event); | |
22093 | gboolean _gtk_selection_notify (GtkWidget *widget, | |
22094 | GdkEventSelection *event); | |
22095 | gboolean _gtk_selection_property_notify (GtkWidget *widget, | |
22096 | GdkEventProperty *event); | |
22097 | ||
22098 | GType gtk_selection_data_get_type (void) __attribute__((__const__)); | |
22099 | GtkSelectionData *gtk_selection_data_copy (GtkSelectionData *data); | |
22100 | void gtk_selection_data_free (GtkSelectionData *data); | |
22101 | ||
22102 | GType gtk_target_list_get_type (void) __attribute__((__const__)); | |
22103 | ||
22104 | ||
22105 | # 35 "gtkdnd.h" 2 | |
22106 | ||
22107 | ||
22108 | ||
22109 | typedef enum { | |
22110 | GTK_DEST_DEFAULT_MOTION = 1 << 0, | |
22111 | GTK_DEST_DEFAULT_HIGHLIGHT = 1 << 1, | |
22112 | GTK_DEST_DEFAULT_DROP = 1 << 2, | |
22113 | GTK_DEST_DEFAULT_ALL = 0x07 | |
22114 | } GtkDestDefaults; | |
22115 | ||
22116 | ||
22117 | ||
22118 | typedef enum { | |
22119 | GTK_TARGET_SAME_APP = 1 << 0, | |
22120 | GTK_TARGET_SAME_WIDGET = 1 << 1, | |
22121 | GTK_TARGET_OTHER_APP = 1 << 2, | |
22122 | GTK_TARGET_OTHER_WIDGET = 1 << 3 | |
22123 | } GtkTargetFlags; | |
22124 | ||
22125 | ||
22126 | ||
22127 | void gtk_drag_get_data (GtkWidget *widget, | |
22128 | GdkDragContext *context, | |
22129 | GdkAtom target, | |
22130 | guint32 time_); | |
22131 | void gtk_drag_finish (GdkDragContext *context, | |
22132 | gboolean success, | |
22133 | gboolean del, | |
22134 | guint32 time_); | |
22135 | ||
22136 | GtkWidget *gtk_drag_get_source_widget (GdkDragContext *context); | |
22137 | ||
22138 | void gtk_drag_highlight (GtkWidget *widget); | |
22139 | void gtk_drag_unhighlight (GtkWidget *widget); | |
22140 | ||
22141 | void gtk_drag_dest_set (GtkWidget *widget, | |
22142 | GtkDestDefaults flags, | |
22143 | const GtkTargetEntry *targets, | |
22144 | gint n_targets, | |
22145 | GdkDragAction actions); | |
22146 | ||
22147 | void gtk_drag_dest_set_proxy (GtkWidget *widget, | |
22148 | GdkWindow *proxy_window, | |
22149 | GdkDragProtocol protocol, | |
22150 | gboolean use_coordinates); | |
22151 | ||
22152 | void gtk_drag_dest_unset (GtkWidget *widget); | |
22153 | ||
22154 | GdkAtom gtk_drag_dest_find_target (GtkWidget *widget, | |
22155 | GdkDragContext *context, | |
22156 | GtkTargetList *target_list); | |
22157 | GtkTargetList* gtk_drag_dest_get_target_list (GtkWidget *widget); | |
22158 | void gtk_drag_dest_set_target_list (GtkWidget *widget, | |
22159 | GtkTargetList *target_list); | |
22160 | void gtk_drag_dest_add_text_targets (GtkWidget *widget); | |
22161 | void gtk_drag_dest_add_image_targets (GtkWidget *widget); | |
22162 | void gtk_drag_dest_add_uri_targets (GtkWidget *widget); | |
22163 | ||
22164 | void gtk_drag_dest_set_track_motion (GtkWidget *widget, | |
22165 | gboolean track_motion); | |
22166 | gboolean gtk_drag_dest_get_track_motion (GtkWidget *widget); | |
22167 | ||
22168 | ||
22169 | ||
22170 | void gtk_drag_source_set (GtkWidget *widget, | |
22171 | GdkModifierType start_button_mask, | |
22172 | const GtkTargetEntry *targets, | |
22173 | gint n_targets, | |
22174 | GdkDragAction actions); | |
22175 | ||
22176 | void gtk_drag_source_unset (GtkWidget *widget); | |
22177 | ||
22178 | GtkTargetList* gtk_drag_source_get_target_list (GtkWidget *widget); | |
22179 | void gtk_drag_source_set_target_list (GtkWidget *widget, | |
22180 | GtkTargetList *target_list); | |
22181 | void gtk_drag_source_add_text_targets (GtkWidget *widget); | |
22182 | void gtk_drag_source_add_image_targets (GtkWidget *widget); | |
22183 | void gtk_drag_source_add_uri_targets (GtkWidget *widget); | |
22184 | ||
22185 | void gtk_drag_source_set_icon (GtkWidget *widget, | |
22186 | GdkColormap *colormap, | |
22187 | GdkPixmap *pixmap, | |
22188 | GdkBitmap *mask); | |
22189 | void gtk_drag_source_set_icon_pixbuf (GtkWidget *widget, | |
22190 | GdkPixbuf *pixbuf); | |
22191 | void gtk_drag_source_set_icon_stock (GtkWidget *widget, | |
22192 | const gchar *stock_id); | |
22193 | void gtk_drag_source_set_icon_name (GtkWidget *widget, | |
22194 | const gchar *icon_name); | |
22195 | ||
22196 | ||
22197 | ||
22198 | ||
22199 | ||
22200 | GdkDragContext *gtk_drag_begin (GtkWidget *widget, | |
22201 | GtkTargetList *targets, | |
22202 | GdkDragAction actions, | |
22203 | gint button, | |
22204 | GdkEvent *event); | |
22205 | ||
22206 | ||
22207 | ||
22208 | void gtk_drag_set_icon_widget (GdkDragContext *context, | |
22209 | GtkWidget *widget, | |
22210 | gint hot_x, | |
22211 | gint hot_y); | |
22212 | void gtk_drag_set_icon_pixmap (GdkDragContext *context, | |
22213 | GdkColormap *colormap, | |
22214 | GdkPixmap *pixmap, | |
22215 | GdkBitmap *mask, | |
22216 | gint hot_x, | |
22217 | gint hot_y); | |
22218 | void gtk_drag_set_icon_pixbuf (GdkDragContext *context, | |
22219 | GdkPixbuf *pixbuf, | |
22220 | gint hot_x, | |
22221 | gint hot_y); | |
22222 | void gtk_drag_set_icon_stock (GdkDragContext *context, | |
22223 | const gchar *stock_id, | |
22224 | gint hot_x, | |
22225 | gint hot_y); | |
22226 | void gtk_drag_set_icon_name (GdkDragContext *context, | |
22227 | const gchar *icon_name, | |
22228 | gint hot_x, | |
22229 | gint hot_y); | |
22230 | ||
22231 | void gtk_drag_set_icon_default (GdkDragContext *context); | |
22232 | ||
22233 | gboolean gtk_drag_check_threshold (GtkWidget *widget, | |
22234 | gint start_x, | |
22235 | gint start_y, | |
22236 | gint current_x, | |
22237 | gint current_y); | |
22238 | ||
22239 | ||
22240 | void _gtk_drag_source_handle_event (GtkWidget *widget, | |
22241 | GdkEvent *event); | |
22242 | void _gtk_drag_dest_handle_event (GtkWidget *toplevel, | |
22243 | GdkEvent *event); | |
22244 | ||
22245 | ||
22246 | void gtk_drag_set_default_icon (GdkColormap *colormap, | |
22247 | GdkPixmap *pixmap, | |
22248 | GdkBitmap *mask, | |
22249 | gint hot_x, | |
22250 | gint hot_y); | |
22251 | ||
22252 | ||
22253 | ||
22254 | # 42 "gtknotebook.c" 2 | |
22255 | # 1 "gtkbuildable.h" 1 | |
22256 | # 25 "gtkbuildable.h" | |
22257 | # 1 "../gtk/gtkbuilder.h" 1 | |
22258 | # 25 "../gtk/gtkbuilder.h" | |
22259 | ||
22260 | # 36 "../gtk/gtkbuilder.h" | |
22261 | typedef struct _GtkBuilder GtkBuilder; | |
22262 | typedef struct _GtkBuilderClass GtkBuilderClass; | |
22263 | typedef struct _GtkBuilderPrivate GtkBuilderPrivate; | |
22264 | ||
22265 | typedef enum | |
22266 | { | |
22267 | GTK_BUILDER_ERROR_INVALID_TYPE_FUNCTION, | |
22268 | GTK_BUILDER_ERROR_UNHANDLED_TAG, | |
22269 | GTK_BUILDER_ERROR_MISSING_ATTRIBUTE, | |
22270 | GTK_BUILDER_ERROR_INVALID_ATTRIBUTE, | |
22271 | GTK_BUILDER_ERROR_INVALID_TAG, | |
22272 | GTK_BUILDER_ERROR_MISSING_PROPERTY_VALUE, | |
22273 | GTK_BUILDER_ERROR_INVALID_VALUE | |
22274 | } GtkBuilderError; | |
22275 | ||
22276 | GQuark gtk_builder_error_quark (void); | |
22277 | ||
22278 | struct _GtkBuilder | |
22279 | { | |
22280 | GObject parent_instance; | |
22281 | ||
22282 | GtkBuilderPrivate *priv; | |
22283 | }; | |
22284 | ||
22285 | struct _GtkBuilderClass | |
22286 | { | |
22287 | GObjectClass parent_class; | |
22288 | ||
22289 | GType (* get_type_from_name) (GtkBuilder *builder, | |
22290 | const char *type_name); | |
22291 | ||
22292 | ||
22293 | void (*_gtk_reserved1) (void); | |
22294 | void (*_gtk_reserved2) (void); | |
22295 | void (*_gtk_reserved3) (void); | |
22296 | void (*_gtk_reserved4) (void); | |
22297 | void (*_gtk_reserved5) (void); | |
22298 | void (*_gtk_reserved6) (void); | |
22299 | void (*_gtk_reserved7) (void); | |
22300 | void (*_gtk_reserved8) (void); | |
22301 | }; | |
22302 | ||
22303 | typedef void (*GtkBuilderConnectFunc) (GtkBuilder *builder, | |
22304 | GObject *object, | |
22305 | const gchar *signal_name, | |
22306 | const gchar *handler_name, | |
22307 | GObject *connect_object, | |
22308 | GConnectFlags flags, | |
22309 | gpointer user_data); | |
22310 | ||
22311 | GType gtk_builder_get_type (void) __attribute__((__const__)); | |
22312 | GtkBuilder* gtk_builder_new (void); | |
22313 | ||
22314 | guint gtk_builder_add_from_file (GtkBuilder *builder, | |
22315 | const gchar *filename, | |
22316 | GError **error); | |
22317 | guint gtk_builder_add_from_string (GtkBuilder *builder, | |
22318 | const gchar *buffer, | |
22319 | gsize length, | |
22320 | GError **error); | |
22321 | GObject* gtk_builder_get_object (GtkBuilder *builder, | |
22322 | const gchar *name); | |
22323 | GSList* gtk_builder_get_objects (GtkBuilder *builder); | |
22324 | void gtk_builder_connect_signals (GtkBuilder *builder, | |
22325 | gpointer user_data); | |
22326 | void gtk_builder_connect_signals_full (GtkBuilder *builder, | |
22327 | GtkBuilderConnectFunc func, | |
22328 | gpointer user_data); | |
22329 | void gtk_builder_set_translation_domain (GtkBuilder *builder, | |
22330 | const gchar *domain); | |
22331 | const gchar* gtk_builder_get_translation_domain (GtkBuilder *builder); | |
22332 | GType gtk_builder_get_type_from_name (GtkBuilder *builder, | |
22333 | const char *type_name); | |
22334 | ||
22335 | gboolean gtk_builder_value_from_string (GtkBuilder *builder, | |
22336 | GParamSpec *pspec, | |
22337 | const gchar *string, | |
22338 | GValue *value, | |
22339 | GError **error); | |
22340 | gboolean gtk_builder_value_from_string_type (GtkBuilder *builder, | |
22341 | GType type, | |
22342 | const gchar *string, | |
22343 | GValue *value, | |
22344 | GError **error); | |
22345 | ||
22346 | ||
22347 | ||
22348 | ||
22349 | ||
22350 | # 26 "gtkbuildable.h" 2 | |
22351 | ||
22352 | ||
22353 | ||
22354 | ||
22355 | ||
22356 | ||
22357 | ||
22358 | ||
22359 | ||
22360 | ||
22361 | typedef struct _GtkBuildable GtkBuildable; | |
22362 | typedef struct _GtkBuildableIface GtkBuildableIface; | |
22363 | ||
22364 | struct _GtkBuildableIface | |
22365 | { | |
22366 | GTypeInterface g_iface; | |
22367 | ||
22368 | ||
22369 | void (* set_name) (GtkBuildable *buildable, | |
22370 | const gchar *name); | |
22371 | const gchar * (* get_name) (GtkBuildable *buildable); | |
22372 | void (* add_child) (GtkBuildable *buildable, | |
22373 | GtkBuilder *builder, | |
22374 | GObject *child, | |
22375 | const gchar *type); | |
22376 | void (* set_buildable_property) (GtkBuildable *buildable, | |
22377 | GtkBuilder *builder, | |
22378 | const gchar *name, | |
22379 | const GValue *value); | |
22380 | GObject * (* construct_child) (GtkBuildable *buildable, | |
22381 | GtkBuilder *builder, | |
22382 | const gchar *name); | |
22383 | gboolean (* custom_tag_start) (GtkBuildable *buildable, | |
22384 | GtkBuilder *builder, | |
22385 | GObject *child, | |
22386 | const gchar *tagname, | |
22387 | GMarkupParser *parser, | |
22388 | gpointer *data); | |
22389 | void (* custom_tag_end) (GtkBuildable *buildable, | |
22390 | GtkBuilder *builder, | |
22391 | GObject *child, | |
22392 | const gchar *tagname, | |
22393 | gpointer *data); | |
22394 | void (* custom_finished) (GtkBuildable *buildable, | |
22395 | GtkBuilder *builder, | |
22396 | GObject *child, | |
22397 | const gchar *tagname, | |
22398 | gpointer data); | |
22399 | void (* parser_finished) (GtkBuildable *buildable, | |
22400 | GtkBuilder *builder); | |
22401 | ||
22402 | GObject * (* get_internal_child) (GtkBuildable *buildable, | |
22403 | GtkBuilder *builder, | |
22404 | const gchar *childname); | |
22405 | }; | |
22406 | ||
22407 | ||
22408 | GType gtk_buildable_get_type (void) __attribute__((__const__)); | |
22409 | ||
22410 | void gtk_buildable_set_name (GtkBuildable *buildable, | |
22411 | const gchar *name); | |
22412 | const gchar * gtk_buildable_get_name (GtkBuildable *buildable); | |
22413 | void gtk_buildable_add_child (GtkBuildable *buildable, | |
22414 | GtkBuilder *builder, | |
22415 | GObject *child, | |
22416 | const gchar *type); | |
22417 | void gtk_buildable_set_buildable_property (GtkBuildable *buildable, | |
22418 | GtkBuilder *builder, | |
22419 | const gchar *name, | |
22420 | const GValue *value); | |
22421 | GObject * gtk_buildable_construct_child (GtkBuildable *buildable, | |
22422 | GtkBuilder *builder, | |
22423 | const gchar *name); | |
22424 | gboolean gtk_buildable_custom_tag_start (GtkBuildable *buildable, | |
22425 | GtkBuilder *builder, | |
22426 | GObject *child, | |
22427 | const gchar *tagname, | |
22428 | GMarkupParser *parser, | |
22429 | gpointer *data); | |
22430 | void gtk_buildable_custom_tag_end (GtkBuildable *buildable, | |
22431 | GtkBuilder *builder, | |
22432 | GObject *child, | |
22433 | const gchar *tagname, | |
22434 | gpointer *data); | |
22435 | void gtk_buildable_custom_finished (GtkBuildable *buildable, | |
22436 | GtkBuilder *builder, | |
22437 | GObject *child, | |
22438 | const gchar *tagname, | |
22439 | gpointer data); | |
22440 | void gtk_buildable_parser_finished (GtkBuildable *buildable, | |
22441 | GtkBuilder *builder); | |
22442 | GObject * gtk_buildable_get_internal_child (GtkBuildable *buildable, | |
22443 | GtkBuilder *builder, | |
22444 | const gchar *childname); | |
22445 | ||
22446 | ||
22447 | # 43 "gtknotebook.c" 2 | |
22448 | # 1 "gtkalias.h" 1 | |
22449 | # 125 "gtkalias.h" | |
22450 | extern __typeof (gtk_accelerator_get_default_mod_mask) IA__gtk_accelerator_get_default_mod_mask __attribute((visibility("hidden"))); | |
22451 | ||
22452 | ||
22453 | extern __typeof (gtk_accelerator_get_label) IA__gtk_accelerator_get_label __attribute((visibility("hidden"))); | |
22454 | ||
22455 | ||
22456 | extern __typeof (gtk_accelerator_name) IA__gtk_accelerator_name __attribute((visibility("hidden"))); | |
22457 | ||
22458 | ||
22459 | extern __typeof (gtk_accelerator_parse) IA__gtk_accelerator_parse __attribute((visibility("hidden"))); | |
22460 | ||
22461 | ||
22462 | extern __typeof (gtk_accelerator_set_default_mod_mask) IA__gtk_accelerator_set_default_mod_mask __attribute((visibility("hidden"))); | |
22463 | ||
22464 | ||
22465 | extern __typeof (gtk_accelerator_valid) IA__gtk_accelerator_valid __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22466 | ||
22467 | ||
22468 | extern __typeof (gtk_accel_group_activate) IA__gtk_accel_group_activate __attribute((visibility("hidden"))); | |
22469 | ||
22470 | ||
22471 | extern __typeof (gtk_accel_group_connect) IA__gtk_accel_group_connect __attribute((visibility("hidden"))); | |
22472 | ||
22473 | ||
22474 | extern __typeof (gtk_accel_group_connect_by_path) IA__gtk_accel_group_connect_by_path __attribute((visibility("hidden"))); | |
22475 | ||
22476 | ||
22477 | extern __typeof (gtk_accel_group_disconnect) IA__gtk_accel_group_disconnect __attribute((visibility("hidden"))); | |
22478 | ||
22479 | ||
22480 | extern __typeof (gtk_accel_group_disconnect_key) IA__gtk_accel_group_disconnect_key __attribute((visibility("hidden"))); | |
22481 | ||
22482 | ||
22483 | extern __typeof (gtk_accel_group_find) IA__gtk_accel_group_find __attribute((visibility("hidden"))); | |
22484 | ||
22485 | ||
22486 | extern __typeof (gtk_accel_group_from_accel_closure) IA__gtk_accel_group_from_accel_closure __attribute((visibility("hidden"))); | |
22487 | ||
22488 | ||
22489 | extern __typeof (gtk_accel_group_get_type) IA__gtk_accel_group_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22490 | ||
22491 | ||
22492 | extern __typeof (gtk_accel_group_lock) IA__gtk_accel_group_lock __attribute((visibility("hidden"))); | |
22493 | ||
22494 | ||
22495 | extern __typeof (gtk_accel_group_new) IA__gtk_accel_group_new __attribute((visibility("hidden"))); | |
22496 | ||
22497 | ||
22498 | extern __typeof (gtk_accel_group_query) IA__gtk_accel_group_query __attribute((visibility("hidden"))); | |
22499 | ||
22500 | ||
22501 | extern __typeof (gtk_accel_groups_activate) IA__gtk_accel_groups_activate __attribute((visibility("hidden"))); | |
22502 | ||
22503 | ||
22504 | extern __typeof (gtk_accel_groups_from_object) IA__gtk_accel_groups_from_object __attribute((visibility("hidden"))); | |
22505 | ||
22506 | ||
22507 | extern __typeof (gtk_accel_group_unlock) IA__gtk_accel_group_unlock __attribute((visibility("hidden"))); | |
22508 | # 432 "gtkalias.h" | |
22509 | extern __typeof (gtk_adjustment_changed) IA__gtk_adjustment_changed __attribute((visibility("hidden"))); | |
22510 | ||
22511 | ||
22512 | extern __typeof (gtk_adjustment_clamp_page) IA__gtk_adjustment_clamp_page __attribute((visibility("hidden"))); | |
22513 | ||
22514 | ||
22515 | extern __typeof (gtk_adjustment_get_type) IA__gtk_adjustment_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22516 | ||
22517 | ||
22518 | extern __typeof (gtk_adjustment_get_value) IA__gtk_adjustment_get_value __attribute((visibility("hidden"))); | |
22519 | ||
22520 | ||
22521 | extern __typeof (gtk_adjustment_new) IA__gtk_adjustment_new __attribute((visibility("hidden"))); | |
22522 | ||
22523 | ||
22524 | extern __typeof (gtk_adjustment_set_value) IA__gtk_adjustment_set_value __attribute((visibility("hidden"))); | |
22525 | ||
22526 | ||
22527 | extern __typeof (gtk_adjustment_value_changed) IA__gtk_adjustment_value_changed __attribute((visibility("hidden"))); | |
22528 | # 549 "gtkalias.h" | |
22529 | extern __typeof (gtk_pack_direction_get_type) IA__gtk_pack_direction_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22530 | ||
22531 | ||
22532 | extern __typeof (gtk_ui_manager_item_type_get_type) IA__gtk_ui_manager_item_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22533 | ||
22534 | ||
22535 | extern __typeof (gtk_spin_button_update_policy_get_type) IA__gtk_spin_button_update_policy_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22536 | ||
22537 | ||
22538 | extern __typeof (gtk_notebook_tab_get_type) IA__gtk_notebook_tab_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22539 | ||
22540 | ||
22541 | extern __typeof (gtk_anchor_type_get_type) IA__gtk_anchor_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22542 | ||
22543 | ||
22544 | extern __typeof (gtk_arg_flags_get_type) IA__gtk_arg_flags_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22545 | ||
22546 | ||
22547 | extern __typeof (gtk_arrow_type_get_type) IA__gtk_arrow_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22548 | ||
22549 | ||
22550 | extern __typeof (gtk_assistant_page_type_get_type) IA__gtk_assistant_page_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22551 | ||
22552 | ||
22553 | extern __typeof (gtk_attach_options_get_type) IA__gtk_attach_options_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22554 | ||
22555 | ||
22556 | extern __typeof (gtk_builder_error_get_type) IA__gtk_builder_error_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22557 | ||
22558 | ||
22559 | extern __typeof (gtk_button_action_get_type) IA__gtk_button_action_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22560 | ||
22561 | ||
22562 | extern __typeof (gtk_buttons_type_get_type) IA__gtk_buttons_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22563 | ||
22564 | ||
22565 | extern __typeof (gtk_calendar_display_options_get_type) IA__gtk_calendar_display_options_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22566 | ||
22567 | ||
22568 | extern __typeof (gtk_cell_renderer_mode_get_type) IA__gtk_cell_renderer_mode_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22569 | ||
22570 | ||
22571 | extern __typeof (gtk_cell_renderer_state_get_type) IA__gtk_cell_renderer_state_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22572 | ||
22573 | ||
22574 | extern __typeof (gtk_cell_renderer_accel_mode_get_type) IA__gtk_cell_renderer_accel_mode_get_type __attribute((visibility("hidden"))); | |
22575 | ||
22576 | ||
22577 | extern __typeof (gtk_corner_type_get_type) IA__gtk_corner_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22578 | ||
22579 | ||
22580 | extern __typeof (gtk_debug_flag_get_type) IA__gtk_debug_flag_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22581 | ||
22582 | ||
22583 | extern __typeof (gtk_delete_type_get_type) IA__gtk_delete_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22584 | ||
22585 | ||
22586 | extern __typeof (gtk_dest_defaults_get_type) IA__gtk_dest_defaults_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22587 | ||
22588 | ||
22589 | extern __typeof (gtk_drag_result_get_type) IA__gtk_drag_result_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22590 | ||
22591 | ||
22592 | extern __typeof (gtk_clist_drag_pos_get_type) IA__gtk_clist_drag_pos_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22593 | ||
22594 | ||
22595 | extern __typeof (gtk_dialog_flags_get_type) IA__gtk_dialog_flags_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22596 | ||
22597 | ||
22598 | extern __typeof (gtk_direction_type_get_type) IA__gtk_direction_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22599 | ||
22600 | ||
22601 | extern __typeof (gtk_expander_style_get_type) IA__gtk_expander_style_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22602 | ||
22603 | ||
22604 | extern __typeof (gtk_file_chooser_action_get_type) IA__gtk_file_chooser_action_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22605 | ||
22606 | ||
22607 | extern __typeof (gtk_file_chooser_confirmation_get_type) IA__gtk_file_chooser_confirmation_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22608 | ||
22609 | ||
22610 | extern __typeof (gtk_file_filter_flags_get_type) IA__gtk_file_filter_flags_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22611 | ||
22612 | ||
22613 | extern __typeof (gtk_icon_view_drop_position_get_type) IA__gtk_icon_view_drop_position_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22614 | ||
22615 | ||
22616 | extern __typeof (gtk_sensitivity_type_get_type) IA__gtk_sensitivity_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22617 | ||
22618 | ||
22619 | extern __typeof (gtk_window_type_get_type) IA__gtk_window_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22620 | ||
22621 | ||
22622 | extern __typeof (gtk_wrap_mode_get_type) IA__gtk_wrap_mode_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22623 | ||
22624 | ||
22625 | extern __typeof (gtk_widget_flags_get_type) IA__gtk_widget_flags_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22626 | ||
22627 | ||
22628 | extern __typeof (gtk_widget_help_type_get_type) IA__gtk_widget_help_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22629 | ||
22630 | ||
22631 | extern __typeof (gtk_window_position_get_type) IA__gtk_window_position_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22632 | ||
22633 | ||
22634 | extern __typeof (gtk_tree_view_column_sizing_get_type) IA__gtk_tree_view_column_sizing_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22635 | ||
22636 | ||
22637 | extern __typeof (gtk_tree_view_drop_position_get_type) IA__gtk_tree_view_drop_position_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22638 | ||
22639 | ||
22640 | extern __typeof (gtk_button_box_style_get_type) IA__gtk_button_box_style_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22641 | ||
22642 | ||
22643 | extern __typeof (gtk_cell_type_get_type) IA__gtk_cell_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22644 | ||
22645 | ||
22646 | extern __typeof (gtk_ctree_expander_style_get_type) IA__gtk_ctree_expander_style_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22647 | ||
22648 | ||
22649 | extern __typeof (gtk_ctree_expansion_type_get_type) IA__gtk_ctree_expansion_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22650 | ||
22651 | ||
22652 | extern __typeof (gtk_ctree_line_style_get_type) IA__gtk_ctree_line_style_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22653 | ||
22654 | ||
22655 | extern __typeof (gtk_ctree_pos_get_type) IA__gtk_ctree_pos_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22656 | ||
22657 | ||
22658 | extern __typeof (gtk_curve_type_get_type) IA__gtk_curve_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22659 | ||
22660 | ||
22661 | extern __typeof (gtk_icon_lookup_flags_get_type) IA__gtk_icon_lookup_flags_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22662 | ||
22663 | ||
22664 | extern __typeof (gtk_image_type_get_type) IA__gtk_image_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22665 | ||
22666 | ||
22667 | extern __typeof (gtk_im_preedit_style_get_type) IA__gtk_im_preedit_style_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22668 | ||
22669 | ||
22670 | extern __typeof (gtk_im_status_style_get_type) IA__gtk_im_status_style_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22671 | ||
22672 | ||
22673 | extern __typeof (gtk_justification_get_type) IA__gtk_justification_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22674 | ||
22675 | ||
22676 | extern __typeof (gtk_match_type_get_type) IA__gtk_match_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22677 | ||
22678 | ||
22679 | extern __typeof (gtk_menu_direction_type_get_type) IA__gtk_menu_direction_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22680 | ||
22681 | ||
22682 | extern __typeof (gtk_message_type_get_type) IA__gtk_message_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22683 | ||
22684 | ||
22685 | extern __typeof (gtk_metric_type_get_type) IA__gtk_metric_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22686 | ||
22687 | ||
22688 | extern __typeof (gtk_movement_step_get_type) IA__gtk_movement_step_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22689 | ||
22690 | ||
22691 | extern __typeof (gtk_orientation_get_type) IA__gtk_orientation_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22692 | ||
22693 | ||
22694 | extern __typeof (gtk_pack_type_get_type) IA__gtk_pack_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22695 | ||
22696 | ||
22697 | extern __typeof (gtk_page_orientation_get_type) IA__gtk_page_orientation_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22698 | ||
22699 | ||
22700 | extern __typeof (gtk_print_operation_result_get_type) IA__gtk_print_operation_result_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22701 | ||
22702 | ||
22703 | extern __typeof (gtk_print_pages_get_type) IA__gtk_print_pages_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22704 | ||
22705 | ||
22706 | extern __typeof (gtk_print_quality_get_type) IA__gtk_print_quality_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22707 | ||
22708 | ||
22709 | extern __typeof (gtk_print_status_get_type) IA__gtk_print_status_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22710 | ||
22711 | ||
22712 | extern __typeof (gtk_page_set_get_type) IA__gtk_page_set_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22713 | ||
22714 | ||
22715 | extern __typeof (gtk_path_priority_type_get_type) IA__gtk_path_priority_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22716 | ||
22717 | ||
22718 | extern __typeof (gtk_path_type_get_type) IA__gtk_path_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22719 | ||
22720 | ||
22721 | extern __typeof (gtk_policy_type_get_type) IA__gtk_policy_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22722 | ||
22723 | ||
22724 | extern __typeof (gtk_position_type_get_type) IA__gtk_position_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22725 | ||
22726 | ||
22727 | extern __typeof (gtk_preview_type_get_type) IA__gtk_preview_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22728 | ||
22729 | ||
22730 | extern __typeof (gtk_print_duplex_get_type) IA__gtk_print_duplex_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22731 | ||
22732 | ||
22733 | extern __typeof (gtk_print_error_get_type) IA__gtk_print_error_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22734 | ||
22735 | ||
22736 | extern __typeof (gtk_recent_filter_flags_get_type) IA__gtk_recent_filter_flags_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22737 | ||
22738 | ||
22739 | extern __typeof (gtk_print_operation_action_get_type) IA__gtk_print_operation_action_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22740 | ||
22741 | ||
22742 | extern __typeof (gtk_private_flags_get_type) IA__gtk_private_flags_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22743 | ||
22744 | ||
22745 | extern __typeof (gtk_progress_bar_orientation_get_type) IA__gtk_progress_bar_orientation_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22746 | ||
22747 | ||
22748 | extern __typeof (gtk_progress_bar_style_get_type) IA__gtk_progress_bar_style_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22749 | ||
22750 | ||
22751 | extern __typeof (gtk_rc_flags_get_type) IA__gtk_rc_flags_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22752 | ||
22753 | ||
22754 | extern __typeof (gtk_rc_token_type_get_type) IA__gtk_rc_token_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22755 | ||
22756 | ||
22757 | extern __typeof (gtk_recent_chooser_error_get_type) IA__gtk_recent_chooser_error_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22758 | ||
22759 | ||
22760 | extern __typeof (gtk_recent_manager_error_get_type) IA__gtk_recent_manager_error_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22761 | ||
22762 | ||
22763 | extern __typeof (gtk_recent_sort_type_get_type) IA__gtk_recent_sort_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22764 | ||
22765 | ||
22766 | extern __typeof (gtk_unit_get_type) IA__gtk_unit_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22767 | ||
22768 | ||
22769 | extern __typeof (gtk_relief_style_get_type) IA__gtk_relief_style_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22770 | ||
22771 | ||
22772 | extern __typeof (gtk_resize_mode_get_type) IA__gtk_resize_mode_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22773 | ||
22774 | ||
22775 | extern __typeof (gtk_response_type_get_type) IA__gtk_response_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22776 | ||
22777 | ||
22778 | extern __typeof (gtk_scroll_step_get_type) IA__gtk_scroll_step_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22779 | ||
22780 | ||
22781 | extern __typeof (gtk_scroll_type_get_type) IA__gtk_scroll_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22782 | ||
22783 | ||
22784 | extern __typeof (gtk_selection_mode_get_type) IA__gtk_selection_mode_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22785 | ||
22786 | ||
22787 | extern __typeof (gtk_shadow_type_get_type) IA__gtk_shadow_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22788 | ||
22789 | ||
22790 | extern __typeof (gtk_side_type_get_type) IA__gtk_side_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22791 | ||
22792 | ||
22793 | extern __typeof (gtk_signal_run_type_get_type) IA__gtk_signal_run_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22794 | ||
22795 | ||
22796 | extern __typeof (gtk_size_group_mode_get_type) IA__gtk_size_group_mode_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22797 | ||
22798 | ||
22799 | extern __typeof (gtk_sort_type_get_type) IA__gtk_sort_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22800 | ||
22801 | ||
22802 | extern __typeof (gtk_spin_type_get_type) IA__gtk_spin_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22803 | ||
22804 | ||
22805 | extern __typeof (gtk_state_type_get_type) IA__gtk_state_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22806 | ||
22807 | ||
22808 | extern __typeof (gtk_submenu_direction_get_type) IA__gtk_submenu_direction_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22809 | ||
22810 | ||
22811 | extern __typeof (gtk_submenu_placement_get_type) IA__gtk_submenu_placement_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22812 | ||
22813 | ||
22814 | extern __typeof (gtk_target_flags_get_type) IA__gtk_target_flags_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22815 | ||
22816 | ||
22817 | extern __typeof (gtk_text_direction_get_type) IA__gtk_text_direction_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22818 | ||
22819 | ||
22820 | extern __typeof (gtk_text_buffer_target_info_get_type) IA__gtk_text_buffer_target_info_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22821 | ||
22822 | ||
22823 | extern __typeof (gtk_text_search_flags_get_type) IA__gtk_text_search_flags_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22824 | ||
22825 | ||
22826 | extern __typeof (gtk_text_window_type_get_type) IA__gtk_text_window_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22827 | ||
22828 | ||
22829 | extern __typeof (gtk_tree_model_flags_get_type) IA__gtk_tree_model_flags_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22830 | ||
22831 | ||
22832 | extern __typeof (gtk_tree_view_mode_get_type) IA__gtk_tree_view_mode_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22833 | ||
22834 | ||
22835 | extern __typeof (gtk_tree_view_grid_lines_get_type) IA__gtk_tree_view_grid_lines_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22836 | ||
22837 | ||
22838 | extern __typeof (gtk_update_type_get_type) IA__gtk_update_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22839 | ||
22840 | ||
22841 | extern __typeof (gtk_visibility_get_type) IA__gtk_visibility_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22842 | ||
22843 | ||
22844 | extern __typeof (gtk_object_flags_get_type) IA__gtk_object_flags_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22845 | ||
22846 | ||
22847 | extern __typeof (gtk_accel_flags_get_type) IA__gtk_accel_flags_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22848 | ||
22849 | ||
22850 | extern __typeof (gtk_icon_size_get_type) IA__gtk_icon_size_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22851 | ||
22852 | ||
22853 | extern __typeof (gtk_file_chooser_error_get_type) IA__gtk_file_chooser_error_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22854 | ||
22855 | ||
22856 | extern __typeof (gtk_icon_theme_error_get_type) IA__gtk_icon_theme_error_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22857 | ||
22858 | ||
22859 | extern __typeof (gtk_toolbar_child_type_get_type) IA__gtk_toolbar_child_type_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22860 | ||
22861 | ||
22862 | extern __typeof (gtk_toolbar_space_style_get_type) IA__gtk_toolbar_space_style_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22863 | ||
22864 | ||
22865 | extern __typeof (gtk_toolbar_style_get_type) IA__gtk_toolbar_style_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22866 | # 919 "gtkalias.h" | |
22867 | extern __typeof (gtk_binding_entry_clear) IA__gtk_binding_entry_clear __attribute((visibility("hidden"))); | |
22868 | ||
22869 | ||
22870 | extern __typeof (gtk_binding_entry_add_signall) IA__gtk_binding_entry_add_signall __attribute((visibility("hidden"))); | |
22871 | ||
22872 | ||
22873 | extern __typeof (gtk_binding_parse_binding) IA__gtk_binding_parse_binding __attribute((visibility("hidden"))); | |
22874 | ||
22875 | ||
22876 | ||
22877 | extern __typeof (gtk_binding_entry_skip) IA__gtk_binding_entry_skip __attribute((visibility("hidden"))); | |
22878 | ||
22879 | ||
22880 | extern __typeof (gtk_binding_entry_add_signal) IA__gtk_binding_entry_add_signal __attribute((visibility("hidden"))); | |
22881 | ||
22882 | ||
22883 | extern __typeof (gtk_binding_entry_remove) IA__gtk_binding_entry_remove __attribute((visibility("hidden"))); | |
22884 | ||
22885 | ||
22886 | extern __typeof (gtk_bindings_activate) IA__gtk_bindings_activate __attribute((visibility("hidden"))); | |
22887 | ||
22888 | ||
22889 | extern __typeof (gtk_bindings_activate_event) IA__gtk_bindings_activate_event __attribute((visibility("hidden"))); | |
22890 | ||
22891 | ||
22892 | extern __typeof (gtk_binding_set_activate) IA__gtk_binding_set_activate __attribute((visibility("hidden"))); | |
22893 | ||
22894 | ||
22895 | extern __typeof (gtk_binding_set_add_path) IA__gtk_binding_set_add_path __attribute((visibility("hidden"))); | |
22896 | ||
22897 | ||
22898 | extern __typeof (gtk_binding_set_by_class) IA__gtk_binding_set_by_class __attribute((visibility("hidden"))); | |
22899 | ||
22900 | ||
22901 | extern __typeof (gtk_binding_set_find) IA__gtk_binding_set_find __attribute((visibility("hidden"))); | |
22902 | ||
22903 | ||
22904 | extern __typeof (gtk_binding_set_new) IA__gtk_binding_set_new __attribute((visibility("hidden"))); | |
22905 | ||
22906 | ||
22907 | ||
22908 | ||
22909 | ||
22910 | ||
22911 | extern __typeof (gtk_bin_get_child) IA__gtk_bin_get_child __attribute((visibility("hidden"))); | |
22912 | ||
22913 | ||
22914 | extern __typeof (gtk_bin_get_type) IA__gtk_bin_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22915 | # 1013 "gtkalias.h" | |
22916 | extern __typeof (gtk_buildable_add_child) IA__gtk_buildable_add_child __attribute((visibility("hidden"))); | |
22917 | ||
22918 | ||
22919 | extern __typeof (gtk_buildable_construct_child) IA__gtk_buildable_construct_child __attribute((visibility("hidden"))); | |
22920 | ||
22921 | ||
22922 | extern __typeof (gtk_buildable_custom_tag_start) IA__gtk_buildable_custom_tag_start __attribute((visibility("hidden"))); | |
22923 | ||
22924 | ||
22925 | extern __typeof (gtk_buildable_custom_tag_end) IA__gtk_buildable_custom_tag_end __attribute((visibility("hidden"))); | |
22926 | ||
22927 | ||
22928 | extern __typeof (gtk_buildable_custom_finished) IA__gtk_buildable_custom_finished __attribute((visibility("hidden"))); | |
22929 | ||
22930 | ||
22931 | extern __typeof (gtk_buildable_get_internal_child) IA__gtk_buildable_get_internal_child __attribute((visibility("hidden"))); | |
22932 | ||
22933 | ||
22934 | extern __typeof (gtk_buildable_get_name) IA__gtk_buildable_get_name __attribute((visibility("hidden"))); | |
22935 | ||
22936 | ||
22937 | extern __typeof (gtk_buildable_get_type) IA__gtk_buildable_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22938 | ||
22939 | ||
22940 | extern __typeof (gtk_buildable_parser_finished) IA__gtk_buildable_parser_finished __attribute((visibility("hidden"))); | |
22941 | ||
22942 | ||
22943 | extern __typeof (gtk_buildable_set_name) IA__gtk_buildable_set_name __attribute((visibility("hidden"))); | |
22944 | ||
22945 | ||
22946 | extern __typeof (gtk_buildable_set_buildable_property) IA__gtk_buildable_set_buildable_property __attribute((visibility("hidden"))); | |
22947 | ||
22948 | ||
22949 | ||
22950 | ||
22951 | ||
22952 | ||
22953 | extern __typeof (gtk_builder_add_from_file) IA__gtk_builder_add_from_file __attribute((visibility("hidden"))); | |
22954 | ||
22955 | ||
22956 | extern __typeof (gtk_builder_add_from_string) IA__gtk_builder_add_from_string __attribute((visibility("hidden"))); | |
22957 | ||
22958 | ||
22959 | extern __typeof (gtk_builder_error_quark) IA__gtk_builder_error_quark __attribute((visibility("hidden"))); | |
22960 | ||
22961 | ||
22962 | extern __typeof (gtk_builder_get_object) IA__gtk_builder_get_object __attribute((visibility("hidden"))); | |
22963 | ||
22964 | ||
22965 | extern __typeof (gtk_builder_get_objects) IA__gtk_builder_get_objects __attribute((visibility("hidden"))); | |
22966 | ||
22967 | ||
22968 | extern __typeof (gtk_builder_get_translation_domain) IA__gtk_builder_get_translation_domain __attribute((visibility("hidden"))); | |
22969 | ||
22970 | ||
22971 | extern __typeof (gtk_builder_get_type) IA__gtk_builder_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
22972 | ||
22973 | ||
22974 | extern __typeof (gtk_builder_get_type_from_name) IA__gtk_builder_get_type_from_name __attribute((visibility("hidden"))); | |
22975 | ||
22976 | ||
22977 | extern __typeof (gtk_builder_new) IA__gtk_builder_new __attribute((visibility("hidden"))); | |
22978 | ||
22979 | ||
22980 | extern __typeof (gtk_builder_set_translation_domain) IA__gtk_builder_set_translation_domain __attribute((visibility("hidden"))); | |
22981 | ||
22982 | ||
22983 | extern __typeof (gtk_builder_connect_signals) IA__gtk_builder_connect_signals __attribute((visibility("hidden"))); | |
22984 | ||
22985 | ||
22986 | extern __typeof (gtk_builder_connect_signals_full) IA__gtk_builder_connect_signals_full __attribute((visibility("hidden"))); | |
22987 | ||
22988 | ||
22989 | extern __typeof (gtk_builder_value_from_string) IA__gtk_builder_value_from_string __attribute((visibility("hidden"))); | |
22990 | ||
22991 | ||
22992 | extern __typeof (gtk_builder_value_from_string_type) IA__gtk_builder_value_from_string_type __attribute((visibility("hidden"))); | |
22993 | # 2103 "gtkalias.h" | |
22994 | extern __typeof (gtk_container_add) IA__gtk_container_add __attribute((visibility("hidden"))); | |
22995 | ||
22996 | ||
22997 | extern __typeof (gtk_container_add_with_properties) IA__gtk_container_add_with_properties __attribute((visibility("hidden"))) __attribute__((__sentinel__)); | |
22998 | ||
22999 | ||
23000 | extern __typeof (gtk_container_check_resize) IA__gtk_container_check_resize __attribute((visibility("hidden"))); | |
23001 | ||
23002 | ||
23003 | extern __typeof (gtk_container_child_get) IA__gtk_container_child_get __attribute((visibility("hidden"))) __attribute__((__sentinel__)); | |
23004 | ||
23005 | ||
23006 | extern __typeof (gtk_container_child_get_property) IA__gtk_container_child_get_property __attribute((visibility("hidden"))); | |
23007 | ||
23008 | ||
23009 | extern __typeof (gtk_container_child_get_valist) IA__gtk_container_child_get_valist __attribute((visibility("hidden"))); | |
23010 | ||
23011 | ||
23012 | extern __typeof (gtk_container_child_set) IA__gtk_container_child_set __attribute((visibility("hidden"))) __attribute__((__sentinel__)); | |
23013 | ||
23014 | ||
23015 | extern __typeof (gtk_container_child_set_property) IA__gtk_container_child_set_property __attribute((visibility("hidden"))); | |
23016 | ||
23017 | ||
23018 | extern __typeof (gtk_container_child_set_valist) IA__gtk_container_child_set_valist __attribute((visibility("hidden"))); | |
23019 | ||
23020 | ||
23021 | extern __typeof (gtk_container_child_type) IA__gtk_container_child_type __attribute((visibility("hidden"))); | |
23022 | ||
23023 | ||
23024 | extern __typeof (gtk_container_class_find_child_property) IA__gtk_container_class_find_child_property __attribute((visibility("hidden"))); | |
23025 | ||
23026 | ||
23027 | extern __typeof (gtk_container_class_install_child_property) IA__gtk_container_class_install_child_property __attribute((visibility("hidden"))); | |
23028 | ||
23029 | ||
23030 | extern __typeof (gtk_container_class_list_child_properties) IA__gtk_container_class_list_child_properties __attribute((visibility("hidden"))); | |
23031 | ||
23032 | ||
23033 | extern __typeof (gtk_container_forall) IA__gtk_container_forall __attribute((visibility("hidden"))); | |
23034 | ||
23035 | ||
23036 | extern __typeof (gtk_container_foreach) IA__gtk_container_foreach __attribute((visibility("hidden"))); | |
23037 | ||
23038 | ||
23039 | ||
23040 | extern __typeof (gtk_container_foreach_full) IA__gtk_container_foreach_full __attribute((visibility("hidden"))); | |
23041 | ||
23042 | ||
23043 | ||
23044 | extern __typeof (gtk_container_get_border_width) IA__gtk_container_get_border_width __attribute((visibility("hidden"))); | |
23045 | ||
23046 | ||
23047 | extern __typeof (gtk_container_get_children) IA__gtk_container_get_children __attribute((visibility("hidden"))); | |
23048 | ||
23049 | ||
23050 | extern __typeof (gtk_container_get_focus_chain) IA__gtk_container_get_focus_chain __attribute((visibility("hidden"))); | |
23051 | ||
23052 | ||
23053 | extern __typeof (gtk_container_get_focus_hadjustment) IA__gtk_container_get_focus_hadjustment __attribute((visibility("hidden"))); | |
23054 | ||
23055 | ||
23056 | extern __typeof (gtk_container_get_focus_vadjustment) IA__gtk_container_get_focus_vadjustment __attribute((visibility("hidden"))); | |
23057 | ||
23058 | ||
23059 | extern __typeof (gtk_container_get_resize_mode) IA__gtk_container_get_resize_mode __attribute((visibility("hidden"))); | |
23060 | ||
23061 | ||
23062 | extern __typeof (gtk_container_get_type) IA__gtk_container_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
23063 | ||
23064 | ||
23065 | extern __typeof (gtk_container_propagate_expose) IA__gtk_container_propagate_expose __attribute((visibility("hidden"))); | |
23066 | ||
23067 | ||
23068 | extern __typeof (gtk_container_remove) IA__gtk_container_remove __attribute((visibility("hidden"))); | |
23069 | ||
23070 | ||
23071 | extern __typeof (gtk_container_resize_children) IA__gtk_container_resize_children __attribute((visibility("hidden"))); | |
23072 | ||
23073 | ||
23074 | extern __typeof (gtk_container_set_border_width) IA__gtk_container_set_border_width __attribute((visibility("hidden"))); | |
23075 | ||
23076 | ||
23077 | extern __typeof (gtk_container_set_focus_chain) IA__gtk_container_set_focus_chain __attribute((visibility("hidden"))); | |
23078 | ||
23079 | ||
23080 | extern __typeof (gtk_container_set_focus_child) IA__gtk_container_set_focus_child __attribute((visibility("hidden"))); | |
23081 | ||
23082 | ||
23083 | extern __typeof (gtk_container_set_focus_hadjustment) IA__gtk_container_set_focus_hadjustment __attribute((visibility("hidden"))); | |
23084 | ||
23085 | ||
23086 | extern __typeof (gtk_container_set_focus_vadjustment) IA__gtk_container_set_focus_vadjustment __attribute((visibility("hidden"))); | |
23087 | ||
23088 | ||
23089 | extern __typeof (gtk_container_set_reallocate_redraws) IA__gtk_container_set_reallocate_redraws __attribute((visibility("hidden"))); | |
23090 | ||
23091 | ||
23092 | extern __typeof (gtk_container_set_resize_mode) IA__gtk_container_set_resize_mode __attribute((visibility("hidden"))); | |
23093 | ||
23094 | ||
23095 | extern __typeof (gtk_container_unset_focus_chain) IA__gtk_container_unset_focus_chain __attribute((visibility("hidden"))); | |
23096 | # 2517 "gtkalias.h" | |
23097 | extern __typeof (gtk_drag_begin) IA__gtk_drag_begin __attribute((visibility("hidden"))); | |
23098 | ||
23099 | ||
23100 | extern __typeof (gtk_drag_check_threshold) IA__gtk_drag_check_threshold __attribute((visibility("hidden"))); | |
23101 | ||
23102 | ||
23103 | extern __typeof (gtk_drag_dest_add_image_targets) IA__gtk_drag_dest_add_image_targets __attribute((visibility("hidden"))); | |
23104 | ||
23105 | ||
23106 | extern __typeof (gtk_drag_dest_add_text_targets) IA__gtk_drag_dest_add_text_targets __attribute((visibility("hidden"))); | |
23107 | ||
23108 | ||
23109 | extern __typeof (gtk_drag_dest_add_uri_targets) IA__gtk_drag_dest_add_uri_targets __attribute((visibility("hidden"))); | |
23110 | ||
23111 | ||
23112 | extern __typeof (gtk_drag_dest_find_target) IA__gtk_drag_dest_find_target __attribute((visibility("hidden"))); | |
23113 | ||
23114 | ||
23115 | extern __typeof (gtk_drag_dest_get_target_list) IA__gtk_drag_dest_get_target_list __attribute((visibility("hidden"))); | |
23116 | ||
23117 | ||
23118 | extern __typeof (gtk_drag_dest_set) IA__gtk_drag_dest_set __attribute((visibility("hidden"))); | |
23119 | ||
23120 | ||
23121 | extern __typeof (gtk_drag_dest_set_proxy) IA__gtk_drag_dest_set_proxy __attribute((visibility("hidden"))); | |
23122 | ||
23123 | ||
23124 | extern __typeof (gtk_drag_dest_set_target_list) IA__gtk_drag_dest_set_target_list __attribute((visibility("hidden"))); | |
23125 | ||
23126 | ||
23127 | extern __typeof (gtk_drag_dest_set_track_motion) IA__gtk_drag_dest_set_track_motion __attribute((visibility("hidden"))); | |
23128 | ||
23129 | ||
23130 | extern __typeof (gtk_drag_dest_get_track_motion) IA__gtk_drag_dest_get_track_motion __attribute((visibility("hidden"))); | |
23131 | ||
23132 | ||
23133 | extern __typeof (gtk_drag_dest_unset) IA__gtk_drag_dest_unset __attribute((visibility("hidden"))); | |
23134 | ||
23135 | ||
23136 | extern __typeof (gtk_drag_finish) IA__gtk_drag_finish __attribute((visibility("hidden"))); | |
23137 | ||
23138 | ||
23139 | extern __typeof (gtk_drag_get_data) IA__gtk_drag_get_data __attribute((visibility("hidden"))); | |
23140 | ||
23141 | ||
23142 | extern __typeof (gtk_drag_get_source_widget) IA__gtk_drag_get_source_widget __attribute((visibility("hidden"))); | |
23143 | ||
23144 | ||
23145 | extern __typeof (gtk_drag_highlight) IA__gtk_drag_highlight __attribute((visibility("hidden"))); | |
23146 | ||
23147 | ||
23148 | ||
23149 | extern __typeof (gtk_drag_set_default_icon) IA__gtk_drag_set_default_icon __attribute((visibility("hidden"))); | |
23150 | ||
23151 | ||
23152 | ||
23153 | extern __typeof (gtk_drag_set_icon_default) IA__gtk_drag_set_icon_default __attribute((visibility("hidden"))); | |
23154 | ||
23155 | ||
23156 | extern __typeof (gtk_drag_set_icon_name) IA__gtk_drag_set_icon_name __attribute((visibility("hidden"))); | |
23157 | ||
23158 | ||
23159 | extern __typeof (gtk_drag_set_icon_pixbuf) IA__gtk_drag_set_icon_pixbuf __attribute((visibility("hidden"))); | |
23160 | ||
23161 | ||
23162 | extern __typeof (gtk_drag_set_icon_pixmap) IA__gtk_drag_set_icon_pixmap __attribute((visibility("hidden"))); | |
23163 | ||
23164 | ||
23165 | extern __typeof (gtk_drag_set_icon_stock) IA__gtk_drag_set_icon_stock __attribute((visibility("hidden"))); | |
23166 | ||
23167 | ||
23168 | extern __typeof (gtk_drag_set_icon_widget) IA__gtk_drag_set_icon_widget __attribute((visibility("hidden"))); | |
23169 | ||
23170 | ||
23171 | extern __typeof (gtk_drag_source_add_image_targets) IA__gtk_drag_source_add_image_targets __attribute((visibility("hidden"))); | |
23172 | ||
23173 | ||
23174 | extern __typeof (gtk_drag_source_add_text_targets) IA__gtk_drag_source_add_text_targets __attribute((visibility("hidden"))); | |
23175 | ||
23176 | ||
23177 | extern __typeof (gtk_drag_source_add_uri_targets) IA__gtk_drag_source_add_uri_targets __attribute((visibility("hidden"))); | |
23178 | ||
23179 | ||
23180 | extern __typeof (gtk_drag_source_get_target_list) IA__gtk_drag_source_get_target_list __attribute((visibility("hidden"))); | |
23181 | ||
23182 | ||
23183 | extern __typeof (gtk_drag_source_set) IA__gtk_drag_source_set __attribute((visibility("hidden"))); | |
23184 | ||
23185 | ||
23186 | extern __typeof (gtk_drag_source_set_icon) IA__gtk_drag_source_set_icon __attribute((visibility("hidden"))); | |
23187 | ||
23188 | ||
23189 | extern __typeof (gtk_drag_source_set_icon_name) IA__gtk_drag_source_set_icon_name __attribute((visibility("hidden"))); | |
23190 | ||
23191 | ||
23192 | extern __typeof (gtk_drag_source_set_icon_pixbuf) IA__gtk_drag_source_set_icon_pixbuf __attribute((visibility("hidden"))); | |
23193 | ||
23194 | ||
23195 | extern __typeof (gtk_drag_source_set_icon_stock) IA__gtk_drag_source_set_icon_stock __attribute((visibility("hidden"))); | |
23196 | ||
23197 | ||
23198 | extern __typeof (gtk_drag_source_set_target_list) IA__gtk_drag_source_set_target_list __attribute((visibility("hidden"))); | |
23199 | ||
23200 | ||
23201 | extern __typeof (gtk_drag_source_unset) IA__gtk_drag_source_unset __attribute((visibility("hidden"))); | |
23202 | ||
23203 | ||
23204 | extern __typeof (gtk_drag_unhighlight) IA__gtk_drag_unhighlight __attribute((visibility("hidden"))); | |
23205 | # 2711 "gtkalias.h" | |
23206 | extern __typeof (gtk_draw_arrow) IA__gtk_draw_arrow __attribute((visibility("hidden"))); | |
23207 | ||
23208 | ||
23209 | extern __typeof (gtk_draw_box) IA__gtk_draw_box __attribute((visibility("hidden"))); | |
23210 | ||
23211 | ||
23212 | extern __typeof (gtk_draw_box_gap) IA__gtk_draw_box_gap __attribute((visibility("hidden"))); | |
23213 | ||
23214 | ||
23215 | extern __typeof (gtk_draw_check) IA__gtk_draw_check __attribute((visibility("hidden"))); | |
23216 | ||
23217 | ||
23218 | extern __typeof (gtk_draw_diamond) IA__gtk_draw_diamond __attribute((visibility("hidden"))); | |
23219 | ||
23220 | ||
23221 | extern __typeof (gtk_draw_expander) IA__gtk_draw_expander __attribute((visibility("hidden"))); | |
23222 | ||
23223 | ||
23224 | extern __typeof (gtk_draw_extension) IA__gtk_draw_extension __attribute((visibility("hidden"))); | |
23225 | ||
23226 | ||
23227 | extern __typeof (gtk_draw_flat_box) IA__gtk_draw_flat_box __attribute((visibility("hidden"))); | |
23228 | ||
23229 | ||
23230 | extern __typeof (gtk_draw_focus) IA__gtk_draw_focus __attribute((visibility("hidden"))); | |
23231 | ||
23232 | ||
23233 | extern __typeof (gtk_draw_handle) IA__gtk_draw_handle __attribute((visibility("hidden"))); | |
23234 | ||
23235 | ||
23236 | extern __typeof (gtk_draw_hline) IA__gtk_draw_hline __attribute((visibility("hidden"))); | |
23237 | ||
23238 | ||
23239 | extern __typeof (gtk_draw_insertion_cursor) IA__gtk_draw_insertion_cursor __attribute((visibility("hidden"))); | |
23240 | ||
23241 | ||
23242 | extern __typeof (gtk_draw_layout) IA__gtk_draw_layout __attribute((visibility("hidden"))); | |
23243 | ||
23244 | ||
23245 | extern __typeof (gtk_draw_option) IA__gtk_draw_option __attribute((visibility("hidden"))); | |
23246 | ||
23247 | ||
23248 | extern __typeof (gtk_draw_polygon) IA__gtk_draw_polygon __attribute((visibility("hidden"))); | |
23249 | ||
23250 | ||
23251 | extern __typeof (gtk_draw_resize_grip) IA__gtk_draw_resize_grip __attribute((visibility("hidden"))); | |
23252 | ||
23253 | ||
23254 | extern __typeof (gtk_draw_shadow) IA__gtk_draw_shadow __attribute((visibility("hidden"))); | |
23255 | ||
23256 | ||
23257 | extern __typeof (gtk_draw_shadow_gap) IA__gtk_draw_shadow_gap __attribute((visibility("hidden"))); | |
23258 | ||
23259 | ||
23260 | extern __typeof (gtk_draw_slider) IA__gtk_draw_slider __attribute((visibility("hidden"))); | |
23261 | ||
23262 | ||
23263 | extern __typeof (gtk_draw_string) IA__gtk_draw_string __attribute((visibility("hidden"))); | |
23264 | ||
23265 | ||
23266 | extern __typeof (gtk_draw_tab) IA__gtk_draw_tab __attribute((visibility("hidden"))); | |
23267 | ||
23268 | ||
23269 | extern __typeof (gtk_draw_vline) IA__gtk_draw_vline __attribute((visibility("hidden"))); | |
23270 | ||
23271 | ||
23272 | extern __typeof (gtk_style_set_font) IA__gtk_style_set_font __attribute((visibility("hidden"))); | |
23273 | ||
23274 | ||
23275 | extern __typeof (gtk_style_get_font) IA__gtk_style_get_font __attribute((visibility("hidden"))); | |
23276 | ||
23277 | ||
23278 | extern __typeof (gtk_style_ref) IA__gtk_style_ref __attribute((visibility("hidden"))); | |
23279 | ||
23280 | ||
23281 | extern __typeof (gtk_style_unref) IA__gtk_style_unref __attribute((visibility("hidden"))); | |
23282 | ||
23283 | ||
23284 | extern __typeof (gtk_paint_string) IA__gtk_paint_string __attribute((visibility("hidden"))); | |
23285 | ||
23286 | ||
23287 | ||
23288 | extern __typeof (gtk_paint_arrow) IA__gtk_paint_arrow __attribute((visibility("hidden"))); | |
23289 | ||
23290 | ||
23291 | extern __typeof (gtk_paint_box) IA__gtk_paint_box __attribute((visibility("hidden"))); | |
23292 | ||
23293 | ||
23294 | extern __typeof (gtk_paint_box_gap) IA__gtk_paint_box_gap __attribute((visibility("hidden"))); | |
23295 | ||
23296 | ||
23297 | extern __typeof (gtk_paint_check) IA__gtk_paint_check __attribute((visibility("hidden"))); | |
23298 | ||
23299 | ||
23300 | extern __typeof (gtk_paint_diamond) IA__gtk_paint_diamond __attribute((visibility("hidden"))); | |
23301 | ||
23302 | ||
23303 | extern __typeof (gtk_paint_expander) IA__gtk_paint_expander __attribute((visibility("hidden"))); | |
23304 | ||
23305 | ||
23306 | extern __typeof (gtk_paint_extension) IA__gtk_paint_extension __attribute((visibility("hidden"))); | |
23307 | ||
23308 | ||
23309 | extern __typeof (gtk_paint_flat_box) IA__gtk_paint_flat_box __attribute((visibility("hidden"))); | |
23310 | ||
23311 | ||
23312 | extern __typeof (gtk_paint_focus) IA__gtk_paint_focus __attribute((visibility("hidden"))); | |
23313 | ||
23314 | ||
23315 | extern __typeof (gtk_paint_handle) IA__gtk_paint_handle __attribute((visibility("hidden"))); | |
23316 | ||
23317 | ||
23318 | extern __typeof (gtk_paint_hline) IA__gtk_paint_hline __attribute((visibility("hidden"))); | |
23319 | ||
23320 | ||
23321 | extern __typeof (gtk_paint_layout) IA__gtk_paint_layout __attribute((visibility("hidden"))); | |
23322 | ||
23323 | ||
23324 | extern __typeof (gtk_paint_option) IA__gtk_paint_option __attribute((visibility("hidden"))); | |
23325 | ||
23326 | ||
23327 | extern __typeof (gtk_paint_polygon) IA__gtk_paint_polygon __attribute((visibility("hidden"))); | |
23328 | ||
23329 | ||
23330 | extern __typeof (gtk_paint_resize_grip) IA__gtk_paint_resize_grip __attribute((visibility("hidden"))); | |
23331 | ||
23332 | ||
23333 | extern __typeof (gtk_paint_shadow) IA__gtk_paint_shadow __attribute((visibility("hidden"))); | |
23334 | ||
23335 | ||
23336 | extern __typeof (gtk_paint_shadow_gap) IA__gtk_paint_shadow_gap __attribute((visibility("hidden"))); | |
23337 | ||
23338 | ||
23339 | extern __typeof (gtk_paint_slider) IA__gtk_paint_slider __attribute((visibility("hidden"))); | |
23340 | ||
23341 | ||
23342 | extern __typeof (gtk_paint_tab) IA__gtk_paint_tab __attribute((visibility("hidden"))); | |
23343 | ||
23344 | ||
23345 | extern __typeof (gtk_paint_vline) IA__gtk_paint_vline __attribute((visibility("hidden"))); | |
23346 | ||
23347 | ||
23348 | extern __typeof (gtk_border_copy) IA__gtk_border_copy __attribute((visibility("hidden"))); | |
23349 | ||
23350 | ||
23351 | extern __typeof (gtk_border_free) IA__gtk_border_free __attribute((visibility("hidden"))); | |
23352 | ||
23353 | ||
23354 | extern __typeof (gtk_border_get_type) IA__gtk_border_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
23355 | ||
23356 | ||
23357 | extern __typeof (gtk_style_apply_default_background) IA__gtk_style_apply_default_background __attribute((visibility("hidden"))); | |
23358 | ||
23359 | ||
23360 | extern __typeof (gtk_style_attach) IA__gtk_style_attach __attribute((visibility("hidden"))); | |
23361 | ||
23362 | ||
23363 | extern __typeof (gtk_style_copy) IA__gtk_style_copy __attribute((visibility("hidden"))); | |
23364 | ||
23365 | ||
23366 | extern __typeof (gtk_style_detach) IA__gtk_style_detach __attribute((visibility("hidden"))); | |
23367 | ||
23368 | ||
23369 | extern __typeof (gtk_style_get_type) IA__gtk_style_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
23370 | ||
23371 | ||
23372 | extern __typeof (gtk_style_lookup_icon_set) IA__gtk_style_lookup_icon_set __attribute((visibility("hidden"))); | |
23373 | ||
23374 | ||
23375 | extern __typeof (gtk_style_lookup_color) IA__gtk_style_lookup_color __attribute((visibility("hidden"))); | |
23376 | ||
23377 | ||
23378 | extern __typeof (gtk_style_new) IA__gtk_style_new __attribute((visibility("hidden"))); | |
23379 | ||
23380 | ||
23381 | extern __typeof (gtk_style_render_icon) IA__gtk_style_render_icon __attribute((visibility("hidden"))); | |
23382 | ||
23383 | ||
23384 | extern __typeof (gtk_style_set_background) IA__gtk_style_set_background __attribute((visibility("hidden"))); | |
23385 | # 4758 "gtkalias.h" | |
23386 | extern __typeof (gtk_item_deselect) IA__gtk_item_deselect __attribute((visibility("hidden"))); | |
23387 | ||
23388 | ||
23389 | extern __typeof (gtk_item_get_type) IA__gtk_item_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
23390 | ||
23391 | ||
23392 | extern __typeof (gtk_item_select) IA__gtk_item_select __attribute((visibility("hidden"))); | |
23393 | ||
23394 | ||
23395 | extern __typeof (gtk_item_toggle) IA__gtk_item_toggle __attribute((visibility("hidden"))); | |
23396 | # 4853 "gtkalias.h" | |
23397 | extern __typeof (gtk_label_get) IA__gtk_label_get __attribute((visibility("hidden"))); | |
23398 | ||
23399 | ||
23400 | extern __typeof (gtk_label_parse_uline) IA__gtk_label_parse_uline __attribute((visibility("hidden"))); | |
23401 | ||
23402 | ||
23403 | ||
23404 | extern __typeof (gtk_label_get_angle) IA__gtk_label_get_angle __attribute((visibility("hidden"))); | |
23405 | ||
23406 | ||
23407 | extern __typeof (gtk_label_get_attributes) IA__gtk_label_get_attributes __attribute((visibility("hidden"))); | |
23408 | ||
23409 | ||
23410 | extern __typeof (gtk_label_get_ellipsize) IA__gtk_label_get_ellipsize __attribute((visibility("hidden"))); | |
23411 | ||
23412 | ||
23413 | extern __typeof (gtk_label_get_justify) IA__gtk_label_get_justify __attribute((visibility("hidden"))); | |
23414 | ||
23415 | ||
23416 | extern __typeof (gtk_label_get_label) IA__gtk_label_get_label __attribute((visibility("hidden"))); | |
23417 | ||
23418 | ||
23419 | extern __typeof (gtk_label_get_layout) IA__gtk_label_get_layout __attribute((visibility("hidden"))); | |
23420 | ||
23421 | ||
23422 | extern __typeof (gtk_label_get_layout_offsets) IA__gtk_label_get_layout_offsets __attribute((visibility("hidden"))); | |
23423 | ||
23424 | ||
23425 | extern __typeof (gtk_label_get_line_wrap) IA__gtk_label_get_line_wrap __attribute((visibility("hidden"))); | |
23426 | ||
23427 | ||
23428 | extern __typeof (gtk_label_get_line_wrap_mode) IA__gtk_label_get_line_wrap_mode __attribute((visibility("hidden"))); | |
23429 | ||
23430 | ||
23431 | extern __typeof (gtk_label_get_max_width_chars) IA__gtk_label_get_max_width_chars __attribute((visibility("hidden"))); | |
23432 | ||
23433 | ||
23434 | extern __typeof (gtk_label_get_mnemonic_keyval) IA__gtk_label_get_mnemonic_keyval __attribute((visibility("hidden"))); | |
23435 | ||
23436 | ||
23437 | extern __typeof (gtk_label_get_mnemonic_widget) IA__gtk_label_get_mnemonic_widget __attribute((visibility("hidden"))); | |
23438 | ||
23439 | ||
23440 | extern __typeof (gtk_label_get_selectable) IA__gtk_label_get_selectable __attribute((visibility("hidden"))); | |
23441 | ||
23442 | ||
23443 | extern __typeof (gtk_label_get_selection_bounds) IA__gtk_label_get_selection_bounds __attribute((visibility("hidden"))); | |
23444 | ||
23445 | ||
23446 | extern __typeof (gtk_label_get_single_line_mode) IA__gtk_label_get_single_line_mode __attribute((visibility("hidden"))); | |
23447 | ||
23448 | ||
23449 | extern __typeof (gtk_label_get_text) IA__gtk_label_get_text __attribute((visibility("hidden"))); | |
23450 | ||
23451 | ||
23452 | extern __typeof (gtk_label_get_type) IA__gtk_label_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
23453 | ||
23454 | ||
23455 | extern __typeof (gtk_label_get_use_markup) IA__gtk_label_get_use_markup __attribute((visibility("hidden"))); | |
23456 | ||
23457 | ||
23458 | extern __typeof (gtk_label_get_use_underline) IA__gtk_label_get_use_underline __attribute((visibility("hidden"))); | |
23459 | ||
23460 | ||
23461 | extern __typeof (gtk_label_get_width_chars) IA__gtk_label_get_width_chars __attribute((visibility("hidden"))); | |
23462 | ||
23463 | ||
23464 | extern __typeof (gtk_label_new) IA__gtk_label_new __attribute((visibility("hidden"))); | |
23465 | ||
23466 | ||
23467 | extern __typeof (gtk_label_new_with_mnemonic) IA__gtk_label_new_with_mnemonic __attribute((visibility("hidden"))); | |
23468 | ||
23469 | ||
23470 | extern __typeof (gtk_label_select_region) IA__gtk_label_select_region __attribute((visibility("hidden"))); | |
23471 | ||
23472 | ||
23473 | extern __typeof (gtk_label_set_angle) IA__gtk_label_set_angle __attribute((visibility("hidden"))); | |
23474 | ||
23475 | ||
23476 | extern __typeof (gtk_label_set_attributes) IA__gtk_label_set_attributes __attribute((visibility("hidden"))); | |
23477 | ||
23478 | ||
23479 | extern __typeof (gtk_label_set_ellipsize) IA__gtk_label_set_ellipsize __attribute((visibility("hidden"))); | |
23480 | ||
23481 | ||
23482 | extern __typeof (gtk_label_set_justify) IA__gtk_label_set_justify __attribute((visibility("hidden"))); | |
23483 | ||
23484 | ||
23485 | extern __typeof (gtk_label_set_label) IA__gtk_label_set_label __attribute((visibility("hidden"))); | |
23486 | ||
23487 | ||
23488 | extern __typeof (gtk_label_set_line_wrap) IA__gtk_label_set_line_wrap __attribute((visibility("hidden"))); | |
23489 | ||
23490 | ||
23491 | extern __typeof (gtk_label_set_line_wrap_mode) IA__gtk_label_set_line_wrap_mode __attribute((visibility("hidden"))); | |
23492 | ||
23493 | ||
23494 | extern __typeof (gtk_label_set_markup) IA__gtk_label_set_markup __attribute((visibility("hidden"))); | |
23495 | ||
23496 | ||
23497 | extern __typeof (gtk_label_set_markup_with_mnemonic) IA__gtk_label_set_markup_with_mnemonic __attribute((visibility("hidden"))); | |
23498 | ||
23499 | ||
23500 | extern __typeof (gtk_label_set_max_width_chars) IA__gtk_label_set_max_width_chars __attribute((visibility("hidden"))); | |
23501 | ||
23502 | ||
23503 | extern __typeof (gtk_label_set_mnemonic_widget) IA__gtk_label_set_mnemonic_widget __attribute((visibility("hidden"))); | |
23504 | ||
23505 | ||
23506 | extern __typeof (gtk_label_set_pattern) IA__gtk_label_set_pattern __attribute((visibility("hidden"))); | |
23507 | ||
23508 | ||
23509 | extern __typeof (gtk_label_set_selectable) IA__gtk_label_set_selectable __attribute((visibility("hidden"))); | |
23510 | ||
23511 | ||
23512 | extern __typeof (gtk_label_set_single_line_mode) IA__gtk_label_set_single_line_mode __attribute((visibility("hidden"))); | |
23513 | ||
23514 | ||
23515 | extern __typeof (gtk_label_set_text) IA__gtk_label_set_text __attribute((visibility("hidden"))); | |
23516 | ||
23517 | ||
23518 | extern __typeof (gtk_label_set_text_with_mnemonic) IA__gtk_label_set_text_with_mnemonic __attribute((visibility("hidden"))); | |
23519 | ||
23520 | ||
23521 | extern __typeof (gtk_label_set_use_markup) IA__gtk_label_set_use_markup __attribute((visibility("hidden"))); | |
23522 | ||
23523 | ||
23524 | extern __typeof (gtk_label_set_use_underline) IA__gtk_label_set_use_underline __attribute((visibility("hidden"))); | |
23525 | ||
23526 | ||
23527 | extern __typeof (gtk_label_set_width_chars) IA__gtk_label_set_width_chars __attribute((visibility("hidden"))); | |
23528 | # 5229 "gtkalias.h" | |
23529 | extern __typeof (gtk_get_option_group) IA__gtk_get_option_group __attribute((visibility("hidden"))); | |
23530 | ||
23531 | ||
23532 | extern __typeof (gtk_get_current_event) IA__gtk_get_current_event __attribute((visibility("hidden"))); | |
23533 | ||
23534 | ||
23535 | extern __typeof (gtk_get_current_event_state) IA__gtk_get_current_event_state __attribute((visibility("hidden"))); | |
23536 | ||
23537 | ||
23538 | extern __typeof (gtk_get_current_event_time) IA__gtk_get_current_event_time __attribute((visibility("hidden"))); | |
23539 | ||
23540 | ||
23541 | ||
23542 | extern __typeof (gtk_exit) IA__gtk_exit __attribute((visibility("hidden"))); | |
23543 | ||
23544 | ||
23545 | extern __typeof (gtk_idle_add) IA__gtk_idle_add __attribute((visibility("hidden"))); | |
23546 | ||
23547 | ||
23548 | extern __typeof (gtk_idle_add_full) IA__gtk_idle_add_full __attribute((visibility("hidden"))); | |
23549 | ||
23550 | ||
23551 | extern __typeof (gtk_idle_add_priority) IA__gtk_idle_add_priority __attribute((visibility("hidden"))); | |
23552 | ||
23553 | ||
23554 | extern __typeof (gtk_idle_remove) IA__gtk_idle_remove __attribute((visibility("hidden"))); | |
23555 | ||
23556 | ||
23557 | extern __typeof (gtk_idle_remove_by_data) IA__gtk_idle_remove_by_data __attribute((visibility("hidden"))); | |
23558 | ||
23559 | ||
23560 | extern __typeof (gtk_timeout_add) IA__gtk_timeout_add __attribute((visibility("hidden"))); | |
23561 | ||
23562 | ||
23563 | extern __typeof (gtk_timeout_add_full) IA__gtk_timeout_add_full __attribute((visibility("hidden"))); | |
23564 | ||
23565 | ||
23566 | extern __typeof (gtk_timeout_remove) IA__gtk_timeout_remove __attribute((visibility("hidden"))); | |
23567 | ||
23568 | ||
23569 | extern __typeof (gtk_input_add_full) IA__gtk_input_add_full __attribute((visibility("hidden"))); | |
23570 | ||
23571 | ||
23572 | extern __typeof (gtk_input_remove) IA__gtk_input_remove __attribute((visibility("hidden"))); | |
23573 | ||
23574 | ||
23575 | ||
23576 | extern __typeof (gtk_false) IA__gtk_false __attribute((visibility("hidden"))) __attribute__((__const__)); | |
23577 | ||
23578 | ||
23579 | extern __typeof (gtk_true) IA__gtk_true __attribute((visibility("hidden"))) __attribute__((__const__)); | |
23580 | ||
23581 | ||
23582 | extern __typeof (gtk_events_pending) IA__gtk_events_pending __attribute((visibility("hidden"))); | |
23583 | ||
23584 | ||
23585 | extern __typeof (gtk_disable_setlocale) IA__gtk_disable_setlocale __attribute((visibility("hidden"))); | |
23586 | ||
23587 | ||
23588 | extern __typeof (gtk_set_locale) IA__gtk_set_locale __attribute((visibility("hidden"))); | |
23589 | ||
23590 | ||
23591 | extern __typeof (gtk_check_version) IA__gtk_check_version __attribute((visibility("hidden"))); | |
23592 | ||
23593 | ||
23594 | extern __typeof (gtk_get_default_language) IA__gtk_get_default_language __attribute((visibility("hidden"))); | |
23595 | ||
23596 | ||
23597 | extern __typeof (gtk_get_event_widget) IA__gtk_get_event_widget __attribute((visibility("hidden"))); | |
23598 | ||
23599 | ||
23600 | extern __typeof (gtk_grab_add) IA__gtk_grab_add __attribute((visibility("hidden"))); | |
23601 | ||
23602 | ||
23603 | extern __typeof (gtk_grab_get_current) IA__gtk_grab_get_current __attribute((visibility("hidden"))); | |
23604 | ||
23605 | ||
23606 | extern __typeof (gtk_grab_remove) IA__gtk_grab_remove __attribute((visibility("hidden"))); | |
23607 | ||
23608 | ||
23609 | extern __typeof (gtk_propagate_event) IA__gtk_propagate_event __attribute((visibility("hidden"))); | |
23610 | ||
23611 | ||
23612 | extern __typeof (gtk_quit_add) IA__gtk_quit_add __attribute((visibility("hidden"))); | |
23613 | ||
23614 | ||
23615 | extern __typeof (gtk_quit_add_destroy) IA__gtk_quit_add_destroy __attribute((visibility("hidden"))); | |
23616 | ||
23617 | ||
23618 | extern __typeof (gtk_quit_add_full) IA__gtk_quit_add_full __attribute((visibility("hidden"))); | |
23619 | ||
23620 | ||
23621 | extern __typeof (gtk_quit_remove) IA__gtk_quit_remove __attribute((visibility("hidden"))); | |
23622 | ||
23623 | ||
23624 | extern __typeof (gtk_quit_remove_by_data) IA__gtk_quit_remove_by_data __attribute((visibility("hidden"))); | |
23625 | ||
23626 | ||
23627 | extern __typeof (gtk_key_snooper_install) IA__gtk_key_snooper_install __attribute((visibility("hidden"))); | |
23628 | ||
23629 | ||
23630 | extern __typeof (gtk_key_snooper_remove) IA__gtk_key_snooper_remove __attribute((visibility("hidden"))); | |
23631 | ||
23632 | ||
23633 | extern __typeof (gtk_init) IA__gtk_init __attribute((visibility("hidden"))); | |
23634 | ||
23635 | ||
23636 | ||
23637 | ||
23638 | ||
23639 | ||
23640 | ||
23641 | extern __typeof (gtk_init_add) IA__gtk_init_add __attribute((visibility("hidden"))); | |
23642 | ||
23643 | ||
23644 | extern __typeof (gtk_init_check) IA__gtk_init_check __attribute((visibility("hidden"))); | |
23645 | ||
23646 | ||
23647 | ||
23648 | ||
23649 | ||
23650 | ||
23651 | ||
23652 | extern __typeof (gtk_init_with_args) IA__gtk_init_with_args __attribute((visibility("hidden"))); | |
23653 | ||
23654 | ||
23655 | extern __typeof (gtk_parse_args) IA__gtk_parse_args __attribute((visibility("hidden"))); | |
23656 | ||
23657 | ||
23658 | extern __typeof (gtk_main) IA__gtk_main __attribute((visibility("hidden"))); | |
23659 | ||
23660 | ||
23661 | extern __typeof (gtk_main_do_event) IA__gtk_main_do_event __attribute((visibility("hidden"))); | |
23662 | ||
23663 | ||
23664 | extern __typeof (gtk_main_iteration) IA__gtk_main_iteration __attribute((visibility("hidden"))); | |
23665 | ||
23666 | ||
23667 | extern __typeof (gtk_main_iteration_do) IA__gtk_main_iteration_do __attribute((visibility("hidden"))); | |
23668 | ||
23669 | ||
23670 | extern __typeof (gtk_main_level) IA__gtk_main_level __attribute((visibility("hidden"))); | |
23671 | ||
23672 | ||
23673 | extern __typeof (gtk_main_quit) IA__gtk_main_quit __attribute((visibility("hidden"))); | |
23674 | # 5496 "gtkalias.h" | |
23675 | extern __typeof (gtk_menu_attach) IA__gtk_menu_attach __attribute((visibility("hidden"))); | |
23676 | ||
23677 | ||
23678 | extern __typeof (gtk_menu_attach_to_widget) IA__gtk_menu_attach_to_widget __attribute((visibility("hidden"))); | |
23679 | ||
23680 | ||
23681 | extern __typeof (gtk_menu_detach) IA__gtk_menu_detach __attribute((visibility("hidden"))); | |
23682 | ||
23683 | ||
23684 | extern __typeof (gtk_menu_get_accel_group) IA__gtk_menu_get_accel_group __attribute((visibility("hidden"))); | |
23685 | ||
23686 | ||
23687 | extern __typeof (gtk_menu_get_active) IA__gtk_menu_get_active __attribute((visibility("hidden"))); | |
23688 | ||
23689 | ||
23690 | extern __typeof (gtk_menu_get_attach_widget) IA__gtk_menu_get_attach_widget __attribute((visibility("hidden"))); | |
23691 | ||
23692 | ||
23693 | extern __typeof (gtk_menu_get_for_attach_widget) IA__gtk_menu_get_for_attach_widget __attribute((visibility("hidden"))); | |
23694 | ||
23695 | ||
23696 | extern __typeof (gtk_menu_get_tearoff_state) IA__gtk_menu_get_tearoff_state __attribute((visibility("hidden"))); | |
23697 | ||
23698 | ||
23699 | extern __typeof (gtk_menu_get_title) IA__gtk_menu_get_title __attribute((visibility("hidden"))); | |
23700 | ||
23701 | ||
23702 | extern __typeof (gtk_menu_get_type) IA__gtk_menu_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
23703 | ||
23704 | ||
23705 | extern __typeof (gtk_menu_new) IA__gtk_menu_new __attribute((visibility("hidden"))); | |
23706 | ||
23707 | ||
23708 | extern __typeof (gtk_menu_popdown) IA__gtk_menu_popdown __attribute((visibility("hidden"))); | |
23709 | ||
23710 | ||
23711 | extern __typeof (gtk_menu_popup) IA__gtk_menu_popup __attribute((visibility("hidden"))); | |
23712 | ||
23713 | ||
23714 | extern __typeof (gtk_menu_reorder_child) IA__gtk_menu_reorder_child __attribute((visibility("hidden"))); | |
23715 | ||
23716 | ||
23717 | extern __typeof (gtk_menu_reposition) IA__gtk_menu_reposition __attribute((visibility("hidden"))); | |
23718 | ||
23719 | ||
23720 | extern __typeof (gtk_menu_set_accel_group) IA__gtk_menu_set_accel_group __attribute((visibility("hidden"))); | |
23721 | ||
23722 | ||
23723 | extern __typeof (gtk_menu_set_accel_path) IA__gtk_menu_set_accel_path __attribute((visibility("hidden"))); | |
23724 | ||
23725 | ||
23726 | extern __typeof (gtk_menu_set_active) IA__gtk_menu_set_active __attribute((visibility("hidden"))); | |
23727 | ||
23728 | ||
23729 | extern __typeof (gtk_menu_set_monitor) IA__gtk_menu_set_monitor __attribute((visibility("hidden"))); | |
23730 | ||
23731 | ||
23732 | extern __typeof (gtk_menu_set_screen) IA__gtk_menu_set_screen __attribute((visibility("hidden"))); | |
23733 | ||
23734 | ||
23735 | extern __typeof (gtk_menu_set_tearoff_state) IA__gtk_menu_set_tearoff_state __attribute((visibility("hidden"))); | |
23736 | ||
23737 | ||
23738 | extern __typeof (gtk_menu_set_title) IA__gtk_menu_set_title __attribute((visibility("hidden"))); | |
23739 | ||
23740 | ||
23741 | ||
23742 | ||
23743 | ||
23744 | ||
23745 | extern __typeof (gtk_menu_item_activate) IA__gtk_menu_item_activate __attribute((visibility("hidden"))); | |
23746 | ||
23747 | ||
23748 | extern __typeof (gtk_menu_item_deselect) IA__gtk_menu_item_deselect __attribute((visibility("hidden"))); | |
23749 | ||
23750 | ||
23751 | extern __typeof (gtk_menu_item_get_right_justified) IA__gtk_menu_item_get_right_justified __attribute((visibility("hidden"))); | |
23752 | ||
23753 | ||
23754 | extern __typeof (gtk_menu_item_get_submenu) IA__gtk_menu_item_get_submenu __attribute((visibility("hidden"))); | |
23755 | ||
23756 | ||
23757 | extern __typeof (gtk_menu_item_get_type) IA__gtk_menu_item_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
23758 | ||
23759 | ||
23760 | extern __typeof (gtk_menu_item_new) IA__gtk_menu_item_new __attribute((visibility("hidden"))); | |
23761 | ||
23762 | ||
23763 | extern __typeof (gtk_menu_item_new_with_label) IA__gtk_menu_item_new_with_label __attribute((visibility("hidden"))); | |
23764 | ||
23765 | ||
23766 | extern __typeof (gtk_menu_item_new_with_mnemonic) IA__gtk_menu_item_new_with_mnemonic __attribute((visibility("hidden"))); | |
23767 | ||
23768 | ||
23769 | extern __typeof (gtk_menu_item_select) IA__gtk_menu_item_select __attribute((visibility("hidden"))); | |
23770 | ||
23771 | ||
23772 | extern __typeof (gtk_menu_item_set_accel_path) IA__gtk_menu_item_set_accel_path __attribute((visibility("hidden"))); | |
23773 | ||
23774 | ||
23775 | extern __typeof (gtk_menu_item_set_right_justified) IA__gtk_menu_item_set_right_justified __attribute((visibility("hidden"))); | |
23776 | ||
23777 | ||
23778 | extern __typeof (gtk_menu_item_set_submenu) IA__gtk_menu_item_set_submenu __attribute((visibility("hidden"))); | |
23779 | ||
23780 | ||
23781 | extern __typeof (gtk_menu_item_toggle_size_allocate) IA__gtk_menu_item_toggle_size_allocate __attribute((visibility("hidden"))); | |
23782 | ||
23783 | ||
23784 | extern __typeof (gtk_menu_item_toggle_size_request) IA__gtk_menu_item_toggle_size_request __attribute((visibility("hidden"))); | |
23785 | ||
23786 | ||
23787 | ||
23788 | extern __typeof (gtk_menu_item_remove_submenu) IA__gtk_menu_item_remove_submenu __attribute((visibility("hidden"))); | |
23789 | ||
23790 | ||
23791 | ||
23792 | ||
23793 | ||
23794 | ||
23795 | ||
23796 | extern __typeof (gtk_menu_shell_activate_item) IA__gtk_menu_shell_activate_item __attribute((visibility("hidden"))); | |
23797 | ||
23798 | ||
23799 | extern __typeof (gtk_menu_shell_append) IA__gtk_menu_shell_append __attribute((visibility("hidden"))); | |
23800 | ||
23801 | ||
23802 | extern __typeof (gtk_menu_shell_cancel) IA__gtk_menu_shell_cancel __attribute((visibility("hidden"))); | |
23803 | ||
23804 | ||
23805 | extern __typeof (gtk_menu_shell_deactivate) IA__gtk_menu_shell_deactivate __attribute((visibility("hidden"))); | |
23806 | ||
23807 | ||
23808 | extern __typeof (gtk_menu_shell_deselect) IA__gtk_menu_shell_deselect __attribute((visibility("hidden"))); | |
23809 | ||
23810 | ||
23811 | extern __typeof (gtk_menu_shell_get_type) IA__gtk_menu_shell_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
23812 | ||
23813 | ||
23814 | extern __typeof (gtk_menu_shell_insert) IA__gtk_menu_shell_insert __attribute((visibility("hidden"))); | |
23815 | ||
23816 | ||
23817 | extern __typeof (gtk_menu_shell_prepend) IA__gtk_menu_shell_prepend __attribute((visibility("hidden"))); | |
23818 | ||
23819 | ||
23820 | extern __typeof (gtk_menu_shell_select_first) IA__gtk_menu_shell_select_first __attribute((visibility("hidden"))); | |
23821 | ||
23822 | ||
23823 | extern __typeof (gtk_menu_shell_select_item) IA__gtk_menu_shell_select_item __attribute((visibility("hidden"))); | |
23824 | ||
23825 | ||
23826 | extern __typeof (gtk_menu_shell_set_take_focus) IA__gtk_menu_shell_set_take_focus __attribute((visibility("hidden"))); | |
23827 | ||
23828 | ||
23829 | extern __typeof (gtk_menu_shell_get_take_focus) IA__gtk_menu_shell_get_take_focus __attribute((visibility("hidden"))); | |
23830 | # 5712 "gtkalias.h" | |
23831 | extern __typeof (gtk_misc_get_alignment) IA__gtk_misc_get_alignment __attribute((visibility("hidden"))); | |
23832 | ||
23833 | ||
23834 | extern __typeof (gtk_misc_get_padding) IA__gtk_misc_get_padding __attribute((visibility("hidden"))); | |
23835 | ||
23836 | ||
23837 | extern __typeof (gtk_misc_get_type) IA__gtk_misc_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
23838 | ||
23839 | ||
23840 | extern __typeof (gtk_misc_set_alignment) IA__gtk_misc_set_alignment __attribute((visibility("hidden"))); | |
23841 | ||
23842 | ||
23843 | extern __typeof (gtk_misc_set_padding) IA__gtk_misc_set_padding __attribute((visibility("hidden"))); | |
23844 | ||
23845 | ||
23846 | ||
23847 | ||
23848 | ||
23849 | ||
23850 | extern __typeof (gtk_notebook_append_page) IA__gtk_notebook_append_page __attribute((visibility("hidden"))); | |
23851 | ||
23852 | ||
23853 | extern __typeof (gtk_notebook_append_page_menu) IA__gtk_notebook_append_page_menu __attribute((visibility("hidden"))); | |
23854 | ||
23855 | ||
23856 | extern __typeof (gtk_notebook_get_current_page) IA__gtk_notebook_get_current_page __attribute((visibility("hidden"))); | |
23857 | ||
23858 | ||
23859 | extern __typeof (gtk_notebook_get_menu_label) IA__gtk_notebook_get_menu_label __attribute((visibility("hidden"))); | |
23860 | ||
23861 | ||
23862 | extern __typeof (gtk_notebook_get_menu_label_text) IA__gtk_notebook_get_menu_label_text __attribute((visibility("hidden"))); | |
23863 | ||
23864 | ||
23865 | extern __typeof (gtk_notebook_get_n_pages) IA__gtk_notebook_get_n_pages __attribute((visibility("hidden"))); | |
23866 | ||
23867 | ||
23868 | extern __typeof (gtk_notebook_get_nth_page) IA__gtk_notebook_get_nth_page __attribute((visibility("hidden"))); | |
23869 | ||
23870 | ||
23871 | extern __typeof (gtk_notebook_get_scrollable) IA__gtk_notebook_get_scrollable __attribute((visibility("hidden"))); | |
23872 | ||
23873 | ||
23874 | extern __typeof (gtk_notebook_get_show_border) IA__gtk_notebook_get_show_border __attribute((visibility("hidden"))); | |
23875 | ||
23876 | ||
23877 | extern __typeof (gtk_notebook_get_show_tabs) IA__gtk_notebook_get_show_tabs __attribute((visibility("hidden"))); | |
23878 | ||
23879 | ||
23880 | extern __typeof (gtk_notebook_get_tab_label) IA__gtk_notebook_get_tab_label __attribute((visibility("hidden"))); | |
23881 | ||
23882 | ||
23883 | extern __typeof (gtk_notebook_get_tab_label_text) IA__gtk_notebook_get_tab_label_text __attribute((visibility("hidden"))); | |
23884 | ||
23885 | ||
23886 | extern __typeof (gtk_notebook_get_tab_pos) IA__gtk_notebook_get_tab_pos __attribute((visibility("hidden"))); | |
23887 | ||
23888 | ||
23889 | extern __typeof (gtk_notebook_get_type) IA__gtk_notebook_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
23890 | ||
23891 | ||
23892 | extern __typeof (gtk_notebook_insert_page) IA__gtk_notebook_insert_page __attribute((visibility("hidden"))); | |
23893 | ||
23894 | ||
23895 | extern __typeof (gtk_notebook_insert_page_menu) IA__gtk_notebook_insert_page_menu __attribute((visibility("hidden"))); | |
23896 | ||
23897 | ||
23898 | extern __typeof (gtk_notebook_new) IA__gtk_notebook_new __attribute((visibility("hidden"))); | |
23899 | ||
23900 | ||
23901 | extern __typeof (gtk_notebook_next_page) IA__gtk_notebook_next_page __attribute((visibility("hidden"))); | |
23902 | ||
23903 | ||
23904 | extern __typeof (gtk_notebook_page_num) IA__gtk_notebook_page_num __attribute((visibility("hidden"))); | |
23905 | ||
23906 | ||
23907 | extern __typeof (gtk_notebook_popup_disable) IA__gtk_notebook_popup_disable __attribute((visibility("hidden"))); | |
23908 | ||
23909 | ||
23910 | extern __typeof (gtk_notebook_popup_enable) IA__gtk_notebook_popup_enable __attribute((visibility("hidden"))); | |
23911 | ||
23912 | ||
23913 | extern __typeof (gtk_notebook_prepend_page) IA__gtk_notebook_prepend_page __attribute((visibility("hidden"))); | |
23914 | ||
23915 | ||
23916 | extern __typeof (gtk_notebook_prepend_page_menu) IA__gtk_notebook_prepend_page_menu __attribute((visibility("hidden"))); | |
23917 | ||
23918 | ||
23919 | extern __typeof (gtk_notebook_prev_page) IA__gtk_notebook_prev_page __attribute((visibility("hidden"))); | |
23920 | ||
23921 | ||
23922 | extern __typeof (gtk_notebook_query_tab_label_packing) IA__gtk_notebook_query_tab_label_packing __attribute((visibility("hidden"))); | |
23923 | ||
23924 | ||
23925 | extern __typeof (gtk_notebook_remove_page) IA__gtk_notebook_remove_page __attribute((visibility("hidden"))); | |
23926 | ||
23927 | ||
23928 | extern __typeof (gtk_notebook_reorder_child) IA__gtk_notebook_reorder_child __attribute((visibility("hidden"))); | |
23929 | ||
23930 | ||
23931 | extern __typeof (gtk_notebook_set_current_page) IA__gtk_notebook_set_current_page __attribute((visibility("hidden"))); | |
23932 | ||
23933 | ||
23934 | ||
23935 | extern __typeof (gtk_notebook_set_homogeneous_tabs) IA__gtk_notebook_set_homogeneous_tabs __attribute((visibility("hidden"))); | |
23936 | ||
23937 | ||
23938 | extern __typeof (gtk_notebook_set_tab_border) IA__gtk_notebook_set_tab_border __attribute((visibility("hidden"))); | |
23939 | ||
23940 | ||
23941 | extern __typeof (gtk_notebook_set_tab_hborder) IA__gtk_notebook_set_tab_hborder __attribute((visibility("hidden"))); | |
23942 | ||
23943 | ||
23944 | extern __typeof (gtk_notebook_set_tab_vborder) IA__gtk_notebook_set_tab_vborder __attribute((visibility("hidden"))); | |
23945 | ||
23946 | ||
23947 | ||
23948 | extern __typeof (gtk_notebook_set_menu_label) IA__gtk_notebook_set_menu_label __attribute((visibility("hidden"))); | |
23949 | ||
23950 | ||
23951 | extern __typeof (gtk_notebook_set_menu_label_text) IA__gtk_notebook_set_menu_label_text __attribute((visibility("hidden"))); | |
23952 | ||
23953 | ||
23954 | extern __typeof (gtk_notebook_set_scrollable) IA__gtk_notebook_set_scrollable __attribute((visibility("hidden"))); | |
23955 | ||
23956 | ||
23957 | extern __typeof (gtk_notebook_set_show_border) IA__gtk_notebook_set_show_border __attribute((visibility("hidden"))); | |
23958 | ||
23959 | ||
23960 | extern __typeof (gtk_notebook_set_show_tabs) IA__gtk_notebook_set_show_tabs __attribute((visibility("hidden"))); | |
23961 | ||
23962 | ||
23963 | extern __typeof (gtk_notebook_set_tab_label) IA__gtk_notebook_set_tab_label __attribute((visibility("hidden"))); | |
23964 | ||
23965 | ||
23966 | extern __typeof (gtk_notebook_set_tab_label_packing) IA__gtk_notebook_set_tab_label_packing __attribute((visibility("hidden"))); | |
23967 | ||
23968 | ||
23969 | extern __typeof (gtk_notebook_set_tab_label_text) IA__gtk_notebook_set_tab_label_text __attribute((visibility("hidden"))); | |
23970 | ||
23971 | ||
23972 | extern __typeof (gtk_notebook_set_tab_pos) IA__gtk_notebook_set_tab_pos __attribute((visibility("hidden"))); | |
23973 | ||
23974 | ||
23975 | extern __typeof (gtk_notebook_set_window_creation_hook) IA__gtk_notebook_set_window_creation_hook __attribute((visibility("hidden"))); | |
23976 | ||
23977 | ||
23978 | ||
23979 | extern __typeof (gtk_notebook_get_group_id) IA__gtk_notebook_get_group_id __attribute((visibility("hidden"))); | |
23980 | ||
23981 | ||
23982 | extern __typeof (gtk_notebook_set_group_id) IA__gtk_notebook_set_group_id __attribute((visibility("hidden"))); | |
23983 | ||
23984 | ||
23985 | ||
23986 | extern __typeof (gtk_notebook_get_group) IA__gtk_notebook_get_group __attribute((visibility("hidden"))); | |
23987 | ||
23988 | ||
23989 | extern __typeof (gtk_notebook_set_group) IA__gtk_notebook_set_group __attribute((visibility("hidden"))); | |
23990 | ||
23991 | ||
23992 | extern __typeof (gtk_notebook_get_tab_reorderable) IA__gtk_notebook_get_tab_reorderable __attribute((visibility("hidden"))); | |
23993 | ||
23994 | ||
23995 | extern __typeof (gtk_notebook_set_tab_reorderable) IA__gtk_notebook_set_tab_reorderable __attribute((visibility("hidden"))); | |
23996 | ||
23997 | ||
23998 | extern __typeof (gtk_notebook_get_tab_detachable) IA__gtk_notebook_get_tab_detachable __attribute((visibility("hidden"))); | |
23999 | ||
24000 | ||
24001 | extern __typeof (gtk_notebook_set_tab_detachable) IA__gtk_notebook_set_tab_detachable __attribute((visibility("hidden"))); | |
24002 | ||
24003 | ||
24004 | ||
24005 | ||
24006 | ||
24007 | ||
24008 | ||
24009 | extern __typeof (gtk_object_add_arg_type) IA__gtk_object_add_arg_type __attribute((visibility("hidden"))); | |
24010 | ||
24011 | ||
24012 | extern __typeof (gtk_object_get) IA__gtk_object_get __attribute((visibility("hidden"))) __attribute__((__sentinel__)); | |
24013 | ||
24014 | ||
24015 | extern __typeof (gtk_object_set) IA__gtk_object_set __attribute((visibility("hidden"))) __attribute__((__sentinel__)); | |
24016 | ||
24017 | ||
24018 | extern __typeof (gtk_object_get_data) IA__gtk_object_get_data __attribute((visibility("hidden"))); | |
24019 | ||
24020 | ||
24021 | extern __typeof (gtk_object_get_data_by_id) IA__gtk_object_get_data_by_id __attribute((visibility("hidden"))); | |
24022 | ||
24023 | ||
24024 | extern __typeof (gtk_object_get_user_data) IA__gtk_object_get_user_data __attribute((visibility("hidden"))); | |
24025 | ||
24026 | ||
24027 | extern __typeof (gtk_object_new) IA__gtk_object_new __attribute((visibility("hidden"))); | |
24028 | ||
24029 | ||
24030 | extern __typeof (gtk_object_remove_data) IA__gtk_object_remove_data __attribute((visibility("hidden"))); | |
24031 | ||
24032 | ||
24033 | extern __typeof (gtk_object_remove_data_by_id) IA__gtk_object_remove_data_by_id __attribute((visibility("hidden"))); | |
24034 | ||
24035 | ||
24036 | extern __typeof (gtk_object_remove_no_notify) IA__gtk_object_remove_no_notify __attribute((visibility("hidden"))); | |
24037 | ||
24038 | ||
24039 | extern __typeof (gtk_object_remove_no_notify_by_id) IA__gtk_object_remove_no_notify_by_id __attribute((visibility("hidden"))); | |
24040 | ||
24041 | ||
24042 | extern __typeof (gtk_object_ref) IA__gtk_object_ref __attribute((visibility("hidden"))); | |
24043 | ||
24044 | ||
24045 | extern __typeof (gtk_object_unref) IA__gtk_object_unref __attribute((visibility("hidden"))); | |
24046 | ||
24047 | ||
24048 | extern __typeof (gtk_object_weakref) IA__gtk_object_weakref __attribute((visibility("hidden"))); | |
24049 | ||
24050 | ||
24051 | extern __typeof (gtk_object_weakunref) IA__gtk_object_weakunref __attribute((visibility("hidden"))); | |
24052 | ||
24053 | ||
24054 | extern __typeof (gtk_object_set_data) IA__gtk_object_set_data __attribute((visibility("hidden"))); | |
24055 | ||
24056 | ||
24057 | extern __typeof (gtk_object_set_data_by_id) IA__gtk_object_set_data_by_id __attribute((visibility("hidden"))); | |
24058 | ||
24059 | ||
24060 | extern __typeof (gtk_object_set_data_by_id_full) IA__gtk_object_set_data_by_id_full __attribute((visibility("hidden"))); | |
24061 | ||
24062 | ||
24063 | extern __typeof (gtk_object_set_data_full) IA__gtk_object_set_data_full __attribute((visibility("hidden"))); | |
24064 | ||
24065 | ||
24066 | extern __typeof (gtk_object_set_user_data) IA__gtk_object_set_user_data __attribute((visibility("hidden"))); | |
24067 | ||
24068 | ||
24069 | extern __typeof (gtk_object_sink) IA__gtk_object_sink __attribute((visibility("hidden"))); | |
24070 | ||
24071 | ||
24072 | ||
24073 | extern __typeof (gtk_object_destroy) IA__gtk_object_destroy __attribute((visibility("hidden"))); | |
24074 | ||
24075 | ||
24076 | extern __typeof (gtk_object_get_type) IA__gtk_object_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
24077 | # 7283 "gtkalias.h" | |
24078 | extern __typeof (gtk_rc_add_class_style) IA__gtk_rc_add_class_style __attribute((visibility("hidden"))); | |
24079 | ||
24080 | ||
24081 | extern __typeof (gtk_rc_add_widget_class_style) IA__gtk_rc_add_widget_class_style __attribute((visibility("hidden"))); | |
24082 | ||
24083 | ||
24084 | extern __typeof (gtk_rc_add_widget_name_style) IA__gtk_rc_add_widget_name_style __attribute((visibility("hidden"))); | |
24085 | ||
24086 | ||
24087 | ||
24088 | extern __typeof (gtk_rc_add_default_file) IA__gtk_rc_add_default_file __attribute((visibility("hidden"))); | |
24089 | ||
24090 | ||
24091 | ||
24092 | ||
24093 | ||
24094 | ||
24095 | ||
24096 | extern __typeof (gtk_rc_find_module_in_path) IA__gtk_rc_find_module_in_path __attribute((visibility("hidden"))); | |
24097 | ||
24098 | ||
24099 | extern __typeof (gtk_rc_find_pixmap_in_path) IA__gtk_rc_find_pixmap_in_path __attribute((visibility("hidden"))); | |
24100 | ||
24101 | ||
24102 | extern __typeof (gtk_rc_get_default_files) IA__gtk_rc_get_default_files __attribute((visibility("hidden"))); | |
24103 | ||
24104 | ||
24105 | extern __typeof (gtk_rc_get_im_module_file) IA__gtk_rc_get_im_module_file __attribute((visibility("hidden"))); | |
24106 | ||
24107 | ||
24108 | extern __typeof (gtk_rc_get_im_module_path) IA__gtk_rc_get_im_module_path __attribute((visibility("hidden"))); | |
24109 | ||
24110 | ||
24111 | extern __typeof (gtk_rc_get_module_dir) IA__gtk_rc_get_module_dir __attribute((visibility("hidden"))); | |
24112 | ||
24113 | ||
24114 | extern __typeof (gtk_rc_get_style) IA__gtk_rc_get_style __attribute((visibility("hidden"))); | |
24115 | ||
24116 | ||
24117 | extern __typeof (gtk_rc_get_style_by_paths) IA__gtk_rc_get_style_by_paths __attribute((visibility("hidden"))); | |
24118 | ||
24119 | ||
24120 | extern __typeof (gtk_rc_get_theme_dir) IA__gtk_rc_get_theme_dir __attribute((visibility("hidden"))); | |
24121 | ||
24122 | ||
24123 | extern __typeof (gtk_rc_parse) IA__gtk_rc_parse __attribute((visibility("hidden"))); | |
24124 | ||
24125 | ||
24126 | ||
24127 | ||
24128 | ||
24129 | ||
24130 | ||
24131 | extern __typeof (gtk_rc_parse_color) IA__gtk_rc_parse_color __attribute((visibility("hidden"))); | |
24132 | ||
24133 | ||
24134 | extern __typeof (gtk_rc_parse_color_full) IA__gtk_rc_parse_color_full __attribute((visibility("hidden"))); | |
24135 | ||
24136 | ||
24137 | extern __typeof (gtk_rc_parse_priority) IA__gtk_rc_parse_priority __attribute((visibility("hidden"))); | |
24138 | ||
24139 | ||
24140 | extern __typeof (gtk_rc_parse_state) IA__gtk_rc_parse_state __attribute((visibility("hidden"))); | |
24141 | ||
24142 | ||
24143 | extern __typeof (gtk_rc_parse_string) IA__gtk_rc_parse_string __attribute((visibility("hidden"))); | |
24144 | ||
24145 | ||
24146 | extern __typeof (gtk_rc_reparse_all) IA__gtk_rc_reparse_all __attribute((visibility("hidden"))); | |
24147 | ||
24148 | ||
24149 | extern __typeof (gtk_rc_reparse_all_for_settings) IA__gtk_rc_reparse_all_for_settings __attribute((visibility("hidden"))); | |
24150 | ||
24151 | ||
24152 | extern __typeof (gtk_rc_reset_styles) IA__gtk_rc_reset_styles __attribute((visibility("hidden"))); | |
24153 | ||
24154 | ||
24155 | extern __typeof (gtk_rc_scanner_new) IA__gtk_rc_scanner_new __attribute((visibility("hidden"))); | |
24156 | ||
24157 | ||
24158 | extern __typeof (gtk_rc_set_default_files) IA__gtk_rc_set_default_files __attribute((visibility("hidden"))); | |
24159 | ||
24160 | ||
24161 | ||
24162 | ||
24163 | ||
24164 | ||
24165 | ||
24166 | extern __typeof (gtk_rc_style_copy) IA__gtk_rc_style_copy __attribute((visibility("hidden"))); | |
24167 | ||
24168 | ||
24169 | extern __typeof (gtk_rc_style_get_type) IA__gtk_rc_style_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
24170 | ||
24171 | ||
24172 | extern __typeof (gtk_rc_style_new) IA__gtk_rc_style_new __attribute((visibility("hidden"))); | |
24173 | ||
24174 | ||
24175 | ||
24176 | extern __typeof (gtk_rc_style_ref) IA__gtk_rc_style_ref __attribute((visibility("hidden"))); | |
24177 | ||
24178 | ||
24179 | extern __typeof (gtk_rc_style_unref) IA__gtk_rc_style_unref __attribute((visibility("hidden"))); | |
24180 | # 7914 "gtkalias.h" | |
24181 | extern __typeof (gtk_selection_add_target) IA__gtk_selection_add_target __attribute((visibility("hidden"))); | |
24182 | ||
24183 | ||
24184 | extern __typeof (gtk_selection_add_targets) IA__gtk_selection_add_targets __attribute((visibility("hidden"))); | |
24185 | ||
24186 | ||
24187 | extern __typeof (gtk_selection_clear) IA__gtk_selection_clear __attribute((visibility("hidden"))); | |
24188 | ||
24189 | ||
24190 | extern __typeof (gtk_selection_clear_targets) IA__gtk_selection_clear_targets __attribute((visibility("hidden"))); | |
24191 | ||
24192 | ||
24193 | extern __typeof (gtk_selection_convert) IA__gtk_selection_convert __attribute((visibility("hidden"))); | |
24194 | ||
24195 | ||
24196 | extern __typeof (gtk_selection_data_copy) IA__gtk_selection_data_copy __attribute((visibility("hidden"))); | |
24197 | ||
24198 | ||
24199 | extern __typeof (gtk_selection_data_free) IA__gtk_selection_data_free __attribute((visibility("hidden"))); | |
24200 | ||
24201 | ||
24202 | extern __typeof (gtk_selection_data_get_pixbuf) IA__gtk_selection_data_get_pixbuf __attribute((visibility("hidden"))); | |
24203 | ||
24204 | ||
24205 | extern __typeof (gtk_selection_data_get_targets) IA__gtk_selection_data_get_targets __attribute((visibility("hidden"))); | |
24206 | ||
24207 | ||
24208 | extern __typeof (gtk_selection_data_get_text) IA__gtk_selection_data_get_text __attribute((visibility("hidden"))); | |
24209 | ||
24210 | ||
24211 | extern __typeof (gtk_selection_data_get_type) IA__gtk_selection_data_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
24212 | ||
24213 | ||
24214 | extern __typeof (gtk_selection_data_get_uris) IA__gtk_selection_data_get_uris __attribute((visibility("hidden"))); | |
24215 | ||
24216 | ||
24217 | extern __typeof (gtk_selection_data_set) IA__gtk_selection_data_set __attribute((visibility("hidden"))); | |
24218 | ||
24219 | ||
24220 | extern __typeof (gtk_selection_data_set_pixbuf) IA__gtk_selection_data_set_pixbuf __attribute((visibility("hidden"))); | |
24221 | ||
24222 | ||
24223 | extern __typeof (gtk_selection_data_set_text) IA__gtk_selection_data_set_text __attribute((visibility("hidden"))); | |
24224 | ||
24225 | ||
24226 | extern __typeof (gtk_selection_data_set_uris) IA__gtk_selection_data_set_uris __attribute((visibility("hidden"))); | |
24227 | ||
24228 | ||
24229 | extern __typeof (gtk_selection_data_targets_include_image) IA__gtk_selection_data_targets_include_image __attribute((visibility("hidden"))); | |
24230 | ||
24231 | ||
24232 | extern __typeof (gtk_selection_data_targets_include_rich_text) IA__gtk_selection_data_targets_include_rich_text __attribute((visibility("hidden"))); | |
24233 | ||
24234 | ||
24235 | extern __typeof (gtk_selection_data_targets_include_text) IA__gtk_selection_data_targets_include_text __attribute((visibility("hidden"))); | |
24236 | ||
24237 | ||
24238 | extern __typeof (gtk_selection_data_targets_include_uri) IA__gtk_selection_data_targets_include_uri __attribute((visibility("hidden"))); | |
24239 | ||
24240 | ||
24241 | extern __typeof (gtk_targets_include_image) IA__gtk_targets_include_image __attribute((visibility("hidden"))); | |
24242 | ||
24243 | ||
24244 | extern __typeof (gtk_targets_include_rich_text) IA__gtk_targets_include_rich_text __attribute((visibility("hidden"))); | |
24245 | ||
24246 | ||
24247 | extern __typeof (gtk_targets_include_text) IA__gtk_targets_include_text __attribute((visibility("hidden"))); | |
24248 | ||
24249 | ||
24250 | extern __typeof (gtk_targets_include_uri) IA__gtk_targets_include_uri __attribute((visibility("hidden"))); | |
24251 | ||
24252 | ||
24253 | extern __typeof (gtk_selection_owner_set) IA__gtk_selection_owner_set __attribute((visibility("hidden"))); | |
24254 | ||
24255 | ||
24256 | extern __typeof (gtk_selection_owner_set_for_display) IA__gtk_selection_owner_set_for_display __attribute((visibility("hidden"))); | |
24257 | ||
24258 | ||
24259 | extern __typeof (gtk_selection_remove_all) IA__gtk_selection_remove_all __attribute((visibility("hidden"))); | |
24260 | ||
24261 | ||
24262 | extern __typeof (gtk_target_list_add) IA__gtk_target_list_add __attribute((visibility("hidden"))); | |
24263 | ||
24264 | ||
24265 | extern __typeof (gtk_target_list_add_image_targets) IA__gtk_target_list_add_image_targets __attribute((visibility("hidden"))); | |
24266 | ||
24267 | ||
24268 | extern __typeof (gtk_target_list_add_rich_text_targets) IA__gtk_target_list_add_rich_text_targets __attribute((visibility("hidden"))); | |
24269 | ||
24270 | ||
24271 | extern __typeof (gtk_target_list_add_table) IA__gtk_target_list_add_table __attribute((visibility("hidden"))); | |
24272 | ||
24273 | ||
24274 | extern __typeof (gtk_target_list_add_text_targets) IA__gtk_target_list_add_text_targets __attribute((visibility("hidden"))); | |
24275 | ||
24276 | ||
24277 | extern __typeof (gtk_target_list_add_uri_targets) IA__gtk_target_list_add_uri_targets __attribute((visibility("hidden"))); | |
24278 | ||
24279 | ||
24280 | extern __typeof (gtk_target_list_find) IA__gtk_target_list_find __attribute((visibility("hidden"))); | |
24281 | ||
24282 | ||
24283 | extern __typeof (gtk_target_list_get_type) IA__gtk_target_list_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
24284 | ||
24285 | ||
24286 | extern __typeof (gtk_target_list_new) IA__gtk_target_list_new __attribute((visibility("hidden"))); | |
24287 | ||
24288 | ||
24289 | extern __typeof (gtk_target_list_ref) IA__gtk_target_list_ref __attribute((visibility("hidden"))); | |
24290 | ||
24291 | ||
24292 | extern __typeof (gtk_target_list_remove) IA__gtk_target_list_remove __attribute((visibility("hidden"))); | |
24293 | ||
24294 | ||
24295 | extern __typeof (gtk_target_list_unref) IA__gtk_target_list_unref __attribute((visibility("hidden"))); | |
24296 | ||
24297 | ||
24298 | extern __typeof (gtk_target_table_new_from_list) IA__gtk_target_table_new_from_list __attribute((visibility("hidden"))); | |
24299 | ||
24300 | ||
24301 | extern __typeof (gtk_target_table_free) IA__gtk_target_table_free __attribute((visibility("hidden"))); | |
24302 | # 8074 "gtkalias.h" | |
24303 | extern __typeof (gtk_settings_get_default) IA__gtk_settings_get_default __attribute((visibility("hidden"))); | |
24304 | ||
24305 | ||
24306 | extern __typeof (gtk_settings_get_for_screen) IA__gtk_settings_get_for_screen __attribute((visibility("hidden"))); | |
24307 | ||
24308 | ||
24309 | extern __typeof (gtk_settings_get_type) IA__gtk_settings_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
24310 | ||
24311 | ||
24312 | extern __typeof (gtk_settings_install_property) IA__gtk_settings_install_property __attribute((visibility("hidden"))); | |
24313 | ||
24314 | ||
24315 | extern __typeof (gtk_settings_install_property_parser) IA__gtk_settings_install_property_parser __attribute((visibility("hidden"))); | |
24316 | ||
24317 | ||
24318 | extern __typeof (gtk_settings_set_double_property) IA__gtk_settings_set_double_property __attribute((visibility("hidden"))); | |
24319 | ||
24320 | ||
24321 | extern __typeof (gtk_settings_set_long_property) IA__gtk_settings_set_long_property __attribute((visibility("hidden"))); | |
24322 | ||
24323 | ||
24324 | extern __typeof (gtk_settings_set_property_value) IA__gtk_settings_set_property_value __attribute((visibility("hidden"))); | |
24325 | ||
24326 | ||
24327 | extern __typeof (gtk_settings_set_string_property) IA__gtk_settings_set_string_property __attribute((visibility("hidden"))); | |
24328 | ||
24329 | ||
24330 | extern __typeof (gtk_rc_property_parse_border) IA__gtk_rc_property_parse_border __attribute((visibility("hidden"))); | |
24331 | ||
24332 | ||
24333 | extern __typeof (gtk_rc_property_parse_color) IA__gtk_rc_property_parse_color __attribute((visibility("hidden"))); | |
24334 | ||
24335 | ||
24336 | extern __typeof (gtk_rc_property_parse_enum) IA__gtk_rc_property_parse_enum __attribute((visibility("hidden"))); | |
24337 | ||
24338 | ||
24339 | extern __typeof (gtk_rc_property_parse_flags) IA__gtk_rc_property_parse_flags __attribute((visibility("hidden"))); | |
24340 | ||
24341 | ||
24342 | extern __typeof (gtk_rc_property_parse_requisition) IA__gtk_rc_property_parse_requisition __attribute((visibility("hidden"))); | |
24343 | # 8402 "gtkalias.h" | |
24344 | extern __typeof (gtk_text_attributes_copy) IA__gtk_text_attributes_copy __attribute((visibility("hidden"))); | |
24345 | ||
24346 | ||
24347 | extern __typeof (gtk_text_attributes_copy_values) IA__gtk_text_attributes_copy_values __attribute((visibility("hidden"))); | |
24348 | ||
24349 | ||
24350 | extern __typeof (gtk_text_attributes_get_type) IA__gtk_text_attributes_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
24351 | ||
24352 | ||
24353 | extern __typeof (gtk_text_attributes_new) IA__gtk_text_attributes_new __attribute((visibility("hidden"))); | |
24354 | ||
24355 | ||
24356 | extern __typeof (gtk_text_attributes_ref) IA__gtk_text_attributes_ref __attribute((visibility("hidden"))); | |
24357 | ||
24358 | ||
24359 | extern __typeof (gtk_text_attributes_unref) IA__gtk_text_attributes_unref __attribute((visibility("hidden"))); | |
24360 | ||
24361 | ||
24362 | extern __typeof (gtk_text_tag_event) IA__gtk_text_tag_event __attribute((visibility("hidden"))); | |
24363 | ||
24364 | ||
24365 | extern __typeof (gtk_text_tag_get_priority) IA__gtk_text_tag_get_priority __attribute((visibility("hidden"))); | |
24366 | ||
24367 | ||
24368 | extern __typeof (gtk_text_tag_get_type) IA__gtk_text_tag_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
24369 | ||
24370 | ||
24371 | extern __typeof (gtk_text_tag_new) IA__gtk_text_tag_new __attribute((visibility("hidden"))); | |
24372 | ||
24373 | ||
24374 | extern __typeof (gtk_text_tag_set_priority) IA__gtk_text_tag_set_priority __attribute((visibility("hidden"))); | |
24375 | # 8707 "gtkalias.h" | |
24376 | extern __typeof (gtk_text_iter_backward_char) IA__gtk_text_iter_backward_char __attribute((visibility("hidden"))); | |
24377 | ||
24378 | ||
24379 | extern __typeof (gtk_text_iter_backward_chars) IA__gtk_text_iter_backward_chars __attribute((visibility("hidden"))); | |
24380 | ||
24381 | ||
24382 | extern __typeof (gtk_text_iter_backward_cursor_position) IA__gtk_text_iter_backward_cursor_position __attribute((visibility("hidden"))); | |
24383 | ||
24384 | ||
24385 | extern __typeof (gtk_text_iter_backward_cursor_positions) IA__gtk_text_iter_backward_cursor_positions __attribute((visibility("hidden"))); | |
24386 | ||
24387 | ||
24388 | extern __typeof (gtk_text_iter_backward_find_char) IA__gtk_text_iter_backward_find_char __attribute((visibility("hidden"))); | |
24389 | ||
24390 | ||
24391 | extern __typeof (gtk_text_iter_backward_line) IA__gtk_text_iter_backward_line __attribute((visibility("hidden"))); | |
24392 | ||
24393 | ||
24394 | extern __typeof (gtk_text_iter_backward_lines) IA__gtk_text_iter_backward_lines __attribute((visibility("hidden"))); | |
24395 | ||
24396 | ||
24397 | extern __typeof (gtk_text_iter_backward_search) IA__gtk_text_iter_backward_search __attribute((visibility("hidden"))); | |
24398 | ||
24399 | ||
24400 | extern __typeof (gtk_text_iter_backward_sentence_start) IA__gtk_text_iter_backward_sentence_start __attribute((visibility("hidden"))); | |
24401 | ||
24402 | ||
24403 | extern __typeof (gtk_text_iter_backward_sentence_starts) IA__gtk_text_iter_backward_sentence_starts __attribute((visibility("hidden"))); | |
24404 | ||
24405 | ||
24406 | extern __typeof (gtk_text_iter_backward_to_tag_toggle) IA__gtk_text_iter_backward_to_tag_toggle __attribute((visibility("hidden"))); | |
24407 | ||
24408 | ||
24409 | extern __typeof (gtk_text_iter_backward_visible_cursor_position) IA__gtk_text_iter_backward_visible_cursor_position __attribute((visibility("hidden"))); | |
24410 | ||
24411 | ||
24412 | extern __typeof (gtk_text_iter_backward_visible_cursor_positions) IA__gtk_text_iter_backward_visible_cursor_positions __attribute((visibility("hidden"))); | |
24413 | ||
24414 | ||
24415 | extern __typeof (gtk_text_iter_backward_visible_line) IA__gtk_text_iter_backward_visible_line __attribute((visibility("hidden"))); | |
24416 | ||
24417 | ||
24418 | extern __typeof (gtk_text_iter_backward_visible_lines) IA__gtk_text_iter_backward_visible_lines __attribute((visibility("hidden"))); | |
24419 | ||
24420 | ||
24421 | extern __typeof (gtk_text_iter_backward_visible_word_start) IA__gtk_text_iter_backward_visible_word_start __attribute((visibility("hidden"))); | |
24422 | ||
24423 | ||
24424 | extern __typeof (gtk_text_iter_backward_visible_word_starts) IA__gtk_text_iter_backward_visible_word_starts __attribute((visibility("hidden"))); | |
24425 | ||
24426 | ||
24427 | extern __typeof (gtk_text_iter_backward_word_start) IA__gtk_text_iter_backward_word_start __attribute((visibility("hidden"))); | |
24428 | ||
24429 | ||
24430 | extern __typeof (gtk_text_iter_backward_word_starts) IA__gtk_text_iter_backward_word_starts __attribute((visibility("hidden"))); | |
24431 | ||
24432 | ||
24433 | extern __typeof (gtk_text_iter_begins_tag) IA__gtk_text_iter_begins_tag __attribute((visibility("hidden"))); | |
24434 | ||
24435 | ||
24436 | extern __typeof (gtk_text_iter_can_insert) IA__gtk_text_iter_can_insert __attribute((visibility("hidden"))); | |
24437 | ||
24438 | ||
24439 | extern __typeof (gtk_text_iter_compare) IA__gtk_text_iter_compare __attribute((visibility("hidden"))); | |
24440 | ||
24441 | ||
24442 | extern __typeof (gtk_text_iter_copy) IA__gtk_text_iter_copy __attribute((visibility("hidden"))); | |
24443 | ||
24444 | ||
24445 | extern __typeof (gtk_text_iter_editable) IA__gtk_text_iter_editable __attribute((visibility("hidden"))); | |
24446 | ||
24447 | ||
24448 | extern __typeof (gtk_text_iter_ends_line) IA__gtk_text_iter_ends_line __attribute((visibility("hidden"))); | |
24449 | ||
24450 | ||
24451 | extern __typeof (gtk_text_iter_ends_sentence) IA__gtk_text_iter_ends_sentence __attribute((visibility("hidden"))); | |
24452 | ||
24453 | ||
24454 | extern __typeof (gtk_text_iter_ends_tag) IA__gtk_text_iter_ends_tag __attribute((visibility("hidden"))); | |
24455 | ||
24456 | ||
24457 | extern __typeof (gtk_text_iter_ends_word) IA__gtk_text_iter_ends_word __attribute((visibility("hidden"))); | |
24458 | ||
24459 | ||
24460 | extern __typeof (gtk_text_iter_equal) IA__gtk_text_iter_equal __attribute((visibility("hidden"))); | |
24461 | ||
24462 | ||
24463 | extern __typeof (gtk_text_iter_forward_char) IA__gtk_text_iter_forward_char __attribute((visibility("hidden"))); | |
24464 | ||
24465 | ||
24466 | extern __typeof (gtk_text_iter_forward_chars) IA__gtk_text_iter_forward_chars __attribute((visibility("hidden"))); | |
24467 | ||
24468 | ||
24469 | extern __typeof (gtk_text_iter_forward_cursor_position) IA__gtk_text_iter_forward_cursor_position __attribute((visibility("hidden"))); | |
24470 | ||
24471 | ||
24472 | extern __typeof (gtk_text_iter_forward_cursor_positions) IA__gtk_text_iter_forward_cursor_positions __attribute((visibility("hidden"))); | |
24473 | ||
24474 | ||
24475 | extern __typeof (gtk_text_iter_forward_find_char) IA__gtk_text_iter_forward_find_char __attribute((visibility("hidden"))); | |
24476 | ||
24477 | ||
24478 | extern __typeof (gtk_text_iter_forward_line) IA__gtk_text_iter_forward_line __attribute((visibility("hidden"))); | |
24479 | ||
24480 | ||
24481 | extern __typeof (gtk_text_iter_forward_lines) IA__gtk_text_iter_forward_lines __attribute((visibility("hidden"))); | |
24482 | ||
24483 | ||
24484 | extern __typeof (gtk_text_iter_forward_search) IA__gtk_text_iter_forward_search __attribute((visibility("hidden"))); | |
24485 | ||
24486 | ||
24487 | extern __typeof (gtk_text_iter_forward_sentence_end) IA__gtk_text_iter_forward_sentence_end __attribute((visibility("hidden"))); | |
24488 | ||
24489 | ||
24490 | extern __typeof (gtk_text_iter_forward_sentence_ends) IA__gtk_text_iter_forward_sentence_ends __attribute((visibility("hidden"))); | |
24491 | ||
24492 | ||
24493 | extern __typeof (gtk_text_iter_forward_to_end) IA__gtk_text_iter_forward_to_end __attribute((visibility("hidden"))); | |
24494 | ||
24495 | ||
24496 | extern __typeof (gtk_text_iter_forward_to_line_end) IA__gtk_text_iter_forward_to_line_end __attribute((visibility("hidden"))); | |
24497 | ||
24498 | ||
24499 | extern __typeof (gtk_text_iter_forward_to_tag_toggle) IA__gtk_text_iter_forward_to_tag_toggle __attribute((visibility("hidden"))); | |
24500 | ||
24501 | ||
24502 | extern __typeof (gtk_text_iter_forward_visible_cursor_position) IA__gtk_text_iter_forward_visible_cursor_position __attribute((visibility("hidden"))); | |
24503 | ||
24504 | ||
24505 | extern __typeof (gtk_text_iter_forward_visible_cursor_positions) IA__gtk_text_iter_forward_visible_cursor_positions __attribute((visibility("hidden"))); | |
24506 | ||
24507 | ||
24508 | extern __typeof (gtk_text_iter_forward_visible_line) IA__gtk_text_iter_forward_visible_line __attribute((visibility("hidden"))); | |
24509 | ||
24510 | ||
24511 | extern __typeof (gtk_text_iter_forward_visible_lines) IA__gtk_text_iter_forward_visible_lines __attribute((visibility("hidden"))); | |
24512 | ||
24513 | ||
24514 | extern __typeof (gtk_text_iter_forward_visible_word_end) IA__gtk_text_iter_forward_visible_word_end __attribute((visibility("hidden"))); | |
24515 | ||
24516 | ||
24517 | extern __typeof (gtk_text_iter_forward_visible_word_ends) IA__gtk_text_iter_forward_visible_word_ends __attribute((visibility("hidden"))); | |
24518 | ||
24519 | ||
24520 | extern __typeof (gtk_text_iter_forward_word_end) IA__gtk_text_iter_forward_word_end __attribute((visibility("hidden"))); | |
24521 | ||
24522 | ||
24523 | extern __typeof (gtk_text_iter_forward_word_ends) IA__gtk_text_iter_forward_word_ends __attribute((visibility("hidden"))); | |
24524 | ||
24525 | ||
24526 | extern __typeof (gtk_text_iter_free) IA__gtk_text_iter_free __attribute((visibility("hidden"))); | |
24527 | ||
24528 | ||
24529 | extern __typeof (gtk_text_iter_get_attributes) IA__gtk_text_iter_get_attributes __attribute((visibility("hidden"))); | |
24530 | ||
24531 | ||
24532 | extern __typeof (gtk_text_iter_get_buffer) IA__gtk_text_iter_get_buffer __attribute((visibility("hidden"))); | |
24533 | ||
24534 | ||
24535 | extern __typeof (gtk_text_iter_get_bytes_in_line) IA__gtk_text_iter_get_bytes_in_line __attribute((visibility("hidden"))); | |
24536 | ||
24537 | ||
24538 | extern __typeof (gtk_text_iter_get_char) IA__gtk_text_iter_get_char __attribute((visibility("hidden"))); | |
24539 | ||
24540 | ||
24541 | extern __typeof (gtk_text_iter_get_chars_in_line) IA__gtk_text_iter_get_chars_in_line __attribute((visibility("hidden"))); | |
24542 | ||
24543 | ||
24544 | extern __typeof (gtk_text_iter_get_child_anchor) IA__gtk_text_iter_get_child_anchor __attribute((visibility("hidden"))); | |
24545 | ||
24546 | ||
24547 | extern __typeof (gtk_text_iter_get_language) IA__gtk_text_iter_get_language __attribute((visibility("hidden"))); | |
24548 | ||
24549 | ||
24550 | extern __typeof (gtk_text_iter_get_line) IA__gtk_text_iter_get_line __attribute((visibility("hidden"))); | |
24551 | ||
24552 | ||
24553 | extern __typeof (gtk_text_iter_get_line_index) IA__gtk_text_iter_get_line_index __attribute((visibility("hidden"))); | |
24554 | ||
24555 | ||
24556 | extern __typeof (gtk_text_iter_get_line_offset) IA__gtk_text_iter_get_line_offset __attribute((visibility("hidden"))); | |
24557 | ||
24558 | ||
24559 | extern __typeof (gtk_text_iter_get_marks) IA__gtk_text_iter_get_marks __attribute((visibility("hidden"))); | |
24560 | ||
24561 | ||
24562 | extern __typeof (gtk_text_iter_get_offset) IA__gtk_text_iter_get_offset __attribute((visibility("hidden"))); | |
24563 | ||
24564 | ||
24565 | extern __typeof (gtk_text_iter_get_pixbuf) IA__gtk_text_iter_get_pixbuf __attribute((visibility("hidden"))); | |
24566 | ||
24567 | ||
24568 | extern __typeof (gtk_text_iter_get_slice) IA__gtk_text_iter_get_slice __attribute((visibility("hidden"))); | |
24569 | ||
24570 | ||
24571 | extern __typeof (gtk_text_iter_get_tags) IA__gtk_text_iter_get_tags __attribute((visibility("hidden"))); | |
24572 | ||
24573 | ||
24574 | extern __typeof (gtk_text_iter_get_text) IA__gtk_text_iter_get_text __attribute((visibility("hidden"))); | |
24575 | ||
24576 | ||
24577 | extern __typeof (gtk_text_iter_get_toggled_tags) IA__gtk_text_iter_get_toggled_tags __attribute((visibility("hidden"))); | |
24578 | ||
24579 | ||
24580 | extern __typeof (gtk_text_iter_get_type) IA__gtk_text_iter_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
24581 | ||
24582 | ||
24583 | extern __typeof (gtk_text_iter_get_visible_line_index) IA__gtk_text_iter_get_visible_line_index __attribute((visibility("hidden"))); | |
24584 | ||
24585 | ||
24586 | extern __typeof (gtk_text_iter_get_visible_line_offset) IA__gtk_text_iter_get_visible_line_offset __attribute((visibility("hidden"))); | |
24587 | ||
24588 | ||
24589 | extern __typeof (gtk_text_iter_get_visible_slice) IA__gtk_text_iter_get_visible_slice __attribute((visibility("hidden"))); | |
24590 | ||
24591 | ||
24592 | extern __typeof (gtk_text_iter_get_visible_text) IA__gtk_text_iter_get_visible_text __attribute((visibility("hidden"))); | |
24593 | ||
24594 | ||
24595 | extern __typeof (gtk_text_iter_has_tag) IA__gtk_text_iter_has_tag __attribute((visibility("hidden"))); | |
24596 | ||
24597 | ||
24598 | extern __typeof (gtk_text_iter_in_range) IA__gtk_text_iter_in_range __attribute((visibility("hidden"))); | |
24599 | ||
24600 | ||
24601 | extern __typeof (gtk_text_iter_inside_sentence) IA__gtk_text_iter_inside_sentence __attribute((visibility("hidden"))); | |
24602 | ||
24603 | ||
24604 | extern __typeof (gtk_text_iter_inside_word) IA__gtk_text_iter_inside_word __attribute((visibility("hidden"))); | |
24605 | ||
24606 | ||
24607 | extern __typeof (gtk_text_iter_is_cursor_position) IA__gtk_text_iter_is_cursor_position __attribute((visibility("hidden"))); | |
24608 | ||
24609 | ||
24610 | extern __typeof (gtk_text_iter_is_end) IA__gtk_text_iter_is_end __attribute((visibility("hidden"))); | |
24611 | ||
24612 | ||
24613 | extern __typeof (gtk_text_iter_is_start) IA__gtk_text_iter_is_start __attribute((visibility("hidden"))); | |
24614 | ||
24615 | ||
24616 | extern __typeof (gtk_text_iter_order) IA__gtk_text_iter_order __attribute((visibility("hidden"))); | |
24617 | ||
24618 | ||
24619 | extern __typeof (gtk_text_iter_set_line) IA__gtk_text_iter_set_line __attribute((visibility("hidden"))); | |
24620 | ||
24621 | ||
24622 | extern __typeof (gtk_text_iter_set_line_index) IA__gtk_text_iter_set_line_index __attribute((visibility("hidden"))); | |
24623 | ||
24624 | ||
24625 | extern __typeof (gtk_text_iter_set_line_offset) IA__gtk_text_iter_set_line_offset __attribute((visibility("hidden"))); | |
24626 | ||
24627 | ||
24628 | extern __typeof (gtk_text_iter_set_offset) IA__gtk_text_iter_set_offset __attribute((visibility("hidden"))); | |
24629 | ||
24630 | ||
24631 | extern __typeof (gtk_text_iter_set_visible_line_index) IA__gtk_text_iter_set_visible_line_index __attribute((visibility("hidden"))); | |
24632 | ||
24633 | ||
24634 | extern __typeof (gtk_text_iter_set_visible_line_offset) IA__gtk_text_iter_set_visible_line_offset __attribute((visibility("hidden"))); | |
24635 | ||
24636 | ||
24637 | extern __typeof (gtk_text_iter_starts_line) IA__gtk_text_iter_starts_line __attribute((visibility("hidden"))); | |
24638 | ||
24639 | ||
24640 | extern __typeof (gtk_text_iter_starts_sentence) IA__gtk_text_iter_starts_sentence __attribute((visibility("hidden"))); | |
24641 | ||
24642 | ||
24643 | extern __typeof (gtk_text_iter_starts_word) IA__gtk_text_iter_starts_word __attribute((visibility("hidden"))); | |
24644 | ||
24645 | ||
24646 | extern __typeof (gtk_text_iter_toggles_tag) IA__gtk_text_iter_toggles_tag __attribute((visibility("hidden"))); | |
24647 | # 9120 "gtkalias.h" | |
24648 | extern __typeof (gtk_text_child_anchor_get_deleted) IA__gtk_text_child_anchor_get_deleted __attribute((visibility("hidden"))); | |
24649 | ||
24650 | ||
24651 | extern __typeof (gtk_text_child_anchor_get_type) IA__gtk_text_child_anchor_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
24652 | ||
24653 | ||
24654 | extern __typeof (gtk_text_child_anchor_get_widgets) IA__gtk_text_child_anchor_get_widgets __attribute((visibility("hidden"))); | |
24655 | ||
24656 | ||
24657 | extern __typeof (gtk_text_child_anchor_new) IA__gtk_text_child_anchor_new __attribute((visibility("hidden"))); | |
24658 | # 10805 "gtkalias.h" | |
24659 | extern __typeof (gtk_type_class) IA__gtk_type_class __attribute((visibility("hidden"))); | |
24660 | ||
24661 | ||
24662 | extern __typeof (gtk_identifier_get_type) IA__gtk_identifier_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
24663 | ||
24664 | ||
24665 | ||
24666 | extern __typeof (gtk_type_enum_find_value) IA__gtk_type_enum_find_value __attribute((visibility("hidden"))); | |
24667 | ||
24668 | ||
24669 | extern __typeof (gtk_type_enum_get_values) IA__gtk_type_enum_get_values __attribute((visibility("hidden"))); | |
24670 | ||
24671 | ||
24672 | extern __typeof (gtk_type_flags_find_value) IA__gtk_type_flags_find_value __attribute((visibility("hidden"))); | |
24673 | ||
24674 | ||
24675 | extern __typeof (gtk_type_flags_get_values) IA__gtk_type_flags_get_values __attribute((visibility("hidden"))); | |
24676 | ||
24677 | ||
24678 | extern __typeof (gtk_type_init) IA__gtk_type_init __attribute((visibility("hidden"))); | |
24679 | ||
24680 | ||
24681 | extern __typeof (gtk_type_new) IA__gtk_type_new __attribute((visibility("hidden"))); | |
24682 | ||
24683 | ||
24684 | extern __typeof (gtk_type_unique) IA__gtk_type_unique __attribute((visibility("hidden"))); | |
24685 | # 11026 "gtkalias.h" | |
24686 | extern __typeof (gtk_requisition_copy) IA__gtk_requisition_copy __attribute((visibility("hidden"))); | |
24687 | ||
24688 | ||
24689 | extern __typeof (gtk_requisition_free) IA__gtk_requisition_free __attribute((visibility("hidden"))); | |
24690 | ||
24691 | ||
24692 | extern __typeof (gtk_requisition_get_type) IA__gtk_requisition_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
24693 | ||
24694 | ||
24695 | extern __typeof (gtk_widget_activate) IA__gtk_widget_activate __attribute((visibility("hidden"))); | |
24696 | ||
24697 | ||
24698 | extern __typeof (gtk_widget_is_composited) IA__gtk_widget_is_composited __attribute((visibility("hidden"))); | |
24699 | ||
24700 | ||
24701 | extern __typeof (gtk_widget_add_accelerator) IA__gtk_widget_add_accelerator __attribute((visibility("hidden"))); | |
24702 | ||
24703 | ||
24704 | extern __typeof (gtk_widget_add_events) IA__gtk_widget_add_events __attribute((visibility("hidden"))); | |
24705 | ||
24706 | ||
24707 | extern __typeof (gtk_widget_add_mnemonic_label) IA__gtk_widget_add_mnemonic_label __attribute((visibility("hidden"))); | |
24708 | ||
24709 | ||
24710 | extern __typeof (gtk_widget_can_activate_accel) IA__gtk_widget_can_activate_accel __attribute((visibility("hidden"))); | |
24711 | ||
24712 | ||
24713 | extern __typeof (gtk_widget_child_focus) IA__gtk_widget_child_focus __attribute((visibility("hidden"))); | |
24714 | ||
24715 | ||
24716 | extern __typeof (gtk_widget_child_notify) IA__gtk_widget_child_notify __attribute((visibility("hidden"))); | |
24717 | ||
24718 | ||
24719 | extern __typeof (gtk_widget_class_find_style_property) IA__gtk_widget_class_find_style_property __attribute((visibility("hidden"))); | |
24720 | ||
24721 | ||
24722 | extern __typeof (gtk_widget_class_install_style_property) IA__gtk_widget_class_install_style_property __attribute((visibility("hidden"))); | |
24723 | ||
24724 | ||
24725 | extern __typeof (gtk_widget_class_install_style_property_parser) IA__gtk_widget_class_install_style_property_parser __attribute((visibility("hidden"))); | |
24726 | ||
24727 | ||
24728 | extern __typeof (gtk_widget_class_list_style_properties) IA__gtk_widget_class_list_style_properties __attribute((visibility("hidden"))); | |
24729 | ||
24730 | ||
24731 | extern __typeof (gtk_widget_class_path) IA__gtk_widget_class_path __attribute((visibility("hidden"))); | |
24732 | ||
24733 | ||
24734 | extern __typeof (gtk_widget_create_pango_context) IA__gtk_widget_create_pango_context __attribute((visibility("hidden"))); | |
24735 | ||
24736 | ||
24737 | extern __typeof (gtk_widget_create_pango_layout) IA__gtk_widget_create_pango_layout __attribute((visibility("hidden"))); | |
24738 | ||
24739 | ||
24740 | extern __typeof (gtk_widget_destroy) IA__gtk_widget_destroy __attribute((visibility("hidden"))); | |
24741 | ||
24742 | ||
24743 | extern __typeof (gtk_widget_destroyed) IA__gtk_widget_destroyed __attribute((visibility("hidden"))); | |
24744 | ||
24745 | ||
24746 | extern __typeof (gtk_widget_ensure_style) IA__gtk_widget_ensure_style __attribute((visibility("hidden"))); | |
24747 | ||
24748 | ||
24749 | extern __typeof (gtk_widget_error_bell) IA__gtk_widget_error_bell __attribute((visibility("hidden"))); | |
24750 | ||
24751 | ||
24752 | extern __typeof (gtk_widget_event) IA__gtk_widget_event __attribute((visibility("hidden"))); | |
24753 | ||
24754 | ||
24755 | extern __typeof (gtk_widget_freeze_child_notify) IA__gtk_widget_freeze_child_notify __attribute((visibility("hidden"))); | |
24756 | ||
24757 | ||
24758 | extern __typeof (gtk_widget_get_accessible) IA__gtk_widget_get_accessible __attribute((visibility("hidden"))); | |
24759 | ||
24760 | ||
24761 | extern __typeof (gtk_widget_get_ancestor) IA__gtk_widget_get_ancestor __attribute((visibility("hidden"))); | |
24762 | ||
24763 | ||
24764 | extern __typeof (gtk_widget_get_child_requisition) IA__gtk_widget_get_child_requisition __attribute((visibility("hidden"))); | |
24765 | ||
24766 | ||
24767 | extern __typeof (gtk_widget_get_child_visible) IA__gtk_widget_get_child_visible __attribute((visibility("hidden"))); | |
24768 | ||
24769 | ||
24770 | extern __typeof (gtk_widget_get_clipboard) IA__gtk_widget_get_clipboard __attribute((visibility("hidden"))); | |
24771 | ||
24772 | ||
24773 | extern __typeof (gtk_widget_get_colormap) IA__gtk_widget_get_colormap __attribute((visibility("hidden"))); | |
24774 | ||
24775 | ||
24776 | extern __typeof (gtk_widget_get_composite_name) IA__gtk_widget_get_composite_name __attribute((visibility("hidden"))); | |
24777 | ||
24778 | ||
24779 | extern __typeof (gtk_widget_get_default_colormap) IA__gtk_widget_get_default_colormap __attribute((visibility("hidden"))); | |
24780 | ||
24781 | ||
24782 | extern __typeof (gtk_widget_get_default_direction) IA__gtk_widget_get_default_direction __attribute((visibility("hidden"))); | |
24783 | ||
24784 | ||
24785 | extern __typeof (gtk_widget_get_default_style) IA__gtk_widget_get_default_style __attribute((visibility("hidden"))); | |
24786 | ||
24787 | ||
24788 | extern __typeof (gtk_widget_get_default_visual) IA__gtk_widget_get_default_visual __attribute((visibility("hidden"))); | |
24789 | ||
24790 | ||
24791 | extern __typeof (gtk_widget_get_direction) IA__gtk_widget_get_direction __attribute((visibility("hidden"))); | |
24792 | ||
24793 | ||
24794 | extern __typeof (gtk_widget_get_display) IA__gtk_widget_get_display __attribute((visibility("hidden"))); | |
24795 | ||
24796 | ||
24797 | extern __typeof (gtk_widget_get_events) IA__gtk_widget_get_events __attribute((visibility("hidden"))); | |
24798 | ||
24799 | ||
24800 | extern __typeof (gtk_widget_get_extension_events) IA__gtk_widget_get_extension_events __attribute((visibility("hidden"))); | |
24801 | ||
24802 | ||
24803 | extern __typeof (gtk_widget_get_has_tooltip) IA__gtk_widget_get_has_tooltip __attribute((visibility("hidden"))); | |
24804 | ||
24805 | ||
24806 | extern __typeof (gtk_widget_get_modifier_style) IA__gtk_widget_get_modifier_style __attribute((visibility("hidden"))); | |
24807 | ||
24808 | ||
24809 | extern __typeof (gtk_widget_get_name) IA__gtk_widget_get_name __attribute((visibility("hidden"))); | |
24810 | ||
24811 | ||
24812 | extern __typeof (gtk_widget_get_no_show_all) IA__gtk_widget_get_no_show_all __attribute((visibility("hidden"))); | |
24813 | ||
24814 | ||
24815 | extern __typeof (gtk_widget_get_pango_context) IA__gtk_widget_get_pango_context __attribute((visibility("hidden"))); | |
24816 | ||
24817 | ||
24818 | extern __typeof (gtk_widget_get_parent) IA__gtk_widget_get_parent __attribute((visibility("hidden"))); | |
24819 | ||
24820 | ||
24821 | extern __typeof (gtk_widget_get_parent_window) IA__gtk_widget_get_parent_window __attribute((visibility("hidden"))); | |
24822 | ||
24823 | ||
24824 | extern __typeof (gtk_widget_get_pointer) IA__gtk_widget_get_pointer __attribute((visibility("hidden"))); | |
24825 | ||
24826 | ||
24827 | extern __typeof (gtk_widget_get_root_window) IA__gtk_widget_get_root_window __attribute((visibility("hidden"))); | |
24828 | ||
24829 | ||
24830 | extern __typeof (gtk_widget_get_screen) IA__gtk_widget_get_screen __attribute((visibility("hidden"))); | |
24831 | ||
24832 | ||
24833 | extern __typeof (gtk_widget_get_settings) IA__gtk_widget_get_settings __attribute((visibility("hidden"))); | |
24834 | ||
24835 | ||
24836 | extern __typeof (gtk_widget_get_size_request) IA__gtk_widget_get_size_request __attribute((visibility("hidden"))); | |
24837 | ||
24838 | ||
24839 | extern __typeof (gtk_widget_get_style) IA__gtk_widget_get_style __attribute((visibility("hidden"))); | |
24840 | ||
24841 | ||
24842 | extern __typeof (gtk_widget_get_tooltip_markup) IA__gtk_widget_get_tooltip_markup __attribute((visibility("hidden"))); | |
24843 | ||
24844 | ||
24845 | extern __typeof (gtk_widget_get_tooltip_text) IA__gtk_widget_get_tooltip_text __attribute((visibility("hidden"))); | |
24846 | ||
24847 | ||
24848 | extern __typeof (gtk_widget_get_tooltip_window) IA__gtk_widget_get_tooltip_window __attribute((visibility("hidden"))); | |
24849 | ||
24850 | ||
24851 | extern __typeof (gtk_widget_get_toplevel) IA__gtk_widget_get_toplevel __attribute((visibility("hidden"))); | |
24852 | ||
24853 | ||
24854 | extern __typeof (gtk_widget_get_type) IA__gtk_widget_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
24855 | ||
24856 | ||
24857 | extern __typeof (gtk_widget_get_visual) IA__gtk_widget_get_visual __attribute((visibility("hidden"))); | |
24858 | ||
24859 | ||
24860 | extern __typeof (gtk_widget_grab_default) IA__gtk_widget_grab_default __attribute((visibility("hidden"))); | |
24861 | ||
24862 | ||
24863 | extern __typeof (gtk_widget_grab_focus) IA__gtk_widget_grab_focus __attribute((visibility("hidden"))); | |
24864 | ||
24865 | ||
24866 | extern __typeof (gtk_widget_has_screen) IA__gtk_widget_has_screen __attribute((visibility("hidden"))); | |
24867 | ||
24868 | ||
24869 | extern __typeof (gtk_widget_hide) IA__gtk_widget_hide __attribute((visibility("hidden"))); | |
24870 | ||
24871 | ||
24872 | extern __typeof (gtk_widget_hide_all) IA__gtk_widget_hide_all __attribute((visibility("hidden"))); | |
24873 | ||
24874 | ||
24875 | extern __typeof (gtk_widget_hide_on_delete) IA__gtk_widget_hide_on_delete __attribute((visibility("hidden"))); | |
24876 | ||
24877 | ||
24878 | extern __typeof (gtk_widget_intersect) IA__gtk_widget_intersect __attribute((visibility("hidden"))); | |
24879 | ||
24880 | ||
24881 | extern __typeof (gtk_widget_is_ancestor) IA__gtk_widget_is_ancestor __attribute((visibility("hidden"))); | |
24882 | ||
24883 | ||
24884 | extern __typeof (gtk_widget_is_focus) IA__gtk_widget_is_focus __attribute((visibility("hidden"))); | |
24885 | ||
24886 | ||
24887 | extern __typeof (gtk_widget_keynav_failed) IA__gtk_widget_keynav_failed __attribute((visibility("hidden"))); | |
24888 | ||
24889 | ||
24890 | extern __typeof (gtk_widget_list_accel_closures) IA__gtk_widget_list_accel_closures __attribute((visibility("hidden"))); | |
24891 | ||
24892 | ||
24893 | extern __typeof (gtk_widget_list_mnemonic_labels) IA__gtk_widget_list_mnemonic_labels __attribute((visibility("hidden"))); | |
24894 | ||
24895 | ||
24896 | extern __typeof (gtk_widget_map) IA__gtk_widget_map __attribute((visibility("hidden"))); | |
24897 | ||
24898 | ||
24899 | extern __typeof (gtk_widget_mnemonic_activate) IA__gtk_widget_mnemonic_activate __attribute((visibility("hidden"))); | |
24900 | ||
24901 | ||
24902 | extern __typeof (gtk_widget_modify_base) IA__gtk_widget_modify_base __attribute((visibility("hidden"))); | |
24903 | ||
24904 | ||
24905 | extern __typeof (gtk_widget_modify_bg) IA__gtk_widget_modify_bg __attribute((visibility("hidden"))); | |
24906 | ||
24907 | ||
24908 | extern __typeof (gtk_widget_modify_fg) IA__gtk_widget_modify_fg __attribute((visibility("hidden"))); | |
24909 | ||
24910 | ||
24911 | extern __typeof (gtk_widget_modify_cursor) IA__gtk_widget_modify_cursor __attribute((visibility("hidden"))); | |
24912 | ||
24913 | ||
24914 | extern __typeof (gtk_widget_modify_font) IA__gtk_widget_modify_font __attribute((visibility("hidden"))); | |
24915 | ||
24916 | ||
24917 | extern __typeof (gtk_widget_modify_style) IA__gtk_widget_modify_style __attribute((visibility("hidden"))); | |
24918 | ||
24919 | ||
24920 | extern __typeof (gtk_widget_modify_text) IA__gtk_widget_modify_text __attribute((visibility("hidden"))); | |
24921 | ||
24922 | ||
24923 | extern __typeof (gtk_widget_new) IA__gtk_widget_new __attribute((visibility("hidden"))); | |
24924 | ||
24925 | ||
24926 | extern __typeof (gtk_widget_path) IA__gtk_widget_path __attribute((visibility("hidden"))); | |
24927 | ||
24928 | ||
24929 | extern __typeof (gtk_widget_pop_colormap) IA__gtk_widget_pop_colormap __attribute((visibility("hidden"))); | |
24930 | ||
24931 | ||
24932 | extern __typeof (gtk_widget_pop_composite_child) IA__gtk_widget_pop_composite_child __attribute((visibility("hidden"))); | |
24933 | ||
24934 | ||
24935 | extern __typeof (gtk_widget_push_colormap) IA__gtk_widget_push_colormap __attribute((visibility("hidden"))); | |
24936 | ||
24937 | ||
24938 | extern __typeof (gtk_widget_push_composite_child) IA__gtk_widget_push_composite_child __attribute((visibility("hidden"))); | |
24939 | ||
24940 | ||
24941 | ||
24942 | extern __typeof (gtk_widget_draw) IA__gtk_widget_draw __attribute((visibility("hidden"))); | |
24943 | ||
24944 | ||
24945 | extern __typeof (gtk_widget_queue_clear) IA__gtk_widget_queue_clear __attribute((visibility("hidden"))); | |
24946 | ||
24947 | ||
24948 | extern __typeof (gtk_widget_queue_clear_area) IA__gtk_widget_queue_clear_area __attribute((visibility("hidden"))); | |
24949 | ||
24950 | ||
24951 | extern __typeof (gtk_widget_set) IA__gtk_widget_set __attribute((visibility("hidden"))); | |
24952 | ||
24953 | ||
24954 | extern __typeof (gtk_widget_set_uposition) IA__gtk_widget_set_uposition __attribute((visibility("hidden"))); | |
24955 | ||
24956 | ||
24957 | extern __typeof (gtk_widget_set_usize) IA__gtk_widget_set_usize __attribute((visibility("hidden"))); | |
24958 | ||
24959 | ||
24960 | ||
24961 | extern __typeof (gtk_widget_queue_draw) IA__gtk_widget_queue_draw __attribute((visibility("hidden"))); | |
24962 | ||
24963 | ||
24964 | extern __typeof (gtk_widget_queue_draw_area) IA__gtk_widget_queue_draw_area __attribute((visibility("hidden"))); | |
24965 | ||
24966 | ||
24967 | extern __typeof (gtk_widget_queue_resize) IA__gtk_widget_queue_resize __attribute((visibility("hidden"))); | |
24968 | ||
24969 | ||
24970 | extern __typeof (gtk_widget_queue_resize_no_redraw) IA__gtk_widget_queue_resize_no_redraw __attribute((visibility("hidden"))); | |
24971 | ||
24972 | ||
24973 | extern __typeof (gtk_widget_realize) IA__gtk_widget_realize __attribute((visibility("hidden"))); | |
24974 | ||
24975 | ||
24976 | extern __typeof (gtk_widget_ref) IA__gtk_widget_ref __attribute((visibility("hidden"))); | |
24977 | ||
24978 | ||
24979 | extern __typeof (gtk_widget_region_intersect) IA__gtk_widget_region_intersect __attribute((visibility("hidden"))); | |
24980 | ||
24981 | ||
24982 | extern __typeof (gtk_widget_remove_accelerator) IA__gtk_widget_remove_accelerator __attribute((visibility("hidden"))); | |
24983 | ||
24984 | ||
24985 | extern __typeof (gtk_widget_remove_mnemonic_label) IA__gtk_widget_remove_mnemonic_label __attribute((visibility("hidden"))); | |
24986 | ||
24987 | ||
24988 | extern __typeof (gtk_widget_render_icon) IA__gtk_widget_render_icon __attribute((visibility("hidden"))); | |
24989 | ||
24990 | ||
24991 | extern __typeof (gtk_widget_reparent) IA__gtk_widget_reparent __attribute((visibility("hidden"))); | |
24992 | ||
24993 | ||
24994 | extern __typeof (gtk_widget_reset_rc_styles) IA__gtk_widget_reset_rc_styles __attribute((visibility("hidden"))); | |
24995 | ||
24996 | ||
24997 | extern __typeof (gtk_widget_reset_shapes) IA__gtk_widget_reset_shapes __attribute((visibility("hidden"))); | |
24998 | ||
24999 | ||
25000 | extern __typeof (gtk_widget_send_expose) IA__gtk_widget_send_expose __attribute((visibility("hidden"))); | |
25001 | ||
25002 | ||
25003 | extern __typeof (gtk_widget_set_accel_path) IA__gtk_widget_set_accel_path __attribute((visibility("hidden"))); | |
25004 | ||
25005 | ||
25006 | extern __typeof (gtk_widget_set_app_paintable) IA__gtk_widget_set_app_paintable __attribute((visibility("hidden"))); | |
25007 | ||
25008 | ||
25009 | extern __typeof (gtk_widget_set_child_visible) IA__gtk_widget_set_child_visible __attribute((visibility("hidden"))); | |
25010 | ||
25011 | ||
25012 | extern __typeof (gtk_widget_set_colormap) IA__gtk_widget_set_colormap __attribute((visibility("hidden"))); | |
25013 | ||
25014 | ||
25015 | extern __typeof (gtk_widget_set_composite_name) IA__gtk_widget_set_composite_name __attribute((visibility("hidden"))); | |
25016 | ||
25017 | ||
25018 | extern __typeof (gtk_widget_set_default_colormap) IA__gtk_widget_set_default_colormap __attribute((visibility("hidden"))); | |
25019 | ||
25020 | ||
25021 | extern __typeof (gtk_widget_set_default_direction) IA__gtk_widget_set_default_direction __attribute((visibility("hidden"))); | |
25022 | ||
25023 | ||
25024 | extern __typeof (gtk_widget_set_direction) IA__gtk_widget_set_direction __attribute((visibility("hidden"))); | |
25025 | ||
25026 | ||
25027 | extern __typeof (gtk_widget_set_double_buffered) IA__gtk_widget_set_double_buffered __attribute((visibility("hidden"))); | |
25028 | ||
25029 | ||
25030 | extern __typeof (gtk_widget_set_events) IA__gtk_widget_set_events __attribute((visibility("hidden"))); | |
25031 | ||
25032 | ||
25033 | extern __typeof (gtk_widget_set_extension_events) IA__gtk_widget_set_extension_events __attribute((visibility("hidden"))); | |
25034 | ||
25035 | ||
25036 | extern __typeof (gtk_widget_set_has_tooltip) IA__gtk_widget_set_has_tooltip __attribute((visibility("hidden"))); | |
25037 | ||
25038 | ||
25039 | extern __typeof (gtk_widget_set_name) IA__gtk_widget_set_name __attribute((visibility("hidden"))); | |
25040 | ||
25041 | ||
25042 | extern __typeof (gtk_widget_set_no_show_all) IA__gtk_widget_set_no_show_all __attribute((visibility("hidden"))); | |
25043 | ||
25044 | ||
25045 | extern __typeof (gtk_widget_set_parent) IA__gtk_widget_set_parent __attribute((visibility("hidden"))); | |
25046 | ||
25047 | ||
25048 | extern __typeof (gtk_widget_set_parent_window) IA__gtk_widget_set_parent_window __attribute((visibility("hidden"))); | |
25049 | ||
25050 | ||
25051 | extern __typeof (gtk_widget_set_redraw_on_allocate) IA__gtk_widget_set_redraw_on_allocate __attribute((visibility("hidden"))); | |
25052 | ||
25053 | ||
25054 | extern __typeof (gtk_widget_set_scroll_adjustments) IA__gtk_widget_set_scroll_adjustments __attribute((visibility("hidden"))); | |
25055 | ||
25056 | ||
25057 | extern __typeof (gtk_widget_set_sensitive) IA__gtk_widget_set_sensitive __attribute((visibility("hidden"))); | |
25058 | ||
25059 | ||
25060 | extern __typeof (gtk_widget_set_size_request) IA__gtk_widget_set_size_request __attribute((visibility("hidden"))); | |
25061 | ||
25062 | ||
25063 | extern __typeof (gtk_widget_set_state) IA__gtk_widget_set_state __attribute((visibility("hidden"))); | |
25064 | ||
25065 | ||
25066 | extern __typeof (gtk_widget_set_style) IA__gtk_widget_set_style __attribute((visibility("hidden"))); | |
25067 | ||
25068 | ||
25069 | extern __typeof (gtk_widget_set_tooltip_markup) IA__gtk_widget_set_tooltip_markup __attribute((visibility("hidden"))); | |
25070 | ||
25071 | ||
25072 | extern __typeof (gtk_widget_set_tooltip_text) IA__gtk_widget_set_tooltip_text __attribute((visibility("hidden"))); | |
25073 | ||
25074 | ||
25075 | extern __typeof (gtk_widget_set_tooltip_window) IA__gtk_widget_set_tooltip_window __attribute((visibility("hidden"))); | |
25076 | ||
25077 | ||
25078 | extern __typeof (gtk_widget_shape_combine_mask) IA__gtk_widget_shape_combine_mask __attribute((visibility("hidden"))); | |
25079 | ||
25080 | ||
25081 | extern __typeof (gtk_widget_input_shape_combine_mask) IA__gtk_widget_input_shape_combine_mask __attribute((visibility("hidden"))); | |
25082 | ||
25083 | ||
25084 | extern __typeof (gtk_widget_show) IA__gtk_widget_show __attribute((visibility("hidden"))); | |
25085 | ||
25086 | ||
25087 | extern __typeof (gtk_widget_show_all) IA__gtk_widget_show_all __attribute((visibility("hidden"))); | |
25088 | ||
25089 | ||
25090 | extern __typeof (gtk_widget_show_now) IA__gtk_widget_show_now __attribute((visibility("hidden"))); | |
25091 | ||
25092 | ||
25093 | extern __typeof (gtk_widget_size_allocate) IA__gtk_widget_size_allocate __attribute((visibility("hidden"))); | |
25094 | ||
25095 | ||
25096 | extern __typeof (gtk_widget_size_request) IA__gtk_widget_size_request __attribute((visibility("hidden"))); | |
25097 | ||
25098 | ||
25099 | extern __typeof (gtk_widget_style_get) IA__gtk_widget_style_get __attribute((visibility("hidden"))) __attribute__((__sentinel__)); | |
25100 | ||
25101 | ||
25102 | extern __typeof (gtk_widget_style_get_property) IA__gtk_widget_style_get_property __attribute((visibility("hidden"))); | |
25103 | ||
25104 | ||
25105 | extern __typeof (gtk_widget_style_get_valist) IA__gtk_widget_style_get_valist __attribute((visibility("hidden"))); | |
25106 | ||
25107 | ||
25108 | extern __typeof (gtk_widget_thaw_child_notify) IA__gtk_widget_thaw_child_notify __attribute((visibility("hidden"))); | |
25109 | ||
25110 | ||
25111 | extern __typeof (gtk_widget_translate_coordinates) IA__gtk_widget_translate_coordinates __attribute((visibility("hidden"))); | |
25112 | ||
25113 | ||
25114 | extern __typeof (gtk_widget_trigger_tooltip_query) IA__gtk_widget_trigger_tooltip_query __attribute((visibility("hidden"))); | |
25115 | ||
25116 | ||
25117 | extern __typeof (gtk_widget_unmap) IA__gtk_widget_unmap __attribute((visibility("hidden"))); | |
25118 | ||
25119 | ||
25120 | extern __typeof (gtk_widget_unparent) IA__gtk_widget_unparent __attribute((visibility("hidden"))); | |
25121 | ||
25122 | ||
25123 | extern __typeof (gtk_widget_unrealize) IA__gtk_widget_unrealize __attribute((visibility("hidden"))); | |
25124 | ||
25125 | ||
25126 | extern __typeof (gtk_widget_unref) IA__gtk_widget_unref __attribute((visibility("hidden"))); | |
25127 | ||
25128 | ||
25129 | ||
25130 | ||
25131 | ||
25132 | ||
25133 | extern __typeof (gtk_window_activate_default) IA__gtk_window_activate_default __attribute((visibility("hidden"))); | |
25134 | ||
25135 | ||
25136 | extern __typeof (gtk_window_activate_focus) IA__gtk_window_activate_focus __attribute((visibility("hidden"))); | |
25137 | ||
25138 | ||
25139 | extern __typeof (gtk_window_activate_key) IA__gtk_window_activate_key __attribute((visibility("hidden"))); | |
25140 | ||
25141 | ||
25142 | extern __typeof (gtk_window_add_accel_group) IA__gtk_window_add_accel_group __attribute((visibility("hidden"))); | |
25143 | ||
25144 | ||
25145 | extern __typeof (gtk_window_add_embedded_xid) IA__gtk_window_add_embedded_xid __attribute((visibility("hidden"))); | |
25146 | ||
25147 | ||
25148 | extern __typeof (gtk_window_add_mnemonic) IA__gtk_window_add_mnemonic __attribute((visibility("hidden"))); | |
25149 | ||
25150 | ||
25151 | extern __typeof (gtk_window_begin_move_drag) IA__gtk_window_begin_move_drag __attribute((visibility("hidden"))); | |
25152 | ||
25153 | ||
25154 | extern __typeof (gtk_window_begin_resize_drag) IA__gtk_window_begin_resize_drag __attribute((visibility("hidden"))); | |
25155 | ||
25156 | ||
25157 | extern __typeof (gtk_window_deiconify) IA__gtk_window_deiconify __attribute((visibility("hidden"))); | |
25158 | ||
25159 | ||
25160 | extern __typeof (gtk_window_fullscreen) IA__gtk_window_fullscreen __attribute((visibility("hidden"))); | |
25161 | ||
25162 | ||
25163 | extern __typeof (gtk_window_get_accept_focus) IA__gtk_window_get_accept_focus __attribute((visibility("hidden"))); | |
25164 | ||
25165 | ||
25166 | extern __typeof (gtk_window_get_decorated) IA__gtk_window_get_decorated __attribute((visibility("hidden"))); | |
25167 | ||
25168 | ||
25169 | extern __typeof (gtk_window_get_deletable) IA__gtk_window_get_deletable __attribute((visibility("hidden"))); | |
25170 | ||
25171 | ||
25172 | extern __typeof (gtk_window_get_default_icon_list) IA__gtk_window_get_default_icon_list __attribute((visibility("hidden"))); | |
25173 | ||
25174 | ||
25175 | extern __typeof (gtk_window_get_default_size) IA__gtk_window_get_default_size __attribute((visibility("hidden"))); | |
25176 | ||
25177 | ||
25178 | extern __typeof (gtk_window_get_destroy_with_parent) IA__gtk_window_get_destroy_with_parent __attribute((visibility("hidden"))); | |
25179 | ||
25180 | ||
25181 | extern __typeof (gtk_window_get_focus) IA__gtk_window_get_focus __attribute((visibility("hidden"))); | |
25182 | ||
25183 | ||
25184 | extern __typeof (gtk_window_get_focus_on_map) IA__gtk_window_get_focus_on_map __attribute((visibility("hidden"))); | |
25185 | ||
25186 | ||
25187 | extern __typeof (gtk_window_get_frame_dimensions) IA__gtk_window_get_frame_dimensions __attribute((visibility("hidden"))); | |
25188 | ||
25189 | ||
25190 | extern __typeof (gtk_window_get_gravity) IA__gtk_window_get_gravity __attribute((visibility("hidden"))); | |
25191 | ||
25192 | ||
25193 | extern __typeof (gtk_window_get_group) IA__gtk_window_get_group __attribute((visibility("hidden"))); | |
25194 | ||
25195 | ||
25196 | extern __typeof (gtk_window_get_has_frame) IA__gtk_window_get_has_frame __attribute((visibility("hidden"))); | |
25197 | ||
25198 | ||
25199 | extern __typeof (gtk_window_get_icon) IA__gtk_window_get_icon __attribute((visibility("hidden"))); | |
25200 | ||
25201 | ||
25202 | extern __typeof (gtk_window_get_icon_list) IA__gtk_window_get_icon_list __attribute((visibility("hidden"))); | |
25203 | ||
25204 | ||
25205 | extern __typeof (gtk_window_get_icon_name) IA__gtk_window_get_icon_name __attribute((visibility("hidden"))); | |
25206 | ||
25207 | ||
25208 | extern __typeof (gtk_window_get_mnemonic_modifier) IA__gtk_window_get_mnemonic_modifier __attribute((visibility("hidden"))); | |
25209 | ||
25210 | ||
25211 | extern __typeof (gtk_window_get_modal) IA__gtk_window_get_modal __attribute((visibility("hidden"))); | |
25212 | ||
25213 | ||
25214 | extern __typeof (gtk_window_get_position) IA__gtk_window_get_position __attribute((visibility("hidden"))); | |
25215 | ||
25216 | ||
25217 | extern __typeof (gtk_window_get_resizable) IA__gtk_window_get_resizable __attribute((visibility("hidden"))); | |
25218 | ||
25219 | ||
25220 | extern __typeof (gtk_window_get_role) IA__gtk_window_get_role __attribute((visibility("hidden"))); | |
25221 | ||
25222 | ||
25223 | extern __typeof (gtk_window_get_screen) IA__gtk_window_get_screen __attribute((visibility("hidden"))); | |
25224 | ||
25225 | ||
25226 | extern __typeof (gtk_window_get_size) IA__gtk_window_get_size __attribute((visibility("hidden"))); | |
25227 | ||
25228 | ||
25229 | extern __typeof (gtk_window_get_skip_pager_hint) IA__gtk_window_get_skip_pager_hint __attribute((visibility("hidden"))); | |
25230 | ||
25231 | ||
25232 | extern __typeof (gtk_window_get_skip_taskbar_hint) IA__gtk_window_get_skip_taskbar_hint __attribute((visibility("hidden"))); | |
25233 | ||
25234 | ||
25235 | extern __typeof (gtk_window_get_urgency_hint) IA__gtk_window_get_urgency_hint __attribute((visibility("hidden"))); | |
25236 | ||
25237 | ||
25238 | extern __typeof (gtk_window_get_title) IA__gtk_window_get_title __attribute((visibility("hidden"))); | |
25239 | ||
25240 | ||
25241 | extern __typeof (gtk_window_get_transient_for) IA__gtk_window_get_transient_for __attribute((visibility("hidden"))); | |
25242 | ||
25243 | ||
25244 | extern __typeof (gtk_window_get_type) IA__gtk_window_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
25245 | ||
25246 | ||
25247 | extern __typeof (gtk_window_get_type_hint) IA__gtk_window_get_type_hint __attribute((visibility("hidden"))); | |
25248 | ||
25249 | ||
25250 | extern __typeof (gtk_window_group_add_window) IA__gtk_window_group_add_window __attribute((visibility("hidden"))); | |
25251 | ||
25252 | ||
25253 | extern __typeof (gtk_window_group_get_type) IA__gtk_window_group_get_type __attribute((visibility("hidden"))) __attribute__((__const__)); | |
25254 | ||
25255 | ||
25256 | extern __typeof (gtk_window_group_new) IA__gtk_window_group_new __attribute((visibility("hidden"))); | |
25257 | ||
25258 | ||
25259 | extern __typeof (gtk_window_group_remove_window) IA__gtk_window_group_remove_window __attribute((visibility("hidden"))); | |
25260 | ||
25261 | ||
25262 | extern __typeof (gtk_window_has_toplevel_focus) IA__gtk_window_has_toplevel_focus __attribute((visibility("hidden"))); | |
25263 | ||
25264 | ||
25265 | extern __typeof (gtk_window_iconify) IA__gtk_window_iconify __attribute((visibility("hidden"))); | |
25266 | ||
25267 | ||
25268 | extern __typeof (gtk_window_is_active) IA__gtk_window_is_active __attribute((visibility("hidden"))); | |
25269 | ||
25270 | ||
25271 | extern __typeof (gtk_window_list_toplevels) IA__gtk_window_list_toplevels __attribute((visibility("hidden"))); | |
25272 | ||
25273 | ||
25274 | extern __typeof (gtk_window_maximize) IA__gtk_window_maximize __attribute((visibility("hidden"))); | |
25275 | ||
25276 | ||
25277 | extern __typeof (gtk_window_mnemonic_activate) IA__gtk_window_mnemonic_activate __attribute((visibility("hidden"))); | |
25278 | ||
25279 | ||
25280 | extern __typeof (gtk_window_move) IA__gtk_window_move __attribute((visibility("hidden"))); | |
25281 | ||
25282 | ||
25283 | extern __typeof (gtk_window_new) IA__gtk_window_new __attribute((visibility("hidden"))); | |
25284 | ||
25285 | ||
25286 | extern __typeof (gtk_window_parse_geometry) IA__gtk_window_parse_geometry __attribute((visibility("hidden"))); | |
25287 | ||
25288 | ||
25289 | extern __typeof (gtk_window_present) IA__gtk_window_present __attribute((visibility("hidden"))); | |
25290 | ||
25291 | ||
25292 | extern __typeof (gtk_window_present_with_time) IA__gtk_window_present_with_time __attribute((visibility("hidden"))); | |
25293 | ||
25294 | ||
25295 | extern __typeof (gtk_window_propagate_key_event) IA__gtk_window_propagate_key_event __attribute((visibility("hidden"))); | |
25296 | ||
25297 | ||
25298 | extern __typeof (gtk_window_remove_accel_group) IA__gtk_window_remove_accel_group __attribute((visibility("hidden"))); | |
25299 | ||
25300 | ||
25301 | extern __typeof (gtk_window_remove_embedded_xid) IA__gtk_window_remove_embedded_xid __attribute((visibility("hidden"))); | |
25302 | ||
25303 | ||
25304 | extern __typeof (gtk_window_remove_mnemonic) IA__gtk_window_remove_mnemonic __attribute((visibility("hidden"))); | |
25305 | ||
25306 | ||
25307 | extern __typeof (gtk_window_reshow_with_initial_size) IA__gtk_window_reshow_with_initial_size __attribute((visibility("hidden"))); | |
25308 | ||
25309 | ||
25310 | extern __typeof (gtk_window_resize) IA__gtk_window_resize __attribute((visibility("hidden"))); | |
25311 | ||
25312 | ||
25313 | extern __typeof (gtk_window_set_accept_focus) IA__gtk_window_set_accept_focus __attribute((visibility("hidden"))); | |
25314 | ||
25315 | ||
25316 | extern __typeof (gtk_window_set_auto_startup_notification) IA__gtk_window_set_auto_startup_notification __attribute((visibility("hidden"))); | |
25317 | ||
25318 | ||
25319 | extern __typeof (gtk_window_set_decorated) IA__gtk_window_set_decorated __attribute((visibility("hidden"))); | |
25320 | ||
25321 | ||
25322 | extern __typeof (gtk_window_set_deletable) IA__gtk_window_set_deletable __attribute((visibility("hidden"))); | |
25323 | ||
25324 | ||
25325 | extern __typeof (gtk_window_set_default) IA__gtk_window_set_default __attribute((visibility("hidden"))); | |
25326 | ||
25327 | ||
25328 | extern __typeof (gtk_window_set_default_icon) IA__gtk_window_set_default_icon __attribute((visibility("hidden"))); | |
25329 | ||
25330 | ||
25331 | extern __typeof (gtk_window_set_default_icon_from_file) IA__gtk_window_set_default_icon_from_file __attribute((visibility("hidden"))); | |
25332 | ||
25333 | ||
25334 | ||
25335 | ||
25336 | ||
25337 | ||
25338 | ||
25339 | extern __typeof (gtk_window_set_default_icon_list) IA__gtk_window_set_default_icon_list __attribute((visibility("hidden"))); | |
25340 | ||
25341 | ||
25342 | extern __typeof (gtk_window_set_default_icon_name) IA__gtk_window_set_default_icon_name __attribute((visibility("hidden"))); | |
25343 | ||
25344 | ||
25345 | extern __typeof (gtk_window_set_default_size) IA__gtk_window_set_default_size __attribute((visibility("hidden"))); | |
25346 | ||
25347 | ||
25348 | extern __typeof (gtk_window_set_destroy_with_parent) IA__gtk_window_set_destroy_with_parent __attribute((visibility("hidden"))); | |
25349 | ||
25350 | ||
25351 | extern __typeof (gtk_window_set_focus) IA__gtk_window_set_focus __attribute((visibility("hidden"))); | |
25352 | ||
25353 | ||
25354 | extern __typeof (gtk_window_set_focus_on_map) IA__gtk_window_set_focus_on_map __attribute((visibility("hidden"))); | |
25355 | ||
25356 | ||
25357 | extern __typeof (gtk_window_set_startup_id) IA__gtk_window_set_startup_id __attribute((visibility("hidden"))); | |
25358 | ||
25359 | ||
25360 | extern __typeof (gtk_window_set_frame_dimensions) IA__gtk_window_set_frame_dimensions __attribute((visibility("hidden"))); | |
25361 | ||
25362 | ||
25363 | extern __typeof (gtk_window_set_geometry_hints) IA__gtk_window_set_geometry_hints __attribute((visibility("hidden"))); | |
25364 | ||
25365 | ||
25366 | extern __typeof (gtk_window_set_gravity) IA__gtk_window_set_gravity __attribute((visibility("hidden"))); | |
25367 | ||
25368 | ||
25369 | extern __typeof (gtk_window_set_has_frame) IA__gtk_window_set_has_frame __attribute((visibility("hidden"))); | |
25370 | ||
25371 | ||
25372 | extern __typeof (gtk_window_set_icon) IA__gtk_window_set_icon __attribute((visibility("hidden"))); | |
25373 | ||
25374 | ||
25375 | extern __typeof (gtk_window_set_icon_from_file) IA__gtk_window_set_icon_from_file __attribute((visibility("hidden"))); | |
25376 | ||
25377 | ||
25378 | ||
25379 | ||
25380 | ||
25381 | ||
25382 | ||
25383 | extern __typeof (gtk_window_set_icon_list) IA__gtk_window_set_icon_list __attribute((visibility("hidden"))); | |
25384 | ||
25385 | ||
25386 | extern __typeof (gtk_window_set_icon_name) IA__gtk_window_set_icon_name __attribute((visibility("hidden"))); | |
25387 | ||
25388 | ||
25389 | extern __typeof (gtk_window_set_keep_above) IA__gtk_window_set_keep_above __attribute((visibility("hidden"))); | |
25390 | ||
25391 | ||
25392 | extern __typeof (gtk_window_set_keep_below) IA__gtk_window_set_keep_below __attribute((visibility("hidden"))); | |
25393 | ||
25394 | ||
25395 | extern __typeof (gtk_window_set_mnemonic_modifier) IA__gtk_window_set_mnemonic_modifier __attribute((visibility("hidden"))); | |
25396 | ||
25397 | ||
25398 | extern __typeof (gtk_window_set_modal) IA__gtk_window_set_modal __attribute((visibility("hidden"))); | |
25399 | ||
25400 | ||
25401 | extern __typeof (gtk_window_set_opacity) IA__gtk_window_set_opacity __attribute((visibility("hidden"))); | |
25402 | ||
25403 | ||
25404 | extern __typeof (gtk_window_get_opacity) IA__gtk_window_get_opacity __attribute((visibility("hidden"))); | |
25405 | ||
25406 | ||
25407 | ||
25408 | extern __typeof (gtk_window_set_policy) IA__gtk_window_set_policy __attribute((visibility("hidden"))); | |
25409 | ||
25410 | ||
25411 | ||
25412 | extern __typeof (gtk_window_set_position) IA__gtk_window_set_position __attribute((visibility("hidden"))); | |
25413 | ||
25414 | ||
25415 | extern __typeof (gtk_window_set_resizable) IA__gtk_window_set_resizable __attribute((visibility("hidden"))); | |
25416 | ||
25417 | ||
25418 | extern __typeof (gtk_window_set_role) IA__gtk_window_set_role __attribute((visibility("hidden"))); | |
25419 | ||
25420 | ||
25421 | extern __typeof (gtk_window_set_screen) IA__gtk_window_set_screen __attribute((visibility("hidden"))); | |
25422 | ||
25423 | ||
25424 | extern __typeof (gtk_window_set_skip_pager_hint) IA__gtk_window_set_skip_pager_hint __attribute((visibility("hidden"))); | |
25425 | ||
25426 | ||
25427 | extern __typeof (gtk_window_set_skip_taskbar_hint) IA__gtk_window_set_skip_taskbar_hint __attribute((visibility("hidden"))); | |
25428 | ||
25429 | ||
25430 | extern __typeof (gtk_window_set_urgency_hint) IA__gtk_window_set_urgency_hint __attribute((visibility("hidden"))); | |
25431 | ||
25432 | ||
25433 | extern __typeof (gtk_window_set_title) IA__gtk_window_set_title __attribute((visibility("hidden"))); | |
25434 | ||
25435 | ||
25436 | extern __typeof (gtk_window_set_transient_for) IA__gtk_window_set_transient_for __attribute((visibility("hidden"))); | |
25437 | ||
25438 | ||
25439 | extern __typeof (gtk_window_set_type_hint) IA__gtk_window_set_type_hint __attribute((visibility("hidden"))); | |
25440 | ||
25441 | ||
25442 | extern __typeof (gtk_window_set_wmclass) IA__gtk_window_set_wmclass __attribute((visibility("hidden"))); | |
25443 | ||
25444 | ||
25445 | extern __typeof (gtk_window_stick) IA__gtk_window_stick __attribute((visibility("hidden"))); | |
25446 | ||
25447 | ||
25448 | extern __typeof (gtk_window_unfullscreen) IA__gtk_window_unfullscreen __attribute((visibility("hidden"))); | |
25449 | ||
25450 | ||
25451 | extern __typeof (gtk_window_unmaximize) IA__gtk_window_unmaximize __attribute((visibility("hidden"))); | |
25452 | ||
25453 | ||
25454 | extern __typeof (gtk_window_unstick) IA__gtk_window_unstick __attribute((visibility("hidden"))); | |
25455 | # 44 "gtknotebook.c" 2 | |
25456 | ||
25457 | ||
25458 | ||
25459 | ||
25460 | ||
25461 | ||
25462 | ||
25463 | enum { | |
25464 | SWITCH_PAGE, | |
25465 | FOCUS_TAB, | |
25466 | SELECT_PAGE, | |
25467 | CHANGE_CURRENT_PAGE, | |
25468 | MOVE_FOCUS_OUT, | |
25469 | REORDER_TAB, | |
25470 | PAGE_REORDERED, | |
25471 | PAGE_REMOVED, | |
25472 | PAGE_ADDED, | |
25473 | CREATE_WINDOW, | |
25474 | LAST_SIGNAL | |
25475 | }; | |
25476 | ||
25477 | enum { | |
25478 | STEP_PREV, | |
25479 | STEP_NEXT | |
25480 | }; | |
25481 | ||
25482 | typedef enum | |
25483 | { | |
25484 | ARROW_NONE, | |
25485 | ARROW_LEFT_BEFORE, | |
25486 | ARROW_RIGHT_BEFORE, | |
25487 | ARROW_LEFT_AFTER, | |
25488 | ARROW_RIGHT_AFTER | |
25489 | } GtkNotebookArrow; | |
25490 | ||
25491 | typedef enum | |
25492 | { | |
25493 | POINTER_BEFORE, | |
25494 | POINTER_AFTER, | |
25495 | POINTER_BETWEEN | |
25496 | } GtkNotebookPointerPosition; | |
25497 | ||
25498 | typedef enum | |
25499 | { | |
25500 | DRAG_OPERATION_NONE, | |
25501 | DRAG_OPERATION_REORDER, | |
25502 | DRAG_OPERATION_DETACH | |
25503 | } GtkNotebookDragOperation; | |
25504 | ||
25505 | ||
25506 | ||
25507 | ||
25508 | enum { | |
25509 | PROP_0, | |
25510 | PROP_TAB_POS, | |
25511 | PROP_SHOW_TABS, | |
25512 | PROP_SHOW_BORDER, | |
25513 | PROP_SCROLLABLE, | |
25514 | PROP_TAB_BORDER, | |
25515 | PROP_TAB_HBORDER, | |
25516 | PROP_TAB_VBORDER, | |
25517 | PROP_PAGE, | |
25518 | PROP_ENABLE_POPUP, | |
25519 | PROP_GROUP_ID, | |
25520 | PROP_GROUP, | |
25521 | PROP_HOMOGENEOUS | |
25522 | }; | |
25523 | ||
25524 | enum { | |
25525 | CHILD_PROP_0, | |
25526 | CHILD_PROP_TAB_LABEL, | |
25527 | CHILD_PROP_MENU_LABEL, | |
25528 | CHILD_PROP_POSITION, | |
25529 | CHILD_PROP_TAB_EXPAND, | |
25530 | CHILD_PROP_TAB_FILL, | |
25531 | CHILD_PROP_TAB_PACK, | |
25532 | CHILD_PROP_REORDERABLE, | |
25533 | CHILD_PROP_DETACHABLE | |
25534 | }; | |
25535 | # 135 "gtknotebook.c" | |
25536 | struct _GtkNotebookPage | |
25537 | { | |
25538 | GtkWidget *child; | |
25539 | GtkWidget *tab_label; | |
25540 | GtkWidget *menu_label; | |
25541 | GtkWidget *last_focus_child; | |
25542 | ||
25543 | guint default_menu : 1; | |
25544 | guint default_tab : 1; | |
25545 | guint expand : 1; | |
25546 | guint fill : 1; | |
25547 | guint pack : 1; | |
25548 | guint reorderable : 1; | |
25549 | guint detachable : 1; | |
25550 | ||
25551 | GtkRequisition requisition; | |
25552 | GtkAllocation allocation; | |
25553 | ||
25554 | gulong mnemonic_activate_signal; | |
25555 | gulong notify_visible_handler; | |
25556 | }; | |
25557 | ||
25558 | ||
25559 | ||
25560 | typedef struct _GtkNotebookPrivate GtkNotebookPrivate; | |
25561 | ||
25562 | struct _GtkNotebookPrivate | |
25563 | { | |
25564 | gpointer group; | |
25565 | gint mouse_x; | |
25566 | gint mouse_y; | |
25567 | gint pressed_button; | |
25568 | guint dnd_timer; | |
25569 | guint switch_tab_timer; | |
25570 | ||
25571 | gint drag_begin_x; | |
25572 | gint drag_begin_y; | |
25573 | ||
25574 | gint drag_offset_x; | |
25575 | gint drag_offset_y; | |
25576 | ||
25577 | GtkWidget *dnd_window; | |
25578 | GtkTargetList *source_targets; | |
25579 | GtkNotebookDragOperation operation; | |
25580 | GdkWindow *drag_window; | |
25581 | gint drag_window_x; | |
25582 | gint drag_window_y; | |
25583 | GtkNotebookPage *detached_tab; | |
25584 | ||
25585 | guint32 timestamp; | |
25586 | ||
25587 | guint during_reorder : 1; | |
25588 | guint during_detach : 1; | |
25589 | guint has_scrolled : 1; | |
25590 | }; | |
25591 | ||
25592 | static const GtkTargetEntry notebook_targets [] = { | |
25593 | { "GTK_NOTEBOOK_TAB", GTK_TARGET_SAME_APP, 0 }, | |
25594 | }; | |
25595 | # 204 "gtknotebook.c" | |
25596 | static gboolean gtk_notebook_select_page (GtkNotebook *notebook, | |
25597 | gboolean move_focus); | |
25598 | static gboolean gtk_notebook_focus_tab (GtkNotebook *notebook, | |
25599 | GtkNotebookTab type); | |
25600 | static gboolean gtk_notebook_change_current_page (GtkNotebook *notebook, | |
25601 | gint offset); | |
25602 | static void gtk_notebook_move_focus_out (GtkNotebook *notebook, | |
25603 | GtkDirectionType direction_type); | |
25604 | static gboolean gtk_notebook_reorder_tab (GtkNotebook *notebook, | |
25605 | GtkDirectionType direction_type, | |
25606 | gboolean move_to_last); | |
25607 | static void gtk_notebook_remove_tab_label (GtkNotebook *notebook, | |
25608 | GtkNotebookPage *page); | |
25609 | ||
25610 | ||
25611 | static void gtk_notebook_destroy (GtkObject *object); | |
25612 | static void gtk_notebook_set_property (GObject *object, | |
25613 | guint prop_id, | |
25614 | const GValue *value, | |
25615 | GParamSpec *pspec); | |
25616 | static void gtk_notebook_get_property (GObject *object, | |
25617 | guint prop_id, | |
25618 | GValue *value, | |
25619 | GParamSpec *pspec); | |
25620 | ||
25621 | ||
25622 | static void gtk_notebook_map (GtkWidget *widget); | |
25623 | static void gtk_notebook_unmap (GtkWidget *widget); | |
25624 | static void gtk_notebook_realize (GtkWidget *widget); | |
25625 | static void gtk_notebook_unrealize (GtkWidget *widget); | |
25626 | static void gtk_notebook_size_request (GtkWidget *widget, | |
25627 | GtkRequisition *requisition); | |
25628 | static void gtk_notebook_size_allocate (GtkWidget *widget, | |
25629 | GtkAllocation *allocation); | |
25630 | static gint gtk_notebook_expose (GtkWidget *widget, | |
25631 | GdkEventExpose *event); | |
25632 | static gboolean gtk_notebook_scroll (GtkWidget *widget, | |
25633 | GdkEventScroll *event); | |
25634 | static gint gtk_notebook_button_press (GtkWidget *widget, | |
25635 | GdkEventButton *event); | |
25636 | static gint gtk_notebook_button_release (GtkWidget *widget, | |
25637 | GdkEventButton *event); | |
25638 | static gboolean gtk_notebook_popup_menu (GtkWidget *widget); | |
25639 | static gint gtk_notebook_leave_notify (GtkWidget *widget, | |
25640 | GdkEventCrossing *event); | |
25641 | static gint gtk_notebook_motion_notify (GtkWidget *widget, | |
25642 | GdkEventMotion *event); | |
25643 | static gint gtk_notebook_focus_in (GtkWidget *widget, | |
25644 | GdkEventFocus *event); | |
25645 | static gint gtk_notebook_focus_out (GtkWidget *widget, | |
25646 | GdkEventFocus *event); | |
25647 | static void gtk_notebook_grab_notify (GtkWidget *widget, | |
25648 | gboolean was_grabbed); | |
25649 | static void gtk_notebook_state_changed (GtkWidget *widget, | |
25650 | GtkStateType previous_state); | |
25651 | static void gtk_notebook_draw_focus (GtkWidget *widget, | |
25652 | GdkEventExpose *event); | |
25653 | static gint gtk_notebook_focus (GtkWidget *widget, | |
25654 | GtkDirectionType direction); | |
25655 | static void gtk_notebook_style_set (GtkWidget *widget, | |
25656 | GtkStyle *previous); | |
25657 | ||
25658 | ||
25659 | static void gtk_notebook_drag_begin (GtkWidget *widget, | |
25660 | GdkDragContext *context); | |
25661 | static void gtk_notebook_drag_end (GtkWidget *widget, | |
25662 | GdkDragContext *context); | |
25663 | static gboolean gtk_notebook_drag_failed (GtkWidget *widget, | |
25664 | GdkDragContext *context, | |
25665 | GtkDragResult result, | |
25666 | gpointer data); | |
25667 | static gboolean gtk_notebook_drag_motion (GtkWidget *widget, | |
25668 | GdkDragContext *context, | |
25669 | gint x, | |
25670 | gint y, | |
25671 | guint time); | |
25672 | static void gtk_notebook_drag_leave (GtkWidget *widget, | |
25673 | GdkDragContext *context, | |
25674 | guint time); | |
25675 | static gboolean gtk_notebook_drag_drop (GtkWidget *widget, | |
25676 | GdkDragContext *context, | |
25677 | gint x, | |
25678 | gint y, | |
25679 | guint time); | |
25680 | static void gtk_notebook_drag_data_get (GtkWidget *widget, | |
25681 | GdkDragContext *context, | |
25682 | GtkSelectionData *data, | |
25683 | guint info, | |
25684 | guint time); | |
25685 | static void gtk_notebook_drag_data_received (GtkWidget *widget, | |
25686 | GdkDragContext *context, | |
25687 | gint x, | |
25688 | gint y, | |
25689 | GtkSelectionData *data, | |
25690 | guint info, | |
25691 | guint time); | |
25692 | ||
25693 | ||
25694 | static void gtk_notebook_set_child_property (GtkContainer *container, | |
25695 | GtkWidget *child, | |
25696 | guint property_id, | |
25697 | const GValue *value, | |
25698 | GParamSpec *pspec); | |
25699 | static void gtk_notebook_get_child_property (GtkContainer *container, | |
25700 | GtkWidget *child, | |
25701 | guint property_id, | |
25702 | GValue *value, | |
25703 | GParamSpec *pspec); | |
25704 | static void gtk_notebook_add (GtkContainer *container, | |
25705 | GtkWidget *widget); | |
25706 | static void gtk_notebook_remove (GtkContainer *container, | |
25707 | GtkWidget *widget); | |
25708 | static void gtk_notebook_set_focus_child (GtkContainer *container, | |
25709 | GtkWidget *child); | |
25710 | static GType gtk_notebook_child_type (GtkContainer *container); | |
25711 | static void gtk_notebook_forall (GtkContainer *container, | |
25712 | gboolean include_internals, | |
25713 | GtkCallback callback, | |
25714 | gpointer callback_data); | |
25715 | ||
25716 | ||
25717 | static gint gtk_notebook_real_insert_page (GtkNotebook *notebook, | |
25718 | GtkWidget *child, | |
25719 | GtkWidget *tab_label, | |
25720 | GtkWidget *menu_label, | |
25721 | gint position); | |
25722 | ||
25723 | static GtkNotebook *gtk_notebook_create_window (GtkNotebook *notebook, | |
25724 | GtkWidget *page, | |
25725 | gint x, | |
25726 | gint y); | |
25727 | ||
25728 | ||
25729 | static void gtk_notebook_redraw_tabs (GtkNotebook *notebook); | |
25730 | static void gtk_notebook_redraw_arrows (GtkNotebook *notebook); | |
25731 | static void gtk_notebook_real_remove (GtkNotebook *notebook, | |
25732 | GList *list); | |
25733 | static void gtk_notebook_update_labels (GtkNotebook *notebook); | |
25734 | static gint gtk_notebook_timer (GtkNotebook *notebook); | |
25735 | static void gtk_notebook_set_scroll_timer (GtkNotebook *notebook); | |
25736 | static gint gtk_notebook_page_compare (gconstpointer a, | |
25737 | gconstpointer b); | |
25738 | static GList* gtk_notebook_find_child (GtkNotebook *notebook, | |
25739 | GtkWidget *child, | |
25740 | const gchar *function); | |
25741 | static gint gtk_notebook_real_page_position (GtkNotebook *notebook, | |
25742 | GList *list); | |
25743 | static GList * gtk_notebook_search_page (GtkNotebook *notebook, | |
25744 | GList *list, | |
25745 | gint direction, | |
25746 | gboolean find_visible); | |
25747 | static void gtk_notebook_child_reordered (GtkNotebook *notebook, | |
25748 | GtkNotebookPage *page); | |
25749 | ||
25750 | ||
25751 | static void gtk_notebook_paint (GtkWidget *widget, | |
25752 | GdkRectangle *area); | |
25753 | static void gtk_notebook_draw_tab (GtkNotebook *notebook, | |
25754 | GtkNotebookPage *page, | |
25755 | GdkRectangle *area); | |
25756 | static void gtk_notebook_draw_arrow (GtkNotebook *notebook, | |
25757 | GtkNotebookArrow arrow); | |
25758 | ||
25759 | ||
25760 | static void gtk_notebook_pages_allocate (GtkNotebook *notebook); | |
25761 | static void gtk_notebook_page_allocate (GtkNotebook *notebook, | |
25762 | GtkNotebookPage *page); | |
25763 | static void gtk_notebook_calc_tabs (GtkNotebook *notebook, | |
25764 | GList *start, | |
25765 | GList **end, | |
25766 | gint *tab_space, | |
25767 | guint direction); | |
25768 | ||
25769 | ||
25770 | static void gtk_notebook_real_switch_page (GtkNotebook *notebook, | |
25771 | GtkNotebookPage *page, | |
25772 | guint page_num); | |
25773 | ||
25774 | ||
25775 | static void gtk_notebook_switch_page (GtkNotebook *notebook, | |
25776 | GtkNotebookPage *page); | |
25777 | static gint gtk_notebook_page_select (GtkNotebook *notebook, | |
25778 | gboolean move_focus); | |
25779 | static void gtk_notebook_switch_focus_tab (GtkNotebook *notebook, | |
25780 | GList *new_child); | |
25781 | static void gtk_notebook_menu_switch_page (GtkWidget *widget, | |
25782 | GtkNotebookPage *page); | |
25783 | ||
25784 | ||
25785 | static void gtk_notebook_menu_item_create (GtkNotebook *notebook, | |
25786 | GList *list); | |
25787 | static void gtk_notebook_menu_label_unparent (GtkWidget *widget, | |
25788 | gpointer data); | |
25789 | static void gtk_notebook_menu_detacher (GtkWidget *widget, | |
25790 | GtkMenu *menu); | |
25791 | ||
25792 | ||
25793 | static void gtk_notebook_set_homogeneous_tabs_internal (GtkNotebook *notebook, | |
25794 | gboolean homogeneous); | |
25795 | static void gtk_notebook_set_tab_border_internal (GtkNotebook *notebook, | |
25796 | guint border_width); | |
25797 | static void gtk_notebook_set_tab_hborder_internal (GtkNotebook *notebook, | |
25798 | guint tab_hborder); | |
25799 | static void gtk_notebook_set_tab_vborder_internal (GtkNotebook *notebook, | |
25800 | guint tab_vborder); | |
25801 | ||
25802 | static void gtk_notebook_update_tab_states (GtkNotebook *notebook); | |
25803 | static gboolean gtk_notebook_mnemonic_activate_switch_page (GtkWidget *child, | |
25804 | gboolean overload, | |
25805 | gpointer data); | |
25806 | ||
25807 | static gboolean focus_tabs_in (GtkNotebook *notebook); | |
25808 | static gboolean focus_child_in (GtkNotebook *notebook, | |
25809 | GtkDirectionType direction); | |
25810 | ||
25811 | static void stop_scrolling (GtkNotebook *notebook); | |
25812 | static void do_detach_tab (GtkNotebook *from, | |
25813 | GtkNotebook *to, | |
25814 | GtkWidget *child, | |
25815 | gint x, | |
25816 | gint y); | |
25817 | ||
25818 | ||
25819 | static void gtk_notebook_buildable_init (GtkBuildableIface *iface); | |
25820 | static void gtk_notebook_buildable_add_child (GtkBuildable *buildable, | |
25821 | GtkBuilder *builder, | |
25822 | GObject *child, | |
25823 | const gchar *type); | |
25824 | ||
25825 | static GtkNotebookWindowCreationFunc window_creation_hook = ((void *)0); | |
25826 | static gpointer window_creation_hook_data; | |
25827 | static GDestroyNotify window_creation_hook_destroy = ((void *)0); | |
25828 | ||
25829 | static guint notebook_signals[LAST_SIGNAL] = { 0 }; | |
25830 | ||
25831 | static void gtk_notebook_init (GtkNotebook *self); static void gtk_notebook_class_init (GtkNotebookClass *klass); static gpointer gtk_notebook_parent_class = ((void *)0); static void gtk_notebook_class_intern_init (gpointer klass) { gtk_notebook_parent_class = g_type_class_peek_parent (klass); gtk_notebook_class_init ((GtkNotebookClass*) klass); } GType IA__gtk_notebook_get_type (void) { static volatile gsize g_define_type_id__volatile = 0; if (g_once_init_enter (&g_define_type_id__volatile)) { GType g_define_type_id = g_type_register_static_simple ((IA__gtk_container_get_type ()), g_intern_static_string ("GtkNotebook"), sizeof (GtkNotebookClass), (GClassInitFunc) gtk_notebook_class_intern_init, sizeof (GtkNotebook), (GInstanceInitFunc) gtk_notebook_init, (GTypeFlags) 0); { {{ const GInterfaceInfo g_implement_interface_info = { (GInterfaceInitFunc) gtk_notebook_buildable_init, ((void *)0), ((void *)0) }; g_type_add_interface_static (g_define_type_id, (IA__gtk_buildable_get_type ()), &g_implement_interface_info); };} } g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); } return g_define_type_id__volatile; } | |
25832 | ||
25833 | ||
25834 | ||
25835 | static void | |
25836 | add_tab_bindings (GtkBindingSet *binding_set, | |
25837 | GdkModifierType modifiers, | |
25838 | GtkDirectionType direction) | |
25839 | { | |
25840 | IA__gtk_binding_entry_add_signal (binding_set, 0xff09, modifiers, | |
25841 | "move_focus_out", 1, | |
25842 | (IA__gtk_direction_type_get_type()), direction); | |
25843 | IA__gtk_binding_entry_add_signal (binding_set, 0xff89, modifiers, | |
25844 | "move_focus_out", 1, | |
25845 | (IA__gtk_direction_type_get_type()), direction); | |
25846 | } | |
25847 | ||
25848 | static void | |
25849 | add_arrow_bindings (GtkBindingSet *binding_set, | |
25850 | guint keysym, | |
25851 | GtkDirectionType direction) | |
25852 | { | |
25853 | guint keypad_keysym = keysym - 0xff51 + 0xff96; | |
25854 | ||
25855 | IA__gtk_binding_entry_add_signal (binding_set, keysym, GDK_CONTROL_MASK, | |
25856 | "move_focus_out", 1, | |
25857 | (IA__gtk_direction_type_get_type()), direction); | |
25858 | IA__gtk_binding_entry_add_signal (binding_set, keypad_keysym, GDK_CONTROL_MASK, | |
25859 | "move_focus_out", 1, | |
25860 | (IA__gtk_direction_type_get_type()), direction); | |
25861 | } | |
25862 | ||
25863 | static void | |
25864 | add_reorder_bindings (GtkBindingSet *binding_set, | |
25865 | guint keysym, | |
25866 | GtkDirectionType direction, | |
25867 | gboolean move_to_last) | |
25868 | { | |
25869 | guint keypad_keysym = keysym - 0xff51 + 0xff96; | |
25870 | ||
25871 | IA__gtk_binding_entry_add_signal (binding_set, keysym, GDK_MOD1_MASK, | |
25872 | "reorder_tab", 2, | |
25873 | (IA__gtk_direction_type_get_type()), direction, | |
25874 | ((GType) ((5) << (2))), move_to_last); | |
25875 | IA__gtk_binding_entry_add_signal (binding_set, keypad_keysym, GDK_MOD1_MASK, | |
25876 | "reorder_tab", 2, | |
25877 | (IA__gtk_direction_type_get_type()), direction, | |
25878 | ((GType) ((5) << (2))), move_to_last); | |
25879 | } | |
25880 | ||
25881 | static gboolean | |
25882 | gtk_object_handled_accumulator (GSignalInvocationHint *ihint, | |
25883 | GValue *return_accu, | |
25884 | const GValue *handler_return, | |
25885 | gpointer dummy) | |
25886 | { | |
25887 | gboolean continue_emission; | |
25888 | GObject *object; | |
25889 | ||
25890 | object = g_value_get_object (handler_return); | |
25891 | g_value_set_object (return_accu, object); | |
25892 | continue_emission = !object; | |
25893 | ||
25894 | return continue_emission; | |
25895 | } | |
25896 | ||
25897 | static void | |
25898 | gtk_notebook_class_init (GtkNotebookClass *class) | |
25899 | { | |
25900 | GObjectClass *gobject_class = ((((GObjectClass*) ((class))))); | |
25901 | GtkObjectClass *object_class = ((((GtkObjectClass*) ((class))))); | |
25902 | GtkWidgetClass *widget_class = ((((GtkWidgetClass*) ((class))))); | |
25903 | GtkContainerClass *container_class = ((((GtkContainerClass*) ((class))))); | |
25904 | GtkBindingSet *binding_set; | |
25905 | ||
25906 | gobject_class->set_property = gtk_notebook_set_property; | |
25907 | gobject_class->get_property = gtk_notebook_get_property; | |
25908 | object_class->destroy = gtk_notebook_destroy; | |
25909 | ||
25910 | widget_class->map = gtk_notebook_map; | |
25911 | widget_class->unmap = gtk_notebook_unmap; | |
25912 | widget_class->realize = gtk_notebook_realize; | |
25913 | widget_class->unrealize = gtk_notebook_unrealize; | |
25914 | widget_class->size_request = gtk_notebook_size_request; | |
25915 | widget_class->size_allocate = gtk_notebook_size_allocate; | |
25916 | widget_class->expose_event = gtk_notebook_expose; | |
25917 | widget_class->scroll_event = gtk_notebook_scroll; | |
25918 | widget_class->button_press_event = gtk_notebook_button_press; | |
25919 | widget_class->button_release_event = gtk_notebook_button_release; | |
25920 | widget_class->popup_menu = gtk_notebook_popup_menu; | |
25921 | widget_class->leave_notify_event = gtk_notebook_leave_notify; | |
25922 | widget_class->motion_notify_event = gtk_notebook_motion_notify; | |
25923 | widget_class->grab_notify = gtk_notebook_grab_notify; | |
25924 | widget_class->state_changed = gtk_notebook_state_changed; | |
25925 | widget_class->focus_in_event = gtk_notebook_focus_in; | |
25926 | widget_class->focus_out_event = gtk_notebook_focus_out; | |
25927 | widget_class->focus = gtk_notebook_focus; | |
25928 | widget_class->style_set = gtk_notebook_style_set; | |
25929 | widget_class->drag_begin = gtk_notebook_drag_begin; | |
25930 | widget_class->drag_end = gtk_notebook_drag_end; | |
25931 | widget_class->drag_motion = gtk_notebook_drag_motion; | |
25932 | widget_class->drag_leave = gtk_notebook_drag_leave; | |
25933 | widget_class->drag_drop = gtk_notebook_drag_drop; | |
25934 | widget_class->drag_data_get = gtk_notebook_drag_data_get; | |
25935 | widget_class->drag_data_received = gtk_notebook_drag_data_received; | |
25936 | ||
25937 | container_class->add = gtk_notebook_add; | |
25938 | container_class->remove = gtk_notebook_remove; | |
25939 | container_class->forall = gtk_notebook_forall; | |
25940 | container_class->set_focus_child = gtk_notebook_set_focus_child; | |
25941 | container_class->get_child_property = gtk_notebook_get_child_property; | |
25942 | container_class->set_child_property = gtk_notebook_set_child_property; | |
25943 | container_class->child_type = gtk_notebook_child_type; | |
25944 | ||
25945 | class->switch_page = gtk_notebook_real_switch_page; | |
25946 | class->insert_page = gtk_notebook_real_insert_page; | |
25947 | ||
25948 | class->focus_tab = gtk_notebook_focus_tab; | |
25949 | class->select_page = gtk_notebook_select_page; | |
25950 | class->change_current_page = gtk_notebook_change_current_page; | |
25951 | class->move_focus_out = gtk_notebook_move_focus_out; | |
25952 | class->reorder_tab = gtk_notebook_reorder_tab; | |
25953 | class->create_window = gtk_notebook_create_window; | |
25954 | ||
25955 | g_object_class_install_property (gobject_class, | |
25956 | PROP_PAGE, | |
25957 | g_param_spec_int ("page", | |
25958 | dcgettext ("gtk20" "-properties", "Page", __LC_MESSAGES), | |
25959 | dcgettext ("gtk20" "-properties", "The index of the current page", __LC_MESSAGES), | |
25960 | 0, | |
25961 | 2147483647, | |
25962 | 0, | |
25963 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
25964 | g_object_class_install_property (gobject_class, | |
25965 | PROP_TAB_POS, | |
25966 | g_param_spec_enum ("tab-pos", | |
25967 | dcgettext ("gtk20" "-properties", "Tab Position", __LC_MESSAGES), | |
25968 | dcgettext ("gtk20" "-properties", "Which side of the notebook holds the tabs", __LC_MESSAGES), | |
25969 | (IA__gtk_position_type_get_type()), | |
25970 | GTK_POS_TOP, | |
25971 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
25972 | g_object_class_install_property (gobject_class, | |
25973 | PROP_TAB_BORDER, | |
25974 | g_param_spec_uint ("tab-border", | |
25975 | dcgettext ("gtk20" "-properties", "Tab Border", __LC_MESSAGES), | |
25976 | dcgettext ("gtk20" "-properties", "Width of the border around the tab labels", __LC_MESSAGES), | |
25977 | 0, | |
25978 | (2147483647 * 2U + 1U), | |
25979 | 2, | |
25980 | G_PARAM_WRITABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
25981 | g_object_class_install_property (gobject_class, | |
25982 | PROP_TAB_HBORDER, | |
25983 | g_param_spec_uint ("tab-hborder", | |
25984 | dcgettext ("gtk20" "-properties", "Horizontal Tab Border", __LC_MESSAGES), | |
25985 | dcgettext ("gtk20" "-properties", "Width of the horizontal border of tab labels", __LC_MESSAGES), | |
25986 | 0, | |
25987 | (2147483647 * 2U + 1U), | |
25988 | 2, | |
25989 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
25990 | g_object_class_install_property (gobject_class, | |
25991 | PROP_TAB_VBORDER, | |
25992 | g_param_spec_uint ("tab-vborder", | |
25993 | dcgettext ("gtk20" "-properties", "Vertical Tab Border", __LC_MESSAGES), | |
25994 | dcgettext ("gtk20" "-properties", "Width of the vertical border of tab labels", __LC_MESSAGES), | |
25995 | 0, | |
25996 | (2147483647 * 2U + 1U), | |
25997 | 2, | |
25998 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
25999 | g_object_class_install_property (gobject_class, | |
26000 | PROP_SHOW_TABS, | |
26001 | g_param_spec_boolean ("show-tabs", | |
26002 | dcgettext ("gtk20" "-properties", "Show Tabs", __LC_MESSAGES), | |
26003 | dcgettext ("gtk20" "-properties", "Whether tabs should be shown or not", __LC_MESSAGES), | |
26004 | (!(0)), | |
26005 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26006 | g_object_class_install_property (gobject_class, | |
26007 | PROP_SHOW_BORDER, | |
26008 | g_param_spec_boolean ("show-border", | |
26009 | dcgettext ("gtk20" "-properties", "Show Border", __LC_MESSAGES), | |
26010 | dcgettext ("gtk20" "-properties", "Whether the border should be shown or not", __LC_MESSAGES), | |
26011 | (!(0)), | |
26012 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26013 | g_object_class_install_property (gobject_class, | |
26014 | PROP_SCROLLABLE, | |
26015 | g_param_spec_boolean ("scrollable", | |
26016 | dcgettext ("gtk20" "-properties", "Scrollable", __LC_MESSAGES), | |
26017 | dcgettext ("gtk20" "-properties", "If TRUE, scroll arrows are added if there are too many tabs to fit", __LC_MESSAGES), | |
26018 | (0), | |
26019 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26020 | g_object_class_install_property (gobject_class, | |
26021 | PROP_ENABLE_POPUP, | |
26022 | g_param_spec_boolean ("enable-popup", | |
26023 | dcgettext ("gtk20" "-properties", "Enable Popup", __LC_MESSAGES), | |
26024 | dcgettext ("gtk20" "-properties", "If TRUE, pressing the right mouse button on the notebook pops up a menu that you can use to go to a page", __LC_MESSAGES), | |
26025 | (0), | |
26026 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26027 | g_object_class_install_property (gobject_class, | |
26028 | PROP_HOMOGENEOUS, | |
26029 | g_param_spec_boolean ("homogeneous", | |
26030 | dcgettext ("gtk20" "-properties", "Homogeneous", __LC_MESSAGES), | |
26031 | dcgettext ("gtk20" "-properties", "Whether tabs should have homogeneous sizes", __LC_MESSAGES), | |
26032 | (0), | |
26033 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26034 | g_object_class_install_property (gobject_class, | |
26035 | PROP_GROUP_ID, | |
26036 | g_param_spec_int ("group-id", | |
26037 | dcgettext ("gtk20" "-properties", "Group ID", __LC_MESSAGES), | |
26038 | dcgettext ("gtk20" "-properties", "Group ID for tabs drag and drop", __LC_MESSAGES), | |
26039 | -1, | |
26040 | 2147483647, | |
26041 | -1, | |
26042 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26043 | # 659 "gtknotebook.c" | |
26044 | g_object_class_install_property (gobject_class, | |
26045 | PROP_GROUP, | |
26046 | g_param_spec_pointer ("group", | |
26047 | dcgettext ("gtk20" "-properties", "Group", __LC_MESSAGES), | |
26048 | dcgettext ("gtk20" "-properties", "Group for tabs drag and drop", __LC_MESSAGES), | |
26049 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26050 | ||
26051 | IA__gtk_container_class_install_child_property (container_class, | |
26052 | CHILD_PROP_TAB_LABEL, | |
26053 | g_param_spec_string ("tab-label", | |
26054 | dcgettext ("gtk20" "-properties", "Tab label", __LC_MESSAGES), | |
26055 | dcgettext ("gtk20" "-properties", "The string displayed on the child's tab label", __LC_MESSAGES), | |
26056 | ((void *)0), | |
26057 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26058 | IA__gtk_container_class_install_child_property (container_class, | |
26059 | CHILD_PROP_MENU_LABEL, | |
26060 | g_param_spec_string ("menu-label", | |
26061 | dcgettext ("gtk20" "-properties", "Menu label", __LC_MESSAGES), | |
26062 | dcgettext ("gtk20" "-properties", "The string displayed in the child's menu entry", __LC_MESSAGES), | |
26063 | ((void *)0), | |
26064 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26065 | IA__gtk_container_class_install_child_property (container_class, | |
26066 | CHILD_PROP_POSITION, | |
26067 | g_param_spec_int ("position", | |
26068 | dcgettext ("gtk20" "-properties", "Position", __LC_MESSAGES), | |
26069 | dcgettext ("gtk20" "-properties", "The index of the child in the parent", __LC_MESSAGES), | |
26070 | -1, 2147483647, 0, | |
26071 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26072 | IA__gtk_container_class_install_child_property (container_class, | |
26073 | CHILD_PROP_TAB_EXPAND, | |
26074 | g_param_spec_boolean ("tab-expand", | |
26075 | dcgettext ("gtk20" "-properties", "Tab expand", __LC_MESSAGES), | |
26076 | dcgettext ("gtk20" "-properties", "Whether to expand the child's tab or not", __LC_MESSAGES), | |
26077 | (0), | |
26078 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26079 | IA__gtk_container_class_install_child_property (container_class, | |
26080 | CHILD_PROP_TAB_FILL, | |
26081 | g_param_spec_boolean ("tab-fill", | |
26082 | dcgettext ("gtk20" "-properties", "Tab fill", __LC_MESSAGES), | |
26083 | dcgettext ("gtk20" "-properties", "Whether the child's tab should fill the allocated area or not", __LC_MESSAGES), | |
26084 | (!(0)), | |
26085 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26086 | IA__gtk_container_class_install_child_property (container_class, | |
26087 | CHILD_PROP_TAB_PACK, | |
26088 | g_param_spec_enum ("tab-pack", | |
26089 | dcgettext ("gtk20" "-properties", "Tab pack type", __LC_MESSAGES), | |
26090 | dcgettext ("gtk20" "-properties", "A GtkPackType indicating whether the child is packed with reference to the start or end of the parent", __LC_MESSAGES), | |
26091 | (IA__gtk_pack_type_get_type()), GTK_PACK_START, | |
26092 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26093 | IA__gtk_container_class_install_child_property (container_class, | |
26094 | CHILD_PROP_REORDERABLE, | |
26095 | g_param_spec_boolean ("reorderable", | |
26096 | dcgettext ("gtk20" "-properties", "Tab reorderable", __LC_MESSAGES), | |
26097 | dcgettext ("gtk20" "-properties", "Whether the tab is reorderable by user action or not", __LC_MESSAGES), | |
26098 | (0), | |
26099 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26100 | IA__gtk_container_class_install_child_property (container_class, | |
26101 | CHILD_PROP_DETACHABLE, | |
26102 | g_param_spec_boolean ("detachable", | |
26103 | dcgettext ("gtk20" "-properties", "Tab detachable", __LC_MESSAGES), | |
26104 | dcgettext ("gtk20" "-properties", "Whether the tab is detachable", __LC_MESSAGES), | |
26105 | (0), | |
26106 | (G_PARAM_READABLE | G_PARAM_WRITABLE)|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26107 | # 732 "gtknotebook.c" | |
26108 | IA__gtk_widget_class_install_style_property (widget_class, | |
26109 | g_param_spec_boolean ("has-secondary-backward-stepper", | |
26110 | dcgettext ("gtk20" "-properties", "Secondary backward stepper", __LC_MESSAGES), | |
26111 | dcgettext ("gtk20" "-properties", "Display a second backward arrow button on the opposite end of the tab area", __LC_MESSAGES), | |
26112 | (0), | |
26113 | G_PARAM_READABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26114 | # 748 "gtknotebook.c" | |
26115 | IA__gtk_widget_class_install_style_property (widget_class, | |
26116 | g_param_spec_boolean ("has-secondary-forward-stepper", | |
26117 | dcgettext ("gtk20" "-properties", "Secondary forward stepper", __LC_MESSAGES), | |
26118 | dcgettext ("gtk20" "-properties", "Display a second forward arrow button on the opposite end of the tab area", __LC_MESSAGES), | |
26119 | (0), | |
26120 | G_PARAM_READABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26121 | # 763 "gtknotebook.c" | |
26122 | IA__gtk_widget_class_install_style_property (widget_class, | |
26123 | g_param_spec_boolean ("has-backward-stepper", | |
26124 | dcgettext ("gtk20" "-properties", "Backward stepper", __LC_MESSAGES), | |
26125 | dcgettext ("gtk20" "-properties", "Display the standard backward arrow button", __LC_MESSAGES), | |
26126 | (!(0)), | |
26127 | G_PARAM_READABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26128 | # 778 "gtknotebook.c" | |
26129 | IA__gtk_widget_class_install_style_property (widget_class, | |
26130 | g_param_spec_boolean ("has-forward-stepper", | |
26131 | dcgettext ("gtk20" "-properties", "Forward stepper", __LC_MESSAGES), | |
26132 | dcgettext ("gtk20" "-properties", "Display the standard forward arrow button", __LC_MESSAGES), | |
26133 | (!(0)), | |
26134 | G_PARAM_READABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26135 | # 793 "gtknotebook.c" | |
26136 | IA__gtk_widget_class_install_style_property (widget_class, | |
26137 | g_param_spec_int ("tab-overlap", | |
26138 | dcgettext ("gtk20" "-properties", "Tab overlap", __LC_MESSAGES), | |
26139 | dcgettext ("gtk20" "-properties", "Size of tab overlap area", __LC_MESSAGES), | |
26140 | (-2147483647 - 1), | |
26141 | 2147483647, | |
26142 | 2, | |
26143 | G_PARAM_READABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26144 | # 809 "gtknotebook.c" | |
26145 | IA__gtk_widget_class_install_style_property (widget_class, | |
26146 | g_param_spec_int ("tab-curvature", | |
26147 | dcgettext ("gtk20" "-properties", "Tab curvature", __LC_MESSAGES), | |
26148 | dcgettext ("gtk20" "-properties", "Size of tab curvature", __LC_MESSAGES), | |
26149 | 0, | |
26150 | 2147483647, | |
26151 | 1, | |
26152 | G_PARAM_READABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26153 | # 826 "gtknotebook.c" | |
26154 | IA__gtk_widget_class_install_style_property (widget_class, | |
26155 | g_param_spec_int ("arrow-spacing", | |
26156 | dcgettext ("gtk20", "Arrow spacing", __LC_MESSAGES), | |
26157 | dcgettext ("gtk20", "Scroll arrow spacing", __LC_MESSAGES), | |
26158 | 0, | |
26159 | 2147483647, | |
26160 | 0, | |
26161 | G_PARAM_READABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); | |
26162 | ||
26163 | notebook_signals[SWITCH_PAGE] = | |
26164 | g_signal_new (g_intern_static_string ("switch_page"), | |
26165 | (((GTypeClass*) (gobject_class))->g_type), | |
26166 | G_SIGNAL_RUN_LAST, | |
26167 | ((glong) ((guint8*) &((GtkNotebookClass*) 0)->switch_page)), | |
26168 | ((void *)0), ((void *)0), | |
26169 | _gtk_marshal_VOID__POINTER_UINT, | |
26170 | ((GType) ((1) << (2))), 2, | |
26171 | ((GType) ((17) << (2))), | |
26172 | ((GType) ((7) << (2)))); | |
26173 | notebook_signals[FOCUS_TAB] = | |
26174 | g_signal_new (g_intern_static_string ("focus_tab"), | |
26175 | (((GTypeClass*) (gobject_class))->g_type), | |
26176 | G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, | |
26177 | ((glong) ((guint8*) &((GtkNotebookClass*) 0)->focus_tab)), | |
26178 | ((void *)0), ((void *)0), | |
26179 | _gtk_marshal_BOOLEAN__ENUM, | |
26180 | ((GType) ((5) << (2))), 1, | |
26181 | (IA__gtk_notebook_tab_get_type())); | |
26182 | notebook_signals[SELECT_PAGE] = | |
26183 | g_signal_new (g_intern_static_string ("select_page"), | |
26184 | (((GTypeClass*) (gobject_class))->g_type), | |
26185 | G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, | |
26186 | ((glong) ((guint8*) &((GtkNotebookClass*) 0)->select_page)), | |
26187 | ((void *)0), ((void *)0), | |
26188 | _gtk_marshal_BOOLEAN__BOOLEAN, | |
26189 | ((GType) ((5) << (2))), 1, | |
26190 | ((GType) ((5) << (2)))); | |
26191 | notebook_signals[CHANGE_CURRENT_PAGE] = | |
26192 | g_signal_new (g_intern_static_string ("change_current_page"), | |
26193 | (((GTypeClass*) (gobject_class))->g_type), | |
26194 | G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, | |
26195 | ((glong) ((guint8*) &((GtkNotebookClass*) 0)->change_current_page)), | |
26196 | ((void *)0), ((void *)0), | |
26197 | _gtk_marshal_BOOLEAN__INT, | |
26198 | ((GType) ((5) << (2))), 1, | |
26199 | ((GType) ((6) << (2)))); | |
26200 | notebook_signals[MOVE_FOCUS_OUT] = | |
26201 | g_signal_new (g_intern_static_string ("move_focus_out"), | |
26202 | (((GTypeClass*) (gobject_class))->g_type), | |
26203 | G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, | |
26204 | ((glong) ((guint8*) &((GtkNotebookClass*) 0)->move_focus_out)), | |
26205 | ((void *)0), ((void *)0), | |
26206 | g_cclosure_marshal_VOID__ENUM, | |
26207 | ((GType) ((1) << (2))), 1, | |
26208 | (IA__gtk_direction_type_get_type())); | |
26209 | notebook_signals[REORDER_TAB] = | |
26210 | g_signal_new (g_intern_static_string ("reorder_tab"), | |
26211 | (((GTypeClass*) (gobject_class))->g_type), | |
26212 | G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, | |
26213 | ((glong) ((guint8*) &((GtkNotebookClass*) 0)->reorder_tab)), | |
26214 | ((void *)0), ((void *)0), | |
26215 | _gtk_marshal_BOOLEAN__ENUM_BOOLEAN, | |
26216 | ((GType) ((5) << (2))), 2, | |
26217 | (IA__gtk_direction_type_get_type()), | |
26218 | ((GType) ((5) << (2)))); | |
26219 | # 902 "gtknotebook.c" | |
26220 | notebook_signals[PAGE_REORDERED] = | |
26221 | g_signal_new (g_intern_static_string ("page_reordered"), | |
26222 | (((GTypeClass*) (gobject_class))->g_type), | |
26223 | G_SIGNAL_RUN_LAST, | |
26224 | 0, ((void *)0), ((void *)0), | |
26225 | _gtk_marshal_VOID__OBJECT_UINT, | |
26226 | ((GType) ((1) << (2))), 2, | |
26227 | (IA__gtk_widget_get_type ()), | |
26228 | ((GType) ((7) << (2)))); | |
26229 | # 922 "gtknotebook.c" | |
26230 | notebook_signals[PAGE_REMOVED] = | |
26231 | g_signal_new (g_intern_static_string ("page_removed"), | |
26232 | (((GTypeClass*) (gobject_class))->g_type), | |
26233 | G_SIGNAL_RUN_LAST, | |
26234 | 0, ((void *)0), ((void *)0), | |
26235 | _gtk_marshal_VOID__OBJECT_UINT, | |
26236 | ((GType) ((1) << (2))), 2, | |
26237 | (IA__gtk_widget_get_type ()), | |
26238 | ((GType) ((7) << (2)))); | |
26239 | # 942 "gtknotebook.c" | |
26240 | notebook_signals[PAGE_ADDED] = | |
26241 | g_signal_new (g_intern_static_string ("page_added"), | |
26242 | (((GTypeClass*) (gobject_class))->g_type), | |
26243 | G_SIGNAL_RUN_LAST, | |
26244 | 0, ((void *)0), ((void *)0), | |
26245 | _gtk_marshal_VOID__OBJECT_UINT, | |
26246 | ((GType) ((1) << (2))), 2, | |
26247 | (IA__gtk_widget_get_type ()), | |
26248 | ((GType) ((7) << (2)))); | |
26249 | # 975 "gtknotebook.c" | |
26250 | notebook_signals[CREATE_WINDOW] = | |
26251 | g_signal_new (g_intern_static_string ("create_window"), | |
26252 | (((GTypeClass*) (gobject_class))->g_type), | |
26253 | G_SIGNAL_RUN_LAST, | |
26254 | ((glong) ((guint8*) &((GtkNotebookClass*) 0)->create_window)), | |
26255 | gtk_object_handled_accumulator, ((void *)0), | |
26256 | _gtk_marshal_OBJECT__OBJECT_INT_INT, | |
26257 | (IA__gtk_notebook_get_type ()), 3, | |
26258 | (IA__gtk_widget_get_type ()), ((GType) ((6) << (2))), ((GType) ((6) << (2)))); | |
26259 | ||
26260 | binding_set = IA__gtk_binding_set_by_class (class); | |
26261 | IA__gtk_binding_entry_add_signal (binding_set, | |
26262 | 0x020, 0, | |
26263 | "select_page", 1, | |
26264 | ((GType) ((5) << (2))), (0)); | |
26265 | IA__gtk_binding_entry_add_signal (binding_set, | |
26266 | 0xff80, 0, | |
26267 | "select_page", 1, | |
26268 | ((GType) ((5) << (2))), (0)); | |
26269 | ||
26270 | IA__gtk_binding_entry_add_signal (binding_set, | |
26271 | 0xff50, 0, | |
26272 | "focus_tab", 1, | |
26273 | (IA__gtk_notebook_tab_get_type()), GTK_NOTEBOOK_TAB_FIRST); | |
26274 | IA__gtk_binding_entry_add_signal (binding_set, | |
26275 | 0xff95, 0, | |
26276 | "focus_tab", 1, | |
26277 | (IA__gtk_notebook_tab_get_type()), GTK_NOTEBOOK_TAB_FIRST); | |
26278 | IA__gtk_binding_entry_add_signal (binding_set, | |
26279 | 0xff57, 0, | |
26280 | "focus_tab", 1, | |
26281 | (IA__gtk_notebook_tab_get_type()), GTK_NOTEBOOK_TAB_LAST); | |
26282 | IA__gtk_binding_entry_add_signal (binding_set, | |
26283 | 0xff9c, 0, | |
26284 | "focus_tab", 1, | |
26285 | (IA__gtk_notebook_tab_get_type()), GTK_NOTEBOOK_TAB_LAST); | |
26286 | ||
26287 | IA__gtk_binding_entry_add_signal (binding_set, | |
26288 | 0xff55, GDK_CONTROL_MASK, | |
26289 | "change_current_page", 1, | |
26290 | ((GType) ((6) << (2))), -1); | |
26291 | IA__gtk_binding_entry_add_signal (binding_set, | |
26292 | 0xff56, GDK_CONTROL_MASK, | |
26293 | "change_current_page", 1, | |
26294 | ((GType) ((6) << (2))), 1); | |
26295 | ||
26296 | IA__gtk_binding_entry_add_signal (binding_set, | |
26297 | 0xff55, GDK_CONTROL_MASK | GDK_MOD1_MASK, | |
26298 | "change_current_page", 1, | |
26299 | ((GType) ((6) << (2))), -1); | |
26300 | IA__gtk_binding_entry_add_signal (binding_set, | |
26301 | 0xff56, GDK_CONTROL_MASK | GDK_MOD1_MASK, | |
26302 | "change_current_page", 1, | |
26303 | ((GType) ((6) << (2))), 1); | |
26304 | ||
26305 | add_arrow_bindings (binding_set, 0xff52, GTK_DIR_UP); | |
26306 | add_arrow_bindings (binding_set, 0xff54, GTK_DIR_DOWN); | |
26307 | add_arrow_bindings (binding_set, 0xff51, GTK_DIR_LEFT); | |
26308 | add_arrow_bindings (binding_set, 0xff53, GTK_DIR_RIGHT); | |
26309 | ||
26310 | add_reorder_bindings (binding_set, 0xff52, GTK_DIR_UP, (0)); | |
26311 | add_reorder_bindings (binding_set, 0xff54, GTK_DIR_DOWN, (0)); | |
26312 | add_reorder_bindings (binding_set, 0xff51, GTK_DIR_LEFT, (0)); | |
26313 | add_reorder_bindings (binding_set, 0xff53, GTK_DIR_RIGHT, (0)); | |
26314 | add_reorder_bindings (binding_set, 0xff50, GTK_DIR_LEFT, (!(0))); | |
26315 | add_reorder_bindings (binding_set, 0xff50, GTK_DIR_UP, (!(0))); | |
26316 | add_reorder_bindings (binding_set, 0xff57, GTK_DIR_RIGHT, (!(0))); | |
26317 | add_reorder_bindings (binding_set, 0xff57, GTK_DIR_DOWN, (!(0))); | |
26318 | ||
26319 | add_tab_bindings (binding_set, GDK_CONTROL_MASK, GTK_DIR_TAB_FORWARD); | |
26320 | add_tab_bindings (binding_set, GDK_CONTROL_MASK | GDK_SHIFT_MASK, GTK_DIR_TAB_BACKWARD); | |
26321 | ||
26322 | g_type_class_add_private (class, sizeof (GtkNotebookPrivate)); | |
26323 | } | |
26324 | ||
26325 | static void | |
26326 | gtk_notebook_init (GtkNotebook *notebook) | |
26327 | { | |
26328 | GtkNotebookPrivate *priv; | |
26329 | ||
26330 | (void) __extension__ ({ (((((((GtkObject*) ((notebook)))))->flags)) |= (GTK_CAN_FOCUS)); }); | |
26331 | (void) __extension__ ({ (((((((GtkObject*) ((notebook)))))->flags)) |= (GTK_NO_WINDOW)); }); | |
26332 | ||
26333 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
26334 | ||
26335 | notebook->cur_page = ((void *)0); | |
26336 | notebook->children = ((void *)0); | |
26337 | notebook->first_tab = ((void *)0); | |
26338 | notebook->focus_tab = ((void *)0); | |
26339 | notebook->event_window = ((void *)0); | |
26340 | notebook->menu = ((void *)0); | |
26341 | ||
26342 | notebook->tab_hborder = 2; | |
26343 | notebook->tab_vborder = 2; | |
26344 | ||
26345 | notebook->show_tabs = (!(0)); | |
26346 | notebook->show_border = (!(0)); | |
26347 | notebook->tab_pos = GTK_POS_TOP; | |
26348 | notebook->scrollable = (0); | |
26349 | notebook->in_child = 0; | |
26350 | notebook->click_child = 0; | |
26351 | notebook->button = 0; | |
26352 | notebook->need_timer = 0; | |
26353 | notebook->child_has_focus = (0); | |
26354 | notebook->have_visible_child = (0); | |
26355 | notebook->focus_out = (0); | |
26356 | ||
26357 | notebook->has_before_previous = 1; | |
26358 | notebook->has_before_next = 0; | |
26359 | notebook->has_after_previous = 0; | |
26360 | notebook->has_after_next = 1; | |
26361 | ||
26362 | priv->group = ((void *)0); | |
26363 | priv->pressed_button = -1; | |
26364 | priv->dnd_timer = 0; | |
26365 | priv->switch_tab_timer = 0; | |
26366 | priv->source_targets = IA__gtk_target_list_new (notebook_targets, | |
26367 | (sizeof (notebook_targets) / sizeof ((notebook_targets)[0]))); | |
26368 | priv->operation = DRAG_OPERATION_NONE; | |
26369 | priv->detached_tab = ((void *)0); | |
26370 | priv->during_detach = (0); | |
26371 | priv->has_scrolled = (0); | |
26372 | ||
26373 | IA__gtk_drag_dest_set (((((GtkWidget*) ((notebook))))), 0, | |
26374 | notebook_targets, (sizeof (notebook_targets) / sizeof ((notebook_targets)[0])), | |
26375 | GDK_ACTION_MOVE); | |
26376 | ||
26377 | g_signal_connect_data ((((((GObject*) ((notebook)))))), ("drag-failed"), (((GCallback) (gtk_notebook_drag_failed))), (((void *)0)), ((void *)0), (GConnectFlags) 0); | |
26378 | ||
26379 | ||
26380 | IA__gtk_drag_dest_set_track_motion (((((GtkWidget*) ((notebook))))), (!(0))); | |
26381 | } | |
26382 | ||
26383 | static void | |
26384 | gtk_notebook_buildable_init (GtkBuildableIface *iface) | |
26385 | { | |
26386 | iface->add_child = gtk_notebook_buildable_add_child; | |
26387 | } | |
26388 | ||
26389 | static void | |
26390 | gtk_notebook_buildable_add_child (GtkBuildable *buildable, | |
26391 | GtkBuilder *builder, | |
26392 | GObject *child, | |
26393 | const gchar *type) | |
26394 | { | |
26395 | GtkNotebook *notebook = ((((GtkNotebook*) ((buildable))))); | |
26396 | ||
26397 | if (type && __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (type) && __builtin_constant_p ("tab") && (__s1_len = strlen (type), __s2_len = strlen ("tab"), (!((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(("tab") + 1) - (size_t)(const void *)("tab") == 1) || __s2_len >= 4)) ? __builtin_strcmp (type, "tab") : (__builtin_constant_p (type) && ((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) && (__s1_len = strlen (type), __s1_len < 4) ? (__builtin_constant_p ("tab") && ((size_t)(const void *)(("tab") + 1) - (size_t)(const void *)("tab") == 1) ? __builtin_strcmp (type, "tab") : (__extension__ ({ __const unsigned char *__s2 = (__const unsigned char *) (__const char *) ("tab"); register int __result = (((__const unsigned char *) (__const char *) (type))[0] - __s2[0]); if (__s1_len > 0 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (type))[1] - __s2[1]); if (__s1_len > 1 && __result == 0) { __result = (((__const unsigned char *) (__const char *) (type))[2] - __s2[2]); if (__s1_len > 2 && __result == 0) __result = (((__const unsigned char *) (__const char *) (type))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p ("tab") && ((size_t)(const void *)(("tab") + 1) - (size_t)(const void *)("tab") == 1) && (__s2_len = strlen ("tab"), __s2_len < 4) ? (__builtin_constant_p (type) && ((size_t)(const void *)((type) + 1) - (size_t)(const void *)(type) == 1) ? __builtin_strcmp (type, "tab") : (__extension__ ({ __const unsigned char *__s1 = (__const unsigned char *) (__const char *) (type); register int __result = __s1[0] - ((__const unsigned char *) (__const char *) ("tab"))[0]; if (__s2_len > 0 && __result == 0) { __result = (__s1[1] - ((__const unsigned char *) (__const char *) ("tab"))[1]); if (__s2_len > 1 && __result == 0) { __result = (__s1[2] - ((__const unsigned char *) (__const char *) ("tab"))[2]); if (__s2_len > 2 && __result == 0) __result = (__s1[3] - ((__const unsigned char *) (__const char *) ("tab"))[3]); } } __result; }))) : __builtin_strcmp (type, "tab")))); }) == 0) | |
26398 | { | |
26399 | GtkWidget * page; | |
26400 | ||
26401 | page = IA__gtk_notebook_get_nth_page (notebook, -1); | |
26402 | ||
26403 | ||
26404 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (page != ((void *)0)) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else g_assert_warning ("Gtk", "gtknotebook.c", 1129, __PRETTY_FUNCTION__, "page != NULL"); }); | |
26405 | IA__gtk_notebook_set_tab_label (notebook, page, ((((GtkWidget*) ((child)))))); | |
26406 | } | |
26407 | else if (!type) | |
26408 | IA__gtk_notebook_append_page (notebook, ((((GtkWidget*) ((child))))), ((void *)0)); | |
26409 | else | |
26410 | g_log ("Gtk", G_LOG_LEVEL_WARNING, "'%s' is not a valid child type of '%s'", type, g_type_name ((((((GTypeClass*) (((GTypeInstance*) (type))->g_class))->g_type))))); | |
26411 | } | |
26412 | ||
26413 | static gboolean | |
26414 | gtk_notebook_select_page (GtkNotebook *notebook, | |
26415 | gboolean move_focus) | |
26416 | { | |
26417 | if (IA__gtk_widget_is_focus (((((GtkWidget*) ((notebook)))))) && notebook->show_tabs) | |
26418 | { | |
26419 | gtk_notebook_page_select (notebook, move_focus); | |
26420 | return (!(0)); | |
26421 | } | |
26422 | else | |
26423 | return (0); | |
26424 | } | |
26425 | ||
26426 | static gboolean | |
26427 | gtk_notebook_focus_tab (GtkNotebook *notebook, | |
26428 | GtkNotebookTab type) | |
26429 | { | |
26430 | GList *list; | |
26431 | ||
26432 | if (IA__gtk_widget_is_focus (((((GtkWidget*) ((notebook)))))) && notebook->show_tabs) | |
26433 | { | |
26434 | switch (type) | |
26435 | { | |
26436 | case GTK_NOTEBOOK_TAB_FIRST: | |
26437 | list = gtk_notebook_search_page (notebook, ((void *)0), STEP_NEXT, (!(0))); | |
26438 | if (list) | |
26439 | gtk_notebook_switch_focus_tab (notebook, list); | |
26440 | break; | |
26441 | case GTK_NOTEBOOK_TAB_LAST: | |
26442 | list = gtk_notebook_search_page (notebook, ((void *)0), STEP_PREV, (!(0))); | |
26443 | if (list) | |
26444 | gtk_notebook_switch_focus_tab (notebook, list); | |
26445 | break; | |
26446 | } | |
26447 | ||
26448 | return (!(0)); | |
26449 | } | |
26450 | else | |
26451 | return (0); | |
26452 | } | |
26453 | ||
26454 | static gboolean | |
26455 | gtk_notebook_change_current_page (GtkNotebook *notebook, | |
26456 | gint offset) | |
26457 | { | |
26458 | GList *current = ((void *)0); | |
26459 | ||
26460 | if (!notebook->show_tabs) | |
26461 | return (0); | |
26462 | ||
26463 | if (notebook->cur_page) | |
26464 | current = g_list_find (notebook->children, notebook->cur_page); | |
26465 | ||
26466 | while (offset != 0) | |
26467 | { | |
26468 | current = gtk_notebook_search_page (notebook, current, | |
26469 | offset < 0 ? STEP_PREV : STEP_NEXT, | |
26470 | (!(0))); | |
26471 | ||
26472 | if (!current) | |
26473 | { | |
26474 | gboolean wrap_around; | |
26475 | ||
26476 | g_object_get (IA__gtk_widget_get_settings (((((GtkWidget*) ((notebook)))))), | |
26477 | "gtk-keynav-wrap-around", &wrap_around, | |
26478 | ((void *)0)); | |
26479 | ||
26480 | if (wrap_around) | |
26481 | current = gtk_notebook_search_page (notebook, ((void *)0), | |
26482 | offset < 0 ? STEP_PREV : STEP_NEXT, | |
26483 | (!(0))); | |
26484 | else | |
26485 | break; | |
26486 | } | |
26487 | ||
26488 | offset += offset < 0 ? 1 : -1; | |
26489 | } | |
26490 | ||
26491 | if (current) | |
26492 | gtk_notebook_switch_page (notebook, current->data); | |
26493 | else | |
26494 | IA__gtk_widget_error_bell (((((GtkWidget*) ((notebook)))))); | |
26495 | ||
26496 | return (!(0)); | |
26497 | } | |
26498 | ||
26499 | static GtkDirectionType | |
26500 | get_effective_direction (GtkNotebook *notebook, | |
26501 | GtkDirectionType direction) | |
26502 | { | |
26503 | ||
26504 | ||
26505 | ||
26506 | ||
26507 | ||
26508 | ||
26509 | static const GtkDirectionType translate_direction[2][4][6] = { | |
26510 | {{ GTK_DIR_TAB_FORWARD, GTK_DIR_TAB_BACKWARD, GTK_DIR_LEFT, GTK_DIR_RIGHT, GTK_DIR_UP, GTK_DIR_DOWN }, | |
26511 | { GTK_DIR_TAB_BACKWARD, GTK_DIR_TAB_FORWARD, GTK_DIR_LEFT, GTK_DIR_RIGHT, GTK_DIR_DOWN, GTK_DIR_UP }, | |
26512 | { GTK_DIR_TAB_FORWARD, GTK_DIR_TAB_BACKWARD, GTK_DIR_UP, GTK_DIR_DOWN, GTK_DIR_LEFT, GTK_DIR_RIGHT }, | |
26513 | { GTK_DIR_TAB_BACKWARD, GTK_DIR_TAB_FORWARD, GTK_DIR_DOWN, GTK_DIR_UP, GTK_DIR_LEFT, GTK_DIR_RIGHT }}, | |
26514 | {{ GTK_DIR_TAB_BACKWARD, GTK_DIR_TAB_FORWARD, GTK_DIR_LEFT, GTK_DIR_RIGHT, GTK_DIR_DOWN, GTK_DIR_UP }, | |
26515 | { GTK_DIR_TAB_FORWARD, GTK_DIR_TAB_BACKWARD, GTK_DIR_LEFT, GTK_DIR_RIGHT, GTK_DIR_UP, GTK_DIR_DOWN }, | |
26516 | { GTK_DIR_TAB_FORWARD, GTK_DIR_TAB_BACKWARD, GTK_DIR_UP, GTK_DIR_DOWN, GTK_DIR_RIGHT, GTK_DIR_LEFT }, | |
26517 | { GTK_DIR_TAB_BACKWARD, GTK_DIR_TAB_FORWARD, GTK_DIR_DOWN, GTK_DIR_UP, GTK_DIR_RIGHT, GTK_DIR_LEFT }}, | |
26518 | }; | |
26519 | ||
26520 | ||
26521 | ||
26522 | int text_dir = IA__gtk_widget_get_direction (((((GtkWidget*) ((notebook)))))) == GTK_TEXT_DIR_RTL ? 1 : 0; | |
26523 | ||
26524 | return translate_direction[text_dir][notebook->tab_pos][direction]; | |
26525 | } | |
26526 | ||
26527 | static gint | |
26528 | get_effective_tab_pos (GtkNotebook *notebook) | |
26529 | { | |
26530 | if (IA__gtk_widget_get_direction (((((GtkWidget*) ((notebook)))))) == GTK_TEXT_DIR_RTL) | |
26531 | { | |
26532 | switch (notebook->tab_pos) | |
26533 | { | |
26534 | case GTK_POS_LEFT: | |
26535 | return GTK_POS_RIGHT; | |
26536 | case GTK_POS_RIGHT: | |
26537 | return GTK_POS_LEFT; | |
26538 | default: ; | |
26539 | } | |
26540 | } | |
26541 | ||
26542 | return notebook->tab_pos; | |
26543 | } | |
26544 | ||
26545 | static gint | |
26546 | get_tab_gap_pos (GtkNotebook *notebook) | |
26547 | { | |
26548 | gint tab_pos = get_effective_tab_pos (notebook); | |
26549 | gint gap_side = GTK_POS_BOTTOM; | |
26550 | ||
26551 | switch (tab_pos) | |
26552 | { | |
26553 | case GTK_POS_TOP: | |
26554 | gap_side = GTK_POS_BOTTOM; | |
26555 | break; | |
26556 | case GTK_POS_BOTTOM: | |
26557 | gap_side = GTK_POS_TOP; | |
26558 | break; | |
26559 | case GTK_POS_LEFT: | |
26560 | gap_side = GTK_POS_RIGHT; | |
26561 | break; | |
26562 | case GTK_POS_RIGHT: | |
26563 | gap_side = GTK_POS_LEFT; | |
26564 | break; | |
26565 | } | |
26566 | ||
26567 | return gap_side; | |
26568 | } | |
26569 | ||
26570 | static void | |
26571 | gtk_notebook_move_focus_out (GtkNotebook *notebook, | |
26572 | GtkDirectionType direction_type) | |
26573 | { | |
26574 | GtkDirectionType effective_direction = get_effective_direction (notebook, direction_type); | |
26575 | GtkWidget *toplevel; | |
26576 | ||
26577 | if (((((GtkContainer*) ((notebook)))))->focus_child && effective_direction == GTK_DIR_UP) | |
26578 | if (focus_tabs_in (notebook)) | |
26579 | return; | |
26580 | if (IA__gtk_widget_is_focus (((((GtkWidget*) ((notebook)))))) && effective_direction == GTK_DIR_DOWN) | |
26581 | if (focus_child_in (notebook, GTK_DIR_TAB_FORWARD)) | |
26582 | return; | |
26583 | ||
26584 | ||
26585 | ||
26586 | ||
26587 | toplevel = IA__gtk_widget_get_toplevel (((((GtkWidget*) ((notebook)))))); | |
26588 | if (!((((((((GtkObject*) ((toplevel)))))->flags)) & GTK_TOPLEVEL) != 0)) | |
26589 | return; | |
26590 | ||
26591 | g_object_ref (notebook); | |
26592 | ||
26593 | notebook->focus_out = (!(0)); | |
26594 | g_signal_emit_by_name (toplevel, "move_focus", direction_type); | |
26595 | notebook->focus_out = (0); | |
26596 | ||
26597 | g_object_unref (notebook); | |
26598 | } | |
26599 | ||
26600 | static gint | |
26601 | reorder_tab (GtkNotebook *notebook, GList *position, GList *tab) | |
26602 | { | |
26603 | GList *elem; | |
26604 | ||
26605 | if (position == tab) | |
26606 | return g_list_position (notebook->children, tab); | |
26607 | ||
26608 | ||
26609 | ||
26610 | elem = (position) ? position->prev : g_list_last (notebook->children); | |
26611 | ||
26612 | while (elem && elem != tab && ((GtkNotebookPage *)((GList *)(elem))->data)->pack != ((GtkNotebookPage *)((GList *)(tab))->data)->pack) | |
26613 | elem = elem->prev; | |
26614 | ||
26615 | if (elem == tab) | |
26616 | return g_list_position (notebook->children, tab); | |
26617 | ||
26618 | ||
26619 | if (notebook->first_tab == tab) | |
26620 | notebook->first_tab = gtk_notebook_search_page (notebook, notebook->first_tab, | |
26621 | STEP_NEXT, (!(0))); | |
26622 | ||
26623 | notebook->children = g_list_remove_link (notebook->children, tab); | |
26624 | ||
26625 | if (!position) | |
26626 | elem = g_list_last (notebook->children); | |
26627 | else | |
26628 | { | |
26629 | elem = position->prev; | |
26630 | position->prev = tab; | |
26631 | } | |
26632 | ||
26633 | if (elem) | |
26634 | elem->next = tab; | |
26635 | else | |
26636 | notebook->children = tab; | |
26637 | ||
26638 | tab->prev = elem; | |
26639 | tab->next = position; | |
26640 | ||
26641 | return g_list_position (notebook->children, tab); | |
26642 | } | |
26643 | ||
26644 | static gboolean | |
26645 | gtk_notebook_reorder_tab (GtkNotebook *notebook, | |
26646 | GtkDirectionType direction_type, | |
26647 | gboolean move_to_last) | |
26648 | { | |
26649 | GtkDirectionType effective_direction = get_effective_direction (notebook, direction_type); | |
26650 | GtkNotebookPage *page; | |
26651 | GList *last, *child; | |
26652 | gint page_num; | |
26653 | ||
26654 | if (!IA__gtk_widget_is_focus (((((GtkWidget*) ((notebook)))))) || !notebook->show_tabs) | |
26655 | return (0); | |
26656 | ||
26657 | if (!notebook->cur_page || | |
26658 | !notebook->cur_page->reorderable) | |
26659 | return (0); | |
26660 | ||
26661 | if (effective_direction != GTK_DIR_LEFT && | |
26662 | effective_direction != GTK_DIR_RIGHT) | |
26663 | return (0); | |
26664 | ||
26665 | if (move_to_last) | |
26666 | { | |
26667 | child = notebook->focus_tab; | |
26668 | ||
26669 | do | |
26670 | { | |
26671 | last = child; | |
26672 | child = gtk_notebook_search_page (notebook, last, | |
26673 | (effective_direction == GTK_DIR_RIGHT) ? STEP_NEXT : STEP_PREV, | |
26674 | (!(0))); | |
26675 | } | |
26676 | while (child && ((GtkNotebookPage *)((GList *)(last))->data)->pack == ((GtkNotebookPage *)((GList *)(child))->data)->pack); | |
26677 | ||
26678 | child = last; | |
26679 | } | |
26680 | else | |
26681 | child = gtk_notebook_search_page (notebook, notebook->focus_tab, | |
26682 | (effective_direction == GTK_DIR_RIGHT) ? STEP_NEXT : STEP_PREV, | |
26683 | (!(0))); | |
26684 | ||
26685 | if (!child || child->data == notebook->cur_page) | |
26686 | return (0); | |
26687 | ||
26688 | page = child->data; | |
26689 | ||
26690 | if (page->pack == notebook->cur_page->pack) | |
26691 | { | |
26692 | if (effective_direction == GTK_DIR_RIGHT) | |
26693 | page_num = reorder_tab (notebook, (page->pack == GTK_PACK_START) ? child->next : child, notebook->focus_tab); | |
26694 | else | |
26695 | page_num = reorder_tab (notebook, (page->pack == GTK_PACK_START) ? child : child->next, notebook->focus_tab); | |
26696 | ||
26697 | gtk_notebook_pages_allocate (notebook); | |
26698 | ||
26699 | g_signal_emit (notebook, | |
26700 | notebook_signals[PAGE_REORDERED], | |
26701 | 0, | |
26702 | ((GtkNotebookPage *) notebook->focus_tab->data)->child, | |
26703 | page_num); | |
26704 | ||
26705 | return (!(0)); | |
26706 | } | |
26707 | ||
26708 | return (0); | |
26709 | } | |
26710 | # 1443 "gtknotebook.c" | |
26711 | GtkWidget* | |
26712 | IA__gtk_notebook_new (void) | |
26713 | { | |
26714 | return g_object_new ((IA__gtk_notebook_get_type ()), ((void *)0)); | |
26715 | } | |
26716 | ||
26717 | ||
26718 | ||
26719 | ||
26720 | ||
26721 | ||
26722 | ||
26723 | static void | |
26724 | gtk_notebook_destroy (GtkObject *object) | |
26725 | { | |
26726 | GtkNotebook *notebook = ((((GtkNotebook*) ((object))))); | |
26727 | GtkNotebookPrivate *priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
26728 | ||
26729 | if (notebook->menu) | |
26730 | IA__gtk_notebook_popup_disable (notebook); | |
26731 | ||
26732 | if (priv->source_targets) | |
26733 | { | |
26734 | IA__gtk_target_list_unref (priv->source_targets); | |
26735 | priv->source_targets = ((void *)0); | |
26736 | } | |
26737 | ||
26738 | if (priv->switch_tab_timer) | |
26739 | { | |
26740 | g_source_remove (priv->switch_tab_timer); | |
26741 | priv->switch_tab_timer = 0; | |
26742 | } | |
26743 | ||
26744 | ((((GtkObjectClass*) ((gtk_notebook_parent_class)))))->destroy (object); | |
26745 | } | |
26746 | ||
26747 | static void | |
26748 | gtk_notebook_set_property (GObject *object, | |
26749 | guint prop_id, | |
26750 | const GValue *value, | |
26751 | GParamSpec *pspec) | |
26752 | { | |
26753 | GtkNotebook *notebook; | |
26754 | ||
26755 | notebook = ((((GtkNotebook*) ((object))))); | |
26756 | ||
26757 | switch (prop_id) | |
26758 | { | |
26759 | case PROP_SHOW_TABS: | |
26760 | IA__gtk_notebook_set_show_tabs (notebook, g_value_get_boolean (value)); | |
26761 | break; | |
26762 | case PROP_SHOW_BORDER: | |
26763 | IA__gtk_notebook_set_show_border (notebook, g_value_get_boolean (value)); | |
26764 | break; | |
26765 | case PROP_SCROLLABLE: | |
26766 | IA__gtk_notebook_set_scrollable (notebook, g_value_get_boolean (value)); | |
26767 | break; | |
26768 | case PROP_ENABLE_POPUP: | |
26769 | if (g_value_get_boolean (value)) | |
26770 | IA__gtk_notebook_popup_enable (notebook); | |
26771 | else | |
26772 | IA__gtk_notebook_popup_disable (notebook); | |
26773 | break; | |
26774 | case PROP_HOMOGENEOUS: | |
26775 | gtk_notebook_set_homogeneous_tabs_internal (notebook, g_value_get_boolean (value)); | |
26776 | break; | |
26777 | case PROP_PAGE: | |
26778 | IA__gtk_notebook_set_current_page (notebook, g_value_get_int (value)); | |
26779 | break; | |
26780 | case PROP_TAB_POS: | |
26781 | IA__gtk_notebook_set_tab_pos (notebook, g_value_get_enum (value)); | |
26782 | break; | |
26783 | case PROP_TAB_BORDER: | |
26784 | gtk_notebook_set_tab_border_internal (notebook, g_value_get_uint (value)); | |
26785 | break; | |
26786 | case PROP_TAB_HBORDER: | |
26787 | gtk_notebook_set_tab_hborder_internal (notebook, g_value_get_uint (value)); | |
26788 | break; | |
26789 | case PROP_TAB_VBORDER: | |
26790 | gtk_notebook_set_tab_vborder_internal (notebook, g_value_get_uint (value)); | |
26791 | break; | |
26792 | case PROP_GROUP_ID: | |
26793 | IA__gtk_notebook_set_group_id (notebook, g_value_get_int (value)); | |
26794 | break; | |
26795 | case PROP_GROUP: | |
26796 | IA__gtk_notebook_set_group (notebook, g_value_get_pointer (value)); | |
26797 | break; | |
26798 | default: | |
26799 | break; | |
26800 | } | |
26801 | } | |
26802 | ||
26803 | static void | |
26804 | gtk_notebook_get_property (GObject *object, | |
26805 | guint prop_id, | |
26806 | GValue *value, | |
26807 | GParamSpec *pspec) | |
26808 | { | |
26809 | GtkNotebook *notebook; | |
26810 | GtkNotebookPrivate *priv; | |
26811 | ||
26812 | notebook = ((((GtkNotebook*) ((object))))); | |
26813 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
26814 | ||
26815 | switch (prop_id) | |
26816 | { | |
26817 | case PROP_SHOW_TABS: | |
26818 | g_value_set_boolean (value, notebook->show_tabs); | |
26819 | break; | |
26820 | case PROP_SHOW_BORDER: | |
26821 | g_value_set_boolean (value, notebook->show_border); | |
26822 | break; | |
26823 | case PROP_SCROLLABLE: | |
26824 | g_value_set_boolean (value, notebook->scrollable); | |
26825 | break; | |
26826 | case PROP_ENABLE_POPUP: | |
26827 | g_value_set_boolean (value, notebook->menu != ((void *)0)); | |
26828 | break; | |
26829 | case PROP_HOMOGENEOUS: | |
26830 | g_value_set_boolean (value, notebook->homogeneous); | |
26831 | break; | |
26832 | case PROP_PAGE: | |
26833 | g_value_set_int (value, IA__gtk_notebook_get_current_page (notebook)); | |
26834 | break; | |
26835 | case PROP_TAB_POS: | |
26836 | g_value_set_enum (value, notebook->tab_pos); | |
26837 | break; | |
26838 | case PROP_TAB_HBORDER: | |
26839 | g_value_set_uint (value, notebook->tab_hborder); | |
26840 | break; | |
26841 | case PROP_TAB_VBORDER: | |
26842 | g_value_set_uint (value, notebook->tab_vborder); | |
26843 | break; | |
26844 | case PROP_GROUP_ID: | |
26845 | g_value_set_int (value, IA__gtk_notebook_get_group_id (notebook)); | |
26846 | break; | |
26847 | case PROP_GROUP: | |
26848 | g_value_set_pointer (value, priv->group); | |
26849 | break; | |
26850 | default: | |
26851 | (void) __extension__ ( { GObject *_object = (GObject*) ((object)); GParamSpec *_pspec = (GParamSpec*) ((pspec)); guint _property_id = ((prop_id)); g_log ("Gtk", G_LOG_LEVEL_WARNING, "%s: invalid %s id %u for \"%s\" of type `%s' in `%s'", "gtknotebook.c" ":" "1583", ("property"), _property_id, _pspec->name, g_type_name ((((((GTypeClass*) (((GTypeInstance*) (_pspec))->g_class))->g_type)))), (g_type_name ((((((GTypeClass*) (((GTypeInstance*) (_object))->g_class))->g_type)))))); } ); | |
26852 | break; | |
26853 | } | |
26854 | } | |
26855 | # 1614 "gtknotebook.c" | |
26856 | static gboolean | |
26857 | gtk_notebook_get_event_window_position (GtkNotebook *notebook, | |
26858 | GdkRectangle *rectangle) | |
26859 | { | |
26860 | GtkWidget *widget = ((((GtkWidget*) ((notebook))))); | |
26861 | gint border_width = ((((GtkContainer*) ((notebook)))))->border_width; | |
26862 | GtkNotebookPage *visible_page = ((void *)0); | |
26863 | GList *tmp_list; | |
26864 | gint tab_pos = get_effective_tab_pos (notebook); | |
26865 | ||
26866 | for (tmp_list = notebook->children; tmp_list; tmp_list = tmp_list->next) | |
26867 | { | |
26868 | GtkNotebookPage *page = tmp_list->data; | |
26869 | if (((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
26870 | { | |
26871 | visible_page = page; | |
26872 | break; | |
26873 | } | |
26874 | } | |
26875 | ||
26876 | if (notebook->show_tabs && visible_page) | |
26877 | { | |
26878 | if (rectangle) | |
26879 | { | |
26880 | rectangle->x = widget->allocation.x + border_width; | |
26881 | rectangle->y = widget->allocation.y + border_width; | |
26882 | ||
26883 | switch (tab_pos) | |
26884 | { | |
26885 | case GTK_POS_TOP: | |
26886 | case GTK_POS_BOTTOM: | |
26887 | rectangle->width = widget->allocation.width - 2 * border_width; | |
26888 | rectangle->height = visible_page->requisition.height; | |
26889 | if (tab_pos == GTK_POS_BOTTOM) | |
26890 | rectangle->y += widget->allocation.height - 2 * border_width - rectangle->height; | |
26891 | break; | |
26892 | case GTK_POS_LEFT: | |
26893 | case GTK_POS_RIGHT: | |
26894 | rectangle->width = visible_page->requisition.width; | |
26895 | rectangle->height = widget->allocation.height - 2 * border_width; | |
26896 | if (tab_pos == GTK_POS_RIGHT) | |
26897 | rectangle->x += widget->allocation.width - 2 * border_width - rectangle->width; | |
26898 | break; | |
26899 | } | |
26900 | } | |
26901 | ||
26902 | return (!(0)); | |
26903 | } | |
26904 | else | |
26905 | { | |
26906 | if (rectangle) | |
26907 | { | |
26908 | rectangle->x = rectangle->y = 0; | |
26909 | rectangle->width = rectangle->height = 10; | |
26910 | } | |
26911 | } | |
26912 | ||
26913 | return (0); | |
26914 | } | |
26915 | ||
26916 | static void | |
26917 | gtk_notebook_map (GtkWidget *widget) | |
26918 | { | |
26919 | GtkNotebook *notebook; | |
26920 | GtkNotebookPage *page; | |
26921 | GList *children; | |
26922 | ||
26923 | (void) __extension__ ({ (((((((GtkObject*) ((widget)))))->flags)) |= (GTK_MAPPED)); }); | |
26924 | ||
26925 | notebook = ((((GtkNotebook*) ((widget))))); | |
26926 | ||
26927 | if (notebook->cur_page && | |
26928 | ((((((((GtkObject*) ((notebook->cur_page->child)))))->flags)) & GTK_VISIBLE) != 0) && | |
26929 | !((((((((GtkObject*) ((notebook->cur_page->child)))))->flags)) & GTK_MAPPED) != 0)) | |
26930 | IA__gtk_widget_map (notebook->cur_page->child); | |
26931 | ||
26932 | if (notebook->scrollable) | |
26933 | gtk_notebook_pages_allocate (notebook); | |
26934 | else | |
26935 | { | |
26936 | children = notebook->children; | |
26937 | ||
26938 | while (children) | |
26939 | { | |
26940 | page = children->data; | |
26941 | children = children->next; | |
26942 | ||
26943 | if (page->tab_label && | |
26944 | ((((((((GtkObject*) ((page->tab_label)))))->flags)) & GTK_VISIBLE) != 0) && | |
26945 | !((((((((GtkObject*) ((page->tab_label)))))->flags)) & GTK_MAPPED) != 0)) | |
26946 | IA__gtk_widget_map (page->tab_label); | |
26947 | } | |
26948 | } | |
26949 | ||
26950 | if (gtk_notebook_get_event_window_position (notebook, ((void *)0))) | |
26951 | gdk_window_show_unraised (notebook->event_window); | |
26952 | } | |
26953 | ||
26954 | static void | |
26955 | gtk_notebook_unmap (GtkWidget *widget) | |
26956 | { | |
26957 | stop_scrolling (((((GtkNotebook*) ((widget)))))); | |
26958 | ||
26959 | (void) __extension__ ({ (((((((GtkObject*) ((widget)))))->flags)) &= ~(GTK_MAPPED)); }); | |
26960 | ||
26961 | gdk_window_hide (((((GtkNotebook*) ((widget)))))->event_window); | |
26962 | ||
26963 | ((((GtkWidgetClass*) ((gtk_notebook_parent_class)))))->unmap (widget); | |
26964 | } | |
26965 | ||
26966 | static void | |
26967 | gtk_notebook_realize (GtkWidget *widget) | |
26968 | { | |
26969 | GtkNotebook *notebook; | |
26970 | GdkWindowAttr attributes; | |
26971 | gint attributes_mask; | |
26972 | GdkRectangle event_window_pos; | |
26973 | ||
26974 | notebook = ((((GtkNotebook*) ((widget))))); | |
26975 | (void) __extension__ ({ (((((((GtkObject*) ((notebook)))))->flags)) |= (GTK_REALIZED)); }); | |
26976 | ||
26977 | gtk_notebook_get_event_window_position (notebook, &event_window_pos); | |
26978 | ||
26979 | widget->window = IA__gtk_widget_get_parent_window (widget); | |
26980 | g_object_ref (widget->window); | |
26981 | ||
26982 | attributes.window_type = GDK_WINDOW_CHILD; | |
26983 | attributes.x = event_window_pos.x; | |
26984 | attributes.y = event_window_pos.y; | |
26985 | attributes.width = event_window_pos.width; | |
26986 | attributes.height = event_window_pos.height; | |
26987 | attributes.wclass = GDK_INPUT_ONLY; | |
26988 | attributes.event_mask = IA__gtk_widget_get_events (widget); | |
26989 | attributes.event_mask |= (GDK_BUTTON_PRESS_MASK | | |
26990 | GDK_BUTTON_RELEASE_MASK | GDK_KEY_PRESS_MASK | | |
26991 | GDK_POINTER_MOTION_MASK | GDK_LEAVE_NOTIFY_MASK | | |
26992 | GDK_SCROLL_MASK); | |
26993 | attributes_mask = GDK_WA_X | GDK_WA_Y; | |
26994 | ||
26995 | notebook->event_window = gdk_window_new (IA__gtk_widget_get_parent_window (widget), | |
26996 | &attributes, attributes_mask); | |
26997 | gdk_window_set_user_data (notebook->event_window, notebook); | |
26998 | ||
26999 | widget->style = IA__gtk_style_attach (widget->style, widget->window); | |
27000 | } | |
27001 | ||
27002 | static void | |
27003 | gtk_notebook_unrealize (GtkWidget *widget) | |
27004 | { | |
27005 | GtkNotebook *notebook; | |
27006 | GtkNotebookPrivate *priv; | |
27007 | ||
27008 | notebook = ((((GtkNotebook*) ((widget))))); | |
27009 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((widget)), ((IA__gtk_notebook_get_type ()))))); | |
27010 | ||
27011 | gdk_window_set_user_data (notebook->event_window, ((void *)0)); | |
27012 | gdk_window_destroy (notebook->event_window); | |
27013 | notebook->event_window = ((void *)0); | |
27014 | ||
27015 | if (priv->drag_window) | |
27016 | { | |
27017 | gdk_window_set_user_data (priv->drag_window, ((void *)0)); | |
27018 | gdk_window_destroy (priv->drag_window); | |
27019 | priv->drag_window = ((void *)0); | |
27020 | } | |
27021 | ||
27022 | if (((((GtkWidgetClass*) ((gtk_notebook_parent_class)))))->unrealize) | |
27023 | (* ((((GtkWidgetClass*) ((gtk_notebook_parent_class)))))->unrealize) (widget); | |
27024 | } | |
27025 | ||
27026 | static void | |
27027 | gtk_notebook_size_request (GtkWidget *widget, | |
27028 | GtkRequisition *requisition) | |
27029 | { | |
27030 | GtkNotebook *notebook = ((((GtkNotebook*) ((widget))))); | |
27031 | GtkNotebookPage *page; | |
27032 | GList *children; | |
27033 | GtkRequisition child_requisition; | |
27034 | gboolean switch_page = (0); | |
27035 | gint vis_pages; | |
27036 | gint focus_width; | |
27037 | gint tab_overlap; | |
27038 | gint tab_curvature; | |
27039 | gint arrow_spacing; | |
27040 | gint scroll_arrow_hlength; | |
27041 | gint scroll_arrow_vlength; | |
27042 | ||
27043 | IA__gtk_widget_style_get (widget, | |
27044 | "focus-line-width", &focus_width, | |
27045 | "tab-overlap", &tab_overlap, | |
27046 | "tab-curvature", &tab_curvature, | |
27047 | "arrow-spacing", &arrow_spacing, | |
27048 | "scroll-arrow-hlength", &scroll_arrow_hlength, | |
27049 | "scroll-arrow-vlength", &scroll_arrow_vlength, | |
27050 | ((void *)0)); | |
27051 | ||
27052 | widget->requisition.width = 0; | |
27053 | widget->requisition.height = 0; | |
27054 | ||
27055 | for (children = notebook->children, vis_pages = 0; children; | |
27056 | children = children->next) | |
27057 | { | |
27058 | page = children->data; | |
27059 | ||
27060 | if (((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
27061 | { | |
27062 | vis_pages++; | |
27063 | IA__gtk_widget_size_request (page->child, &child_requisition); | |
27064 | ||
27065 | widget->requisition.width = (((widget->requisition.width) > (child_requisition.width)) ? (widget->requisition.width) : (child_requisition.width)); | |
27066 | ||
27067 | widget->requisition.height = (((widget->requisition.height) > (child_requisition.height)) ? (widget->requisition.height) : (child_requisition.height)); | |
27068 | ||
27069 | ||
27070 | if (notebook->menu && page->menu_label->parent && | |
27071 | !((((((((GtkObject*) ((page->menu_label->parent)))))->flags)) & GTK_VISIBLE) != 0)) | |
27072 | IA__gtk_widget_show (page->menu_label->parent); | |
27073 | } | |
27074 | else | |
27075 | { | |
27076 | if (page == notebook->cur_page) | |
27077 | switch_page = (!(0)); | |
27078 | if (notebook->menu && page->menu_label->parent && | |
27079 | ((((((((GtkObject*) ((page->menu_label->parent)))))->flags)) & GTK_VISIBLE) != 0)) | |
27080 | IA__gtk_widget_hide (page->menu_label->parent); | |
27081 | } | |
27082 | } | |
27083 | ||
27084 | if (notebook->show_border || notebook->show_tabs) | |
27085 | { | |
27086 | widget->requisition.width += widget->style->xthickness * 2; | |
27087 | widget->requisition.height += widget->style->ythickness * 2; | |
27088 | ||
27089 | if (notebook->show_tabs) | |
27090 | { | |
27091 | gint tab_width = 0; | |
27092 | gint tab_height = 0; | |
27093 | gint tab_max = 0; | |
27094 | gint padding; | |
27095 | ||
27096 | for (children = notebook->children; children; | |
27097 | children = children->next) | |
27098 | { | |
27099 | page = children->data; | |
27100 | ||
27101 | if (((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
27102 | { | |
27103 | if (!((((((((GtkObject*) ((page->tab_label)))))->flags)) & GTK_VISIBLE) != 0)) | |
27104 | IA__gtk_widget_show (page->tab_label); | |
27105 | ||
27106 | IA__gtk_widget_size_request (page->tab_label, | |
27107 | &child_requisition); | |
27108 | ||
27109 | page->requisition.width = | |
27110 | child_requisition.width + | |
27111 | 2 * widget->style->xthickness; | |
27112 | page->requisition.height = | |
27113 | child_requisition.height + | |
27114 | 2 * widget->style->ythickness; | |
27115 | ||
27116 | switch (notebook->tab_pos) | |
27117 | { | |
27118 | case GTK_POS_TOP: | |
27119 | case GTK_POS_BOTTOM: | |
27120 | page->requisition.height += 2 * (notebook->tab_vborder + | |
27121 | focus_width); | |
27122 | tab_height = (((tab_height) > (page->requisition.height)) ? (tab_height) : (page->requisition.height)); | |
27123 | tab_max = (((tab_max) > (page->requisition.width)) ? (tab_max) : (page->requisition.width)); | |
27124 | break; | |
27125 | case GTK_POS_LEFT: | |
27126 | case GTK_POS_RIGHT: | |
27127 | page->requisition.width += 2 * (notebook->tab_hborder + | |
27128 | focus_width); | |
27129 | tab_width = (((tab_width) > (page->requisition.width)) ? (tab_width) : (page->requisition.width)); | |
27130 | tab_max = (((tab_max) > (page->requisition.height)) ? (tab_max) : (page->requisition.height)); | |
27131 | break; | |
27132 | } | |
27133 | } | |
27134 | else if (((((((((GtkObject*) ((page->tab_label)))))->flags)) & GTK_VISIBLE) != 0)) | |
27135 | IA__gtk_widget_hide (page->tab_label); | |
27136 | } | |
27137 | ||
27138 | children = notebook->children; | |
27139 | ||
27140 | if (vis_pages) | |
27141 | { | |
27142 | switch (notebook->tab_pos) | |
27143 | { | |
27144 | case GTK_POS_TOP: | |
27145 | case GTK_POS_BOTTOM: | |
27146 | if (tab_height == 0) | |
27147 | break; | |
27148 | ||
27149 | if (notebook->scrollable && vis_pages > 1 && | |
27150 | widget->requisition.width < tab_width) | |
27151 | tab_height = (((tab_height) > (scroll_arrow_hlength)) ? (tab_height) : (scroll_arrow_hlength)); | |
27152 | ||
27153 | padding = 2 * (tab_curvature + focus_width + | |
27154 | notebook->tab_hborder) - tab_overlap; | |
27155 | tab_max += padding; | |
27156 | while (children) | |
27157 | { | |
27158 | page = children->data; | |
27159 | children = children->next; | |
27160 | ||
27161 | if (!((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
27162 | continue; | |
27163 | ||
27164 | if (notebook->homogeneous) | |
27165 | page->requisition.width = tab_max; | |
27166 | else | |
27167 | page->requisition.width += padding; | |
27168 | ||
27169 | tab_width += page->requisition.width; | |
27170 | page->requisition.height = tab_height; | |
27171 | } | |
27172 | ||
27173 | if (notebook->scrollable && vis_pages > 1 && | |
27174 | widget->requisition.width < tab_width) | |
27175 | tab_width = tab_max + 2 * (scroll_arrow_hlength + arrow_spacing); | |
27176 | ||
27177 | if (notebook->homogeneous && !notebook->scrollable) | |
27178 | widget->requisition.width = (((widget->requisition.width) > (vis_pages * tab_max + tab_overlap)) ? (widget->requisition.width) : (vis_pages * tab_max + tab_overlap)); | |
27179 | ||
27180 | ||
27181 | else | |
27182 | widget->requisition.width = (((widget->requisition.width) > (tab_width + tab_overlap)) ? (widget->requisition.width) : (tab_width + tab_overlap)); | |
27183 | ||
27184 | ||
27185 | widget->requisition.height += tab_height; | |
27186 | break; | |
27187 | case GTK_POS_LEFT: | |
27188 | case GTK_POS_RIGHT: | |
27189 | if (tab_width == 0) | |
27190 | break; | |
27191 | ||
27192 | if (notebook->scrollable && vis_pages > 1 && | |
27193 | widget->requisition.height < tab_height) | |
27194 | tab_width = (((tab_width) > (arrow_spacing + 2 * scroll_arrow_vlength)) ? (tab_width) : (arrow_spacing + 2 * scroll_arrow_vlength)); | |
27195 | ||
27196 | ||
27197 | padding = 2 * (tab_curvature + focus_width + | |
27198 | notebook->tab_vborder) - tab_overlap; | |
27199 | tab_max += padding; | |
27200 | ||
27201 | while (children) | |
27202 | { | |
27203 | page = children->data; | |
27204 | children = children->next; | |
27205 | ||
27206 | if (!((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
27207 | continue; | |
27208 | ||
27209 | page->requisition.width = tab_width; | |
27210 | ||
27211 | if (notebook->homogeneous) | |
27212 | page->requisition.height = tab_max; | |
27213 | else | |
27214 | page->requisition.height += padding; | |
27215 | ||
27216 | tab_height += page->requisition.height; | |
27217 | } | |
27218 | ||
27219 | if (notebook->scrollable && vis_pages > 1 && | |
27220 | widget->requisition.height < tab_height) | |
27221 | tab_height = tab_max + (2 * scroll_arrow_vlength + arrow_spacing); | |
27222 | ||
27223 | widget->requisition.width += tab_width; | |
27224 | ||
27225 | if (notebook->homogeneous && !notebook->scrollable) | |
27226 | widget->requisition.height = | |
27227 | (((widget->requisition.height) > (vis_pages * tab_max + tab_overlap)) ? (widget->requisition.height) : (vis_pages * tab_max + tab_overlap)); | |
27228 | ||
27229 | else | |
27230 | widget->requisition.height = | |
27231 | (((widget->requisition.height) > (tab_height + tab_overlap)) ? (widget->requisition.height) : (tab_height + tab_overlap)); | |
27232 | ||
27233 | ||
27234 | if (!notebook->homogeneous || notebook->scrollable) | |
27235 | vis_pages = 1; | |
27236 | widget->requisition.height = (((widget->requisition.height) > (vis_pages * tab_max + tab_overlap)) ? (widget->requisition.height) : (vis_pages * tab_max + tab_overlap)); | |
27237 | ||
27238 | ||
27239 | break; | |
27240 | } | |
27241 | } | |
27242 | } | |
27243 | else | |
27244 | { | |
27245 | for (children = notebook->children; children; | |
27246 | children = children->next) | |
27247 | { | |
27248 | page = children->data; | |
27249 | ||
27250 | if (page->tab_label && ((((((((GtkObject*) ((page->tab_label)))))->flags)) & GTK_VISIBLE) != 0)) | |
27251 | IA__gtk_widget_hide (page->tab_label); | |
27252 | } | |
27253 | } | |
27254 | } | |
27255 | ||
27256 | widget->requisition.width += ((((GtkContainer*) ((widget)))))->border_width * 2; | |
27257 | widget->requisition.height += ((((GtkContainer*) ((widget)))))->border_width * 2; | |
27258 | ||
27259 | if (switch_page) | |
27260 | { | |
27261 | if (vis_pages) | |
27262 | { | |
27263 | for (children = notebook->children; children; | |
27264 | children = children->next) | |
27265 | { | |
27266 | page = children->data; | |
27267 | if (((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
27268 | { | |
27269 | gtk_notebook_switch_page (notebook, page); | |
27270 | break; | |
27271 | } | |
27272 | } | |
27273 | } | |
27274 | else if (((((((((GtkObject*) ((widget)))))->flags)) & GTK_VISIBLE) != 0)) | |
27275 | { | |
27276 | widget->requisition.width = ((((GtkContainer*) ((widget)))))->border_width * 2; | |
27277 | widget->requisition.height= ((((GtkContainer*) ((widget)))))->border_width * 2; | |
27278 | } | |
27279 | } | |
27280 | if (vis_pages && !notebook->cur_page) | |
27281 | { | |
27282 | children = gtk_notebook_search_page (notebook, ((void *)0), STEP_NEXT, (!(0))); | |
27283 | if (children) | |
27284 | { | |
27285 | notebook->first_tab = children; | |
27286 | gtk_notebook_switch_page (notebook, ((GtkNotebookPage *)((GList *)(children))->data)); | |
27287 | } | |
27288 | } | |
27289 | } | |
27290 | ||
27291 | static void | |
27292 | gtk_notebook_size_allocate (GtkWidget *widget, | |
27293 | GtkAllocation *allocation) | |
27294 | { | |
27295 | GtkNotebook *notebook = ((((GtkNotebook*) ((widget))))); | |
27296 | gint tab_pos = get_effective_tab_pos (notebook); | |
27297 | ||
27298 | widget->allocation = *allocation; | |
27299 | if (((((((((GtkObject*) ((widget)))))->flags)) & GTK_REALIZED) != 0)) | |
27300 | { | |
27301 | GdkRectangle position; | |
27302 | ||
27303 | if (gtk_notebook_get_event_window_position (notebook, &position)) | |
27304 | { | |
27305 | gdk_window_move_resize (notebook->event_window, | |
27306 | position.x, position.y, | |
27307 | position.width, position.height); | |
27308 | if (((((((((GtkObject*) ((notebook)))))->flags)) & GTK_MAPPED) != 0)) | |
27309 | gdk_window_show_unraised (notebook->event_window); | |
27310 | } | |
27311 | else | |
27312 | gdk_window_hide (notebook->event_window); | |
27313 | } | |
27314 | ||
27315 | if (notebook->children) | |
27316 | { | |
27317 | gint border_width = ((((GtkContainer*) ((widget)))))->border_width; | |
27318 | GtkNotebookPage *page; | |
27319 | GtkAllocation child_allocation; | |
27320 | GList *children; | |
27321 | ||
27322 | child_allocation.x = widget->allocation.x + border_width; | |
27323 | child_allocation.y = widget->allocation.y + border_width; | |
27324 | child_allocation.width = (((1) > (allocation->width - border_width * 2)) ? (1) : (allocation->width - border_width * 2)); | |
27325 | child_allocation.height = (((1) > (allocation->height - border_width * 2)) ? (1) : (allocation->height - border_width * 2)); | |
27326 | ||
27327 | if (notebook->show_tabs || notebook->show_border) | |
27328 | { | |
27329 | child_allocation.x += widget->style->xthickness; | |
27330 | child_allocation.y += widget->style->ythickness; | |
27331 | child_allocation.width = (((1) > (child_allocation.width - widget->style->xthickness * 2)) ? (1) : (child_allocation.width - widget->style->xthickness * 2)); | |
27332 | ||
27333 | child_allocation.height = (((1) > (child_allocation.height - widget->style->ythickness * 2)) ? (1) : (child_allocation.height - widget->style->ythickness * 2)); | |
27334 | ||
27335 | ||
27336 | if (notebook->show_tabs && notebook->children && notebook->cur_page) | |
27337 | { | |
27338 | switch (tab_pos) | |
27339 | { | |
27340 | case GTK_POS_TOP: | |
27341 | child_allocation.y += notebook->cur_page->requisition.height; | |
27342 | case GTK_POS_BOTTOM: | |
27343 | child_allocation.height = | |
27344 | (((1) > (child_allocation.height - notebook->cur_page->requisition.height)) ? (1) : (child_allocation.height - notebook->cur_page->requisition.height)); | |
27345 | ||
27346 | break; | |
27347 | case GTK_POS_LEFT: | |
27348 | child_allocation.x += notebook->cur_page->requisition.width; | |
27349 | case GTK_POS_RIGHT: | |
27350 | child_allocation.width = | |
27351 | (((1) > (child_allocation.width - notebook->cur_page->requisition.width)) ? (1) : (child_allocation.width - notebook->cur_page->requisition.width)); | |
27352 | ||
27353 | break; | |
27354 | } | |
27355 | } | |
27356 | } | |
27357 | ||
27358 | children = notebook->children; | |
27359 | while (children) | |
27360 | { | |
27361 | page = children->data; | |
27362 | children = children->next; | |
27363 | ||
27364 | if (((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
27365 | IA__gtk_widget_size_allocate (page->child, &child_allocation); | |
27366 | } | |
27367 | ||
27368 | gtk_notebook_pages_allocate (notebook); | |
27369 | } | |
27370 | } | |
27371 | ||
27372 | static gint | |
27373 | gtk_notebook_expose (GtkWidget *widget, | |
27374 | GdkEventExpose *event) | |
27375 | { | |
27376 | GtkNotebook *notebook; | |
27377 | GtkNotebookPrivate *priv; | |
27378 | ||
27379 | notebook = ((((GtkNotebook*) ((widget))))); | |
27380 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((widget)), ((IA__gtk_notebook_get_type ()))))); | |
27381 | ||
27382 | if (event->window == priv->drag_window) | |
27383 | { | |
27384 | GdkRectangle area = { 0, }; | |
27385 | ||
27386 | gdk_drawable_get_size (priv->drag_window, | |
27387 | &area.width, &area.height); | |
27388 | gtk_notebook_draw_tab (notebook, | |
27389 | notebook->cur_page, | |
27390 | &area); | |
27391 | gtk_notebook_draw_focus (widget, event); | |
27392 | IA__gtk_container_propagate_expose (((((GtkContainer*) ((notebook))))), | |
27393 | notebook->cur_page->tab_label, event); | |
27394 | } | |
27395 | else if ((((((((((GtkObject*) ((widget)))))->flags)) & GTK_VISIBLE) != 0) && ((((((((GtkObject*) ((widget)))))->flags)) & GTK_MAPPED) != 0))) | |
27396 | { | |
27397 | gtk_notebook_paint (widget, &event->area); | |
27398 | if (notebook->show_tabs) | |
27399 | { | |
27400 | GtkNotebookPage *page; | |
27401 | GList *pages; | |
27402 | ||
27403 | gtk_notebook_draw_focus (widget, event); | |
27404 | pages = notebook->children; | |
27405 | ||
27406 | while (pages) | |
27407 | { | |
27408 | page = ((GtkNotebookPage *)((GList *)(pages))->data); | |
27409 | pages = pages->next; | |
27410 | ||
27411 | if (page->tab_label->window == event->window && | |
27412 | (((((((((GtkObject*) ((page->tab_label)))))->flags)) & GTK_VISIBLE) != 0) && ((((((((GtkObject*) ((page->tab_label)))))->flags)) & GTK_MAPPED) != 0))) | |
27413 | IA__gtk_container_propagate_expose (((((GtkContainer*) ((notebook))))), | |
27414 | page->tab_label, event); | |
27415 | } | |
27416 | } | |
27417 | ||
27418 | if (notebook->cur_page) | |
27419 | IA__gtk_container_propagate_expose (((((GtkContainer*) ((notebook))))), | |
27420 | notebook->cur_page->child, | |
27421 | event); | |
27422 | } | |
27423 | ||
27424 | return (0); | |
27425 | } | |
27426 | ||
27427 | static gboolean | |
27428 | gtk_notebook_show_arrows (GtkNotebook *notebook) | |
27429 | { | |
27430 | gboolean show_arrow = (0); | |
27431 | GList *children; | |
27432 | ||
27433 | if (!notebook->scrollable) | |
27434 | return (0); | |
27435 | ||
27436 | children = notebook->children; | |
27437 | while (children) | |
27438 | { | |
27439 | GtkNotebookPage *page = children->data; | |
27440 | ||
27441 | if (page->tab_label && !IA__gtk_widget_get_child_visible (page->tab_label)) | |
27442 | show_arrow = (!(0)); | |
27443 | ||
27444 | children = children->next; | |
27445 | } | |
27446 | ||
27447 | return show_arrow; | |
27448 | } | |
27449 | ||
27450 | static void | |
27451 | gtk_notebook_get_arrow_rect (GtkNotebook *notebook, | |
27452 | GdkRectangle *rectangle, | |
27453 | GtkNotebookArrow arrow) | |
27454 | { | |
27455 | GdkRectangle event_window_pos; | |
27456 | gboolean before = ((arrow) == ARROW_LEFT_BEFORE || (arrow) == ARROW_RIGHT_BEFORE); | |
27457 | gboolean left = ((arrow) == ARROW_LEFT_BEFORE || (arrow) == ARROW_LEFT_AFTER); | |
27458 | ||
27459 | if (gtk_notebook_get_event_window_position (notebook, &event_window_pos)) | |
27460 | { | |
27461 | gint scroll_arrow_hlength; | |
27462 | gint scroll_arrow_vlength; | |
27463 | ||
27464 | IA__gtk_widget_style_get (((((GtkWidget*) ((notebook))))), | |
27465 | "scroll-arrow-hlength", &scroll_arrow_hlength, | |
27466 | "scroll-arrow-vlength", &scroll_arrow_vlength, | |
27467 | ((void *)0)); | |
27468 | ||
27469 | switch (notebook->tab_pos) | |
27470 | { | |
27471 | case GTK_POS_LEFT: | |
27472 | case GTK_POS_RIGHT: | |
27473 | rectangle->width = scroll_arrow_vlength; | |
27474 | rectangle->height = scroll_arrow_vlength; | |
27475 | ||
27476 | if ((before && (notebook->has_before_previous != notebook->has_before_next)) || | |
27477 | (!before && (notebook->has_after_previous != notebook->has_after_next))) | |
27478 | rectangle->x = event_window_pos.x + (event_window_pos.width - rectangle->width) / 2; | |
27479 | else if (left) | |
27480 | rectangle->x = event_window_pos.x + event_window_pos.width / 2 - rectangle->width; | |
27481 | else | |
27482 | rectangle->x = event_window_pos.x + event_window_pos.width / 2; | |
27483 | rectangle->y = event_window_pos.y; | |
27484 | if (!before) | |
27485 | rectangle->y += event_window_pos.height - rectangle->height; | |
27486 | break; | |
27487 | ||
27488 | case GTK_POS_TOP: | |
27489 | case GTK_POS_BOTTOM: | |
27490 | rectangle->width = scroll_arrow_hlength; | |
27491 | rectangle->height = scroll_arrow_hlength; | |
27492 | ||
27493 | if (before) | |
27494 | { | |
27495 | if (left || !notebook->has_before_previous) | |
27496 | rectangle->x = event_window_pos.x; | |
27497 | else | |
27498 | rectangle->x = event_window_pos.x + rectangle->width; | |
27499 | } | |
27500 | else | |
27501 | { | |
27502 | if (!left || !notebook->has_after_next) | |
27503 | rectangle->x = event_window_pos.x + event_window_pos.width - rectangle->width; | |
27504 | else | |
27505 | rectangle->x = event_window_pos.x + event_window_pos.width - 2 * rectangle->width; | |
27506 | } | |
27507 | rectangle->y = event_window_pos.y + (event_window_pos.height - rectangle->height) / 2; | |
27508 | break; | |
27509 | } | |
27510 | } | |
27511 | } | |
27512 | ||
27513 | static GtkNotebookArrow | |
27514 | gtk_notebook_get_arrow (GtkNotebook *notebook, | |
27515 | gint x, | |
27516 | gint y) | |
27517 | { | |
27518 | GdkRectangle arrow_rect; | |
27519 | GdkRectangle event_window_pos; | |
27520 | gint i; | |
27521 | gint x0, y0; | |
27522 | GtkNotebookArrow arrow[4]; | |
27523 | ||
27524 | arrow[0] = notebook->has_before_previous ? ARROW_LEFT_BEFORE : ARROW_NONE; | |
27525 | arrow[1] = notebook->has_before_next ? ARROW_RIGHT_BEFORE : ARROW_NONE; | |
27526 | arrow[2] = notebook->has_after_previous ? ARROW_LEFT_AFTER : ARROW_NONE; | |
27527 | arrow[3] = notebook->has_after_next ? ARROW_RIGHT_AFTER : ARROW_NONE; | |
27528 | ||
27529 | if (gtk_notebook_show_arrows (notebook)) | |
27530 | { | |
27531 | gtk_notebook_get_event_window_position (notebook, &event_window_pos); | |
27532 | for (i = 0; i < 4; i++) | |
27533 | { | |
27534 | if (arrow[i] == ARROW_NONE) | |
27535 | continue; | |
27536 | ||
27537 | gtk_notebook_get_arrow_rect (notebook, &arrow_rect, arrow[i]); | |
27538 | ||
27539 | x0 = x - arrow_rect.x; | |
27540 | y0 = y - arrow_rect.y; | |
27541 | ||
27542 | if (y0 >= 0 && y0 < arrow_rect.height && | |
27543 | x0 >= 0 && x0 < arrow_rect.width) | |
27544 | return arrow[i]; | |
27545 | } | |
27546 | } | |
27547 | ||
27548 | return ARROW_NONE; | |
27549 | } | |
27550 | ||
27551 | static void | |
27552 | gtk_notebook_do_arrow (GtkNotebook *notebook, | |
27553 | GtkNotebookArrow arrow) | |
27554 | { | |
27555 | GtkWidget *widget = ((((GtkWidget*) ((notebook))))); | |
27556 | GtkDirectionType dir; | |
27557 | gboolean is_rtl, left; | |
27558 | ||
27559 | is_rtl = IA__gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL; | |
27560 | left = (((arrow) == ARROW_LEFT_BEFORE || (arrow) == ARROW_LEFT_AFTER) && !is_rtl) || | |
27561 | (!((arrow) == ARROW_LEFT_BEFORE || (arrow) == ARROW_LEFT_AFTER) && is_rtl); | |
27562 | ||
27563 | if (!notebook->focus_tab || | |
27564 | gtk_notebook_search_page (notebook, notebook->focus_tab, | |
27565 | left ? STEP_PREV : STEP_NEXT, | |
27566 | (!(0)))) | |
27567 | { | |
27568 | if (notebook->tab_pos == GTK_POS_LEFT || | |
27569 | notebook->tab_pos == GTK_POS_RIGHT) | |
27570 | dir = ((arrow) == ARROW_LEFT_BEFORE || (arrow) == ARROW_LEFT_AFTER) ? GTK_DIR_UP : GTK_DIR_DOWN; | |
27571 | else | |
27572 | dir = ((arrow) == ARROW_LEFT_BEFORE || (arrow) == ARROW_LEFT_AFTER) ? GTK_DIR_LEFT : GTK_DIR_RIGHT; | |
27573 | ||
27574 | IA__gtk_widget_grab_focus (widget); | |
27575 | IA__gtk_widget_child_focus (widget, dir); | |
27576 | } | |
27577 | } | |
27578 | ||
27579 | static gboolean | |
27580 | gtk_notebook_arrow_button_press (GtkNotebook *notebook, | |
27581 | GtkNotebookArrow arrow, | |
27582 | gint button) | |
27583 | { | |
27584 | GtkWidget *widget = ((((GtkWidget*) ((notebook))))); | |
27585 | gboolean is_rtl = IA__gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL; | |
27586 | gboolean left = (((arrow) == ARROW_LEFT_BEFORE || (arrow) == ARROW_LEFT_AFTER) && !is_rtl) || | |
27587 | (!((arrow) == ARROW_LEFT_BEFORE || (arrow) == ARROW_LEFT_AFTER) && is_rtl); | |
27588 | ||
27589 | if (!((((((((GtkObject*) ((widget)))))->flags)) & GTK_HAS_FOCUS) != 0)) | |
27590 | IA__gtk_widget_grab_focus (widget); | |
27591 | ||
27592 | notebook->button = button; | |
27593 | notebook->click_child = arrow; | |
27594 | ||
27595 | if (button == 1) | |
27596 | { | |
27597 | gtk_notebook_do_arrow (notebook, arrow); | |
27598 | gtk_notebook_set_scroll_timer (notebook); | |
27599 | } | |
27600 | else if (button == 2) | |
27601 | gtk_notebook_page_select (notebook, (!(0))); | |
27602 | else if (button == 3) | |
27603 | gtk_notebook_switch_focus_tab (notebook, | |
27604 | gtk_notebook_search_page (notebook, | |
27605 | ((void *)0), | |
27606 | left ? STEP_NEXT : STEP_PREV, | |
27607 | (!(0)))); | |
27608 | gtk_notebook_redraw_arrows (notebook); | |
27609 | ||
27610 | return (!(0)); | |
27611 | } | |
27612 | ||
27613 | static gboolean | |
27614 | get_widget_coordinates (GtkWidget *widget, | |
27615 | GdkEvent *event, | |
27616 | gint *x, | |
27617 | gint *y) | |
27618 | { | |
27619 | GdkWindow *window = ((GdkEventAny *)event)->window; | |
27620 | gdouble tx, ty; | |
27621 | ||
27622 | if (!gdk_event_get_coords (event, &tx, &ty)) | |
27623 | return (0); | |
27624 | ||
27625 | while (window && window != widget->window) | |
27626 | { | |
27627 | gint window_x, window_y; | |
27628 | ||
27629 | gdk_window_get_position (window, &window_x, &window_y); | |
27630 | tx += window_x; | |
27631 | ty += window_y; | |
27632 | ||
27633 | window = gdk_window_get_parent (window); | |
27634 | } | |
27635 | ||
27636 | if (window) | |
27637 | { | |
27638 | *x = tx; | |
27639 | *y = ty; | |
27640 | ||
27641 | return (!(0)); | |
27642 | } | |
27643 | else | |
27644 | return (0); | |
27645 | } | |
27646 | ||
27647 | static gboolean | |
27648 | gtk_notebook_scroll (GtkWidget *widget, | |
27649 | GdkEventScroll *event) | |
27650 | { | |
27651 | GtkNotebook *notebook = ((((GtkNotebook*) ((widget))))); | |
27652 | ||
27653 | GtkWidget* child; | |
27654 | GtkWidget* originator; | |
27655 | ||
27656 | if (!notebook->cur_page) | |
27657 | return (0); | |
27658 | ||
27659 | child = notebook->cur_page->child; | |
27660 | originator = IA__gtk_get_event_widget ((GdkEvent *)event); | |
27661 | ||
27662 | ||
27663 | if (!originator || IA__gtk_widget_is_ancestor (originator, child) || originator == child) | |
27664 | return (0); | |
27665 | ||
27666 | switch (event->direction) | |
27667 | { | |
27668 | case GDK_SCROLL_RIGHT: | |
27669 | case GDK_SCROLL_DOWN: | |
27670 | IA__gtk_notebook_next_page (notebook); | |
27671 | break; | |
27672 | case GDK_SCROLL_LEFT: | |
27673 | case GDK_SCROLL_UP: | |
27674 | IA__gtk_notebook_prev_page (notebook); | |
27675 | break; | |
27676 | } | |
27677 | ||
27678 | return (!(0)); | |
27679 | } | |
27680 | ||
27681 | static GList* | |
27682 | get_tab_at_pos (GtkNotebook *notebook, gint x, gint y) | |
27683 | { | |
27684 | GtkNotebookPage *page; | |
27685 | GList *children = notebook->children; | |
27686 | ||
27687 | while (children) | |
27688 | { | |
27689 | page = children->data; | |
27690 | ||
27691 | if (((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0) && | |
27692 | page->tab_label && ((((((((GtkObject*) ((page->tab_label)))))->flags)) & GTK_MAPPED) != 0) && | |
27693 | (x >= page->allocation.x) && | |
27694 | (y >= page->allocation.y) && | |
27695 | (x <= (page->allocation.x + page->allocation.width)) && | |
27696 | (y <= (page->allocation.y + page->allocation.height))) | |
27697 | return children; | |
27698 | ||
27699 | children = children->next; | |
27700 | } | |
27701 | ||
27702 | return ((void *)0); | |
27703 | } | |
27704 | ||
27705 | static gboolean | |
27706 | gtk_notebook_button_press (GtkWidget *widget, | |
27707 | GdkEventButton *event) | |
27708 | { | |
27709 | GtkNotebook *notebook = ((((GtkNotebook*) ((widget))))); | |
27710 | GtkNotebookPrivate *priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
27711 | GtkNotebookPage *page; | |
27712 | GList *tab; | |
27713 | GtkNotebookArrow arrow; | |
27714 | gint x, y; | |
27715 | ||
27716 | if (event->type != GDK_BUTTON_PRESS || !notebook->children || | |
27717 | notebook->button) | |
27718 | return (0); | |
27719 | ||
27720 | if (!get_widget_coordinates (widget, (GdkEvent *)event, &x, &y)) | |
27721 | return (0); | |
27722 | ||
27723 | arrow = gtk_notebook_get_arrow (notebook, x, y); | |
27724 | if (arrow) | |
27725 | return gtk_notebook_arrow_button_press (notebook, arrow, event->button); | |
27726 | ||
27727 | if (event->button == 3 && notebook->menu) | |
27728 | { | |
27729 | IA__gtk_menu_popup (((((GtkMenu*) ((notebook->menu))))), ((void *)0), ((void *)0), | |
27730 | ((void *)0), ((void *)0), 3, event->time); | |
27731 | return (!(0)); | |
27732 | } | |
27733 | ||
27734 | if (event->button != 1) | |
27735 | return (0); | |
27736 | ||
27737 | notebook->button = event->button; | |
27738 | ||
27739 | if ((tab = get_tab_at_pos (notebook, x, y)) != ((void *)0)) | |
27740 | { | |
27741 | gboolean page_changed, was_focus; | |
27742 | ||
27743 | page = tab->data; | |
27744 | page_changed = page != notebook->cur_page; | |
27745 | was_focus = IA__gtk_widget_is_focus (widget); | |
27746 | ||
27747 | gtk_notebook_switch_focus_tab (notebook, tab); | |
27748 | IA__gtk_widget_grab_focus (widget); | |
27749 | ||
27750 | if (page_changed && !was_focus) | |
27751 | IA__gtk_widget_child_focus (page->child, GTK_DIR_TAB_FORWARD); | |
27752 | ||
27753 | ||
27754 | if (page->reorderable || page->detachable) | |
27755 | { | |
27756 | priv->during_detach = (0); | |
27757 | priv->during_reorder = (0); | |
27758 | priv->pressed_button = event->button; | |
27759 | ||
27760 | gdk_window_get_pointer (widget->window, | |
27761 | &priv->mouse_x, | |
27762 | &priv->mouse_y, | |
27763 | ((void *)0)); | |
27764 | ||
27765 | priv->drag_begin_x = priv->mouse_x; | |
27766 | priv->drag_begin_y = priv->mouse_y; | |
27767 | priv->drag_offset_x = priv->drag_begin_x - page->allocation.x; | |
27768 | priv->drag_offset_y = priv->drag_begin_y - page->allocation.y; | |
27769 | } | |
27770 | } | |
27771 | ||
27772 | return (!(0)); | |
27773 | } | |
27774 | ||
27775 | static void | |
27776 | popup_position_func (GtkMenu *menu, | |
27777 | gint *x, | |
27778 | gint *y, | |
27779 | gboolean *push_in, | |
27780 | gpointer data) | |
27781 | { | |
27782 | GtkNotebook *notebook = data; | |
27783 | GtkWidget *w; | |
27784 | GtkRequisition requisition; | |
27785 | ||
27786 | if (notebook->focus_tab) | |
27787 | { | |
27788 | GtkNotebookPage *page; | |
27789 | ||
27790 | page = notebook->focus_tab->data; | |
27791 | w = page->tab_label; | |
27792 | } | |
27793 | else | |
27794 | { | |
27795 | w = ((((GtkWidget*) ((notebook))))); | |
27796 | } | |
27797 | ||
27798 | gdk_window_get_origin (w->window, x, y); | |
27799 | IA__gtk_widget_size_request (((((GtkWidget*) ((menu))))), &requisition); | |
27800 | ||
27801 | if (IA__gtk_widget_get_direction (w) == GTK_TEXT_DIR_RTL) | |
27802 | *x += w->allocation.x + w->allocation.width - requisition.width; | |
27803 | else | |
27804 | *x += w->allocation.x; | |
27805 | ||
27806 | *y += w->allocation.y + w->allocation.height; | |
27807 | ||
27808 | *push_in = (0); | |
27809 | } | |
27810 | ||
27811 | static gboolean | |
27812 | gtk_notebook_popup_menu (GtkWidget *widget) | |
27813 | { | |
27814 | GtkNotebook *notebook = ((((GtkNotebook*) ((widget))))); | |
27815 | ||
27816 | if (notebook->menu) | |
27817 | { | |
27818 | IA__gtk_menu_popup (((((GtkMenu*) ((notebook->menu))))), ((void *)0), ((void *)0), | |
27819 | popup_position_func, notebook, | |
27820 | 0, IA__gtk_get_current_event_time ()); | |
27821 | IA__gtk_menu_shell_select_first (((((GtkMenuShell*) ((notebook->menu))))), (0)); | |
27822 | return (!(0)); | |
27823 | } | |
27824 | ||
27825 | return (0); | |
27826 | } | |
27827 | ||
27828 | static void | |
27829 | stop_scrolling (GtkNotebook *notebook) | |
27830 | { | |
27831 | if (notebook->timer) | |
27832 | { | |
27833 | g_source_remove (notebook->timer); | |
27834 | notebook->timer = 0; | |
27835 | notebook->need_timer = (0); | |
27836 | } | |
27837 | notebook->click_child = 0; | |
27838 | notebook->button = 0; | |
27839 | gtk_notebook_redraw_arrows (notebook); | |
27840 | } | |
27841 | ||
27842 | static GList* | |
27843 | get_drop_position (GtkNotebook *notebook, | |
27844 | guint pack) | |
27845 | { | |
27846 | GtkNotebookPrivate *priv; | |
27847 | GList *children, *last_child; | |
27848 | GtkNotebookPage *page; | |
27849 | gboolean is_rtl; | |
27850 | gint x, y; | |
27851 | ||
27852 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
27853 | x = priv->mouse_x; | |
27854 | y = priv->mouse_y; | |
27855 | ||
27856 | is_rtl = IA__gtk_widget_get_direction ((GtkWidget *) notebook) == GTK_TEXT_DIR_RTL; | |
27857 | children = notebook->children; | |
27858 | last_child = ((void *)0); | |
27859 | ||
27860 | while (children) | |
27861 | { | |
27862 | page = children->data; | |
27863 | ||
27864 | if ((priv->operation != DRAG_OPERATION_REORDER || page != notebook->cur_page) && | |
27865 | ((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0) && | |
27866 | page->tab_label && | |
27867 | ((((((((GtkObject*) ((page->tab_label)))))->flags)) & GTK_MAPPED) != 0) && | |
27868 | page->pack == pack) | |
27869 | { | |
27870 | switch (notebook->tab_pos) | |
27871 | { | |
27872 | case GTK_POS_TOP: | |
27873 | case GTK_POS_BOTTOM: | |
27874 | if (!is_rtl) | |
27875 | { | |
27876 | if ((page->pack == GTK_PACK_START && (((GtkNotebookPage *) (page))->allocation.x + ((GtkNotebookPage *) (page))->allocation.width / 2) > x) || | |
27877 | (page->pack == GTK_PACK_END && (((GtkNotebookPage *) (page))->allocation.x + ((GtkNotebookPage *) (page))->allocation.width / 2) < x)) | |
27878 | return children; | |
27879 | } | |
27880 | else | |
27881 | { | |
27882 | if ((page->pack == GTK_PACK_START && (((GtkNotebookPage *) (page))->allocation.x + ((GtkNotebookPage *) (page))->allocation.width / 2) < x) || | |
27883 | (page->pack == GTK_PACK_END && (((GtkNotebookPage *) (page))->allocation.x + ((GtkNotebookPage *) (page))->allocation.width / 2) > x)) | |
27884 | return children; | |
27885 | } | |
27886 | ||
27887 | break; | |
27888 | case GTK_POS_LEFT: | |
27889 | case GTK_POS_RIGHT: | |
27890 | if ((page->pack == GTK_PACK_START && (((GtkNotebookPage *) (page))->allocation.y + ((GtkNotebookPage *) (page))->allocation.height / 2) > y) || | |
27891 | (page->pack == GTK_PACK_END && (((GtkNotebookPage *) (page))->allocation.y + ((GtkNotebookPage *) (page))->allocation.height / 2) < y)) | |
27892 | return children; | |
27893 | ||
27894 | break; | |
27895 | } | |
27896 | ||
27897 | last_child = children->next; | |
27898 | } | |
27899 | ||
27900 | children = children->next; | |
27901 | } | |
27902 | ||
27903 | return last_child; | |
27904 | } | |
27905 | ||
27906 | static void | |
27907 | show_drag_window (GtkNotebook *notebook, | |
27908 | GtkNotebookPrivate *priv, | |
27909 | GtkNotebookPage *page) | |
27910 | { | |
27911 | GtkWidget *widget = ((((GtkWidget*) ((notebook))))); | |
27912 | ||
27913 | if (!priv->drag_window) | |
27914 | { | |
27915 | GdkWindowAttr attributes; | |
27916 | guint attributes_mask; | |
27917 | ||
27918 | attributes.x = page->allocation.x; | |
27919 | attributes.y = page->allocation.y; | |
27920 | attributes.width = page->allocation.width; | |
27921 | attributes.height = page->allocation.height; | |
27922 | attributes.window_type = GDK_WINDOW_CHILD; | |
27923 | attributes.wclass = GDK_INPUT_OUTPUT; | |
27924 | attributes.visual = IA__gtk_widget_get_visual (widget); | |
27925 | attributes.colormap = IA__gtk_widget_get_colormap (widget); | |
27926 | attributes.event_mask = GDK_VISIBILITY_NOTIFY_MASK | GDK_EXPOSURE_MASK | GDK_POINTER_MOTION_MASK; | |
27927 | attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP; | |
27928 | ||
27929 | priv->drag_window = gdk_window_new (IA__gtk_widget_get_parent_window (widget), | |
27930 | &attributes, | |
27931 | attributes_mask); | |
27932 | gdk_window_set_user_data (priv->drag_window, widget); | |
27933 | } | |
27934 | ||
27935 | g_object_ref (page->tab_label); | |
27936 | IA__gtk_widget_unparent (page->tab_label); | |
27937 | IA__gtk_widget_set_parent_window (page->tab_label, priv->drag_window); | |
27938 | IA__gtk_widget_set_parent (page->tab_label, widget); | |
27939 | g_object_unref (page->tab_label); | |
27940 | ||
27941 | gdk_window_show (priv->drag_window); | |
27942 | ||
27943 | ||
27944 | gdk_pointer_grab (priv->drag_window, | |
27945 | (0), | |
27946 | GDK_POINTER_MOTION_MASK | GDK_BUTTON_RELEASE_MASK, | |
27947 | ((void *)0), ((void *)0), 0L); | |
27948 | } | |
27949 | ||
27950 | ||
27951 | ||
27952 | ||
27953 | static void | |
27954 | hide_drag_window (GtkNotebook *notebook, | |
27955 | GtkNotebookPrivate *priv, | |
27956 | GtkNotebookPage *page) | |
27957 | { | |
27958 | GtkWidget *widget = ((((GtkWidget*) ((notebook))))); | |
27959 | GtkWidget *parent = page->tab_label->parent; | |
27960 | ||
27961 | if (page->tab_label->window != widget->window || | |
27962 | !(((GtkNotebookPage *) (page))->tab_label->parent == ((GtkWidget *) (notebook)))) | |
27963 | { | |
27964 | g_object_ref (page->tab_label); | |
27965 | ||
27966 | if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((parent)); GType __t = ((IA__gtk_window_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) | |
27967 | { | |
27968 | ||
27969 | IA__gtk_container_remove (((((GtkContainer*) ((parent))))), page->tab_label); | |
27970 | } | |
27971 | else | |
27972 | IA__gtk_widget_unparent (page->tab_label); | |
27973 | ||
27974 | IA__gtk_widget_set_parent_window (page->tab_label, widget->window); | |
27975 | IA__gtk_widget_set_parent (page->tab_label, widget); | |
27976 | g_object_unref (page->tab_label); | |
27977 | } | |
27978 | ||
27979 | if (priv->drag_window && | |
27980 | gdk_window_is_visible (priv->drag_window)) | |
27981 | gdk_window_hide (priv->drag_window); | |
27982 | } | |
27983 | ||
27984 | static void | |
27985 | gtk_notebook_stop_reorder (GtkNotebook *notebook) | |
27986 | { | |
27987 | GtkNotebookPrivate *priv; | |
27988 | GtkNotebookPage *page; | |
27989 | ||
27990 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
27991 | ||
27992 | if (priv->operation == DRAG_OPERATION_DETACH) | |
27993 | page = priv->detached_tab; | |
27994 | else | |
27995 | page = notebook->cur_page; | |
27996 | ||
27997 | if (!page) | |
27998 | return; | |
27999 | ||
28000 | priv->pressed_button = -1; | |
28001 | ||
28002 | if (page->reorderable || page->detachable) | |
28003 | { | |
28004 | if (priv->during_reorder) | |
28005 | { | |
28006 | gint old_page_num, page_num; | |
28007 | GList *element; | |
28008 | ||
28009 | element = get_drop_position (notebook, page->pack); | |
28010 | old_page_num = g_list_position (notebook->children, notebook->focus_tab); | |
28011 | page_num = reorder_tab (notebook, element, notebook->focus_tab); | |
28012 | gtk_notebook_child_reordered (notebook, page); | |
28013 | ||
28014 | if (priv->has_scrolled || old_page_num != page_num) | |
28015 | g_signal_emit (notebook, | |
28016 | notebook_signals[PAGE_REORDERED], 0, | |
28017 | page->child, page_num); | |
28018 | ||
28019 | priv->has_scrolled = (0); | |
28020 | priv->during_reorder = (0); | |
28021 | } | |
28022 | ||
28023 | hide_drag_window (notebook, priv, page); | |
28024 | ||
28025 | priv->operation = DRAG_OPERATION_NONE; | |
28026 | gtk_notebook_pages_allocate (notebook); | |
28027 | ||
28028 | if (priv->dnd_timer) | |
28029 | { | |
28030 | g_source_remove (priv->dnd_timer); | |
28031 | priv->dnd_timer = 0; | |
28032 | } | |
28033 | } | |
28034 | } | |
28035 | ||
28036 | static gint | |
28037 | gtk_notebook_button_release (GtkWidget *widget, | |
28038 | GdkEventButton *event) | |
28039 | { | |
28040 | GtkNotebook *notebook; | |
28041 | GtkNotebookPrivate *priv; | |
28042 | GtkNotebookPage *page; | |
28043 | ||
28044 | if (event->type != GDK_BUTTON_RELEASE) | |
28045 | return (0); | |
28046 | ||
28047 | notebook = ((((GtkNotebook*) ((widget))))); | |
28048 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
28049 | page = notebook->cur_page; | |
28050 | ||
28051 | if (!priv->during_detach && | |
28052 | page->reorderable && | |
28053 | event->button == priv->pressed_button) | |
28054 | gtk_notebook_stop_reorder (notebook); | |
28055 | ||
28056 | if (event->button == notebook->button) | |
28057 | { | |
28058 | stop_scrolling (notebook); | |
28059 | return (!(0)); | |
28060 | } | |
28061 | else | |
28062 | return (0); | |
28063 | } | |
28064 | ||
28065 | static gint | |
28066 | gtk_notebook_leave_notify (GtkWidget *widget, | |
28067 | GdkEventCrossing *event) | |
28068 | { | |
28069 | GtkNotebook *notebook = ((((GtkNotebook*) ((widget))))); | |
28070 | gint x, y; | |
28071 | ||
28072 | if (!get_widget_coordinates (widget, (GdkEvent *)event, &x, &y)) | |
28073 | return (0); | |
28074 | ||
28075 | if (notebook->in_child) | |
28076 | { | |
28077 | notebook->in_child = 0; | |
28078 | gtk_notebook_redraw_arrows (notebook); | |
28079 | } | |
28080 | ||
28081 | return (!(0)); | |
28082 | } | |
28083 | ||
28084 | static GtkNotebookPointerPosition | |
28085 | get_pointer_position (GtkNotebook *notebook) | |
28086 | { | |
28087 | GtkWidget *widget = (GtkWidget *) notebook; | |
28088 | GtkContainer *container = (GtkContainer *) notebook; | |
28089 | GtkNotebookPrivate *priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
28090 | gboolean is_rtl; | |
28091 | ||
28092 | if (!notebook->scrollable) | |
28093 | return POINTER_BETWEEN; | |
28094 | ||
28095 | if (notebook->tab_pos == GTK_POS_TOP || | |
28096 | notebook->tab_pos == GTK_POS_BOTTOM) | |
28097 | { | |
28098 | gint x; | |
28099 | ||
28100 | is_rtl = IA__gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL; | |
28101 | x = priv->mouse_x - widget->allocation.x; | |
28102 | ||
28103 | if (x > widget->allocation.width - 2 * container->border_width - 12) | |
28104 | return (is_rtl) ? POINTER_BEFORE : POINTER_AFTER; | |
28105 | else if (x < 12 + container->border_width) | |
28106 | return (is_rtl) ? POINTER_AFTER : POINTER_BEFORE; | |
28107 | else | |
28108 | return POINTER_BETWEEN; | |
28109 | } | |
28110 | else | |
28111 | { | |
28112 | gint y; | |
28113 | ||
28114 | y = priv->mouse_y - widget->allocation.y; | |
28115 | if (y > widget->allocation.height - 2 * container->border_width - 12) | |
28116 | return POINTER_AFTER; | |
28117 | else if (y < 12 + container->border_width) | |
28118 | return POINTER_BEFORE; | |
28119 | else | |
28120 | return POINTER_BETWEEN; | |
28121 | } | |
28122 | } | |
28123 | ||
28124 | static gboolean | |
28125 | scroll_notebook_timer (gpointer data) | |
28126 | { | |
28127 | GtkNotebook *notebook = (GtkNotebook *) data; | |
28128 | GtkNotebookPrivate *priv; | |
28129 | GtkNotebookPointerPosition pointer_position; | |
28130 | GList *element, *first_tab; | |
28131 | ||
28132 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
28133 | pointer_position = get_pointer_position (notebook); | |
28134 | ||
28135 | element = get_drop_position (notebook, notebook->cur_page->pack); | |
28136 | reorder_tab (notebook, element, notebook->focus_tab); | |
28137 | first_tab = gtk_notebook_search_page (notebook, notebook->first_tab, | |
28138 | (pointer_position == POINTER_BEFORE) ? STEP_PREV : STEP_NEXT, | |
28139 | (!(0))); | |
28140 | if (first_tab) | |
28141 | { | |
28142 | notebook->first_tab = first_tab; | |
28143 | gtk_notebook_pages_allocate (notebook); | |
28144 | ||
28145 | gdk_window_move_resize (priv->drag_window, | |
28146 | priv->drag_window_x, | |
28147 | priv->drag_window_y, | |
28148 | notebook->cur_page->allocation.width, | |
28149 | notebook->cur_page->allocation.height); | |
28150 | gdk_window_raise (priv->drag_window); | |
28151 | } | |
28152 | ||
28153 | return (!(0)); | |
28154 | } | |
28155 | ||
28156 | static gboolean | |
28157 | check_threshold (GtkNotebook *notebook, | |
28158 | gint current_x, | |
28159 | gint current_y) | |
28160 | { | |
28161 | GtkWidget *widget; | |
28162 | gint dnd_threshold; | |
28163 | GdkRectangle rectangle = { 0, }; | |
28164 | GtkSettings *settings; | |
28165 | ||
28166 | widget = ((((GtkWidget*) ((notebook))))); | |
28167 | settings = IA__gtk_widget_get_settings (((((GtkWidget*) ((notebook)))))); | |
28168 | g_object_get (((((GObject*) ((settings))))), "gtk-dnd-drag-threshold", &dnd_threshold, ((void *)0)); | |
28169 | ||
28170 | ||
28171 | dnd_threshold *= 4; | |
28172 | ||
28173 | gdk_window_get_position (notebook->event_window, &rectangle.x, &rectangle.y); | |
28174 | gdk_drawable_get_size (((((GdkDrawable*) ((notebook->event_window))))), &rectangle.width, &rectangle.height); | |
28175 | ||
28176 | rectangle.x -= dnd_threshold; | |
28177 | rectangle.width += 2 * dnd_threshold; | |
28178 | rectangle.y -= dnd_threshold; | |
28179 | rectangle.height += 2 * dnd_threshold; | |
28180 | ||
28181 | return (current_x < rectangle.x || | |
28182 | current_x > rectangle.x + rectangle.width || | |
28183 | current_y < rectangle.y || | |
28184 | current_y > rectangle.y + rectangle.height); | |
28185 | } | |
28186 | ||
28187 | static gint | |
28188 | gtk_notebook_motion_notify (GtkWidget *widget, | |
28189 | GdkEventMotion *event) | |
28190 | { | |
28191 | GtkNotebook *notebook = ((((GtkNotebook*) ((widget))))); | |
28192 | GtkNotebookPrivate *priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
28193 | GtkNotebookPage *page; | |
28194 | GtkNotebookArrow arrow; | |
28195 | GtkNotebookPointerPosition pointer_position; | |
28196 | GtkSettings *settings; | |
28197 | guint timeout; | |
28198 | ||
28199 | page = notebook->cur_page; | |
28200 | ||
28201 | if (!page) | |
28202 | return (0); | |
28203 | ||
28204 | if (!(event->state & GDK_BUTTON1_MASK) && | |
28205 | priv->pressed_button != -1) | |
28206 | { | |
28207 | gtk_notebook_stop_reorder (notebook); | |
28208 | stop_scrolling (notebook); | |
28209 | } | |
28210 | ||
28211 | if (event->time < priv->timestamp + (1000 / 45)) | |
28212 | return (0); | |
28213 | ||
28214 | priv->timestamp = event->time; | |
28215 | gdk_window_get_pointer (widget->window, | |
28216 | &priv->mouse_x, | |
28217 | &priv->mouse_y, | |
28218 | ((void *)0)); | |
28219 | ||
28220 | arrow = gtk_notebook_get_arrow (notebook, priv->mouse_x, priv->mouse_y); | |
28221 | if (arrow != notebook->in_child) | |
28222 | { | |
28223 | notebook->in_child = arrow; | |
28224 | gtk_notebook_redraw_arrows (notebook); | |
28225 | } | |
28226 | ||
28227 | if (priv->pressed_button == -1) | |
28228 | return (0); | |
28229 | ||
28230 | if (page->detachable && | |
28231 | check_threshold (notebook, priv->mouse_x, priv->mouse_y)) | |
28232 | { | |
28233 | priv->detached_tab = notebook->cur_page; | |
28234 | priv->during_detach = (!(0)); | |
28235 | ||
28236 | IA__gtk_drag_begin (widget, priv->source_targets, GDK_ACTION_MOVE, | |
28237 | priv->pressed_button, (GdkEvent*) event); | |
28238 | return (!(0)); | |
28239 | } | |
28240 | ||
28241 | if (page->reorderable && | |
28242 | (priv->during_reorder || | |
28243 | IA__gtk_drag_check_threshold (widget, priv->drag_begin_x, priv->drag_begin_y, priv->mouse_x, priv->mouse_y))) | |
28244 | { | |
28245 | priv->during_reorder = (!(0)); | |
28246 | pointer_position = get_pointer_position (notebook); | |
28247 | ||
28248 | if (event->window == priv->drag_window && | |
28249 | pointer_position != POINTER_BETWEEN && | |
28250 | gtk_notebook_show_arrows (notebook)) | |
28251 | { | |
28252 | ||
28253 | if (!priv->dnd_timer) | |
28254 | { | |
28255 | priv->has_scrolled = (!(0)); | |
28256 | settings = IA__gtk_widget_get_settings (((((GtkWidget*) ((notebook)))))); | |
28257 | g_object_get (settings, "gtk-timeout-repeat", &timeout, ((void *)0)); | |
28258 | ||
28259 | priv->dnd_timer = gdk_threads_add_timeout (timeout * 5, | |
28260 | scroll_notebook_timer, | |
28261 | (gpointer) notebook); | |
28262 | } | |
28263 | } | |
28264 | else | |
28265 | { | |
28266 | if (priv->dnd_timer) | |
28267 | { | |
28268 | g_source_remove (priv->dnd_timer); | |
28269 | priv->dnd_timer = 0; | |
28270 | } | |
28271 | } | |
28272 | ||
28273 | if (event->window == priv->drag_window || | |
28274 | priv->operation != DRAG_OPERATION_REORDER) | |
28275 | { | |
28276 | ||
28277 | if (priv->operation != DRAG_OPERATION_REORDER) | |
28278 | { | |
28279 | priv->operation = DRAG_OPERATION_REORDER; | |
28280 | show_drag_window (notebook, priv, page); | |
28281 | } | |
28282 | ||
28283 | gtk_notebook_pages_allocate (notebook); | |
28284 | gdk_window_move_resize (priv->drag_window, | |
28285 | priv->drag_window_x, | |
28286 | priv->drag_window_y, | |
28287 | page->allocation.width, | |
28288 | page->allocation.height); | |
28289 | } | |
28290 | } | |
28291 | ||
28292 | return (!(0)); | |
28293 | } | |
28294 | ||
28295 | static void | |
28296 | gtk_notebook_grab_notify (GtkWidget *widget, | |
28297 | gboolean was_grabbed) | |
28298 | { | |
28299 | GtkNotebook *notebook = ((((GtkNotebook*) ((widget))))); | |
28300 | ||
28301 | if (!was_grabbed) | |
28302 | { | |
28303 | gtk_notebook_stop_reorder (notebook); | |
28304 | stop_scrolling (notebook); | |
28305 | } | |
28306 | } | |
28307 | ||
28308 | static void | |
28309 | gtk_notebook_state_changed (GtkWidget *widget, | |
28310 | GtkStateType previous_state) | |
28311 | { | |
28312 | if (!(((((((((GtkObject*) ((widget)))))->flags)) & GTK_SENSITIVE) != 0) && ((((((((GtkObject*) ((widget)))))->flags)) & GTK_PARENT_SENSITIVE) != 0))) | |
28313 | stop_scrolling (((((GtkNotebook*) ((widget)))))); | |
28314 | } | |
28315 | ||
28316 | static gint | |
28317 | gtk_notebook_focus_in (GtkWidget *widget, | |
28318 | GdkEventFocus *event) | |
28319 | { | |
28320 | ((((GtkNotebook*) ((widget)))))->child_has_focus = (0); | |
28321 | ||
28322 | gtk_notebook_redraw_tabs (((((GtkNotebook*) ((widget)))))); | |
28323 | ||
28324 | return (0); | |
28325 | } | |
28326 | ||
28327 | static gint | |
28328 | gtk_notebook_focus_out (GtkWidget *widget, | |
28329 | GdkEventFocus *event) | |
28330 | { | |
28331 | gtk_notebook_redraw_tabs (((((GtkNotebook*) ((widget)))))); | |
28332 | ||
28333 | return (0); | |
28334 | } | |
28335 | ||
28336 | static void | |
28337 | gtk_notebook_draw_focus (GtkWidget *widget, | |
28338 | GdkEventExpose *event) | |
28339 | { | |
28340 | GtkNotebook *notebook = ((((GtkNotebook*) ((widget))))); | |
28341 | ||
28342 | if (((((((((GtkObject*) ((widget)))))->flags)) & GTK_HAS_FOCUS) != 0) && (((((((((GtkObject*) ((widget)))))->flags)) & GTK_VISIBLE) != 0) && ((((((((GtkObject*) ((widget)))))->flags)) & GTK_MAPPED) != 0)) && | |
28343 | notebook->show_tabs && notebook->cur_page && | |
28344 | notebook->cur_page->tab_label->window == event->window) | |
28345 | { | |
28346 | GtkNotebookPage *page; | |
28347 | ||
28348 | page = notebook->cur_page; | |
28349 | ||
28350 | if (IA__gtk_widget_intersect (page->tab_label, &event->area, ((void *)0))) | |
28351 | { | |
28352 | GdkRectangle area; | |
28353 | gint focus_width; | |
28354 | ||
28355 | IA__gtk_widget_style_get (widget, "focus-line-width", &focus_width, ((void *)0)); | |
28356 | ||
28357 | area.x = page->tab_label->allocation.x - focus_width; | |
28358 | area.y = page->tab_label->allocation.y - focus_width; | |
28359 | area.width = page->tab_label->allocation.width + 2 * focus_width; | |
28360 | area.height = page->tab_label->allocation.height + 2 * focus_width; | |
28361 | ||
28362 | IA__gtk_paint_focus (widget->style, event->window, | |
28363 | (((((GtkWidget*) ((widget)))))->state), ((void *)0), widget, "tab", | |
28364 | area.x, area.y, area.width, area.height); | |
28365 | } | |
28366 | } | |
28367 | } | |
28368 | ||
28369 | static void | |
28370 | gtk_notebook_style_set (GtkWidget *widget, | |
28371 | GtkStyle *previous) | |
28372 | { | |
28373 | GtkNotebook *notebook; | |
28374 | ||
28375 | gboolean has_before_previous; | |
28376 | gboolean has_before_next; | |
28377 | gboolean has_after_previous; | |
28378 | gboolean has_after_next; | |
28379 | ||
28380 | notebook = ((((GtkNotebook*) ((widget))))); | |
28381 | ||
28382 | IA__gtk_widget_style_get (widget, | |
28383 | "has-backward-stepper", &has_before_previous, | |
28384 | "has-secondary-forward-stepper", &has_before_next, | |
28385 | "has-secondary-backward-stepper", &has_after_previous, | |
28386 | "has-forward-stepper", &has_after_next, | |
28387 | ((void *)0)); | |
28388 | ||
28389 | notebook->has_before_previous = has_before_previous; | |
28390 | notebook->has_before_next = has_before_next; | |
28391 | notebook->has_after_previous = has_after_previous; | |
28392 | notebook->has_after_next = has_after_next; | |
28393 | ||
28394 | (* ((((GtkWidgetClass*) ((gtk_notebook_parent_class)))))->style_set) (widget, previous); | |
28395 | } | |
28396 | ||
28397 | static gboolean | |
28398 | on_drag_icon_expose (GtkWidget *widget, | |
28399 | GdkEventExpose *event, | |
28400 | gpointer data) | |
28401 | { | |
28402 | GtkWidget *notebook, *child = ((((GtkWidget*) ((data))))); | |
28403 | GtkRequisition requisition; | |
28404 | gint gap_pos; | |
28405 | ||
28406 | notebook = ((((GtkWidget*) ((data))))); | |
28407 | child = ((((GtkBin*) ((widget)))))->child; | |
28408 | IA__gtk_widget_size_request (widget, &requisition); | |
28409 | gap_pos = get_tab_gap_pos (((((GtkNotebook*) ((notebook)))))); | |
28410 | ||
28411 | IA__gtk_paint_extension (notebook->style, widget->window, | |
28412 | GTK_STATE_NORMAL, GTK_SHADOW_OUT, | |
28413 | ((void *)0), widget, "tab", | |
28414 | 0, 0, | |
28415 | requisition.width, requisition.height, | |
28416 | gap_pos); | |
28417 | if (child) | |
28418 | IA__gtk_container_propagate_expose (((((GtkContainer*) ((widget))))), child, event); | |
28419 | ||
28420 | return (!(0)); | |
28421 | } | |
28422 | ||
28423 | static void | |
28424 | gtk_notebook_drag_begin (GtkWidget *widget, | |
28425 | GdkDragContext *context) | |
28426 | { | |
28427 | GtkNotebookPrivate *priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((widget)), ((IA__gtk_notebook_get_type ()))))); | |
28428 | GtkNotebook *notebook = (GtkNotebook*) widget; | |
28429 | GtkWidget *tab_label; | |
28430 | ||
28431 | if (priv->dnd_timer) | |
28432 | { | |
28433 | g_source_remove (priv->dnd_timer); | |
28434 | priv->dnd_timer = 0; | |
28435 | } | |
28436 | ||
28437 | priv->operation = DRAG_OPERATION_DETACH; | |
28438 | gtk_notebook_pages_allocate (notebook); | |
28439 | ||
28440 | tab_label = priv->detached_tab->tab_label; | |
28441 | ||
28442 | hide_drag_window (notebook, priv, notebook->cur_page); | |
28443 | g_object_ref (tab_label); | |
28444 | IA__gtk_widget_unparent (tab_label); | |
28445 | ||
28446 | priv->dnd_window = IA__gtk_window_new (GTK_WINDOW_POPUP); | |
28447 | IA__gtk_container_add (((((GtkContainer*) ((priv->dnd_window))))), tab_label); | |
28448 | IA__gtk_widget_set_size_request (priv->dnd_window, | |
28449 | priv->detached_tab->allocation.width, | |
28450 | priv->detached_tab->allocation.height); | |
28451 | g_object_unref (tab_label); | |
28452 | ||
28453 | g_signal_connect_data ((((((GObject*) ((priv->dnd_window)))))), ("expose-event"), (((GCallback) (on_drag_icon_expose))), (notebook), ((void *)0), (GConnectFlags) 0); | |
28454 | ||
28455 | ||
28456 | IA__gtk_drag_set_icon_widget (context, priv->dnd_window, -2, -2); | |
28457 | } | |
28458 | ||
28459 | static void | |
28460 | gtk_notebook_drag_end (GtkWidget *widget, | |
28461 | GdkDragContext *context) | |
28462 | { | |
28463 | GtkNotebookPrivate *priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((widget)), ((IA__gtk_notebook_get_type ()))))); | |
28464 | ||
28465 | gtk_notebook_stop_reorder (((((GtkNotebook*) ((widget)))))); | |
28466 | ||
28467 | if (priv->detached_tab) | |
28468 | gtk_notebook_switch_page (((((GtkNotebook*) ((widget))))), priv->detached_tab); | |
28469 | ||
28470 | ((((GtkBin*) ((priv->dnd_window)))))->child = ((void *)0); | |
28471 | IA__gtk_widget_destroy (priv->dnd_window); | |
28472 | priv->dnd_window = ((void *)0); | |
28473 | ||
28474 | priv->operation = DRAG_OPERATION_NONE; | |
28475 | } | |
28476 | ||
28477 | static GtkNotebook * | |
28478 | gtk_notebook_create_window (GtkNotebook *notebook, | |
28479 | GtkWidget *page, | |
28480 | gint x, | |
28481 | gint y) | |
28482 | { | |
28483 | if (window_creation_hook) | |
28484 | return (* window_creation_hook) (notebook, page, x, y, window_creation_hook_data); | |
28485 | ||
28486 | return ((void *)0); | |
28487 | } | |
28488 | ||
28489 | static gboolean | |
28490 | gtk_notebook_drag_failed (GtkWidget *widget, | |
28491 | GdkDragContext *context, | |
28492 | GtkDragResult result, | |
28493 | gpointer data) | |
28494 | { | |
28495 | if (result == GTK_DRAG_RESULT_NO_TARGET) | |
28496 | { | |
28497 | GtkNotebookPrivate *priv; | |
28498 | GtkNotebook *notebook, *dest_notebook = ((void *)0); | |
28499 | GdkDisplay *display; | |
28500 | gint x, y; | |
28501 | ||
28502 | notebook = ((((GtkNotebook*) ((widget))))); | |
28503 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
28504 | ||
28505 | display = IA__gtk_widget_get_display (widget); | |
28506 | gdk_display_get_pointer (display, ((void *)0), &x, &y, ((void *)0)); | |
28507 | ||
28508 | g_signal_emit (notebook, notebook_signals[CREATE_WINDOW], 0, | |
28509 | priv->detached_tab->child, x, y, &dest_notebook); | |
28510 | ||
28511 | if (dest_notebook) | |
28512 | do_detach_tab (notebook, dest_notebook, priv->detached_tab->child, 0, 0); | |
28513 | ||
28514 | return (!(0)); | |
28515 | } | |
28516 | ||
28517 | return (0); | |
28518 | } | |
28519 | ||
28520 | static gboolean | |
28521 | gtk_notebook_switch_tab_timeout (gpointer data) | |
28522 | { | |
28523 | GtkNotebook *notebook; | |
28524 | GtkNotebookPrivate *priv; | |
28525 | GList *tab; | |
28526 | gint x, y; | |
28527 | ||
28528 | notebook = ((((GtkNotebook*) ((data))))); | |
28529 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
28530 | ||
28531 | priv->switch_tab_timer = 0; | |
28532 | x = priv->mouse_x; | |
28533 | y = priv->mouse_y; | |
28534 | ||
28535 | if ((tab = get_tab_at_pos (notebook, x, y)) != ((void *)0)) | |
28536 | { | |
28537 | ||
28538 | ||
28539 | ||
28540 | notebook->child_has_focus = (0); | |
28541 | gtk_notebook_switch_focus_tab (notebook, tab); | |
28542 | } | |
28543 | ||
28544 | return (0); | |
28545 | } | |
28546 | ||
28547 | static gboolean | |
28548 | gtk_notebook_drag_motion (GtkWidget *widget, | |
28549 | GdkDragContext *context, | |
28550 | gint x, | |
28551 | gint y, | |
28552 | guint time) | |
28553 | { | |
28554 | GtkNotebook *notebook; | |
28555 | GtkNotebookPrivate *priv; | |
28556 | GdkRectangle position; | |
28557 | GtkSettings *settings; | |
28558 | GtkNotebookArrow arrow; | |
28559 | guint timeout; | |
28560 | GdkAtom target, tab_target; | |
28561 | ||
28562 | notebook = ((((GtkNotebook*) ((widget))))); | |
28563 | arrow = gtk_notebook_get_arrow (notebook, | |
28564 | x + widget->allocation.x, | |
28565 | y + widget->allocation.y); | |
28566 | if (arrow) | |
28567 | { | |
28568 | notebook->click_child = arrow; | |
28569 | gtk_notebook_set_scroll_timer (notebook); | |
28570 | gdk_drag_status (context, 0, time); | |
28571 | return (!(0)); | |
28572 | } | |
28573 | ||
28574 | stop_scrolling (notebook); | |
28575 | target = IA__gtk_drag_dest_find_target (widget, context, ((void *)0)); | |
28576 | tab_target = gdk_atom_intern_static_string ("GTK_NOTEBOOK_TAB"); | |
28577 | ||
28578 | if (target == tab_target) | |
28579 | { | |
28580 | gpointer widget_group, source_widget_group; | |
28581 | GtkWidget *source_widget; | |
28582 | ||
28583 | source_widget = IA__gtk_drag_get_source_widget (context); | |
28584 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (source_widget) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else g_assert_warning ("Gtk", "gtknotebook.c", 3342, __PRETTY_FUNCTION__, "source_widget"); }); | |
28585 | ||
28586 | widget_group = IA__gtk_notebook_get_group (notebook); | |
28587 | source_widget_group = IA__gtk_notebook_get_group (((((GtkNotebook*) ((source_widget)))))); | |
28588 | ||
28589 | if (widget_group && source_widget_group && | |
28590 | widget_group == source_widget_group && | |
28591 | !(widget == ((((GtkNotebook*) ((source_widget)))))->cur_page->child || | |
28592 | IA__gtk_widget_is_ancestor (widget, ((((GtkNotebook*) ((source_widget)))))->cur_page->child))) | |
28593 | { | |
28594 | gdk_drag_status (context, GDK_ACTION_MOVE, time); | |
28595 | return (!(0)); | |
28596 | } | |
28597 | else | |
28598 | { | |
28599 | ||
28600 | ||
28601 | gdk_drag_status (context, 0, time); | |
28602 | } | |
28603 | } | |
28604 | ||
28605 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((widget)), ((IA__gtk_notebook_get_type ()))))); | |
28606 | x += widget->allocation.x; | |
28607 | y += widget->allocation.y; | |
28608 | ||
28609 | if (gtk_notebook_get_event_window_position (notebook, &position) && | |
28610 | x >= position.x && x <= position.x + position.width && | |
28611 | y >= position.y && y <= position.y + position.height) | |
28612 | { | |
28613 | priv->mouse_x = x; | |
28614 | priv->mouse_y = y; | |
28615 | ||
28616 | if (!priv->switch_tab_timer) | |
28617 | { | |
28618 | settings = IA__gtk_widget_get_settings (widget); | |
28619 | ||
28620 | g_object_get (settings, "gtk-timeout-expand", &timeout, ((void *)0)); | |
28621 | priv->switch_tab_timer = gdk_threads_add_timeout (timeout, | |
28622 | gtk_notebook_switch_tab_timeout, | |
28623 | widget); | |
28624 | } | |
28625 | } | |
28626 | else | |
28627 | { | |
28628 | if (priv->switch_tab_timer) | |
28629 | { | |
28630 | g_source_remove (priv->switch_tab_timer); | |
28631 | priv->switch_tab_timer = 0; | |
28632 | } | |
28633 | } | |
28634 | ||
28635 | return (target == tab_target) ? (!(0)) : (0); | |
28636 | } | |
28637 | ||
28638 | static void | |
28639 | gtk_notebook_drag_leave (GtkWidget *widget, | |
28640 | GdkDragContext *context, | |
28641 | guint time) | |
28642 | { | |
28643 | GtkNotebookPrivate *priv; | |
28644 | ||
28645 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((widget)), ((IA__gtk_notebook_get_type ()))))); | |
28646 | ||
28647 | if (priv->switch_tab_timer) | |
28648 | { | |
28649 | g_source_remove (priv->switch_tab_timer); | |
28650 | priv->switch_tab_timer = 0; | |
28651 | } | |
28652 | ||
28653 | stop_scrolling (((((GtkNotebook*) ((widget)))))); | |
28654 | } | |
28655 | ||
28656 | static gboolean | |
28657 | gtk_notebook_drag_drop (GtkWidget *widget, | |
28658 | GdkDragContext *context, | |
28659 | gint x, | |
28660 | gint y, | |
28661 | guint time) | |
28662 | { | |
28663 | GdkAtom target, tab_target; | |
28664 | ||
28665 | target = IA__gtk_drag_dest_find_target (widget, context, ((void *)0)); | |
28666 | tab_target = gdk_atom_intern_static_string ("GTK_NOTEBOOK_TAB"); | |
28667 | ||
28668 | if (target == tab_target) | |
28669 | { | |
28670 | IA__gtk_drag_get_data (widget, context, target, time); | |
28671 | return (!(0)); | |
28672 | } | |
28673 | ||
28674 | return (0); | |
28675 | } | |
28676 | ||
28677 | static void | |
28678 | do_detach_tab (GtkNotebook *from, | |
28679 | GtkNotebook *to, | |
28680 | GtkWidget *child, | |
28681 | gint x, | |
28682 | gint y) | |
28683 | { | |
28684 | GtkNotebookPrivate *priv; | |
28685 | GtkWidget *tab_label, *menu_label; | |
28686 | gboolean tab_expand, tab_fill, reorderable, detachable; | |
28687 | GList *element; | |
28688 | guint tab_pack; | |
28689 | gint page_num; | |
28690 | ||
28691 | menu_label = IA__gtk_notebook_get_menu_label (from, child); | |
28692 | ||
28693 | if (menu_label) | |
28694 | g_object_ref (menu_label); | |
28695 | ||
28696 | tab_label = IA__gtk_notebook_get_tab_label (from, child); | |
28697 | ||
28698 | if (tab_label) | |
28699 | g_object_ref (tab_label); | |
28700 | ||
28701 | g_object_ref (child); | |
28702 | ||
28703 | IA__gtk_container_child_get (((((GtkContainer*) ((from))))), | |
28704 | child, | |
28705 | "tab-expand", &tab_expand, | |
28706 | "tab-fill", &tab_fill, | |
28707 | "tab-pack", &tab_pack, | |
28708 | "reorderable", &reorderable, | |
28709 | "detachable", &detachable, | |
28710 | ((void *)0)); | |
28711 | ||
28712 | IA__gtk_container_remove (((((GtkContainer*) ((from))))), child); | |
28713 | ||
28714 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((to)), ((IA__gtk_notebook_get_type ()))))); | |
28715 | priv->mouse_x = x + ((((GtkWidget*) ((to)))))->allocation.x; | |
28716 | priv->mouse_y = y + ((((GtkWidget*) ((to)))))->allocation.y; | |
28717 | ||
28718 | element = get_drop_position (to, tab_pack); | |
28719 | page_num = g_list_position (to->children, element); | |
28720 | IA__gtk_notebook_insert_page_menu (to, child, tab_label, menu_label, page_num); | |
28721 | ||
28722 | IA__gtk_container_child_set (((((GtkContainer*) ((to))))), child, | |
28723 | "tab-pack", tab_pack, | |
28724 | "tab-expand", tab_expand, | |
28725 | "tab-fill", tab_fill, | |
28726 | "reorderable", reorderable, | |
28727 | "detachable", detachable, | |
28728 | ((void *)0)); | |
28729 | if (child) | |
28730 | g_object_unref (child); | |
28731 | ||
28732 | if (tab_label) | |
28733 | g_object_unref (tab_label); | |
28734 | ||
28735 | if (menu_label) | |
28736 | g_object_unref (menu_label); | |
28737 | ||
28738 | IA__gtk_notebook_set_current_page (to, page_num); | |
28739 | } | |
28740 | ||
28741 | static void | |
28742 | gtk_notebook_drag_data_get (GtkWidget *widget, | |
28743 | GdkDragContext *context, | |
28744 | GtkSelectionData *data, | |
28745 | guint info, | |
28746 | guint time) | |
28747 | { | |
28748 | GtkNotebookPrivate *priv; | |
28749 | ||
28750 | if (data->target == gdk_atom_intern_static_string ("GTK_NOTEBOOK_TAB")) | |
28751 | { | |
28752 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((widget)), ((IA__gtk_notebook_get_type ()))))); | |
28753 | ||
28754 | IA__gtk_selection_data_set (data, | |
28755 | data->target, | |
28756 | 8, | |
28757 | (void*) &priv->detached_tab->child, | |
28758 | sizeof (gpointer)); | |
28759 | } | |
28760 | } | |
28761 | ||
28762 | static void | |
28763 | gtk_notebook_drag_data_received (GtkWidget *widget, | |
28764 | GdkDragContext *context, | |
28765 | gint x, | |
28766 | gint y, | |
28767 | GtkSelectionData *data, | |
28768 | guint info, | |
28769 | guint time) | |
28770 | { | |
28771 | GtkNotebook *notebook; | |
28772 | GtkWidget *source_widget; | |
28773 | GtkWidget **child; | |
28774 | ||
28775 | notebook = ((((GtkNotebook*) ((widget))))); | |
28776 | source_widget = IA__gtk_drag_get_source_widget (context); | |
28777 | ||
28778 | if (source_widget && | |
28779 | data->target == gdk_atom_intern_static_string ("GTK_NOTEBOOK_TAB")) | |
28780 | { | |
28781 | child = (void*) data->data; | |
28782 | ||
28783 | do_detach_tab (((((GtkNotebook*) ((source_widget))))), notebook, *child, x, y); | |
28784 | IA__gtk_drag_finish (context, (!(0)), (0), time); | |
28785 | } | |
28786 | else | |
28787 | IA__gtk_drag_finish (context, (0), (0), time); | |
28788 | } | |
28789 | # 3559 "gtknotebook.c" | |
28790 | static void | |
28791 | gtk_notebook_set_child_property (GtkContainer *container, | |
28792 | GtkWidget *child, | |
28793 | guint property_id, | |
28794 | const GValue *value, | |
28795 | GParamSpec *pspec) | |
28796 | { | |
28797 | gboolean expand; | |
28798 | gboolean fill; | |
28799 | GtkPackType pack_type; | |
28800 | ||
28801 | ||
28802 | if (!gtk_notebook_find_child (((((GtkNotebook*) ((container))))), child, ((void *)0))) | |
28803 | return; | |
28804 | ||
28805 | switch (property_id) | |
28806 | { | |
28807 | case CHILD_PROP_TAB_LABEL: | |
28808 | ||
28809 | ||
28810 | ||
28811 | IA__gtk_notebook_set_tab_label_text (((((GtkNotebook*) ((container))))), child, | |
28812 | g_value_get_string (value)); | |
28813 | break; | |
28814 | case CHILD_PROP_MENU_LABEL: | |
28815 | IA__gtk_notebook_set_menu_label_text (((((GtkNotebook*) ((container))))), child, | |
28816 | g_value_get_string (value)); | |
28817 | break; | |
28818 | case CHILD_PROP_POSITION: | |
28819 | IA__gtk_notebook_reorder_child (((((GtkNotebook*) ((container))))), child, | |
28820 | g_value_get_int (value)); | |
28821 | break; | |
28822 | case CHILD_PROP_TAB_EXPAND: | |
28823 | IA__gtk_notebook_query_tab_label_packing (((((GtkNotebook*) ((container))))), child, | |
28824 | &expand, &fill, &pack_type); | |
28825 | IA__gtk_notebook_set_tab_label_packing (((((GtkNotebook*) ((container))))), child, | |
28826 | g_value_get_boolean (value), | |
28827 | fill, pack_type); | |
28828 | break; | |
28829 | case CHILD_PROP_TAB_FILL: | |
28830 | IA__gtk_notebook_query_tab_label_packing (((((GtkNotebook*) ((container))))), child, | |
28831 | &expand, &fill, &pack_type); | |
28832 | IA__gtk_notebook_set_tab_label_packing (((((GtkNotebook*) ((container))))), child, | |
28833 | expand, | |
28834 | g_value_get_boolean (value), | |
28835 | pack_type); | |
28836 | break; | |
28837 | case CHILD_PROP_TAB_PACK: | |
28838 | IA__gtk_notebook_query_tab_label_packing (((((GtkNotebook*) ((container))))), child, | |
28839 | &expand, &fill, &pack_type); | |
28840 | IA__gtk_notebook_set_tab_label_packing (((((GtkNotebook*) ((container))))), child, | |
28841 | expand, fill, | |
28842 | g_value_get_enum (value)); | |
28843 | break; | |
28844 | case CHILD_PROP_REORDERABLE: | |
28845 | IA__gtk_notebook_set_tab_reorderable (((((GtkNotebook*) ((container))))), child, | |
28846 | g_value_get_boolean (value)); | |
28847 | break; | |
28848 | case CHILD_PROP_DETACHABLE: | |
28849 | IA__gtk_notebook_set_tab_detachable (((((GtkNotebook*) ((container))))), child, | |
28850 | g_value_get_boolean (value)); | |
28851 | break; | |
28852 | default: | |
28853 | (void) __extension__ ( { GObject *_object = (GObject*) ((container)); GParamSpec *_pspec = (GParamSpec*) ((pspec)); guint _property_id = ((property_id)); g_log ("Gtk", G_LOG_LEVEL_WARNING, "%s: invalid %s id %u for \"%s\" of type `%s' in `%s'", "gtknotebook.c" ":" "3622", ("child property id"), _property_id, _pspec->name, g_type_name ((((((GTypeClass*) (((GTypeInstance*) (_pspec))->g_class))->g_type)))), (g_type_name ((((((GTypeClass*) (((GTypeInstance*) (_object))->g_class))->g_type)))))); } ); | |
28854 | break; | |
28855 | } | |
28856 | } | |
28857 | ||
28858 | static void | |
28859 | gtk_notebook_get_child_property (GtkContainer *container, | |
28860 | GtkWidget *child, | |
28861 | guint property_id, | |
28862 | GValue *value, | |
28863 | GParamSpec *pspec) | |
28864 | { | |
28865 | GList *list; | |
28866 | GtkNotebook *notebook; | |
28867 | GtkWidget *label; | |
28868 | gboolean expand; | |
28869 | gboolean fill; | |
28870 | GtkPackType pack_type; | |
28871 | ||
28872 | notebook = ((((GtkNotebook*) ((container))))); | |
28873 | ||
28874 | ||
28875 | list = gtk_notebook_find_child (notebook, child, ((void *)0)); | |
28876 | if (!list) | |
28877 | { | |
28878 | ||
28879 | g_param_value_set_default (pspec, value); | |
28880 | return; | |
28881 | } | |
28882 | ||
28883 | switch (property_id) | |
28884 | { | |
28885 | case CHILD_PROP_TAB_LABEL: | |
28886 | label = IA__gtk_notebook_get_tab_label (notebook, child); | |
28887 | ||
28888 | if (label && (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((label)); GType __t = ((IA__gtk_label_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) | |
28889 | g_value_set_string (value, ((((GtkLabel*) ((label)))))->label); | |
28890 | else | |
28891 | g_value_set_string (value, ((void *)0)); | |
28892 | break; | |
28893 | case CHILD_PROP_MENU_LABEL: | |
28894 | label = IA__gtk_notebook_get_menu_label (notebook, child); | |
28895 | ||
28896 | if (label && (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((label)); GType __t = ((IA__gtk_label_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) | |
28897 | g_value_set_string (value, ((((GtkLabel*) ((label)))))->label); | |
28898 | else | |
28899 | g_value_set_string (value, ((void *)0)); | |
28900 | break; | |
28901 | case CHILD_PROP_POSITION: | |
28902 | g_value_set_int (value, g_list_position (notebook->children, list)); | |
28903 | break; | |
28904 | case CHILD_PROP_TAB_EXPAND: | |
28905 | IA__gtk_notebook_query_tab_label_packing (((((GtkNotebook*) ((container))))), child, | |
28906 | &expand, ((void *)0), ((void *)0)); | |
28907 | g_value_set_boolean (value, expand); | |
28908 | break; | |
28909 | case CHILD_PROP_TAB_FILL: | |
28910 | IA__gtk_notebook_query_tab_label_packing (((((GtkNotebook*) ((container))))), child, | |
28911 | ((void *)0), &fill, ((void *)0)); | |
28912 | g_value_set_boolean (value, fill); | |
28913 | break; | |
28914 | case CHILD_PROP_TAB_PACK: | |
28915 | IA__gtk_notebook_query_tab_label_packing (((((GtkNotebook*) ((container))))), child, | |
28916 | ((void *)0), ((void *)0), &pack_type); | |
28917 | g_value_set_enum (value, pack_type); | |
28918 | break; | |
28919 | case CHILD_PROP_REORDERABLE: | |
28920 | g_value_set_boolean (value, | |
28921 | IA__gtk_notebook_get_tab_reorderable (((((GtkNotebook*) ((container))))), child)); | |
28922 | break; | |
28923 | case CHILD_PROP_DETACHABLE: | |
28924 | g_value_set_boolean (value, | |
28925 | IA__gtk_notebook_get_tab_detachable (((((GtkNotebook*) ((container))))), child)); | |
28926 | break; | |
28927 | default: | |
28928 | (void) __extension__ ( { GObject *_object = (GObject*) ((container)); GParamSpec *_pspec = (GParamSpec*) ((pspec)); guint _property_id = ((property_id)); g_log ("Gtk", G_LOG_LEVEL_WARNING, "%s: invalid %s id %u for \"%s\" of type `%s' in `%s'", "gtknotebook.c" ":" "3697", ("child property id"), _property_id, _pspec->name, g_type_name ((((((GTypeClass*) (((GTypeInstance*) (_pspec))->g_class))->g_type)))), (g_type_name ((((((GTypeClass*) (((GTypeInstance*) (_object))->g_class))->g_type)))))); } ); | |
28929 | break; | |
28930 | } | |
28931 | } | |
28932 | ||
28933 | static void | |
28934 | gtk_notebook_add (GtkContainer *container, | |
28935 | GtkWidget *widget) | |
28936 | { | |
28937 | IA__gtk_notebook_insert_page_menu (((((GtkNotebook*) ((container))))), widget, | |
28938 | ((void *)0), ((void *)0), -1); | |
28939 | } | |
28940 | ||
28941 | static void | |
28942 | gtk_notebook_remove (GtkContainer *container, | |
28943 | GtkWidget *widget) | |
28944 | { | |
28945 | GtkNotebook *notebook; | |
28946 | GtkNotebookPage *page; | |
28947 | GList *children; | |
28948 | gint page_num = 0; | |
28949 | ||
28950 | notebook = ((((GtkNotebook*) ((container))))); | |
28951 | ||
28952 | children = notebook->children; | |
28953 | while (children) | |
28954 | { | |
28955 | page = children->data; | |
28956 | ||
28957 | if (page->child == widget) | |
28958 | break; | |
28959 | ||
28960 | page_num++; | |
28961 | children = children->next; | |
28962 | } | |
28963 | ||
28964 | if (children == ((void *)0)) | |
28965 | return; | |
28966 | ||
28967 | g_object_ref (widget); | |
28968 | ||
28969 | gtk_notebook_real_remove (notebook, children); | |
28970 | ||
28971 | g_signal_emit (notebook, | |
28972 | notebook_signals[PAGE_REMOVED], | |
28973 | 0, | |
28974 | widget, | |
28975 | page_num); | |
28976 | ||
28977 | g_object_unref (widget); | |
28978 | } | |
28979 | ||
28980 | static gboolean | |
28981 | focus_tabs_in (GtkNotebook *notebook) | |
28982 | { | |
28983 | if (notebook->show_tabs && notebook->cur_page) | |
28984 | { | |
28985 | IA__gtk_widget_grab_focus (((((GtkWidget*) ((notebook)))))); | |
28986 | ||
28987 | gtk_notebook_switch_focus_tab (notebook, | |
28988 | g_list_find (notebook->children, | |
28989 | notebook->cur_page)); | |
28990 | ||
28991 | return (!(0)); | |
28992 | } | |
28993 | else | |
28994 | return (0); | |
28995 | } | |
28996 | ||
28997 | static gboolean | |
28998 | focus_tabs_move (GtkNotebook *notebook, | |
28999 | GtkDirectionType direction, | |
29000 | gint search_direction) | |
29001 | { | |
29002 | GList *new_page; | |
29003 | ||
29004 | new_page = gtk_notebook_search_page (notebook, notebook->focus_tab, | |
29005 | search_direction, (!(0))); | |
29006 | if (!new_page) | |
29007 | { | |
29008 | gboolean wrap_around; | |
29009 | ||
29010 | g_object_get (IA__gtk_widget_get_settings (((((GtkWidget*) ((notebook)))))), | |
29011 | "gtk-keynav-wrap-around", &wrap_around, | |
29012 | ((void *)0)); | |
29013 | ||
29014 | if (wrap_around) | |
29015 | new_page = gtk_notebook_search_page (notebook, ((void *)0), | |
29016 | search_direction, (!(0))); | |
29017 | } | |
29018 | ||
29019 | if (new_page) | |
29020 | gtk_notebook_switch_focus_tab (notebook, new_page); | |
29021 | else | |
29022 | IA__gtk_widget_error_bell (((((GtkWidget*) ((notebook)))))); | |
29023 | ||
29024 | return (!(0)); | |
29025 | } | |
29026 | ||
29027 | static gboolean | |
29028 | focus_child_in (GtkNotebook *notebook, | |
29029 | GtkDirectionType direction) | |
29030 | { | |
29031 | if (notebook->cur_page) | |
29032 | return IA__gtk_widget_child_focus (notebook->cur_page->child, direction); | |
29033 | else | |
29034 | return (0); | |
29035 | } | |
29036 | ||
29037 | ||
29038 | ||
29039 | ||
29040 | static gint | |
29041 | gtk_notebook_focus (GtkWidget *widget, | |
29042 | GtkDirectionType direction) | |
29043 | { | |
29044 | GtkWidget *old_focus_child; | |
29045 | GtkNotebook *notebook; | |
29046 | GtkDirectionType effective_direction; | |
29047 | ||
29048 | gboolean widget_is_focus; | |
29049 | GtkContainer *container; | |
29050 | ||
29051 | container = ((((GtkContainer*) ((widget))))); | |
29052 | notebook = ((((GtkNotebook*) ((container))))); | |
29053 | ||
29054 | if (notebook->focus_out) | |
29055 | { | |
29056 | notebook->focus_out = (0); | |
29057 | return (0); | |
29058 | } | |
29059 | ||
29060 | widget_is_focus = IA__gtk_widget_is_focus (widget); | |
29061 | old_focus_child = container->focus_child; | |
29062 | ||
29063 | effective_direction = get_effective_direction (notebook, direction); | |
29064 | ||
29065 | if (old_focus_child) | |
29066 | { | |
29067 | if (IA__gtk_widget_child_focus (old_focus_child, direction)) | |
29068 | return (!(0)); | |
29069 | ||
29070 | switch (effective_direction) | |
29071 | { | |
29072 | case GTK_DIR_TAB_BACKWARD: | |
29073 | case GTK_DIR_UP: | |
29074 | ||
29075 | return focus_tabs_in (notebook); | |
29076 | case GTK_DIR_DOWN: | |
29077 | case GTK_DIR_TAB_FORWARD: | |
29078 | case GTK_DIR_LEFT: | |
29079 | case GTK_DIR_RIGHT: | |
29080 | return (0); | |
29081 | } | |
29082 | } | |
29083 | else if (widget_is_focus) | |
29084 | { | |
29085 | switch (effective_direction) | |
29086 | { | |
29087 | case GTK_DIR_TAB_BACKWARD: | |
29088 | case GTK_DIR_UP: | |
29089 | return (0); | |
29090 | case GTK_DIR_TAB_FORWARD: | |
29091 | case GTK_DIR_DOWN: | |
29092 | ||
29093 | ||
29094 | ||
29095 | ||
29096 | return focus_child_in (notebook, GTK_DIR_TAB_FORWARD); | |
29097 | case GTK_DIR_LEFT: | |
29098 | return focus_tabs_move (notebook, direction, STEP_PREV); | |
29099 | case GTK_DIR_RIGHT: | |
29100 | return focus_tabs_move (notebook, direction, STEP_NEXT); | |
29101 | } | |
29102 | } | |
29103 | else | |
29104 | { | |
29105 | switch (effective_direction) | |
29106 | { | |
29107 | case GTK_DIR_TAB_FORWARD: | |
29108 | case GTK_DIR_DOWN: | |
29109 | if (focus_tabs_in (notebook)) | |
29110 | return (!(0)); | |
29111 | if (focus_child_in (notebook, direction)) | |
29112 | return (!(0)); | |
29113 | return (0); | |
29114 | case GTK_DIR_TAB_BACKWARD: | |
29115 | case GTK_DIR_UP: | |
29116 | if (focus_child_in (notebook, direction)) | |
29117 | return (!(0)); | |
29118 | if (focus_tabs_in (notebook)) | |
29119 | return (!(0)); | |
29120 | return (0); | |
29121 | case GTK_DIR_LEFT: | |
29122 | case GTK_DIR_RIGHT: | |
29123 | return focus_child_in (notebook, direction); | |
29124 | } | |
29125 | } | |
29126 | ||
29127 | (void) __extension__ ({ g_assert_warning ("Gtk", "gtknotebook.c", 3896, __PRETTY_FUNCTION__, ((void *)0)); }); | |
29128 | return (0); | |
29129 | } | |
29130 | ||
29131 | static void | |
29132 | gtk_notebook_set_focus_child (GtkContainer *container, | |
29133 | GtkWidget *child) | |
29134 | { | |
29135 | GtkNotebook *notebook = ((((GtkNotebook*) ((container))))); | |
29136 | GtkWidget *page_child; | |
29137 | GtkWidget *toplevel; | |
29138 | ||
29139 | ||
29140 | ||
29141 | ||
29142 | ||
29143 | ||
29144 | toplevel = IA__gtk_widget_get_toplevel (((((GtkWidget*) ((container)))))); | |
29145 | if (toplevel && ((((((((GtkObject*) ((toplevel)))))->flags)) & GTK_TOPLEVEL) != 0)) | |
29146 | { | |
29147 | page_child = ((((GtkWindow*) ((toplevel)))))->focus_widget; | |
29148 | while (page_child) | |
29149 | { | |
29150 | if (page_child->parent == ((((GtkWidget*) ((container)))))) | |
29151 | { | |
29152 | GList *list = gtk_notebook_find_child (notebook, page_child, ((void *)0)); | |
29153 | if (list != ((void *)0)) | |
29154 | { | |
29155 | GtkNotebookPage *page = list->data; | |
29156 | ||
29157 | if (page->last_focus_child) | |
29158 | g_object_remove_weak_pointer (((((GObject*) ((page->last_focus_child))))), (gpointer *)&page->last_focus_child); | |
29159 | ||
29160 | page->last_focus_child = ((((GtkWindow*) ((toplevel)))))->focus_widget; | |
29161 | g_object_add_weak_pointer (((((GObject*) ((page->last_focus_child))))), (gpointer *)&page->last_focus_child); | |
29162 | ||
29163 | break; | |
29164 | } | |
29165 | } | |
29166 | ||
29167 | page_child = page_child->parent; | |
29168 | } | |
29169 | } | |
29170 | ||
29171 | if (child) | |
29172 | { | |
29173 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return; }; }); | |
29174 | ||
29175 | notebook->child_has_focus = (!(0)); | |
29176 | if (!notebook->focus_tab) | |
29177 | { | |
29178 | GList *children; | |
29179 | GtkNotebookPage *page; | |
29180 | ||
29181 | children = notebook->children; | |
29182 | while (children) | |
29183 | { | |
29184 | page = children->data; | |
29185 | if (page->child == child || page->tab_label == child) | |
29186 | gtk_notebook_switch_focus_tab (notebook, children); | |
29187 | children = children->next; | |
29188 | } | |
29189 | } | |
29190 | } | |
29191 | ||
29192 | ((((GtkContainerClass*) ((gtk_notebook_parent_class)))))->set_focus_child (container, child); | |
29193 | } | |
29194 | ||
29195 | static void | |
29196 | gtk_notebook_forall (GtkContainer *container, | |
29197 | gboolean include_internals, | |
29198 | GtkCallback callback, | |
29199 | gpointer callback_data) | |
29200 | { | |
29201 | GtkNotebook *notebook; | |
29202 | GList *children; | |
29203 | ||
29204 | notebook = ((((GtkNotebook*) ((container))))); | |
29205 | ||
29206 | children = notebook->children; | |
29207 | while (children) | |
29208 | { | |
29209 | GtkNotebookPage *page; | |
29210 | ||
29211 | page = children->data; | |
29212 | children = children->next; | |
29213 | (* callback) (page->child, callback_data); | |
29214 | ||
29215 | if (include_internals) | |
29216 | { | |
29217 | if (page->tab_label) | |
29218 | (* callback) (page->tab_label, callback_data); | |
29219 | } | |
29220 | } | |
29221 | } | |
29222 | ||
29223 | static GType | |
29224 | gtk_notebook_child_type (GtkContainer *container) | |
29225 | { | |
29226 | return (IA__gtk_widget_get_type ()); | |
29227 | } | |
29228 | ||
29229 | ||
29230 | ||
29231 | ||
29232 | ||
29233 | static void | |
29234 | page_visible_cb (GtkWidget *page, | |
29235 | GParamSpec *arg, | |
29236 | gpointer data) | |
29237 | { | |
29238 | GtkNotebook *notebook = (GtkNotebook *) data; | |
29239 | GList *list; | |
29240 | GList *next = ((void *)0); | |
29241 | ||
29242 | if (notebook->cur_page && | |
29243 | notebook->cur_page->child == page && | |
29244 | !((((((((GtkObject*) ((page)))))->flags)) & GTK_VISIBLE) != 0)) | |
29245 | { | |
29246 | list = g_list_find (notebook->children, notebook->cur_page); | |
29247 | if (list) | |
29248 | { | |
29249 | next = gtk_notebook_search_page (notebook, list, STEP_NEXT, (!(0))); | |
29250 | if (!next) | |
29251 | next = gtk_notebook_search_page (notebook, list, STEP_PREV, (!(0))); | |
29252 | } | |
29253 | ||
29254 | if (next) | |
29255 | gtk_notebook_switch_page (notebook, ((GtkNotebookPage *)((GList *)(next))->data)); | |
29256 | } | |
29257 | } | |
29258 | ||
29259 | static gint | |
29260 | gtk_notebook_real_insert_page (GtkNotebook *notebook, | |
29261 | GtkWidget *child, | |
29262 | GtkWidget *tab_label, | |
29263 | GtkWidget *menu_label, | |
29264 | gint position) | |
29265 | { | |
29266 | GtkNotebookPage *page; | |
29267 | gint nchildren; | |
29268 | ||
29269 | IA__gtk_widget_freeze_child_notify (child); | |
29270 | ||
29271 | page = ((GtkNotebookPage *) g_malloc0 (((gsize) sizeof (GtkNotebookPage)) * ((gsize) (1)))); | |
29272 | page->child = child; | |
29273 | ||
29274 | nchildren = g_list_length (notebook->children); | |
29275 | if ((position < 0) || (position > nchildren)) | |
29276 | position = nchildren; | |
29277 | ||
29278 | notebook->children = g_list_insert (notebook->children, page, position); | |
29279 | ||
29280 | if (!tab_label) | |
29281 | { | |
29282 | page->default_tab = (!(0)); | |
29283 | if (notebook->show_tabs) | |
29284 | tab_label = IA__gtk_label_new (((void *)0)); | |
29285 | } | |
29286 | page->tab_label = tab_label; | |
29287 | page->menu_label = menu_label; | |
29288 | page->expand = (0); | |
29289 | page->fill = (!(0)); | |
29290 | page->pack = GTK_PACK_START; | |
29291 | ||
29292 | if (!menu_label) | |
29293 | page->default_menu = (!(0)); | |
29294 | else | |
29295 | g_object_ref_sink (page->menu_label); | |
29296 | ||
29297 | if (notebook->menu) | |
29298 | gtk_notebook_menu_item_create (notebook, | |
29299 | g_list_find (notebook->children, page)); | |
29300 | ||
29301 | IA__gtk_widget_set_parent (child, ((((GtkWidget*) ((notebook)))))); | |
29302 | if (tab_label) | |
29303 | IA__gtk_widget_set_parent (tab_label, ((((GtkWidget*) ((notebook)))))); | |
29304 | ||
29305 | gtk_notebook_update_labels (notebook); | |
29306 | ||
29307 | if (!notebook->first_tab) | |
29308 | notebook->first_tab = notebook->children; | |
29309 | ||
29310 | ||
29311 | if (notebook->cur_page != page) | |
29312 | IA__gtk_widget_set_child_visible (child, (0)); | |
29313 | ||
29314 | if (tab_label) | |
29315 | { | |
29316 | if (notebook->show_tabs && ((((((((GtkObject*) ((child)))))->flags)) & GTK_VISIBLE) != 0)) | |
29317 | IA__gtk_widget_show (tab_label); | |
29318 | else | |
29319 | IA__gtk_widget_hide (tab_label); | |
29320 | ||
29321 | page->mnemonic_activate_signal = | |
29322 | g_signal_connect_data ((tab_label), ("mnemonic_activate"), (((GCallback) (gtk_notebook_mnemonic_activate_switch_page))), (notebook), ((void *)0), (GConnectFlags) 0); | |
29323 | ||
29324 | ||
29325 | ||
29326 | } | |
29327 | ||
29328 | page->notify_visible_handler = g_signal_connect_data ((child), ("notify::visible"), (((GCallback) (page_visible_cb))), (notebook), ((void *)0), (GConnectFlags) 0); | |
29329 | ||
29330 | ||
29331 | g_signal_emit (notebook, | |
29332 | notebook_signals[PAGE_ADDED], | |
29333 | 0, | |
29334 | child, | |
29335 | position); | |
29336 | ||
29337 | if (!notebook->cur_page) | |
29338 | { | |
29339 | gtk_notebook_switch_page (notebook, page); | |
29340 | ||
29341 | gtk_notebook_switch_focus_tab (notebook, notebook->focus_tab); | |
29342 | } | |
29343 | ||
29344 | gtk_notebook_update_tab_states (notebook); | |
29345 | ||
29346 | IA__gtk_widget_child_notify (child, "tab-expand"); | |
29347 | IA__gtk_widget_child_notify (child, "tab-fill"); | |
29348 | IA__gtk_widget_child_notify (child, "tab-pack"); | |
29349 | IA__gtk_widget_child_notify (child, "tab-label"); | |
29350 | IA__gtk_widget_child_notify (child, "menu-label"); | |
29351 | IA__gtk_widget_child_notify (child, "position"); | |
29352 | IA__gtk_widget_thaw_child_notify (child); | |
29353 | ||
29354 | ||
29355 | return IA__gtk_notebook_page_num (notebook, child); | |
29356 | } | |
29357 | # 4138 "gtknotebook.c" | |
29358 | static void | |
29359 | gtk_notebook_redraw_tabs (GtkNotebook *notebook) | |
29360 | { | |
29361 | GtkWidget *widget; | |
29362 | GtkNotebookPage *page; | |
29363 | GdkRectangle redraw_rect; | |
29364 | gint border; | |
29365 | gint tab_pos = get_effective_tab_pos (notebook); | |
29366 | ||
29367 | widget = ((((GtkWidget*) ((notebook))))); | |
29368 | border = ((((GtkContainer*) ((notebook)))))->border_width; | |
29369 | ||
29370 | if (!((((((((GtkObject*) ((notebook)))))->flags)) & GTK_MAPPED) != 0) || !notebook->first_tab) | |
29371 | return; | |
29372 | ||
29373 | page = notebook->first_tab->data; | |
29374 | ||
29375 | redraw_rect.x = border; | |
29376 | redraw_rect.y = border; | |
29377 | ||
29378 | switch (tab_pos) | |
29379 | { | |
29380 | case GTK_POS_BOTTOM: | |
29381 | redraw_rect.y = widget->allocation.height - border - | |
29382 | page->allocation.height - widget->style->ythickness; | |
29383 | ||
29384 | if (page != notebook->cur_page) | |
29385 | redraw_rect.y -= widget->style->ythickness; | |
29386 | ||
29387 | case GTK_POS_TOP: | |
29388 | redraw_rect.width = widget->allocation.width - 2 * border; | |
29389 | redraw_rect.height = page->allocation.height + widget->style->ythickness; | |
29390 | ||
29391 | if (page != notebook->cur_page) | |
29392 | redraw_rect.height += widget->style->ythickness; | |
29393 | break; | |
29394 | case GTK_POS_RIGHT: | |
29395 | redraw_rect.x = widget->allocation.width - border - | |
29396 | page->allocation.width - widget->style->xthickness; | |
29397 | ||
29398 | if (page != notebook->cur_page) | |
29399 | redraw_rect.x -= widget->style->xthickness; | |
29400 | ||
29401 | case GTK_POS_LEFT: | |
29402 | redraw_rect.width = page->allocation.width + widget->style->xthickness; | |
29403 | redraw_rect.height = widget->allocation.height - 2 * border; | |
29404 | ||
29405 | if (page != notebook->cur_page) | |
29406 | redraw_rect.width += widget->style->xthickness; | |
29407 | break; | |
29408 | } | |
29409 | ||
29410 | redraw_rect.x += widget->allocation.x; | |
29411 | redraw_rect.y += widget->allocation.y; | |
29412 | ||
29413 | gdk_window_invalidate_rect (widget->window, &redraw_rect, (!(0))); | |
29414 | } | |
29415 | ||
29416 | static void | |
29417 | gtk_notebook_redraw_arrows (GtkNotebook *notebook) | |
29418 | { | |
29419 | if (((((((((GtkObject*) ((notebook)))))->flags)) & GTK_MAPPED) != 0) && gtk_notebook_show_arrows (notebook)) | |
29420 | { | |
29421 | GdkRectangle rect; | |
29422 | gint i; | |
29423 | GtkNotebookArrow arrow[4]; | |
29424 | ||
29425 | arrow[0] = notebook->has_before_previous ? ARROW_LEFT_BEFORE : ARROW_NONE; | |
29426 | arrow[1] = notebook->has_before_next ? ARROW_RIGHT_BEFORE : ARROW_NONE; | |
29427 | arrow[2] = notebook->has_after_previous ? ARROW_LEFT_AFTER : ARROW_NONE; | |
29428 | arrow[3] = notebook->has_after_next ? ARROW_RIGHT_AFTER : ARROW_NONE; | |
29429 | ||
29430 | for (i = 0; i < 4; i++) | |
29431 | { | |
29432 | if (arrow[i] == ARROW_NONE) | |
29433 | continue; | |
29434 | ||
29435 | gtk_notebook_get_arrow_rect (notebook, &rect, arrow[i]); | |
29436 | gdk_window_invalidate_rect (((((GtkWidget*) ((notebook)))))->window, | |
29437 | &rect, (0)); | |
29438 | } | |
29439 | } | |
29440 | } | |
29441 | ||
29442 | static gboolean | |
29443 | gtk_notebook_timer (GtkNotebook *notebook) | |
29444 | { | |
29445 | gboolean retval = (0); | |
29446 | ||
29447 | if (notebook->timer) | |
29448 | { | |
29449 | gtk_notebook_do_arrow (notebook, notebook->click_child); | |
29450 | ||
29451 | if (notebook->need_timer) | |
29452 | { | |
29453 | GtkSettings *settings; | |
29454 | guint timeout; | |
29455 | ||
29456 | settings = IA__gtk_widget_get_settings (((((GtkWidget*) ((notebook)))))); | |
29457 | g_object_get (settings, "gtk-timeout-repeat", &timeout, ((void *)0)); | |
29458 | ||
29459 | notebook->need_timer = (0); | |
29460 | notebook->timer = gdk_threads_add_timeout (timeout * 5, | |
29461 | (GSourceFunc) gtk_notebook_timer, | |
29462 | (gpointer) notebook); | |
29463 | } | |
29464 | else | |
29465 | retval = (!(0)); | |
29466 | } | |
29467 | ||
29468 | return retval; | |
29469 | } | |
29470 | ||
29471 | static void | |
29472 | gtk_notebook_set_scroll_timer (GtkNotebook *notebook) | |
29473 | { | |
29474 | GtkWidget *widget = ((((GtkWidget*) ((notebook))))); | |
29475 | ||
29476 | if (!notebook->timer) | |
29477 | { | |
29478 | GtkSettings *settings = IA__gtk_widget_get_settings (widget); | |
29479 | guint timeout; | |
29480 | ||
29481 | g_object_get (settings, "gtk-timeout-initial", &timeout, ((void *)0)); | |
29482 | ||
29483 | notebook->timer = gdk_threads_add_timeout (timeout, | |
29484 | (GSourceFunc) gtk_notebook_timer, | |
29485 | (gpointer) notebook); | |
29486 | notebook->need_timer = (!(0)); | |
29487 | } | |
29488 | } | |
29489 | ||
29490 | static gint | |
29491 | gtk_notebook_page_compare (gconstpointer a, | |
29492 | gconstpointer b) | |
29493 | { | |
29494 | return (((GtkNotebookPage *) a)->child != b); | |
29495 | } | |
29496 | ||
29497 | static GList* | |
29498 | gtk_notebook_find_child (GtkNotebook *notebook, | |
29499 | GtkWidget *child, | |
29500 | const gchar *function) | |
29501 | { | |
29502 | GList *list = g_list_find_custom (notebook->children, child, | |
29503 | gtk_notebook_page_compare); | |
29504 | ||
29505 | ||
29506 | if (!list && function) | |
29507 | g_log ("Gtk", G_LOG_LEVEL_WARNING, "%s: unable to find child %p in notebook %p", function, child, notebook); | |
29508 | ||
29509 | ||
29510 | ||
29511 | return list; | |
29512 | } | |
29513 | ||
29514 | static void | |
29515 | gtk_notebook_remove_tab_label (GtkNotebook *notebook, | |
29516 | GtkNotebookPage *page) | |
29517 | { | |
29518 | if (page->tab_label) | |
29519 | { | |
29520 | if (page->mnemonic_activate_signal) | |
29521 | g_signal_handler_disconnect (page->tab_label, | |
29522 | page->mnemonic_activate_signal); | |
29523 | page->mnemonic_activate_signal = 0; | |
29524 | ||
29525 | IA__gtk_widget_set_state (page->tab_label, GTK_STATE_NORMAL); | |
29526 | IA__gtk_widget_unparent (page->tab_label); | |
29527 | page->tab_label = ((void *)0); | |
29528 | } | |
29529 | } | |
29530 | ||
29531 | static void | |
29532 | gtk_notebook_real_remove (GtkNotebook *notebook, | |
29533 | GList *list) | |
29534 | { | |
29535 | GtkNotebookPrivate *priv; | |
29536 | GtkNotebookPage *page; | |
29537 | GList * next_list; | |
29538 | gint need_resize = (0); | |
29539 | GtkWidget *tab_label; | |
29540 | ||
29541 | gboolean destroying; | |
29542 | ||
29543 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
29544 | destroying = (((((GtkObject*) ((notebook)))))->flags) & GTK_IN_DESTRUCTION; | |
29545 | ||
29546 | next_list = gtk_notebook_search_page (notebook, list, STEP_PREV, (!(0))); | |
29547 | if (!next_list) | |
29548 | next_list = gtk_notebook_search_page (notebook, list, STEP_NEXT, (!(0))); | |
29549 | ||
29550 | if (notebook->cur_page == list->data) | |
29551 | { | |
29552 | notebook->cur_page = ((void *)0); | |
29553 | if (next_list && !destroying) | |
29554 | gtk_notebook_switch_page (notebook, ((GtkNotebookPage *)((GList *)(next_list))->data)); | |
29555 | } | |
29556 | ||
29557 | if (priv->detached_tab == list->data) | |
29558 | priv->detached_tab = ((void *)0); | |
29559 | ||
29560 | if (list == notebook->first_tab) | |
29561 | notebook->first_tab = next_list; | |
29562 | if (list == notebook->focus_tab && !destroying) | |
29563 | gtk_notebook_switch_focus_tab (notebook, next_list); | |
29564 | ||
29565 | page = list->data; | |
29566 | ||
29567 | g_signal_handler_disconnect (page->child, page->notify_visible_handler); | |
29568 | ||
29569 | if (((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0) && ((((((((GtkObject*) ((notebook)))))->flags)) & GTK_VISIBLE) != 0)) | |
29570 | need_resize = (!(0)); | |
29571 | ||
29572 | IA__gtk_widget_unparent (page->child); | |
29573 | ||
29574 | tab_label = page->tab_label; | |
29575 | if (tab_label) | |
29576 | { | |
29577 | g_object_ref (tab_label); | |
29578 | gtk_notebook_remove_tab_label (notebook, page); | |
29579 | if (destroying) | |
29580 | IA__gtk_widget_destroy (tab_label); | |
29581 | g_object_unref (tab_label); | |
29582 | } | |
29583 | ||
29584 | if (notebook->menu) | |
29585 | { | |
29586 | IA__gtk_container_remove (((((GtkContainer*) ((notebook->menu))))), | |
29587 | page->menu_label->parent); | |
29588 | IA__gtk_widget_queue_resize (notebook->menu); | |
29589 | } | |
29590 | if (!page->default_menu) | |
29591 | g_object_unref (page->menu_label); | |
29592 | ||
29593 | notebook->children = g_list_remove_link (notebook->children, list); | |
29594 | g_list_free (list); | |
29595 | ||
29596 | if (page->last_focus_child) | |
29597 | { | |
29598 | g_object_remove_weak_pointer (((((GObject*) ((page->last_focus_child))))), (gpointer *)&page->last_focus_child); | |
29599 | page->last_focus_child = ((void *)0); | |
29600 | } | |
29601 | ||
29602 | g_free (page); | |
29603 | ||
29604 | gtk_notebook_update_labels (notebook); | |
29605 | if (need_resize) | |
29606 | IA__gtk_widget_queue_resize (((((GtkWidget*) ((notebook)))))); | |
29607 | } | |
29608 | ||
29609 | static void | |
29610 | gtk_notebook_update_labels (GtkNotebook *notebook) | |
29611 | { | |
29612 | GtkNotebookPage *page; | |
29613 | GList *list; | |
29614 | gchar string[32]; | |
29615 | gint page_num = 1; | |
29616 | ||
29617 | if (!notebook->show_tabs && !notebook->menu) | |
29618 | return; | |
29619 | ||
29620 | for (list = gtk_notebook_search_page (notebook, ((void *)0), STEP_NEXT, (0)); | |
29621 | list; | |
29622 | list = gtk_notebook_search_page (notebook, list, STEP_NEXT, (0))) | |
29623 | { | |
29624 | page = list->data; | |
29625 | g_snprintf (string, sizeof(string), dcgettext ("gtk20", "Page %u", __LC_MESSAGES), page_num++); | |
29626 | if (notebook->show_tabs) | |
29627 | { | |
29628 | if (page->default_tab) | |
29629 | { | |
29630 | if (!page->tab_label) | |
29631 | { | |
29632 | page->tab_label = IA__gtk_label_new (string); | |
29633 | IA__gtk_widget_set_parent (page->tab_label, | |
29634 | ((((GtkWidget*) ((notebook)))))); | |
29635 | } | |
29636 | else | |
29637 | IA__gtk_label_set_text (((((GtkLabel*) ((page->tab_label))))), string); | |
29638 | } | |
29639 | ||
29640 | if (((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0) && | |
29641 | !((((((((GtkObject*) ((page->tab_label)))))->flags)) & GTK_VISIBLE) != 0)) | |
29642 | IA__gtk_widget_show (page->tab_label); | |
29643 | else if (!((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0) && | |
29644 | ((((((((GtkObject*) ((page->tab_label)))))->flags)) & GTK_VISIBLE) != 0)) | |
29645 | IA__gtk_widget_hide (page->tab_label); | |
29646 | } | |
29647 | if (notebook->menu && page->default_menu) | |
29648 | { | |
29649 | if (page->tab_label && (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((page->tab_label)); GType __t = ((IA__gtk_label_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) | |
29650 | IA__gtk_label_set_text (((((GtkLabel*) ((page->menu_label))))), | |
29651 | ((((GtkLabel*) ((page->tab_label)))))->label); | |
29652 | else | |
29653 | IA__gtk_label_set_text (((((GtkLabel*) ((page->menu_label))))), string); | |
29654 | } | |
29655 | } | |
29656 | } | |
29657 | ||
29658 | static gint | |
29659 | gtk_notebook_real_page_position (GtkNotebook *notebook, | |
29660 | GList *list) | |
29661 | { | |
29662 | GList *work; | |
29663 | gint count_start; | |
29664 | ||
29665 | for (work = notebook->children, count_start = 0; | |
29666 | work && work != list; work = work->next) | |
29667 | if (((GtkNotebookPage *)((GList *)(work))->data)->pack == GTK_PACK_START) | |
29668 | count_start++; | |
29669 | ||
29670 | if (!work) | |
29671 | return -1; | |
29672 | ||
29673 | if (((GtkNotebookPage *)((GList *)(list))->data)->pack == GTK_PACK_START) | |
29674 | return count_start; | |
29675 | ||
29676 | return (count_start + g_list_length (list) - 1); | |
29677 | } | |
29678 | ||
29679 | static GList * | |
29680 | gtk_notebook_search_page (GtkNotebook *notebook, | |
29681 | GList *list, | |
29682 | gint direction, | |
29683 | gboolean find_visible) | |
29684 | { | |
29685 | GtkNotebookPage *page = ((void *)0); | |
29686 | GList *old_list = ((void *)0); | |
29687 | gint flag = 0; | |
29688 | ||
29689 | switch (direction) | |
29690 | { | |
29691 | case STEP_PREV: | |
29692 | flag = GTK_PACK_END; | |
29693 | break; | |
29694 | ||
29695 | case STEP_NEXT: | |
29696 | flag = GTK_PACK_START; | |
29697 | break; | |
29698 | } | |
29699 | ||
29700 | if (list) | |
29701 | page = list->data; | |
29702 | ||
29703 | if (!page || page->pack == flag) | |
29704 | { | |
29705 | if (list) | |
29706 | { | |
29707 | old_list = list; | |
29708 | list = list->next; | |
29709 | } | |
29710 | else | |
29711 | list = notebook->children; | |
29712 | ||
29713 | while (list) | |
29714 | { | |
29715 | page = list->data; | |
29716 | if (page->pack == flag && | |
29717 | (!find_visible || | |
29718 | (((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0) && | |
29719 | (!page->tab_label || (((GtkNotebookPage *) (page))->tab_label->parent == ((GtkWidget *) (notebook))))))) | |
29720 | return list; | |
29721 | old_list = list; | |
29722 | list = list->next; | |
29723 | } | |
29724 | list = old_list; | |
29725 | } | |
29726 | else | |
29727 | { | |
29728 | old_list = list; | |
29729 | list = list->prev; | |
29730 | } | |
29731 | while (list) | |
29732 | { | |
29733 | page = list->data; | |
29734 | if (page->pack != flag && | |
29735 | (!find_visible || | |
29736 | (((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0) && | |
29737 | (!page->tab_label || (((GtkNotebookPage *) (page))->tab_label->parent == ((GtkWidget *) (notebook))))))) | |
29738 | return list; | |
29739 | old_list = list; | |
29740 | list = list->prev; | |
29741 | } | |
29742 | return ((void *)0); | |
29743 | } | |
29744 | ||
29745 | ||
29746 | ||
29747 | ||
29748 | ||
29749 | ||
29750 | ||
29751 | static void | |
29752 | gtk_notebook_paint (GtkWidget *widget, | |
29753 | GdkRectangle *area) | |
29754 | { | |
29755 | GtkNotebook *notebook; | |
29756 | GtkNotebookPrivate *priv; | |
29757 | GtkNotebookPage *page; | |
29758 | GList *children; | |
29759 | gboolean showarrow; | |
29760 | gint width, height; | |
29761 | gint x, y; | |
29762 | gint border_width = ((((GtkContainer*) ((widget)))))->border_width; | |
29763 | gint gap_x = 0, gap_width = 0, step = STEP_PREV; | |
29764 | gboolean is_rtl; | |
29765 | gint tab_pos; | |
29766 | ||
29767 | if (!(((((((((GtkObject*) ((widget)))))->flags)) & GTK_VISIBLE) != 0) && ((((((((GtkObject*) ((widget)))))->flags)) & GTK_MAPPED) != 0))) | |
29768 | return; | |
29769 | ||
29770 | notebook = ((((GtkNotebook*) ((widget))))); | |
29771 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
29772 | is_rtl = IA__gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL; | |
29773 | tab_pos = get_effective_tab_pos (notebook); | |
29774 | ||
29775 | if ((!notebook->show_tabs && !notebook->show_border) || | |
29776 | !notebook->cur_page || !((((((((GtkObject*) ((notebook->cur_page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
29777 | return; | |
29778 | ||
29779 | x = widget->allocation.x + border_width; | |
29780 | y = widget->allocation.y + border_width; | |
29781 | width = widget->allocation.width - border_width * 2; | |
29782 | height = widget->allocation.height - border_width * 2; | |
29783 | ||
29784 | if (notebook->show_border && (!notebook->show_tabs || !notebook->children)) | |
29785 | { | |
29786 | IA__gtk_paint_box (widget->style, widget->window, | |
29787 | GTK_STATE_NORMAL, GTK_SHADOW_OUT, | |
29788 | area, widget, "notebook", | |
29789 | x, y, width, height); | |
29790 | return; | |
29791 | } | |
29792 | ||
29793 | if (!notebook->first_tab) | |
29794 | notebook->first_tab = notebook->children; | |
29795 | ||
29796 | if (!((((((((GtkObject*) ((notebook->cur_page->tab_label)))))->flags)) & GTK_MAPPED) != 0)) | |
29797 | page = ((GtkNotebookPage *)((GList *)(notebook->first_tab))->data); | |
29798 | else | |
29799 | page = notebook->cur_page; | |
29800 | ||
29801 | switch (tab_pos) | |
29802 | { | |
29803 | case GTK_POS_TOP: | |
29804 | y += page->allocation.height; | |
29805 | ||
29806 | case GTK_POS_BOTTOM: | |
29807 | height -= page->allocation.height; | |
29808 | break; | |
29809 | case GTK_POS_LEFT: | |
29810 | x += page->allocation.width; | |
29811 | ||
29812 | case GTK_POS_RIGHT: | |
29813 | width -= page->allocation.width; | |
29814 | break; | |
29815 | } | |
29816 | ||
29817 | if (!(((GtkNotebookPage *) (notebook->cur_page))->tab_label->parent == ((GtkWidget *) (notebook))) || | |
29818 | !((((((((GtkObject*) ((notebook->cur_page->tab_label)))))->flags)) & GTK_MAPPED) != 0)) | |
29819 | { | |
29820 | gap_x = 0; | |
29821 | gap_width = 0; | |
29822 | } | |
29823 | else | |
29824 | { | |
29825 | switch (tab_pos) | |
29826 | { | |
29827 | case GTK_POS_TOP: | |
29828 | case GTK_POS_BOTTOM: | |
29829 | if (priv->operation == DRAG_OPERATION_REORDER) | |
29830 | gap_x = priv->drag_window_x - widget->allocation.x - border_width; | |
29831 | else | |
29832 | gap_x = notebook->cur_page->allocation.x - widget->allocation.x - border_width; | |
29833 | ||
29834 | gap_width = notebook->cur_page->allocation.width; | |
29835 | step = is_rtl ? STEP_NEXT : STEP_PREV; | |
29836 | break; | |
29837 | case GTK_POS_LEFT: | |
29838 | case GTK_POS_RIGHT: | |
29839 | if (priv->operation == DRAG_OPERATION_REORDER) | |
29840 | gap_x = priv->drag_window_y - border_width - widget->allocation.y; | |
29841 | else | |
29842 | gap_x = notebook->cur_page->allocation.y - widget->allocation.y - border_width; | |
29843 | ||
29844 | gap_width = notebook->cur_page->allocation.height; | |
29845 | step = STEP_PREV; | |
29846 | break; | |
29847 | } | |
29848 | } | |
29849 | IA__gtk_paint_box_gap (widget->style, widget->window, | |
29850 | GTK_STATE_NORMAL, GTK_SHADOW_OUT, | |
29851 | area, widget, "notebook", | |
29852 | x, y, width, height, | |
29853 | tab_pos, gap_x, gap_width); | |
29854 | ||
29855 | showarrow = (0); | |
29856 | children = gtk_notebook_search_page (notebook, ((void *)0), step, (!(0))); | |
29857 | while (children) | |
29858 | { | |
29859 | page = children->data; | |
29860 | children = gtk_notebook_search_page (notebook, children, | |
29861 | step, (!(0))); | |
29862 | if (!((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
29863 | continue; | |
29864 | if (!((((((((GtkObject*) ((page->tab_label)))))->flags)) & GTK_MAPPED) != 0)) | |
29865 | showarrow = (!(0)); | |
29866 | else if (page != notebook->cur_page) | |
29867 | gtk_notebook_draw_tab (notebook, page, area); | |
29868 | } | |
29869 | ||
29870 | if (showarrow && notebook->scrollable) | |
29871 | { | |
29872 | if (notebook->has_before_previous) | |
29873 | gtk_notebook_draw_arrow (notebook, ARROW_LEFT_BEFORE); | |
29874 | if (notebook->has_before_next) | |
29875 | gtk_notebook_draw_arrow (notebook, ARROW_RIGHT_BEFORE); | |
29876 | if (notebook->has_after_previous) | |
29877 | gtk_notebook_draw_arrow (notebook, ARROW_LEFT_AFTER); | |
29878 | if (notebook->has_after_next) | |
29879 | gtk_notebook_draw_arrow (notebook, ARROW_RIGHT_AFTER); | |
29880 | } | |
29881 | gtk_notebook_draw_tab (notebook, notebook->cur_page, area); | |
29882 | } | |
29883 | ||
29884 | static void | |
29885 | gtk_notebook_draw_tab (GtkNotebook *notebook, | |
29886 | GtkNotebookPage *page, | |
29887 | GdkRectangle *area) | |
29888 | { | |
29889 | GtkNotebookPrivate *priv; | |
29890 | GdkRectangle child_area; | |
29891 | GdkRectangle page_area; | |
29892 | GtkStateType state_type; | |
29893 | GtkPositionType gap_side; | |
29894 | GdkWindow *window; | |
29895 | GtkWidget *widget; | |
29896 | ||
29897 | if (!(((GtkNotebookPage *) (page))->tab_label->parent == ((GtkWidget *) (notebook))) || | |
29898 | !((((((((GtkObject*) ((page->tab_label)))))->flags)) & GTK_MAPPED) != 0) || | |
29899 | (page->allocation.width == 0) || (page->allocation.height == 0)) | |
29900 | return; | |
29901 | ||
29902 | widget = ((((GtkWidget*) ((notebook))))); | |
29903 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
29904 | ||
29905 | if (priv->operation == DRAG_OPERATION_REORDER && page == notebook->cur_page) | |
29906 | window = priv->drag_window; | |
29907 | else | |
29908 | window = widget->window; | |
29909 | ||
29910 | page_area.x = page->allocation.x; | |
29911 | page_area.y = page->allocation.y; | |
29912 | page_area.width = page->allocation.width; | |
29913 | page_area.height = page->allocation.height; | |
29914 | ||
29915 | if (gdk_rectangle_intersect (&page_area, area, &child_area)) | |
29916 | { | |
29917 | gap_side = get_tab_gap_pos (notebook); | |
29918 | ||
29919 | if (notebook->cur_page == page) | |
29920 | state_type = GTK_STATE_NORMAL; | |
29921 | else | |
29922 | state_type = GTK_STATE_ACTIVE; | |
29923 | ||
29924 | IA__gtk_paint_extension (widget->style, window, | |
29925 | state_type, GTK_SHADOW_OUT, | |
29926 | area, widget, "tab", | |
29927 | page_area.x, page_area.y, | |
29928 | page_area.width, page_area.height, | |
29929 | gap_side); | |
29930 | } | |
29931 | } | |
29932 | ||
29933 | static void | |
29934 | gtk_notebook_draw_arrow (GtkNotebook *notebook, | |
29935 | GtkNotebookArrow nbarrow) | |
29936 | { | |
29937 | GtkStateType state_type; | |
29938 | GtkShadowType shadow_type; | |
29939 | GtkWidget *widget; | |
29940 | GdkRectangle arrow_rect; | |
29941 | GtkArrowType arrow; | |
29942 | gboolean is_rtl, left; | |
29943 | ||
29944 | if ((((((((((GtkObject*) ((notebook)))))->flags)) & GTK_VISIBLE) != 0) && ((((((((GtkObject*) ((notebook)))))->flags)) & GTK_MAPPED) != 0))) | |
29945 | { | |
29946 | gint scroll_arrow_hlength; | |
29947 | gint scroll_arrow_vlength; | |
29948 | gint arrow_size; | |
29949 | ||
29950 | gtk_notebook_get_arrow_rect (notebook, &arrow_rect, nbarrow); | |
29951 | ||
29952 | widget = ((((GtkWidget*) ((notebook))))); | |
29953 | ||
29954 | is_rtl = IA__gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL; | |
29955 | left = (((nbarrow) == ARROW_LEFT_BEFORE || (nbarrow) == ARROW_LEFT_AFTER) && !is_rtl) || | |
29956 | (!((nbarrow) == ARROW_LEFT_BEFORE || (nbarrow) == ARROW_LEFT_AFTER) && is_rtl); | |
29957 | ||
29958 | IA__gtk_widget_style_get (widget, | |
29959 | "scroll-arrow-hlength", &scroll_arrow_hlength, | |
29960 | "scroll-arrow-vlength", &scroll_arrow_vlength, | |
29961 | ((void *)0)); | |
29962 | ||
29963 | if (notebook->in_child == nbarrow) | |
29964 | { | |
29965 | if (notebook->click_child == nbarrow) | |
29966 | state_type = GTK_STATE_ACTIVE; | |
29967 | else | |
29968 | state_type = GTK_STATE_PRELIGHT; | |
29969 | } | |
29970 | else | |
29971 | state_type = (((((GtkWidget*) ((widget)))))->state); | |
29972 | ||
29973 | if (notebook->click_child == nbarrow) | |
29974 | shadow_type = GTK_SHADOW_IN; | |
29975 | else | |
29976 | shadow_type = GTK_SHADOW_OUT; | |
29977 | ||
29978 | if (notebook->focus_tab && | |
29979 | !gtk_notebook_search_page (notebook, notebook->focus_tab, | |
29980 | left ? STEP_PREV : STEP_NEXT, (!(0)))) | |
29981 | { | |
29982 | shadow_type = GTK_SHADOW_ETCHED_IN; | |
29983 | state_type = GTK_STATE_INSENSITIVE; | |
29984 | } | |
29985 | ||
29986 | if (notebook->tab_pos == GTK_POS_LEFT || | |
29987 | notebook->tab_pos == GTK_POS_RIGHT) | |
29988 | { | |
29989 | arrow = (((nbarrow) == ARROW_LEFT_BEFORE || (nbarrow) == ARROW_LEFT_AFTER) ? GTK_ARROW_UP : GTK_ARROW_DOWN); | |
29990 | arrow_size = scroll_arrow_vlength; | |
29991 | } | |
29992 | else | |
29993 | { | |
29994 | arrow = (((nbarrow) == ARROW_LEFT_BEFORE || (nbarrow) == ARROW_LEFT_AFTER) ? GTK_ARROW_LEFT : GTK_ARROW_RIGHT); | |
29995 | arrow_size = scroll_arrow_hlength; | |
29996 | } | |
29997 | ||
29998 | IA__gtk_paint_arrow (widget->style, widget->window, state_type, | |
29999 | shadow_type, ((void *)0), widget, "notebook", | |
30000 | arrow, (!(0)), arrow_rect.x, arrow_rect.y, | |
30001 | arrow_size, arrow_size); | |
30002 | } | |
30003 | } | |
30004 | # 4794 "gtknotebook.c" | |
30005 | static void | |
30006 | gtk_notebook_tab_space (GtkNotebook *notebook, | |
30007 | gboolean *show_arrows, | |
30008 | gint *min, | |
30009 | gint *max, | |
30010 | gint *tab_space) | |
30011 | { | |
30012 | GtkNotebookPrivate *priv; | |
30013 | GtkWidget *widget; | |
30014 | GList *children; | |
30015 | gint tab_pos = get_effective_tab_pos (notebook); | |
30016 | gint tab_overlap; | |
30017 | gint arrow_spacing; | |
30018 | gint scroll_arrow_hlength; | |
30019 | gint scroll_arrow_vlength; | |
30020 | ||
30021 | widget = ((((GtkWidget*) ((notebook))))); | |
30022 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
30023 | children = notebook->children; | |
30024 | ||
30025 | IA__gtk_widget_style_get (((((GtkWidget*) ((notebook))))), | |
30026 | "arrow-spacing", &arrow_spacing, | |
30027 | "scroll-arrow-hlength", &scroll_arrow_hlength, | |
30028 | "scroll-arrow-vlength", &scroll_arrow_vlength, | |
30029 | ((void *)0)); | |
30030 | ||
30031 | switch (tab_pos) | |
30032 | { | |
30033 | case GTK_POS_TOP: | |
30034 | case GTK_POS_BOTTOM: | |
30035 | *min = widget->allocation.x + ((((GtkContainer*) ((notebook)))))->border_width; | |
30036 | *max = widget->allocation.x + widget->allocation.width - ((((GtkContainer*) ((notebook)))))->border_width; | |
30037 | ||
30038 | while (children) | |
30039 | { | |
30040 | GtkNotebookPage *page; | |
30041 | ||
30042 | page = children->data; | |
30043 | children = children->next; | |
30044 | ||
30045 | if ((((GtkNotebookPage *) (page))->tab_label->parent == ((GtkWidget *) (notebook))) && | |
30046 | ((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
30047 | *tab_space += page->requisition.width; | |
30048 | } | |
30049 | break; | |
30050 | case GTK_POS_RIGHT: | |
30051 | case GTK_POS_LEFT: | |
30052 | *min = widget->allocation.y + ((((GtkContainer*) ((notebook)))))->border_width; | |
30053 | *max = widget->allocation.y + widget->allocation.height - ((((GtkContainer*) ((notebook)))))->border_width; | |
30054 | ||
30055 | while (children) | |
30056 | { | |
30057 | GtkNotebookPage *page; | |
30058 | ||
30059 | page = children->data; | |
30060 | children = children->next; | |
30061 | ||
30062 | if ((((GtkNotebookPage *) (page))->tab_label->parent == ((GtkWidget *) (notebook))) && | |
30063 | ((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
30064 | *tab_space += page->requisition.height; | |
30065 | } | |
30066 | break; | |
30067 | } | |
30068 | ||
30069 | if (!notebook->scrollable) | |
30070 | *show_arrows = (0); | |
30071 | else | |
30072 | { | |
30073 | IA__gtk_widget_style_get (widget, "tab-overlap", &tab_overlap, ((void *)0)); | |
30074 | ||
30075 | switch (tab_pos) | |
30076 | { | |
30077 | case GTK_POS_TOP: | |
30078 | case GTK_POS_BOTTOM: | |
30079 | if (*tab_space > *max - *min - tab_overlap) | |
30080 | { | |
30081 | *show_arrows = (!(0)); | |
30082 | ||
30083 | ||
30084 | *tab_space = widget->allocation.width - tab_overlap - | |
30085 | 2 * ((((GtkContainer*) ((notebook)))))->border_width; | |
30086 | ||
30087 | if (notebook->has_after_previous) | |
30088 | { | |
30089 | *tab_space -= arrow_spacing + scroll_arrow_hlength; | |
30090 | *max -= arrow_spacing + scroll_arrow_hlength; | |
30091 | } | |
30092 | ||
30093 | if (notebook->has_after_next) | |
30094 | { | |
30095 | *tab_space -= arrow_spacing + scroll_arrow_hlength; | |
30096 | *max -= arrow_spacing + scroll_arrow_hlength; | |
30097 | } | |
30098 | ||
30099 | if (notebook->has_before_previous) | |
30100 | { | |
30101 | *tab_space -= arrow_spacing + scroll_arrow_hlength; | |
30102 | *min += arrow_spacing + scroll_arrow_hlength; | |
30103 | } | |
30104 | ||
30105 | if (notebook->has_before_next) | |
30106 | { | |
30107 | *tab_space -= arrow_spacing + scroll_arrow_hlength; | |
30108 | *min += arrow_spacing + scroll_arrow_hlength; | |
30109 | } | |
30110 | } | |
30111 | break; | |
30112 | case GTK_POS_LEFT: | |
30113 | case GTK_POS_RIGHT: | |
30114 | if (*tab_space > *max - *min - tab_overlap) | |
30115 | { | |
30116 | *show_arrows = (!(0)); | |
30117 | ||
30118 | ||
30119 | *tab_space = widget->allocation.height - | |
30120 | tab_overlap - 2 * ((((GtkContainer*) ((notebook)))))->border_width; | |
30121 | ||
30122 | if (notebook->has_after_previous || notebook->has_after_next) | |
30123 | { | |
30124 | *tab_space -= arrow_spacing + scroll_arrow_vlength; | |
30125 | *max -= arrow_spacing + scroll_arrow_vlength; | |
30126 | } | |
30127 | ||
30128 | if (notebook->has_before_previous || notebook->has_before_next) | |
30129 | { | |
30130 | *tab_space -= arrow_spacing + scroll_arrow_vlength; | |
30131 | *min += arrow_spacing + scroll_arrow_vlength; | |
30132 | } | |
30133 | } | |
30134 | break; | |
30135 | } | |
30136 | } | |
30137 | } | |
30138 | ||
30139 | static void | |
30140 | gtk_notebook_calculate_shown_tabs (GtkNotebook *notebook, | |
30141 | gboolean show_arrows, | |
30142 | gint min, | |
30143 | gint max, | |
30144 | gint tab_space, | |
30145 | GList **last_child, | |
30146 | gint *n, | |
30147 | gint *remaining_space) | |
30148 | { | |
30149 | GtkWidget *widget; | |
30150 | GtkContainer *container; | |
30151 | GList *children; | |
30152 | GtkNotebookPage *page; | |
30153 | gint tab_pos, tab_overlap; | |
30154 | ||
30155 | widget = ((((GtkWidget*) ((notebook))))); | |
30156 | container = ((((GtkContainer*) ((notebook))))); | |
30157 | IA__gtk_widget_style_get (widget, "tab-overlap", &tab_overlap, ((void *)0)); | |
30158 | tab_pos = get_effective_tab_pos (notebook); | |
30159 | ||
30160 | if (show_arrows) | |
30161 | { | |
30162 | *remaining_space = tab_space; | |
30163 | ||
30164 | if ((((GtkNotebookPage *) (notebook->cur_page))->tab_label->parent == ((GtkWidget *) (notebook))) && | |
30165 | ((((((((GtkObject*) ((notebook->cur_page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
30166 | { | |
30167 | gtk_notebook_calc_tabs (notebook, | |
30168 | notebook->focus_tab, | |
30169 | &(notebook->focus_tab), | |
30170 | remaining_space, STEP_NEXT); | |
30171 | } | |
30172 | ||
30173 | if (*remaining_space <= 0) | |
30174 | { | |
30175 | ||
30176 | notebook->first_tab = notebook->focus_tab; | |
30177 | *last_child = gtk_notebook_search_page (notebook, notebook->focus_tab, | |
30178 | STEP_NEXT, (!(0))); | |
30179 | } | |
30180 | else | |
30181 | { | |
30182 | children = ((void *)0); | |
30183 | ||
30184 | if (notebook->first_tab && notebook->first_tab != notebook->focus_tab) | |
30185 | { | |
30186 | ||
30187 | page = notebook->first_tab->data; | |
30188 | if ((((GtkNotebookPage *) (page))->tab_label->parent == ((GtkWidget *) (notebook))) && | |
30189 | ((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
30190 | for (children = notebook->focus_tab; | |
30191 | children && children != notebook->first_tab; | |
30192 | children = gtk_notebook_search_page (notebook, | |
30193 | children, | |
30194 | STEP_PREV, | |
30195 | (!(0)))); | |
30196 | } | |
30197 | ||
30198 | if (!children) | |
30199 | { | |
30200 | if ((((GtkNotebookPage *) (notebook->cur_page))->tab_label->parent == ((GtkWidget *) (notebook)))) | |
30201 | notebook->first_tab = notebook->focus_tab; | |
30202 | else | |
30203 | notebook->first_tab = gtk_notebook_search_page (notebook, notebook->focus_tab, | |
30204 | STEP_NEXT, (!(0))); | |
30205 | } | |
30206 | else | |
30207 | ||
30208 | gtk_notebook_calc_tabs (notebook, | |
30209 | gtk_notebook_search_page (notebook, | |
30210 | notebook->focus_tab, | |
30211 | STEP_PREV, | |
30212 | (!(0))), | |
30213 | &(notebook->first_tab), remaining_space, | |
30214 | STEP_PREV); | |
30215 | ||
30216 | if (*remaining_space < 0) | |
30217 | { | |
30218 | notebook->first_tab = | |
30219 | gtk_notebook_search_page (notebook, notebook->first_tab, | |
30220 | STEP_NEXT, (!(0))); | |
30221 | if (!notebook->first_tab) | |
30222 | notebook->first_tab = notebook->focus_tab; | |
30223 | ||
30224 | *last_child = gtk_notebook_search_page (notebook, notebook->focus_tab, | |
30225 | STEP_NEXT, (!(0))); | |
30226 | } | |
30227 | else | |
30228 | { | |
30229 | if (!notebook->first_tab) | |
30230 | notebook->first_tab = gtk_notebook_search_page (notebook, | |
30231 | ((void *)0), | |
30232 | STEP_NEXT, | |
30233 | (!(0))); | |
30234 | children = ((void *)0); | |
30235 | gtk_notebook_calc_tabs (notebook, | |
30236 | gtk_notebook_search_page (notebook, | |
30237 | notebook->focus_tab, | |
30238 | STEP_NEXT, | |
30239 | (!(0))), | |
30240 | &children, remaining_space, STEP_NEXT); | |
30241 | ||
30242 | if (*remaining_space <= 0) | |
30243 | *last_child = children; | |
30244 | else | |
30245 | { | |
30246 | *last_child = ((void *)0); | |
30247 | children = ((void *)0); | |
30248 | ||
30249 | gtk_notebook_calc_tabs (notebook, | |
30250 | gtk_notebook_search_page (notebook, | |
30251 | notebook->first_tab, | |
30252 | STEP_PREV, | |
30253 | (!(0))), | |
30254 | &children, remaining_space, STEP_PREV); | |
30255 | ||
30256 | if (*remaining_space == 0) | |
30257 | notebook->first_tab = children; | |
30258 | else | |
30259 | notebook->first_tab = gtk_notebook_search_page(notebook, | |
30260 | children, | |
30261 | STEP_NEXT, | |
30262 | (!(0))); | |
30263 | } | |
30264 | } | |
30265 | } | |
30266 | ||
30267 | if (*remaining_space < 0) | |
30268 | { | |
30269 | ||
30270 | *remaining_space = - (*remaining_space); | |
30271 | *n = 0; | |
30272 | ||
30273 | for (children = notebook->first_tab; | |
30274 | children && children != *last_child; | |
30275 | children = gtk_notebook_search_page (notebook, children, | |
30276 | STEP_NEXT, (!(0)))) | |
30277 | (*n)++; | |
30278 | } | |
30279 | else | |
30280 | *remaining_space = 0; | |
30281 | ||
30282 | ||
30283 | for (children = gtk_notebook_search_page (notebook, ((void *)0), | |
30284 | STEP_NEXT, (!(0))); | |
30285 | children && children != notebook->first_tab; | |
30286 | children = gtk_notebook_search_page (notebook, children, | |
30287 | STEP_NEXT, (!(0)))) | |
30288 | { | |
30289 | page = children->data; | |
30290 | ||
30291 | if (page->tab_label && | |
30292 | (((GtkNotebookPage *) (page))->tab_label->parent == ((GtkWidget *) (notebook)))) | |
30293 | IA__gtk_widget_set_child_visible (page->tab_label, (0)); | |
30294 | } | |
30295 | ||
30296 | for (children = *last_child; children; | |
30297 | children = gtk_notebook_search_page (notebook, children, | |
30298 | STEP_NEXT, (!(0)))) | |
30299 | { | |
30300 | page = children->data; | |
30301 | ||
30302 | if (page->tab_label && | |
30303 | (((GtkNotebookPage *) (page))->tab_label->parent == ((GtkWidget *) (notebook)))) | |
30304 | IA__gtk_widget_set_child_visible (page->tab_label, (0)); | |
30305 | } | |
30306 | } | |
30307 | else | |
30308 | { | |
30309 | gint c = 0; | |
30310 | *n = 0; | |
30311 | ||
30312 | *remaining_space = max - min - tab_overlap - tab_space; | |
30313 | children = notebook->children; | |
30314 | notebook->first_tab = gtk_notebook_search_page (notebook, ((void *)0), | |
30315 | STEP_NEXT, (!(0))); | |
30316 | while (children) | |
30317 | { | |
30318 | page = children->data; | |
30319 | children = children->next; | |
30320 | ||
30321 | if (!(((GtkNotebookPage *) (page))->tab_label->parent == ((GtkWidget *) (notebook))) || | |
30322 | !((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
30323 | continue; | |
30324 | ||
30325 | c++; | |
30326 | ||
30327 | if (page->expand) | |
30328 | (*n)++; | |
30329 | } | |
30330 | ||
30331 | ||
30332 | if (notebook->homogeneous && *n) | |
30333 | *n = c; | |
30334 | } | |
30335 | } | |
30336 | ||
30337 | static gboolean | |
30338 | get_allocate_at_bottom (GtkWidget *widget, | |
30339 | gint search_direction) | |
30340 | { | |
30341 | gboolean is_rtl = (IA__gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL); | |
30342 | gboolean tab_pos = get_effective_tab_pos (((((GtkNotebook*) ((widget)))))); | |
30343 | ||
30344 | switch (tab_pos) | |
30345 | { | |
30346 | case GTK_POS_TOP: | |
30347 | case GTK_POS_BOTTOM: | |
30348 | if (!is_rtl) | |
30349 | return (search_direction == STEP_PREV); | |
30350 | else | |
30351 | return (search_direction == STEP_NEXT); | |
30352 | ||
30353 | break; | |
30354 | case GTK_POS_RIGHT: | |
30355 | case GTK_POS_LEFT: | |
30356 | return (search_direction == STEP_PREV); | |
30357 | break; | |
30358 | } | |
30359 | ||
30360 | return (0); | |
30361 | } | |
30362 | ||
30363 | static gboolean | |
30364 | gtk_notebook_calculate_tabs_allocation (GtkNotebook *notebook, | |
30365 | GList **children, | |
30366 | GList *last_child, | |
30367 | gboolean showarrow, | |
30368 | gint direction, | |
30369 | gint *remaining_space, | |
30370 | gint *expanded_tabs, | |
30371 | gint min, | |
30372 | gint max) | |
30373 | { | |
30374 | GtkWidget *widget; | |
30375 | GtkContainer *container; | |
30376 | GtkNotebookPrivate *priv; | |
30377 | GtkNotebookPage *page; | |
30378 | gboolean allocate_at_bottom; | |
30379 | gint tab_overlap, tab_pos, tab_extra_space; | |
30380 | gint left_x, right_x, top_y, bottom_y, anchor; | |
30381 | gint xthickness, ythickness; | |
30382 | gboolean gap_left, packing_changed; | |
30383 | GtkAllocation child_allocation = { 0, }; | |
30384 | gboolean allocation_changed = (0); | |
30385 | ||
30386 | widget = ((((GtkWidget*) ((notebook))))); | |
30387 | container = ((((GtkContainer*) ((notebook))))); | |
30388 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
30389 | IA__gtk_widget_style_get (widget, "tab-overlap", &tab_overlap, ((void *)0)); | |
30390 | tab_pos = get_effective_tab_pos (notebook); | |
30391 | allocate_at_bottom = get_allocate_at_bottom (widget, direction); | |
30392 | anchor = 0; | |
30393 | ||
30394 | child_allocation.x = widget->allocation.x + container->border_width; | |
30395 | child_allocation.y = widget->allocation.y + container->border_width; | |
30396 | ||
30397 | xthickness = widget->style->xthickness; | |
30398 | ythickness = widget->style->ythickness; | |
30399 | ||
30400 | switch (tab_pos) | |
30401 | { | |
30402 | case GTK_POS_BOTTOM: | |
30403 | child_allocation.y = widget->allocation.y + widget->allocation.height - | |
30404 | notebook->cur_page->requisition.height - container->border_width; | |
30405 | ||
30406 | case GTK_POS_TOP: | |
30407 | child_allocation.x = (allocate_at_bottom) ? max : min; | |
30408 | child_allocation.height = notebook->cur_page->requisition.height; | |
30409 | anchor = child_allocation.x; | |
30410 | break; | |
30411 | ||
30412 | case GTK_POS_RIGHT: | |
30413 | child_allocation.x = widget->allocation.x + widget->allocation.width - | |
30414 | notebook->cur_page->requisition.width - container->border_width; | |
30415 | ||
30416 | case GTK_POS_LEFT: | |
30417 | child_allocation.y = (allocate_at_bottom) ? max : min; | |
30418 | child_allocation.width = notebook->cur_page->requisition.width; | |
30419 | anchor = child_allocation.y; | |
30420 | break; | |
30421 | } | |
30422 | ||
30423 | left_x = (((priv->mouse_x - priv->drag_offset_x) > (max - notebook->cur_page->allocation.width)) ? (max - notebook->cur_page->allocation.width) : (((priv->mouse_x - priv->drag_offset_x) < (min)) ? (min) : (priv->mouse_x - priv->drag_offset_x))); | |
30424 | ||
30425 | top_y = (((priv->mouse_y - priv->drag_offset_y) > (max - notebook->cur_page->allocation.height)) ? (max - notebook->cur_page->allocation.height) : (((priv->mouse_y - priv->drag_offset_y) < (min)) ? (min) : (priv->mouse_y - priv->drag_offset_y))); | |
30426 | ||
30427 | right_x = left_x + notebook->cur_page->allocation.width; | |
30428 | bottom_y = top_y + notebook->cur_page->allocation.height; | |
30429 | gap_left = packing_changed = (0); | |
30430 | ||
30431 | while (*children && *children != last_child) | |
30432 | { | |
30433 | page = (*children)->data; | |
30434 | ||
30435 | if (direction == STEP_NEXT && page->pack != GTK_PACK_START) | |
30436 | { | |
30437 | if (!showarrow) | |
30438 | break; | |
30439 | else if (priv->operation == DRAG_OPERATION_REORDER) | |
30440 | packing_changed = (!(0)); | |
30441 | } | |
30442 | ||
30443 | if (direction == STEP_NEXT) | |
30444 | *children = gtk_notebook_search_page (notebook, *children, direction, (!(0))); | |
30445 | else | |
30446 | { | |
30447 | *children = (*children)->next; | |
30448 | ||
30449 | if (page->pack != GTK_PACK_END || !((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
30450 | continue; | |
30451 | } | |
30452 | ||
30453 | if (!(((GtkNotebookPage *) (page))->tab_label->parent == ((GtkWidget *) (notebook)))) | |
30454 | continue; | |
30455 | ||
30456 | tab_extra_space = 0; | |
30457 | if (*expanded_tabs && (showarrow || page->expand || notebook->homogeneous)) | |
30458 | { | |
30459 | tab_extra_space = *remaining_space / *expanded_tabs; | |
30460 | *remaining_space -= tab_extra_space; | |
30461 | (*expanded_tabs)--; | |
30462 | } | |
30463 | ||
30464 | switch (tab_pos) | |
30465 | { | |
30466 | case GTK_POS_TOP: | |
30467 | case GTK_POS_BOTTOM: | |
30468 | child_allocation.width = page->requisition.width + tab_overlap + tab_extra_space; | |
30469 | ||
30470 | ||
30471 | if (priv->operation == DRAG_OPERATION_REORDER && | |
30472 | !gap_left && packing_changed) | |
30473 | { | |
30474 | if (!allocate_at_bottom) | |
30475 | { | |
30476 | if ((notebook->cur_page->pack == GTK_PACK_START && left_x >= anchor) || | |
30477 | (notebook->cur_page->pack == GTK_PACK_END && left_x < anchor)) | |
30478 | { | |
30479 | left_x = priv->drag_window_x = anchor; | |
30480 | anchor += notebook->cur_page->allocation.width - tab_overlap; | |
30481 | } | |
30482 | } | |
30483 | else | |
30484 | { | |
30485 | if ((notebook->cur_page->pack == GTK_PACK_START && right_x <= anchor) || | |
30486 | (notebook->cur_page->pack == GTK_PACK_END && right_x > anchor)) | |
30487 | { | |
30488 | anchor -= notebook->cur_page->allocation.width; | |
30489 | left_x = priv->drag_window_x = anchor; | |
30490 | anchor += tab_overlap; | |
30491 | } | |
30492 | } | |
30493 | ||
30494 | gap_left = (!(0)); | |
30495 | } | |
30496 | ||
30497 | if (priv->operation == DRAG_OPERATION_REORDER && page == notebook->cur_page) | |
30498 | { | |
30499 | priv->drag_window_x = left_x; | |
30500 | priv->drag_window_y = child_allocation.y; | |
30501 | } | |
30502 | else | |
30503 | { | |
30504 | if (allocate_at_bottom) | |
30505 | anchor -= child_allocation.width; | |
30506 | ||
30507 | if (priv->operation == DRAG_OPERATION_REORDER && page->pack == notebook->cur_page->pack) | |
30508 | { | |
30509 | if (!allocate_at_bottom && | |
30510 | left_x >= anchor && | |
30511 | left_x <= anchor + child_allocation.width / 2) | |
30512 | anchor += notebook->cur_page->allocation.width - tab_overlap; | |
30513 | else if (allocate_at_bottom && | |
30514 | right_x >= anchor + child_allocation.width / 2 && | |
30515 | right_x <= anchor + child_allocation.width) | |
30516 | anchor -= notebook->cur_page->allocation.width - tab_overlap; | |
30517 | } | |
30518 | ||
30519 | child_allocation.x = anchor; | |
30520 | } | |
30521 | ||
30522 | break; | |
30523 | case GTK_POS_LEFT: | |
30524 | case GTK_POS_RIGHT: | |
30525 | child_allocation.height = page->requisition.height + tab_overlap + tab_extra_space; | |
30526 | ||
30527 | ||
30528 | if (priv->operation == DRAG_OPERATION_REORDER && | |
30529 | !gap_left && packing_changed) | |
30530 | { | |
30531 | if (!allocate_at_bottom && | |
30532 | ((notebook->cur_page->pack == GTK_PACK_START && top_y >= anchor) || | |
30533 | (notebook->cur_page->pack == GTK_PACK_END && top_y < anchor))) | |
30534 | { | |
30535 | top_y = priv->drag_window_y = anchor; | |
30536 | anchor += notebook->cur_page->allocation.height - tab_overlap; | |
30537 | } | |
30538 | ||
30539 | gap_left = (!(0)); | |
30540 | } | |
30541 | ||
30542 | if (priv->operation == DRAG_OPERATION_REORDER && page == notebook->cur_page) | |
30543 | { | |
30544 | priv->drag_window_x = child_allocation.x; | |
30545 | priv->drag_window_y = top_y; | |
30546 | } | |
30547 | else | |
30548 | { | |
30549 | if (allocate_at_bottom) | |
30550 | anchor -= child_allocation.height; | |
30551 | ||
30552 | if (priv->operation == DRAG_OPERATION_REORDER && page->pack == notebook->cur_page->pack) | |
30553 | { | |
30554 | if (!allocate_at_bottom && | |
30555 | top_y >= anchor && | |
30556 | top_y <= anchor + child_allocation.height / 2) | |
30557 | anchor += notebook->cur_page->allocation.height - tab_overlap; | |
30558 | else if (allocate_at_bottom && | |
30559 | bottom_y >= anchor + child_allocation.height / 2 && | |
30560 | bottom_y <= anchor + child_allocation.height) | |
30561 | anchor -= notebook->cur_page->allocation.height - tab_overlap; | |
30562 | } | |
30563 | ||
30564 | child_allocation.y = anchor; | |
30565 | } | |
30566 | ||
30567 | break; | |
30568 | } | |
30569 | ||
30570 | if ((priv->operation != DRAG_OPERATION_REORDER || page != notebook->cur_page) && | |
30571 | (page->allocation.x != child_allocation.x || | |
30572 | page->allocation.y != child_allocation.y || | |
30573 | page->allocation.width != child_allocation.width || | |
30574 | page->allocation.height != child_allocation.height)) | |
30575 | allocation_changed = (!(0)); | |
30576 | ||
30577 | page->allocation = child_allocation; | |
30578 | ||
30579 | if ((page == priv->detached_tab && priv->operation == DRAG_OPERATION_DETACH) || | |
30580 | (page == notebook->cur_page && priv->operation == DRAG_OPERATION_REORDER)) | |
30581 | { | |
30582 | ||
30583 | ||
30584 | page->allocation.x = 0; | |
30585 | page->allocation.y = 0; | |
30586 | } | |
30587 | ||
30588 | if (page != notebook->cur_page) | |
30589 | { | |
30590 | switch (tab_pos) | |
30591 | { | |
30592 | case GTK_POS_TOP: | |
30593 | page->allocation.y += ythickness; | |
30594 | ||
30595 | case GTK_POS_BOTTOM: | |
30596 | page->allocation.height = (((1) > (page->allocation.height - ythickness)) ? (1) : (page->allocation.height - ythickness)); | |
30597 | break; | |
30598 | case GTK_POS_LEFT: | |
30599 | page->allocation.x += xthickness; | |
30600 | ||
30601 | case GTK_POS_RIGHT: | |
30602 | page->allocation.width = (((1) > (page->allocation.width - xthickness)) ? (1) : (page->allocation.width - xthickness)); | |
30603 | break; | |
30604 | } | |
30605 | } | |
30606 | ||
30607 | ||
30608 | switch (tab_pos) | |
30609 | { | |
30610 | case GTK_POS_TOP: | |
30611 | case GTK_POS_BOTTOM: | |
30612 | if (priv->operation != DRAG_OPERATION_REORDER || | |
30613 | (priv->operation == DRAG_OPERATION_REORDER && page != notebook->cur_page)) | |
30614 | { | |
30615 | if (priv->operation == DRAG_OPERATION_REORDER) | |
30616 | { | |
30617 | if (page->pack == notebook->cur_page->pack && | |
30618 | !allocate_at_bottom && | |
30619 | left_x > anchor + child_allocation.width / 2 && | |
30620 | left_x <= anchor + child_allocation.width) | |
30621 | anchor += notebook->cur_page->allocation.width - tab_overlap; | |
30622 | else if (page->pack == notebook->cur_page->pack && | |
30623 | allocate_at_bottom && | |
30624 | right_x >= anchor && | |
30625 | right_x <= anchor + child_allocation.width / 2) | |
30626 | anchor -= notebook->cur_page->allocation.width - tab_overlap; | |
30627 | } | |
30628 | ||
30629 | if (!allocate_at_bottom) | |
30630 | anchor += child_allocation.width - tab_overlap; | |
30631 | else | |
30632 | anchor += tab_overlap; | |
30633 | } | |
30634 | ||
30635 | break; | |
30636 | case GTK_POS_LEFT: | |
30637 | case GTK_POS_RIGHT: | |
30638 | if (priv->operation != DRAG_OPERATION_REORDER || | |
30639 | (priv->operation == DRAG_OPERATION_REORDER && page != notebook->cur_page)) | |
30640 | { | |
30641 | if (priv->operation == DRAG_OPERATION_REORDER) | |
30642 | { | |
30643 | if (page->pack == notebook->cur_page->pack && | |
30644 | !allocate_at_bottom && | |
30645 | top_y >= anchor + child_allocation.height / 2 && | |
30646 | top_y <= anchor + child_allocation.height) | |
30647 | anchor += notebook->cur_page->allocation.height - tab_overlap; | |
30648 | else if (page->pack == notebook->cur_page->pack && | |
30649 | allocate_at_bottom && | |
30650 | bottom_y >= anchor && | |
30651 | bottom_y <= anchor + child_allocation.height / 2) | |
30652 | anchor -= notebook->cur_page->allocation.height - tab_overlap; | |
30653 | } | |
30654 | ||
30655 | if (!allocate_at_bottom) | |
30656 | anchor += child_allocation.height - tab_overlap; | |
30657 | else | |
30658 | anchor += tab_overlap; | |
30659 | } | |
30660 | ||
30661 | break; | |
30662 | } | |
30663 | ||
30664 | ||
30665 | if (page->tab_label) | |
30666 | IA__gtk_widget_set_child_visible (page->tab_label, (!(0))); | |
30667 | } | |
30668 | ||
30669 | ||
30670 | if (children && | |
30671 | priv->operation == DRAG_OPERATION_REORDER && | |
30672 | ((direction == STEP_NEXT && notebook->cur_page->pack == GTK_PACK_START) || | |
30673 | ((direction == STEP_PREV || packing_changed) && notebook->cur_page->pack == GTK_PACK_END))) | |
30674 | { | |
30675 | switch (tab_pos) | |
30676 | { | |
30677 | case GTK_POS_TOP: | |
30678 | case GTK_POS_BOTTOM: | |
30679 | if (allocate_at_bottom) | |
30680 | anchor -= notebook->cur_page->allocation.width; | |
30681 | ||
30682 | if ((!allocate_at_bottom && priv->drag_window_x > anchor) || | |
30683 | (allocate_at_bottom && priv->drag_window_x < anchor)) | |
30684 | priv->drag_window_x = anchor; | |
30685 | break; | |
30686 | case GTK_POS_LEFT: | |
30687 | case GTK_POS_RIGHT: | |
30688 | if (allocate_at_bottom) | |
30689 | anchor -= notebook->cur_page->allocation.height; | |
30690 | ||
30691 | if ((!allocate_at_bottom && priv->drag_window_y > anchor) || | |
30692 | (allocate_at_bottom && priv->drag_window_y < anchor)) | |
30693 | priv->drag_window_y = anchor; | |
30694 | break; | |
30695 | } | |
30696 | } | |
30697 | ||
30698 | return allocation_changed; | |
30699 | } | |
30700 | ||
30701 | static void | |
30702 | gtk_notebook_pages_allocate (GtkNotebook *notebook) | |
30703 | { | |
30704 | GList *children = ((void *)0); | |
30705 | GList *last_child = ((void *)0); | |
30706 | gboolean showarrow = (0); | |
30707 | gint tab_space, min, max, remaining_space; | |
30708 | gint expanded_tabs, operation; | |
30709 | ||
30710 | if (!notebook->show_tabs || !notebook->children || !notebook->cur_page) | |
30711 | return; | |
30712 | ||
30713 | min = max = tab_space = remaining_space = 0; | |
30714 | expanded_tabs = 1; | |
30715 | ||
30716 | gtk_notebook_tab_space (notebook, &showarrow, | |
30717 | &min, &max, &tab_space); | |
30718 | ||
30719 | gtk_notebook_calculate_shown_tabs (notebook, showarrow, | |
30720 | min, max, tab_space, &last_child, | |
30721 | &expanded_tabs, &remaining_space); | |
30722 | ||
30723 | children = notebook->first_tab; | |
30724 | gtk_notebook_calculate_tabs_allocation (notebook, &children, last_child, | |
30725 | showarrow, STEP_NEXT, | |
30726 | &remaining_space, &expanded_tabs, min, max); | |
30727 | if (children && children != last_child) | |
30728 | { | |
30729 | children = notebook->children; | |
30730 | gtk_notebook_calculate_tabs_allocation (notebook, &children, last_child, | |
30731 | showarrow, STEP_PREV, | |
30732 | &remaining_space, &expanded_tabs, min, max); | |
30733 | } | |
30734 | ||
30735 | children = notebook->children; | |
30736 | ||
30737 | while (children) | |
30738 | { | |
30739 | gtk_notebook_page_allocate (notebook, ((GtkNotebookPage *)((GList *)(children))->data)); | |
30740 | children = children->next; | |
30741 | } | |
30742 | ||
30743 | operation = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ())))))->operation; | |
30744 | ||
30745 | if (!notebook->first_tab) | |
30746 | notebook->first_tab = notebook->children; | |
30747 | ||
30748 | gtk_notebook_redraw_tabs (notebook); | |
30749 | } | |
30750 | ||
30751 | static void | |
30752 | gtk_notebook_page_allocate (GtkNotebook *notebook, | |
30753 | GtkNotebookPage *page) | |
30754 | { | |
30755 | GtkWidget *widget = ((((GtkWidget*) ((notebook))))); | |
30756 | GtkAllocation child_allocation; | |
30757 | GtkRequisition tab_requisition; | |
30758 | gint xthickness; | |
30759 | gint ythickness; | |
30760 | gint padding; | |
30761 | gint focus_width; | |
30762 | gint tab_curvature; | |
30763 | gint tab_pos = get_effective_tab_pos (notebook); | |
30764 | ||
30765 | if (!page->tab_label) | |
30766 | return; | |
30767 | ||
30768 | xthickness = widget->style->xthickness; | |
30769 | ythickness = widget->style->ythickness; | |
30770 | ||
30771 | IA__gtk_widget_get_child_requisition (page->tab_label, &tab_requisition); | |
30772 | IA__gtk_widget_style_get (widget, | |
30773 | "focus-line-width", &focus_width, | |
30774 | "tab-curvature", &tab_curvature, | |
30775 | ((void *)0)); | |
30776 | switch (tab_pos) | |
30777 | { | |
30778 | case GTK_POS_TOP: | |
30779 | case GTK_POS_BOTTOM: | |
30780 | padding = tab_curvature + focus_width + notebook->tab_hborder; | |
30781 | if (page->fill) | |
30782 | { | |
30783 | child_allocation.x = xthickness + focus_width + notebook->tab_hborder; | |
30784 | child_allocation.width = (((1) > (page->allocation.width - 2 * child_allocation.x)) ? (1) : (page->allocation.width - 2 * child_allocation.x)); | |
30785 | child_allocation.x += page->allocation.x; | |
30786 | } | |
30787 | else | |
30788 | { | |
30789 | child_allocation.x = page->allocation.x + | |
30790 | (page->allocation.width - tab_requisition.width) / 2; | |
30791 | ||
30792 | child_allocation.width = tab_requisition.width; | |
30793 | } | |
30794 | ||
30795 | child_allocation.y = notebook->tab_vborder + focus_width + page->allocation.y; | |
30796 | ||
30797 | if (tab_pos == GTK_POS_TOP) | |
30798 | child_allocation.y += ythickness; | |
30799 | ||
30800 | child_allocation.height = (((1) > ((page->allocation.height - ythickness - 2 * (notebook->tab_vborder + focus_width)))) ? (1) : ((page->allocation.height - ythickness - 2 * (notebook->tab_vborder + focus_width)))); | |
30801 | ||
30802 | break; | |
30803 | case GTK_POS_LEFT: | |
30804 | case GTK_POS_RIGHT: | |
30805 | padding = tab_curvature + focus_width + notebook->tab_vborder; | |
30806 | if (page->fill) | |
30807 | { | |
30808 | child_allocation.y = ythickness + padding; | |
30809 | child_allocation.height = (((1) > ((page->allocation.height - 2 * child_allocation.y))) ? (1) : ((page->allocation.height - 2 * child_allocation.y))); | |
30810 | ||
30811 | child_allocation.y += page->allocation.y; | |
30812 | } | |
30813 | else | |
30814 | { | |
30815 | child_allocation.y = page->allocation.y + | |
30816 | (page->allocation.height - tab_requisition.height) / 2; | |
30817 | ||
30818 | child_allocation.height = tab_requisition.height; | |
30819 | } | |
30820 | ||
30821 | child_allocation.x = notebook->tab_hborder + focus_width + page->allocation.x; | |
30822 | ||
30823 | if (tab_pos == GTK_POS_LEFT) | |
30824 | child_allocation.x += xthickness; | |
30825 | ||
30826 | child_allocation.width = (((1) > ((page->allocation.width - xthickness - 2 * (notebook->tab_hborder + focus_width)))) ? (1) : ((page->allocation.width - xthickness - 2 * (notebook->tab_hborder + focus_width)))); | |
30827 | ||
30828 | break; | |
30829 | } | |
30830 | ||
30831 | IA__gtk_widget_size_allocate (page->tab_label, &child_allocation); | |
30832 | } | |
30833 | ||
30834 | static void | |
30835 | gtk_notebook_calc_tabs (GtkNotebook *notebook, | |
30836 | GList *start, | |
30837 | GList **end, | |
30838 | gint *tab_space, | |
30839 | guint direction) | |
30840 | { | |
30841 | GtkNotebookPage *page = ((void *)0); | |
30842 | GList *children; | |
30843 | GList *last_list = ((void *)0); | |
30844 | GList *last_calculated_child = ((void *)0); | |
30845 | gboolean pack; | |
30846 | gint tab_pos = get_effective_tab_pos (notebook); | |
30847 | guint real_direction; | |
30848 | ||
30849 | if (!start) | |
30850 | return; | |
30851 | ||
30852 | children = start; | |
30853 | pack = ((GtkNotebookPage *)((GList *)(start))->data)->pack; | |
30854 | if (pack == GTK_PACK_END) | |
30855 | real_direction = (direction == STEP_PREV) ? STEP_NEXT : STEP_PREV; | |
30856 | else | |
30857 | real_direction = direction; | |
30858 | ||
30859 | while (1) | |
30860 | { | |
30861 | switch (tab_pos) | |
30862 | { | |
30863 | case GTK_POS_TOP: | |
30864 | case GTK_POS_BOTTOM: | |
30865 | while (children) | |
30866 | { | |
30867 | page = children->data; | |
30868 | if ((((GtkNotebookPage *) (page))->tab_label->parent == ((GtkWidget *) (notebook))) && | |
30869 | ((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
30870 | { | |
30871 | if (page->pack == pack) | |
30872 | { | |
30873 | *tab_space -= page->requisition.width; | |
30874 | if (*tab_space < 0 || children == *end) | |
30875 | { | |
30876 | if (*tab_space < 0) | |
30877 | { | |
30878 | *tab_space = - (*tab_space + | |
30879 | page->requisition.width); | |
30880 | ||
30881 | if (*tab_space == 0 && direction == STEP_PREV) | |
30882 | children = last_calculated_child; | |
30883 | ||
30884 | *end = children; | |
30885 | } | |
30886 | return; | |
30887 | } | |
30888 | ||
30889 | last_calculated_child = children; | |
30890 | } | |
30891 | last_list = children; | |
30892 | } | |
30893 | if (real_direction == STEP_NEXT) | |
30894 | children = children->next; | |
30895 | else | |
30896 | children = children->prev; | |
30897 | } | |
30898 | break; | |
30899 | case GTK_POS_LEFT: | |
30900 | case GTK_POS_RIGHT: | |
30901 | while (children) | |
30902 | { | |
30903 | page = children->data; | |
30904 | if ((((GtkNotebookPage *) (page))->tab_label->parent == ((GtkWidget *) (notebook))) && | |
30905 | ((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
30906 | { | |
30907 | if (page->pack == pack) | |
30908 | { | |
30909 | *tab_space -= page->requisition.height; | |
30910 | if (*tab_space < 0 || children == *end) | |
30911 | { | |
30912 | if (*tab_space < 0) | |
30913 | { | |
30914 | *tab_space = - (*tab_space + | |
30915 | page->requisition.height); | |
30916 | ||
30917 | if (*tab_space == 0 && direction == STEP_PREV) | |
30918 | children = last_calculated_child; | |
30919 | ||
30920 | *end = children; | |
30921 | } | |
30922 | return; | |
30923 | } | |
30924 | ||
30925 | last_calculated_child = children; | |
30926 | } | |
30927 | last_list = children; | |
30928 | } | |
30929 | if (real_direction == STEP_NEXT) | |
30930 | children = children->next; | |
30931 | else | |
30932 | children = children->prev; | |
30933 | } | |
30934 | break; | |
30935 | } | |
30936 | if (real_direction == STEP_PREV) | |
30937 | return; | |
30938 | pack = (pack == GTK_PACK_END) ? GTK_PACK_START : GTK_PACK_END; | |
30939 | real_direction = STEP_PREV; | |
30940 | children = last_list; | |
30941 | } | |
30942 | } | |
30943 | ||
30944 | static void | |
30945 | gtk_notebook_update_tab_states (GtkNotebook *notebook) | |
30946 | { | |
30947 | GList *list; | |
30948 | ||
30949 | for (list = notebook->children; list != ((void *)0); list = list->next) | |
30950 | { | |
30951 | GtkNotebookPage *page = list->data; | |
30952 | ||
30953 | if (page->tab_label) | |
30954 | { | |
30955 | if (page == notebook->cur_page) | |
30956 | IA__gtk_widget_set_state (page->tab_label, GTK_STATE_NORMAL); | |
30957 | else | |
30958 | IA__gtk_widget_set_state (page->tab_label, GTK_STATE_ACTIVE); | |
30959 | } | |
30960 | } | |
30961 | } | |
30962 | ||
30963 | ||
30964 | ||
30965 | ||
30966 | ||
30967 | static void | |
30968 | gtk_notebook_real_switch_page (GtkNotebook *notebook, | |
30969 | GtkNotebookPage *page, | |
30970 | guint page_num) | |
30971 | { | |
30972 | if (notebook->cur_page == page || !((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
30973 | return; | |
30974 | ||
30975 | if (notebook->cur_page) | |
30976 | IA__gtk_widget_set_child_visible (notebook->cur_page->child, (0)); | |
30977 | ||
30978 | notebook->cur_page = page; | |
30979 | ||
30980 | if (!notebook->focus_tab || | |
30981 | notebook->focus_tab->data != (gpointer) notebook->cur_page) | |
30982 | notebook->focus_tab = | |
30983 | g_list_find (notebook->children, notebook->cur_page); | |
30984 | ||
30985 | IA__gtk_widget_set_child_visible (notebook->cur_page->child, (!(0))); | |
30986 | ||
30987 | ||
30988 | ||
30989 | ||
30990 | ||
30991 | if (notebook->child_has_focus) | |
30992 | { | |
30993 | if (notebook->cur_page->last_focus_child && | |
30994 | IA__gtk_widget_is_ancestor (notebook->cur_page->last_focus_child, notebook->cur_page->child)) | |
30995 | IA__gtk_widget_grab_focus (notebook->cur_page->last_focus_child); | |
30996 | else | |
30997 | if (!IA__gtk_widget_child_focus (notebook->cur_page->child, GTK_DIR_TAB_FORWARD)) | |
30998 | IA__gtk_widget_grab_focus (((((GtkWidget*) ((notebook)))))); | |
30999 | } | |
31000 | ||
31001 | gtk_notebook_update_tab_states (notebook); | |
31002 | IA__gtk_widget_queue_resize (((((GtkWidget*) ((notebook)))))); | |
31003 | g_object_notify (((((GObject*) ((notebook))))), "page"); | |
31004 | } | |
31005 | # 5802 "gtknotebook.c" | |
31006 | static void | |
31007 | gtk_notebook_switch_page (GtkNotebook *notebook, | |
31008 | GtkNotebookPage *page) | |
31009 | { | |
31010 | guint page_num; | |
31011 | ||
31012 | if (notebook->cur_page == page) | |
31013 | return; | |
31014 | ||
31015 | page_num = g_list_index (notebook->children, page); | |
31016 | ||
31017 | g_signal_emit (notebook, | |
31018 | notebook_signals[SWITCH_PAGE], | |
31019 | 0, | |
31020 | page, | |
31021 | page_num); | |
31022 | } | |
31023 | ||
31024 | static gint | |
31025 | gtk_notebook_page_select (GtkNotebook *notebook, | |
31026 | gboolean move_focus) | |
31027 | { | |
31028 | GtkNotebookPage *page; | |
31029 | GtkDirectionType dir = GTK_DIR_DOWN; | |
31030 | gint tab_pos = get_effective_tab_pos (notebook); | |
31031 | ||
31032 | if (!notebook->focus_tab) | |
31033 | return (0); | |
31034 | ||
31035 | page = notebook->focus_tab->data; | |
31036 | gtk_notebook_switch_page (notebook, page); | |
31037 | ||
31038 | if (move_focus) | |
31039 | { | |
31040 | switch (tab_pos) | |
31041 | { | |
31042 | case GTK_POS_TOP: | |
31043 | dir = GTK_DIR_DOWN; | |
31044 | break; | |
31045 | case GTK_POS_BOTTOM: | |
31046 | dir = GTK_DIR_UP; | |
31047 | break; | |
31048 | case GTK_POS_LEFT: | |
31049 | dir = GTK_DIR_RIGHT; | |
31050 | break; | |
31051 | case GTK_POS_RIGHT: | |
31052 | dir = GTK_DIR_LEFT; | |
31053 | break; | |
31054 | } | |
31055 | ||
31056 | if (IA__gtk_widget_child_focus (page->child, dir)) | |
31057 | return (!(0)); | |
31058 | } | |
31059 | return (0); | |
31060 | } | |
31061 | ||
31062 | static void | |
31063 | gtk_notebook_switch_focus_tab (GtkNotebook *notebook, | |
31064 | GList *new_child) | |
31065 | { | |
31066 | GList *old_child; | |
31067 | GtkNotebookPage *page; | |
31068 | ||
31069 | if (notebook->focus_tab == new_child) | |
31070 | return; | |
31071 | ||
31072 | old_child = notebook->focus_tab; | |
31073 | notebook->focus_tab = new_child; | |
31074 | ||
31075 | if (notebook->scrollable) | |
31076 | gtk_notebook_redraw_arrows (notebook); | |
31077 | ||
31078 | if (!notebook->show_tabs || !notebook->focus_tab) | |
31079 | return; | |
31080 | ||
31081 | page = notebook->focus_tab->data; | |
31082 | if (((((((((GtkObject*) ((page->tab_label)))))->flags)) & GTK_MAPPED) != 0)) | |
31083 | gtk_notebook_redraw_tabs (notebook); | |
31084 | else | |
31085 | gtk_notebook_pages_allocate (notebook); | |
31086 | ||
31087 | gtk_notebook_switch_page (notebook, page); | |
31088 | } | |
31089 | ||
31090 | static void | |
31091 | gtk_notebook_menu_switch_page (GtkWidget *widget, | |
31092 | GtkNotebookPage *page) | |
31093 | { | |
31094 | GtkNotebook *notebook; | |
31095 | GList *children; | |
31096 | guint page_num; | |
31097 | ||
31098 | notebook = ((((GtkNotebook*) ((IA__gtk_menu_get_attach_widget (((((GtkMenu*) ((widget->parent))))))))))); | |
31099 | ||
31100 | ||
31101 | if (notebook->cur_page == page) | |
31102 | return; | |
31103 | ||
31104 | page_num = 0; | |
31105 | children = notebook->children; | |
31106 | while (children && children->data != page) | |
31107 | { | |
31108 | children = children->next; | |
31109 | page_num++; | |
31110 | } | |
31111 | ||
31112 | g_signal_emit (notebook, | |
31113 | notebook_signals[SWITCH_PAGE], | |
31114 | 0, | |
31115 | page, | |
31116 | page_num); | |
31117 | } | |
31118 | ||
31119 | ||
31120 | ||
31121 | ||
31122 | ||
31123 | ||
31124 | ||
31125 | static void | |
31126 | gtk_notebook_menu_item_create (GtkNotebook *notebook, | |
31127 | GList *list) | |
31128 | { | |
31129 | GtkNotebookPage *page; | |
31130 | GtkWidget *menu_item; | |
31131 | ||
31132 | page = list->data; | |
31133 | if (page->default_menu) | |
31134 | { | |
31135 | if (page->tab_label && (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((page->tab_label)); GType __t = ((IA__gtk_label_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) | |
31136 | page->menu_label = IA__gtk_label_new (((((GtkLabel*) ((page->tab_label)))))->label); | |
31137 | else | |
31138 | page->menu_label = IA__gtk_label_new (""); | |
31139 | IA__gtk_misc_set_alignment (((((GtkMisc*) ((page->menu_label))))), 0.0, 0.5); | |
31140 | } | |
31141 | ||
31142 | IA__gtk_widget_show (page->menu_label); | |
31143 | menu_item = IA__gtk_menu_item_new (); | |
31144 | IA__gtk_container_add (((((GtkContainer*) ((menu_item))))), page->menu_label); | |
31145 | IA__gtk_menu_shell_insert (((((GtkMenuShell*) ((notebook->menu))))), menu_item, | |
31146 | gtk_notebook_real_page_position (notebook, list)); | |
31147 | g_signal_connect_data ((menu_item), ("activate"), (((GCallback) (gtk_notebook_menu_switch_page))), (page), ((void *)0), (GConnectFlags) 0); | |
31148 | ||
31149 | if (((((((((GtkObject*) ((page->child)))))->flags)) & GTK_VISIBLE) != 0)) | |
31150 | IA__gtk_widget_show (menu_item); | |
31151 | } | |
31152 | ||
31153 | static void | |
31154 | gtk_notebook_menu_label_unparent (GtkWidget *widget, | |
31155 | gpointer data) | |
31156 | { | |
31157 | IA__gtk_widget_unparent (((((GtkBin*) ((widget)))))->child); | |
31158 | ((((GtkBin*) ((widget)))))->child = ((void *)0); | |
31159 | } | |
31160 | ||
31161 | static void | |
31162 | gtk_notebook_menu_detacher (GtkWidget *widget, | |
31163 | GtkMenu *menu) | |
31164 | { | |
31165 | GtkNotebook *notebook; | |
31166 | ||
31167 | notebook = ((((GtkNotebook*) ((widget))))); | |
31168 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (notebook->menu == (GtkWidget*) menu) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "notebook->menu == (GtkWidget*) menu"); return; }; }); | |
31169 | ||
31170 | notebook->menu = ((void *)0); | |
31171 | } | |
31172 | # 5976 "gtknotebook.c" | |
31173 | static void | |
31174 | gtk_notebook_set_homogeneous_tabs_internal (GtkNotebook *notebook, | |
31175 | gboolean homogeneous) | |
31176 | { | |
31177 | if (homogeneous == notebook->homogeneous) | |
31178 | return; | |
31179 | ||
31180 | notebook->homogeneous = homogeneous; | |
31181 | IA__gtk_widget_queue_resize (((((GtkWidget*) ((notebook)))))); | |
31182 | ||
31183 | g_object_notify (((((GObject*) ((notebook))))), "homogeneous"); | |
31184 | } | |
31185 | ||
31186 | static void | |
31187 | gtk_notebook_set_tab_border_internal (GtkNotebook *notebook, | |
31188 | guint border_width) | |
31189 | { | |
31190 | notebook->tab_hborder = border_width; | |
31191 | notebook->tab_vborder = border_width; | |
31192 | ||
31193 | if (((((((((GtkObject*) ((notebook)))))->flags)) & GTK_VISIBLE) != 0) && notebook->show_tabs) | |
31194 | IA__gtk_widget_queue_resize (((((GtkWidget*) ((notebook)))))); | |
31195 | ||
31196 | g_object_freeze_notify (((((GObject*) ((notebook)))))); | |
31197 | g_object_notify (((((GObject*) ((notebook))))), "tab-hborder"); | |
31198 | g_object_notify (((((GObject*) ((notebook))))), "tab-vborder"); | |
31199 | g_object_thaw_notify (((((GObject*) ((notebook)))))); | |
31200 | } | |
31201 | ||
31202 | static void | |
31203 | gtk_notebook_set_tab_hborder_internal (GtkNotebook *notebook, | |
31204 | guint tab_hborder) | |
31205 | { | |
31206 | if (notebook->tab_hborder == tab_hborder) | |
31207 | return; | |
31208 | ||
31209 | notebook->tab_hborder = tab_hborder; | |
31210 | ||
31211 | if (((((((((GtkObject*) ((notebook)))))->flags)) & GTK_VISIBLE) != 0) && notebook->show_tabs) | |
31212 | IA__gtk_widget_queue_resize (((((GtkWidget*) ((notebook)))))); | |
31213 | ||
31214 | g_object_notify (((((GObject*) ((notebook))))), "tab-hborder"); | |
31215 | } | |
31216 | ||
31217 | static void | |
31218 | gtk_notebook_set_tab_vborder_internal (GtkNotebook *notebook, | |
31219 | guint tab_vborder) | |
31220 | { | |
31221 | if (notebook->tab_vborder == tab_vborder) | |
31222 | return; | |
31223 | ||
31224 | notebook->tab_vborder = tab_vborder; | |
31225 | ||
31226 | if (((((((((GtkObject*) ((notebook)))))->flags)) & GTK_VISIBLE) != 0) && notebook->show_tabs) | |
31227 | IA__gtk_widget_queue_resize (((((GtkWidget*) ((notebook)))))); | |
31228 | ||
31229 | g_object_notify (((((GObject*) ((notebook))))), "tab-vborder"); | |
31230 | } | |
31231 | # 6057 "gtknotebook.c" | |
31232 | gint | |
31233 | IA__gtk_notebook_append_page (GtkNotebook *notebook, | |
31234 | GtkWidget *child, | |
31235 | GtkWidget *tab_label) | |
31236 | { | |
31237 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (-1); }; }); | |
31238 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return (-1); }; }); | |
31239 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (tab_label == ((void *)0) || (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((tab_label)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "tab_label == NULL || GTK_IS_WIDGET (tab_label)"); return (-1); }; }); | |
31240 | ||
31241 | return IA__gtk_notebook_insert_page_menu (notebook, child, tab_label, ((void *)0), -1); | |
31242 | } | |
31243 | # 6088 "gtknotebook.c" | |
31244 | gint | |
31245 | IA__gtk_notebook_append_page_menu (GtkNotebook *notebook, | |
31246 | GtkWidget *child, | |
31247 | GtkWidget *tab_label, | |
31248 | GtkWidget *menu_label) | |
31249 | { | |
31250 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (-1); }; }); | |
31251 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return (-1); }; }); | |
31252 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (tab_label == ((void *)0) || (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((tab_label)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "tab_label == NULL || GTK_IS_WIDGET (tab_label)"); return (-1); }; }); | |
31253 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (menu_label == ((void *)0) || (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((menu_label)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "menu_label == NULL || GTK_IS_WIDGET (menu_label)"); return (-1); }; }); | |
31254 | ||
31255 | return IA__gtk_notebook_insert_page_menu (notebook, child, tab_label, menu_label, -1); | |
31256 | } | |
31257 | # 6114 "gtknotebook.c" | |
31258 | gint | |
31259 | IA__gtk_notebook_prepend_page (GtkNotebook *notebook, | |
31260 | GtkWidget *child, | |
31261 | GtkWidget *tab_label) | |
31262 | { | |
31263 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (-1); }; }); | |
31264 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return (-1); }; }); | |
31265 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (tab_label == ((void *)0) || (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((tab_label)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "tab_label == NULL || GTK_IS_WIDGET (tab_label)"); return (-1); }; }); | |
31266 | ||
31267 | return IA__gtk_notebook_insert_page_menu (notebook, child, tab_label, ((void *)0), 0); | |
31268 | } | |
31269 | # 6145 "gtknotebook.c" | |
31270 | gint | |
31271 | IA__gtk_notebook_prepend_page_menu (GtkNotebook *notebook, | |
31272 | GtkWidget *child, | |
31273 | GtkWidget *tab_label, | |
31274 | GtkWidget *menu_label) | |
31275 | { | |
31276 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (-1); }; }); | |
31277 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return (-1); }; }); | |
31278 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (tab_label == ((void *)0) || (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((tab_label)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "tab_label == NULL || GTK_IS_WIDGET (tab_label)"); return (-1); }; }); | |
31279 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (menu_label == ((void *)0) || (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((menu_label)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "menu_label == NULL || GTK_IS_WIDGET (menu_label)"); return (-1); }; }); | |
31280 | ||
31281 | return IA__gtk_notebook_insert_page_menu (notebook, child, tab_label, menu_label, 0); | |
31282 | } | |
31283 | # 6173 "gtknotebook.c" | |
31284 | gint | |
31285 | IA__gtk_notebook_insert_page (GtkNotebook *notebook, | |
31286 | GtkWidget *child, | |
31287 | GtkWidget *tab_label, | |
31288 | gint position) | |
31289 | { | |
31290 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (-1); }; }); | |
31291 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return (-1); }; }); | |
31292 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (tab_label == ((void *)0) || (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((tab_label)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "tab_label == NULL || GTK_IS_WIDGET (tab_label)"); return (-1); }; }); | |
31293 | ||
31294 | return IA__gtk_notebook_insert_page_menu (notebook, child, tab_label, ((void *)0), position); | |
31295 | } | |
31296 | ||
31297 | ||
31298 | static gint | |
31299 | gtk_notebook_page_compare_tab (gconstpointer a, | |
31300 | gconstpointer b) | |
31301 | { | |
31302 | return (((GtkNotebookPage *) a)->tab_label != b); | |
31303 | } | |
31304 | ||
31305 | static gboolean | |
31306 | gtk_notebook_mnemonic_activate_switch_page (GtkWidget *child, | |
31307 | gboolean overload, | |
31308 | gpointer data) | |
31309 | { | |
31310 | GtkNotebook *notebook = ((((GtkNotebook*) ((data))))); | |
31311 | GList *list; | |
31312 | ||
31313 | list = g_list_find_custom (notebook->children, child, | |
31314 | gtk_notebook_page_compare_tab); | |
31315 | if (list) | |
31316 | { | |
31317 | GtkNotebookPage *page = list->data; | |
31318 | ||
31319 | IA__gtk_widget_grab_focus (((((GtkWidget*) ((notebook)))))); | |
31320 | gtk_notebook_switch_page (notebook, page); | |
31321 | focus_tabs_in (notebook); | |
31322 | } | |
31323 | ||
31324 | return (!(0)); | |
31325 | } | |
31326 | # 6237 "gtknotebook.c" | |
31327 | gint | |
31328 | IA__gtk_notebook_insert_page_menu (GtkNotebook *notebook, | |
31329 | GtkWidget *child, | |
31330 | GtkWidget *tab_label, | |
31331 | GtkWidget *menu_label, | |
31332 | gint position) | |
31333 | { | |
31334 | GtkNotebookClass *class; | |
31335 | ||
31336 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (-1); }; }); | |
31337 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return (-1); }; }); | |
31338 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (tab_label == ((void *)0) || (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((tab_label)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "tab_label == NULL || GTK_IS_WIDGET (tab_label)"); return (-1); }; }); | |
31339 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if (menu_label == ((void *)0) || (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((menu_label)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "menu_label == NULL || GTK_IS_WIDGET (menu_label)"); return (-1); }; }); | |
31340 | ||
31341 | class = ((((GtkNotebookClass*) (((GTypeInstance*) ((notebook)))->g_class)))); | |
31342 | ||
31343 | return (class->insert_page) (notebook, child, tab_label, menu_label, position); | |
31344 | } | |
31345 | # 6266 "gtknotebook.c" | |
31346 | void | |
31347 | IA__gtk_notebook_remove_page (GtkNotebook *notebook, | |
31348 | gint page_num) | |
31349 | { | |
31350 | GList *list = ((void *)0); | |
31351 | ||
31352 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31353 | ||
31354 | if (page_num >= 0) | |
31355 | list = g_list_nth (notebook->children, page_num); | |
31356 | else | |
31357 | list = g_list_last (notebook->children); | |
31358 | ||
31359 | if (list) | |
31360 | IA__gtk_container_remove (((((GtkContainer*) ((notebook))))), | |
31361 | ((GtkNotebookPage *) list->data)->child); | |
31362 | } | |
31363 | # 6301 "gtknotebook.c" | |
31364 | gint | |
31365 | IA__gtk_notebook_get_current_page (GtkNotebook *notebook) | |
31366 | { | |
31367 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (-1); }; }); | |
31368 | ||
31369 | if (!notebook->cur_page) | |
31370 | return -1; | |
31371 | ||
31372 | return g_list_index (notebook->children, notebook->cur_page); | |
31373 | } | |
31374 | # 6323 "gtknotebook.c" | |
31375 | GtkWidget* | |
31376 | IA__gtk_notebook_get_nth_page (GtkNotebook *notebook, | |
31377 | gint page_num) | |
31378 | { | |
31379 | GtkNotebookPage *page; | |
31380 | GList *list; | |
31381 | ||
31382 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (((void *)0)); }; }); | |
31383 | ||
31384 | if (page_num >= 0) | |
31385 | list = g_list_nth (notebook->children, page_num); | |
31386 | else | |
31387 | list = g_list_last (notebook->children); | |
31388 | ||
31389 | if (list) | |
31390 | { | |
31391 | page = list->data; | |
31392 | return page->child; | |
31393 | } | |
31394 | ||
31395 | return ((void *)0); | |
31396 | } | |
31397 | # 6356 "gtknotebook.c" | |
31398 | gint | |
31399 | IA__gtk_notebook_get_n_pages (GtkNotebook *notebook) | |
31400 | { | |
31401 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (0); }; }); | |
31402 | ||
31403 | return g_list_length (notebook->children); | |
31404 | } | |
31405 | # 6375 "gtknotebook.c" | |
31406 | gint | |
31407 | IA__gtk_notebook_page_num (GtkNotebook *notebook, | |
31408 | GtkWidget *child) | |
31409 | { | |
31410 | GList *children; | |
31411 | gint num; | |
31412 | ||
31413 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (-1); }; }); | |
31414 | ||
31415 | num = 0; | |
31416 | children = notebook->children; | |
31417 | while (children) | |
31418 | { | |
31419 | GtkNotebookPage *page = children->data; | |
31420 | ||
31421 | if (page->child == child) | |
31422 | return num; | |
31423 | ||
31424 | children = children->next; | |
31425 | num++; | |
31426 | } | |
31427 | ||
31428 | return -1; | |
31429 | } | |
31430 | # 6415 "gtknotebook.c" | |
31431 | void | |
31432 | IA__gtk_notebook_set_current_page (GtkNotebook *notebook, | |
31433 | gint page_num) | |
31434 | { | |
31435 | GList *list; | |
31436 | ||
31437 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31438 | ||
31439 | if (page_num < 0) | |
31440 | page_num = g_list_length (notebook->children) - 1; | |
31441 | ||
31442 | list = g_list_nth (notebook->children, page_num); | |
31443 | if (list) | |
31444 | gtk_notebook_switch_page (notebook, ((GtkNotebookPage *)((GList *)(list))->data)); | |
31445 | } | |
31446 | # 6438 "gtknotebook.c" | |
31447 | void | |
31448 | IA__gtk_notebook_next_page (GtkNotebook *notebook) | |
31449 | { | |
31450 | GList *list; | |
31451 | ||
31452 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31453 | ||
31454 | list = g_list_find (notebook->children, notebook->cur_page); | |
31455 | if (!list) | |
31456 | return; | |
31457 | ||
31458 | list = gtk_notebook_search_page (notebook, list, STEP_NEXT, (!(0))); | |
31459 | if (!list) | |
31460 | return; | |
31461 | ||
31462 | gtk_notebook_switch_page (notebook, ((GtkNotebookPage *)((GList *)(list))->data)); | |
31463 | } | |
31464 | # 6463 "gtknotebook.c" | |
31465 | void | |
31466 | IA__gtk_notebook_prev_page (GtkNotebook *notebook) | |
31467 | { | |
31468 | GList *list; | |
31469 | ||
31470 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31471 | ||
31472 | list = g_list_find (notebook->children, notebook->cur_page); | |
31473 | if (!list) | |
31474 | return; | |
31475 | ||
31476 | list = gtk_notebook_search_page (notebook, list, STEP_PREV, (!(0))); | |
31477 | if (!list) | |
31478 | return; | |
31479 | ||
31480 | gtk_notebook_switch_page (notebook, ((GtkNotebookPage *)((GList *)(list))->data)); | |
31481 | } | |
31482 | # 6501 "gtknotebook.c" | |
31483 | void | |
31484 | IA__gtk_notebook_set_show_border (GtkNotebook *notebook, | |
31485 | gboolean show_border) | |
31486 | { | |
31487 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31488 | ||
31489 | if (notebook->show_border != show_border) | |
31490 | { | |
31491 | notebook->show_border = show_border; | |
31492 | ||
31493 | if (((((((((GtkObject*) ((notebook)))))->flags)) & GTK_VISIBLE) != 0)) | |
31494 | IA__gtk_widget_queue_resize (((((GtkWidget*) ((notebook)))))); | |
31495 | ||
31496 | g_object_notify (((((GObject*) ((notebook))))), "show-border"); | |
31497 | } | |
31498 | } | |
31499 | # 6527 "gtknotebook.c" | |
31500 | gboolean | |
31501 | IA__gtk_notebook_get_show_border (GtkNotebook *notebook) | |
31502 | { | |
31503 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return ((0)); }; }); | |
31504 | ||
31505 | return notebook->show_border; | |
31506 | } | |
31507 | # 6542 "gtknotebook.c" | |
31508 | void | |
31509 | IA__gtk_notebook_set_show_tabs (GtkNotebook *notebook, | |
31510 | gboolean show_tabs) | |
31511 | { | |
31512 | GtkNotebookPage *page; | |
31513 | GList *children; | |
31514 | ||
31515 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31516 | ||
31517 | show_tabs = show_tabs != (0); | |
31518 | ||
31519 | if (notebook->show_tabs == show_tabs) | |
31520 | return; | |
31521 | ||
31522 | notebook->show_tabs = show_tabs; | |
31523 | children = notebook->children; | |
31524 | ||
31525 | if (!show_tabs) | |
31526 | { | |
31527 | (void) __extension__ ({ (((((((GtkObject*) ((notebook)))))->flags)) &= ~(GTK_CAN_FOCUS)); }); | |
31528 | ||
31529 | while (children) | |
31530 | { | |
31531 | page = children->data; | |
31532 | children = children->next; | |
31533 | if (page->default_tab) | |
31534 | { | |
31535 | IA__gtk_widget_destroy (page->tab_label); | |
31536 | page->tab_label = ((void *)0); | |
31537 | } | |
31538 | else | |
31539 | IA__gtk_widget_hide (page->tab_label); | |
31540 | } | |
31541 | } | |
31542 | else | |
31543 | { | |
31544 | (void) __extension__ ({ (((((((GtkObject*) ((notebook)))))->flags)) |= (GTK_CAN_FOCUS)); }); | |
31545 | gtk_notebook_update_labels (notebook); | |
31546 | } | |
31547 | IA__gtk_widget_queue_resize (((((GtkWidget*) ((notebook)))))); | |
31548 | ||
31549 | g_object_notify (((((GObject*) ((notebook))))), "show-tabs"); | |
31550 | } | |
31551 | # 6595 "gtknotebook.c" | |
31552 | gboolean | |
31553 | IA__gtk_notebook_get_show_tabs (GtkNotebook *notebook) | |
31554 | { | |
31555 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return ((0)); }; }); | |
31556 | ||
31557 | return notebook->show_tabs; | |
31558 | } | |
31559 | # 6611 "gtknotebook.c" | |
31560 | void | |
31561 | IA__gtk_notebook_set_tab_pos (GtkNotebook *notebook, | |
31562 | GtkPositionType pos) | |
31563 | { | |
31564 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31565 | ||
31566 | if (notebook->tab_pos != pos) | |
31567 | { | |
31568 | notebook->tab_pos = pos; | |
31569 | if (((((((((GtkObject*) ((notebook)))))->flags)) & GTK_VISIBLE) != 0)) | |
31570 | IA__gtk_widget_queue_resize (((((GtkWidget*) ((notebook)))))); | |
31571 | } | |
31572 | ||
31573 | g_object_notify (((((GObject*) ((notebook))))), "tab-pos"); | |
31574 | } | |
31575 | # 6636 "gtknotebook.c" | |
31576 | GtkPositionType | |
31577 | IA__gtk_notebook_get_tab_pos (GtkNotebook *notebook) | |
31578 | { | |
31579 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (GTK_POS_TOP); }; }); | |
31580 | ||
31581 | return notebook->tab_pos; | |
31582 | } | |
31583 | # 6651 "gtknotebook.c" | |
31584 | void | |
31585 | IA__gtk_notebook_set_homogeneous_tabs (GtkNotebook *notebook, | |
31586 | gboolean homogeneous) | |
31587 | { | |
31588 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31589 | ||
31590 | gtk_notebook_set_homogeneous_tabs_internal (notebook, homogeneous); | |
31591 | } | |
31592 | # 6670 "gtknotebook.c" | |
31593 | void | |
31594 | IA__gtk_notebook_set_tab_border (GtkNotebook *notebook, | |
31595 | guint border_width) | |
31596 | { | |
31597 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31598 | ||
31599 | gtk_notebook_set_tab_border_internal (notebook, border_width); | |
31600 | } | |
31601 | # 6686 "gtknotebook.c" | |
31602 | void | |
31603 | IA__gtk_notebook_set_tab_hborder (GtkNotebook *notebook, | |
31604 | guint tab_hborder) | |
31605 | { | |
31606 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31607 | ||
31608 | gtk_notebook_set_tab_hborder_internal (notebook, tab_hborder); | |
31609 | } | |
31610 | # 6702 "gtknotebook.c" | |
31611 | void | |
31612 | IA__gtk_notebook_set_tab_vborder (GtkNotebook *notebook, | |
31613 | guint tab_vborder) | |
31614 | { | |
31615 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31616 | ||
31617 | gtk_notebook_set_tab_vborder_internal (notebook, tab_vborder); | |
31618 | } | |
31619 | # 6719 "gtknotebook.c" | |
31620 | void | |
31621 | IA__gtk_notebook_set_scrollable (GtkNotebook *notebook, | |
31622 | gboolean scrollable) | |
31623 | { | |
31624 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31625 | ||
31626 | scrollable = (scrollable != (0)); | |
31627 | ||
31628 | if (scrollable != notebook->scrollable) | |
31629 | { | |
31630 | notebook->scrollable = scrollable; | |
31631 | ||
31632 | if (((((((((GtkObject*) ((notebook)))))->flags)) & GTK_VISIBLE) != 0)) | |
31633 | IA__gtk_widget_queue_resize (((((GtkWidget*) ((notebook)))))); | |
31634 | ||
31635 | g_object_notify (((((GObject*) ((notebook))))), "scrollable"); | |
31636 | } | |
31637 | } | |
31638 | # 6747 "gtknotebook.c" | |
31639 | gboolean | |
31640 | IA__gtk_notebook_get_scrollable (GtkNotebook *notebook) | |
31641 | { | |
31642 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return ((0)); }; }); | |
31643 | ||
31644 | return notebook->scrollable; | |
31645 | } | |
31646 | # 6769 "gtknotebook.c" | |
31647 | void | |
31648 | IA__gtk_notebook_popup_enable (GtkNotebook *notebook) | |
31649 | { | |
31650 | GList *list; | |
31651 | ||
31652 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31653 | ||
31654 | if (notebook->menu) | |
31655 | return; | |
31656 | ||
31657 | notebook->menu = IA__gtk_menu_new (); | |
31658 | for (list = gtk_notebook_search_page (notebook, ((void *)0), STEP_NEXT, (0)); | |
31659 | list; | |
31660 | list = gtk_notebook_search_page (notebook, list, STEP_NEXT, (0))) | |
31661 | gtk_notebook_menu_item_create (notebook, list); | |
31662 | ||
31663 | gtk_notebook_update_labels (notebook); | |
31664 | IA__gtk_menu_attach_to_widget (((((GtkMenu*) ((notebook->menu))))), | |
31665 | ((((GtkWidget*) ((notebook))))), | |
31666 | gtk_notebook_menu_detacher); | |
31667 | ||
31668 | g_object_notify (((((GObject*) ((notebook))))), "enable-popup"); | |
31669 | } | |
31670 | ||
31671 | ||
31672 | ||
31673 | ||
31674 | ||
31675 | ||
31676 | ||
31677 | void | |
31678 | IA__gtk_notebook_popup_disable (GtkNotebook *notebook) | |
31679 | { | |
31680 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31681 | ||
31682 | if (!notebook->menu) | |
31683 | return; | |
31684 | ||
31685 | IA__gtk_container_foreach (((((GtkContainer*) ((notebook->menu))))), | |
31686 | (GtkCallback) gtk_notebook_menu_label_unparent, ((void *)0)); | |
31687 | IA__gtk_widget_destroy (notebook->menu); | |
31688 | ||
31689 | g_object_notify (((((GObject*) ((notebook))))), "enable-popup"); | |
31690 | } | |
31691 | # 6841 "gtknotebook.c" | |
31692 | GtkWidget * | |
31693 | IA__gtk_notebook_get_tab_label (GtkNotebook *notebook, | |
31694 | GtkWidget *child) | |
31695 | { | |
31696 | GList *list; | |
31697 | ||
31698 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (((void *)0)); }; }); | |
31699 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return (((void *)0)); }; }); | |
31700 | ||
31701 | list = gtk_notebook_find_child (notebook, child, ((void *)0)); | |
31702 | if (!list) | |
31703 | return ((void *)0); | |
31704 | ||
31705 | if (((GtkNotebookPage *)((GList *)(list))->data)->default_tab) | |
31706 | return ((void *)0); | |
31707 | ||
31708 | return ((GtkNotebookPage *)((GList *)(list))->data)->tab_label; | |
31709 | } | |
31710 | # 6870 "gtknotebook.c" | |
31711 | void | |
31712 | IA__gtk_notebook_set_tab_label (GtkNotebook *notebook, | |
31713 | GtkWidget *child, | |
31714 | GtkWidget *tab_label) | |
31715 | { | |
31716 | GtkNotebookPage *page; | |
31717 | GList *list; | |
31718 | ||
31719 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31720 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return; }; }); | |
31721 | ||
31722 | list = gtk_notebook_find_child (notebook, child, ((void *)0)); | |
31723 | if (!list) | |
31724 | return; | |
31725 | ||
31726 | ||
31727 | ||
31728 | ||
31729 | page = list->data; | |
31730 | ||
31731 | if (page->tab_label == tab_label) | |
31732 | return; | |
31733 | ||
31734 | ||
31735 | gtk_notebook_remove_tab_label (notebook, page); | |
31736 | ||
31737 | if (tab_label) | |
31738 | { | |
31739 | page->default_tab = (0); | |
31740 | page->tab_label = tab_label; | |
31741 | IA__gtk_widget_set_parent (page->tab_label, ((((GtkWidget*) ((notebook)))))); | |
31742 | } | |
31743 | else | |
31744 | { | |
31745 | page->default_tab = (!(0)); | |
31746 | page->tab_label = ((void *)0); | |
31747 | ||
31748 | if (notebook->show_tabs) | |
31749 | { | |
31750 | gchar string[32]; | |
31751 | ||
31752 | g_snprintf (string, sizeof(string), dcgettext ("gtk20", "Page %u", __LC_MESSAGES), | |
31753 | gtk_notebook_real_page_position (notebook, list)); | |
31754 | page->tab_label = IA__gtk_label_new (string); | |
31755 | IA__gtk_widget_set_parent (page->tab_label, ((((GtkWidget*) ((notebook)))))); | |
31756 | } | |
31757 | } | |
31758 | ||
31759 | if (page->tab_label) | |
31760 | page->mnemonic_activate_signal = | |
31761 | g_signal_connect_data ((page->tab_label), ("mnemonic_activate"), (((GCallback) (gtk_notebook_mnemonic_activate_switch_page))), (notebook), ((void *)0), (GConnectFlags) 0); | |
31762 | ||
31763 | ||
31764 | ||
31765 | ||
31766 | if (notebook->show_tabs && ((((((((GtkObject*) ((child)))))->flags)) & GTK_VISIBLE) != 0)) | |
31767 | { | |
31768 | IA__gtk_widget_show (page->tab_label); | |
31769 | IA__gtk_widget_queue_resize (((((GtkWidget*) ((notebook)))))); | |
31770 | } | |
31771 | ||
31772 | gtk_notebook_update_tab_states (notebook); | |
31773 | IA__gtk_widget_child_notify (child, "tab-label"); | |
31774 | } | |
31775 | # 6944 "gtknotebook.c" | |
31776 | void | |
31777 | IA__gtk_notebook_set_tab_label_text (GtkNotebook *notebook, | |
31778 | GtkWidget *child, | |
31779 | const gchar *tab_text) | |
31780 | { | |
31781 | GtkWidget *tab_label = ((void *)0); | |
31782 | ||
31783 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31784 | ||
31785 | if (tab_text) | |
31786 | tab_label = IA__gtk_label_new (tab_text); | |
31787 | IA__gtk_notebook_set_tab_label (notebook, child, tab_label); | |
31788 | IA__gtk_widget_child_notify (child, "tab-label"); | |
31789 | } | |
31790 | # 6972 "gtknotebook.c" | |
31791 | const gchar * | |
31792 | IA__gtk_notebook_get_tab_label_text (GtkNotebook *notebook, | |
31793 | GtkWidget *child) | |
31794 | { | |
31795 | GtkWidget *tab_label; | |
31796 | ||
31797 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (((void *)0)); }; }); | |
31798 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return (((void *)0)); }; }); | |
31799 | ||
31800 | tab_label = IA__gtk_notebook_get_tab_label (notebook, child); | |
31801 | ||
31802 | if (tab_label && (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((tab_label)); GType __t = ((IA__gtk_label_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) | |
31803 | return IA__gtk_label_get_text (((((GtkLabel*) ((tab_label)))))); | |
31804 | else | |
31805 | return ((void *)0); | |
31806 | } | |
31807 | # 7000 "gtknotebook.c" | |
31808 | GtkWidget* | |
31809 | IA__gtk_notebook_get_menu_label (GtkNotebook *notebook, | |
31810 | GtkWidget *child) | |
31811 | { | |
31812 | GList *list; | |
31813 | ||
31814 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (((void *)0)); }; }); | |
31815 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return (((void *)0)); }; }); | |
31816 | ||
31817 | list = gtk_notebook_find_child (notebook, child, ((void *)0)); | |
31818 | if (!list) | |
31819 | return ((void *)0); | |
31820 | ||
31821 | if (((GtkNotebookPage *)((GList *)(list))->data)->default_menu) | |
31822 | return ((void *)0); | |
31823 | ||
31824 | return ((GtkNotebookPage *)((GList *)(list))->data)->menu_label; | |
31825 | } | |
31826 | # 7027 "gtknotebook.c" | |
31827 | void | |
31828 | IA__gtk_notebook_set_menu_label (GtkNotebook *notebook, | |
31829 | GtkWidget *child, | |
31830 | GtkWidget *menu_label) | |
31831 | { | |
31832 | GtkNotebookPage *page; | |
31833 | GList *list; | |
31834 | ||
31835 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31836 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return; }; }); | |
31837 | ||
31838 | list = gtk_notebook_find_child (notebook, child, ((void *)0)); | |
31839 | if (!list) | |
31840 | return; | |
31841 | ||
31842 | page = list->data; | |
31843 | if (page->menu_label) | |
31844 | { | |
31845 | if (notebook->menu) | |
31846 | IA__gtk_container_remove (((((GtkContainer*) ((notebook->menu))))), | |
31847 | page->menu_label->parent); | |
31848 | ||
31849 | if (!page->default_menu) | |
31850 | g_object_unref (page->menu_label); | |
31851 | } | |
31852 | ||
31853 | if (menu_label) | |
31854 | { | |
31855 | page->menu_label = menu_label; | |
31856 | g_object_ref_sink (page->menu_label); | |
31857 | page->default_menu = (0); | |
31858 | } | |
31859 | else | |
31860 | page->default_menu = (!(0)); | |
31861 | ||
31862 | if (notebook->menu) | |
31863 | gtk_notebook_menu_item_create (notebook, list); | |
31864 | IA__gtk_widget_child_notify (child, "menu-label"); | |
31865 | } | |
31866 | # 7075 "gtknotebook.c" | |
31867 | void | |
31868 | IA__gtk_notebook_set_menu_label_text (GtkNotebook *notebook, | |
31869 | GtkWidget *child, | |
31870 | const gchar *menu_text) | |
31871 | { | |
31872 | GtkWidget *menu_label = ((void *)0); | |
31873 | ||
31874 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31875 | ||
31876 | if (menu_text) | |
31877 | { | |
31878 | menu_label = IA__gtk_label_new (menu_text); | |
31879 | IA__gtk_misc_set_alignment (((((GtkMisc*) ((menu_label))))), 0.0, 0.5); | |
31880 | } | |
31881 | IA__gtk_notebook_set_menu_label (notebook, child, menu_label); | |
31882 | IA__gtk_widget_child_notify (child, "menu-label"); | |
31883 | } | |
31884 | # 7107 "gtknotebook.c" | |
31885 | const gchar * | |
31886 | IA__gtk_notebook_get_menu_label_text (GtkNotebook *notebook, | |
31887 | GtkWidget *child) | |
31888 | { | |
31889 | GtkWidget *menu_label; | |
31890 | ||
31891 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (((void *)0)); }; }); | |
31892 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return (((void *)0)); }; }); | |
31893 | ||
31894 | menu_label = IA__gtk_notebook_get_menu_label (notebook, child); | |
31895 | ||
31896 | if (menu_label && (((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((menu_label)); GType __t = ((IA__gtk_label_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) | |
31897 | return IA__gtk_label_get_text (((((GtkLabel*) ((menu_label)))))); | |
31898 | else | |
31899 | return ((void *)0); | |
31900 | } | |
31901 | ||
31902 | ||
31903 | ||
31904 | static void | |
31905 | gtk_notebook_child_reordered (GtkNotebook *notebook, | |
31906 | GtkNotebookPage *page) | |
31907 | { | |
31908 | if (notebook->menu) | |
31909 | { | |
31910 | GtkWidget *menu_item; | |
31911 | ||
31912 | menu_item = page->menu_label->parent; | |
31913 | IA__gtk_container_remove (((((GtkContainer*) ((menu_item))))), page->menu_label); | |
31914 | IA__gtk_container_remove (((((GtkContainer*) ((notebook->menu))))), menu_item); | |
31915 | gtk_notebook_menu_item_create (notebook, g_list_find (notebook->children, page)); | |
31916 | } | |
31917 | ||
31918 | gtk_notebook_update_tab_states (notebook); | |
31919 | gtk_notebook_update_labels (notebook); | |
31920 | } | |
31921 | # 7156 "gtknotebook.c" | |
31922 | void | |
31923 | IA__gtk_notebook_set_tab_label_packing (GtkNotebook *notebook, | |
31924 | GtkWidget *child, | |
31925 | gboolean expand, | |
31926 | gboolean fill, | |
31927 | GtkPackType pack_type) | |
31928 | { | |
31929 | GtkNotebookPage *page; | |
31930 | GList *list; | |
31931 | ||
31932 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31933 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return; }; }); | |
31934 | ||
31935 | list = gtk_notebook_find_child (notebook, child, ((void *)0)); | |
31936 | if (!list) | |
31937 | return; | |
31938 | ||
31939 | page = list->data; | |
31940 | expand = expand != (0); | |
31941 | fill = fill != (0); | |
31942 | if (page->pack == pack_type && page->expand == expand && page->fill == fill) | |
31943 | return; | |
31944 | ||
31945 | IA__gtk_widget_freeze_child_notify (child); | |
31946 | page->expand = expand; | |
31947 | IA__gtk_widget_child_notify (child, "tab-expand"); | |
31948 | page->fill = fill; | |
31949 | IA__gtk_widget_child_notify (child, "tab-fill"); | |
31950 | if (page->pack != pack_type) | |
31951 | { | |
31952 | page->pack = pack_type; | |
31953 | gtk_notebook_child_reordered (notebook, page); | |
31954 | } | |
31955 | IA__gtk_widget_child_notify (child, "tab-pack"); | |
31956 | IA__gtk_widget_child_notify (child, "position"); | |
31957 | if (notebook->show_tabs) | |
31958 | gtk_notebook_pages_allocate (notebook); | |
31959 | IA__gtk_widget_thaw_child_notify (child); | |
31960 | } | |
31961 | # 7207 "gtknotebook.c" | |
31962 | void | |
31963 | IA__gtk_notebook_query_tab_label_packing (GtkNotebook *notebook, | |
31964 | GtkWidget *child, | |
31965 | gboolean *expand, | |
31966 | gboolean *fill, | |
31967 | GtkPackType *pack_type) | |
31968 | { | |
31969 | GList *list; | |
31970 | ||
31971 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31972 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return; }; }); | |
31973 | ||
31974 | list = gtk_notebook_find_child (notebook, child, ((void *)0)); | |
31975 | if (!list) | |
31976 | return; | |
31977 | ||
31978 | if (expand) | |
31979 | *expand = ((GtkNotebookPage *)((GList *)(list))->data)->expand; | |
31980 | if (fill) | |
31981 | *fill = ((GtkNotebookPage *)((GList *)(list))->data)->fill; | |
31982 | if (pack_type) | |
31983 | *pack_type = ((GtkNotebookPage *)((GList *)(list))->data)->pack; | |
31984 | } | |
31985 | # 7242 "gtknotebook.c" | |
31986 | void | |
31987 | IA__gtk_notebook_reorder_child (GtkNotebook *notebook, | |
31988 | GtkWidget *child, | |
31989 | gint position) | |
31990 | { | |
31991 | GList *list, *new_list; | |
31992 | GtkNotebookPage *page; | |
31993 | gint old_pos; | |
31994 | gint max_pos; | |
31995 | ||
31996 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
31997 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return; }; }); | |
31998 | ||
31999 | list = gtk_notebook_find_child (notebook, child, ((void *)0)); | |
32000 | if (!list) | |
32001 | return; | |
32002 | ||
32003 | max_pos = g_list_length (notebook->children) - 1; | |
32004 | if (position < 0 || position > max_pos) | |
32005 | position = max_pos; | |
32006 | ||
32007 | old_pos = g_list_position (notebook->children, list); | |
32008 | ||
32009 | if (old_pos == position) | |
32010 | return; | |
32011 | ||
32012 | page = list->data; | |
32013 | notebook->children = g_list_delete_link (notebook->children, list); | |
32014 | ||
32015 | notebook->children = g_list_insert (notebook->children, page, position); | |
32016 | new_list = g_list_nth (notebook->children, position); | |
32017 | ||
32018 | ||
32019 | if (notebook->first_tab == list) | |
32020 | notebook->first_tab = new_list; | |
32021 | if (notebook->focus_tab == list) | |
32022 | notebook->focus_tab = new_list; | |
32023 | ||
32024 | IA__gtk_widget_freeze_child_notify (child); | |
32025 | ||
32026 | ||
32027 | gtk_notebook_child_reordered (notebook, page); | |
32028 | IA__gtk_widget_child_notify (child, "tab-pack"); | |
32029 | IA__gtk_widget_child_notify (child, "position"); | |
32030 | ||
32031 | if (notebook->show_tabs) | |
32032 | gtk_notebook_pages_allocate (notebook); | |
32033 | ||
32034 | IA__gtk_widget_thaw_child_notify (child); | |
32035 | ||
32036 | g_signal_emit (notebook, | |
32037 | notebook_signals[PAGE_REORDERED], | |
32038 | 0, | |
32039 | child, | |
32040 | position); | |
32041 | } | |
32042 | # 7310 "gtknotebook.c" | |
32043 | void | |
32044 | IA__gtk_notebook_set_window_creation_hook (GtkNotebookWindowCreationFunc func, | |
32045 | gpointer data, | |
32046 | GDestroyNotify destroy) | |
32047 | { | |
32048 | if (window_creation_hook_destroy) | |
32049 | window_creation_hook_destroy (window_creation_hook_data); | |
32050 | ||
32051 | window_creation_hook = func; | |
32052 | window_creation_hook_data = data; | |
32053 | window_creation_hook_destroy = destroy; | |
32054 | } | |
32055 | # 7336 "gtknotebook.c" | |
32056 | void | |
32057 | IA__gtk_notebook_set_group_id (GtkNotebook *notebook, | |
32058 | gint group_id) | |
32059 | { | |
32060 | gpointer group; | |
32061 | ||
32062 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
32063 | ||
32064 | ||
32065 | group = ((gpointer) (group_id + 1)); | |
32066 | IA__gtk_notebook_set_group (notebook, group); | |
32067 | } | |
32068 | # 7361 "gtknotebook.c" | |
32069 | void | |
32070 | IA__gtk_notebook_set_group (GtkNotebook *notebook, | |
32071 | gpointer group) | |
32072 | { | |
32073 | GtkNotebookPrivate *priv; | |
32074 | ||
32075 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
32076 | ||
32077 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
32078 | ||
32079 | if (priv->group != group) | |
32080 | { | |
32081 | priv->group = group; | |
32082 | g_object_notify (((((GObject*) ((notebook))))), "group-id"); | |
32083 | g_object_notify (((((GObject*) ((notebook))))), "group"); | |
32084 | } | |
32085 | } | |
32086 | # 7390 "gtknotebook.c" | |
32087 | gint | |
32088 | IA__gtk_notebook_get_group_id (GtkNotebook *notebook) | |
32089 | { | |
32090 | GtkNotebookPrivate *priv; | |
32091 | ||
32092 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (-1); }; }); | |
32093 | ||
32094 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
32095 | ||
32096 | ||
32097 | return ((gint) (priv->group)) - 1; | |
32098 | } | |
32099 | # 7413 "gtknotebook.c" | |
32100 | gpointer | |
32101 | IA__gtk_notebook_get_group (GtkNotebook *notebook) | |
32102 | { | |
32103 | GtkNotebookPrivate *priv; | |
32104 | ||
32105 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return (((void *)0)); }; }); | |
32106 | ||
32107 | priv = (((GtkNotebookPrivate*) g_type_instance_get_private ((GTypeInstance*) ((notebook)), ((IA__gtk_notebook_get_type ()))))); | |
32108 | return priv->group; | |
32109 | } | |
32110 | # 7435 "gtknotebook.c" | |
32111 | gboolean | |
32112 | IA__gtk_notebook_get_tab_reorderable (GtkNotebook *notebook, | |
32113 | GtkWidget *child) | |
32114 | { | |
32115 | GList *list; | |
32116 | ||
32117 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return ((0)); }; }); | |
32118 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return ((0)); }; }); | |
32119 | ||
32120 | list = gtk_notebook_find_child (notebook, child, ((void *)0)); | |
32121 | if (!list) | |
32122 | return (0); | |
32123 | ||
32124 | return ((GtkNotebookPage *)((GList *)(list))->data)->reorderable; | |
32125 | } | |
32126 | # 7462 "gtknotebook.c" | |
32127 | void | |
32128 | IA__gtk_notebook_set_tab_reorderable (GtkNotebook *notebook, | |
32129 | GtkWidget *child, | |
32130 | gboolean reorderable) | |
32131 | { | |
32132 | GList *list; | |
32133 | ||
32134 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
32135 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return; }; }); | |
32136 | ||
32137 | list = gtk_notebook_find_child (notebook, child, ((void *)0)); | |
32138 | if (!list) | |
32139 | return; | |
32140 | ||
32141 | if (((GtkNotebookPage *)((GList *)(list))->data)->reorderable != reorderable) | |
32142 | { | |
32143 | ((GtkNotebookPage *)((GList *)(list))->data)->reorderable = (reorderable == (!(0))); | |
32144 | IA__gtk_widget_child_notify (child, "reorderable"); | |
32145 | } | |
32146 | } | |
32147 | # 7494 "gtknotebook.c" | |
32148 | gboolean | |
32149 | IA__gtk_notebook_get_tab_detachable (GtkNotebook *notebook, | |
32150 | GtkWidget *child) | |
32151 | { | |
32152 | GList *list; | |
32153 | ||
32154 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return ((0)); }; }); | |
32155 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return ((0)); }; }); | |
32156 | ||
32157 | list = gtk_notebook_find_child (notebook, child, ((void *)0)); | |
32158 | if (!list) | |
32159 | return (0); | |
32160 | ||
32161 | return ((GtkNotebookPage *)((GList *)(list))->data)->detachable; | |
32162 | } | |
32163 | # 7556 "gtknotebook.c" | |
32164 | void | |
32165 | IA__gtk_notebook_set_tab_detachable (GtkNotebook *notebook, | |
32166 | GtkWidget *child, | |
32167 | gboolean detachable) | |
32168 | { | |
32169 | GList *list; | |
32170 | ||
32171 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((notebook)); GType __t = ((IA__gtk_notebook_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_NOTEBOOK (notebook)"); return; }; }); | |
32172 | (void) __extension__ ({ if (__builtin_expect (__extension__ ({ int _g_boolean_var_; if ((((__extension__ ({ GTypeInstance *__inst = (GTypeInstance*) ((child)); GType __t = ((IA__gtk_widget_get_type ())); gboolean __r; if (__inst && __inst->g_class && __inst->g_class->g_type == __t) __r = (!(0)); else __r = g_type_check_instance_is_a (__inst, __t); __r; }))))) _g_boolean_var_ = 1; else _g_boolean_var_ = 0; _g_boolean_var_; }), 1)) { } else { g_return_if_fail_warning ("Gtk", __PRETTY_FUNCTION__, "GTK_IS_WIDGET (child)"); return; }; }); | |
32173 | ||
32174 | list = gtk_notebook_find_child (notebook, child, ((void *)0)); | |
32175 | if (!list) | |
32176 | return; | |
32177 | ||
32178 | if (((GtkNotebookPage *)((GList *)(list))->data)->detachable != detachable) | |
32179 | { | |
32180 | ((GtkNotebookPage *)((GList *)(list))->data)->detachable = (detachable == (!(0))); | |
32181 | IA__gtk_widget_child_notify (child, "detachable"); | |
32182 | } | |
32183 | } | |
32184 | ||
32185 | ||
32186 | # 1 "gtkaliasdef.c" 1 | |
32187 | # 5735 "gtkaliasdef.c" | |
32188 | extern __typeof (gtk_notebook_append_page) gtk_notebook_append_page __attribute((alias("IA__gtk_notebook_append_page"), visibility("default"))); | |
32189 | ||
32190 | ||
32191 | extern __typeof (gtk_notebook_append_page_menu) gtk_notebook_append_page_menu __attribute((alias("IA__gtk_notebook_append_page_menu"), visibility("default"))); | |
32192 | ||
32193 | ||
32194 | extern __typeof (gtk_notebook_get_current_page) gtk_notebook_get_current_page __attribute((alias("IA__gtk_notebook_get_current_page"), visibility("default"))); | |
32195 | ||
32196 | ||
32197 | extern __typeof (gtk_notebook_get_menu_label) gtk_notebook_get_menu_label __attribute((alias("IA__gtk_notebook_get_menu_label"), visibility("default"))); | |
32198 | ||
32199 | ||
32200 | extern __typeof (gtk_notebook_get_menu_label_text) gtk_notebook_get_menu_label_text __attribute((alias("IA__gtk_notebook_get_menu_label_text"), visibility("default"))); | |
32201 | ||
32202 | ||
32203 | extern __typeof (gtk_notebook_get_n_pages) gtk_notebook_get_n_pages __attribute((alias("IA__gtk_notebook_get_n_pages"), visibility("default"))); | |
32204 | ||
32205 | ||
32206 | extern __typeof (gtk_notebook_get_nth_page) gtk_notebook_get_nth_page __attribute((alias("IA__gtk_notebook_get_nth_page"), visibility("default"))); | |
32207 | ||
32208 | ||
32209 | extern __typeof (gtk_notebook_get_scrollable) gtk_notebook_get_scrollable __attribute((alias("IA__gtk_notebook_get_scrollable"), visibility("default"))); | |
32210 | ||
32211 | ||
32212 | extern __typeof (gtk_notebook_get_show_border) gtk_notebook_get_show_border __attribute((alias("IA__gtk_notebook_get_show_border"), visibility("default"))); | |
32213 | ||
32214 | ||
32215 | extern __typeof (gtk_notebook_get_show_tabs) gtk_notebook_get_show_tabs __attribute((alias("IA__gtk_notebook_get_show_tabs"), visibility("default"))); | |
32216 | ||
32217 | ||
32218 | extern __typeof (gtk_notebook_get_tab_label) gtk_notebook_get_tab_label __attribute((alias("IA__gtk_notebook_get_tab_label"), visibility("default"))); | |
32219 | ||
32220 | ||
32221 | extern __typeof (gtk_notebook_get_tab_label_text) gtk_notebook_get_tab_label_text __attribute((alias("IA__gtk_notebook_get_tab_label_text"), visibility("default"))); | |
32222 | ||
32223 | ||
32224 | extern __typeof (gtk_notebook_get_tab_pos) gtk_notebook_get_tab_pos __attribute((alias("IA__gtk_notebook_get_tab_pos"), visibility("default"))); | |
32225 | ||
32226 | ||
32227 | extern __typeof (gtk_notebook_get_type) gtk_notebook_get_type __attribute((alias("IA__gtk_notebook_get_type"), visibility("default"))); | |
32228 | ||
32229 | ||
32230 | extern __typeof (gtk_notebook_insert_page) gtk_notebook_insert_page __attribute((alias("IA__gtk_notebook_insert_page"), visibility("default"))); | |
32231 | ||
32232 | ||
32233 | extern __typeof (gtk_notebook_insert_page_menu) gtk_notebook_insert_page_menu __attribute((alias("IA__gtk_notebook_insert_page_menu"), visibility("default"))); | |
32234 | ||
32235 | ||
32236 | extern __typeof (gtk_notebook_new) gtk_notebook_new __attribute((alias("IA__gtk_notebook_new"), visibility("default"))); | |
32237 | ||
32238 | ||
32239 | extern __typeof (gtk_notebook_next_page) gtk_notebook_next_page __attribute((alias("IA__gtk_notebook_next_page"), visibility("default"))); | |
32240 | ||
32241 | ||
32242 | extern __typeof (gtk_notebook_page_num) gtk_notebook_page_num __attribute((alias("IA__gtk_notebook_page_num"), visibility("default"))); | |
32243 | ||
32244 | ||
32245 | extern __typeof (gtk_notebook_popup_disable) gtk_notebook_popup_disable __attribute((alias("IA__gtk_notebook_popup_disable"), visibility("default"))); | |
32246 | ||
32247 | ||
32248 | extern __typeof (gtk_notebook_popup_enable) gtk_notebook_popup_enable __attribute((alias("IA__gtk_notebook_popup_enable"), visibility("default"))); | |
32249 | ||
32250 | ||
32251 | extern __typeof (gtk_notebook_prepend_page) gtk_notebook_prepend_page __attribute((alias("IA__gtk_notebook_prepend_page"), visibility("default"))); | |
32252 | ||
32253 | ||
32254 | extern __typeof (gtk_notebook_prepend_page_menu) gtk_notebook_prepend_page_menu __attribute((alias("IA__gtk_notebook_prepend_page_menu"), visibility("default"))); | |
32255 | ||
32256 | ||
32257 | extern __typeof (gtk_notebook_prev_page) gtk_notebook_prev_page __attribute((alias("IA__gtk_notebook_prev_page"), visibility("default"))); | |
32258 | ||
32259 | ||
32260 | extern __typeof (gtk_notebook_query_tab_label_packing) gtk_notebook_query_tab_label_packing __attribute((alias("IA__gtk_notebook_query_tab_label_packing"), visibility("default"))); | |
32261 | ||
32262 | ||
32263 | extern __typeof (gtk_notebook_remove_page) gtk_notebook_remove_page __attribute((alias("IA__gtk_notebook_remove_page"), visibility("default"))); | |
32264 | ||
32265 | ||
32266 | extern __typeof (gtk_notebook_reorder_child) gtk_notebook_reorder_child __attribute((alias("IA__gtk_notebook_reorder_child"), visibility("default"))); | |
32267 | ||
32268 | ||
32269 | extern __typeof (gtk_notebook_set_current_page) gtk_notebook_set_current_page __attribute((alias("IA__gtk_notebook_set_current_page"), visibility("default"))); | |
32270 | ||
32271 | ||
32272 | ||
32273 | extern __typeof (gtk_notebook_set_homogeneous_tabs) gtk_notebook_set_homogeneous_tabs __attribute((alias("IA__gtk_notebook_set_homogeneous_tabs"), visibility("default"))); | |
32274 | ||
32275 | ||
32276 | extern __typeof (gtk_notebook_set_tab_border) gtk_notebook_set_tab_border __attribute((alias("IA__gtk_notebook_set_tab_border"), visibility("default"))); | |
32277 | ||
32278 | ||
32279 | extern __typeof (gtk_notebook_set_tab_hborder) gtk_notebook_set_tab_hborder __attribute((alias("IA__gtk_notebook_set_tab_hborder"), visibility("default"))); | |
32280 | ||
32281 | ||
32282 | extern __typeof (gtk_notebook_set_tab_vborder) gtk_notebook_set_tab_vborder __attribute((alias("IA__gtk_notebook_set_tab_vborder"), visibility("default"))); | |
32283 | ||
32284 | ||
32285 | ||
32286 | extern __typeof (gtk_notebook_set_menu_label) gtk_notebook_set_menu_label __attribute((alias("IA__gtk_notebook_set_menu_label"), visibility("default"))); | |
32287 | ||
32288 | ||
32289 | extern __typeof (gtk_notebook_set_menu_label_text) gtk_notebook_set_menu_label_text __attribute((alias("IA__gtk_notebook_set_menu_label_text"), visibility("default"))); | |
32290 | ||
32291 | ||
32292 | extern __typeof (gtk_notebook_set_scrollable) gtk_notebook_set_scrollable __attribute((alias("IA__gtk_notebook_set_scrollable"), visibility("default"))); | |
32293 | ||
32294 | ||
32295 | extern __typeof (gtk_notebook_set_show_border) gtk_notebook_set_show_border __attribute((alias("IA__gtk_notebook_set_show_border"), visibility("default"))); | |
32296 | ||
32297 | ||
32298 | extern __typeof (gtk_notebook_set_show_tabs) gtk_notebook_set_show_tabs __attribute((alias("IA__gtk_notebook_set_show_tabs"), visibility("default"))); | |
32299 | ||
32300 | ||
32301 | extern __typeof (gtk_notebook_set_tab_label) gtk_notebook_set_tab_label __attribute((alias("IA__gtk_notebook_set_tab_label"), visibility("default"))); | |
32302 | ||
32303 | ||
32304 | extern __typeof (gtk_notebook_set_tab_label_packing) gtk_notebook_set_tab_label_packing __attribute((alias("IA__gtk_notebook_set_tab_label_packing"), visibility("default"))); | |
32305 | ||
32306 | ||
32307 | extern __typeof (gtk_notebook_set_tab_label_text) gtk_notebook_set_tab_label_text __attribute((alias("IA__gtk_notebook_set_tab_label_text"), visibility("default"))); | |
32308 | ||
32309 | ||
32310 | extern __typeof (gtk_notebook_set_tab_pos) gtk_notebook_set_tab_pos __attribute((alias("IA__gtk_notebook_set_tab_pos"), visibility("default"))); | |
32311 | ||
32312 | ||
32313 | extern __typeof (gtk_notebook_set_window_creation_hook) gtk_notebook_set_window_creation_hook __attribute((alias("IA__gtk_notebook_set_window_creation_hook"), visibility("default"))); | |
32314 | ||
32315 | ||
32316 | ||
32317 | extern __typeof (gtk_notebook_get_group_id) gtk_notebook_get_group_id __attribute((alias("IA__gtk_notebook_get_group_id"), visibility("default"))); | |
32318 | ||
32319 | ||
32320 | extern __typeof (gtk_notebook_set_group_id) gtk_notebook_set_group_id __attribute((alias("IA__gtk_notebook_set_group_id"), visibility("default"))); | |
32321 | ||
32322 | ||
32323 | ||
32324 | extern __typeof (gtk_notebook_get_group) gtk_notebook_get_group __attribute((alias("IA__gtk_notebook_get_group"), visibility("default"))); | |
32325 | ||
32326 | ||
32327 | extern __typeof (gtk_notebook_set_group) gtk_notebook_set_group __attribute((alias("IA__gtk_notebook_set_group"), visibility("default"))); | |
32328 | ||
32329 | ||
32330 | extern __typeof (gtk_notebook_get_tab_reorderable) gtk_notebook_get_tab_reorderable __attribute((alias("IA__gtk_notebook_get_tab_reorderable"), visibility("default"))); | |
32331 | ||
32332 | ||
32333 | extern __typeof (gtk_notebook_set_tab_reorderable) gtk_notebook_set_tab_reorderable __attribute((alias("IA__gtk_notebook_set_tab_reorderable"), visibility("default"))); | |
32334 | ||
32335 | ||
32336 | extern __typeof (gtk_notebook_get_tab_detachable) gtk_notebook_get_tab_detachable __attribute((alias("IA__gtk_notebook_get_tab_detachable"), visibility("default"))); | |
32337 | ||
32338 | ||
32339 | extern __typeof (gtk_notebook_set_tab_detachable) gtk_notebook_set_tab_detachable __attribute((alias("IA__gtk_notebook_set_tab_detachable"), visibility("default"))); | |
32340 | # 7578 "gtknotebook.c" 2 |