]> git.wh0rd.org - ICEs.git/blob - 137062/ice.ii
initial import
[ICEs.git] / 137062 / ice.ii
1 // /usr/libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1 -fpreprocessed /var/tmp/ccache/maze.tmp.Fluid.27235.i -quiet -dumpbase maze.tmp.Fluid.27235.i -march=pentium4 -mmmx -msse -auxbase-strip /var/tmp/ccache/tmp.hash.Fluid.27235.o -O2 -Wall -fforce-addr -fomit-frame-pointer -ftree-vectorize -fomit-frame-pointer -o - -frandom-seed=0
2 # 1 "maze.c"
3 # 1 "<built-in>"
4 # 1 "<command line>"
5 # 1 "maze.c"
6 # 40 "maze.c"
7
8 # 1 "../../config.h" 1
9 # 41 "maze.c" 2
10
11
12 # 1 "/usr/include/stdio.h" 1 3 4
13 # 28 "/usr/include/stdio.h" 3 4
14
15 # 1 "/usr/include/features.h" 1 3 4
16 # 323 "/usr/include/features.h" 3 4
17
18 # 1 "/usr/include/sys/cdefs.h" 1 3 4
19 # 313 "/usr/include/sys/cdefs.h" 3 4
20
21 # 1 "/usr/include/bits/wordsize.h" 1 3 4
22 # 314 "/usr/include/sys/cdefs.h" 2 3 4
23 # 324 "/usr/include/features.h" 2 3 4
24 # 346 "/usr/include/features.h" 3 4
25
26 # 1 "/usr/include/gnu/stubs.h" 1 3 4
27
28
29
30
31 # 1 "/usr/include/bits/wordsize.h" 1 3 4
32 # 5 "/usr/include/gnu/stubs.h" 2 3 4
33
34
35
36 # 1 "/usr/include/gnu/stubs-32.h" 1 3 4
37 # 8 "/usr/include/gnu/stubs.h" 2 3 4
38 # 347 "/usr/include/features.h" 2 3 4
39 # 29 "/usr/include/stdio.h" 2 3 4
40
41
42
43
44
45
46 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
47 # 214 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4
48 typedef unsigned int size_t;
49 # 35 "/usr/include/stdio.h" 2 3 4
50
51
52 # 1 "/usr/include/bits/types.h" 1 3 4
53 # 28 "/usr/include/bits/types.h" 3 4
54
55 # 1 "/usr/include/bits/wordsize.h" 1 3 4
56 # 29 "/usr/include/bits/types.h" 2 3 4
57
58
59
60 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
61 # 32 "/usr/include/bits/types.h" 2 3 4
62
63
64 typedef unsigned char __u_char;
65 typedef unsigned short int __u_short;
66 typedef unsigned int __u_int;
67 typedef unsigned long int __u_long;
68
69
70 typedef signed char __int8_t;
71 typedef unsigned char __uint8_t;
72 typedef signed short int __int16_t;
73 typedef unsigned short int __uint16_t;
74 typedef signed int __int32_t;
75 typedef unsigned int __uint32_t;
76
77
78
79
80 __extension__ typedef signed long long int __int64_t;
81 __extension__ typedef unsigned long long int __uint64_t;
82
83
84
85
86
87
88
89 __extension__ typedef long long int __quad_t;
90 __extension__ typedef unsigned long long int __u_quad_t;
91 # 134 "/usr/include/bits/types.h" 3 4
92
93 # 1 "/usr/include/bits/typesizes.h" 1 3 4
94 # 135 "/usr/include/bits/types.h" 2 3 4
95
96
97 __extension__ typedef __u_quad_t __dev_t;
98 __extension__ typedef unsigned int __uid_t;
99 __extension__ typedef unsigned int __gid_t;
100 __extension__ typedef unsigned long int __ino_t;
101 __extension__ typedef __u_quad_t __ino64_t;
102 __extension__ typedef unsigned int __mode_t;
103 __extension__ typedef unsigned int __nlink_t;
104 __extension__ typedef long int __off_t;
105 __extension__ typedef __quad_t __off64_t;
106 __extension__ typedef int __pid_t;
107 __extension__ typedef struct { int __val[2]; } __fsid_t;
108 __extension__ typedef long int __clock_t;
109 __extension__ typedef unsigned long int __rlim_t;
110 __extension__ typedef __u_quad_t __rlim64_t;
111 __extension__ typedef unsigned int __id_t;
112 __extension__ typedef long int __time_t;
113 __extension__ typedef unsigned int __useconds_t;
114 __extension__ typedef long int __suseconds_t;
115
116 __extension__ typedef int __daddr_t;
117 __extension__ typedef long int __swblk_t;
118 __extension__ typedef int __key_t;
119
120
121 __extension__ typedef int __clockid_t;
122
123
124 __extension__ typedef void * __timer_t;
125
126
127 __extension__ typedef long int __blksize_t;
128
129
130
131
132 __extension__ typedef long int __blkcnt_t;
133 __extension__ typedef __quad_t __blkcnt64_t;
134
135
136 __extension__ typedef unsigned long int __fsblkcnt_t;
137 __extension__ typedef __u_quad_t __fsblkcnt64_t;
138
139
140 __extension__ typedef unsigned long int __fsfilcnt_t;
141 __extension__ typedef __u_quad_t __fsfilcnt64_t;
142
143 __extension__ typedef int __ssize_t;
144
145
146
147 typedef __off64_t __loff_t;
148 typedef __quad_t *__qaddr_t;
149 typedef char *__caddr_t;
150
151
152 __extension__ typedef int __intptr_t;
153
154
155 __extension__ typedef unsigned int __socklen_t;
156 # 37 "/usr/include/stdio.h" 2 3 4
157 # 46 "/usr/include/stdio.h" 3 4
158 typedef struct _IO_FILE FILE;
159 # 62 "/usr/include/stdio.h" 3 4
160 typedef struct _IO_FILE __FILE;
161 # 72 "/usr/include/stdio.h" 3 4
162
163 # 1 "/usr/include/libio.h" 1 3 4
164 # 32 "/usr/include/libio.h" 3 4
165
166 # 1 "/usr/include/_G_config.h" 1 3 4
167 # 14 "/usr/include/_G_config.h" 3 4
168
169 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
170 # 326 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4
171 typedef long int wchar_t;
172 # 355 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4
173 typedef unsigned int wint_t;
174 # 15 "/usr/include/_G_config.h" 2 3 4
175 # 24 "/usr/include/_G_config.h" 3 4
176
177 # 1 "/usr/include/wchar.h" 1 3 4
178 # 48 "/usr/include/wchar.h" 3 4
179
180 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
181 # 49 "/usr/include/wchar.h" 2 3 4
182
183
184 # 1 "/usr/include/bits/wchar.h" 1 3 4
185 # 51 "/usr/include/wchar.h" 2 3 4
186 # 76 "/usr/include/wchar.h" 3 4
187 typedef struct
188 {
189 int __count;
190 union
191 {
192 wint_t __wch;
193 char __wchb[4];
194 } __value;
195 } __mbstate_t;
196 # 25 "/usr/include/_G_config.h" 2 3 4
197
198 typedef struct
199 {
200 __off_t __pos;
201 __mbstate_t __state;
202 } _G_fpos_t;
203 typedef struct
204 {
205 __off64_t __pos;
206 __mbstate_t __state;
207 } _G_fpos64_t;
208 # 44 "/usr/include/_G_config.h" 3 4
209
210 # 1 "/usr/include/gconv.h" 1 3 4
211 # 28 "/usr/include/gconv.h" 3 4
212
213 # 1 "/usr/include/wchar.h" 1 3 4
214 # 48 "/usr/include/wchar.h" 3 4
215
216 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
217 # 49 "/usr/include/wchar.h" 2 3 4
218 # 29 "/usr/include/gconv.h" 2 3 4
219
220
221
222 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
223 # 32 "/usr/include/gconv.h" 2 3 4
224
225
226
227
228
229 enum
230 {
231 __GCONV_OK = 0,
232 __GCONV_NOCONV,
233 __GCONV_NODB,
234 __GCONV_NOMEM,
235
236 __GCONV_EMPTY_INPUT,
237 __GCONV_FULL_OUTPUT,
238 __GCONV_ILLEGAL_INPUT,
239 __GCONV_INCOMPLETE_INPUT,
240
241 __GCONV_ILLEGAL_DESCRIPTOR,
242 __GCONV_INTERNAL_ERROR
243 };
244
245
246
247 enum
248 {
249 __GCONV_IS_LAST = 0x0001,
250 __GCONV_IGNORE_ERRORS = 0x0002
251 };
252
253
254
255 struct __gconv_step;
256 struct __gconv_step_data;
257 struct __gconv_loaded_object;
258 struct __gconv_trans_data;
259
260
261
262 typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *,
263 __const unsigned char **, __const unsigned char *,
264 unsigned char **, size_t *, int, int);
265
266
267 typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char);
268
269
270 typedef int (*__gconv_init_fct) (struct __gconv_step *);
271 typedef void (*__gconv_end_fct) (struct __gconv_step *);
272
273
274
275 typedef int (*__gconv_trans_fct) (struct __gconv_step *,
276 struct __gconv_step_data *, void *,
277 __const unsigned char *,
278 __const unsigned char **,
279 __const unsigned char *, unsigned char **,
280 size_t *);
281
282
283 typedef int (*__gconv_trans_context_fct) (void *, __const unsigned char *,
284 __const unsigned char *,
285 unsigned char *, unsigned char *);
286
287
288 typedef int (*__gconv_trans_query_fct) (__const char *, __const char ***,
289 size_t *);
290
291
292 typedef int (*__gconv_trans_init_fct) (void **, const char *);
293 typedef void (*__gconv_trans_end_fct) (void *);
294
295 struct __gconv_trans_data
296 {
297
298 __gconv_trans_fct __trans_fct;
299 __gconv_trans_context_fct __trans_context_fct;
300 __gconv_trans_end_fct __trans_end_fct;
301 void *__data;
302 struct __gconv_trans_data *__next;
303 };
304
305
306
307 struct __gconv_step
308 {
309 struct __gconv_loaded_object *__shlib_handle;
310 __const char *__modname;
311
312 int __counter;
313
314 char *__from_name;
315 char *__to_name;
316
317 __gconv_fct __fct;
318 __gconv_btowc_fct __btowc_fct;
319 __gconv_init_fct __init_fct;
320 __gconv_end_fct __end_fct;
321
322
323
324 int __min_needed_from;
325 int __max_needed_from;
326 int __min_needed_to;
327 int __max_needed_to;
328
329
330 int __stateful;
331
332 void *__data;
333 };
334
335
336
337 struct __gconv_step_data
338 {
339 unsigned char *__outbuf;
340 unsigned char *__outbufend;
341
342
343
344 int __flags;
345
346
347
348 int __invocation_counter;
349
350
351
352 int __internal_use;
353
354 __mbstate_t *__statep;
355 __mbstate_t __state;
356
357
358
359 struct __gconv_trans_data *__trans;
360 };
361
362
363
364 typedef struct __gconv_info
365 {
366 size_t __nsteps;
367 struct __gconv_step *__steps;
368 __extension__ struct __gconv_step_data __data [];
369 } *__gconv_t;
370 # 45 "/usr/include/_G_config.h" 2 3 4
371 typedef union
372 {
373 struct __gconv_info __cd;
374 struct
375 {
376 struct __gconv_info __cd;
377 struct __gconv_step_data __data;
378 } __combined;
379 } _G_iconv_t;
380
381 typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
382 typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
383 typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
384 typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
385 # 33 "/usr/include/libio.h" 2 3 4
386 # 53 "/usr/include/libio.h" 3 4
387
388 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 1 3 4
389 # 43 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 3 4
390 typedef __builtin_va_list __gnuc_va_list;
391 # 54 "/usr/include/libio.h" 2 3 4
392 # 166 "/usr/include/libio.h" 3 4
393 struct _IO_jump_t; struct _IO_FILE;
394 # 176 "/usr/include/libio.h" 3 4
395 typedef void _IO_lock_t;
396
397
398
399
400
401 struct _IO_marker {
402 struct _IO_marker *_next;
403 struct _IO_FILE *_sbuf;
404
405
406
407 int _pos;
408 # 199 "/usr/include/libio.h" 3 4
409 };
410
411
412 enum __codecvt_result
413 {
414 __codecvt_ok,
415 __codecvt_partial,
416 __codecvt_error,
417 __codecvt_noconv
418 };
419 # 267 "/usr/include/libio.h" 3 4
420 struct _IO_FILE {
421 int _flags;
422
423
424
425
426 char* _IO_read_ptr;
427 char* _IO_read_end;
428 char* _IO_read_base;
429 char* _IO_write_base;
430 char* _IO_write_ptr;
431 char* _IO_write_end;
432 char* _IO_buf_base;
433 char* _IO_buf_end;
434
435 char *_IO_save_base;
436 char *_IO_backup_base;
437 char *_IO_save_end;
438
439 struct _IO_marker *_markers;
440
441 struct _IO_FILE *_chain;
442
443 int _fileno;
444
445
446
447 int _flags2;
448
449 __off_t _old_offset;
450
451
452
453 unsigned short _cur_column;
454 signed char _vtable_offset;
455 char _shortbuf[1];
456
457
458
459 _IO_lock_t *_lock;
460 # 315 "/usr/include/libio.h" 3 4
461 __off64_t _offset;
462 # 324 "/usr/include/libio.h" 3 4
463 void *__pad1;
464 void *__pad2;
465 void *__pad3;
466 void *__pad4;
467 size_t __pad5;
468
469 int _mode;
470
471 char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
472
473 };
474
475
476 typedef struct _IO_FILE _IO_FILE;
477
478
479 struct _IO_FILE_plus;
480
481 extern struct _IO_FILE_plus _IO_2_1_stdin_;
482 extern struct _IO_FILE_plus _IO_2_1_stdout_;
483 extern struct _IO_FILE_plus _IO_2_1_stderr_;
484 # 360 "/usr/include/libio.h" 3 4
485 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
486
487
488
489
490
491
492
493 typedef __ssize_t __io_write_fn (void *__cookie, __const char *__buf,
494 size_t __n);
495
496
497
498
499
500
501
502 typedef int __io_seek_fn (void *__cookie, __off64_t *__pos, int __w);
503
504
505 typedef int __io_close_fn (void *__cookie);
506 # 412 "/usr/include/libio.h" 3 4
507 extern int __underflow (_IO_FILE *) __attribute__ ((__nothrow__));
508 extern int __uflow (_IO_FILE *) __attribute__ ((__nothrow__));
509 extern int __overflow (_IO_FILE *, int) __attribute__ ((__nothrow__));
510 extern wint_t __wunderflow (_IO_FILE *) __attribute__ ((__nothrow__));
511 extern wint_t __wuflow (_IO_FILE *) __attribute__ ((__nothrow__));
512 extern wint_t __woverflow (_IO_FILE *, wint_t) __attribute__ ((__nothrow__));
513 # 450 "/usr/include/libio.h" 3 4
514 extern int _IO_getc (_IO_FILE *__fp) __attribute__ ((__nothrow__));
515 extern int _IO_putc (int __c, _IO_FILE *__fp) __attribute__ ((__nothrow__));
516 extern int _IO_feof (_IO_FILE *__fp) __attribute__ ((__nothrow__));
517 extern int _IO_ferror (_IO_FILE *__fp) __attribute__ ((__nothrow__));
518
519 extern int _IO_peekc_locked (_IO_FILE *__fp) __attribute__ ((__nothrow__));
520
521
522
523
524
525 extern void _IO_flockfile (_IO_FILE *) __attribute__ ((__nothrow__));
526 extern void _IO_funlockfile (_IO_FILE *) __attribute__ ((__nothrow__));
527 extern int _IO_ftrylockfile (_IO_FILE *) __attribute__ ((__nothrow__));
528 # 480 "/usr/include/libio.h" 3 4
529 extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict,
530 __gnuc_va_list, int *__restrict);
531 extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict,
532 __gnuc_va_list);
533 extern __ssize_t _IO_padn (_IO_FILE *, int, __ssize_t) __attribute__ ((__nothrow__));
534 extern size_t _IO_sgetn (_IO_FILE *, void *, size_t) __attribute__ ((__nothrow__));
535
536 extern __off64_t _IO_seekoff (_IO_FILE *, __off64_t, int, int) __attribute__ ((__nothrow__));
537 extern __off64_t _IO_seekpos (_IO_FILE *, __off64_t, int) __attribute__ ((__nothrow__));
538
539 extern void _IO_free_backup_area (_IO_FILE *) __attribute__ ((__nothrow__));
540 # 73 "/usr/include/stdio.h" 2 3 4
541 # 86 "/usr/include/stdio.h" 3 4
542
543
544
545
546 typedef _G_fpos64_t fpos_t;
547 # 138 "/usr/include/stdio.h" 3 4
548
549 # 1 "/usr/include/bits/stdio_lim.h" 1 3 4
550 # 139 "/usr/include/stdio.h" 2 3 4
551
552
553
554 extern struct _IO_FILE *stdin;
555 extern struct _IO_FILE *stdout;
556 extern struct _IO_FILE *stderr;
557
558
559
560
561
562
563
564 extern int remove (__const char *__filename) __attribute__ ((__nothrow__));
565
566 extern int rename (__const char *__old, __const char *__new) __attribute__ ((__nothrow__));
567 # 172 "/usr/include/stdio.h" 3 4
568 extern FILE *tmpfile (void) __asm__ ("" "tmpfile64");
569 # 183 "/usr/include/stdio.h" 3 4
570 extern char *tmpnam (char *__s) __attribute__ ((__nothrow__));
571
572
573
574
575
576 extern char *tmpnam_r (char *__s) __attribute__ ((__nothrow__));
577 # 201 "/usr/include/stdio.h" 3 4
578 extern char *tempnam (__const char *__dir, __const char *__pfx)
579 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__));
580 # 211 "/usr/include/stdio.h" 3 4
581 extern int fclose (FILE *__stream);
582
583
584
585
586 extern int fflush (FILE *__stream);
587 # 226 "/usr/include/stdio.h" 3 4
588 extern int fflush_unlocked (FILE *__stream);
589 # 240 "/usr/include/stdio.h" 3 4
590 # 257 "/usr/include/stdio.h" 3 4
591 extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __asm__ ("" "fopen64");
592
593 extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64");
594 # 278 "/usr/include/stdio.h" 3 4
595 extern FILE *fdopen (int __fd, __const char *__modes) __attribute__ ((__nothrow__));
596 # 304 "/usr/include/stdio.h" 3 4
597
598
599
600 extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __attribute__ ((__nothrow__));
601
602
603
604 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
605 int __modes, size_t __n) __attribute__ ((__nothrow__));
606
607
608
609
610
611 extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf,
612 size_t __size) __attribute__ ((__nothrow__));
613
614
615 extern void setlinebuf (FILE *__stream) __attribute__ ((__nothrow__));
616 # 331 "/usr/include/stdio.h" 3 4
617 extern int fprintf (FILE *__restrict __stream,
618 __const char *__restrict __format, ...);
619
620
621
622
623 extern int printf (__const char *__restrict __format, ...);
624
625 extern int sprintf (char *__restrict __s,
626 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
627
628
629
630
631
632 extern int vfprintf (FILE *__restrict __s, __const char *__restrict __format,
633 __gnuc_va_list __arg);
634
635
636
637
638 extern int vprintf (__const char *__restrict __format, __gnuc_va_list __arg);
639
640 extern int vsprintf (char *__restrict __s, __const char *__restrict __format,
641 __gnuc_va_list __arg) __attribute__ ((__nothrow__));
642
643
644
645
646
647 extern int snprintf (char *__restrict __s, size_t __maxlen,
648 __const char *__restrict __format, ...)
649 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 4)));
650
651 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
652 __const char *__restrict __format, __gnuc_va_list __arg)
653 __attribute__ ((__nothrow__)) __attribute__ ((__format__ (__printf__, 3, 0)));
654 # 398 "/usr/include/stdio.h" 3 4
655
656
657
658
659
660 extern int fscanf (FILE *__restrict __stream,
661 __const char *__restrict __format, ...) ;
662
663
664
665
666 extern int scanf (__const char *__restrict __format, ...) ;
667
668 extern int sscanf (__const char *__restrict __s,
669 __const char *__restrict __format, ...) __attribute__ ((__nothrow__));
670 # 440 "/usr/include/stdio.h" 3 4
671
672
673
674
675
676 extern int fgetc (FILE *__stream);
677 extern int getc (FILE *__stream);
678
679
680
681
682
683 extern int getchar (void);
684 # 464 "/usr/include/stdio.h" 3 4
685 extern int getc_unlocked (FILE *__stream);
686 extern int getchar_unlocked (void);
687 # 475 "/usr/include/stdio.h" 3 4
688 extern int fgetc_unlocked (FILE *__stream);
689 # 487 "/usr/include/stdio.h" 3 4
690 extern int fputc (int __c, FILE *__stream);
691 extern int putc (int __c, FILE *__stream);
692
693
694
695
696
697 extern int putchar (int __c);
698 # 508 "/usr/include/stdio.h" 3 4
699 extern int fputc_unlocked (int __c, FILE *__stream);
700
701
702
703
704
705
706
707 extern int putc_unlocked (int __c, FILE *__stream);
708 extern int putchar_unlocked (int __c);
709
710
711
712
713
714
715 extern int getw (FILE *__stream);
716
717
718 extern int putw (int __w, FILE *__stream);
719 # 536 "/usr/include/stdio.h" 3 4
720 extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
721 ;
722
723
724
725
726
727
728 extern char *gets (char *__s) ;
729 # 589 "/usr/include/stdio.h" 3 4
730
731
732
733
734
735 extern int fputs (__const char *__restrict __s, FILE *__restrict __stream);
736
737
738
739
740
741 extern int puts (__const char *__s);
742
743
744
745
746
747
748 extern int ungetc (int __c, FILE *__stream);
749
750
751
752
753
754
755 extern size_t fread (void *__restrict __ptr, size_t __size,
756 size_t __n, FILE *__restrict __stream) ;
757
758
759
760
761 extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
762 size_t __n, FILE *__restrict __s) ;
763 # 642 "/usr/include/stdio.h" 3 4
764 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
765 size_t __n, FILE *__restrict __stream) ;
766 extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
767 size_t __n, FILE *__restrict __stream) ;
768 # 654 "/usr/include/stdio.h" 3 4
769 extern int fseek (FILE *__stream, long int __off, int __whence);
770
771
772
773
774 extern long int ftell (FILE *__stream) ;
775
776
777
778
779 extern void rewind (FILE *__stream);
780 # 686 "/usr/include/stdio.h" 3 4
781 extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64");
782
783
784 extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64");
785 # 711 "/usr/include/stdio.h" 3 4
786 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64");
787
788 extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __asm__ ("" "fsetpos64");
789 # 729 "/usr/include/stdio.h" 3 4
790
791
792 extern void clearerr (FILE *__stream) __attribute__ ((__nothrow__));
793
794 extern int feof (FILE *__stream) __attribute__ ((__nothrow__)) ;
795
796 extern int ferror (FILE *__stream) __attribute__ ((__nothrow__)) ;
797
798
799
800
801 extern void clearerr_unlocked (FILE *__stream) __attribute__ ((__nothrow__));
802 extern int feof_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
803 extern int ferror_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
804 # 751 "/usr/include/stdio.h" 3 4
805 extern void perror (__const char *__s);
806
807
808
809
810
811
812
813 # 1 "/usr/include/bits/sys_errlist.h" 1 3 4
814 # 27 "/usr/include/bits/sys_errlist.h" 3 4
815 extern int sys_nerr;
816 extern __const char *__const sys_errlist[];
817 # 759 "/usr/include/stdio.h" 2 3 4
818
819
820
821
822 extern int fileno (FILE *__stream) __attribute__ ((__nothrow__)) ;
823
824
825
826
827 extern int fileno_unlocked (FILE *__stream) __attribute__ ((__nothrow__)) ;
828 # 778 "/usr/include/stdio.h" 3 4
829 extern FILE *popen (__const char *__command, __const char *__modes) ;
830
831
832
833
834
835 extern int pclose (FILE *__stream);
836
837
838
839
840
841 extern char *ctermid (char *__s) __attribute__ ((__nothrow__));
842 # 818 "/usr/include/stdio.h" 3 4
843 extern void flockfile (FILE *__stream) __attribute__ ((__nothrow__));
844
845
846
847 extern int ftrylockfile (FILE *__stream) __attribute__ ((__nothrow__)) ;
848
849
850 extern void funlockfile (FILE *__stream) __attribute__ ((__nothrow__));
851 # 839 "/usr/include/stdio.h" 3 4
852
853 # 1 "/usr/include/bits/stdio.h" 1 3 4
854 # 33 "/usr/include/bits/stdio.h" 3 4
855 extern __inline int
856 vprintf (__const char *__restrict __fmt, __gnuc_va_list __arg)
857 {
858 return vfprintf (stdout, __fmt, __arg);
859 }
860
861
862 extern __inline int
863 getchar (void)
864 {
865 return _IO_getc (stdin);
866 }
867
868
869
870
871 extern __inline int
872 getc_unlocked (FILE *__fp)
873 {
874 return (__builtin_expect (((__fp)->_IO_read_ptr >= (__fp)->_IO_read_end), 0) ? __uflow (__fp) : *(unsigned char *) (__fp)->_IO_read_ptr++);
875 }
876
877
878 extern __inline int
879 getchar_unlocked (void)
880 {
881 return (__builtin_expect (((stdin)->_IO_read_ptr >= (stdin)->_IO_read_end), 0) ? __uflow (stdin) : *(unsigned char *) (stdin)->_IO_read_ptr++);
882 }
883
884
885
886
887 extern __inline int
888 putchar (int __c)
889 {
890 return _IO_putc (__c, stdout);
891 }
892
893
894
895
896 extern __inline int
897 fputc_unlocked (int __c, FILE *__stream)
898 {
899 return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
900 }
901
902
903
904
905
906 extern __inline int
907 putc_unlocked (int __c, FILE *__stream)
908 {
909 return (__builtin_expect (((__stream)->_IO_write_ptr >= (__stream)->_IO_write_end), 0) ? __overflow (__stream, (unsigned char) (__c)) : (unsigned char) (*(__stream)->_IO_write_ptr++ = (__c)));
910 }
911
912
913 extern __inline int
914 putchar_unlocked (int __c)
915 {
916 return (__builtin_expect (((stdout)->_IO_write_ptr >= (stdout)->_IO_write_end), 0) ? __overflow (stdout, (unsigned char) (__c)) : (unsigned char) (*(stdout)->_IO_write_ptr++ = (__c)));
917 }
918 # 111 "/usr/include/bits/stdio.h" 3 4
919 extern __inline int
920 __attribute__ ((__nothrow__)) feof_unlocked (FILE *__stream)
921 {
922 return (((__stream)->_flags & 0x10) != 0);
923 }
924
925
926 extern __inline int
927 __attribute__ ((__nothrow__)) ferror_unlocked (FILE *__stream)
928 {
929 return (((__stream)->_flags & 0x20) != 0);
930 }
931 # 840 "/usr/include/stdio.h" 2 3 4
932 # 848 "/usr/include/stdio.h" 3 4
933 # 43 "maze.c" 2
934
935 # 1 "/usr/include/stdlib.h" 1 3 4
936 # 33 "/usr/include/stdlib.h" 3 4
937
938 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
939 # 34 "/usr/include/stdlib.h" 2 3 4
940 # 96 "/usr/include/stdlib.h" 3 4
941
942
943 typedef struct
944 {
945 int quot;
946 int rem;
947 } div_t;
948
949
950
951 typedef struct
952 {
953 long int quot;
954 long int rem;
955 } ldiv_t;
956 # 140 "/usr/include/stdlib.h" 3 4
957 extern size_t __ctype_get_mb_cur_max (void) __attribute__ ((__nothrow__)) ;
958
959
960
961
962 extern double atof (__const char *__nptr)
963 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
964
965 extern int atoi (__const char *__nptr)
966 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
967
968 extern long int atol (__const char *__nptr)
969 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
970
971
972
973
974
975 __extension__ extern long long int atoll (__const char *__nptr)
976 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
977
978
979
980
981
982 extern double strtod (__const char *__restrict __nptr,
983 char **__restrict __endptr)
984 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
985 # 182 "/usr/include/stdlib.h" 3 4
986
987
988 extern long int strtol (__const char *__restrict __nptr,
989 char **__restrict __endptr, int __base)
990 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
991
992 extern unsigned long int strtoul (__const char *__restrict __nptr,
993 char **__restrict __endptr, int __base)
994 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
995
996
997
998
999 __extension__
1000 extern long long int strtoq (__const char *__restrict __nptr,
1001 char **__restrict __endptr, int __base)
1002 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1003
1004 __extension__
1005 extern unsigned long long int strtouq (__const char *__restrict __nptr,
1006 char **__restrict __endptr, int __base)
1007 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1008
1009
1010
1011
1012
1013 __extension__
1014 extern long long int strtoll (__const char *__restrict __nptr,
1015 char **__restrict __endptr, int __base)
1016 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1017
1018 __extension__
1019 extern unsigned long long int strtoull (__const char *__restrict __nptr,
1020 char **__restrict __endptr, int __base)
1021 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1022 # 279 "/usr/include/stdlib.h" 3 4
1023 extern double __strtod_internal (__const char *__restrict __nptr,
1024 char **__restrict __endptr, int __group)
1025 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1026 extern float __strtof_internal (__const char *__restrict __nptr,
1027 char **__restrict __endptr, int __group)
1028 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1029 extern long double __strtold_internal (__const char *__restrict __nptr,
1030 char **__restrict __endptr,
1031 int __group)
1032 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1033
1034 extern long int __strtol_internal (__const char *__restrict __nptr,
1035 char **__restrict __endptr,
1036 int __base, int __group)
1037 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1038
1039
1040
1041 extern unsigned long int __strtoul_internal (__const char *__restrict __nptr,
1042 char **__restrict __endptr,
1043 int __base, int __group)
1044 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1045
1046
1047
1048
1049 __extension__
1050 extern long long int __strtoll_internal (__const char *__restrict __nptr,
1051 char **__restrict __endptr,
1052 int __base, int __group)
1053 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1054
1055
1056
1057 __extension__
1058 extern unsigned long long int __strtoull_internal (__const char *
1059 __restrict __nptr,
1060 char **__restrict __endptr,
1061 int __base, int __group)
1062 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1063 # 327 "/usr/include/stdlib.h" 3 4
1064 extern __inline double
1065 __attribute__ ((__nothrow__)) strtod (__const char *__restrict __nptr, char **__restrict __endptr)
1066 {
1067 return __strtod_internal (__nptr, __endptr, 0);
1068 }
1069 extern __inline long int
1070 __attribute__ ((__nothrow__)) strtol (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
1071
1072 {
1073 return __strtol_internal (__nptr, __endptr, __base, 0);
1074 }
1075 extern __inline unsigned long int
1076 __attribute__ ((__nothrow__)) strtoul (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
1077
1078 {
1079 return __strtoul_internal (__nptr, __endptr, __base, 0);
1080 }
1081 # 364 "/usr/include/stdlib.h" 3 4
1082 __extension__ extern __inline long long int
1083 __attribute__ ((__nothrow__)) strtoq (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
1084
1085 {
1086 return __strtoll_internal (__nptr, __endptr, __base, 0);
1087 }
1088 __extension__ extern __inline unsigned long long int
1089 __attribute__ ((__nothrow__)) strtouq (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
1090
1091 {
1092 return __strtoull_internal (__nptr, __endptr, __base, 0);
1093 }
1094
1095
1096
1097
1098 __extension__ extern __inline long long int
1099 __attribute__ ((__nothrow__)) strtoll (__const char *__restrict __nptr, char **__restrict __endptr, int __base)
1100
1101 {
1102 return __strtoll_internal (__nptr, __endptr, __base, 0);
1103 }
1104 __extension__ extern __inline unsigned long long int
1105 __attribute__ ((__nothrow__)) strtoull (__const char * __restrict __nptr, char **__restrict __endptr, int __base)
1106
1107 {
1108 return __strtoull_internal (__nptr, __endptr, __base, 0);
1109 }
1110
1111
1112
1113
1114 extern __inline double
1115 __attribute__ ((__nothrow__)) atof (__const char *__nptr)
1116 {
1117 return strtod (__nptr, (char **) ((void *)0));
1118 }
1119 extern __inline int
1120 __attribute__ ((__nothrow__)) atoi (__const char *__nptr)
1121 {
1122 return (int) strtol (__nptr, (char **) ((void *)0), 10);
1123 }
1124 extern __inline long int
1125 __attribute__ ((__nothrow__)) atol (__const char *__nptr)
1126 {
1127 return strtol (__nptr, (char **) ((void *)0), 10);
1128 }
1129
1130
1131
1132
1133 __extension__ extern __inline long long int
1134 __attribute__ ((__nothrow__)) atoll (__const char *__nptr)
1135 {
1136 return strtoll (__nptr, (char **) ((void *)0), 10);
1137 }
1138 # 429 "/usr/include/stdlib.h" 3 4
1139 extern char *l64a (long int __n) __attribute__ ((__nothrow__)) ;
1140
1141
1142 extern long int a64l (__const char *__s)
1143 __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ;
1144
1145
1146
1147
1148
1149 # 1 "/usr/include/sys/types.h" 1 3 4
1150 # 29 "/usr/include/sys/types.h" 3 4
1151
1152
1153
1154
1155
1156
1157 typedef __u_char u_char;
1158 typedef __u_short u_short;
1159 typedef __u_int u_int;
1160 typedef __u_long u_long;
1161 typedef __quad_t quad_t;
1162 typedef __u_quad_t u_quad_t;
1163 typedef __fsid_t fsid_t;
1164
1165
1166
1167
1168 typedef __loff_t loff_t;
1169
1170
1171
1172
1173
1174 typedef __ino64_t ino_t;
1175 # 62 "/usr/include/sys/types.h" 3 4
1176 typedef __dev_t dev_t;
1177
1178
1179
1180
1181 typedef __gid_t gid_t;
1182
1183
1184
1185
1186 typedef __mode_t mode_t;
1187
1188
1189
1190
1191 typedef __nlink_t nlink_t;
1192
1193
1194
1195
1196 typedef __uid_t uid_t;
1197
1198
1199
1200
1201
1202
1203
1204 typedef __off64_t off_t;
1205 # 100 "/usr/include/sys/types.h" 3 4
1206 typedef __pid_t pid_t;
1207
1208
1209
1210
1211 typedef __id_t id_t;
1212
1213
1214
1215
1216 typedef __ssize_t ssize_t;
1217
1218
1219
1220
1221
1222 typedef __daddr_t daddr_t;
1223 typedef __caddr_t caddr_t;
1224
1225
1226
1227
1228
1229 typedef __key_t key_t;
1230 # 133 "/usr/include/sys/types.h" 3 4
1231
1232 # 1 "/usr/include/time.h" 1 3 4
1233 # 75 "/usr/include/time.h" 3 4
1234
1235
1236 typedef __time_t time_t;
1237 # 93 "/usr/include/time.h" 3 4
1238 typedef __clockid_t clockid_t;
1239 # 105 "/usr/include/time.h" 3 4
1240 typedef __timer_t timer_t;
1241 # 134 "/usr/include/sys/types.h" 2 3 4
1242 # 147 "/usr/include/sys/types.h" 3 4
1243
1244 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
1245 # 148 "/usr/include/sys/types.h" 2 3 4
1246
1247
1248
1249 typedef unsigned long int ulong;
1250 typedef unsigned short int ushort;
1251 typedef unsigned int uint;
1252 # 195 "/usr/include/sys/types.h" 3 4
1253 typedef int int8_t __attribute__ ((__mode__ (__QI__)));
1254 typedef int int16_t __attribute__ ((__mode__ (__HI__)));
1255 typedef int int32_t __attribute__ ((__mode__ (__SI__)));
1256 typedef int int64_t __attribute__ ((__mode__ (__DI__)));
1257
1258
1259 typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__)));
1260 typedef unsigned int u_int16_t __attribute__ ((__mode__ (__HI__)));
1261 typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__)));
1262 typedef unsigned int u_int64_t __attribute__ ((__mode__ (__DI__)));
1263
1264 typedef int register_t __attribute__ ((__mode__ (__word__)));
1265 # 217 "/usr/include/sys/types.h" 3 4
1266
1267 # 1 "/usr/include/endian.h" 1 3 4
1268 # 37 "/usr/include/endian.h" 3 4
1269
1270 # 1 "/usr/include/bits/endian.h" 1 3 4
1271 # 38 "/usr/include/endian.h" 2 3 4
1272 # 218 "/usr/include/sys/types.h" 2 3 4
1273
1274
1275
1276 # 1 "/usr/include/sys/select.h" 1 3 4
1277 # 31 "/usr/include/sys/select.h" 3 4
1278
1279 # 1 "/usr/include/bits/select.h" 1 3 4
1280 # 32 "/usr/include/sys/select.h" 2 3 4
1281
1282
1283
1284 # 1 "/usr/include/bits/sigset.h" 1 3 4
1285 # 23 "/usr/include/bits/sigset.h" 3 4
1286 typedef int __sig_atomic_t;
1287
1288
1289
1290
1291 typedef struct
1292 {
1293 unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))];
1294 } __sigset_t;
1295 # 35 "/usr/include/sys/select.h" 2 3 4
1296
1297
1298
1299 typedef __sigset_t sigset_t;
1300
1301
1302
1303
1304
1305
1306 # 1 "/usr/include/time.h" 1 3 4
1307 # 121 "/usr/include/time.h" 3 4
1308 struct timespec
1309 {
1310 __time_t tv_sec;
1311 long int tv_nsec;
1312 };
1313 # 45 "/usr/include/sys/select.h" 2 3 4
1314
1315
1316 # 1 "/usr/include/bits/time.h" 1 3 4
1317 # 69 "/usr/include/bits/time.h" 3 4
1318 struct timeval
1319 {
1320 __time_t tv_sec;
1321 __suseconds_t tv_usec;
1322 };
1323 # 47 "/usr/include/sys/select.h" 2 3 4
1324
1325
1326 typedef __suseconds_t suseconds_t;
1327
1328
1329
1330
1331
1332 typedef long int __fd_mask;
1333 # 67 "/usr/include/sys/select.h" 3 4
1334 typedef struct
1335 {
1336
1337
1338
1339
1340
1341
1342 __fd_mask __fds_bits[1024 / (8 * sizeof (__fd_mask))];
1343
1344
1345 } fd_set;
1346
1347
1348
1349
1350
1351
1352 typedef __fd_mask fd_mask;
1353 # 99 "/usr/include/sys/select.h" 3 4
1354 # 109 "/usr/include/sys/select.h" 3 4
1355 extern int select (int __nfds, fd_set *__restrict __readfds,
1356 fd_set *__restrict __writefds,
1357 fd_set *__restrict __exceptfds,
1358 struct timeval *__restrict __timeout);
1359 # 121 "/usr/include/sys/select.h" 3 4
1360 extern int pselect (int __nfds, fd_set *__restrict __readfds,
1361 fd_set *__restrict __writefds,
1362 fd_set *__restrict __exceptfds,
1363 const struct timespec *__restrict __timeout,
1364 const __sigset_t *__restrict __sigmask);
1365 # 221 "/usr/include/sys/types.h" 2 3 4
1366
1367
1368
1369 # 1 "/usr/include/sys/sysmacros.h" 1 3 4
1370 # 29 "/usr/include/sys/sysmacros.h" 3 4
1371 __extension__
1372 extern __inline unsigned int gnu_dev_major (unsigned long long int __dev)
1373 __attribute__ ((__nothrow__));
1374 __extension__
1375 extern __inline unsigned int gnu_dev_minor (unsigned long long int __dev)
1376 __attribute__ ((__nothrow__));
1377 __extension__
1378 extern __inline unsigned long long int gnu_dev_makedev (unsigned int __major,
1379 unsigned int __minor)
1380 __attribute__ ((__nothrow__));
1381
1382
1383 __extension__ extern __inline unsigned int
1384 __attribute__ ((__nothrow__)) gnu_dev_major (unsigned long long int __dev)
1385 {
1386 return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
1387 }
1388
1389 __extension__ extern __inline unsigned int
1390 __attribute__ ((__nothrow__)) gnu_dev_minor (unsigned long long int __dev)
1391 {
1392 return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff);
1393 }
1394
1395 __extension__ extern __inline unsigned long long int
1396 __attribute__ ((__nothrow__)) gnu_dev_makedev (unsigned int __major, unsigned int __minor)
1397 {
1398 return ((__minor & 0xff) | ((__major & 0xfff) << 8)
1399 | (((unsigned long long int) (__minor & ~0xff)) << 12)
1400 | (((unsigned long long int) (__major & ~0xfff)) << 32));
1401 }
1402 # 224 "/usr/include/sys/types.h" 2 3 4
1403 # 248 "/usr/include/sys/types.h" 3 4
1404 typedef __blkcnt64_t blkcnt_t;
1405
1406
1407
1408 typedef __fsblkcnt64_t fsblkcnt_t;
1409
1410
1411
1412 typedef __fsfilcnt64_t fsfilcnt_t;
1413 # 270 "/usr/include/sys/types.h" 3 4
1414
1415 # 1 "/usr/include/bits/pthreadtypes.h" 1 3 4
1416 # 36 "/usr/include/bits/pthreadtypes.h" 3 4
1417 typedef unsigned long int pthread_t;
1418
1419
1420 typedef union
1421 {
1422 char __size[36];
1423 long int __align;
1424 } pthread_attr_t;
1425
1426
1427 typedef struct __pthread_internal_slist
1428 {
1429 struct __pthread_internal_slist *__next;
1430 } __pthread_slist_t;
1431
1432
1433
1434
1435 typedef union
1436 {
1437 struct __pthread_mutex_s
1438 {
1439 int __lock;
1440 unsigned int __count;
1441 int __owner;
1442
1443
1444 int __kind;
1445 unsigned int __nusers;
1446 __extension__ union
1447 {
1448 int __spins;
1449 __pthread_slist_t __list;
1450 };
1451 } __data;
1452 char __size[24];
1453 long int __align;
1454 } pthread_mutex_t;
1455
1456 typedef union
1457 {
1458 char __size[4];
1459 long int __align;
1460 } pthread_mutexattr_t;
1461
1462
1463
1464
1465 typedef union
1466 {
1467 struct
1468 {
1469 int __lock;
1470 unsigned int __futex;
1471 __extension__ unsigned long long int __total_seq;
1472 __extension__ unsigned long long int __wakeup_seq;
1473 __extension__ unsigned long long int __woken_seq;
1474 void *__mutex;
1475 unsigned int __nwaiters;
1476 unsigned int __broadcast_seq;
1477 } __data;
1478 char __size[48];
1479 __extension__ long long int __align;
1480 } pthread_cond_t;
1481
1482 typedef union
1483 {
1484 char __size[4];
1485 long int __align;
1486 } pthread_condattr_t;
1487
1488
1489
1490 typedef unsigned int pthread_key_t;
1491
1492
1493
1494 typedef int pthread_once_t;
1495
1496
1497
1498
1499
1500 typedef union
1501 {
1502 struct
1503 {
1504 int __lock;
1505 unsigned int __nr_readers;
1506 unsigned int __readers_wakeup;
1507 unsigned int __writer_wakeup;
1508 unsigned int __nr_readers_queued;
1509 unsigned int __nr_writers_queued;
1510
1511
1512 unsigned int __flags;
1513 int __writer;
1514 } __data;
1515 char __size[32];
1516 long int __align;
1517 } pthread_rwlock_t;
1518
1519 typedef union
1520 {
1521 char __size[8];
1522 long int __align;
1523 } pthread_rwlockattr_t;
1524
1525
1526
1527
1528
1529 typedef volatile int pthread_spinlock_t;
1530
1531
1532
1533
1534 typedef union
1535 {
1536 char __size[20];
1537 long int __align;
1538 } pthread_barrier_t;
1539
1540 typedef union
1541 {
1542 char __size[4];
1543 int __align;
1544 } pthread_barrierattr_t;
1545 # 271 "/usr/include/sys/types.h" 2 3 4
1546 # 439 "/usr/include/stdlib.h" 2 3 4
1547
1548
1549
1550
1551
1552
1553 extern long int random (void) __attribute__ ((__nothrow__));
1554
1555
1556 extern void srandom (unsigned int __seed) __attribute__ ((__nothrow__));
1557
1558
1559
1560
1561
1562 extern char *initstate (unsigned int __seed, char *__statebuf,
1563 size_t __statelen) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1564
1565
1566
1567 extern char *setstate (char *__statebuf) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1568
1569
1570
1571
1572
1573
1574
1575 struct random_data
1576 {
1577 int32_t *fptr;
1578 int32_t *rptr;
1579 int32_t *state;
1580 int rand_type;
1581 int rand_deg;
1582 int rand_sep;
1583 int32_t *end_ptr;
1584 };
1585
1586 extern int random_r (struct random_data *__restrict __buf,
1587 int32_t *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1588
1589 extern int srandom_r (unsigned int __seed, struct random_data *__buf)
1590 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1591
1592 extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
1593 size_t __statelen,
1594 struct random_data *__restrict __buf)
1595 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2, 4)));
1596
1597 extern int setstate_r (char *__restrict __statebuf,
1598 struct random_data *__restrict __buf)
1599 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1600
1601
1602
1603
1604
1605
1606 extern int rand (void) __attribute__ ((__nothrow__));
1607
1608 extern void srand (unsigned int __seed) __attribute__ ((__nothrow__));
1609
1610
1611
1612
1613 extern int rand_r (unsigned int *__seed) __attribute__ ((__nothrow__));
1614
1615
1616
1617
1618
1619
1620
1621 extern double drand48 (void) __attribute__ ((__nothrow__));
1622 extern double erand48 (unsigned short int __xsubi[3]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1623
1624
1625 extern long int lrand48 (void) __attribute__ ((__nothrow__));
1626 extern long int nrand48 (unsigned short int __xsubi[3])
1627 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1628
1629
1630 extern long int mrand48 (void) __attribute__ ((__nothrow__));
1631 extern long int jrand48 (unsigned short int __xsubi[3])
1632 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1633
1634
1635 extern void srand48 (long int __seedval) __attribute__ ((__nothrow__));
1636 extern unsigned short int *seed48 (unsigned short int __seed16v[3])
1637 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1638 extern void lcong48 (unsigned short int __param[7]) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1639
1640
1641
1642
1643
1644 struct drand48_data
1645 {
1646 unsigned short int __x[3];
1647 unsigned short int __old_x[3];
1648 unsigned short int __c;
1649 unsigned short int __init;
1650 unsigned long long int __a;
1651 };
1652
1653
1654 extern int drand48_r (struct drand48_data *__restrict __buffer,
1655 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1656 extern int erand48_r (unsigned short int __xsubi[3],
1657 struct drand48_data *__restrict __buffer,
1658 double *__restrict __result) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1659
1660
1661 extern int lrand48_r (struct drand48_data *__restrict __buffer,
1662 long int *__restrict __result)
1663 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1664 extern int nrand48_r (unsigned short int __xsubi[3],
1665 struct drand48_data *__restrict __buffer,
1666 long int *__restrict __result)
1667 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1668
1669
1670 extern int mrand48_r (struct drand48_data *__restrict __buffer,
1671 long int *__restrict __result)
1672 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1673 extern int jrand48_r (unsigned short int __xsubi[3],
1674 struct drand48_data *__restrict __buffer,
1675 long int *__restrict __result)
1676 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1677
1678
1679 extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
1680 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1681
1682 extern int seed48_r (unsigned short int __seed16v[3],
1683 struct drand48_data *__buffer) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1684
1685 extern int lcong48_r (unsigned short int __param[7],
1686 struct drand48_data *__buffer)
1687 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
1688 # 589 "/usr/include/stdlib.h" 3 4
1689 extern void *malloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1690
1691 extern void *calloc (size_t __nmemb, size_t __size)
1692 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1693
1694
1695
1696
1697
1698
1699
1700 extern void *realloc (void *__ptr, size_t __size)
1701 __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) __attribute__ ((__warn_unused_result__));
1702
1703 extern void free (void *__ptr) __attribute__ ((__nothrow__));
1704
1705
1706
1707
1708 extern void cfree (void *__ptr) __attribute__ ((__nothrow__));
1709
1710
1711
1712
1713 # 1 "/usr/include/alloca.h" 1 3 4
1714 # 25 "/usr/include/alloca.h" 3 4
1715
1716 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
1717 # 26 "/usr/include/alloca.h" 2 3 4
1718
1719
1720
1721
1722
1723
1724
1725 extern void *alloca (size_t __size) __attribute__ ((__nothrow__));
1726 # 613 "/usr/include/stdlib.h" 2 3 4
1727
1728
1729
1730
1731 extern void *valloc (size_t __size) __attribute__ ((__nothrow__)) __attribute__ ((__malloc__)) ;
1732
1733
1734
1735
1736 extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size)
1737 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1738
1739
1740
1741
1742 extern void abort (void) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1743
1744
1745
1746 extern int atexit (void (*__func) (void)) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1747
1748
1749
1750
1751
1752 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg)
1753 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1754
1755
1756
1757
1758
1759
1760 extern void exit (int __status) __attribute__ ((__nothrow__)) __attribute__ ((__noreturn__));
1761 # 658 "/usr/include/stdlib.h" 3 4
1762
1763
1764 extern char *getenv (__const char *__name) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1765
1766
1767
1768
1769 extern char *__secure_getenv (__const char *__name)
1770 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1771
1772
1773
1774
1775
1776 extern int putenv (char *__string) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1777
1778
1779
1780
1781
1782 extern int setenv (__const char *__name, __const char *__value, int __replace)
1783 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (2)));
1784
1785
1786 extern int unsetenv (__const char *__name) __attribute__ ((__nothrow__));
1787
1788
1789
1790
1791
1792
1793 extern int clearenv (void) __attribute__ ((__nothrow__));
1794 # 698 "/usr/include/stdlib.h" 3 4
1795 extern char *mktemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1796 # 712 "/usr/include/stdlib.h" 3 4
1797 extern int mkstemp (char *__template) __asm__ ("" "mkstemp64")
1798 __attribute__ ((__nonnull__ (1))) ;
1799 # 729 "/usr/include/stdlib.h" 3 4
1800 extern char *mkdtemp (char *__template) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1801 # 738 "/usr/include/stdlib.h" 3 4
1802 extern int system (__const char *__command) ;
1803 # 757 "/usr/include/stdlib.h" 3 4
1804 extern char *realpath (__const char *__restrict __name,
1805 char *__restrict __resolved) __attribute__ ((__nothrow__)) ;
1806
1807
1808
1809
1810
1811
1812 typedef int (*__compar_fn_t) (__const void *, __const void *);
1813 # 775 "/usr/include/stdlib.h" 3 4
1814 extern void *bsearch (__const void *__key, __const void *__base,
1815 size_t __nmemb, size_t __size, __compar_fn_t __compar)
1816 __attribute__ ((__nonnull__ (1, 2, 5))) ;
1817
1818
1819
1820 extern void qsort (void *__base, size_t __nmemb, size_t __size,
1821 __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4)));
1822
1823
1824
1825 extern int abs (int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1826 extern long int labs (long int __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1827 # 800 "/usr/include/stdlib.h" 3 4
1828 extern div_t div (int __numer, int __denom)
1829 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1830 extern ldiv_t ldiv (long int __numer, long int __denom)
1831 __attribute__ ((__nothrow__)) __attribute__ ((__const__)) ;
1832 # 822 "/usr/include/stdlib.h" 3 4
1833 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt,
1834 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1835
1836
1837
1838
1839 extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt,
1840 int *__restrict __sign) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1841
1842
1843
1844
1845 extern char *gcvt (double __value, int __ndigit, char *__buf)
1846 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
1847
1848
1849
1850
1851 extern char *qecvt (long double __value, int __ndigit,
1852 int *__restrict __decpt, int *__restrict __sign)
1853 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1854 extern char *qfcvt (long double __value, int __ndigit,
1855 int *__restrict __decpt, int *__restrict __sign)
1856 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4))) ;
1857 extern char *qgcvt (long double __value, int __ndigit, char *__buf)
1858 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3))) ;
1859
1860
1861
1862
1863 extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt,
1864 int *__restrict __sign, char *__restrict __buf,
1865 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1866 extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt,
1867 int *__restrict __sign, char *__restrict __buf,
1868 size_t __len) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1869
1870 extern int qecvt_r (long double __value, int __ndigit,
1871 int *__restrict __decpt, int *__restrict __sign,
1872 char *__restrict __buf, size_t __len)
1873 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1874 extern int qfcvt_r (long double __value, int __ndigit,
1875 int *__restrict __decpt, int *__restrict __sign,
1876 char *__restrict __buf, size_t __len)
1877 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (3, 4, 5)));
1878
1879
1880
1881
1882
1883
1884
1885 extern int mblen (__const char *__s, size_t __n) __attribute__ ((__nothrow__)) ;
1886
1887
1888 extern int mbtowc (wchar_t *__restrict __pwc,
1889 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__)) ;
1890
1891
1892 extern int wctomb (char *__s, wchar_t __wchar) __attribute__ ((__nothrow__)) ;
1893
1894
1895
1896 extern size_t mbstowcs (wchar_t *__restrict __pwcs,
1897 __const char *__restrict __s, size_t __n) __attribute__ ((__nothrow__));
1898
1899 extern size_t wcstombs (char *__restrict __s,
1900 __const wchar_t *__restrict __pwcs, size_t __n)
1901 __attribute__ ((__nothrow__));
1902 # 899 "/usr/include/stdlib.h" 3 4
1903 extern int rpmatch (__const char *__response) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1))) ;
1904 # 927 "/usr/include/stdlib.h" 3 4
1905 extern int posix_openpt (int __oflag) ;
1906 # 962 "/usr/include/stdlib.h" 3 4
1907 extern int getloadavg (double __loadavg[], int __nelem)
1908 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
1909 # 978 "/usr/include/stdlib.h" 3 4
1910 # 44 "maze.c" 2
1911
1912
1913 # 1 "../../libgimp/gimp.h" 1
1914 # 25 "../../libgimp/gimp.h"
1915
1916 # 1 "/usr/include/glib-2.0/glib-object.h" 1
1917 # 25 "/usr/include/glib-2.0/glib-object.h"
1918
1919 # 1 "/usr/include/glib-2.0/gobject/gboxed.h" 1
1920 # 26 "/usr/include/glib-2.0/gobject/gboxed.h"
1921
1922 # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1
1923 # 26 "/usr/include/glib-2.0/gobject/gtype.h"
1924
1925 # 1 "/usr/include/glib-2.0/glib.h" 1
1926 # 30 "/usr/include/glib-2.0/glib.h"
1927
1928 # 1 "/usr/include/glib-2.0/glib/galloca.h" 1
1929 # 30 "/usr/include/glib-2.0/glib/galloca.h"
1930
1931 # 1 "/usr/include/glib-2.0/glib/gtypes.h" 1
1932 # 30 "/usr/include/glib-2.0/glib/gtypes.h"
1933
1934 # 1 "/usr/lib/glib-2.0/include/glibconfig.h" 1
1935 # 9 "/usr/lib/glib-2.0/include/glibconfig.h"
1936
1937 # 1 "/usr/include/glib-2.0/glib/gmacros.h" 1
1938 # 36 "/usr/include/glib-2.0/glib/gmacros.h"
1939
1940 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
1941 # 152 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 3 4
1942 typedef int ptrdiff_t;
1943 # 37 "/usr/include/glib-2.0/glib/gmacros.h" 2
1944 # 10 "/usr/lib/glib-2.0/include/glibconfig.h" 2
1945
1946
1947 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/limits.h" 1 3 4
1948 # 11 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/limits.h" 3 4
1949
1950 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/syslimits.h" 1 3 4
1951
1952
1953
1954
1955
1956
1957
1958 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/limits.h" 1 3 4
1959 # 122 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/limits.h" 3 4
1960
1961 # 1 "/usr/include/limits.h" 1 3 4
1962 # 145 "/usr/include/limits.h" 3 4
1963
1964 # 1 "/usr/include/bits/posix1_lim.h" 1 3 4
1965 # 153 "/usr/include/bits/posix1_lim.h" 3 4
1966
1967 # 1 "/usr/include/bits/local_lim.h" 1 3 4
1968 # 36 "/usr/include/bits/local_lim.h" 3 4
1969
1970 # 1 "/usr/include/linux/limits.h" 1 3 4
1971 # 37 "/usr/include/bits/local_lim.h" 2 3 4
1972 # 154 "/usr/include/bits/posix1_lim.h" 2 3 4
1973 # 146 "/usr/include/limits.h" 2 3 4
1974
1975
1976
1977
1978 # 1 "/usr/include/bits/posix2_lim.h" 1 3 4
1979 # 150 "/usr/include/limits.h" 2 3 4
1980 # 123 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/limits.h" 2 3 4
1981 # 8 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/syslimits.h" 2 3 4
1982 # 12 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/limits.h" 2 3 4
1983 # 12 "/usr/lib/glib-2.0/include/glibconfig.h" 2
1984
1985 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/float.h" 1 3 4
1986 # 13 "/usr/lib/glib-2.0/include/glibconfig.h" 2
1987 # 32 "/usr/lib/glib-2.0/include/glibconfig.h"
1988 typedef signed char gint8;
1989 typedef unsigned char guint8;
1990 typedef signed short gint16;
1991 typedef unsigned short guint16;
1992
1993
1994
1995 typedef signed int gint32;
1996 typedef unsigned int guint32;
1997
1998
1999
2000
2001
2002 __extension__ typedef signed long long gint64;
2003 __extension__ typedef unsigned long long guint64;
2004 # 59 "/usr/lib/glib-2.0/include/glibconfig.h"
2005 typedef signed int gssize;
2006 typedef unsigned int gsize;
2007 # 126 "/usr/lib/glib-2.0/include/glibconfig.h"
2008 typedef struct _GStaticMutex GStaticMutex;
2009 struct _GStaticMutex
2010 {
2011 struct _GMutex *runtime_mutex;
2012 union {
2013 char pad[24];
2014 double dummy_double;
2015 void *dummy_pointer;
2016 long dummy_long;
2017 } static_mutex;
2018 };
2019 # 145 "/usr/lib/glib-2.0/include/glibconfig.h"
2020 typedef union _GSystemThread GSystemThread;
2021 union _GSystemThread
2022 {
2023 char data[4];
2024 double dummy_double;
2025 void *dummy_pointer;
2026 long dummy_long;
2027 };
2028 # 185 "/usr/lib/glib-2.0/include/glibconfig.h"
2029 typedef int GPid;
2030 # 31 "/usr/include/glib-2.0/glib/gtypes.h" 2
2031 # 41 "/usr/include/glib-2.0/glib/gtypes.h"
2032 typedef char gchar;
2033 typedef short gshort;
2034 typedef long glong;
2035 typedef int gint;
2036 typedef gint gboolean;
2037
2038 typedef unsigned char guchar;
2039 typedef unsigned short gushort;
2040 typedef unsigned long gulong;
2041 typedef unsigned int guint;
2042
2043 typedef float gfloat;
2044 typedef double gdouble;
2045 # 72 "/usr/include/glib-2.0/glib/gtypes.h"
2046 typedef void* gpointer;
2047 typedef const void *gconstpointer;
2048
2049 typedef gint (*GCompareFunc) (gconstpointer a,
2050 gconstpointer b);
2051 typedef gint (*GCompareDataFunc) (gconstpointer a,
2052 gconstpointer b,
2053 gpointer user_data);
2054 typedef gboolean (*GEqualFunc) (gconstpointer a,
2055 gconstpointer b);
2056 typedef void (*GDestroyNotify) (gpointer data);
2057 typedef void (*GFunc) (gpointer data,
2058 gpointer user_data);
2059 typedef guint (*GHashFunc) (gconstpointer key);
2060 typedef void (*GHFunc) (gpointer key,
2061 gpointer value,
2062 gpointer user_data);
2063 typedef void (*GFreeFunc) (gpointer data);
2064 typedef const gchar * (*GTranslateFunc) (const gchar *str,
2065 gpointer data);
2066 # 338 "/usr/include/glib-2.0/glib/gtypes.h"
2067 typedef union _GDoubleIEEE754 GDoubleIEEE754;
2068 typedef union _GFloatIEEE754 GFloatIEEE754;
2069
2070
2071
2072
2073
2074 union _GFloatIEEE754
2075 {
2076 gfloat v_float;
2077 struct {
2078 guint mantissa : 23;
2079 guint biased_exponent : 8;
2080 guint sign : 1;
2081 } mpn;
2082 };
2083 union _GDoubleIEEE754
2084 {
2085 gdouble v_double;
2086 struct {
2087 guint mantissa_low : 32;
2088 guint mantissa_high : 20;
2089 guint biased_exponent : 11;
2090 guint sign : 1;
2091 } mpn;
2092 };
2093 # 388 "/usr/include/glib-2.0/glib/gtypes.h"
2094 typedef struct _GTimeVal GTimeVal;
2095
2096 struct _GTimeVal
2097 {
2098 glong tv_sec;
2099 glong tv_usec;
2100 };
2101 # 31 "/usr/include/glib-2.0/glib/galloca.h" 2
2102 # 31 "/usr/include/glib-2.0/glib.h" 2
2103
2104 # 1 "/usr/include/glib-2.0/glib/garray.h" 1
2105 # 32 "/usr/include/glib-2.0/glib/garray.h"
2106
2107
2108 typedef struct _GArray GArray;
2109 typedef struct _GByteArray GByteArray;
2110 typedef struct _GPtrArray GPtrArray;
2111
2112 struct _GArray
2113 {
2114 gchar *data;
2115 guint len;
2116 };
2117
2118 struct _GByteArray
2119 {
2120 guint8 *data;
2121 guint len;
2122 };
2123
2124 struct _GPtrArray
2125 {
2126 gpointer *pdata;
2127 guint len;
2128 };
2129 # 66 "/usr/include/glib-2.0/glib/garray.h"
2130 GArray* g_array_new (gboolean zero_terminated,
2131 gboolean clear_,
2132 guint element_size);
2133 GArray* g_array_sized_new (gboolean zero_terminated,
2134 gboolean clear_,
2135 guint element_size,
2136 guint reserved_size);
2137 gchar* g_array_free (GArray *array,
2138 gboolean free_segment);
2139 GArray* g_array_append_vals (GArray *array,
2140 gconstpointer data,
2141 guint len);
2142 GArray* g_array_prepend_vals (GArray *array,
2143 gconstpointer data,
2144 guint len);
2145 GArray* g_array_insert_vals (GArray *array,
2146 guint index_,
2147 gconstpointer data,
2148 guint len);
2149 GArray* g_array_set_size (GArray *array,
2150 guint length);
2151 GArray* g_array_remove_index (GArray *array,
2152 guint index_);
2153 GArray* g_array_remove_index_fast (GArray *array,
2154 guint index_);
2155 GArray* g_array_remove_range (GArray *array,
2156 guint index_,
2157 guint length);
2158 void g_array_sort (GArray *array,
2159 GCompareFunc compare_func);
2160 void g_array_sort_with_data (GArray *array,
2161 GCompareDataFunc compare_func,
2162 gpointer user_data);
2163
2164
2165
2166
2167
2168
2169 GPtrArray* g_ptr_array_new (void);
2170 GPtrArray* g_ptr_array_sized_new (guint reserved_size);
2171 gpointer* g_ptr_array_free (GPtrArray *array,
2172 gboolean free_seg);
2173 void g_ptr_array_set_size (GPtrArray *array,
2174 gint length);
2175 gpointer g_ptr_array_remove_index (GPtrArray *array,
2176 guint index_);
2177 gpointer g_ptr_array_remove_index_fast (GPtrArray *array,
2178 guint index_);
2179 gboolean g_ptr_array_remove (GPtrArray *array,
2180 gpointer data);
2181 gboolean g_ptr_array_remove_fast (GPtrArray *array,
2182 gpointer data);
2183 void g_ptr_array_remove_range (GPtrArray *array,
2184 guint index_,
2185 guint length);
2186 void g_ptr_array_add (GPtrArray *array,
2187 gpointer data);
2188 void g_ptr_array_sort (GPtrArray *array,
2189 GCompareFunc compare_func);
2190 void g_ptr_array_sort_with_data (GPtrArray *array,
2191 GCompareDataFunc compare_func,
2192 gpointer user_data);
2193 void g_ptr_array_foreach (GPtrArray *array,
2194 GFunc func,
2195 gpointer user_data);
2196
2197
2198
2199
2200
2201
2202 GByteArray* g_byte_array_new (void);
2203 GByteArray* g_byte_array_sized_new (guint reserved_size);
2204 guint8* g_byte_array_free (GByteArray *array,
2205 gboolean free_segment);
2206 GByteArray* g_byte_array_append (GByteArray *array,
2207 const guint8 *data,
2208 guint len);
2209 GByteArray* g_byte_array_prepend (GByteArray *array,
2210 const guint8 *data,
2211 guint len);
2212 GByteArray* g_byte_array_set_size (GByteArray *array,
2213 guint length);
2214 GByteArray* g_byte_array_remove_index (GByteArray *array,
2215 guint index_);
2216 GByteArray* g_byte_array_remove_index_fast (GByteArray *array,
2217 guint index_);
2218 GByteArray* g_byte_array_remove_range (GByteArray *array,
2219 guint index_,
2220 guint length);
2221 void g_byte_array_sort (GByteArray *array,
2222 GCompareFunc compare_func);
2223 void g_byte_array_sort_with_data (GByteArray *array,
2224 GCompareDataFunc compare_func,
2225 gpointer user_data);
2226 # 32 "/usr/include/glib-2.0/glib.h" 2
2227
2228 # 1 "/usr/include/glib-2.0/glib/gasyncqueue.h" 1
2229 # 30 "/usr/include/glib-2.0/glib/gasyncqueue.h"
2230
2231 # 1 "/usr/include/glib-2.0/glib/gthread.h" 1
2232 # 30 "/usr/include/glib-2.0/glib/gthread.h"
2233
2234 # 1 "/usr/include/glib-2.0/glib/gerror.h" 1
2235 # 24 "/usr/include/glib-2.0/glib/gerror.h"
2236
2237 # 1 "/usr/include/glib-2.0/glib/gquark.h" 1
2238 # 32 "/usr/include/glib-2.0/glib/gquark.h"
2239
2240
2241 typedef guint32 GQuark;
2242
2243
2244
2245 GQuark g_quark_try_string (const gchar *string);
2246 GQuark g_quark_from_static_string (const gchar *string);
2247 GQuark g_quark_from_string (const gchar *string);
2248 const gchar* g_quark_to_string (GQuark quark) __attribute__((__const__));
2249
2250 const gchar* g_intern_string (const gchar *string);
2251 const gchar* g_intern_static_string (const gchar *string);
2252 # 25 "/usr/include/glib-2.0/glib/gerror.h" 2
2253
2254
2255
2256 typedef struct _GError GError;
2257
2258 struct _GError
2259 {
2260 GQuark domain;
2261 gint code;
2262 gchar *message;
2263 };
2264
2265 GError* g_error_new (GQuark domain,
2266 gint code,
2267 const gchar *format,
2268 ...) __attribute__((__format__ (__printf__, 3, 4)));
2269
2270 GError* g_error_new_literal (GQuark domain,
2271 gint code,
2272 const gchar *message);
2273
2274 void g_error_free (GError *error);
2275 GError* g_error_copy (const GError *error);
2276
2277 gboolean g_error_matches (const GError *error,
2278 GQuark domain,
2279 gint code);
2280
2281
2282
2283
2284 void g_set_error (GError **err,
2285 GQuark domain,
2286 gint code,
2287 const gchar *format,
2288 ...) __attribute__((__format__ (__printf__, 4, 5)));
2289
2290
2291
2292 void g_propagate_error (GError **dest,
2293 GError *src);
2294
2295
2296 void g_clear_error (GError **err);
2297 # 31 "/usr/include/glib-2.0/glib/gthread.h" 2
2298
2299
2300 # 1 "/usr/include/glib-2.0/glib/gatomic.h" 1
2301 # 35 "/usr/include/glib-2.0/glib/gatomic.h"
2302
2303
2304 gint g_atomic_int_exchange_and_add (volatile gint *atomic,
2305 gint val);
2306 void g_atomic_int_add (volatile gint *atomic,
2307 gint val);
2308 gboolean g_atomic_int_compare_and_exchange (volatile gint *atomic,
2309 gint oldval,
2310 gint newval);
2311 gboolean g_atomic_pointer_compare_and_exchange (volatile gpointer *atomic,
2312 gpointer oldval,
2313 gpointer newval);
2314
2315 gint g_atomic_int_get (volatile gint *atomic);
2316 void g_atomic_int_set (volatile gint *atomic,
2317 gint newval);
2318 gpointer g_atomic_pointer_get (volatile gpointer *atomic);
2319 void g_atomic_pointer_set (volatile gpointer *atomic,
2320 gpointer newval);
2321 # 66 "/usr/include/glib-2.0/glib/gatomic.h"
2322 # 33 "/usr/include/glib-2.0/glib/gthread.h" 2
2323
2324
2325
2326
2327
2328
2329 extern GQuark g_thread_error_quark (void);
2330
2331
2332 typedef enum
2333 {
2334 G_THREAD_ERROR_AGAIN
2335 } GThreadError;
2336
2337 typedef gpointer (*GThreadFunc) (gpointer data);
2338
2339 typedef enum
2340 {
2341 G_THREAD_PRIORITY_LOW,
2342 G_THREAD_PRIORITY_NORMAL,
2343 G_THREAD_PRIORITY_HIGH,
2344 G_THREAD_PRIORITY_URGENT
2345 } GThreadPriority;
2346
2347 typedef struct _GThread GThread;
2348 struct _GThread
2349 {
2350
2351 GThreadFunc func;
2352 gpointer data;
2353 gboolean joinable;
2354 GThreadPriority priority;
2355 };
2356
2357 typedef struct _GMutex GMutex;
2358 typedef struct _GCond GCond;
2359 typedef struct _GPrivate GPrivate;
2360 typedef struct _GStaticPrivate GStaticPrivate;
2361
2362 typedef struct _GThreadFunctions GThreadFunctions;
2363 struct _GThreadFunctions
2364 {
2365 GMutex* (*mutex_new) (void);
2366 void (*mutex_lock) (GMutex *mutex);
2367 gboolean (*mutex_trylock) (GMutex *mutex);
2368 void (*mutex_unlock) (GMutex *mutex);
2369 void (*mutex_free) (GMutex *mutex);
2370 GCond* (*cond_new) (void);
2371 void (*cond_signal) (GCond *cond);
2372 void (*cond_broadcast) (GCond *cond);
2373 void (*cond_wait) (GCond *cond,
2374 GMutex *mutex);
2375 gboolean (*cond_timed_wait) (GCond *cond,
2376 GMutex *mutex,
2377 GTimeVal *end_time);
2378 void (*cond_free) (GCond *cond);
2379 GPrivate* (*private_new) (GDestroyNotify destructor);
2380 gpointer (*private_get) (GPrivate *private_key);
2381 void (*private_set) (GPrivate *private_key,
2382 gpointer data);
2383 void (*thread_create) (GThreadFunc func,
2384 gpointer data,
2385 gulong stack_size,
2386 gboolean joinable,
2387 gboolean bound,
2388 GThreadPriority priority,
2389 gpointer thread,
2390 GError **error);
2391 void (*thread_yield) (void);
2392 void (*thread_join) (gpointer thread);
2393 void (*thread_exit) (void);
2394 void (*thread_set_priority)(gpointer thread,
2395 GThreadPriority priority);
2396 void (*thread_self) (gpointer thread);
2397 gboolean (*thread_equal) (gpointer thread1,
2398 gpointer thread2);
2399 };
2400
2401 extern GThreadFunctions g_thread_functions_for_glib_use;
2402 extern gboolean g_thread_use_default_impl;
2403 extern gboolean g_threads_got_initialized;
2404
2405
2406
2407
2408
2409 void g_thread_init (GThreadFunctions *vtable);
2410 # 128 "/usr/include/glib-2.0/glib/gthread.h"
2411 void g_thread_init_with_errorcheck_mutexes (GThreadFunctions* vtable);
2412 # 138 "/usr/include/glib-2.0/glib/gthread.h"
2413 GMutex* g_static_mutex_get_mutex_impl (GMutex **mutex);
2414 # 208 "/usr/include/glib-2.0/glib/gthread.h"
2415 GThread* g_thread_create_full (GThreadFunc func,
2416 gpointer data,
2417 gulong stack_size,
2418 gboolean joinable,
2419 gboolean bound,
2420 GThreadPriority priority,
2421 GError **error);
2422 GThread* g_thread_self (void);
2423 void g_thread_exit (gpointer retval);
2424 gpointer g_thread_join (GThread *thread);
2425
2426 void g_thread_set_priority (GThread *thread,
2427 GThreadPriority priority);
2428 # 233 "/usr/include/glib-2.0/glib/gthread.h"
2429 void g_static_mutex_init (GStaticMutex *mutex);
2430 void g_static_mutex_free (GStaticMutex *mutex);
2431
2432 struct _GStaticPrivate
2433 {
2434
2435 guint index;
2436 };
2437
2438 void g_static_private_init (GStaticPrivate *private_key);
2439 gpointer g_static_private_get (GStaticPrivate *private_key);
2440 void g_static_private_set (GStaticPrivate *private_key,
2441 gpointer data,
2442 GDestroyNotify notify);
2443 void g_static_private_free (GStaticPrivate *private_key);
2444
2445 typedef struct _GStaticRecMutex GStaticRecMutex;
2446 struct _GStaticRecMutex
2447 {
2448
2449 GStaticMutex mutex;
2450 guint depth;
2451 GSystemThread owner;
2452 };
2453
2454
2455 void g_static_rec_mutex_init (GStaticRecMutex *mutex);
2456 void g_static_rec_mutex_lock (GStaticRecMutex *mutex);
2457 gboolean g_static_rec_mutex_trylock (GStaticRecMutex *mutex);
2458 void g_static_rec_mutex_unlock (GStaticRecMutex *mutex);
2459 void g_static_rec_mutex_lock_full (GStaticRecMutex *mutex,
2460 guint depth);
2461 guint g_static_rec_mutex_unlock_full (GStaticRecMutex *mutex);
2462 void g_static_rec_mutex_free (GStaticRecMutex *mutex);
2463
2464 typedef struct _GStaticRWLock GStaticRWLock;
2465 struct _GStaticRWLock
2466 {
2467
2468 GStaticMutex mutex;
2469 GCond *read_cond;
2470 GCond *write_cond;
2471 guint read_counter;
2472 gboolean have_writer;
2473 guint want_to_read;
2474 guint want_to_write;
2475 };
2476
2477
2478
2479 void g_static_rw_lock_init (GStaticRWLock* lock);
2480 void g_static_rw_lock_reader_lock (GStaticRWLock* lock);
2481 gboolean g_static_rw_lock_reader_trylock (GStaticRWLock* lock);
2482 void g_static_rw_lock_reader_unlock (GStaticRWLock* lock);
2483 void g_static_rw_lock_writer_lock (GStaticRWLock* lock);
2484 gboolean g_static_rw_lock_writer_trylock (GStaticRWLock* lock);
2485 void g_static_rw_lock_writer_unlock (GStaticRWLock* lock);
2486 void g_static_rw_lock_free (GStaticRWLock* lock);
2487
2488 void g_thread_foreach (GFunc thread_func,
2489 gpointer user_data);
2490
2491 typedef enum
2492 {
2493 G_ONCE_STATUS_NOTCALLED,
2494 G_ONCE_STATUS_PROGRESS,
2495 G_ONCE_STATUS_READY
2496 } GOnceStatus;
2497
2498 typedef struct _GOnce GOnce;
2499 struct _GOnce
2500 {
2501 volatile GOnceStatus status;
2502 volatile gpointer retval;
2503 };
2504
2505
2506
2507 gpointer g_once_impl (GOnce *once, GThreadFunc func, gpointer arg);
2508 # 331 "/usr/include/glib-2.0/glib/gthread.h"
2509 extern void glib_dummy_decl (void);
2510 # 374 "/usr/include/glib-2.0/glib/gthread.h"
2511 # 31 "/usr/include/glib-2.0/glib/gasyncqueue.h" 2
2512
2513
2514
2515 typedef struct _GAsyncQueue GAsyncQueue;
2516
2517
2518
2519
2520 GAsyncQueue* g_async_queue_new (void);
2521
2522
2523
2524
2525
2526 void g_async_queue_lock (GAsyncQueue *queue);
2527 void g_async_queue_unlock (GAsyncQueue *queue);
2528
2529
2530 GAsyncQueue* g_async_queue_ref (GAsyncQueue *queue);
2531 void g_async_queue_unref (GAsyncQueue *queue);
2532
2533
2534
2535 void g_async_queue_ref_unlocked (GAsyncQueue *queue);
2536 void g_async_queue_unref_and_unlock (GAsyncQueue *queue);
2537
2538
2539
2540 void g_async_queue_push (GAsyncQueue *queue,
2541 gpointer data);
2542 void g_async_queue_push_unlocked (GAsyncQueue *queue,
2543 gpointer data);
2544
2545 void g_async_queue_push_sorted (GAsyncQueue *queue,
2546 gpointer data,
2547 GCompareDataFunc func,
2548 gpointer user_data);
2549 void g_async_queue_push_sorted_unlocked (GAsyncQueue *queue,
2550 gpointer data,
2551 GCompareDataFunc func,
2552 gpointer user_data);
2553
2554
2555
2556
2557 gpointer g_async_queue_pop (GAsyncQueue *queue);
2558 gpointer g_async_queue_pop_unlocked (GAsyncQueue *queue);
2559
2560
2561 gpointer g_async_queue_try_pop (GAsyncQueue *queue);
2562 gpointer g_async_queue_try_pop_unlocked (GAsyncQueue *queue);
2563
2564
2565
2566
2567
2568
2569 gpointer g_async_queue_timed_pop (GAsyncQueue *queue,
2570 GTimeVal *end_time);
2571 gpointer g_async_queue_timed_pop_unlocked (GAsyncQueue *queue,
2572 GTimeVal *end_time);
2573 # 100 "/usr/include/glib-2.0/glib/gasyncqueue.h"
2574 gint g_async_queue_length (GAsyncQueue *queue);
2575 gint g_async_queue_length_unlocked (GAsyncQueue *queue);
2576 void g_async_queue_sort (GAsyncQueue *queue,
2577 GCompareDataFunc func,
2578 gpointer user_data);
2579 void g_async_queue_sort_unlocked (GAsyncQueue *queue,
2580 GCompareDataFunc func,
2581 gpointer user_data);
2582
2583
2584 GMutex* _g_async_queue_get_mutex (GAsyncQueue *queue);
2585 # 33 "/usr/include/glib-2.0/glib.h" 2
2586
2587
2588 # 1 "/usr/include/glib-2.0/glib/gbacktrace.h" 1
2589 # 32 "/usr/include/glib-2.0/glib/gbacktrace.h"
2590 # 43 "/usr/include/glib-2.0/glib/gbacktrace.h"
2591 void g_on_error_query (const gchar *prg_name);
2592 void g_on_error_stack_trace (const gchar *prg_name);
2593 # 59 "/usr/include/glib-2.0/glib/gbacktrace.h"
2594 # 35 "/usr/include/glib-2.0/glib.h" 2
2595
2596 # 1 "/usr/include/glib-2.0/glib/gcache.h" 1
2597 # 30 "/usr/include/glib-2.0/glib/gcache.h"
2598
2599 # 1 "/usr/include/glib-2.0/glib/glist.h" 1
2600 # 30 "/usr/include/glib-2.0/glib/glist.h"
2601
2602 # 1 "/usr/include/glib-2.0/glib/gmem.h" 1
2603 # 30 "/usr/include/glib-2.0/glib/gmem.h"
2604
2605 # 1 "/usr/include/glib-2.0/glib/gslice.h" 1
2606 # 28 "/usr/include/glib-2.0/glib/gslice.h"
2607
2608
2609
2610
2611 gpointer g_slice_alloc (gsize block_size) __attribute__((__malloc__));
2612 gpointer g_slice_alloc0 (gsize block_size) __attribute__((__malloc__));
2613 void g_slice_free1 (gsize block_size,
2614 gpointer mem_block);
2615 void g_slice_free_chain_with_offset (gsize block_size,
2616 gpointer mem_chain,
2617 gsize next_offset);
2618 # 63 "/usr/include/glib-2.0/glib/gslice.h"
2619 typedef enum {
2620 G_SLICE_CONFIG_ALWAYS_MALLOC = 1,
2621 G_SLICE_CONFIG_BYPASS_MAGAZINES,
2622 G_SLICE_CONFIG_WORKING_SET_MSECS,
2623 G_SLICE_CONFIG_COLOR_INCREMENT,
2624 G_SLICE_CONFIG_CHUNK_SIZES,
2625 G_SLICE_CONFIG_CONTENTION_COUNTER
2626 } GSliceConfig;
2627 void g_slice_set_config (GSliceConfig ckey, gint64 value);
2628 gint64 g_slice_get_config (GSliceConfig ckey);
2629 gint64* g_slice_get_config_state (GSliceConfig ckey, gint64 address, guint *n_values);
2630 # 31 "/usr/include/glib-2.0/glib/gmem.h" 2
2631
2632
2633
2634
2635 typedef struct _GMemVTable GMemVTable;
2636 # 47 "/usr/include/glib-2.0/glib/gmem.h"
2637 gpointer g_malloc (gulong n_bytes) __attribute__((__malloc__));
2638 gpointer g_malloc0 (gulong n_bytes) __attribute__((__malloc__));
2639 gpointer g_realloc (gpointer mem,
2640 gulong n_bytes) __attribute__((warn_unused_result));
2641 void g_free (gpointer mem);
2642 gpointer g_try_malloc (gulong n_bytes) __attribute__((__malloc__));
2643 gpointer g_try_malloc0 (gulong n_bytes) __attribute__((__malloc__));
2644 gpointer g_try_realloc (gpointer mem,
2645 gulong n_bytes) __attribute__((warn_unused_result));
2646 # 79 "/usr/include/glib-2.0/glib/gmem.h"
2647 struct _GMemVTable
2648 {
2649 gpointer (*malloc) (gsize n_bytes);
2650 gpointer (*realloc) (gpointer mem,
2651 gsize n_bytes);
2652 void (*free) (gpointer mem);
2653
2654 gpointer (*calloc) (gsize n_blocks,
2655 gsize n_block_bytes);
2656 gpointer (*try_malloc) (gsize n_bytes);
2657 gpointer (*try_realloc) (gpointer mem,
2658 gsize n_bytes);
2659 };
2660 void g_mem_set_vtable (GMemVTable *vtable);
2661 gboolean g_mem_is_system_malloc (void);
2662
2663 extern gboolean g_mem_gc_friendly;
2664
2665
2666
2667 extern GMemVTable *glib_mem_profiler_table;
2668 void g_mem_profile (void);
2669
2670
2671
2672
2673 typedef struct _GAllocator GAllocator;
2674 typedef struct _GMemChunk GMemChunk;
2675 # 124 "/usr/include/glib-2.0/glib/gmem.h"
2676 GMemChunk* g_mem_chunk_new (const gchar *name,
2677 gint atom_size,
2678 gulong area_size,
2679 gint type);
2680 void g_mem_chunk_destroy (GMemChunk *mem_chunk);
2681 gpointer g_mem_chunk_alloc (GMemChunk *mem_chunk);
2682 gpointer g_mem_chunk_alloc0 (GMemChunk *mem_chunk);
2683 void g_mem_chunk_free (GMemChunk *mem_chunk,
2684 gpointer mem);
2685 void g_mem_chunk_clean (GMemChunk *mem_chunk);
2686 void g_mem_chunk_reset (GMemChunk *mem_chunk);
2687 void g_mem_chunk_print (GMemChunk *mem_chunk);
2688 void g_mem_chunk_info (void);
2689 void g_blow_chunks (void);
2690 GAllocator*g_allocator_new (const gchar *name,
2691 guint n_preallocs);
2692 void g_allocator_free (GAllocator *allocator);
2693 # 31 "/usr/include/glib-2.0/glib/glist.h" 2
2694
2695
2696
2697 typedef struct _GList GList;
2698
2699 struct _GList
2700 {
2701 gpointer data;
2702 GList *next;
2703 GList *prev;
2704 };
2705
2706
2707
2708 GList* g_list_alloc (void) __attribute__((warn_unused_result));
2709 void g_list_free (GList *list);
2710 void g_list_free_1 (GList *list);
2711
2712 GList* g_list_append (GList *list,
2713 gpointer data) __attribute__((warn_unused_result));
2714 GList* g_list_prepend (GList *list,
2715 gpointer data) __attribute__((warn_unused_result));
2716 GList* g_list_insert (GList *list,
2717 gpointer data,
2718 gint position) __attribute__((warn_unused_result));
2719 GList* g_list_insert_sorted (GList *list,
2720 gpointer data,
2721 GCompareFunc func) __attribute__((warn_unused_result));
2722 GList* g_list_insert_sorted_with_data (GList *list,
2723 gpointer data,
2724 GCompareDataFunc func,
2725 gpointer user_data) __attribute__((warn_unused_result));
2726 GList* g_list_insert_before (GList *list,
2727 GList *sibling,
2728 gpointer data) __attribute__((warn_unused_result));
2729 GList* g_list_concat (GList *list1,
2730 GList *list2) __attribute__((warn_unused_result));
2731 GList* g_list_remove (GList *list,
2732 gconstpointer data) __attribute__((warn_unused_result));
2733 GList* g_list_remove_all (GList *list,
2734 gconstpointer data) __attribute__((warn_unused_result));
2735 GList* g_list_remove_link (GList *list,
2736 GList *llink) __attribute__((warn_unused_result));
2737 GList* g_list_delete_link (GList *list,
2738 GList *link_) __attribute__((warn_unused_result));
2739 GList* g_list_reverse (GList *list) __attribute__((warn_unused_result));
2740 GList* g_list_copy (GList *list) __attribute__((warn_unused_result));
2741 GList* g_list_nth (GList *list,
2742 guint n);
2743 GList* g_list_nth_prev (GList *list,
2744 guint n);
2745 GList* g_list_find (GList *list,
2746 gconstpointer data);
2747 GList* g_list_find_custom (GList *list,
2748 gconstpointer data,
2749 GCompareFunc func);
2750 gint g_list_position (GList *list,
2751 GList *llink);
2752 gint g_list_index (GList *list,
2753 gconstpointer data);
2754 GList* g_list_last (GList *list);
2755 GList* g_list_first (GList *list);
2756 guint g_list_length (GList *list);
2757 void g_list_foreach (GList *list,
2758 GFunc func,
2759 gpointer user_data);
2760 GList* g_list_sort (GList *list,
2761 GCompareFunc compare_func) __attribute__((warn_unused_result));
2762 GList* g_list_sort_with_data (GList *list,
2763 GCompareDataFunc compare_func,
2764 gpointer user_data) __attribute__((warn_unused_result));
2765 gpointer g_list_nth_data (GList *list,
2766 guint n);
2767
2768
2769
2770
2771
2772
2773 void g_list_push_allocator (gpointer allocator);
2774 void g_list_pop_allocator (void);
2775 # 31 "/usr/include/glib-2.0/glib/gcache.h" 2
2776
2777
2778
2779 typedef struct _GCache GCache;
2780
2781 typedef gpointer (*GCacheNewFunc) (gpointer key);
2782 typedef gpointer (*GCacheDupFunc) (gpointer value);
2783 typedef void (*GCacheDestroyFunc) (gpointer value);
2784
2785
2786
2787 GCache* g_cache_new (GCacheNewFunc value_new_func,
2788 GCacheDestroyFunc value_destroy_func,
2789 GCacheDupFunc key_dup_func,
2790 GCacheDestroyFunc key_destroy_func,
2791 GHashFunc hash_key_func,
2792 GHashFunc hash_value_func,
2793 GEqualFunc key_equal_func);
2794 void g_cache_destroy (GCache *cache);
2795 gpointer g_cache_insert (GCache *cache,
2796 gpointer key);
2797 void g_cache_remove (GCache *cache,
2798 gconstpointer value);
2799 void g_cache_key_foreach (GCache *cache,
2800 GHFunc func,
2801 gpointer user_data);
2802
2803 void g_cache_value_foreach (GCache *cache,
2804 GHFunc func,
2805 gpointer user_data);
2806 # 36 "/usr/include/glib-2.0/glib.h" 2
2807
2808 # 1 "/usr/include/glib-2.0/glib/gcompletion.h" 1
2809 # 32 "/usr/include/glib-2.0/glib/gcompletion.h"
2810
2811
2812 typedef struct _GCompletion GCompletion;
2813
2814 typedef gchar* (*GCompletionFunc) (gpointer);
2815
2816
2817
2818
2819 typedef gint (*GCompletionStrncmpFunc) (const gchar *s1,
2820 const gchar *s2,
2821 gsize n);
2822
2823 struct _GCompletion
2824 {
2825 GList* items;
2826 GCompletionFunc func;
2827
2828 gchar* prefix;
2829 GList* cache;
2830 GCompletionStrncmpFunc strncmp_func;
2831 };
2832
2833 GCompletion* g_completion_new (GCompletionFunc func);
2834 void g_completion_add_items (GCompletion* cmp,
2835 GList* items);
2836 void g_completion_remove_items (GCompletion* cmp,
2837 GList* items);
2838 void g_completion_clear_items (GCompletion* cmp);
2839 GList* g_completion_complete (GCompletion* cmp,
2840 const gchar* prefix,
2841 gchar** new_prefix);
2842 GList* g_completion_complete_utf8 (GCompletion *cmp,
2843 const gchar* prefix,
2844 gchar** new_prefix);
2845 void g_completion_set_compare (GCompletion *cmp,
2846 GCompletionStrncmpFunc strncmp_func);
2847 void g_completion_free (GCompletion* cmp);
2848 # 37 "/usr/include/glib-2.0/glib.h" 2
2849
2850 # 1 "/usr/include/glib-2.0/glib/gconvert.h" 1
2851 # 30 "/usr/include/glib-2.0/glib/gconvert.h"
2852
2853 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
2854 # 31 "/usr/include/glib-2.0/glib/gconvert.h" 2
2855
2856
2857
2858
2859 typedef enum
2860 {
2861 G_CONVERT_ERROR_NO_CONVERSION,
2862 G_CONVERT_ERROR_ILLEGAL_SEQUENCE,
2863 G_CONVERT_ERROR_FAILED,
2864 G_CONVERT_ERROR_PARTIAL_INPUT,
2865 G_CONVERT_ERROR_BAD_URI,
2866 G_CONVERT_ERROR_NOT_ABSOLUTE_PATH
2867 } GConvertError;
2868
2869
2870 GQuark g_convert_error_quark (void);
2871
2872
2873
2874 typedef struct _GIConv *GIConv;
2875
2876 GIConv g_iconv_open (const gchar *to_codeset,
2877 const gchar *from_codeset);
2878 size_t g_iconv (GIConv converter,
2879 gchar **inbuf,
2880 gsize *inbytes_left,
2881 gchar **outbuf,
2882 gsize *outbytes_left);
2883 gint g_iconv_close (GIConv converter);
2884
2885
2886 gchar* g_convert (const gchar *str,
2887 gssize len,
2888 const gchar *to_codeset,
2889 const gchar *from_codeset,
2890 gsize *bytes_read,
2891 gsize *bytes_written,
2892 GError **error) __attribute__((__malloc__));
2893 gchar* g_convert_with_iconv (const gchar *str,
2894 gssize len,
2895 GIConv converter,
2896 gsize *bytes_read,
2897 gsize *bytes_written,
2898 GError **error) __attribute__((__malloc__));
2899 gchar* g_convert_with_fallback (const gchar *str,
2900 gssize len,
2901 const gchar *to_codeset,
2902 const gchar *from_codeset,
2903 gchar *fallback,
2904 gsize *bytes_read,
2905 gsize *bytes_written,
2906 GError **error) __attribute__((__malloc__));
2907
2908
2909
2910
2911 gchar* g_locale_to_utf8 (const gchar *opsysstring,
2912 gssize len,
2913 gsize *bytes_read,
2914 gsize *bytes_written,
2915 GError **error) __attribute__((__malloc__));
2916 gchar* g_locale_from_utf8 (const gchar *utf8string,
2917 gssize len,
2918 gsize *bytes_read,
2919 gsize *bytes_written,
2920 GError **error) __attribute__((__malloc__));
2921 # 108 "/usr/include/glib-2.0/glib/gconvert.h"
2922 gchar* g_filename_to_utf8 (const gchar *opsysstring,
2923 gssize len,
2924 gsize *bytes_read,
2925 gsize *bytes_written,
2926 GError **error) __attribute__((__malloc__));
2927 gchar* g_filename_from_utf8 (const gchar *utf8string,
2928 gssize len,
2929 gsize *bytes_read,
2930 gsize *bytes_written,
2931 GError **error) __attribute__((__malloc__));
2932
2933 gchar *g_filename_from_uri (const gchar *uri,
2934 gchar **hostname,
2935 GError **error) __attribute__((__malloc__));
2936
2937 gchar *g_filename_to_uri (const gchar *filename,
2938 const gchar *hostname,
2939 GError **error) __attribute__((__malloc__));
2940 gchar *g_filename_display_name (const gchar *filename) __attribute__((__malloc__));
2941 gboolean g_get_filename_charsets (const gchar ***charsets);
2942
2943 gchar *g_filename_display_basename (const gchar *filename) __attribute__((__malloc__));
2944
2945 gchar **g_uri_list_extract_uris (const gchar *uri_list) __attribute__((__malloc__));
2946 # 38 "/usr/include/glib-2.0/glib.h" 2
2947
2948 # 1 "/usr/include/glib-2.0/glib/gdataset.h" 1
2949 # 32 "/usr/include/glib-2.0/glib/gdataset.h"
2950
2951
2952 typedef struct _GData GData;
2953
2954 typedef void (*GDataForeachFunc) (GQuark key_id,
2955 gpointer data,
2956 gpointer user_data);
2957
2958
2959
2960 void g_datalist_init (GData **datalist);
2961 void g_datalist_clear (GData **datalist);
2962 gpointer g_datalist_id_get_data (GData **datalist,
2963 GQuark key_id);
2964 void g_datalist_id_set_data_full (GData **datalist,
2965 GQuark key_id,
2966 gpointer data,
2967 GDestroyNotify destroy_func);
2968 gpointer g_datalist_id_remove_no_notify (GData **datalist,
2969 GQuark key_id);
2970 void g_datalist_foreach (GData **datalist,
2971 GDataForeachFunc func,
2972 gpointer user_data);
2973 # 65 "/usr/include/glib-2.0/glib/gdataset.h"
2974 void g_datalist_set_flags (GData **datalist,
2975 guint flags);
2976 void g_datalist_unset_flags (GData **datalist,
2977 guint flags);
2978 guint g_datalist_get_flags (GData **datalist);
2979 # 89 "/usr/include/glib-2.0/glib/gdataset.h"
2980 void g_dataset_destroy (gconstpointer dataset_location);
2981 gpointer g_dataset_id_get_data (gconstpointer dataset_location,
2982 GQuark key_id);
2983 void g_dataset_id_set_data_full (gconstpointer dataset_location,
2984 GQuark key_id,
2985 gpointer data,
2986 GDestroyNotify destroy_func);
2987 gpointer g_dataset_id_remove_no_notify (gconstpointer dataset_location,
2988 GQuark key_id);
2989 void g_dataset_foreach (gconstpointer dataset_location,
2990 GDataForeachFunc func,
2991 gpointer user_data);
2992 # 116 "/usr/include/glib-2.0/glib/gdataset.h"
2993 # 39 "/usr/include/glib-2.0/glib.h" 2
2994
2995 # 1 "/usr/include/glib-2.0/glib/gdate.h" 1
2996 # 30 "/usr/include/glib-2.0/glib/gdate.h"
2997
2998 # 1 "/usr/include/time.h" 1 3 4
2999 # 31 "/usr/include/time.h" 3 4
3000 # 40 "/usr/include/time.h" 3 4
3001 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
3002 # 40 "/usr/include/time.h" 2 3 4
3003
3004
3005
3006
3007 # 1 "/usr/include/bits/time.h" 1 3 4
3008 # 44 "/usr/include/time.h" 2 3 4
3009 # 59 "/usr/include/time.h" 3 4
3010
3011
3012 typedef __clock_t clock_t;
3013 # 132 "/usr/include/time.h" 3 4
3014
3015
3016 struct tm
3017 {
3018 int tm_sec;
3019 int tm_min;
3020 int tm_hour;
3021 int tm_mday;
3022 int tm_mon;
3023 int tm_year;
3024 int tm_wday;
3025 int tm_yday;
3026 int tm_isdst;
3027
3028
3029 long int tm_gmtoff;
3030 __const char *tm_zone;
3031
3032
3033
3034
3035 };
3036 # 162 "/usr/include/time.h" 3 4
3037 struct itimerspec
3038 {
3039 struct timespec it_interval;
3040 struct timespec it_value;
3041 };
3042
3043
3044 struct sigevent;
3045 # 181 "/usr/include/time.h" 3 4
3046
3047
3048
3049 extern clock_t clock (void) __attribute__ ((__nothrow__));
3050
3051
3052 extern time_t time (time_t *__timer) __attribute__ ((__nothrow__));
3053
3054
3055 extern double difftime (time_t __time1, time_t __time0)
3056 __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3057
3058
3059 extern time_t mktime (struct tm *__tp) __attribute__ ((__nothrow__));
3060
3061
3062
3063
3064
3065 extern size_t strftime (char *__restrict __s, size_t __maxsize,
3066 __const char *__restrict __format,
3067 __const struct tm *__restrict __tp) __attribute__ ((__nothrow__));
3068 # 229 "/usr/include/time.h" 3 4
3069
3070
3071
3072 extern struct tm *gmtime (__const time_t *__timer) __attribute__ ((__nothrow__));
3073
3074
3075
3076 extern struct tm *localtime (__const time_t *__timer) __attribute__ ((__nothrow__));
3077
3078
3079
3080
3081
3082 extern struct tm *gmtime_r (__const time_t *__restrict __timer,
3083 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
3084
3085
3086
3087 extern struct tm *localtime_r (__const time_t *__restrict __timer,
3088 struct tm *__restrict __tp) __attribute__ ((__nothrow__));
3089
3090
3091
3092
3093
3094 extern char *asctime (__const struct tm *__tp) __attribute__ ((__nothrow__));
3095
3096
3097 extern char *ctime (__const time_t *__timer) __attribute__ ((__nothrow__));
3098
3099
3100
3101
3102
3103
3104
3105 extern char *asctime_r (__const struct tm *__restrict __tp,
3106 char *__restrict __buf) __attribute__ ((__nothrow__));
3107
3108
3109 extern char *ctime_r (__const time_t *__restrict __timer,
3110 char *__restrict __buf) __attribute__ ((__nothrow__));
3111
3112
3113
3114
3115 extern char *__tzname[2];
3116 extern int __daylight;
3117 extern long int __timezone;
3118
3119
3120
3121
3122 extern char *tzname[2];
3123
3124
3125
3126 extern void tzset (void) __attribute__ ((__nothrow__));
3127
3128
3129
3130 extern int daylight;
3131 extern long int timezone;
3132
3133
3134
3135
3136
3137 extern int stime (__const time_t *__when) __attribute__ ((__nothrow__));
3138 # 312 "/usr/include/time.h" 3 4
3139 extern time_t timegm (struct tm *__tp) __attribute__ ((__nothrow__));
3140
3141
3142 extern time_t timelocal (struct tm *__tp) __attribute__ ((__nothrow__));
3143
3144
3145 extern int dysize (int __year) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
3146 # 327 "/usr/include/time.h" 3 4
3147 extern int nanosleep (__const struct timespec *__requested_time,
3148 struct timespec *__remaining);
3149
3150
3151
3152 extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __attribute__ ((__nothrow__));
3153
3154
3155 extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __attribute__ ((__nothrow__));
3156
3157
3158 extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp)
3159 __attribute__ ((__nothrow__));
3160
3161
3162
3163
3164
3165
3166 extern int clock_nanosleep (clockid_t __clock_id, int __flags,
3167 __const struct timespec *__req,
3168 struct timespec *__rem);
3169
3170
3171 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __attribute__ ((__nothrow__));
3172
3173
3174
3175
3176 extern int timer_create (clockid_t __clock_id,
3177 struct sigevent *__restrict __evp,
3178 timer_t *__restrict __timerid) __attribute__ ((__nothrow__));
3179
3180
3181 extern int timer_delete (timer_t __timerid) __attribute__ ((__nothrow__));
3182
3183
3184 extern int timer_settime (timer_t __timerid, int __flags,
3185 __const struct itimerspec *__restrict __value,
3186 struct itimerspec *__restrict __ovalue) __attribute__ ((__nothrow__));
3187
3188
3189 extern int timer_gettime (timer_t __timerid, struct itimerspec *__value)
3190 __attribute__ ((__nothrow__));
3191
3192
3193 extern int timer_getoverrun (timer_t __timerid) __attribute__ ((__nothrow__));
3194 # 416 "/usr/include/time.h" 3 4
3195 # 31 "/usr/include/glib-2.0/glib/gdate.h" 2
3196 # 46 "/usr/include/glib-2.0/glib/gdate.h"
3197 typedef gint32 GTime;
3198 typedef guint16 GDateYear;
3199 typedef guint8 GDateDay;
3200 typedef struct _GDate GDate;
3201
3202 struct tm;
3203
3204
3205 typedef enum
3206 {
3207 G_DATE_DAY = 0,
3208 G_DATE_MONTH = 1,
3209 G_DATE_YEAR = 2
3210 } GDateDMY;
3211
3212
3213 typedef enum
3214 {
3215 G_DATE_BAD_WEEKDAY = 0,
3216 G_DATE_MONDAY = 1,
3217 G_DATE_TUESDAY = 2,
3218 G_DATE_WEDNESDAY = 3,
3219 G_DATE_THURSDAY = 4,
3220 G_DATE_FRIDAY = 5,
3221 G_DATE_SATURDAY = 6,
3222 G_DATE_SUNDAY = 7
3223 } GDateWeekday;
3224 typedef enum
3225 {
3226 G_DATE_BAD_MONTH = 0,
3227 G_DATE_JANUARY = 1,
3228 G_DATE_FEBRUARY = 2,
3229 G_DATE_MARCH = 3,
3230 G_DATE_APRIL = 4,
3231 G_DATE_MAY = 5,
3232 G_DATE_JUNE = 6,
3233 G_DATE_JULY = 7,
3234 G_DATE_AUGUST = 8,
3235 G_DATE_SEPTEMBER = 9,
3236 G_DATE_OCTOBER = 10,
3237 G_DATE_NOVEMBER = 11,
3238 G_DATE_DECEMBER = 12
3239 } GDateMonth;
3240 # 99 "/usr/include/glib-2.0/glib/gdate.h"
3241 struct _GDate
3242 {
3243 guint julian_days : 32;
3244
3245
3246
3247
3248
3249 guint julian : 1;
3250 guint dmy : 1;
3251
3252
3253 guint day : 6;
3254 guint month : 4;
3255 guint year : 16;
3256 };
3257
3258
3259
3260
3261
3262 GDate* g_date_new (void);
3263 GDate* g_date_new_dmy (GDateDay day,
3264 GDateMonth month,
3265 GDateYear year);
3266 GDate* g_date_new_julian (guint32 julian_day);
3267 void g_date_free (GDate *date);
3268
3269
3270
3271
3272
3273
3274 gboolean g_date_valid (const GDate *date);
3275 gboolean g_date_valid_day (GDateDay day) __attribute__((__const__));
3276 gboolean g_date_valid_month (GDateMonth month) __attribute__((__const__));
3277 gboolean g_date_valid_year (GDateYear year) __attribute__((__const__));
3278 gboolean g_date_valid_weekday (GDateWeekday weekday) __attribute__((__const__));
3279 gboolean g_date_valid_julian (guint32 julian_date) __attribute__((__const__));
3280 gboolean g_date_valid_dmy (GDateDay day,
3281 GDateMonth month,
3282 GDateYear year) __attribute__((__const__));
3283
3284 GDateWeekday g_date_get_weekday (const GDate *date);
3285 GDateMonth g_date_get_month (const GDate *date);
3286 GDateYear g_date_get_year (const GDate *date);
3287 GDateDay g_date_get_day (const GDate *date);
3288 guint32 g_date_get_julian (const GDate *date);
3289 guint g_date_get_day_of_year (const GDate *date);
3290
3291
3292
3293
3294
3295
3296 guint g_date_get_monday_week_of_year (const GDate *date);
3297 guint g_date_get_sunday_week_of_year (const GDate *date);
3298 guint g_date_get_iso8601_week_of_year (const GDate *date);
3299
3300
3301
3302
3303
3304 void g_date_clear (GDate *date,
3305 guint n_dates);
3306
3307
3308
3309
3310
3311 void g_date_set_parse (GDate *date,
3312 const gchar *str);
3313 void g_date_set_time_t (GDate *date,
3314 time_t timet);
3315 void g_date_set_time_val (GDate *date,
3316 GTimeVal *timeval);
3317
3318 void g_date_set_time (GDate *date,
3319 GTime time_);
3320
3321 void g_date_set_month (GDate *date,
3322 GDateMonth month);
3323 void g_date_set_day (GDate *date,
3324 GDateDay day);
3325 void g_date_set_year (GDate *date,
3326 GDateYear year);
3327 void g_date_set_dmy (GDate *date,
3328 GDateDay day,
3329 GDateMonth month,
3330 GDateYear y);
3331 void g_date_set_julian (GDate *date,
3332 guint32 julian_date);
3333 gboolean g_date_is_first_of_month (const GDate *date);
3334 gboolean g_date_is_last_of_month (const GDate *date);
3335
3336
3337 void g_date_add_days (GDate *date,
3338 guint n_days);
3339 void g_date_subtract_days (GDate *date,
3340 guint n_days);
3341
3342
3343 void g_date_add_months (GDate *date,
3344 guint n_months);
3345 void g_date_subtract_months (GDate *date,
3346 guint n_months);
3347
3348
3349 void g_date_add_years (GDate *date,
3350 guint n_years);
3351 void g_date_subtract_years (GDate *date,
3352 guint n_years);
3353 gboolean g_date_is_leap_year (GDateYear year) __attribute__((__const__));
3354 guint8 g_date_get_days_in_month (GDateMonth month,
3355 GDateYear year) __attribute__((__const__));
3356 guint8 g_date_get_monday_weeks_in_year (GDateYear year) __attribute__((__const__));
3357 guint8 g_date_get_sunday_weeks_in_year (GDateYear year) __attribute__((__const__));
3358
3359
3360
3361 gint g_date_days_between (const GDate *date1,
3362 const GDate *date2);
3363
3364
3365 gint g_date_compare (const GDate *lhs,
3366 const GDate *rhs);
3367 void g_date_to_struct_tm (const GDate *date,
3368 struct tm *tm);
3369
3370 void g_date_clamp (GDate *date,
3371 const GDate *min_date,
3372 const GDate *max_date);
3373
3374
3375 void g_date_order (GDate *date1, GDate *date2);
3376
3377
3378
3379
3380 gsize g_date_strftime (gchar *s,
3381 gsize slen,
3382 const gchar *format,
3383 const GDate *date);
3384 # 259 "/usr/include/glib-2.0/glib/gdate.h"
3385 # 40 "/usr/include/glib-2.0/glib.h" 2
3386
3387 # 1 "/usr/include/glib-2.0/glib/gdir.h" 1
3388 # 28 "/usr/include/glib-2.0/glib/gdir.h"
3389
3390
3391 typedef struct _GDir GDir;
3392
3393
3394
3395
3396
3397
3398
3399 GDir * g_dir_open (const gchar *path,
3400 guint flags,
3401 GError **error);
3402 const gchar *g_dir_read_name (GDir *dir);
3403 void g_dir_rewind (GDir *dir);
3404 void g_dir_close (GDir *dir);
3405 # 41 "/usr/include/glib-2.0/glib.h" 2
3406
3407
3408 # 1 "/usr/include/glib-2.0/glib/gfileutils.h" 1
3409 # 26 "/usr/include/glib-2.0/glib/gfileutils.h"
3410
3411
3412
3413
3414 typedef enum
3415 {
3416 G_FILE_ERROR_EXIST,
3417 G_FILE_ERROR_ISDIR,
3418 G_FILE_ERROR_ACCES,
3419 G_FILE_ERROR_NAMETOOLONG,
3420 G_FILE_ERROR_NOENT,
3421 G_FILE_ERROR_NOTDIR,
3422 G_FILE_ERROR_NXIO,
3423 G_FILE_ERROR_NODEV,
3424 G_FILE_ERROR_ROFS,
3425 G_FILE_ERROR_TXTBSY,
3426 G_FILE_ERROR_FAULT,
3427 G_FILE_ERROR_LOOP,
3428 G_FILE_ERROR_NOSPC,
3429 G_FILE_ERROR_NOMEM,
3430 G_FILE_ERROR_MFILE,
3431 G_FILE_ERROR_NFILE,
3432 G_FILE_ERROR_BADF,
3433 G_FILE_ERROR_INVAL,
3434 G_FILE_ERROR_PIPE,
3435 G_FILE_ERROR_AGAIN,
3436 G_FILE_ERROR_INTR,
3437 G_FILE_ERROR_IO,
3438 G_FILE_ERROR_PERM,
3439 G_FILE_ERROR_NOSYS,
3440 G_FILE_ERROR_FAILED
3441 } GFileError;
3442
3443
3444
3445
3446
3447 typedef enum
3448 {
3449 G_FILE_TEST_IS_REGULAR = 1 << 0,
3450 G_FILE_TEST_IS_SYMLINK = 1 << 1,
3451 G_FILE_TEST_IS_DIR = 1 << 2,
3452 G_FILE_TEST_IS_EXECUTABLE = 1 << 3,
3453 G_FILE_TEST_EXISTS = 1 << 4
3454 } GFileTest;
3455
3456 GQuark g_file_error_quark (void);
3457
3458 GFileError g_file_error_from_errno (gint err_no);
3459 # 83 "/usr/include/glib-2.0/glib/gfileutils.h"
3460 gboolean g_file_test (const gchar *filename,
3461 GFileTest test);
3462 gboolean g_file_get_contents (const gchar *filename,
3463 gchar **contents,
3464 gsize *length,
3465 GError **error);
3466 gboolean g_file_set_contents (const gchar *filename,
3467 const gchar *contents,
3468 gssize length,
3469 GError **error);
3470 gchar *g_file_read_link (const gchar *filename,
3471 GError **error);
3472
3473
3474 gint g_mkstemp (gchar *tmpl);
3475
3476
3477 gint g_file_open_tmp (const gchar *tmpl,
3478 gchar **name_used,
3479 GError **error);
3480
3481 gchar *g_build_path (const gchar *separator,
3482 const gchar *first_element,
3483 ...) __attribute__((__malloc__)) __attribute__((__sentinel__));
3484 gchar *g_build_pathv (const gchar *separator,
3485 gchar **args) __attribute__((__malloc__));
3486
3487 gchar *g_build_filename (const gchar *first_element,
3488 ...) __attribute__((__malloc__)) __attribute__((__sentinel__));
3489 gchar *g_build_filenamev (gchar **args) __attribute__((__malloc__));
3490
3491 int g_mkdir_with_parents (const gchar *pathname,
3492 int mode);
3493 # 43 "/usr/include/glib-2.0/glib.h" 2
3494
3495 # 1 "/usr/include/glib-2.0/glib/ghash.h" 1
3496 # 32 "/usr/include/glib-2.0/glib/ghash.h"
3497
3498
3499 typedef struct _GHashTable GHashTable;
3500
3501 typedef gboolean (*GHRFunc) (gpointer key,
3502 gpointer value,
3503 gpointer user_data);
3504
3505
3506
3507 GHashTable* g_hash_table_new (GHashFunc hash_func,
3508 GEqualFunc key_equal_func);
3509 GHashTable* g_hash_table_new_full (GHashFunc hash_func,
3510 GEqualFunc key_equal_func,
3511 GDestroyNotify key_destroy_func,
3512 GDestroyNotify value_destroy_func);
3513 void g_hash_table_destroy (GHashTable *hash_table);
3514 void g_hash_table_insert (GHashTable *hash_table,
3515 gpointer key,
3516 gpointer value);
3517 void g_hash_table_replace (GHashTable *hash_table,
3518 gpointer key,
3519 gpointer value);
3520 gboolean g_hash_table_remove (GHashTable *hash_table,
3521 gconstpointer key);
3522 gboolean g_hash_table_steal (GHashTable *hash_table,
3523 gconstpointer key);
3524 gpointer g_hash_table_lookup (GHashTable *hash_table,
3525 gconstpointer key);
3526 gboolean g_hash_table_lookup_extended (GHashTable *hash_table,
3527 gconstpointer lookup_key,
3528 gpointer *orig_key,
3529 gpointer *value);
3530 void g_hash_table_foreach (GHashTable *hash_table,
3531 GHFunc func,
3532 gpointer user_data);
3533 gpointer g_hash_table_find (GHashTable *hash_table,
3534 GHRFunc predicate,
3535 gpointer user_data);
3536 guint g_hash_table_foreach_remove (GHashTable *hash_table,
3537 GHRFunc func,
3538 gpointer user_data);
3539 guint g_hash_table_foreach_steal (GHashTable *hash_table,
3540 GHRFunc func,
3541 gpointer user_data);
3542 guint g_hash_table_size (GHashTable *hash_table);
3543
3544
3545 GHashTable* g_hash_table_ref (GHashTable *hash_table);
3546 void g_hash_table_unref (GHashTable *hash_table);
3547 # 94 "/usr/include/glib-2.0/glib/ghash.h"
3548 gboolean g_str_equal (gconstpointer v1,
3549 gconstpointer v2);
3550 guint g_str_hash (gconstpointer v);
3551
3552 gboolean g_int_equal (gconstpointer v1,
3553 gconstpointer v2);
3554 guint g_int_hash (gconstpointer v);
3555
3556
3557
3558
3559
3560
3561
3562 guint g_direct_hash (gconstpointer v) __attribute__((__const__));
3563 gboolean g_direct_equal (gconstpointer v1,
3564 gconstpointer v2) __attribute__((__const__));
3565 # 44 "/usr/include/glib-2.0/glib.h" 2
3566
3567 # 1 "/usr/include/glib-2.0/glib/ghook.h" 1
3568 # 32 "/usr/include/glib-2.0/glib/ghook.h"
3569
3570
3571
3572
3573 typedef struct _GHook GHook;
3574 typedef struct _GHookList GHookList;
3575
3576 typedef gint (*GHookCompareFunc) (GHook *new_hook,
3577 GHook *sibling);
3578 typedef gboolean (*GHookFindFunc) (GHook *hook,
3579 gpointer data);
3580 typedef void (*GHookMarshaller) (GHook *hook,
3581 gpointer marshal_data);
3582 typedef gboolean (*GHookCheckMarshaller) (GHook *hook,
3583 gpointer marshal_data);
3584 typedef void (*GHookFunc) (gpointer data);
3585 typedef gboolean (*GHookCheckFunc) (gpointer data);
3586 typedef void (*GHookFinalizeFunc) (GHookList *hook_list,
3587 GHook *hook);
3588 typedef enum
3589 {
3590 G_HOOK_FLAG_ACTIVE = 1 << 0,
3591 G_HOOK_FLAG_IN_CALL = 1 << 1,
3592 G_HOOK_FLAG_MASK = 0x0f
3593 } GHookFlagMask;
3594
3595
3596
3597
3598 struct _GHookList
3599 {
3600 gulong seq_id;
3601 guint hook_size : 16;
3602 guint is_setup : 1;
3603 GHook *hooks;
3604 gpointer dummy3;
3605 GHookFinalizeFunc finalize_hook;
3606 gpointer dummy[2];
3607 };
3608 struct _GHook
3609 {
3610 gpointer data;
3611 GHook *next;
3612 GHook *prev;
3613 guint ref_count;
3614 gulong hook_id;
3615 guint flags;
3616 gpointer func;
3617 GDestroyNotify destroy;
3618 };
3619 # 102 "/usr/include/glib-2.0/glib/ghook.h"
3620 void g_hook_list_init (GHookList *hook_list,
3621 guint hook_size);
3622 void g_hook_list_clear (GHookList *hook_list);
3623 GHook* g_hook_alloc (GHookList *hook_list);
3624 void g_hook_free (GHookList *hook_list,
3625 GHook *hook);
3626 GHook * g_hook_ref (GHookList *hook_list,
3627 GHook *hook);
3628 void g_hook_unref (GHookList *hook_list,
3629 GHook *hook);
3630 gboolean g_hook_destroy (GHookList *hook_list,
3631 gulong hook_id);
3632 void g_hook_destroy_link (GHookList *hook_list,
3633 GHook *hook);
3634 void g_hook_prepend (GHookList *hook_list,
3635 GHook *hook);
3636 void g_hook_insert_before (GHookList *hook_list,
3637 GHook *sibling,
3638 GHook *hook);
3639 void g_hook_insert_sorted (GHookList *hook_list,
3640 GHook *hook,
3641 GHookCompareFunc func);
3642 GHook* g_hook_get (GHookList *hook_list,
3643 gulong hook_id);
3644 GHook* g_hook_find (GHookList *hook_list,
3645 gboolean need_valids,
3646 GHookFindFunc func,
3647 gpointer data);
3648 GHook* g_hook_find_data (GHookList *hook_list,
3649 gboolean need_valids,
3650 gpointer data);
3651 GHook* g_hook_find_func (GHookList *hook_list,
3652 gboolean need_valids,
3653 gpointer func);
3654 GHook* g_hook_find_func_data (GHookList *hook_list,
3655 gboolean need_valids,
3656 gpointer func,
3657 gpointer data);
3658
3659 GHook* g_hook_first_valid (GHookList *hook_list,
3660 gboolean may_be_in_call);
3661
3662
3663
3664 GHook* g_hook_next_valid (GHookList *hook_list,
3665 GHook *hook,
3666 gboolean may_be_in_call);
3667
3668 gint g_hook_compare_ids (GHook *new_hook,
3669 GHook *sibling);
3670
3671
3672
3673
3674
3675 void g_hook_list_invoke (GHookList *hook_list,
3676 gboolean may_recurse);
3677
3678
3679
3680 void g_hook_list_invoke_check (GHookList *hook_list,
3681 gboolean may_recurse);
3682
3683
3684 void g_hook_list_marshal (GHookList *hook_list,
3685 gboolean may_recurse,
3686 GHookMarshaller marshaller,
3687 gpointer marshal_data);
3688 void g_hook_list_marshal_check (GHookList *hook_list,
3689 gboolean may_recurse,
3690 GHookCheckMarshaller marshaller,
3691 gpointer marshal_data);
3692 # 45 "/usr/include/glib-2.0/glib.h" 2
3693
3694 # 1 "/usr/include/glib-2.0/glib/giochannel.h" 1
3695 # 31 "/usr/include/glib-2.0/glib/giochannel.h"
3696
3697 # 1 "/usr/include/glib-2.0/glib/gmain.h" 1
3698 # 23 "/usr/include/glib-2.0/glib/gmain.h"
3699
3700 # 1 "/usr/include/glib-2.0/glib/gslist.h" 1
3701 # 32 "/usr/include/glib-2.0/glib/gslist.h"
3702
3703
3704 typedef struct _GSList GSList;
3705
3706 struct _GSList
3707 {
3708 gpointer data;
3709 GSList *next;
3710 };
3711
3712
3713
3714 GSList* g_slist_alloc (void) __attribute__((warn_unused_result));
3715 void g_slist_free (GSList *list);
3716 void g_slist_free_1 (GSList *list);
3717
3718 GSList* g_slist_append (GSList *list,
3719 gpointer data) __attribute__((warn_unused_result));
3720 GSList* g_slist_prepend (GSList *list,
3721 gpointer data) __attribute__((warn_unused_result));
3722 GSList* g_slist_insert (GSList *list,
3723 gpointer data,
3724 gint position) __attribute__((warn_unused_result));
3725 GSList* g_slist_insert_sorted (GSList *list,
3726 gpointer data,
3727 GCompareFunc func) __attribute__((warn_unused_result));
3728 GSList* g_slist_insert_sorted_with_data (GSList *list,
3729 gpointer data,
3730 GCompareDataFunc func,
3731 gpointer user_data) __attribute__((warn_unused_result));
3732 GSList* g_slist_insert_before (GSList *slist,
3733 GSList *sibling,
3734 gpointer data) __attribute__((warn_unused_result));
3735 GSList* g_slist_concat (GSList *list1,
3736 GSList *list2) __attribute__((warn_unused_result));
3737 GSList* g_slist_remove (GSList *list,
3738 gconstpointer data) __attribute__((warn_unused_result));
3739 GSList* g_slist_remove_all (GSList *list,
3740 gconstpointer data) __attribute__((warn_unused_result));
3741 GSList* g_slist_remove_link (GSList *list,
3742 GSList *link_) __attribute__((warn_unused_result));
3743 GSList* g_slist_delete_link (GSList *list,
3744 GSList *link_) __attribute__((warn_unused_result));
3745 GSList* g_slist_reverse (GSList *list) __attribute__((warn_unused_result));
3746 GSList* g_slist_copy (GSList *list) __attribute__((warn_unused_result));
3747 GSList* g_slist_nth (GSList *list,
3748 guint n);
3749 GSList* g_slist_find (GSList *list,
3750 gconstpointer data);
3751 GSList* g_slist_find_custom (GSList *list,
3752 gconstpointer data,
3753 GCompareFunc func);
3754 gint g_slist_position (GSList *list,
3755 GSList *llink);
3756 gint g_slist_index (GSList *list,
3757 gconstpointer data);
3758 GSList* g_slist_last (GSList *list);
3759 guint g_slist_length (GSList *list);
3760 void g_slist_foreach (GSList *list,
3761 GFunc func,
3762 gpointer user_data);
3763 GSList* g_slist_sort (GSList *list,
3764 GCompareFunc compare_func) __attribute__((warn_unused_result));
3765 GSList* g_slist_sort_with_data (GSList *list,
3766 GCompareDataFunc compare_func,
3767 gpointer user_data) __attribute__((warn_unused_result));
3768 gpointer g_slist_nth_data (GSList *list,
3769 guint n);
3770
3771
3772
3773
3774 void g_slist_push_allocator (gpointer dummy);
3775 void g_slist_pop_allocator (void);
3776 # 24 "/usr/include/glib-2.0/glib/gmain.h" 2
3777
3778
3779
3780
3781 typedef struct _GMainContext GMainContext;
3782 typedef struct _GMainLoop GMainLoop;
3783 typedef struct _GSource GSource;
3784 typedef struct _GSourceCallbackFuncs GSourceCallbackFuncs;
3785 typedef struct _GSourceFuncs GSourceFuncs;
3786
3787 typedef gboolean (*GSourceFunc) (gpointer data);
3788 typedef void (*GChildWatchFunc) (GPid pid,
3789 gint status,
3790 gpointer data);
3791 struct _GSource
3792 {
3793
3794 gpointer callback_data;
3795 GSourceCallbackFuncs *callback_funcs;
3796
3797 GSourceFuncs *source_funcs;
3798 guint ref_count;
3799
3800 GMainContext *context;
3801
3802 gint priority;
3803 guint flags;
3804 guint source_id;
3805
3806 GSList *poll_fds;
3807
3808 GSource *prev;
3809 GSource *next;
3810
3811 gpointer reserved1;
3812 gpointer reserved2;
3813 };
3814
3815 struct _GSourceCallbackFuncs
3816 {
3817 void (*ref) (gpointer cb_data);
3818 void (*unref) (gpointer cb_data);
3819 void (*get) (gpointer cb_data,
3820 GSource *source,
3821 GSourceFunc *func,
3822 gpointer *data);
3823 };
3824
3825 typedef void (*GSourceDummyMarshal) (void);
3826
3827 struct _GSourceFuncs
3828 {
3829 gboolean (*prepare) (GSource *source,
3830 gint *timeout_);
3831 gboolean (*check) (GSource *source);
3832 gboolean (*dispatch) (GSource *source,
3833 GSourceFunc callback,
3834 gpointer user_data);
3835 void (*finalize) (GSource *source);
3836
3837
3838 GSourceFunc closure_callback;
3839 GSourceDummyMarshal closure_marshal;
3840 };
3841 # 116 "/usr/include/glib-2.0/glib/gmain.h"
3842 typedef struct _GPollFD GPollFD;
3843 typedef gint (*GPollFunc) (GPollFD *ufds,
3844 guint nfsd,
3845 gint timeout_);
3846
3847 struct _GPollFD
3848 {
3849 gint fd;
3850 gushort events;
3851 gushort revents;
3852 };
3853 # 138 "/usr/include/glib-2.0/glib/gmain.h"
3854 GMainContext *g_main_context_new (void);
3855 GMainContext *g_main_context_ref (GMainContext *context);
3856 void g_main_context_unref (GMainContext *context);
3857 GMainContext *g_main_context_default (void);
3858
3859 gboolean g_main_context_iteration (GMainContext *context,
3860 gboolean may_block);
3861 gboolean g_main_context_pending (GMainContext *context);
3862
3863
3864
3865 GSource *g_main_context_find_source_by_id (GMainContext *context,
3866 guint source_id);
3867 GSource *g_main_context_find_source_by_user_data (GMainContext *context,
3868 gpointer user_data);
3869 GSource *g_main_context_find_source_by_funcs_user_data (GMainContext *context,
3870 GSourceFuncs *funcs,
3871 gpointer user_data);
3872
3873
3874
3875 void g_main_context_wakeup (GMainContext *context);
3876 gboolean g_main_context_acquire (GMainContext *context);
3877 void g_main_context_release (GMainContext *context);
3878 gboolean g_main_context_is_owner (GMainContext *context);
3879 gboolean g_main_context_wait (GMainContext *context,
3880 GCond *cond,
3881 GMutex *mutex);
3882
3883 gboolean g_main_context_prepare (GMainContext *context,
3884 gint *priority);
3885 gint g_main_context_query (GMainContext *context,
3886 gint max_priority,
3887 gint *timeout_,
3888 GPollFD *fds,
3889 gint n_fds);
3890 gint g_main_context_check (GMainContext *context,
3891 gint max_priority,
3892 GPollFD *fds,
3893 gint n_fds);
3894 void g_main_context_dispatch (GMainContext *context);
3895
3896 void g_main_context_set_poll_func (GMainContext *context,
3897 GPollFunc func);
3898 GPollFunc g_main_context_get_poll_func (GMainContext *context);
3899
3900
3901
3902 void g_main_context_add_poll (GMainContext *context,
3903 GPollFD *fd,
3904 gint priority);
3905 void g_main_context_remove_poll (GMainContext *context,
3906 GPollFD *fd);
3907
3908 int g_main_depth (void);
3909
3910
3911
3912 GMainLoop *g_main_loop_new (GMainContext *context,
3913 gboolean is_running);
3914 void g_main_loop_run (GMainLoop *loop);
3915 void g_main_loop_quit (GMainLoop *loop);
3916 GMainLoop *g_main_loop_ref (GMainLoop *loop);
3917 void g_main_loop_unref (GMainLoop *loop);
3918 gboolean g_main_loop_is_running (GMainLoop *loop);
3919 GMainContext *g_main_loop_get_context (GMainLoop *loop);
3920
3921
3922
3923 GSource *g_source_new (GSourceFuncs *source_funcs,
3924 guint struct_size);
3925 GSource *g_source_ref (GSource *source);
3926 void g_source_unref (GSource *source);
3927
3928 guint g_source_attach (GSource *source,
3929 GMainContext *context);
3930 void g_source_destroy (GSource *source);
3931
3932 void g_source_set_priority (GSource *source,
3933 gint priority);
3934 gint g_source_get_priority (GSource *source);
3935 void g_source_set_can_recurse (GSource *source,
3936 gboolean can_recurse);
3937 gboolean g_source_get_can_recurse (GSource *source);
3938 guint g_source_get_id (GSource *source);
3939
3940 GMainContext *g_source_get_context (GSource *source);
3941
3942 void g_source_set_callback (GSource *source,
3943 GSourceFunc func,
3944 gpointer data,
3945 GDestroyNotify notify);
3946
3947
3948
3949 void g_source_set_callback_indirect (GSource *source,
3950 gpointer callback_data,
3951 GSourceCallbackFuncs *callback_funcs);
3952
3953 void g_source_add_poll (GSource *source,
3954 GPollFD *fd);
3955 void g_source_remove_poll (GSource *source,
3956 GPollFD *fd);
3957
3958 void g_source_get_current_time (GSource *source,
3959 GTimeVal *timeval);
3960
3961
3962
3963
3964
3965
3966
3967 GSource *g_idle_source_new (void);
3968 GSource *g_child_watch_source_new (GPid pid);
3969 GSource *g_timeout_source_new (guint interval);
3970
3971
3972
3973 void g_get_current_time (GTimeVal *result);
3974 # 282 "/usr/include/glib-2.0/glib/gmain.h"
3975 gboolean g_source_remove (guint tag);
3976 gboolean g_source_remove_by_user_data (gpointer user_data);
3977 gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs,
3978 gpointer user_data);
3979
3980
3981 guint g_timeout_add_full (gint priority,
3982 guint interval,
3983 GSourceFunc function,
3984 gpointer data,
3985 GDestroyNotify notify);
3986 guint g_timeout_add (guint interval,
3987 GSourceFunc function,
3988 gpointer data);
3989 guint g_child_watch_add_full (gint priority,
3990 GPid pid,
3991 GChildWatchFunc function,
3992 gpointer data,
3993 GDestroyNotify notify);
3994 guint g_child_watch_add (GPid pid,
3995 GChildWatchFunc function,
3996 gpointer data);
3997 guint g_idle_add (GSourceFunc function,
3998 gpointer data);
3999 guint g_idle_add_full (gint priority,
4000 GSourceFunc function,
4001 gpointer data,
4002 GDestroyNotify notify);
4003 gboolean g_idle_remove_by_data (gpointer data);
4004
4005
4006 extern GSourceFuncs g_timeout_funcs;
4007 extern GSourceFuncs g_child_watch_funcs;
4008 extern GSourceFuncs g_idle_funcs;
4009 # 32 "/usr/include/glib-2.0/glib/giochannel.h" 2
4010
4011 # 1 "/usr/include/glib-2.0/glib/gstring.h" 1
4012 # 31 "/usr/include/glib-2.0/glib/gstring.h"
4013
4014 # 1 "/usr/include/glib-2.0/glib/gunicode.h" 1
4015 # 28 "/usr/include/glib-2.0/glib/gunicode.h"
4016
4017
4018 typedef guint32 gunichar;
4019 typedef guint16 gunichar2;
4020
4021
4022
4023
4024 typedef enum
4025 {
4026 G_UNICODE_CONTROL,
4027 G_UNICODE_FORMAT,
4028 G_UNICODE_UNASSIGNED,
4029 G_UNICODE_PRIVATE_USE,
4030 G_UNICODE_SURROGATE,
4031 G_UNICODE_LOWERCASE_LETTER,
4032 G_UNICODE_MODIFIER_LETTER,
4033 G_UNICODE_OTHER_LETTER,
4034 G_UNICODE_TITLECASE_LETTER,
4035 G_UNICODE_UPPERCASE_LETTER,
4036 G_UNICODE_COMBINING_MARK,
4037 G_UNICODE_ENCLOSING_MARK,
4038 G_UNICODE_NON_SPACING_MARK,
4039 G_UNICODE_DECIMAL_NUMBER,
4040 G_UNICODE_LETTER_NUMBER,
4041 G_UNICODE_OTHER_NUMBER,
4042 G_UNICODE_CONNECT_PUNCTUATION,
4043 G_UNICODE_DASH_PUNCTUATION,
4044 G_UNICODE_CLOSE_PUNCTUATION,
4045 G_UNICODE_FINAL_PUNCTUATION,
4046 G_UNICODE_INITIAL_PUNCTUATION,
4047 G_UNICODE_OTHER_PUNCTUATION,
4048 G_UNICODE_OPEN_PUNCTUATION,
4049 G_UNICODE_CURRENCY_SYMBOL,
4050 G_UNICODE_MODIFIER_SYMBOL,
4051 G_UNICODE_MATH_SYMBOL,
4052 G_UNICODE_OTHER_SYMBOL,
4053 G_UNICODE_LINE_SEPARATOR,
4054 G_UNICODE_PARAGRAPH_SEPARATOR,
4055 G_UNICODE_SPACE_SEPARATOR
4056 } GUnicodeType;
4057
4058
4059
4060
4061
4062
4063 typedef enum
4064 {
4065 G_UNICODE_BREAK_MANDATORY,
4066 G_UNICODE_BREAK_CARRIAGE_RETURN,
4067 G_UNICODE_BREAK_LINE_FEED,
4068 G_UNICODE_BREAK_COMBINING_MARK,
4069 G_UNICODE_BREAK_SURROGATE,
4070 G_UNICODE_BREAK_ZERO_WIDTH_SPACE,
4071 G_UNICODE_BREAK_INSEPARABLE,
4072 G_UNICODE_BREAK_NON_BREAKING_GLUE,
4073 G_UNICODE_BREAK_CONTINGENT,
4074 G_UNICODE_BREAK_SPACE,
4075 G_UNICODE_BREAK_AFTER,
4076 G_UNICODE_BREAK_BEFORE,
4077 G_UNICODE_BREAK_BEFORE_AND_AFTER,
4078 G_UNICODE_BREAK_HYPHEN,
4079 G_UNICODE_BREAK_NON_STARTER,
4080 G_UNICODE_BREAK_OPEN_PUNCTUATION,
4081 G_UNICODE_BREAK_CLOSE_PUNCTUATION,
4082 G_UNICODE_BREAK_QUOTATION,
4083 G_UNICODE_BREAK_EXCLAMATION,
4084 G_UNICODE_BREAK_IDEOGRAPHIC,
4085 G_UNICODE_BREAK_NUMERIC,
4086 G_UNICODE_BREAK_INFIX_SEPARATOR,
4087 G_UNICODE_BREAK_SYMBOL,
4088 G_UNICODE_BREAK_ALPHABETIC,
4089 G_UNICODE_BREAK_PREFIX,
4090 G_UNICODE_BREAK_POSTFIX,
4091 G_UNICODE_BREAK_COMPLEX_CONTEXT,
4092 G_UNICODE_BREAK_AMBIGUOUS,
4093 G_UNICODE_BREAK_UNKNOWN,
4094 G_UNICODE_BREAK_NEXT_LINE,
4095 G_UNICODE_BREAK_WORD_JOINER,
4096 G_UNICODE_BREAK_HANGUL_L_JAMO,
4097 G_UNICODE_BREAK_HANGUL_V_JAMO,
4098 G_UNICODE_BREAK_HANGUL_T_JAMO,
4099 G_UNICODE_BREAK_HANGUL_LV_SYLLABLE,
4100 G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE
4101 } GUnicodeBreakType;
4102
4103
4104
4105
4106
4107
4108
4109 gboolean g_get_charset (const char **charset);
4110
4111
4112
4113 gboolean g_unichar_isalnum (gunichar c) __attribute__((__const__));
4114 gboolean g_unichar_isalpha (gunichar c) __attribute__((__const__));
4115 gboolean g_unichar_iscntrl (gunichar c) __attribute__((__const__));
4116 gboolean g_unichar_isdigit (gunichar c) __attribute__((__const__));
4117 gboolean g_unichar_isgraph (gunichar c) __attribute__((__const__));
4118 gboolean g_unichar_islower (gunichar c) __attribute__((__const__));
4119 gboolean g_unichar_isprint (gunichar c) __attribute__((__const__));
4120 gboolean g_unichar_ispunct (gunichar c) __attribute__((__const__));
4121 gboolean g_unichar_isspace (gunichar c) __attribute__((__const__));
4122 gboolean g_unichar_isupper (gunichar c) __attribute__((__const__));
4123 gboolean g_unichar_isxdigit (gunichar c) __attribute__((__const__));
4124 gboolean g_unichar_istitle (gunichar c) __attribute__((__const__));
4125 gboolean g_unichar_isdefined (gunichar c) __attribute__((__const__));
4126 gboolean g_unichar_iswide (gunichar c) __attribute__((__const__));
4127
4128
4129
4130 gunichar g_unichar_toupper (gunichar c) __attribute__((__const__));
4131 gunichar g_unichar_tolower (gunichar c) __attribute__((__const__));
4132 gunichar g_unichar_totitle (gunichar c) __attribute__((__const__));
4133
4134
4135
4136 gint g_unichar_digit_value (gunichar c) __attribute__((__const__));
4137
4138 gint g_unichar_xdigit_value (gunichar c) __attribute__((__const__));
4139
4140
4141 GUnicodeType g_unichar_type (gunichar c) __attribute__((__const__));
4142
4143
4144 GUnicodeBreakType g_unichar_break_type (gunichar c) __attribute__((__const__));
4145
4146
4147
4148
4149
4150 void g_unicode_canonical_ordering (gunichar *string,
4151 gsize len);
4152
4153
4154
4155
4156 gunichar *g_unicode_canonical_decomposition (gunichar ch,
4157 gsize *result_len) __attribute__((__malloc__));
4158
4159
4160
4161 extern const gchar * const g_utf8_skip;
4162
4163
4164
4165 gunichar g_utf8_get_char (const gchar *p);
4166 gunichar g_utf8_get_char_validated (const gchar *p,
4167 gssize max_len);
4168
4169 gchar* g_utf8_offset_to_pointer (const gchar *str,
4170 glong offset);
4171 glong g_utf8_pointer_to_offset (const gchar *str,
4172 const gchar *pos);
4173 gchar* g_utf8_prev_char (const gchar *p);
4174 gchar* g_utf8_find_next_char (const gchar *p,
4175 const gchar *end);
4176 gchar* g_utf8_find_prev_char (const gchar *str,
4177 const gchar *p);
4178
4179 glong g_utf8_strlen (const gchar *p,
4180 gssize max);
4181
4182
4183 gchar* g_utf8_strncpy (gchar *dest,
4184 const gchar *src,
4185 gsize n);
4186
4187
4188
4189 gchar* g_utf8_strchr (const gchar *p,
4190 gssize len,
4191 gunichar c);
4192 gchar* g_utf8_strrchr (const gchar *p,
4193 gssize len,
4194 gunichar c);
4195 gchar* g_utf8_strreverse (const gchar *str,
4196 gssize len);
4197
4198 gunichar2 *g_utf8_to_utf16 (const gchar *str,
4199 glong len,
4200 glong *items_read,
4201 glong *items_written,
4202 GError **error) __attribute__((__malloc__));
4203 gunichar * g_utf8_to_ucs4 (const gchar *str,
4204 glong len,
4205 glong *items_read,
4206 glong *items_written,
4207 GError **error) __attribute__((__malloc__));
4208 gunichar * g_utf8_to_ucs4_fast (const gchar *str,
4209 glong len,
4210 glong *items_written) __attribute__((__malloc__));
4211 gunichar * g_utf16_to_ucs4 (const gunichar2 *str,
4212 glong len,
4213 glong *items_read,
4214 glong *items_written,
4215 GError **error) __attribute__((__malloc__));
4216 gchar* g_utf16_to_utf8 (const gunichar2 *str,
4217 glong len,
4218 glong *items_read,
4219 glong *items_written,
4220 GError **error) __attribute__((__malloc__));
4221 gunichar2 *g_ucs4_to_utf16 (const gunichar *str,
4222 glong len,
4223 glong *items_read,
4224 glong *items_written,
4225 GError **error) __attribute__((__malloc__));
4226 gchar* g_ucs4_to_utf8 (const gunichar *str,
4227 glong len,
4228 glong *items_read,
4229 glong *items_written,
4230 GError **error) __attribute__((__malloc__));
4231
4232
4233
4234
4235
4236 gint g_unichar_to_utf8 (gunichar c,
4237 gchar *outbuf);
4238
4239
4240
4241
4242
4243 gboolean g_utf8_validate (const gchar *str,
4244 gssize max_len,
4245 const gchar **end);
4246
4247
4248 gboolean g_unichar_validate (gunichar ch);
4249
4250 gchar *g_utf8_strup (const gchar *str,
4251 gssize len) __attribute__((__malloc__));
4252 gchar *g_utf8_strdown (const gchar *str,
4253 gssize len) __attribute__((__malloc__));
4254 gchar *g_utf8_casefold (const gchar *str,
4255 gssize len) __attribute__((__malloc__));
4256
4257 typedef enum {
4258 G_NORMALIZE_DEFAULT,
4259 G_NORMALIZE_NFD = G_NORMALIZE_DEFAULT,
4260 G_NORMALIZE_DEFAULT_COMPOSE,
4261 G_NORMALIZE_NFC = G_NORMALIZE_DEFAULT_COMPOSE,
4262 G_NORMALIZE_ALL,
4263 G_NORMALIZE_NFKD = G_NORMALIZE_ALL,
4264 G_NORMALIZE_ALL_COMPOSE,
4265 G_NORMALIZE_NFKC = G_NORMALIZE_ALL_COMPOSE
4266 } GNormalizeMode;
4267
4268 gchar *g_utf8_normalize (const gchar *str,
4269 gssize len,
4270 GNormalizeMode mode) __attribute__((__malloc__));
4271
4272 gint g_utf8_collate (const gchar *str1,
4273 const gchar *str2);
4274 gchar *g_utf8_collate_key (const gchar *str,
4275 gssize len) __attribute__((__malloc__));
4276 gchar *g_utf8_collate_key_for_filename (const gchar *str,
4277 gssize len) __attribute__((__malloc__));
4278
4279 gboolean g_unichar_get_mirror_char (gunichar ch,
4280 gunichar *mirrored_ch);
4281 # 32 "/usr/include/glib-2.0/glib/gstring.h" 2
4282
4283 # 1 "/usr/include/glib-2.0/glib/gutils.h" 1
4284 # 31 "/usr/include/glib-2.0/glib/gutils.h"
4285
4286 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 1 3 4
4287 # 105 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stdarg.h" 3 4
4288 typedef __gnuc_va_list va_list;
4289 # 32 "/usr/include/glib-2.0/glib/gutils.h" 2
4290 # 116 "/usr/include/glib-2.0/glib/gutils.h"
4291 const gchar* g_get_user_name (void);
4292 const gchar* g_get_real_name (void);
4293 const gchar* g_get_home_dir (void);
4294 const gchar* g_get_tmp_dir (void);
4295 const gchar* g_get_host_name (void);
4296 gchar* g_get_prgname (void);
4297 void g_set_prgname (const gchar *prgname);
4298 const gchar* g_get_application_name (void);
4299 void g_set_application_name (const gchar *application_name);
4300
4301 const gchar* g_get_user_data_dir (void);
4302 const gchar* g_get_user_config_dir (void);
4303 const gchar* g_get_user_cache_dir (void);
4304 const gchar* const * g_get_system_data_dirs (void);
4305 # 144 "/usr/include/glib-2.0/glib/gutils.h"
4306 const gchar* const * g_get_system_config_dirs (void);
4307
4308 const gchar* const * g_get_language_names (void);
4309
4310 typedef struct _GDebugKey GDebugKey;
4311 struct _GDebugKey
4312 {
4313 gchar *key;
4314 guint value;
4315 };
4316
4317
4318
4319 guint g_parse_debug_string (const gchar *string,
4320 const GDebugKey *keys,
4321 guint nkeys);
4322
4323 gint g_snprintf (gchar *string,
4324 gulong n,
4325 gchar const *format,
4326 ...) __attribute__((__format__ (__printf__, 3, 4)));
4327 gint g_vsnprintf (gchar *string,
4328 gulong n,
4329 gchar const *format,
4330 va_list args);
4331
4332
4333 gboolean g_path_is_absolute (const gchar *file_name);
4334
4335
4336 const gchar* g_path_skip_root (const gchar *file_name);
4337
4338
4339
4340
4341
4342
4343
4344 const gchar* g_basename (const gchar *file_name);
4345 # 192 "/usr/include/glib-2.0/glib/gutils.h"
4346 gchar* g_get_current_dir (void);
4347 gchar* g_path_get_basename (const gchar *file_name) __attribute__((__malloc__));
4348 gchar* g_path_get_dirname (const gchar *file_name) __attribute__((__malloc__));
4349
4350
4351 void g_nullify_pointer (gpointer *nullify_location);
4352 # 208 "/usr/include/glib-2.0/glib/gutils.h"
4353 const gchar* g_getenv (const gchar *variable);
4354 gboolean g_setenv (const gchar *variable,
4355 const gchar *value,
4356 gboolean overwrite);
4357 void g_unsetenv (const gchar *variable);
4358 gchar** g_listenv (void);
4359 const gchar* _g_getenv_nomalloc (const gchar *variable,
4360 gchar buffer[1024]);
4361
4362
4363
4364
4365
4366 typedef void (*GVoidFunc) (void);
4367 # 232 "/usr/include/glib-2.0/glib/gutils.h"
4368 void g_atexit (GVoidFunc func);
4369 # 246 "/usr/include/glib-2.0/glib/gutils.h"
4370 gchar* g_find_program_in_path (const gchar *program);
4371
4372
4373
4374 extern inline gint g_bit_nth_lsf (gulong mask,
4375 gint nth_bit);
4376 extern inline gint g_bit_nth_msf (gulong mask,
4377 gint nth_bit);
4378 extern inline guint g_bit_storage (gulong number);
4379
4380
4381
4382
4383 typedef struct _GTrashStack GTrashStack;
4384 struct _GTrashStack
4385 {
4386 GTrashStack *next;
4387 };
4388
4389 extern inline void g_trash_stack_push (GTrashStack **stack_p,
4390 gpointer data_p);
4391 extern inline gpointer g_trash_stack_pop (GTrashStack **stack_p);
4392 extern inline gpointer g_trash_stack_peek (GTrashStack **stack_p);
4393 extern inline guint g_trash_stack_height (GTrashStack **stack_p);
4394
4395
4396
4397
4398 extern inline gint
4399 g_bit_nth_lsf (gulong mask,
4400 gint nth_bit)
4401 {
4402 do
4403 {
4404 nth_bit++;
4405 if (mask & (1UL << nth_bit))
4406 return nth_bit;
4407 }
4408 while (nth_bit < ((4 * 8) - 1));
4409 return -1;
4410 }
4411 extern inline gint
4412 g_bit_nth_msf (gulong mask,
4413 gint nth_bit)
4414 {
4415 if (nth_bit < 0)
4416 nth_bit = 4 * 8;
4417 do
4418 {
4419 nth_bit--;
4420 if (mask & (1UL << nth_bit))
4421 return nth_bit;
4422 }
4423 while (nth_bit > 0);
4424 return -1;
4425 }
4426 extern inline guint
4427 g_bit_storage (gulong number)
4428 {
4429 register guint n_bits = 0;
4430
4431 do
4432 {
4433 n_bits++;
4434 number >>= 1;
4435 }
4436 while (number);
4437 return n_bits;
4438 }
4439 extern inline void
4440 g_trash_stack_push (GTrashStack **stack_p,
4441 gpointer data_p)
4442 {
4443 GTrashStack *data = (GTrashStack *) data_p;
4444
4445 data->next = *stack_p;
4446 *stack_p = data;
4447 }
4448 extern inline gpointer
4449 g_trash_stack_pop (GTrashStack **stack_p)
4450 {
4451 GTrashStack *data;
4452
4453 data = *stack_p;
4454 if (data)
4455 {
4456 *stack_p = data->next;
4457
4458
4459
4460 data->next = ((void *)0);
4461 }
4462
4463 return data;
4464 }
4465 extern inline gpointer
4466 g_trash_stack_peek (GTrashStack **stack_p)
4467 {
4468 GTrashStack *data;
4469
4470 data = *stack_p;
4471
4472 return data;
4473 }
4474 extern inline guint
4475 g_trash_stack_height (GTrashStack **stack_p)
4476 {
4477 GTrashStack *data;
4478 guint i = 0;
4479
4480 for (data = *stack_p; data; data = data->next)
4481 i++;
4482
4483 return i;
4484 }
4485
4486
4487
4488
4489
4490
4491 extern const guint glib_major_version;
4492 extern const guint glib_minor_version;
4493 extern const guint glib_micro_version;
4494 extern const guint glib_interface_age;
4495 extern const guint glib_binary_age;
4496
4497 const gchar * glib_check_version (guint required_major,
4498 guint required_minor,
4499 guint required_micro);
4500 # 33 "/usr/include/glib-2.0/glib/gstring.h" 2
4501
4502
4503
4504 typedef struct _GString GString;
4505 typedef struct _GStringChunk GStringChunk;
4506
4507 struct _GString
4508 {
4509 gchar *str;
4510 gsize len;
4511 gsize allocated_len;
4512 };
4513
4514
4515
4516 GStringChunk* g_string_chunk_new (gsize size);
4517 void g_string_chunk_free (GStringChunk *chunk);
4518 gchar* g_string_chunk_insert (GStringChunk *chunk,
4519 const gchar *string);
4520 gchar* g_string_chunk_insert_len (GStringChunk *chunk,
4521 const gchar *string,
4522 gssize len);
4523 gchar* g_string_chunk_insert_const (GStringChunk *chunk,
4524 const gchar *string);
4525
4526
4527
4528
4529 GString* g_string_new (const gchar *init);
4530 GString* g_string_new_len (const gchar *init,
4531 gssize len);
4532 GString* g_string_sized_new (gsize dfl_size);
4533 gchar* g_string_free (GString *string,
4534 gboolean free_segment);
4535 gboolean g_string_equal (const GString *v,
4536 const GString *v2);
4537 guint g_string_hash (const GString *str);
4538 GString* g_string_assign (GString *string,
4539 const gchar *rval);
4540 GString* g_string_truncate (GString *string,
4541 gsize len);
4542 GString* g_string_set_size (GString *string,
4543 gsize len);
4544 GString* g_string_insert_len (GString *string,
4545 gssize pos,
4546 const gchar *val,
4547 gssize len);
4548 GString* g_string_append (GString *string,
4549 const gchar *val);
4550 GString* g_string_append_len (GString *string,
4551 const gchar *val,
4552 gssize len);
4553 GString* g_string_append_c (GString *string,
4554 gchar c);
4555 GString* g_string_append_unichar (GString *string,
4556 gunichar wc);
4557 GString* g_string_prepend (GString *string,
4558 const gchar *val);
4559 GString* g_string_prepend_c (GString *string,
4560 gchar c);
4561 GString* g_string_prepend_unichar (GString *string,
4562 gunichar wc);
4563 GString* g_string_prepend_len (GString *string,
4564 const gchar *val,
4565 gssize len);
4566 GString* g_string_insert (GString *string,
4567 gssize pos,
4568 const gchar *val);
4569 GString* g_string_insert_c (GString *string,
4570 gssize pos,
4571 gchar c);
4572 GString* g_string_insert_unichar (GString *string,
4573 gssize pos,
4574 gunichar wc);
4575 GString* g_string_erase (GString *string,
4576 gssize pos,
4577 gssize len);
4578 GString* g_string_ascii_down (GString *string);
4579 GString* g_string_ascii_up (GString *string);
4580 void g_string_printf (GString *string,
4581 const gchar *format,
4582 ...) __attribute__((__format__ (__printf__, 2, 3)));
4583 void g_string_append_printf (GString *string,
4584 const gchar *format,
4585 ...) __attribute__((__format__ (__printf__, 2, 3)));
4586
4587
4588
4589 static inline GString*
4590 g_string_append_c_inline (GString *gstring,
4591 gchar c)
4592 {
4593 if (gstring->len + 1 < gstring->allocated_len)
4594 {
4595 gstring->str[gstring->len++] = c;
4596 gstring->str[gstring->len] = 0;
4597 }
4598 else
4599 g_string_insert_c (gstring, -1, c);
4600 return gstring;
4601 }
4602 # 145 "/usr/include/glib-2.0/glib/gstring.h"
4603 GString* g_string_down (GString *string);
4604 GString* g_string_up (GString *string);
4605 # 33 "/usr/include/glib-2.0/glib/giochannel.h" 2
4606
4607
4608
4609
4610
4611
4612 typedef struct _GIOChannel GIOChannel;
4613 typedef struct _GIOFuncs GIOFuncs;
4614
4615 typedef enum
4616 {
4617 G_IO_ERROR_NONE,
4618 G_IO_ERROR_AGAIN,
4619 G_IO_ERROR_INVAL,
4620 G_IO_ERROR_UNKNOWN
4621 } GIOError;
4622
4623
4624
4625 typedef enum
4626 {
4627
4628 G_IO_CHANNEL_ERROR_FBIG,
4629 G_IO_CHANNEL_ERROR_INVAL,
4630 G_IO_CHANNEL_ERROR_IO,
4631 G_IO_CHANNEL_ERROR_ISDIR,
4632 G_IO_CHANNEL_ERROR_NOSPC,
4633 G_IO_CHANNEL_ERROR_NXIO,
4634 G_IO_CHANNEL_ERROR_OVERFLOW,
4635 G_IO_CHANNEL_ERROR_PIPE,
4636
4637 G_IO_CHANNEL_ERROR_FAILED
4638 } GIOChannelError;
4639
4640 typedef enum
4641 {
4642 G_IO_STATUS_ERROR,
4643 G_IO_STATUS_NORMAL,
4644 G_IO_STATUS_EOF,
4645 G_IO_STATUS_AGAIN
4646 } GIOStatus;
4647
4648 typedef enum
4649 {
4650 G_SEEK_CUR,
4651 G_SEEK_SET,
4652 G_SEEK_END
4653 } GSeekType;
4654
4655 typedef enum
4656 {
4657 G_IO_IN =1,
4658 G_IO_OUT =4,
4659 G_IO_PRI =2,
4660 G_IO_ERR =8,
4661 G_IO_HUP =16,
4662 G_IO_NVAL =32
4663 } GIOCondition;
4664
4665 typedef enum
4666 {
4667 G_IO_FLAG_APPEND = 1 << 0,
4668 G_IO_FLAG_NONBLOCK = 1 << 1,
4669 G_IO_FLAG_IS_READABLE = 1 << 2,
4670 G_IO_FLAG_IS_WRITEABLE = 1 << 3,
4671 G_IO_FLAG_IS_SEEKABLE = 1 << 4,
4672 G_IO_FLAG_MASK = (1 << 5) - 1,
4673 G_IO_FLAG_GET_MASK = G_IO_FLAG_MASK,
4674 G_IO_FLAG_SET_MASK = G_IO_FLAG_APPEND | G_IO_FLAG_NONBLOCK
4675 } GIOFlags;
4676
4677 struct _GIOChannel
4678 {
4679
4680 guint ref_count;
4681 GIOFuncs *funcs;
4682
4683 gchar *encoding;
4684 GIConv read_cd;
4685 GIConv write_cd;
4686 gchar *line_term;
4687 guint line_term_len;
4688
4689 gsize buf_size;
4690 GString *read_buf;
4691 GString *encoded_read_buf;
4692 GString *write_buf;
4693 gchar partial_write_buf[6];
4694
4695
4696
4697 guint use_buffer : 1;
4698 guint do_encode : 1;
4699 guint close_on_unref : 1;
4700 guint is_readable : 1;
4701 guint is_writeable : 1;
4702 guint is_seekable : 1;
4703
4704 gpointer reserved1;
4705 gpointer reserved2;
4706 };
4707
4708 typedef gboolean (*GIOFunc) (GIOChannel *source,
4709 GIOCondition condition,
4710 gpointer data);
4711 struct _GIOFuncs
4712 {
4713 GIOStatus (*io_read) (GIOChannel *channel,
4714 gchar *buf,
4715 gsize count,
4716 gsize *bytes_read,
4717 GError **err);
4718 GIOStatus (*io_write) (GIOChannel *channel,
4719 const gchar *buf,
4720 gsize count,
4721 gsize *bytes_written,
4722 GError **err);
4723 GIOStatus (*io_seek) (GIOChannel *channel,
4724 gint64 offset,
4725 GSeekType type,
4726 GError **err);
4727 GIOStatus (*io_close) (GIOChannel *channel,
4728 GError **err);
4729 GSource* (*io_create_watch) (GIOChannel *channel,
4730 GIOCondition condition);
4731 void (*io_free) (GIOChannel *channel);
4732 GIOStatus (*io_set_flags) (GIOChannel *channel,
4733 GIOFlags flags,
4734 GError **err);
4735 GIOFlags (*io_get_flags) (GIOChannel *channel);
4736 };
4737
4738 void g_io_channel_init (GIOChannel *channel);
4739 GIOChannel *g_io_channel_ref (GIOChannel *channel);
4740 void g_io_channel_unref (GIOChannel *channel);
4741
4742
4743 GIOError g_io_channel_read (GIOChannel *channel,
4744 gchar *buf,
4745 gsize count,
4746 gsize *bytes_read);
4747 GIOError g_io_channel_write (GIOChannel *channel,
4748 const gchar *buf,
4749 gsize count,
4750 gsize *bytes_written);
4751 GIOError g_io_channel_seek (GIOChannel *channel,
4752 gint64 offset,
4753 GSeekType type);
4754 void g_io_channel_close (GIOChannel *channel);
4755
4756
4757 GIOStatus g_io_channel_shutdown (GIOChannel *channel,
4758 gboolean flush,
4759 GError **err);
4760 guint g_io_add_watch_full (GIOChannel *channel,
4761 gint priority,
4762 GIOCondition condition,
4763 GIOFunc func,
4764 gpointer user_data,
4765 GDestroyNotify notify);
4766 GSource * g_io_create_watch (GIOChannel *channel,
4767 GIOCondition condition);
4768 guint g_io_add_watch (GIOChannel *channel,
4769 GIOCondition condition,
4770 GIOFunc func,
4771 gpointer user_data);
4772
4773
4774
4775
4776 void g_io_channel_set_buffer_size (GIOChannel *channel,
4777 gsize size);
4778 gsize g_io_channel_get_buffer_size (GIOChannel *channel);
4779 GIOCondition g_io_channel_get_buffer_condition (GIOChannel *channel);
4780 GIOStatus g_io_channel_set_flags (GIOChannel *channel,
4781 GIOFlags flags,
4782 GError **error);
4783 GIOFlags g_io_channel_get_flags (GIOChannel *channel);
4784 void g_io_channel_set_line_term (GIOChannel *channel,
4785 const gchar *line_term,
4786 gint length);
4787 const gchar* g_io_channel_get_line_term (GIOChannel *channel,
4788 gint *length);
4789 void g_io_channel_set_buffered (GIOChannel *channel,
4790 gboolean buffered);
4791 gboolean g_io_channel_get_buffered (GIOChannel *channel);
4792 GIOStatus g_io_channel_set_encoding (GIOChannel *channel,
4793 const gchar *encoding,
4794 GError **error);
4795 const gchar* g_io_channel_get_encoding (GIOChannel *channel);
4796 void g_io_channel_set_close_on_unref (GIOChannel *channel,
4797 gboolean do_close);
4798 gboolean g_io_channel_get_close_on_unref (GIOChannel *channel);
4799
4800
4801 GIOStatus g_io_channel_flush (GIOChannel *channel,
4802 GError **error);
4803 GIOStatus g_io_channel_read_line (GIOChannel *channel,
4804 gchar **str_return,
4805 gsize *length,
4806 gsize *terminator_pos,
4807 GError **error);
4808 GIOStatus g_io_channel_read_line_string (GIOChannel *channel,
4809 GString *buffer,
4810 gsize *terminator_pos,
4811 GError **error);
4812 GIOStatus g_io_channel_read_to_end (GIOChannel *channel,
4813 gchar **str_return,
4814 gsize *length,
4815 GError **error);
4816 GIOStatus g_io_channel_read_chars (GIOChannel *channel,
4817 gchar *buf,
4818 gsize count,
4819 gsize *bytes_read,
4820 GError **error);
4821 GIOStatus g_io_channel_read_unichar (GIOChannel *channel,
4822 gunichar *thechar,
4823 GError **error);
4824 GIOStatus g_io_channel_write_chars (GIOChannel *channel,
4825 const gchar *buf,
4826 gssize count,
4827 gsize *bytes_written,
4828 GError **error);
4829 GIOStatus g_io_channel_write_unichar (GIOChannel *channel,
4830 gunichar thechar,
4831 GError **error);
4832 GIOStatus g_io_channel_seek_position (GIOChannel *channel,
4833 gint64 offset,
4834 GSeekType type,
4835 GError **error);
4836
4837
4838
4839
4840 GIOChannel* g_io_channel_new_file (const gchar *filename,
4841 const gchar *mode,
4842 GError **error);
4843
4844
4845
4846 GQuark g_io_channel_error_quark (void);
4847 GIOChannelError g_io_channel_error_from_errno (gint en);
4848 # 294 "/usr/include/glib-2.0/glib/giochannel.h"
4849 GIOChannel* g_io_channel_unix_new (int fd);
4850 gint g_io_channel_unix_get_fd (GIOChannel *channel);
4851
4852
4853
4854 extern GSourceFuncs g_io_watch_funcs;
4855 # 352 "/usr/include/glib-2.0/glib/giochannel.h"
4856 # 46 "/usr/include/glib-2.0/glib.h" 2
4857
4858 # 1 "/usr/include/glib-2.0/glib/gkeyfile.h" 1
4859 # 28 "/usr/include/glib-2.0/glib/gkeyfile.h"
4860
4861
4862 typedef enum
4863 {
4864 G_KEY_FILE_ERROR_UNKNOWN_ENCODING,
4865 G_KEY_FILE_ERROR_PARSE,
4866 G_KEY_FILE_ERROR_NOT_FOUND,
4867 G_KEY_FILE_ERROR_KEY_NOT_FOUND,
4868 G_KEY_FILE_ERROR_GROUP_NOT_FOUND,
4869 G_KEY_FILE_ERROR_INVALID_VALUE
4870 } GKeyFileError;
4871
4872
4873
4874 GQuark g_key_file_error_quark (void);
4875
4876 typedef struct _GKeyFile GKeyFile;
4877
4878 typedef enum
4879 {
4880 G_KEY_FILE_NONE = 0,
4881 G_KEY_FILE_KEEP_COMMENTS = 1 << 0,
4882 G_KEY_FILE_KEEP_TRANSLATIONS = 1 << 1
4883 } GKeyFileFlags;
4884
4885 GKeyFile *g_key_file_new (void);
4886 void g_key_file_free (GKeyFile *key_file);
4887 void g_key_file_set_list_separator (GKeyFile *key_file,
4888 gchar separator);
4889 gboolean g_key_file_load_from_file (GKeyFile *key_file,
4890 const gchar *file,
4891 GKeyFileFlags flags,
4892 GError **error);
4893 gboolean g_key_file_load_from_data (GKeyFile *key_file,
4894 const gchar *data,
4895 gsize length,
4896 GKeyFileFlags flags,
4897 GError **error);
4898 gboolean g_key_file_load_from_data_dirs (GKeyFile *key_file,
4899 const gchar *file,
4900 gchar **full_path,
4901 GKeyFileFlags flags,
4902 GError **error);
4903 gchar *g_key_file_to_data (GKeyFile *key_file,
4904 gsize *length,
4905 GError **error) __attribute__((__malloc__));
4906 gchar *g_key_file_get_start_group (GKeyFile *key_file) __attribute__((__malloc__));
4907 gchar **g_key_file_get_groups (GKeyFile *key_file,
4908 gsize *length) __attribute__((__malloc__));
4909 gchar **g_key_file_get_keys (GKeyFile *key_file,
4910 const gchar *group_name,
4911 gsize *length,
4912 GError **error) __attribute__((__malloc__));
4913 gboolean g_key_file_has_group (GKeyFile *key_file,
4914 const gchar *group_name);
4915 gboolean g_key_file_has_key (GKeyFile *key_file,
4916 const gchar *group_name,
4917 const gchar *key,
4918 GError **error);
4919 gchar *g_key_file_get_value (GKeyFile *key_file,
4920 const gchar *group_name,
4921 const gchar *key,
4922 GError **error) __attribute__((__malloc__));
4923 void g_key_file_set_value (GKeyFile *key_file,
4924 const gchar *group_name,
4925 const gchar *key,
4926 const gchar *value);
4927 gchar *g_key_file_get_string (GKeyFile *key_file,
4928 const gchar *group_name,
4929 const gchar *key,
4930 GError **error) __attribute__((__malloc__));
4931 void g_key_file_set_string (GKeyFile *key_file,
4932 const gchar *group_name,
4933 const gchar *key,
4934 const gchar *string);
4935 gchar *g_key_file_get_locale_string (GKeyFile *key_file,
4936 const gchar *group_name,
4937 const gchar *key,
4938 const gchar *locale,
4939 GError **error) __attribute__((__malloc__));
4940 void g_key_file_set_locale_string (GKeyFile *key_file,
4941 const gchar *group_name,
4942 const gchar *key,
4943 const gchar *locale,
4944 const gchar *string);
4945 gboolean g_key_file_get_boolean (GKeyFile *key_file,
4946 const gchar *group_name,
4947 const gchar *key,
4948 GError **error);
4949 void g_key_file_set_boolean (GKeyFile *key_file,
4950 const gchar *group_name,
4951 const gchar *key,
4952 gboolean value);
4953 gint g_key_file_get_integer (GKeyFile *key_file,
4954 const gchar *group_name,
4955 const gchar *key,
4956 GError **error);
4957 void g_key_file_set_integer (GKeyFile *key_file,
4958 const gchar *group_name,
4959 const gchar *key,
4960 gint value);
4961 gchar **g_key_file_get_string_list (GKeyFile *key_file,
4962 const gchar *group_name,
4963 const gchar *key,
4964 gsize *length,
4965 GError **error) __attribute__((__malloc__));
4966 void g_key_file_set_string_list (GKeyFile *key_file,
4967 const gchar *group_name,
4968 const gchar *key,
4969 const gchar * const list[],
4970 gsize length);
4971 gchar **g_key_file_get_locale_string_list (GKeyFile *key_file,
4972 const gchar *group_name,
4973 const gchar *key,
4974 const gchar *locale,
4975 gsize *length,
4976 GError **error) __attribute__((__malloc__));
4977 void g_key_file_set_locale_string_list (GKeyFile *key_file,
4978 const gchar *group_name,
4979 const gchar *key,
4980 const gchar *locale,
4981 const gchar * const list[],
4982 gsize length);
4983 gboolean *g_key_file_get_boolean_list (GKeyFile *key_file,
4984 const gchar *group_name,
4985 const gchar *key,
4986 gsize *length,
4987 GError **error) __attribute__((__malloc__));
4988 void g_key_file_set_boolean_list (GKeyFile *key_file,
4989 const gchar *group_name,
4990 const gchar *key,
4991 gboolean list[],
4992 gsize length);
4993 gint *g_key_file_get_integer_list (GKeyFile *key_file,
4994 const gchar *group_name,
4995 const gchar *key,
4996 gsize *length,
4997 GError **error) __attribute__((__malloc__));
4998 void g_key_file_set_integer_list (GKeyFile *key_file,
4999 const gchar *group_name,
5000 const gchar *key,
5001 gint list[],
5002 gsize length);
5003 void g_key_file_set_comment (GKeyFile *key_file,
5004 const gchar *group_name,
5005 const gchar *key,
5006 const gchar *comment,
5007 GError **error);
5008 gchar *g_key_file_get_comment (GKeyFile *key_file,
5009 const gchar *group_name,
5010 const gchar *key,
5011 GError **error) __attribute__((__malloc__));
5012
5013 void g_key_file_remove_comment (GKeyFile *key_file,
5014 const gchar *group_name,
5015 const gchar *key,
5016 GError **error);
5017 void g_key_file_remove_key (GKeyFile *key_file,
5018 const gchar *group_name,
5019 const gchar *key,
5020 GError **error);
5021 void g_key_file_remove_group (GKeyFile *key_file,
5022 const gchar *group_name,
5023 GError **error);
5024 # 47 "/usr/include/glib-2.0/glib.h" 2
5025
5026
5027
5028
5029 # 1 "/usr/include/glib-2.0/glib/gmappedfile.h" 1
5030 # 26 "/usr/include/glib-2.0/glib/gmappedfile.h"
5031
5032
5033 typedef struct _GMappedFile GMappedFile;
5034
5035 GMappedFile *g_mapped_file_new (const gchar *filename,
5036 gboolean writable,
5037 GError **error) __attribute__((__malloc__));
5038 gsize g_mapped_file_get_length (GMappedFile *file);
5039 gchar *g_mapped_file_get_contents (GMappedFile *file);
5040 void g_mapped_file_free (GMappedFile *file);
5041 # 51 "/usr/include/glib-2.0/glib.h" 2
5042
5043 # 1 "/usr/include/glib-2.0/glib/gmarkup.h" 1
5044 # 28 "/usr/include/glib-2.0/glib/gmarkup.h"
5045
5046
5047 typedef enum
5048 {
5049 G_MARKUP_ERROR_BAD_UTF8,
5050 G_MARKUP_ERROR_EMPTY,
5051 G_MARKUP_ERROR_PARSE,
5052
5053
5054
5055 G_MARKUP_ERROR_UNKNOWN_ELEMENT,
5056 G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE,
5057 G_MARKUP_ERROR_INVALID_CONTENT
5058 } GMarkupError;
5059
5060
5061
5062 GQuark g_markup_error_quark (void);
5063
5064 typedef enum
5065 {
5066
5067 G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG = 1 << 0
5068
5069 } GMarkupParseFlags;
5070
5071 typedef struct _GMarkupParseContext GMarkupParseContext;
5072 typedef struct _GMarkupParser GMarkupParser;
5073
5074 struct _GMarkupParser
5075 {
5076
5077 void (*start_element) (GMarkupParseContext *context,
5078 const gchar *element_name,
5079 const gchar **attribute_names,
5080 const gchar **attribute_values,
5081 gpointer user_data,
5082 GError **error);
5083
5084
5085 void (*end_element) (GMarkupParseContext *context,
5086 const gchar *element_name,
5087 gpointer user_data,
5088 GError **error);
5089
5090
5091
5092 void (*text) (GMarkupParseContext *context,
5093 const gchar *text,
5094 gsize text_len,
5095 gpointer user_data,
5096 GError **error);
5097
5098
5099
5100
5101
5102
5103 void (*passthrough) (GMarkupParseContext *context,
5104 const gchar *passthrough_text,
5105 gsize text_len,
5106 gpointer user_data,
5107 GError **error);
5108
5109
5110
5111
5112 void (*error) (GMarkupParseContext *context,
5113 GError *error,
5114 gpointer user_data);
5115 };
5116
5117 GMarkupParseContext *g_markup_parse_context_new (const GMarkupParser *parser,
5118 GMarkupParseFlags flags,
5119 gpointer user_data,
5120 GDestroyNotify user_data_dnotify);
5121 void g_markup_parse_context_free (GMarkupParseContext *context);
5122 gboolean g_markup_parse_context_parse (GMarkupParseContext *context,
5123 const gchar *text,
5124 gssize text_len,
5125 GError **error);
5126
5127 gboolean g_markup_parse_context_end_parse (GMarkupParseContext *context,
5128 GError **error);
5129 const gchar *g_markup_parse_context_get_element (GMarkupParseContext *context);
5130
5131
5132 void g_markup_parse_context_get_position (GMarkupParseContext *context,
5133 gint *line_number,
5134 gint *char_number);
5135
5136
5137 gchar* g_markup_escape_text (const gchar *text,
5138 gssize length);
5139
5140 gchar *g_markup_printf_escaped (const char *format,
5141 ...) __attribute__((__format__ (__printf__, 1, 2)));
5142 gchar *g_markup_vprintf_escaped (const char *format,
5143 va_list args);
5144 # 52 "/usr/include/glib-2.0/glib.h" 2
5145
5146
5147 # 1 "/usr/include/glib-2.0/glib/gmessages.h" 1
5148 # 37 "/usr/include/glib-2.0/glib/gmessages.h"
5149 # 38 "/usr/include/glib-2.0/glib/gmessages.h" 3
5150
5151
5152
5153
5154
5155
5156 gsize g_printf_string_upper_bound (const gchar* format,
5157 va_list args);
5158 # 54 "/usr/include/glib-2.0/glib/gmessages.h" 3
5159 typedef enum
5160 {
5161
5162 G_LOG_FLAG_RECURSION = 1 << 0,
5163 G_LOG_FLAG_FATAL = 1 << 1,
5164
5165
5166 G_LOG_LEVEL_ERROR = 1 << 2,
5167 G_LOG_LEVEL_CRITICAL = 1 << 3,
5168 G_LOG_LEVEL_WARNING = 1 << 4,
5169 G_LOG_LEVEL_MESSAGE = 1 << 5,
5170 G_LOG_LEVEL_INFO = 1 << 6,
5171 G_LOG_LEVEL_DEBUG = 1 << 7,
5172
5173 G_LOG_LEVEL_MASK = ~(G_LOG_FLAG_RECURSION | G_LOG_FLAG_FATAL)
5174 } GLogLevelFlags;
5175
5176
5177
5178
5179 typedef void (*GLogFunc) (const gchar *log_domain,
5180 GLogLevelFlags log_level,
5181 const gchar *message,
5182 gpointer user_data);
5183
5184
5185
5186 guint g_log_set_handler (const gchar *log_domain,
5187 GLogLevelFlags log_levels,
5188 GLogFunc log_func,
5189 gpointer user_data);
5190 void g_log_remove_handler (const gchar *log_domain,
5191 guint handler_id);
5192 void g_log_default_handler (const gchar *log_domain,
5193 GLogLevelFlags log_level,
5194 const gchar *message,
5195 gpointer unused_data);
5196 GLogFunc g_log_set_default_handler (GLogFunc log_func,
5197 gpointer user_data);
5198 void g_log (const gchar *log_domain,
5199 GLogLevelFlags log_level,
5200 const gchar *format,
5201 ...) __attribute__((__format__ (__printf__, 3, 4)));
5202 void g_logv (const gchar *log_domain,
5203 GLogLevelFlags log_level,
5204 const gchar *format,
5205 va_list args);
5206 GLogLevelFlags g_log_set_fatal_mask (const gchar *log_domain,
5207 GLogLevelFlags fatal_mask);
5208 GLogLevelFlags g_log_set_always_fatal (GLogLevelFlags fatal_mask);
5209
5210
5211 void _g_log_fallback_handler (const gchar *log_domain,
5212 GLogLevelFlags log_level,
5213 const gchar *message,
5214 gpointer unused_data) __attribute__((visibility("hidden")));
5215
5216
5217 void g_return_if_fail_warning (const char *log_domain,
5218 const char *pretty_function,
5219 const char *expression);
5220 void g_assert_warning (const char *log_domain,
5221 const char *file,
5222 const int line,
5223 const char *pretty_function,
5224 const char *expression) __attribute__((__noreturn__));
5225 # 205 "/usr/include/glib-2.0/glib/gmessages.h" 3
5226 typedef void (*GPrintFunc) (const gchar *string);
5227 void g_print (const gchar *format,
5228 ...) __attribute__((__format__ (__printf__, 1, 2)));
5229 GPrintFunc g_set_print_handler (GPrintFunc func);
5230 void g_printerr (const gchar *format,
5231 ...) __attribute__((__format__ (__printf__, 1, 2)));
5232 GPrintFunc g_set_printerr_handler (GPrintFunc func);
5233 # 361 "/usr/include/glib-2.0/glib/gmessages.h" 3
5234 # 54 "/usr/include/glib-2.0/glib.h" 2
5235
5236 # 1 "/usr/include/glib-2.0/glib/gnode.h" 1
5237 # 32 "/usr/include/glib-2.0/glib/gnode.h"
5238
5239
5240 typedef struct _GNode GNode;
5241
5242
5243 typedef enum
5244 {
5245 G_TRAVERSE_LEAVES = 1 << 0,
5246 G_TRAVERSE_NON_LEAVES = 1 << 1,
5247 G_TRAVERSE_ALL = G_TRAVERSE_LEAVES | G_TRAVERSE_NON_LEAVES,
5248 G_TRAVERSE_MASK = 0x03,
5249 G_TRAVERSE_LEAFS = G_TRAVERSE_LEAVES,
5250 G_TRAVERSE_NON_LEAFS = G_TRAVERSE_NON_LEAVES
5251 } GTraverseFlags;
5252
5253
5254 typedef enum
5255 {
5256 G_IN_ORDER,
5257 G_PRE_ORDER,
5258 G_POST_ORDER,
5259 G_LEVEL_ORDER
5260 } GTraverseType;
5261
5262 typedef gboolean (*GNodeTraverseFunc) (GNode *node,
5263 gpointer data);
5264 typedef void (*GNodeForeachFunc) (GNode *node,
5265 gpointer data);
5266 typedef gpointer (*GCopyFunc) (gconstpointer src,
5267 gpointer data);
5268
5269
5270
5271 struct _GNode
5272 {
5273 gpointer data;
5274 GNode *next;
5275 GNode *prev;
5276 GNode *parent;
5277 GNode *children;
5278 };
5279
5280
5281
5282
5283
5284
5285 GNode* g_node_new (gpointer data);
5286 void g_node_destroy (GNode *root);
5287 void g_node_unlink (GNode *node);
5288 GNode* g_node_copy_deep (GNode *node,
5289 GCopyFunc copy_func,
5290 gpointer data);
5291 GNode* g_node_copy (GNode *node);
5292 GNode* g_node_insert (GNode *parent,
5293 gint position,
5294 GNode *node);
5295 GNode* g_node_insert_before (GNode *parent,
5296 GNode *sibling,
5297 GNode *node);
5298 GNode* g_node_insert_after (GNode *parent,
5299 GNode *sibling,
5300 GNode *node);
5301 GNode* g_node_prepend (GNode *parent,
5302 GNode *node);
5303 guint g_node_n_nodes (GNode *root,
5304 GTraverseFlags flags);
5305 GNode* g_node_get_root (GNode *node);
5306 gboolean g_node_is_ancestor (GNode *node,
5307 GNode *descendant);
5308 guint g_node_depth (GNode *node);
5309 GNode* g_node_find (GNode *root,
5310 GTraverseType order,
5311 GTraverseFlags flags,
5312 gpointer data);
5313 # 125 "/usr/include/glib-2.0/glib/gnode.h"
5314 void g_node_traverse (GNode *root,
5315 GTraverseType order,
5316 GTraverseFlags flags,
5317 gint max_depth,
5318 GNodeTraverseFunc func,
5319 gpointer data);
5320
5321
5322
5323
5324
5325
5326 guint g_node_max_height (GNode *root);
5327
5328 void g_node_children_foreach (GNode *node,
5329 GTraverseFlags flags,
5330 GNodeForeachFunc func,
5331 gpointer data);
5332 void g_node_reverse_children (GNode *node);
5333 guint g_node_n_children (GNode *node);
5334 GNode* g_node_nth_child (GNode *node,
5335 guint n);
5336 GNode* g_node_last_child (GNode *node);
5337 GNode* g_node_find_child (GNode *node,
5338 GTraverseFlags flags,
5339 gpointer data);
5340 gint g_node_child_position (GNode *node,
5341 GNode *child);
5342 gint g_node_child_index (GNode *node,
5343 gpointer data);
5344
5345 GNode* g_node_first_sibling (GNode *node);
5346 GNode* g_node_last_sibling (GNode *node);
5347 # 167 "/usr/include/glib-2.0/glib/gnode.h"
5348 void g_node_push_allocator (gpointer dummy);
5349 void g_node_pop_allocator (void);
5350 # 55 "/usr/include/glib-2.0/glib.h" 2
5351
5352 # 1 "/usr/include/glib-2.0/glib/goption.h" 1
5353 # 27 "/usr/include/glib-2.0/glib/goption.h"
5354
5355
5356 typedef struct _GOptionContext GOptionContext;
5357 typedef struct _GOptionGroup GOptionGroup;
5358 typedef struct _GOptionEntry GOptionEntry;
5359
5360 typedef enum
5361 {
5362 G_OPTION_FLAG_HIDDEN = 1 << 0,
5363 G_OPTION_FLAG_IN_MAIN = 1 << 1,
5364 G_OPTION_FLAG_REVERSE = 1 << 2,
5365 G_OPTION_FLAG_NO_ARG = 1 << 3,
5366 G_OPTION_FLAG_FILENAME = 1 << 4,
5367 G_OPTION_FLAG_OPTIONAL_ARG = 1 << 5,
5368 G_OPTION_FLAG_NOALIAS = 1 << 6
5369 } GOptionFlags;
5370
5371 typedef enum
5372 {
5373 G_OPTION_ARG_NONE,
5374 G_OPTION_ARG_STRING,
5375 G_OPTION_ARG_INT,
5376 G_OPTION_ARG_CALLBACK,
5377 G_OPTION_ARG_FILENAME,
5378 G_OPTION_ARG_STRING_ARRAY,
5379 G_OPTION_ARG_FILENAME_ARRAY
5380 } GOptionArg;
5381
5382 typedef gboolean (*GOptionArgFunc) (const gchar *option_name,
5383 const gchar *value,
5384 gpointer data,
5385 GError **error);
5386
5387 typedef gboolean (*GOptionParseFunc) (GOptionContext *context,
5388 GOptionGroup *group,
5389 gpointer data,
5390 GError **error);
5391
5392 typedef void (*GOptionErrorFunc) (GOptionContext *context,
5393 GOptionGroup *group,
5394 gpointer data,
5395 GError **error);
5396
5397
5398
5399 typedef enum
5400 {
5401 G_OPTION_ERROR_UNKNOWN_OPTION,
5402 G_OPTION_ERROR_BAD_VALUE,
5403 G_OPTION_ERROR_FAILED
5404 } GOptionError;
5405
5406 GQuark g_option_error_quark (void);
5407
5408
5409 struct _GOptionEntry
5410 {
5411 const gchar *long_name;
5412 gchar short_name;
5413 gint flags;
5414
5415 GOptionArg arg;
5416 gpointer arg_data;
5417
5418 const gchar *description;
5419 const gchar *arg_description;
5420 };
5421
5422
5423
5424 GOptionContext *g_option_context_new (const gchar *parameter_string);
5425 void g_option_context_free (GOptionContext *context);
5426 void g_option_context_set_help_enabled (GOptionContext *context,
5427 gboolean help_enabled);
5428 gboolean g_option_context_get_help_enabled (GOptionContext *context);
5429 void g_option_context_set_ignore_unknown_options (GOptionContext *context,
5430 gboolean ignore_unknown);
5431 gboolean g_option_context_get_ignore_unknown_options (GOptionContext *context);
5432
5433 void g_option_context_add_main_entries (GOptionContext *context,
5434 const GOptionEntry *entries,
5435 const gchar *translation_domain);
5436 gboolean g_option_context_parse (GOptionContext *context,
5437 gint *argc,
5438 gchar ***argv,
5439 GError **error);
5440
5441 void g_option_context_add_group (GOptionContext *context,
5442 GOptionGroup *group);
5443 void g_option_context_set_main_group (GOptionContext *context,
5444 GOptionGroup *group);
5445 GOptionGroup *g_option_context_get_main_group (GOptionContext *context);
5446
5447
5448 GOptionGroup *g_option_group_new (const gchar *name,
5449 const gchar *description,
5450 const gchar *help_description,
5451 gpointer user_data,
5452 GDestroyNotify destroy);
5453 void g_option_group_set_parse_hooks (GOptionGroup *group,
5454 GOptionParseFunc pre_parse_func,
5455 GOptionParseFunc post_parse_func);
5456 void g_option_group_set_error_hook (GOptionGroup *group,
5457 GOptionErrorFunc error_func);
5458 void g_option_group_free (GOptionGroup *group);
5459 void g_option_group_add_entries (GOptionGroup *group,
5460 const GOptionEntry *entries);
5461 void g_option_group_set_translate_func (GOptionGroup *group,
5462 GTranslateFunc func,
5463 gpointer data,
5464 GDestroyNotify destroy_notify);
5465 void g_option_group_set_translation_domain (GOptionGroup *group,
5466 const gchar *domain);
5467 # 56 "/usr/include/glib-2.0/glib.h" 2
5468
5469 # 1 "/usr/include/glib-2.0/glib/gpattern.h" 1
5470 # 24 "/usr/include/glib-2.0/glib/gpattern.h"
5471
5472
5473
5474 typedef struct _GPatternSpec GPatternSpec;
5475
5476 GPatternSpec* g_pattern_spec_new (const gchar *pattern);
5477 void g_pattern_spec_free (GPatternSpec *pspec);
5478 gboolean g_pattern_spec_equal (GPatternSpec *pspec1,
5479 GPatternSpec *pspec2);
5480 gboolean g_pattern_match (GPatternSpec *pspec,
5481 guint string_length,
5482 const gchar *string,
5483 const gchar *string_reversed);
5484 gboolean g_pattern_match_string (GPatternSpec *pspec,
5485 const gchar *string);
5486 gboolean g_pattern_match_simple (const gchar *pattern,
5487 const gchar *string);
5488 # 57 "/usr/include/glib-2.0/glib.h" 2
5489
5490 # 1 "/usr/include/glib-2.0/glib/gprimes.h" 1
5491 # 32 "/usr/include/glib-2.0/glib/gprimes.h"
5492 # 43 "/usr/include/glib-2.0/glib/gprimes.h"
5493 guint g_spaced_primes_closest (guint num) __attribute__((__const__));
5494 # 58 "/usr/include/glib-2.0/glib.h" 2
5495
5496 # 1 "/usr/include/glib-2.0/glib/gqsort.h" 1
5497 # 33 "/usr/include/glib-2.0/glib/gqsort.h"
5498
5499
5500 void g_qsort_with_data (gconstpointer pbase,
5501 gint total_elems,
5502 gsize size,
5503 GCompareDataFunc compare_func,
5504 gpointer user_data);
5505 # 59 "/usr/include/glib-2.0/glib.h" 2
5506
5507
5508 # 1 "/usr/include/glib-2.0/glib/gqueue.h" 1
5509 # 32 "/usr/include/glib-2.0/glib/gqueue.h"
5510
5511
5512 typedef struct _GQueue GQueue;
5513
5514 struct _GQueue
5515 {
5516 GList *head;
5517 GList *tail;
5518 guint length;
5519 };
5520
5521
5522
5523 GQueue* g_queue_new (void);
5524 void g_queue_free (GQueue *queue);
5525 gboolean g_queue_is_empty (GQueue *queue);
5526 guint g_queue_get_length (GQueue *queue);
5527 void g_queue_reverse (GQueue *queue);
5528 GQueue * g_queue_copy (GQueue *queue);
5529 void g_queue_foreach (GQueue *queue,
5530 GFunc func,
5531 gpointer user_data);
5532 GList * g_queue_find (GQueue *queue,
5533 gconstpointer data);
5534 GList * g_queue_find_custom (GQueue *queue,
5535 gconstpointer data,
5536 GCompareFunc func);
5537 void g_queue_sort (GQueue *queue,
5538 GCompareDataFunc compare_func,
5539 gpointer user_data);
5540
5541 void g_queue_push_head (GQueue *queue,
5542 gpointer data);
5543 void g_queue_push_tail (GQueue *queue,
5544 gpointer data);
5545 void g_queue_push_nth (GQueue *queue,
5546 gpointer data,
5547 gint n);
5548 gpointer g_queue_pop_head (GQueue *queue);
5549 gpointer g_queue_pop_tail (GQueue *queue);
5550 gpointer g_queue_pop_nth (GQueue *queue,
5551 guint n);
5552 gpointer g_queue_peek_head (GQueue *queue);
5553 gpointer g_queue_peek_tail (GQueue *queue);
5554 gpointer g_queue_peek_nth (GQueue *queue,
5555 guint n);
5556 gint g_queue_index (GQueue *queue,
5557 gconstpointer data);
5558 void g_queue_remove (GQueue *queue,
5559 gconstpointer data);
5560 void g_queue_remove_all (GQueue *queue,
5561 gconstpointer data);
5562 void g_queue_insert_before (GQueue *queue,
5563 GList *sibling,
5564 gpointer data);
5565 void g_queue_insert_after (GQueue *queue,
5566 GList *sibling,
5567 gpointer data);
5568 void g_queue_insert_sorted (GQueue *queue,
5569 gpointer data,
5570 GCompareDataFunc func,
5571 gpointer user_data);
5572
5573 void g_queue_push_head_link (GQueue *queue,
5574 GList *link_);
5575 void g_queue_push_tail_link (GQueue *queue,
5576 GList *link_);
5577 void g_queue_push_nth_link (GQueue *queue,
5578 gint n,
5579 GList *link_);
5580 GList* g_queue_pop_head_link (GQueue *queue);
5581 GList* g_queue_pop_tail_link (GQueue *queue);
5582 GList* g_queue_pop_nth_link (GQueue *queue,
5583 guint n);
5584 GList* g_queue_peek_head_link (GQueue *queue);
5585 GList* g_queue_peek_tail_link (GQueue *queue);
5586 GList* g_queue_peek_nth_link (GQueue *queue,
5587 guint n);
5588 gint g_queue_link_index (GQueue *queue,
5589 GList *link_);
5590 void g_queue_unlink (GQueue *queue,
5591 GList *link_);
5592 void g_queue_delete_link (GQueue *queue,
5593 GList *link_);
5594 # 61 "/usr/include/glib-2.0/glib.h" 2
5595
5596 # 1 "/usr/include/glib-2.0/glib/grand.h" 1
5597 # 32 "/usr/include/glib-2.0/glib/grand.h"
5598
5599
5600 typedef struct _GRand GRand;
5601 # 45 "/usr/include/glib-2.0/glib/grand.h"
5602 GRand* g_rand_new_with_seed (guint32 seed);
5603 GRand* g_rand_new_with_seed_array (const guint32 *seed,
5604 guint seed_length);
5605 GRand* g_rand_new (void);
5606 void g_rand_free (GRand *rand_);
5607 GRand* g_rand_copy (GRand *rand_);
5608 void g_rand_set_seed (GRand *rand_,
5609 guint32 seed);
5610 void g_rand_set_seed_array (GRand *rand_,
5611 const guint32 *seed,
5612 guint seed_length);
5613
5614
5615
5616 guint32 g_rand_int (GRand *rand_);
5617 gint32 g_rand_int_range (GRand *rand_,
5618 gint32 begin,
5619 gint32 end);
5620 gdouble g_rand_double (GRand *rand_);
5621 gdouble g_rand_double_range (GRand *rand_,
5622 gdouble begin,
5623 gdouble end);
5624 void g_random_set_seed (guint32 seed);
5625
5626
5627
5628 guint32 g_random_int (void);
5629 gint32 g_random_int_range (gint32 begin,
5630 gint32 end);
5631 gdouble g_random_double (void);
5632 gdouble g_random_double_range (gdouble begin,
5633 gdouble end);
5634 # 62 "/usr/include/glib-2.0/glib.h" 2
5635
5636 # 1 "/usr/include/glib-2.0/glib/grel.h" 1
5637 # 32 "/usr/include/glib-2.0/glib/grel.h"
5638
5639
5640 typedef struct _GRelation GRelation;
5641 typedef struct _GTuples GTuples;
5642
5643 struct _GTuples
5644 {
5645 guint len;
5646 };
5647 # 65 "/usr/include/glib-2.0/glib/grel.h"
5648 GRelation* g_relation_new (gint fields);
5649 void g_relation_destroy (GRelation *relation);
5650 void g_relation_index (GRelation *relation,
5651 gint field,
5652 GHashFunc hash_func,
5653 GEqualFunc key_equal_func);
5654 void g_relation_insert (GRelation *relation,
5655 ...);
5656 gint g_relation_delete (GRelation *relation,
5657 gconstpointer key,
5658 gint field);
5659 GTuples* g_relation_select (GRelation *relation,
5660 gconstpointer key,
5661 gint field);
5662 gint g_relation_count (GRelation *relation,
5663 gconstpointer key,
5664 gint field);
5665 gboolean g_relation_exists (GRelation *relation,
5666 ...);
5667 void g_relation_print (GRelation *relation);
5668
5669 void g_tuples_destroy (GTuples *tuples);
5670 gpointer g_tuples_index (GTuples *tuples,
5671 gint index_,
5672 gint field);
5673 # 63 "/usr/include/glib-2.0/glib.h" 2
5674
5675 # 1 "/usr/include/glib-2.0/glib/gscanner.h" 1
5676 # 33 "/usr/include/glib-2.0/glib/gscanner.h"
5677
5678
5679 typedef struct _GScanner GScanner;
5680 typedef struct _GScannerConfig GScannerConfig;
5681 typedef union _GTokenValue GTokenValue;
5682
5683 typedef void (*GScannerMsgFunc) (GScanner *scanner,
5684 gchar *message,
5685 gboolean error);
5686 # 60 "/usr/include/glib-2.0/glib/gscanner.h"
5687 typedef enum
5688 {
5689 G_ERR_UNKNOWN,
5690 G_ERR_UNEXP_EOF,
5691 G_ERR_UNEXP_EOF_IN_STRING,
5692 G_ERR_UNEXP_EOF_IN_COMMENT,
5693 G_ERR_NON_DIGIT_IN_CONST,
5694 G_ERR_DIGIT_RADIX,
5695 G_ERR_FLOAT_RADIX,
5696 G_ERR_FLOAT_MALFORMED
5697 } GErrorType;
5698
5699
5700 typedef enum
5701 {
5702 G_TOKEN_EOF = 0,
5703
5704 G_TOKEN_LEFT_PAREN = '(',
5705 G_TOKEN_RIGHT_PAREN = ')',
5706 G_TOKEN_LEFT_CURLY = '{',
5707 G_TOKEN_RIGHT_CURLY = '}',
5708 G_TOKEN_LEFT_BRACE = '[',
5709 G_TOKEN_RIGHT_BRACE = ']',
5710 G_TOKEN_EQUAL_SIGN = '=',
5711 G_TOKEN_COMMA = ',',
5712
5713 G_TOKEN_NONE = 256,
5714
5715 G_TOKEN_ERROR,
5716
5717 G_TOKEN_CHAR,
5718 G_TOKEN_BINARY,
5719 G_TOKEN_OCTAL,
5720 G_TOKEN_INT,
5721 G_TOKEN_HEX,
5722 G_TOKEN_FLOAT,
5723 G_TOKEN_STRING,
5724
5725 G_TOKEN_SYMBOL,
5726 G_TOKEN_IDENTIFIER,
5727 G_TOKEN_IDENTIFIER_NULL,
5728
5729 G_TOKEN_COMMENT_SINGLE,
5730 G_TOKEN_COMMENT_MULTI,
5731 G_TOKEN_LAST
5732 } GTokenType;
5733
5734 union _GTokenValue
5735 {
5736 gpointer v_symbol;
5737 gchar *v_identifier;
5738 gulong v_binary;
5739 gulong v_octal;
5740 gulong v_int;
5741 guint64 v_int64;
5742 gdouble v_float;
5743 gulong v_hex;
5744 gchar *v_string;
5745 gchar *v_comment;
5746 guchar v_char;
5747 guint v_error;
5748 };
5749
5750 struct _GScannerConfig
5751 {
5752
5753
5754 gchar *cset_skip_characters;
5755 gchar *cset_identifier_first;
5756 gchar *cset_identifier_nth;
5757 gchar *cpair_comment_single;
5758
5759
5760
5761 guint case_sensitive : 1;
5762
5763
5764
5765
5766 guint skip_comment_multi : 1;
5767 guint skip_comment_single : 1;
5768 guint scan_comment_multi : 1;
5769 guint scan_identifier : 1;
5770 guint scan_identifier_1char : 1;
5771 guint scan_identifier_NULL : 1;
5772 guint scan_symbols : 1;
5773 guint scan_binary : 1;
5774 guint scan_octal : 1;
5775 guint scan_float : 1;
5776 guint scan_hex : 1;
5777 guint scan_hex_dollar : 1;
5778 guint scan_string_sq : 1;
5779 guint scan_string_dq : 1;
5780 guint numbers_2_int : 1;
5781 guint int_2_float : 1;
5782 guint identifier_2_string : 1;
5783 guint char_2_token : 1;
5784 guint symbol_2_token : 1;
5785 guint scope_0_fallback : 1;
5786 guint store_int64 : 1;
5787 guint padding_dummy;
5788 };
5789
5790 struct _GScanner
5791 {
5792
5793 gpointer user_data;
5794 guint max_parse_errors;
5795
5796
5797 guint parse_errors;
5798
5799
5800 const gchar *input_name;
5801
5802
5803 GData *qdata;
5804
5805
5806 GScannerConfig *config;
5807
5808
5809 GTokenType token;
5810 GTokenValue value;
5811 guint line;
5812 guint position;
5813
5814
5815 GTokenType next_token;
5816 GTokenValue next_value;
5817 guint next_line;
5818 guint next_position;
5819
5820
5821 GHashTable *symbol_table;
5822 gint input_fd;
5823 const gchar *text;
5824 const gchar *text_end;
5825 gchar *buffer;
5826 guint scope_id;
5827
5828
5829 GScannerMsgFunc msg_handler;
5830 };
5831
5832 GScanner* g_scanner_new (const GScannerConfig *config_templ);
5833 void g_scanner_destroy (GScanner *scanner);
5834 void g_scanner_input_file (GScanner *scanner,
5835 gint input_fd);
5836 void g_scanner_sync_file_offset (GScanner *scanner);
5837 void g_scanner_input_text (GScanner *scanner,
5838 const gchar *text,
5839 guint text_len);
5840 GTokenType g_scanner_get_next_token (GScanner *scanner);
5841 GTokenType g_scanner_peek_next_token (GScanner *scanner);
5842 GTokenType g_scanner_cur_token (GScanner *scanner);
5843 GTokenValue g_scanner_cur_value (GScanner *scanner);
5844 guint g_scanner_cur_line (GScanner *scanner);
5845 guint g_scanner_cur_position (GScanner *scanner);
5846 gboolean g_scanner_eof (GScanner *scanner);
5847 guint g_scanner_set_scope (GScanner *scanner,
5848 guint scope_id);
5849 void g_scanner_scope_add_symbol (GScanner *scanner,
5850 guint scope_id,
5851 const gchar *symbol,
5852 gpointer value);
5853 void g_scanner_scope_remove_symbol (GScanner *scanner,
5854 guint scope_id,
5855 const gchar *symbol);
5856 gpointer g_scanner_scope_lookup_symbol (GScanner *scanner,
5857 guint scope_id,
5858 const gchar *symbol);
5859 void g_scanner_scope_foreach_symbol (GScanner *scanner,
5860 guint scope_id,
5861 GHFunc func,
5862 gpointer user_data);
5863 gpointer g_scanner_lookup_symbol (GScanner *scanner,
5864 const gchar *symbol);
5865 void g_scanner_unexp_token (GScanner *scanner,
5866 GTokenType expected_token,
5867 const gchar *identifier_spec,
5868 const gchar *symbol_spec,
5869 const gchar *symbol_name,
5870 const gchar *message,
5871 gint is_error);
5872 void g_scanner_error (GScanner *scanner,
5873 const gchar *format,
5874 ...) __attribute__((__format__ (__printf__, 2, 3)));
5875 void g_scanner_warn (GScanner *scanner,
5876 const gchar *format,
5877 ...) __attribute__((__format__ (__printf__, 2, 3)));
5878 # 272 "/usr/include/glib-2.0/glib/gscanner.h"
5879 # 64 "/usr/include/glib-2.0/glib.h" 2
5880
5881 # 1 "/usr/include/glib-2.0/glib/gshell.h" 1
5882 # 26 "/usr/include/glib-2.0/glib/gshell.h"
5883
5884
5885
5886
5887 typedef enum
5888 {
5889
5890 G_SHELL_ERROR_BAD_QUOTING,
5891
5892 G_SHELL_ERROR_EMPTY_STRING,
5893 G_SHELL_ERROR_FAILED
5894 } GShellError;
5895
5896 GQuark g_shell_error_quark (void);
5897
5898 gchar* g_shell_quote (const gchar *unquoted_string);
5899 gchar* g_shell_unquote (const gchar *quoted_string,
5900 GError **error);
5901 gboolean g_shell_parse_argv (const gchar *command_line,
5902 gint *argcp,
5903 gchar ***argvp,
5904 GError **error);
5905 # 65 "/usr/include/glib-2.0/glib.h" 2
5906
5907
5908 # 1 "/usr/include/glib-2.0/glib/gspawn.h" 1
5909 # 26 "/usr/include/glib-2.0/glib/gspawn.h"
5910
5911
5912
5913
5914
5915 typedef enum
5916 {
5917 G_SPAWN_ERROR_FORK,
5918 G_SPAWN_ERROR_READ,
5919 G_SPAWN_ERROR_CHDIR,
5920 G_SPAWN_ERROR_ACCES,
5921 G_SPAWN_ERROR_PERM,
5922 G_SPAWN_ERROR_2BIG,
5923 G_SPAWN_ERROR_NOEXEC,
5924 G_SPAWN_ERROR_NAMETOOLONG,
5925 G_SPAWN_ERROR_NOENT,
5926 G_SPAWN_ERROR_NOMEM,
5927 G_SPAWN_ERROR_NOTDIR,
5928 G_SPAWN_ERROR_LOOP,
5929 G_SPAWN_ERROR_TXTBUSY,
5930 G_SPAWN_ERROR_IO,
5931 G_SPAWN_ERROR_NFILE,
5932 G_SPAWN_ERROR_MFILE,
5933 G_SPAWN_ERROR_INVAL,
5934 G_SPAWN_ERROR_ISDIR,
5935 G_SPAWN_ERROR_LIBBAD,
5936 G_SPAWN_ERROR_FAILED
5937
5938
5939 } GSpawnError;
5940
5941 typedef void (* GSpawnChildSetupFunc) (gpointer user_data);
5942
5943 typedef enum
5944 {
5945 G_SPAWN_LEAVE_DESCRIPTORS_OPEN = 1 << 0,
5946 G_SPAWN_DO_NOT_REAP_CHILD = 1 << 1,
5947
5948 G_SPAWN_SEARCH_PATH = 1 << 2,
5949
5950 G_SPAWN_STDOUT_TO_DEV_NULL = 1 << 3,
5951 G_SPAWN_STDERR_TO_DEV_NULL = 1 << 4,
5952 G_SPAWN_CHILD_INHERITS_STDIN = 1 << 5,
5953 G_SPAWN_FILE_AND_ARGV_ZERO = 1 << 6
5954 } GSpawnFlags;
5955
5956 GQuark g_spawn_error_quark (void);
5957 # 82 "/usr/include/glib-2.0/glib/gspawn.h"
5958 gboolean g_spawn_async (const gchar *working_directory,
5959 gchar **argv,
5960 gchar **envp,
5961 GSpawnFlags flags,
5962 GSpawnChildSetupFunc child_setup,
5963 gpointer user_data,
5964 GPid *child_pid,
5965 GError **error);
5966
5967
5968
5969
5970
5971 gboolean g_spawn_async_with_pipes (const gchar *working_directory,
5972 gchar **argv,
5973 gchar **envp,
5974 GSpawnFlags flags,
5975 GSpawnChildSetupFunc child_setup,
5976 gpointer user_data,
5977 GPid *child_pid,
5978 gint *standard_input,
5979 gint *standard_output,
5980 gint *standard_error,
5981 GError **error);
5982
5983
5984
5985
5986
5987
5988 gboolean g_spawn_sync (const gchar *working_directory,
5989 gchar **argv,
5990 gchar **envp,
5991 GSpawnFlags flags,
5992 GSpawnChildSetupFunc child_setup,
5993 gpointer user_data,
5994 gchar **standard_output,
5995 gchar **standard_error,
5996 gint *exit_status,
5997 GError **error);
5998
5999 gboolean g_spawn_command_line_sync (const gchar *command_line,
6000 gchar **standard_output,
6001 gchar **standard_error,
6002 gint *exit_status,
6003 GError **error);
6004 gboolean g_spawn_command_line_async (const gchar *command_line,
6005 GError **error);
6006
6007 void g_spawn_close_pid (GPid pid);
6008 # 67 "/usr/include/glib-2.0/glib.h" 2
6009
6010 # 1 "/usr/include/glib-2.0/glib/gstrfuncs.h" 1
6011 # 33 "/usr/include/glib-2.0/glib/gstrfuncs.h"
6012
6013
6014
6015 typedef enum {
6016 G_ASCII_ALNUM = 1 << 0,
6017 G_ASCII_ALPHA = 1 << 1,
6018 G_ASCII_CNTRL = 1 << 2,
6019 G_ASCII_DIGIT = 1 << 3,
6020 G_ASCII_GRAPH = 1 << 4,
6021 G_ASCII_LOWER = 1 << 5,
6022 G_ASCII_PRINT = 1 << 6,
6023 G_ASCII_PUNCT = 1 << 7,
6024 G_ASCII_SPACE = 1 << 8,
6025 G_ASCII_UPPER = 1 << 9,
6026 G_ASCII_XDIGIT = 1 << 10
6027 } GAsciiType;
6028
6029 extern const guint16 * const g_ascii_table;
6030 # 85 "/usr/include/glib-2.0/glib/gstrfuncs.h"
6031 gchar g_ascii_tolower (gchar c) __attribute__((__const__));
6032 gchar g_ascii_toupper (gchar c) __attribute__((__const__));
6033
6034 gint g_ascii_digit_value (gchar c) __attribute__((__const__));
6035 gint g_ascii_xdigit_value (gchar c) __attribute__((__const__));
6036
6037
6038
6039
6040
6041 gchar* g_strdelimit (gchar *string,
6042 const gchar *delimiters,
6043 gchar new_delimiter);
6044 gchar* g_strcanon (gchar *string,
6045 const gchar *valid_chars,
6046 gchar substitutor);
6047 const gchar* g_strerror (gint errnum) __attribute__((__const__));
6048 const gchar* g_strsignal (gint signum) __attribute__((__const__));
6049 gchar* g_strreverse (gchar *string);
6050 gsize g_strlcpy (gchar *dest,
6051 const gchar *src,
6052 gsize dest_size);
6053 gsize g_strlcat (gchar *dest,
6054 const gchar *src,
6055 gsize dest_size);
6056 gchar * g_strstr_len (const gchar *haystack,
6057 gssize haystack_len,
6058 const gchar *needle);
6059 gchar * g_strrstr (const gchar *haystack,
6060 const gchar *needle);
6061 gchar * g_strrstr_len (const gchar *haystack,
6062 gssize haystack_len,
6063 const gchar *needle);
6064
6065 gboolean g_str_has_suffix (const gchar *str,
6066 const gchar *suffix);
6067 gboolean g_str_has_prefix (const gchar *str,
6068 const gchar *prefix);
6069
6070
6071
6072 gdouble g_strtod (const gchar *nptr,
6073 gchar **endptr);
6074 gdouble g_ascii_strtod (const gchar *nptr,
6075 gchar **endptr);
6076 guint64 g_ascii_strtoull (const gchar *nptr,
6077 gchar **endptr,
6078 guint base);
6079
6080
6081
6082
6083 gchar * g_ascii_dtostr (gchar *buffer,
6084 gint buf_len,
6085 gdouble d);
6086 gchar * g_ascii_formatd (gchar *buffer,
6087 gint buf_len,
6088 const gchar *format,
6089 gdouble d);
6090
6091
6092 gchar* g_strchug (gchar *string);
6093
6094 gchar* g_strchomp (gchar *string);
6095
6096
6097
6098 gint g_ascii_strcasecmp (const gchar *s1,
6099 const gchar *s2);
6100 gint g_ascii_strncasecmp (const gchar *s1,
6101 const gchar *s2,
6102 gsize n);
6103 gchar* g_ascii_strdown (const gchar *str,
6104 gssize len) __attribute__((__malloc__));
6105 gchar* g_ascii_strup (const gchar *str,
6106 gssize len) __attribute__((__malloc__));
6107 # 169 "/usr/include/glib-2.0/glib/gstrfuncs.h"
6108 gint g_strcasecmp (const gchar *s1,
6109 const gchar *s2);
6110 gint g_strncasecmp (const gchar *s1,
6111 const gchar *s2,
6112 guint n);
6113 gchar* g_strdown (gchar *string);
6114 gchar* g_strup (gchar *string);
6115
6116
6117
6118
6119
6120
6121 gchar* g_strdup (const gchar *str) __attribute__((__malloc__));
6122 gchar* g_strdup_printf (const gchar *format,
6123 ...) __attribute__((__format__ (__printf__, 1, 2))) __attribute__((__malloc__));
6124 gchar* g_strdup_vprintf (const gchar *format,
6125 va_list args) __attribute__((__malloc__));
6126 gchar* g_strndup (const gchar *str,
6127 gsize n) __attribute__((__malloc__));
6128 gchar* g_strnfill (gsize length,
6129 gchar fill_char) __attribute__((__malloc__));
6130 gchar* g_strconcat (const gchar *string1,
6131 ...) __attribute__((__malloc__)) __attribute__((__sentinel__));
6132 gchar* g_strjoin (const gchar *separator,
6133 ...) __attribute__((__malloc__)) __attribute__((__sentinel__));
6134
6135
6136
6137
6138
6139 gchar* g_strcompress (const gchar *source) __attribute__((__malloc__));
6140 # 210 "/usr/include/glib-2.0/glib/gstrfuncs.h"
6141 gchar* g_strescape (const gchar *source,
6142 const gchar *exceptions) __attribute__((__malloc__));
6143
6144 gpointer g_memdup (gconstpointer mem,
6145 guint byte_size) __attribute__((__malloc__));
6146 # 225 "/usr/include/glib-2.0/glib/gstrfuncs.h"
6147 gchar** g_strsplit (const gchar *string,
6148 const gchar *delimiter,
6149 gint max_tokens) __attribute__((__malloc__));
6150 gchar ** g_strsplit_set (const gchar *string,
6151 const gchar *delimiters,
6152 gint max_tokens) __attribute__((__malloc__));
6153 gchar* g_strjoinv (const gchar *separator,
6154 gchar **str_array) __attribute__((__malloc__));
6155 void g_strfreev (gchar **str_array);
6156 gchar** g_strdupv (gchar **str_array) __attribute__((__malloc__));
6157 guint g_strv_length (gchar **str_array);
6158
6159 gchar* g_stpcpy (gchar *dest,
6160 const char *src);
6161
6162 const gchar *g_strip_context (const gchar *msgid,
6163 const gchar *msgval);
6164 # 68 "/usr/include/glib-2.0/glib.h" 2
6165
6166
6167
6168 # 1 "/usr/include/glib-2.0/glib/gthreadpool.h" 1
6169 # 32 "/usr/include/glib-2.0/glib/gthreadpool.h"
6170
6171
6172 typedef struct _GThreadPool GThreadPool;
6173
6174
6175
6176
6177
6178
6179 struct _GThreadPool
6180 {
6181 GFunc func;
6182 gpointer user_data;
6183 gboolean exclusive;
6184 };
6185
6186
6187
6188
6189
6190
6191 GThreadPool* g_thread_pool_new (GFunc func,
6192 gpointer user_data,
6193 gint max_threads,
6194 gboolean exclusive,
6195 GError **error);
6196
6197
6198
6199
6200
6201 void g_thread_pool_push (GThreadPool *pool,
6202 gpointer data,
6203 GError **error);
6204
6205
6206
6207
6208 void g_thread_pool_set_max_threads (GThreadPool *pool,
6209 gint max_threads,
6210 GError **error);
6211 gint g_thread_pool_get_max_threads (GThreadPool *pool);
6212
6213
6214
6215 guint g_thread_pool_get_num_threads (GThreadPool *pool);
6216
6217
6218 guint g_thread_pool_unprocessed (GThreadPool *pool);
6219
6220
6221
6222
6223
6224 void g_thread_pool_free (GThreadPool *pool,
6225 gboolean immediate,
6226 gboolean wait);
6227
6228
6229
6230 void g_thread_pool_set_max_unused_threads (gint max_threads);
6231 gint g_thread_pool_get_max_unused_threads (void);
6232 guint g_thread_pool_get_num_unused_threads (void);
6233
6234
6235 void g_thread_pool_stop_unused_threads (void);
6236
6237
6238 void g_thread_pool_set_sort_function (GThreadPool *pool,
6239 GCompareDataFunc func,
6240 gpointer user_data);
6241
6242
6243 void g_thread_pool_set_max_idle_time (guint interval);
6244 guint g_thread_pool_get_max_idle_time (void);
6245 # 71 "/usr/include/glib-2.0/glib.h" 2
6246
6247 # 1 "/usr/include/glib-2.0/glib/gtimer.h" 1
6248 # 32 "/usr/include/glib-2.0/glib/gtimer.h"
6249
6250
6251
6252
6253
6254
6255 typedef struct _GTimer GTimer;
6256
6257
6258
6259 GTimer* g_timer_new (void);
6260 void g_timer_destroy (GTimer *timer);
6261 void g_timer_start (GTimer *timer);
6262 void g_timer_stop (GTimer *timer);
6263 void g_timer_reset (GTimer *timer);
6264 void g_timer_continue (GTimer *timer);
6265 gdouble g_timer_elapsed (GTimer *timer,
6266 gulong *microseconds);
6267
6268 void g_usleep (gulong microseconds);
6269
6270 void g_time_val_add (GTimeVal *time_,
6271 glong microseconds);
6272 # 72 "/usr/include/glib-2.0/glib.h" 2
6273
6274 # 1 "/usr/include/glib-2.0/glib/gtree.h" 1
6275 # 32 "/usr/include/glib-2.0/glib/gtree.h"
6276
6277
6278 typedef struct _GTree GTree;
6279
6280 typedef gboolean (*GTraverseFunc) (gpointer key,
6281 gpointer value,
6282 gpointer data);
6283
6284
6285
6286 GTree* g_tree_new (GCompareFunc key_compare_func);
6287 GTree* g_tree_new_with_data (GCompareDataFunc key_compare_func,
6288 gpointer key_compare_data);
6289 GTree* g_tree_new_full (GCompareDataFunc key_compare_func,
6290 gpointer key_compare_data,
6291 GDestroyNotify key_destroy_func,
6292 GDestroyNotify value_destroy_func);
6293 void g_tree_destroy (GTree *tree);
6294 void g_tree_insert (GTree *tree,
6295 gpointer key,
6296 gpointer value);
6297 void g_tree_replace (GTree *tree,
6298 gpointer key,
6299 gpointer value);
6300 gboolean g_tree_remove (GTree *tree,
6301 gconstpointer key);
6302 gboolean g_tree_steal (GTree *tree,
6303 gconstpointer key);
6304 gpointer g_tree_lookup (GTree *tree,
6305 gconstpointer key);
6306 gboolean g_tree_lookup_extended (GTree *tree,
6307 gconstpointer lookup_key,
6308 gpointer *orig_key,
6309 gpointer *value);
6310 void g_tree_foreach (GTree *tree,
6311 GTraverseFunc func,
6312 gpointer user_data);
6313
6314
6315 void g_tree_traverse (GTree *tree,
6316 GTraverseFunc traverse_func,
6317 GTraverseType traverse_type,
6318 gpointer user_data);
6319
6320
6321 gpointer g_tree_search (GTree *tree,
6322 GCompareFunc search_func,
6323 gconstpointer user_data);
6324 gint g_tree_height (GTree *tree);
6325 gint g_tree_nnodes (GTree *tree);
6326 # 73 "/usr/include/glib-2.0/glib.h" 2
6327 # 27 "/usr/include/glib-2.0/gobject/gtype.h" 2
6328 # 92 "/usr/include/glib-2.0/gobject/gtype.h"
6329 typedef gulong GType;
6330
6331
6332
6333 typedef struct _GValue GValue;
6334 typedef union _GTypeCValue GTypeCValue;
6335 typedef struct _GTypePlugin GTypePlugin;
6336 typedef struct _GTypeClass GTypeClass;
6337 typedef struct _GTypeInterface GTypeInterface;
6338 typedef struct _GTypeInstance GTypeInstance;
6339 typedef struct _GTypeInfo GTypeInfo;
6340 typedef struct _GTypeFundamentalInfo GTypeFundamentalInfo;
6341 typedef struct _GInterfaceInfo GInterfaceInfo;
6342 typedef struct _GTypeValueTable GTypeValueTable;
6343 typedef struct _GTypeQuery GTypeQuery;
6344
6345
6346
6347
6348 struct _GTypeClass
6349 {
6350
6351 GType g_type;
6352 };
6353 struct _GTypeInstance
6354 {
6355
6356 GTypeClass *g_class;
6357 };
6358 struct _GTypeInterface
6359 {
6360
6361 GType g_type;
6362 GType g_instance_type;
6363 };
6364 struct _GTypeQuery
6365 {
6366 GType type;
6367 const gchar *type_name;
6368 guint class_size;
6369 guint instance_size;
6370 };
6371 # 157 "/usr/include/glib-2.0/gobject/gtype.h"
6372 typedef enum
6373 {
6374 G_TYPE_DEBUG_NONE = 0,
6375 G_TYPE_DEBUG_OBJECTS = 1 << 0,
6376 G_TYPE_DEBUG_SIGNALS = 1 << 1,
6377 G_TYPE_DEBUG_MASK = 0x03
6378 } GTypeDebugFlags;
6379
6380
6381
6382 void g_type_init (void);
6383 void g_type_init_with_debug_flags (GTypeDebugFlags debug_flags);
6384 const gchar* g_type_name (GType type);
6385 GQuark g_type_qname (GType type);
6386 GType g_type_from_name (const gchar *name);
6387 GType g_type_parent (GType type);
6388 guint g_type_depth (GType type);
6389 GType g_type_next_base (GType leaf_type,
6390 GType root_type);
6391 gboolean g_type_is_a (GType type,
6392 GType is_a_type);
6393 gpointer g_type_class_ref (GType type);
6394 gpointer g_type_class_peek (GType type);
6395 gpointer g_type_class_peek_static (GType type);
6396 void g_type_class_unref (gpointer g_class);
6397 gpointer g_type_class_peek_parent (gpointer g_class);
6398 gpointer g_type_interface_peek (gpointer instance_class,
6399 GType iface_type);
6400 gpointer g_type_interface_peek_parent (gpointer g_iface);
6401
6402 gpointer g_type_default_interface_ref (GType g_type);
6403 gpointer g_type_default_interface_peek (GType g_type);
6404 void g_type_default_interface_unref (gpointer g_iface);
6405
6406
6407 GType* g_type_children (GType type,
6408 guint *n_children);
6409 GType* g_type_interfaces (GType type,
6410 guint *n_interfaces);
6411
6412
6413 void g_type_set_qdata (GType type,
6414 GQuark quark,
6415 gpointer data);
6416 gpointer g_type_get_qdata (GType type,
6417 GQuark quark);
6418 void g_type_query (GType type,
6419 GTypeQuery *query);
6420
6421
6422
6423 typedef void (*GBaseInitFunc) (gpointer g_class);
6424 typedef void (*GBaseFinalizeFunc) (gpointer g_class);
6425 typedef void (*GClassInitFunc) (gpointer g_class,
6426 gpointer class_data);
6427 typedef void (*GClassFinalizeFunc) (gpointer g_class,
6428 gpointer class_data);
6429 typedef void (*GInstanceInitFunc) (GTypeInstance *instance,
6430 gpointer g_class);
6431 typedef void (*GInterfaceInitFunc) (gpointer g_iface,
6432 gpointer iface_data);
6433 typedef void (*GInterfaceFinalizeFunc) (gpointer g_iface,
6434 gpointer iface_data);
6435 typedef gboolean (*GTypeClassCacheFunc) (gpointer cache_data,
6436 GTypeClass *g_class);
6437 typedef void (*GTypeInterfaceCheckFunc) (gpointer check_data,
6438 gpointer g_iface);
6439 typedef enum
6440 {
6441 G_TYPE_FLAG_CLASSED = (1 << 0),
6442 G_TYPE_FLAG_INSTANTIATABLE = (1 << 1),
6443 G_TYPE_FLAG_DERIVABLE = (1 << 2),
6444 G_TYPE_FLAG_DEEP_DERIVABLE = (1 << 3)
6445 } GTypeFundamentalFlags;
6446 typedef enum
6447 {
6448 G_TYPE_FLAG_ABSTRACT = (1 << 4),
6449 G_TYPE_FLAG_VALUE_ABSTRACT = (1 << 5)
6450 } GTypeFlags;
6451 struct _GTypeInfo
6452 {
6453
6454 guint16 class_size;
6455
6456 GBaseInitFunc base_init;
6457 GBaseFinalizeFunc base_finalize;
6458
6459
6460 GClassInitFunc class_init;
6461 GClassFinalizeFunc class_finalize;
6462 gconstpointer class_data;
6463
6464
6465 guint16 instance_size;
6466 guint16 n_preallocs;
6467 GInstanceInitFunc instance_init;
6468
6469
6470 const GTypeValueTable *value_table;
6471 };
6472 struct _GTypeFundamentalInfo
6473 {
6474 GTypeFundamentalFlags type_flags;
6475 };
6476 struct _GInterfaceInfo
6477 {
6478 GInterfaceInitFunc interface_init;
6479 GInterfaceFinalizeFunc interface_finalize;
6480 gpointer interface_data;
6481 };
6482 struct _GTypeValueTable
6483 {
6484 void (*value_init) (GValue *value);
6485 void (*value_free) (GValue *value);
6486 void (*value_copy) (const GValue *src_value,
6487 GValue *dest_value);
6488
6489 gpointer (*value_peek_pointer) (const GValue *value);
6490 gchar *collect_format;
6491 gchar* (*collect_value) (GValue *value,
6492 guint n_collect_values,
6493 GTypeCValue *collect_values,
6494 guint collect_flags);
6495 gchar *lcopy_format;
6496 gchar* (*lcopy_value) (const GValue *value,
6497 guint n_collect_values,
6498 GTypeCValue *collect_values,
6499 guint collect_flags);
6500 };
6501 GType g_type_register_static (GType parent_type,
6502 const gchar *type_name,
6503 const GTypeInfo *info,
6504 GTypeFlags flags);
6505 GType g_type_register_dynamic (GType parent_type,
6506 const gchar *type_name,
6507 GTypePlugin *plugin,
6508 GTypeFlags flags);
6509 GType g_type_register_fundamental (GType type_id,
6510 const gchar *type_name,
6511 const GTypeInfo *info,
6512 const GTypeFundamentalInfo *finfo,
6513 GTypeFlags flags);
6514 void g_type_add_interface_static (GType instance_type,
6515 GType interface_type,
6516 const GInterfaceInfo *info);
6517 void g_type_add_interface_dynamic (GType instance_type,
6518 GType interface_type,
6519 GTypePlugin *plugin);
6520 void g_type_interface_add_prerequisite (GType interface_type,
6521 GType prerequisite_type);
6522 GType*g_type_interface_prerequisites (GType interface_type,
6523 guint *n_prerequisites);
6524 void g_type_class_add_private (gpointer g_class,
6525 gsize private_size);
6526 gpointer g_type_instance_get_private (GTypeInstance *instance,
6527 GType private_type);
6528 # 385 "/usr/include/glib-2.0/gobject/gtype.h"
6529 GTypePlugin* g_type_get_plugin (GType type);
6530 GTypePlugin* g_type_interface_get_plugin (GType instance_type,
6531 GType interface_type);
6532 GType g_type_fundamental_next (void);
6533 GType g_type_fundamental (GType type_id);
6534 GTypeInstance* g_type_create_instance (GType type);
6535 void g_type_free_instance (GTypeInstance *instance);
6536
6537 void g_type_add_class_cache_func (gpointer cache_data,
6538 GTypeClassCacheFunc cache_func);
6539 void g_type_remove_class_cache_func (gpointer cache_data,
6540 GTypeClassCacheFunc cache_func);
6541 void g_type_class_unref_uncached (gpointer g_class);
6542
6543 void g_type_add_interface_check (gpointer check_data,
6544 GTypeInterfaceCheckFunc check_func);
6545 void g_type_remove_interface_check (gpointer check_data,
6546 GTypeInterfaceCheckFunc check_func);
6547
6548 GTypeValueTable* g_type_value_table_peek (GType type);
6549
6550
6551
6552 gboolean g_type_check_instance (GTypeInstance *instance);
6553 GTypeInstance* g_type_check_instance_cast (GTypeInstance *instance,
6554 GType iface_type);
6555 gboolean g_type_check_instance_is_a (GTypeInstance *instance,
6556 GType iface_type);
6557 GTypeClass* g_type_check_class_cast (GTypeClass *g_class,
6558 GType is_a_type);
6559 gboolean g_type_check_class_is_a (GTypeClass *g_class,
6560 GType is_a_type);
6561 gboolean g_type_check_is_value_type (GType type);
6562 gboolean g_type_check_value (GValue *value);
6563 gboolean g_type_check_value_holds (GValue *value,
6564 GType type);
6565 gboolean g_type_test_flags (GType type,
6566 guint flags);
6567
6568
6569
6570 const gchar* g_type_name_from_instance (GTypeInstance *instance);
6571 const gchar* g_type_name_from_class (GTypeClass *g_class);
6572
6573
6574
6575 void g_value_c_init (void) __attribute__((visibility("hidden")));
6576 void g_value_types_init (void) __attribute__((visibility("hidden")));
6577 void g_enum_types_init (void) __attribute__((visibility("hidden")));
6578 void g_param_type_init (void) __attribute__((visibility("hidden")));
6579 void g_boxed_type_init (void) __attribute__((visibility("hidden")));
6580 void g_object_type_init (void) __attribute__((visibility("hidden")));
6581 void g_param_spec_types_init (void) __attribute__((visibility("hidden")));
6582 void g_value_transforms_init (void) __attribute__((visibility("hidden")));
6583 void g_signal_init (void) __attribute__((visibility("hidden")));
6584 # 487 "/usr/include/glib-2.0/gobject/gtype.h"
6585 extern GTypeDebugFlags _g_type_debug_flags;
6586 # 27 "/usr/include/glib-2.0/gobject/gboxed.h" 2
6587 # 36 "/usr/include/glib-2.0/gobject/gboxed.h"
6588 typedef gpointer (*GBoxedCopyFunc) (gpointer boxed);
6589 typedef void (*GBoxedFreeFunc) (gpointer boxed);
6590
6591
6592
6593 gpointer g_boxed_copy (GType boxed_type,
6594 gconstpointer src_boxed);
6595 void g_boxed_free (GType boxed_type,
6596 gpointer boxed);
6597 void g_value_set_boxed (GValue *value,
6598 gconstpointer v_boxed);
6599 void g_value_set_static_boxed (GValue *value,
6600 gconstpointer v_boxed);
6601 gpointer g_value_get_boxed (const GValue *value);
6602 gpointer g_value_dup_boxed (const GValue *value);
6603
6604
6605
6606 GType g_boxed_type_register_static (const gchar *name,
6607 GBoxedCopyFunc boxed_copy,
6608 GBoxedFreeFunc boxed_free);
6609 # 69 "/usr/include/glib-2.0/gobject/gboxed.h"
6610 void g_value_take_boxed (GValue *value,
6611 gconstpointer v_boxed);
6612
6613 void g_value_set_boxed_take_ownership (GValue *value,
6614 gconstpointer v_boxed);
6615
6616 GType g_closure_get_type (void) __attribute__((__const__));
6617 GType g_value_get_type (void) __attribute__((__const__));
6618 GType g_value_array_get_type (void) __attribute__((__const__));
6619 GType g_date_get_type (void) __attribute__((__const__));
6620 GType g_strv_get_type (void) __attribute__((__const__));
6621 GType g_gstring_get_type (void) __attribute__((__const__));
6622 GType g_hash_table_get_type (void) __attribute__((__const__));
6623
6624 typedef gchar** GStrv;
6625 # 26 "/usr/include/glib-2.0/glib-object.h" 2
6626
6627 # 1 "/usr/include/glib-2.0/gobject/genums.h" 1
6628 # 26 "/usr/include/glib-2.0/gobject/genums.h"
6629
6630 # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1
6631 # 27 "/usr/include/glib-2.0/gobject/genums.h" 2
6632 # 46 "/usr/include/glib-2.0/gobject/genums.h"
6633 typedef struct _GEnumClass GEnumClass;
6634 typedef struct _GFlagsClass GFlagsClass;
6635 typedef struct _GEnumValue GEnumValue;
6636 typedef struct _GFlagsValue GFlagsValue;
6637 struct _GEnumClass
6638 {
6639 GTypeClass g_type_class;
6640
6641
6642 gint minimum;
6643 gint maximum;
6644 guint n_values;
6645 GEnumValue *values;
6646 };
6647 struct _GFlagsClass
6648 {
6649 GTypeClass g_type_class;
6650
6651
6652 guint mask;
6653 guint n_values;
6654 GFlagsValue *values;
6655 };
6656 struct _GEnumValue
6657 {
6658 gint value;
6659 gchar *value_name;
6660 gchar *value_nick;
6661 };
6662 struct _GFlagsValue
6663 {
6664 guint value;
6665 gchar *value_name;
6666 gchar *value_nick;
6667 };
6668
6669
6670
6671 GEnumValue* g_enum_get_value (GEnumClass *enum_class,
6672 gint value);
6673 GEnumValue* g_enum_get_value_by_name (GEnumClass *enum_class,
6674 const gchar *name);
6675 GEnumValue* g_enum_get_value_by_nick (GEnumClass *enum_class,
6676 const gchar *nick);
6677 GFlagsValue* g_flags_get_first_value (GFlagsClass *flags_class,
6678 guint value);
6679 GFlagsValue* g_flags_get_value_by_name (GFlagsClass *flags_class,
6680 const gchar *name);
6681 GFlagsValue* g_flags_get_value_by_nick (GFlagsClass *flags_class,
6682 const gchar *nick);
6683 void g_value_set_enum (GValue *value,
6684 gint v_enum);
6685 gint g_value_get_enum (const GValue *value);
6686 void g_value_set_flags (GValue *value,
6687 guint v_flags);
6688 guint g_value_get_flags (const GValue *value);
6689
6690
6691
6692
6693
6694
6695
6696 GType g_enum_register_static (const gchar *name,
6697 const GEnumValue *const_static_values);
6698 GType g_flags_register_static (const gchar *name,
6699 const GFlagsValue *const_static_values);
6700
6701
6702
6703 void g_enum_complete_type_info (GType g_enum_type,
6704 GTypeInfo *info,
6705 const GEnumValue *const_values);
6706 void g_flags_complete_type_info (GType g_flags_type,
6707 GTypeInfo *info,
6708 const GFlagsValue *const_values);
6709 # 27 "/usr/include/glib-2.0/glib-object.h" 2
6710
6711 # 1 "/usr/include/glib-2.0/gobject/gobject.h" 1
6712 # 26 "/usr/include/glib-2.0/gobject/gobject.h"
6713
6714 # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1
6715 # 27 "/usr/include/glib-2.0/gobject/gobject.h" 2
6716
6717 # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1
6718 # 28 "/usr/include/glib-2.0/gobject/gvalue.h"
6719
6720 # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1
6721 # 29 "/usr/include/glib-2.0/gobject/gvalue.h" 2
6722 # 41 "/usr/include/glib-2.0/gobject/gvalue.h"
6723 typedef void (*GValueTransform) (const GValue *src_value,
6724 GValue *dest_value);
6725 struct _GValue
6726 {
6727
6728 GType g_type;
6729
6730
6731 union {
6732 gint v_int;
6733 guint v_uint;
6734 glong v_long;
6735 gulong v_ulong;
6736 gint64 v_int64;
6737 guint64 v_uint64;
6738 gfloat v_float;
6739 gdouble v_double;
6740 gpointer v_pointer;
6741 } data[2];
6742 };
6743
6744
6745
6746 GValue* g_value_init (GValue *value,
6747 GType g_type);
6748 void g_value_copy (const GValue *src_value,
6749 GValue *dest_value);
6750 GValue* g_value_reset (GValue *value);
6751 void g_value_unset (GValue *value);
6752 void g_value_set_instance (GValue *value,
6753 gpointer instance);
6754
6755
6756
6757 gboolean g_value_fits_pointer (const GValue *value);
6758 gpointer g_value_peek_pointer (const GValue *value);
6759
6760
6761
6762 gboolean g_value_type_compatible (GType src_type,
6763 GType dest_type);
6764 gboolean g_value_type_transformable (GType src_type,
6765 GType dest_type);
6766 gboolean g_value_transform (const GValue *src_value,
6767 GValue *dest_value);
6768 void g_value_register_transform_func (GType src_type,
6769 GType dest_type,
6770 GValueTransform transform_func);
6771 # 28 "/usr/include/glib-2.0/gobject/gobject.h" 2
6772
6773 # 1 "/usr/include/glib-2.0/gobject/gparam.h" 1
6774 # 28 "/usr/include/glib-2.0/gobject/gparam.h"
6775
6776 # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1
6777 # 29 "/usr/include/glib-2.0/gobject/gparam.h" 2
6778 # 49 "/usr/include/glib-2.0/gobject/gparam.h"
6779 typedef enum
6780 {
6781 G_PARAM_READABLE = 1 << 0,
6782 G_PARAM_WRITABLE = 1 << 1,
6783 G_PARAM_CONSTRUCT = 1 << 2,
6784 G_PARAM_CONSTRUCT_ONLY = 1 << 3,
6785 G_PARAM_LAX_VALIDATION = 1 << 4,
6786 G_PARAM_STATIC_NAME = 1 << 5,
6787
6788 G_PARAM_PRIVATE = G_PARAM_STATIC_NAME,
6789
6790 G_PARAM_STATIC_NICK = 1 << 6,
6791 G_PARAM_STATIC_BLURB = 1 << 7
6792 } GParamFlags;
6793
6794
6795
6796
6797
6798
6799
6800 typedef struct _GParamSpec GParamSpec;
6801 typedef struct _GParamSpecClass GParamSpecClass;
6802 typedef struct _GParameter GParameter;
6803 typedef struct _GParamSpecPool GParamSpecPool;
6804 struct _GParamSpec
6805 {
6806 GTypeInstance g_type_instance;
6807
6808 gchar *name;
6809 GParamFlags flags;
6810 GType value_type;
6811 GType owner_type;
6812
6813
6814 gchar *_nick;
6815 gchar *_blurb;
6816 GData *qdata;
6817 guint ref_count;
6818 guint param_id;
6819 };
6820 struct _GParamSpecClass
6821 {
6822 GTypeClass g_type_class;
6823
6824 GType value_type;
6825
6826 void (*finalize) (GParamSpec *pspec);
6827
6828
6829 void (*value_set_default) (GParamSpec *pspec,
6830 GValue *value);
6831 gboolean (*value_validate) (GParamSpec *pspec,
6832 GValue *value);
6833 gint (*values_cmp) (GParamSpec *pspec,
6834 const GValue *value1,
6835 const GValue *value2);
6836
6837 gpointer dummy[4];
6838 };
6839 struct _GParameter
6840 {
6841 const gchar *name;
6842 GValue value;
6843 };
6844
6845
6846
6847 GParamSpec* g_param_spec_ref (GParamSpec *pspec);
6848 void g_param_spec_unref (GParamSpec *pspec);
6849 void g_param_spec_sink (GParamSpec *pspec);
6850 GParamSpec* g_param_spec_ref_sink (GParamSpec *pspec);
6851 gpointer g_param_spec_get_qdata (GParamSpec *pspec,
6852 GQuark quark);
6853 void g_param_spec_set_qdata (GParamSpec *pspec,
6854 GQuark quark,
6855 gpointer data);
6856 void g_param_spec_set_qdata_full (GParamSpec *pspec,
6857 GQuark quark,
6858 gpointer data,
6859 GDestroyNotify destroy);
6860 gpointer g_param_spec_steal_qdata (GParamSpec *pspec,
6861 GQuark quark);
6862 GParamSpec* g_param_spec_get_redirect_target (GParamSpec *pspec);
6863
6864 void g_param_value_set_default (GParamSpec *pspec,
6865 GValue *value);
6866 gboolean g_param_value_defaults (GParamSpec *pspec,
6867 GValue *value);
6868 gboolean g_param_value_validate (GParamSpec *pspec,
6869 GValue *value);
6870 gboolean g_param_value_convert (GParamSpec *pspec,
6871 const GValue *src_value,
6872 GValue *dest_value,
6873 gboolean strict_validation);
6874 gint g_param_values_cmp (GParamSpec *pspec,
6875 const GValue *value1,
6876 const GValue *value2);
6877 const gchar* g_param_spec_get_name (GParamSpec *pspec);
6878 const gchar* g_param_spec_get_nick (GParamSpec *pspec);
6879 const gchar* g_param_spec_get_blurb (GParamSpec *pspec);
6880 void g_value_set_param (GValue *value,
6881 GParamSpec *param);
6882 GParamSpec* g_value_get_param (const GValue *value);
6883 GParamSpec* g_value_dup_param (const GValue *value);
6884
6885
6886 void g_value_take_param (GValue *value,
6887 GParamSpec *param);
6888
6889 void g_value_set_param_take_ownership (GValue *value,
6890 GParamSpec *param);
6891
6892
6893
6894 typedef struct _GParamSpecTypeInfo GParamSpecTypeInfo;
6895 struct _GParamSpecTypeInfo
6896 {
6897
6898 guint16 instance_size;
6899 guint16 n_preallocs;
6900 void (*instance_init) (GParamSpec *pspec);
6901
6902
6903 GType value_type;
6904 void (*finalize) (GParamSpec *pspec);
6905 void (*value_set_default) (GParamSpec *pspec,
6906 GValue *value);
6907 gboolean (*value_validate) (GParamSpec *pspec,
6908 GValue *value);
6909 gint (*values_cmp) (GParamSpec *pspec,
6910 const GValue *value1,
6911 const GValue *value2);
6912 };
6913 GType g_param_type_register_static (const gchar *name,
6914 const GParamSpecTypeInfo *pspec_info);
6915
6916
6917 GType _g_param_type_register_static_constant (const gchar *name,
6918 const GParamSpecTypeInfo *pspec_info,
6919 GType opt_type);
6920
6921
6922
6923 gpointer g_param_spec_internal (GType param_type,
6924 const gchar *name,
6925 const gchar *nick,
6926 const gchar *blurb,
6927 GParamFlags flags);
6928 GParamSpecPool* g_param_spec_pool_new (gboolean type_prefixing);
6929 void g_param_spec_pool_insert (GParamSpecPool *pool,
6930 GParamSpec *pspec,
6931 GType owner_type);
6932 void g_param_spec_pool_remove (GParamSpecPool *pool,
6933 GParamSpec *pspec);
6934 GParamSpec* g_param_spec_pool_lookup (GParamSpecPool *pool,
6935 const gchar *param_name,
6936 GType owner_type,
6937 gboolean walk_ancestors);
6938 GList* g_param_spec_pool_list_owned (GParamSpecPool *pool,
6939 GType owner_type);
6940 GParamSpec** g_param_spec_pool_list (GParamSpecPool *pool,
6941 GType owner_type,
6942 guint *n_pspecs_p);
6943 # 232 "/usr/include/glib-2.0/gobject/gparam.h"
6944 # 29 "/usr/include/glib-2.0/gobject/gobject.h" 2
6945
6946 # 1 "/usr/include/glib-2.0/gobject/gclosure.h" 1
6947 # 27 "/usr/include/glib-2.0/gobject/gclosure.h"
6948
6949 # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1
6950 # 28 "/usr/include/glib-2.0/gobject/gclosure.h" 2
6951 # 40 "/usr/include/glib-2.0/gobject/gclosure.h"
6952 typedef struct _GClosure GClosure;
6953 typedef struct _GClosureNotifyData GClosureNotifyData;
6954 typedef void (*GCallback) (void);
6955 typedef void (*GClosureNotify) (gpointer data,
6956 GClosure *closure);
6957 typedef void (*GClosureMarshal) (GClosure *closure,
6958 GValue *return_value,
6959 guint n_param_values,
6960 const GValue *param_values,
6961 gpointer invocation_hint,
6962 gpointer marshal_data);
6963 typedef struct _GCClosure GCClosure;
6964
6965
6966
6967 struct _GClosureNotifyData
6968 {
6969 gpointer data;
6970 GClosureNotify notify;
6971 };
6972 struct _GClosure
6973 {
6974
6975 volatile guint ref_count : 15;
6976 volatile guint meta_marshal : 1;
6977 volatile guint n_guards : 1;
6978 volatile guint n_fnotifiers : 2;
6979 volatile guint n_inotifiers : 8;
6980 volatile guint in_inotify : 1;
6981 volatile guint floating : 1;
6982
6983 volatile guint derivative_flag : 1;
6984
6985 volatile guint in_marshal : 1;
6986 volatile guint is_invalid : 1;
6987
6988 void (*marshal) (GClosure *closure,
6989 GValue *return_value,
6990 guint n_param_values,
6991 const GValue *param_values,
6992 gpointer invocation_hint,
6993 gpointer marshal_data);
6994 gpointer data;
6995
6996 GClosureNotifyData *notifiers;
6997 # 96 "/usr/include/glib-2.0/gobject/gclosure.h"
6998 };
6999
7000
7001 struct _GCClosure
7002 {
7003 GClosure closure;
7004 gpointer callback;
7005 };
7006
7007
7008
7009 GClosure* g_cclosure_new (GCallback callback_func,
7010 gpointer user_data,
7011 GClosureNotify destroy_data);
7012 GClosure* g_cclosure_new_swap (GCallback callback_func,
7013 gpointer user_data,
7014 GClosureNotify destroy_data);
7015 GClosure* g_signal_type_cclosure_new (GType itype,
7016 guint struct_offset);
7017
7018
7019
7020 GClosure* g_closure_ref (GClosure *closure);
7021 void g_closure_sink (GClosure *closure);
7022 void g_closure_unref (GClosure *closure);
7023
7024 GClosure* g_closure_new_simple (guint sizeof_closure,
7025 gpointer data);
7026 void g_closure_add_finalize_notifier (GClosure *closure,
7027 gpointer notify_data,
7028 GClosureNotify notify_func);
7029 void g_closure_remove_finalize_notifier (GClosure *closure,
7030 gpointer notify_data,
7031 GClosureNotify notify_func);
7032 void g_closure_add_invalidate_notifier (GClosure *closure,
7033 gpointer notify_data,
7034 GClosureNotify notify_func);
7035 void g_closure_remove_invalidate_notifier (GClosure *closure,
7036 gpointer notify_data,
7037 GClosureNotify notify_func);
7038 void g_closure_add_marshal_guards (GClosure *closure,
7039 gpointer pre_marshal_data,
7040 GClosureNotify pre_marshal_notify,
7041 gpointer post_marshal_data,
7042 GClosureNotify post_marshal_notify);
7043 void g_closure_set_marshal (GClosure *closure,
7044 GClosureMarshal marshal);
7045 void g_closure_set_meta_marshal (GClosure *closure,
7046 gpointer marshal_data,
7047 GClosureMarshal meta_marshal);
7048 void g_closure_invalidate (GClosure *closure);
7049 void g_closure_invoke (GClosure *closure,
7050 GValue *return_value,
7051 guint n_param_values,
7052 const GValue *param_values,
7053 gpointer invocation_hint);
7054 # 164 "/usr/include/glib-2.0/gobject/gclosure.h"
7055 # 30 "/usr/include/glib-2.0/gobject/gobject.h" 2
7056
7057 # 1 "/usr/include/glib-2.0/gobject/gsignal.h" 1
7058 # 26 "/usr/include/glib-2.0/gobject/gsignal.h"
7059
7060 # 1 "/usr/include/glib-2.0/gobject/gclosure.h" 1
7061 # 27 "/usr/include/glib-2.0/gobject/gsignal.h" 2
7062
7063 # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1
7064 # 28 "/usr/include/glib-2.0/gobject/gsignal.h" 2
7065
7066 # 1 "/usr/include/glib-2.0/gobject/gparam.h" 1
7067 # 29 "/usr/include/glib-2.0/gobject/gsignal.h" 2
7068
7069 # 1 "/usr/include/glib-2.0/gobject/gmarshal.h" 1
7070
7071
7072
7073
7074
7075
7076 extern void g_cclosure_marshal_VOID__VOID (GClosure *closure,
7077 GValue *return_value,
7078 guint n_param_values,
7079 const GValue *param_values,
7080 gpointer invocation_hint,
7081 gpointer marshal_data);
7082
7083
7084 extern void g_cclosure_marshal_VOID__BOOLEAN (GClosure *closure,
7085 GValue *return_value,
7086 guint n_param_values,
7087 const GValue *param_values,
7088 gpointer invocation_hint,
7089 gpointer marshal_data);
7090
7091
7092 extern void g_cclosure_marshal_VOID__CHAR (GClosure *closure,
7093 GValue *return_value,
7094 guint n_param_values,
7095 const GValue *param_values,
7096 gpointer invocation_hint,
7097 gpointer marshal_data);
7098
7099
7100 extern void g_cclosure_marshal_VOID__UCHAR (GClosure *closure,
7101 GValue *return_value,
7102 guint n_param_values,
7103 const GValue *param_values,
7104 gpointer invocation_hint,
7105 gpointer marshal_data);
7106
7107
7108 extern void g_cclosure_marshal_VOID__INT (GClosure *closure,
7109 GValue *return_value,
7110 guint n_param_values,
7111 const GValue *param_values,
7112 gpointer invocation_hint,
7113 gpointer marshal_data);
7114
7115
7116 extern void g_cclosure_marshal_VOID__UINT (GClosure *closure,
7117 GValue *return_value,
7118 guint n_param_values,
7119 const GValue *param_values,
7120 gpointer invocation_hint,
7121 gpointer marshal_data);
7122
7123
7124 extern void g_cclosure_marshal_VOID__LONG (GClosure *closure,
7125 GValue *return_value,
7126 guint n_param_values,
7127 const GValue *param_values,
7128 gpointer invocation_hint,
7129 gpointer marshal_data);
7130
7131
7132 extern void g_cclosure_marshal_VOID__ULONG (GClosure *closure,
7133 GValue *return_value,
7134 guint n_param_values,
7135 const GValue *param_values,
7136 gpointer invocation_hint,
7137 gpointer marshal_data);
7138
7139
7140 extern void g_cclosure_marshal_VOID__ENUM (GClosure *closure,
7141 GValue *return_value,
7142 guint n_param_values,
7143 const GValue *param_values,
7144 gpointer invocation_hint,
7145 gpointer marshal_data);
7146
7147
7148 extern void g_cclosure_marshal_VOID__FLAGS (GClosure *closure,
7149 GValue *return_value,
7150 guint n_param_values,
7151 const GValue *param_values,
7152 gpointer invocation_hint,
7153 gpointer marshal_data);
7154
7155
7156 extern void g_cclosure_marshal_VOID__FLOAT (GClosure *closure,
7157 GValue *return_value,
7158 guint n_param_values,
7159 const GValue *param_values,
7160 gpointer invocation_hint,
7161 gpointer marshal_data);
7162
7163
7164 extern void g_cclosure_marshal_VOID__DOUBLE (GClosure *closure,
7165 GValue *return_value,
7166 guint n_param_values,
7167 const GValue *param_values,
7168 gpointer invocation_hint,
7169 gpointer marshal_data);
7170
7171
7172 extern void g_cclosure_marshal_VOID__STRING (GClosure *closure,
7173 GValue *return_value,
7174 guint n_param_values,
7175 const GValue *param_values,
7176 gpointer invocation_hint,
7177 gpointer marshal_data);
7178
7179
7180 extern void g_cclosure_marshal_VOID__PARAM (GClosure *closure,
7181 GValue *return_value,
7182 guint n_param_values,
7183 const GValue *param_values,
7184 gpointer invocation_hint,
7185 gpointer marshal_data);
7186
7187
7188 extern void g_cclosure_marshal_VOID__BOXED (GClosure *closure,
7189 GValue *return_value,
7190 guint n_param_values,
7191 const GValue *param_values,
7192 gpointer invocation_hint,
7193 gpointer marshal_data);
7194
7195
7196 extern void g_cclosure_marshal_VOID__POINTER (GClosure *closure,
7197 GValue *return_value,
7198 guint n_param_values,
7199 const GValue *param_values,
7200 gpointer invocation_hint,
7201 gpointer marshal_data);
7202
7203
7204 extern void g_cclosure_marshal_VOID__OBJECT (GClosure *closure,
7205 GValue *return_value,
7206 guint n_param_values,
7207 const GValue *param_values,
7208 gpointer invocation_hint,
7209 gpointer marshal_data);
7210
7211
7212 extern void g_cclosure_marshal_VOID__UINT_POINTER (GClosure *closure,
7213 GValue *return_value,
7214 guint n_param_values,
7215 const GValue *param_values,
7216 gpointer invocation_hint,
7217 gpointer marshal_data);
7218
7219
7220 extern void g_cclosure_marshal_BOOLEAN__FLAGS (GClosure *closure,
7221 GValue *return_value,
7222 guint n_param_values,
7223 const GValue *param_values,
7224 gpointer invocation_hint,
7225 gpointer marshal_data);
7226
7227
7228
7229 extern void g_cclosure_marshal_STRING__OBJECT_POINTER (GClosure *closure,
7230 GValue *return_value,
7231 guint n_param_values,
7232 const GValue *param_values,
7233 gpointer invocation_hint,
7234 gpointer marshal_data);
7235 # 30 "/usr/include/glib-2.0/gobject/gsignal.h" 2
7236
7237
7238
7239
7240 typedef struct _GSignalQuery GSignalQuery;
7241 typedef struct _GSignalInvocationHint GSignalInvocationHint;
7242 typedef GClosureMarshal GSignalCMarshaller;
7243 typedef gboolean (*GSignalEmissionHook) (GSignalInvocationHint *ihint,
7244 guint n_param_values,
7245 const GValue *param_values,
7246 gpointer data);
7247 typedef gboolean (*GSignalAccumulator) (GSignalInvocationHint *ihint,
7248 GValue *return_accu,
7249 const GValue *handler_return,
7250 gpointer data);
7251
7252
7253
7254 typedef enum
7255 {
7256 G_SIGNAL_RUN_FIRST = 1 << 0,
7257 G_SIGNAL_RUN_LAST = 1 << 1,
7258 G_SIGNAL_RUN_CLEANUP = 1 << 2,
7259 G_SIGNAL_NO_RECURSE = 1 << 3,
7260 G_SIGNAL_DETAILED = 1 << 4,
7261 G_SIGNAL_ACTION = 1 << 5,
7262 G_SIGNAL_NO_HOOKS = 1 << 6
7263 } GSignalFlags;
7264
7265 typedef enum
7266 {
7267 G_CONNECT_AFTER = 1 << 0,
7268 G_CONNECT_SWAPPED = 1 << 1
7269 } GConnectFlags;
7270 typedef enum
7271 {
7272 G_SIGNAL_MATCH_ID = 1 << 0,
7273 G_SIGNAL_MATCH_DETAIL = 1 << 1,
7274 G_SIGNAL_MATCH_CLOSURE = 1 << 2,
7275 G_SIGNAL_MATCH_FUNC = 1 << 3,
7276 G_SIGNAL_MATCH_DATA = 1 << 4,
7277 G_SIGNAL_MATCH_UNBLOCKED = 1 << 5
7278 } GSignalMatchType;
7279
7280
7281
7282
7283
7284 struct _GSignalInvocationHint
7285 {
7286 guint signal_id;
7287 GQuark detail;
7288 GSignalFlags run_type;
7289 };
7290 struct _GSignalQuery
7291 {
7292 guint signal_id;
7293 const gchar *signal_name;
7294 GType itype;
7295 GSignalFlags signal_flags;
7296 GType return_type;
7297 guint n_params;
7298 const GType *param_types;
7299 };
7300
7301
7302
7303 guint g_signal_newv (const gchar *signal_name,
7304 GType itype,
7305 GSignalFlags signal_flags,
7306 GClosure *class_closure,
7307 GSignalAccumulator accumulator,
7308 gpointer accu_data,
7309 GSignalCMarshaller c_marshaller,
7310 GType return_type,
7311 guint n_params,
7312 GType *param_types);
7313 guint g_signal_new_valist (const gchar *signal_name,
7314 GType itype,
7315 GSignalFlags signal_flags,
7316 GClosure *class_closure,
7317 GSignalAccumulator accumulator,
7318 gpointer accu_data,
7319 GSignalCMarshaller c_marshaller,
7320 GType return_type,
7321 guint n_params,
7322 va_list args);
7323 guint g_signal_new (const gchar *signal_name,
7324 GType itype,
7325 GSignalFlags signal_flags,
7326 guint class_offset,
7327 GSignalAccumulator accumulator,
7328 gpointer accu_data,
7329 GSignalCMarshaller c_marshaller,
7330 GType return_type,
7331 guint n_params,
7332 ...);
7333 void g_signal_emitv (const GValue *instance_and_params,
7334 guint signal_id,
7335 GQuark detail,
7336 GValue *return_value);
7337 void g_signal_emit_valist (gpointer instance,
7338 guint signal_id,
7339 GQuark detail,
7340 va_list var_args);
7341 void g_signal_emit (gpointer instance,
7342 guint signal_id,
7343 GQuark detail,
7344 ...);
7345 void g_signal_emit_by_name (gpointer instance,
7346 const gchar *detailed_signal,
7347 ...);
7348 guint g_signal_lookup (const gchar *name,
7349 GType itype);
7350 const gchar* g_signal_name (guint signal_id);
7351 void g_signal_query (guint signal_id,
7352 GSignalQuery *query);
7353 guint* g_signal_list_ids (GType itype,
7354 guint *n_ids);
7355 gboolean g_signal_parse_name (const gchar *detailed_signal,
7356 GType itype,
7357 guint *signal_id_p,
7358 GQuark *detail_p,
7359 gboolean force_detail_quark);
7360 GSignalInvocationHint* g_signal_get_invocation_hint (gpointer instance);
7361
7362
7363
7364 void g_signal_stop_emission (gpointer instance,
7365 guint signal_id,
7366 GQuark detail);
7367 void g_signal_stop_emission_by_name (gpointer instance,
7368 const gchar *detailed_signal);
7369 gulong g_signal_add_emission_hook (guint signal_id,
7370 GQuark detail,
7371 GSignalEmissionHook hook_func,
7372 gpointer hook_data,
7373 GDestroyNotify data_destroy);
7374 void g_signal_remove_emission_hook (guint signal_id,
7375 gulong hook_id);
7376
7377
7378
7379 gboolean g_signal_has_handler_pending (gpointer instance,
7380 guint signal_id,
7381 GQuark detail,
7382 gboolean may_be_blocked);
7383 gulong g_signal_connect_closure_by_id (gpointer instance,
7384 guint signal_id,
7385 GQuark detail,
7386 GClosure *closure,
7387 gboolean after);
7388 gulong g_signal_connect_closure (gpointer instance,
7389 const gchar *detailed_signal,
7390 GClosure *closure,
7391 gboolean after);
7392 gulong g_signal_connect_data (gpointer instance,
7393 const gchar *detailed_signal,
7394 GCallback c_handler,
7395 gpointer data,
7396 GClosureNotify destroy_data,
7397 GConnectFlags connect_flags);
7398 void g_signal_handler_block (gpointer instance,
7399 gulong handler_id);
7400 void g_signal_handler_unblock (gpointer instance,
7401 gulong handler_id);
7402 void g_signal_handler_disconnect (gpointer instance,
7403 gulong handler_id);
7404 gboolean g_signal_handler_is_connected (gpointer instance,
7405 gulong handler_id);
7406 gulong g_signal_handler_find (gpointer instance,
7407 GSignalMatchType mask,
7408 guint signal_id,
7409 GQuark detail,
7410 GClosure *closure,
7411 gpointer func,
7412 gpointer data);
7413 guint g_signal_handlers_block_matched (gpointer instance,
7414 GSignalMatchType mask,
7415 guint signal_id,
7416 GQuark detail,
7417 GClosure *closure,
7418 gpointer func,
7419 gpointer data);
7420 guint g_signal_handlers_unblock_matched (gpointer instance,
7421 GSignalMatchType mask,
7422 guint signal_id,
7423 GQuark detail,
7424 GClosure *closure,
7425 gpointer func,
7426 gpointer data);
7427 guint g_signal_handlers_disconnect_matched (gpointer instance,
7428 GSignalMatchType mask,
7429 guint signal_id,
7430 GQuark detail,
7431 GClosure *closure,
7432 gpointer func,
7433 gpointer data);
7434
7435
7436
7437 void g_signal_override_class_closure (guint signal_id,
7438 GType instance_type,
7439 GClosure *class_closure);
7440 void g_signal_chain_from_overridden (const GValue *instance_and_params,
7441 GValue *return_value);
7442 # 259 "/usr/include/glib-2.0/gobject/gsignal.h"
7443 gboolean g_signal_accumulator_true_handled (GSignalInvocationHint *ihint,
7444 GValue *return_accu,
7445 const GValue *handler_return,
7446 gpointer dummy);
7447
7448
7449 void g_signal_handlers_destroy (gpointer instance);
7450 void _g_signals_destroy (GType itype);
7451 # 31 "/usr/include/glib-2.0/gobject/gobject.h" 2
7452 # 58 "/usr/include/glib-2.0/gobject/gobject.h"
7453 typedef struct _GObject GObject;
7454 typedef struct _GObjectClass GObjectClass;
7455 typedef struct _GObject GInitiallyUnowned;
7456 typedef struct _GObjectClass GInitiallyUnownedClass;
7457 typedef struct _GObjectConstructParam GObjectConstructParam;
7458 typedef void (*GObjectGetPropertyFunc) (GObject *object,
7459 guint property_id,
7460 GValue *value,
7461 GParamSpec *pspec);
7462 typedef void (*GObjectSetPropertyFunc) (GObject *object,
7463 guint property_id,
7464 const GValue *value,
7465 GParamSpec *pspec);
7466 typedef void (*GObjectFinalizeFunc) (GObject *object);
7467 typedef void (*GWeakNotify) (gpointer data,
7468 GObject *where_the_object_was);
7469 struct _GObject
7470 {
7471 GTypeInstance g_type_instance;
7472
7473
7474 volatile guint ref_count;
7475 GData *qdata;
7476 };
7477 struct _GObjectClass
7478 {
7479 GTypeClass g_type_class;
7480
7481
7482 GSList *construct_properties;
7483
7484
7485
7486 GObject* (*constructor) (GType type,
7487 guint n_construct_properties,
7488 GObjectConstructParam *construct_properties);
7489 void (*set_property) (GObject *object,
7490 guint property_id,
7491 const GValue *value,
7492 GParamSpec *pspec);
7493 void (*get_property) (GObject *object,
7494 guint property_id,
7495 GValue *value,
7496 GParamSpec *pspec);
7497 void (*dispose) (GObject *object);
7498 void (*finalize) (GObject *object);
7499
7500
7501 void (*dispatch_properties_changed) (GObject *object,
7502 guint n_pspecs,
7503 GParamSpec **pspecs);
7504
7505
7506 void (*notify) (GObject *object,
7507 GParamSpec *pspec);
7508
7509
7510 gpointer pdummy[8];
7511 };
7512 struct _GObjectConstructParam
7513 {
7514 GParamSpec *pspec;
7515 GValue *value;
7516 };
7517
7518
7519
7520 GType g_initially_unowned_get_type (void);
7521 void g_object_class_install_property (GObjectClass *oclass,
7522 guint property_id,
7523 GParamSpec *pspec);
7524 GParamSpec* g_object_class_find_property (GObjectClass *oclass,
7525 const gchar *property_name);
7526 GParamSpec**g_object_class_list_properties (GObjectClass *oclass,
7527 guint *n_properties);
7528 void g_object_class_override_property (GObjectClass *oclass,
7529 guint property_id,
7530 const gchar *name);
7531
7532 void g_object_interface_install_property (gpointer g_iface,
7533 GParamSpec *pspec);
7534 GParamSpec* g_object_interface_find_property (gpointer g_iface,
7535 const gchar *property_name);
7536 GParamSpec**g_object_interface_list_properties (gpointer g_iface,
7537 guint *n_properties_p);
7538
7539 gpointer g_object_new (GType object_type,
7540 const gchar *first_property_name,
7541 ...);
7542 gpointer g_object_newv (GType object_type,
7543 guint n_parameters,
7544 GParameter *parameters);
7545 GObject* g_object_new_valist (GType object_type,
7546 const gchar *first_property_name,
7547 va_list var_args);
7548 void g_object_set (gpointer object,
7549 const gchar *first_property_name,
7550 ...) __attribute__((__sentinel__));
7551 void g_object_get (gpointer object,
7552 const gchar *first_property_name,
7553 ...) __attribute__((__sentinel__));
7554 gpointer g_object_connect (gpointer object,
7555 const gchar *signal_spec,
7556 ...) __attribute__((__sentinel__));
7557 void g_object_disconnect (gpointer object,
7558 const gchar *signal_spec,
7559 ...) __attribute__((__sentinel__));
7560 void g_object_set_valist (GObject *object,
7561 const gchar *first_property_name,
7562 va_list var_args);
7563 void g_object_get_valist (GObject *object,
7564 const gchar *first_property_name,
7565 va_list var_args);
7566 void g_object_set_property (GObject *object,
7567 const gchar *property_name,
7568 const GValue *value);
7569 void g_object_get_property (GObject *object,
7570 const gchar *property_name,
7571 GValue *value);
7572 void g_object_freeze_notify (GObject *object);
7573 void g_object_notify (GObject *object,
7574 const gchar *property_name);
7575 void g_object_thaw_notify (GObject *object);
7576 gboolean g_object_is_floating (gpointer object);
7577 gpointer g_object_ref_sink (gpointer object);
7578 gpointer g_object_ref (gpointer object);
7579 void g_object_unref (gpointer object);
7580 void g_object_weak_ref (GObject *object,
7581 GWeakNotify notify,
7582 gpointer data);
7583 void g_object_weak_unref (GObject *object,
7584 GWeakNotify notify,
7585 gpointer data);
7586 void g_object_add_weak_pointer (GObject *object,
7587 gpointer *weak_pointer_location);
7588 void g_object_remove_weak_pointer (GObject *object,
7589 gpointer *weak_pointer_location);
7590
7591 typedef void (*GToggleNotify) (gpointer data,
7592 GObject *object,
7593 gboolean is_last_ref);
7594
7595 void g_object_add_toggle_ref (GObject *object,
7596 GToggleNotify notify,
7597 gpointer data);
7598 void g_object_remove_toggle_ref (GObject *object,
7599 GToggleNotify notify,
7600 gpointer data);
7601
7602 gpointer g_object_get_qdata (GObject *object,
7603 GQuark quark);
7604 void g_object_set_qdata (GObject *object,
7605 GQuark quark,
7606 gpointer data);
7607 void g_object_set_qdata_full (GObject *object,
7608 GQuark quark,
7609 gpointer data,
7610 GDestroyNotify destroy);
7611 gpointer g_object_steal_qdata (GObject *object,
7612 GQuark quark);
7613 gpointer g_object_get_data (GObject *object,
7614 const gchar *key);
7615 void g_object_set_data (GObject *object,
7616 const gchar *key,
7617 gpointer data);
7618 void g_object_set_data_full (GObject *object,
7619 const gchar *key,
7620 gpointer data,
7621 GDestroyNotify destroy);
7622 gpointer g_object_steal_data (GObject *object,
7623 const gchar *key);
7624 void g_object_watch_closure (GObject *object,
7625 GClosure *closure);
7626 GClosure* g_cclosure_new_object (GCallback callback_func,
7627 GObject *object);
7628 GClosure* g_cclosure_new_object_swap (GCallback callback_func,
7629 GObject *object);
7630 GClosure* g_closure_new_object (guint sizeof_closure,
7631 GObject *object);
7632 void g_value_set_object (GValue *value,
7633 gpointer v_object);
7634 gpointer g_value_get_object (const GValue *value);
7635 GObject* g_value_dup_object (const GValue *value);
7636 gulong g_signal_connect_object (gpointer instance,
7637 const gchar *detailed_signal,
7638 GCallback c_handler,
7639 gpointer gobject,
7640 GConnectFlags connect_flags);
7641
7642
7643 void g_object_force_floating (GObject *object);
7644 void g_object_run_dispose (GObject *object);
7645
7646
7647 void g_value_take_object (GValue *value,
7648 gpointer v_object);
7649
7650 void g_value_set_object_take_ownership (GValue *value,
7651 gpointer v_object);
7652
7653
7654
7655 gsize g_object_compat_control (gsize what,
7656 gpointer data);
7657 # 281 "/usr/include/glib-2.0/gobject/gobject.h"
7658 # 28 "/usr/include/glib-2.0/glib-object.h" 2
7659
7660 # 1 "/usr/include/glib-2.0/gobject/gparam.h" 1
7661 # 29 "/usr/include/glib-2.0/glib-object.h" 2
7662
7663 # 1 "/usr/include/glib-2.0/gobject/gparamspecs.h" 1
7664 # 28 "/usr/include/glib-2.0/gobject/gparamspecs.h"
7665
7666 # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1
7667 # 29 "/usr/include/glib-2.0/gobject/gparamspecs.h" 2
7668
7669 # 1 "/usr/include/glib-2.0/gobject/genums.h" 1
7670 # 30 "/usr/include/glib-2.0/gobject/gparamspecs.h" 2
7671
7672 # 1 "/usr/include/glib-2.0/gobject/gboxed.h" 1
7673 # 31 "/usr/include/glib-2.0/gobject/gparamspecs.h" 2
7674
7675 # 1 "/usr/include/glib-2.0/gobject/gobject.h" 1
7676 # 32 "/usr/include/glib-2.0/gobject/gparamspecs.h" 2
7677 # 105 "/usr/include/glib-2.0/gobject/gparamspecs.h"
7678 typedef struct _GParamSpecChar GParamSpecChar;
7679 typedef struct _GParamSpecUChar GParamSpecUChar;
7680 typedef struct _GParamSpecBoolean GParamSpecBoolean;
7681 typedef struct _GParamSpecInt GParamSpecInt;
7682 typedef struct _GParamSpecUInt GParamSpecUInt;
7683 typedef struct _GParamSpecLong GParamSpecLong;
7684 typedef struct _GParamSpecULong GParamSpecULong;
7685 typedef struct _GParamSpecInt64 GParamSpecInt64;
7686 typedef struct _GParamSpecUInt64 GParamSpecUInt64;
7687 typedef struct _GParamSpecUnichar GParamSpecUnichar;
7688 typedef struct _GParamSpecEnum GParamSpecEnum;
7689 typedef struct _GParamSpecFlags GParamSpecFlags;
7690 typedef struct _GParamSpecFloat GParamSpecFloat;
7691 typedef struct _GParamSpecDouble GParamSpecDouble;
7692 typedef struct _GParamSpecString GParamSpecString;
7693 typedef struct _GParamSpecParam GParamSpecParam;
7694 typedef struct _GParamSpecBoxed GParamSpecBoxed;
7695 typedef struct _GParamSpecPointer GParamSpecPointer;
7696 typedef struct _GParamSpecValueArray GParamSpecValueArray;
7697 typedef struct _GParamSpecObject GParamSpecObject;
7698 typedef struct _GParamSpecOverride GParamSpecOverride;
7699 typedef struct _GParamSpecGType GParamSpecGType;
7700
7701 struct _GParamSpecChar
7702 {
7703 GParamSpec parent_instance;
7704
7705 gint8 minimum;
7706 gint8 maximum;
7707 gint8 default_value;
7708 };
7709 struct _GParamSpecUChar
7710 {
7711 GParamSpec parent_instance;
7712
7713 guint8 minimum;
7714 guint8 maximum;
7715 guint8 default_value;
7716 };
7717 struct _GParamSpecBoolean
7718 {
7719 GParamSpec parent_instance;
7720
7721 gboolean default_value;
7722 };
7723 struct _GParamSpecInt
7724 {
7725 GParamSpec parent_instance;
7726
7727 gint minimum;
7728 gint maximum;
7729 gint default_value;
7730 };
7731 struct _GParamSpecUInt
7732 {
7733 GParamSpec parent_instance;
7734
7735 guint minimum;
7736 guint maximum;
7737 guint default_value;
7738 };
7739 struct _GParamSpecLong
7740 {
7741 GParamSpec parent_instance;
7742
7743 glong minimum;
7744 glong maximum;
7745 glong default_value;
7746 };
7747 struct _GParamSpecULong
7748 {
7749 GParamSpec parent_instance;
7750
7751 gulong minimum;
7752 gulong maximum;
7753 gulong default_value;
7754 };
7755 struct _GParamSpecInt64
7756 {
7757 GParamSpec parent_instance;
7758
7759 gint64 minimum;
7760 gint64 maximum;
7761 gint64 default_value;
7762 };
7763 struct _GParamSpecUInt64
7764 {
7765 GParamSpec parent_instance;
7766
7767 guint64 minimum;
7768 guint64 maximum;
7769 guint64 default_value;
7770 };
7771 struct _GParamSpecUnichar
7772 {
7773 GParamSpec parent_instance;
7774
7775 gunichar default_value;
7776 };
7777 struct _GParamSpecEnum
7778 {
7779 GParamSpec parent_instance;
7780
7781 GEnumClass *enum_class;
7782 gint default_value;
7783 };
7784 struct _GParamSpecFlags
7785 {
7786 GParamSpec parent_instance;
7787
7788 GFlagsClass *flags_class;
7789 guint default_value;
7790 };
7791 struct _GParamSpecFloat
7792 {
7793 GParamSpec parent_instance;
7794
7795 gfloat minimum;
7796 gfloat maximum;
7797 gfloat default_value;
7798 gfloat epsilon;
7799 };
7800 struct _GParamSpecDouble
7801 {
7802 GParamSpec parent_instance;
7803
7804 gdouble minimum;
7805 gdouble maximum;
7806 gdouble default_value;
7807 gdouble epsilon;
7808 };
7809 struct _GParamSpecString
7810 {
7811 GParamSpec parent_instance;
7812
7813 gchar *default_value;
7814 gchar *cset_first;
7815 gchar *cset_nth;
7816 gchar substitutor;
7817 guint null_fold_if_empty : 1;
7818 guint ensure_non_null : 1;
7819 };
7820 struct _GParamSpecParam
7821 {
7822 GParamSpec parent_instance;
7823 };
7824 struct _GParamSpecBoxed
7825 {
7826 GParamSpec parent_instance;
7827 };
7828 struct _GParamSpecPointer
7829 {
7830 GParamSpec parent_instance;
7831 };
7832 struct _GParamSpecValueArray
7833 {
7834 GParamSpec parent_instance;
7835 GParamSpec *element_spec;
7836 guint fixed_n_elements;
7837 };
7838 struct _GParamSpecObject
7839 {
7840 GParamSpec parent_instance;
7841 };
7842 struct _GParamSpecOverride
7843 {
7844
7845 GParamSpec parent_instance;
7846 GParamSpec *overridden;
7847 };
7848 struct _GParamSpecGType
7849 {
7850 GParamSpec parent_instance;
7851 GType is_a_type;
7852 };
7853
7854
7855 GParamSpec* g_param_spec_char (const gchar *name,
7856 const gchar *nick,
7857 const gchar *blurb,
7858 gint8 minimum,
7859 gint8 maximum,
7860 gint8 default_value,
7861 GParamFlags flags);
7862 GParamSpec* g_param_spec_uchar (const gchar *name,
7863 const gchar *nick,
7864 const gchar *blurb,
7865 guint8 minimum,
7866 guint8 maximum,
7867 guint8 default_value,
7868 GParamFlags flags);
7869 GParamSpec* g_param_spec_boolean (const gchar *name,
7870 const gchar *nick,
7871 const gchar *blurb,
7872 gboolean default_value,
7873 GParamFlags flags);
7874 GParamSpec* g_param_spec_int (const gchar *name,
7875 const gchar *nick,
7876 const gchar *blurb,
7877 gint minimum,
7878 gint maximum,
7879 gint default_value,
7880 GParamFlags flags);
7881 GParamSpec* g_param_spec_uint (const gchar *name,
7882 const gchar *nick,
7883 const gchar *blurb,
7884 guint minimum,
7885 guint maximum,
7886 guint default_value,
7887 GParamFlags flags);
7888 GParamSpec* g_param_spec_long (const gchar *name,
7889 const gchar *nick,
7890 const gchar *blurb,
7891 glong minimum,
7892 glong maximum,
7893 glong default_value,
7894 GParamFlags flags);
7895 GParamSpec* g_param_spec_ulong (const gchar *name,
7896 const gchar *nick,
7897 const gchar *blurb,
7898 gulong minimum,
7899 gulong maximum,
7900 gulong default_value,
7901 GParamFlags flags);
7902 GParamSpec* g_param_spec_int64 (const gchar *name,
7903 const gchar *nick,
7904 const gchar *blurb,
7905 gint64 minimum,
7906 gint64 maximum,
7907 gint64 default_value,
7908 GParamFlags flags);
7909 GParamSpec* g_param_spec_uint64 (const gchar *name,
7910 const gchar *nick,
7911 const gchar *blurb,
7912 guint64 minimum,
7913 guint64 maximum,
7914 guint64 default_value,
7915 GParamFlags flags);
7916 GParamSpec* g_param_spec_unichar (const gchar *name,
7917 const gchar *nick,
7918 const gchar *blurb,
7919 gunichar default_value,
7920 GParamFlags flags);
7921 GParamSpec* g_param_spec_enum (const gchar *name,
7922 const gchar *nick,
7923 const gchar *blurb,
7924 GType enum_type,
7925 gint default_value,
7926 GParamFlags flags);
7927 GParamSpec* g_param_spec_flags (const gchar *name,
7928 const gchar *nick,
7929 const gchar *blurb,
7930 GType flags_type,
7931 guint default_value,
7932 GParamFlags flags);
7933 GParamSpec* g_param_spec_float (const gchar *name,
7934 const gchar *nick,
7935 const gchar *blurb,
7936 gfloat minimum,
7937 gfloat maximum,
7938 gfloat default_value,
7939 GParamFlags flags);
7940 GParamSpec* g_param_spec_double (const gchar *name,
7941 const gchar *nick,
7942 const gchar *blurb,
7943 gdouble minimum,
7944 gdouble maximum,
7945 gdouble default_value,
7946 GParamFlags flags);
7947 GParamSpec* g_param_spec_string (const gchar *name,
7948 const gchar *nick,
7949 const gchar *blurb,
7950 const gchar *default_value,
7951 GParamFlags flags);
7952 GParamSpec* g_param_spec_param (const gchar *name,
7953 const gchar *nick,
7954 const gchar *blurb,
7955 GType param_type,
7956 GParamFlags flags);
7957 GParamSpec* g_param_spec_boxed (const gchar *name,
7958 const gchar *nick,
7959 const gchar *blurb,
7960 GType boxed_type,
7961 GParamFlags flags);
7962 GParamSpec* g_param_spec_pointer (const gchar *name,
7963 const gchar *nick,
7964 const gchar *blurb,
7965 GParamFlags flags);
7966 GParamSpec* g_param_spec_value_array (const gchar *name,
7967 const gchar *nick,
7968 const gchar *blurb,
7969 GParamSpec *element_spec,
7970 GParamFlags flags);
7971 GParamSpec* g_param_spec_object (const gchar *name,
7972 const gchar *nick,
7973 const gchar *blurb,
7974 GType object_type,
7975 GParamFlags flags);
7976 GParamSpec* g_param_spec_override (const gchar *name,
7977 GParamSpec *overridden);
7978 GParamSpec* g_param_spec_gtype (const gchar *name,
7979 const gchar *nick,
7980 const gchar *blurb,
7981 GType is_a_type,
7982 GParamFlags flags);
7983 # 435 "/usr/include/glib-2.0/gobject/gparamspecs.h"
7984 extern GType *g_param_spec_types;
7985 # 30 "/usr/include/glib-2.0/glib-object.h" 2
7986
7987 # 1 "/usr/include/glib-2.0/gobject/gsignal.h" 1
7988 # 31 "/usr/include/glib-2.0/glib-object.h" 2
7989
7990 # 1 "/usr/include/glib-2.0/gobject/gsourceclosure.h" 1
7991 # 26 "/usr/include/glib-2.0/gobject/gsourceclosure.h"
7992
7993 # 1 "/usr/include/glib-2.0/gobject/gclosure.h" 1
7994 # 27 "/usr/include/glib-2.0/gobject/gsourceclosure.h" 2
7995
7996
7997
7998 void g_source_set_closure (GSource *source,
7999 GClosure *closure);
8000
8001 GType g_io_channel_get_type (void);
8002 GType g_io_condition_get_type (void);
8003 # 32 "/usr/include/glib-2.0/glib-object.h" 2
8004
8005 # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1
8006 # 33 "/usr/include/glib-2.0/glib-object.h" 2
8007
8008 # 1 "/usr/include/glib-2.0/gobject/gtypemodule.h" 1
8009 # 26 "/usr/include/glib-2.0/gobject/gtypemodule.h"
8010
8011 # 1 "/usr/include/glib-2.0/gobject/gobject.h" 1
8012 # 27 "/usr/include/glib-2.0/gobject/gtypemodule.h" 2
8013
8014 # 1 "/usr/include/glib-2.0/gobject/genums.h" 1
8015 # 28 "/usr/include/glib-2.0/gobject/gtypemodule.h" 2
8016
8017
8018
8019 typedef struct _GTypeModule GTypeModule;
8020 typedef struct _GTypeModuleClass GTypeModuleClass;
8021 # 41 "/usr/include/glib-2.0/gobject/gtypemodule.h"
8022 struct _GTypeModule
8023 {
8024 GObject parent_instance;
8025
8026 guint use_count;
8027 GSList *type_infos;
8028 GSList *interface_infos;
8029
8030
8031 gchar *name;
8032 };
8033
8034 struct _GTypeModuleClass
8035 {
8036 GObjectClass parent_class;
8037
8038
8039 gboolean (* load) (GTypeModule *module);
8040 void (* unload) (GTypeModule *module);
8041
8042
8043
8044 void (*reserved1) (void);
8045 void (*reserved2) (void);
8046 void (*reserved3) (void);
8047 void (*reserved4) (void);
8048 };
8049
8050 GType g_type_module_get_type (void) __attribute__((__const__));
8051 gboolean g_type_module_use (GTypeModule *module);
8052 void g_type_module_unuse (GTypeModule *module);
8053 void g_type_module_set_name (GTypeModule *module,
8054 const gchar *name);
8055 GType g_type_module_register_type (GTypeModule *module,
8056 GType parent_type,
8057 const gchar *type_name,
8058 const GTypeInfo *type_info,
8059 GTypeFlags flags);
8060 void g_type_module_add_interface (GTypeModule *module,
8061 GType instance_type,
8062 GType interface_type,
8063 const GInterfaceInfo *interface_info);
8064 GType g_type_module_register_enum (GTypeModule *module,
8065 const gchar *name,
8066 const GEnumValue *const_static_values);
8067 GType g_type_module_register_flags (GTypeModule *module,
8068 const gchar *name,
8069 const GFlagsValue *const_static_values);
8070 # 34 "/usr/include/glib-2.0/glib-object.h" 2
8071
8072 # 1 "/usr/include/glib-2.0/gobject/gtypeplugin.h" 1
8073 # 26 "/usr/include/glib-2.0/gobject/gtypeplugin.h"
8074
8075 # 1 "/usr/include/glib-2.0/gobject/gtype.h" 1
8076 # 27 "/usr/include/glib-2.0/gobject/gtypeplugin.h" 2
8077 # 40 "/usr/include/glib-2.0/gobject/gtypeplugin.h"
8078 typedef struct _GTypePluginClass GTypePluginClass;
8079 typedef void (*GTypePluginUse) (GTypePlugin *plugin);
8080 typedef void (*GTypePluginUnuse) (GTypePlugin *plugin);
8081 typedef void (*GTypePluginCompleteTypeInfo) (GTypePlugin *plugin,
8082 GType g_type,
8083 GTypeInfo *info,
8084 GTypeValueTable *value_table);
8085 typedef void (*GTypePluginCompleteInterfaceInfo) (GTypePlugin *plugin,
8086 GType instance_type,
8087 GType interface_type,
8088 GInterfaceInfo *info);
8089 struct _GTypePluginClass
8090 {
8091
8092 GTypeInterface base_iface;
8093
8094
8095 GTypePluginUse use_plugin;
8096 GTypePluginUnuse unuse_plugin;
8097 GTypePluginCompleteTypeInfo complete_type_info;
8098 GTypePluginCompleteInterfaceInfo complete_interface_info;
8099 };
8100
8101
8102
8103 GType g_type_plugin_get_type (void) __attribute__((__const__));
8104 void g_type_plugin_use (GTypePlugin *plugin);
8105 void g_type_plugin_unuse (GTypePlugin *plugin);
8106 void g_type_plugin_complete_type_info (GTypePlugin *plugin,
8107 GType g_type,
8108 GTypeInfo *info,
8109 GTypeValueTable *value_table);
8110 void g_type_plugin_complete_interface_info (GTypePlugin *plugin,
8111 GType instance_type,
8112 GType interface_type,
8113 GInterfaceInfo *info);
8114 # 35 "/usr/include/glib-2.0/glib-object.h" 2
8115
8116 # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1
8117 # 36 "/usr/include/glib-2.0/glib-object.h" 2
8118
8119 # 1 "/usr/include/glib-2.0/gobject/gvaluearray.h" 1
8120 # 28 "/usr/include/glib-2.0/gobject/gvaluearray.h"
8121
8122 # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1
8123 # 29 "/usr/include/glib-2.0/gobject/gvaluearray.h" 2
8124
8125
8126
8127
8128
8129
8130 typedef struct _GValueArray GValueArray;
8131 struct _GValueArray
8132 {
8133 guint n_values;
8134 GValue *values;
8135
8136
8137 guint n_prealloced;
8138 };
8139
8140
8141
8142 GValue* g_value_array_get_nth (GValueArray *value_array,
8143 guint index_);
8144 GValueArray* g_value_array_new (guint n_prealloced);
8145 void g_value_array_free (GValueArray *value_array);
8146 GValueArray* g_value_array_copy (const GValueArray *value_array);
8147 GValueArray* g_value_array_prepend (GValueArray *value_array,
8148 const GValue *value);
8149 GValueArray* g_value_array_append (GValueArray *value_array,
8150 const GValue *value);
8151 GValueArray* g_value_array_insert (GValueArray *value_array,
8152 guint index_,
8153 const GValue *value);
8154 GValueArray* g_value_array_remove (GValueArray *value_array,
8155 guint index_);
8156 GValueArray* g_value_array_sort (GValueArray *value_array,
8157 GCompareFunc compare_func);
8158 GValueArray* g_value_array_sort_with_data (GValueArray *value_array,
8159 GCompareDataFunc compare_func,
8160 gpointer user_data);
8161 # 37 "/usr/include/glib-2.0/glib-object.h" 2
8162
8163 # 1 "/usr/include/glib-2.0/gobject/gvaluetypes.h" 1
8164 # 28 "/usr/include/glib-2.0/gobject/gvaluetypes.h"
8165
8166 # 1 "/usr/include/glib-2.0/gobject/gvalue.h" 1
8167 # 29 "/usr/include/glib-2.0/gobject/gvaluetypes.h" 2
8168 # 51 "/usr/include/glib-2.0/gobject/gvaluetypes.h"
8169 void g_value_set_char (GValue *value,
8170 gchar v_char);
8171 gchar g_value_get_char (const GValue *value);
8172 void g_value_set_uchar (GValue *value,
8173 guchar v_uchar);
8174 guchar g_value_get_uchar (const GValue *value);
8175 void g_value_set_boolean (GValue *value,
8176 gboolean v_boolean);
8177 gboolean g_value_get_boolean (const GValue *value);
8178 void g_value_set_int (GValue *value,
8179 gint v_int);
8180 gint g_value_get_int (const GValue *value);
8181 void g_value_set_uint (GValue *value,
8182 guint v_uint);
8183 guint g_value_get_uint (const GValue *value);
8184 void g_value_set_long (GValue *value,
8185 glong v_long);
8186 glong g_value_get_long (const GValue *value);
8187 void g_value_set_ulong (GValue *value,
8188 gulong v_ulong);
8189 gulong g_value_get_ulong (const GValue *value);
8190 void g_value_set_int64 (GValue *value,
8191 gint64 v_int64);
8192 gint64 g_value_get_int64 (const GValue *value);
8193 void g_value_set_uint64 (GValue *value,
8194 guint64 v_uint64);
8195 guint64 g_value_get_uint64 (const GValue *value);
8196 void g_value_set_float (GValue *value,
8197 gfloat v_float);
8198 gfloat g_value_get_float (const GValue *value);
8199 void g_value_set_double (GValue *value,
8200 gdouble v_double);
8201 gdouble g_value_get_double (const GValue *value);
8202 void g_value_set_string (GValue *value,
8203 const gchar *v_string);
8204 void g_value_set_static_string (GValue *value,
8205 const gchar *v_string);
8206 const gchar* g_value_get_string (const GValue *value);
8207 gchar* g_value_dup_string (const GValue *value);
8208 void g_value_set_pointer (GValue *value,
8209 gpointer v_pointer);
8210 gpointer g_value_get_pointer (const GValue *value);
8211 GType g_gtype_get_type (void);
8212 void g_value_set_gtype (GValue *value,
8213 GType v_gtype);
8214 GType g_value_get_gtype (const GValue *value);
8215
8216
8217
8218 GType g_pointer_type_register_static (const gchar *name);
8219
8220
8221 gchar* g_strdup_value_contents (const GValue *value);
8222
8223
8224 void g_value_take_string (GValue *value,
8225 gchar *v_string);
8226
8227 void g_value_set_string_take_ownership (GValue *value,
8228 gchar *v_string);
8229
8230
8231
8232
8233 typedef gchar* gchararray;
8234 # 38 "/usr/include/glib-2.0/glib-object.h" 2
8235 # 26 "../../libgimp/gimp.h" 2
8236
8237
8238 # 1 "../../libgimpcolor/gimpcolor.h" 1
8239 # 24 "../../libgimpcolor/gimpcolor.h"
8240
8241 # 1 "../../libgimpcolor/gimpcolortypes.h" 1
8242 # 23 "../../libgimpcolor/gimpcolortypes.h"
8243 # 32 "../../libgimpcolor/gimpcolortypes.h"
8244 typedef struct _GimpRGB GimpRGB;
8245 typedef struct _GimpHSV GimpHSV;
8246 typedef struct _GimpHSL GimpHSL;
8247 typedef struct _GimpCMYK GimpCMYK;
8248
8249 struct _GimpRGB
8250 {
8251 gdouble r, g, b, a;
8252 };
8253
8254 struct _GimpHSV
8255 {
8256 gdouble h, s, v, a;
8257 };
8258
8259 struct _GimpHSL
8260 {
8261 gdouble h, s, l, a;
8262 };
8263
8264 struct _GimpCMYK
8265 {
8266 gdouble c, m, y, k, a;
8267 };
8268
8269
8270 typedef void (* GimpRenderFunc) (gdouble x,
8271 gdouble y,
8272 GimpRGB *color,
8273 gpointer data);
8274 typedef void (* GimpPutPixelFunc) (gint x,
8275 gint y,
8276 GimpRGB *color,
8277 gpointer data);
8278 typedef void (* GimpProgressFunc) (gint min,
8279 gint max,
8280 gint current,
8281 gpointer data);
8282 # 25 "../../libgimpcolor/gimpcolor.h" 2
8283
8284
8285 # 1 "../../libgimpcolor/gimpadaptivesupersample.h" 1
8286 # 23 "../../libgimpcolor/gimpadaptivesupersample.h"
8287 # 31 "../../libgimpcolor/gimpadaptivesupersample.h"
8288 gulong gimp_adaptive_supersample_area (gint x1,
8289 gint y1,
8290 gint x2,
8291 gint y2,
8292 gint max_depth,
8293 gdouble threshold,
8294 GimpRenderFunc render_func,
8295 gpointer render_data,
8296 GimpPutPixelFunc put_pixel_func,
8297 gpointer put_pixel_data,
8298 GimpProgressFunc progress_func,
8299 gpointer progress_data);
8300 # 27 "../../libgimpcolor/gimpcolor.h" 2
8301
8302 # 1 "../../libgimpcolor/gimpbilinear.h" 1
8303 # 23 "../../libgimpcolor/gimpbilinear.h"
8304 # 31 "../../libgimpcolor/gimpbilinear.h"
8305 gdouble gimp_bilinear (gdouble x,
8306 gdouble y,
8307 gdouble *values);
8308 guchar gimp_bilinear_8 (gdouble x,
8309 gdouble y,
8310 guchar *values);
8311 guint16 gimp_bilinear_16 (gdouble x,
8312 gdouble y,
8313 guint16 *values);
8314 guint32 gimp_bilinear_32 (gdouble x,
8315 gdouble y,
8316 guint32 *values);
8317 GimpRGB gimp_bilinear_rgb (gdouble x,
8318 gdouble y,
8319 GimpRGB *values);
8320 GimpRGB gimp_bilinear_rgba (gdouble x,
8321 gdouble y,
8322 GimpRGB *values);
8323 void gimp_bilinear_pixels_8 (guchar *dest,
8324 gdouble x,
8325 gdouble y,
8326 guint bpp,
8327 gboolean has_alpha,
8328 guchar **values);
8329 # 28 "../../libgimpcolor/gimpcolor.h" 2
8330
8331 # 1 "../../libgimpcolor/gimpcolorspace.h" 1
8332 # 23 "../../libgimpcolor/gimpcolorspace.h"
8333 # 33 "../../libgimpcolor/gimpcolorspace.h"
8334 void gimp_rgb_to_hsv (const GimpRGB *rgb,
8335 GimpHSV *hsv);
8336 void gimp_rgb_to_hsl (const GimpRGB *rgb,
8337 GimpHSL *hsl);
8338 void gimp_rgb_to_cmyk (const GimpRGB *rgb,
8339 gdouble pullout,
8340 GimpCMYK *cmyk);
8341
8342 void gimp_hsv_to_rgb (const GimpHSV *hsv,
8343 GimpRGB *rgb);
8344 void gimp_hsl_to_rgb (const GimpHSL *hsl,
8345 GimpRGB *rgb);
8346 void gimp_cmyk_to_rgb (const GimpCMYK *cmyk,
8347 GimpRGB *rgb);
8348
8349 void gimp_rgb_to_hwb (const GimpRGB *rgb,
8350 gdouble *hue,
8351 gdouble *whiteness,
8352 gdouble *blackness);
8353 void gimp_hwb_to_rgb (gdouble hue,
8354 gdouble whiteness,
8355 gdouble blackness,
8356 GimpRGB *rgb);
8357
8358
8359
8360
8361 void gimp_rgb_to_hsv_int (gint *red ,
8362 gint *green ,
8363 gint *blue );
8364 void gimp_hsv_to_rgb_int (gint *hue ,
8365 gint *saturation ,
8366 gint *value );
8367
8368 void gimp_rgb_to_cmyk_int (gint *red ,
8369 gint *green ,
8370 gint *blue ,
8371 gint *pullout );
8372 void gimp_cmyk_to_rgb_int (gint *cyan ,
8373 gint *magenta ,
8374 gint *yellow ,
8375 gint *black );
8376
8377 void gimp_rgb_to_hsl_int (gint *red ,
8378 gint *green ,
8379 gint *blue );
8380 gint gimp_rgb_to_l_int (gint red,
8381 gint green,
8382 gint blue);
8383 void gimp_hsl_to_rgb_int (gint *hue ,
8384 gint *saturation ,
8385 gint *lightness );
8386
8387
8388
8389
8390 void gimp_rgb_to_hsv4 (guchar *rgb,
8391 gdouble *hue,
8392 gdouble *saturation,
8393 gdouble *value);
8394 void gimp_hsv_to_rgb4 (guchar *rgb,
8395 gdouble hue,
8396 gdouble saturation,
8397 gdouble value);
8398 # 29 "../../libgimpcolor/gimpcolor.h" 2
8399
8400 # 1 "../../libgimpcolor/gimpcmyk.h" 1
8401 # 23 "../../libgimpcolor/gimpcmyk.h"
8402
8403
8404
8405
8406
8407
8408 void gimp_cmyk_set (GimpCMYK *cmyk,
8409 gdouble cyan,
8410 gdouble magenta,
8411 gdouble yellow,
8412 gdouble black);
8413 void gimp_cmyk_set_uchar (GimpCMYK *cmyk,
8414 guchar cyan,
8415 guchar magenta,
8416 guchar yellow,
8417 guchar black);
8418 void gimp_cmyk_get_uchar (const GimpCMYK *cmyk,
8419 guchar *cyan,
8420 guchar *magenta,
8421 guchar *yellow,
8422 guchar *black);
8423
8424 void gimp_cmyka_set (GimpCMYK *cmyka,
8425 gdouble cyan,
8426 gdouble magenta,
8427 gdouble yellow,
8428 gdouble black,
8429 gdouble alpha);
8430 void gimp_cmyka_set_uchar (GimpCMYK *cmyka,
8431 guchar cyan,
8432 guchar magenta,
8433 guchar yellow,
8434 guchar black,
8435 guchar alpha);
8436 void gimp_cmyka_get_uchar (const GimpCMYK *cmyka,
8437 guchar *cyan,
8438 guchar *magenta,
8439 guchar *yellow,
8440 guchar *black,
8441 guchar *alpha);
8442 # 30 "../../libgimpcolor/gimpcolor.h" 2
8443
8444 # 1 "../../libgimpcolor/gimphsv.h" 1
8445 # 23 "../../libgimpcolor/gimphsv.h"
8446
8447
8448
8449
8450
8451 void gimp_hsv_set (GimpHSV *hsv,
8452 gdouble hue,
8453 gdouble saturation,
8454 gdouble value);
8455 void gimp_hsv_clamp (GimpHSV *hsv);
8456
8457 void gimp_hsva_set (GimpHSV *hsva,
8458 gdouble hue,
8459 gdouble saturation,
8460 gdouble value,
8461 gdouble alpha);
8462 # 31 "../../libgimpcolor/gimpcolor.h" 2
8463
8464 # 1 "../../libgimpcolor/gimprgb.h" 1
8465 # 23 "../../libgimpcolor/gimprgb.h"
8466 # 31 "../../libgimpcolor/gimprgb.h"
8467 GType gimp_rgb_get_type (void) __attribute__((__const__));
8468
8469
8470
8471
8472 typedef enum
8473 {
8474 GIMP_RGB_COMPOSITE_NONE = 0,
8475 GIMP_RGB_COMPOSITE_NORMAL,
8476 GIMP_RGB_COMPOSITE_BEHIND
8477 } GimpRGBCompositeMode;
8478
8479
8480 void gimp_rgb_set (GimpRGB *rgb,
8481 gdouble red,
8482 gdouble green,
8483 gdouble blue);
8484 void gimp_rgb_set_alpha (GimpRGB *rgb,
8485 gdouble alpha);
8486
8487 void gimp_rgb_set_uchar (GimpRGB *rgb,
8488 guchar red,
8489 guchar green,
8490 guchar blue);
8491 void gimp_rgb_get_uchar (const GimpRGB *rgb,
8492 guchar *red,
8493 guchar *green,
8494 guchar *blue);
8495
8496 gboolean gimp_rgb_parse_name (GimpRGB *rgb,
8497 const gchar *name,
8498 gint len);
8499 gboolean gimp_rgb_parse_hex (GimpRGB *rgb,
8500 const gchar *hex,
8501 gint len);
8502 gboolean gimp_rgb_parse_css (GimpRGB *rgb,
8503 const gchar *css,
8504 gint len);
8505
8506 void gimp_rgb_add (GimpRGB *rgb1,
8507 const GimpRGB *rgb2);
8508 void gimp_rgb_subtract (GimpRGB *rgb1,
8509 const GimpRGB *rgb2);
8510 void gimp_rgb_multiply (GimpRGB *rgb1,
8511 gdouble factor);
8512 gdouble gimp_rgb_distance (const GimpRGB *rgb1,
8513 const GimpRGB *rgb2);
8514
8515 gdouble gimp_rgb_max (const GimpRGB *rgb);
8516 gdouble gimp_rgb_min (const GimpRGB *rgb);
8517 void gimp_rgb_clamp (GimpRGB *rgb);
8518
8519 void gimp_rgb_gamma (GimpRGB *rgb,
8520 gdouble gamma);
8521
8522 gdouble gimp_rgb_intensity (const GimpRGB *rgb);
8523 guchar gimp_rgb_intensity_uchar (const GimpRGB *rgb);
8524
8525 void gimp_rgb_composite (GimpRGB *color1,
8526 const GimpRGB *color2,
8527 GimpRGBCompositeMode mode);
8528
8529
8530 gint gimp_rgb_list_names (const gchar ***names,
8531 GimpRGB **colors);
8532
8533
8534 void gimp_rgba_set (GimpRGB *rgba,
8535 gdouble red,
8536 gdouble green,
8537 gdouble blue,
8538 gdouble alpha);
8539
8540 void gimp_rgba_set_uchar (GimpRGB *rgba,
8541 guchar red,
8542 guchar green,
8543 guchar blue,
8544 guchar alpha);
8545 void gimp_rgba_get_uchar (const GimpRGB *rgba,
8546 guchar *red,
8547 guchar *green,
8548 guchar *blue,
8549 guchar *alpha);
8550
8551 gboolean gimp_rgba_parse_css (GimpRGB *rgba,
8552 const gchar *css,
8553 gint len);
8554
8555 void gimp_rgba_add (GimpRGB *rgba1,
8556 const GimpRGB *rgba2);
8557 void gimp_rgba_subtract (GimpRGB *rgba1,
8558 const GimpRGB *rgba2);
8559 void gimp_rgba_multiply (GimpRGB *rgba,
8560 gdouble factor);
8561
8562 gdouble gimp_rgba_distance (const GimpRGB *rgba1,
8563 const GimpRGB *rgba2);
8564 # 141 "../../libgimpcolor/gimprgb.h"
8565 # 32 "../../libgimpcolor/gimpcolor.h" 2
8566 # 28 "../../libgimp/gimp.h" 2
8567
8568 # 1 "../../libgimpmath/gimpmath.h" 1
8569 # 25 "../../libgimpmath/gimpmath.h"
8570
8571 # 1 "/usr/include/math.h" 1 3 4
8572 # 30 "/usr/include/math.h" 3 4
8573
8574
8575
8576
8577
8578 # 1 "/usr/include/bits/huge_val.h" 1 3 4
8579 # 35 "/usr/include/math.h" 2 3 4
8580 # 47 "/usr/include/math.h" 3 4
8581
8582 # 1 "/usr/include/bits/mathdef.h" 1 3 4
8583 # 48 "/usr/include/math.h" 2 3 4
8584 # 71 "/usr/include/math.h" 3 4
8585
8586 # 1 "/usr/include/bits/mathcalls.h" 1 3 4
8587 # 53 "/usr/include/bits/mathcalls.h" 3 4
8588
8589
8590 extern double acos (double __x) __attribute__ ((__nothrow__)); extern double __acos (double __x) __attribute__ ((__nothrow__));
8591
8592 extern double asin (double __x) __attribute__ ((__nothrow__)); extern double __asin (double __x) __attribute__ ((__nothrow__));
8593
8594 extern double atan (double __x) __attribute__ ((__nothrow__)); extern double __atan (double __x) __attribute__ ((__nothrow__));
8595
8596 extern double atan2 (double __y, double __x) __attribute__ ((__nothrow__)); extern double __atan2 (double __y, double __x) __attribute__ ((__nothrow__));
8597
8598
8599 extern double cos (double __x) __attribute__ ((__nothrow__)); extern double __cos (double __x) __attribute__ ((__nothrow__));
8600
8601 extern double sin (double __x) __attribute__ ((__nothrow__)); extern double __sin (double __x) __attribute__ ((__nothrow__));
8602
8603 extern double tan (double __x) __attribute__ ((__nothrow__)); extern double __tan (double __x) __attribute__ ((__nothrow__));
8604
8605
8606
8607
8608 extern double cosh (double __x) __attribute__ ((__nothrow__)); extern double __cosh (double __x) __attribute__ ((__nothrow__));
8609
8610 extern double sinh (double __x) __attribute__ ((__nothrow__)); extern double __sinh (double __x) __attribute__ ((__nothrow__));
8611
8612 extern double tanh (double __x) __attribute__ ((__nothrow__)); extern double __tanh (double __x) __attribute__ ((__nothrow__));
8613 # 87 "/usr/include/bits/mathcalls.h" 3 4
8614
8615
8616 extern double acosh (double __x) __attribute__ ((__nothrow__)); extern double __acosh (double __x) __attribute__ ((__nothrow__));
8617
8618 extern double asinh (double __x) __attribute__ ((__nothrow__)); extern double __asinh (double __x) __attribute__ ((__nothrow__));
8619
8620 extern double atanh (double __x) __attribute__ ((__nothrow__)); extern double __atanh (double __x) __attribute__ ((__nothrow__));
8621
8622
8623
8624
8625
8626
8627
8628 extern double exp (double __x) __attribute__ ((__nothrow__)); extern double __exp (double __x) __attribute__ ((__nothrow__));
8629
8630
8631 extern double frexp (double __x, int *__exponent) __attribute__ ((__nothrow__)); extern double __frexp (double __x, int *__exponent) __attribute__ ((__nothrow__));
8632
8633
8634 extern double ldexp (double __x, int __exponent) __attribute__ ((__nothrow__)); extern double __ldexp (double __x, int __exponent) __attribute__ ((__nothrow__));
8635
8636
8637 extern double log (double __x) __attribute__ ((__nothrow__)); extern double __log (double __x) __attribute__ ((__nothrow__));
8638
8639
8640 extern double log10 (double __x) __attribute__ ((__nothrow__)); extern double __log10 (double __x) __attribute__ ((__nothrow__));
8641
8642
8643 extern double modf (double __x, double *__iptr) __attribute__ ((__nothrow__)); extern double __modf (double __x, double *__iptr) __attribute__ ((__nothrow__));
8644 # 127 "/usr/include/bits/mathcalls.h" 3 4
8645
8646
8647 extern double expm1 (double __x) __attribute__ ((__nothrow__)); extern double __expm1 (double __x) __attribute__ ((__nothrow__));
8648
8649
8650 extern double log1p (double __x) __attribute__ ((__nothrow__)); extern double __log1p (double __x) __attribute__ ((__nothrow__));
8651
8652
8653 extern double logb (double __x) __attribute__ ((__nothrow__)); extern double __logb (double __x) __attribute__ ((__nothrow__));
8654 # 152 "/usr/include/bits/mathcalls.h" 3 4
8655
8656
8657 extern double pow (double __x, double __y) __attribute__ ((__nothrow__)); extern double __pow (double __x, double __y) __attribute__ ((__nothrow__));
8658
8659
8660 extern double sqrt (double __x) __attribute__ ((__nothrow__)); extern double __sqrt (double __x) __attribute__ ((__nothrow__));
8661
8662
8663
8664
8665
8666 extern double hypot (double __x, double __y) __attribute__ ((__nothrow__)); extern double __hypot (double __x, double __y) __attribute__ ((__nothrow__));
8667
8668
8669
8670
8671
8672
8673 extern double cbrt (double __x) __attribute__ ((__nothrow__)); extern double __cbrt (double __x) __attribute__ ((__nothrow__));
8674 # 179 "/usr/include/bits/mathcalls.h" 3 4
8675 extern double ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __ceil (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8676
8677
8678 extern double fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __fabs (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8679
8680
8681 extern double floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __floor (double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8682
8683
8684 extern double fmod (double __x, double __y) __attribute__ ((__nothrow__)); extern double __fmod (double __x, double __y) __attribute__ ((__nothrow__));
8685
8686
8687
8688
8689 extern int __isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8690
8691
8692 extern int __finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8693
8694
8695
8696
8697
8698 extern int isinf (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8699
8700
8701 extern int finite (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8702
8703
8704 extern double drem (double __x, double __y) __attribute__ ((__nothrow__)); extern double __drem (double __x, double __y) __attribute__ ((__nothrow__));
8705
8706
8707
8708 extern double significand (double __x) __attribute__ ((__nothrow__)); extern double __significand (double __x) __attribute__ ((__nothrow__));
8709
8710
8711
8712
8713
8714 extern double copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8715 # 231 "/usr/include/bits/mathcalls.h" 3 4
8716 extern int __isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8717
8718
8719
8720 extern int isnan (double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8721
8722
8723 extern double j0 (double) __attribute__ ((__nothrow__)); extern double __j0 (double) __attribute__ ((__nothrow__));
8724 extern double j1 (double) __attribute__ ((__nothrow__)); extern double __j1 (double) __attribute__ ((__nothrow__));
8725 extern double jn (int, double) __attribute__ ((__nothrow__)); extern double __jn (int, double) __attribute__ ((__nothrow__));
8726 extern double y0 (double) __attribute__ ((__nothrow__)); extern double __y0 (double) __attribute__ ((__nothrow__));
8727 extern double y1 (double) __attribute__ ((__nothrow__)); extern double __y1 (double) __attribute__ ((__nothrow__));
8728 extern double yn (int, double) __attribute__ ((__nothrow__)); extern double __yn (int, double) __attribute__ ((__nothrow__));
8729
8730
8731
8732
8733
8734
8735 extern double erf (double) __attribute__ ((__nothrow__)); extern double __erf (double) __attribute__ ((__nothrow__));
8736 extern double erfc (double) __attribute__ ((__nothrow__)); extern double __erfc (double) __attribute__ ((__nothrow__));
8737 extern double lgamma (double) __attribute__ ((__nothrow__)); extern double __lgamma (double) __attribute__ ((__nothrow__));
8738 # 265 "/usr/include/bits/mathcalls.h" 3 4
8739 extern double gamma (double) __attribute__ ((__nothrow__)); extern double __gamma (double) __attribute__ ((__nothrow__));
8740
8741
8742
8743
8744
8745
8746 extern double lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__)); extern double __lgamma_r (double, int *__signgamp) __attribute__ ((__nothrow__));
8747
8748
8749
8750
8751
8752
8753
8754 extern double rint (double __x) __attribute__ ((__nothrow__)); extern double __rint (double __x) __attribute__ ((__nothrow__));
8755
8756
8757 extern double nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern double __nextafter (double __x, double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8758
8759
8760
8761
8762
8763 extern double remainder (double __x, double __y) __attribute__ ((__nothrow__)); extern double __remainder (double __x, double __y) __attribute__ ((__nothrow__));
8764
8765
8766
8767 extern double scalbn (double __x, int __n) __attribute__ ((__nothrow__)); extern double __scalbn (double __x, int __n) __attribute__ ((__nothrow__));
8768
8769
8770
8771 extern int ilogb (double __x) __attribute__ ((__nothrow__)); extern int __ilogb (double __x) __attribute__ ((__nothrow__));
8772 # 359 "/usr/include/bits/mathcalls.h" 3 4
8773
8774
8775
8776
8777
8778 extern double scalb (double __x, double __n) __attribute__ ((__nothrow__)); extern double __scalb (double __x, double __n) __attribute__ ((__nothrow__));
8779 # 72 "/usr/include/math.h" 2 3 4
8780 # 94 "/usr/include/math.h" 3 4
8781
8782 # 1 "/usr/include/bits/mathcalls.h" 1 3 4
8783 # 53 "/usr/include/bits/mathcalls.h" 3 4
8784
8785
8786 extern float acosf (float __x) __attribute__ ((__nothrow__)); extern float __acosf (float __x) __attribute__ ((__nothrow__));
8787
8788 extern float asinf (float __x) __attribute__ ((__nothrow__)); extern float __asinf (float __x) __attribute__ ((__nothrow__));
8789
8790 extern float atanf (float __x) __attribute__ ((__nothrow__)); extern float __atanf (float __x) __attribute__ ((__nothrow__));
8791
8792 extern float atan2f (float __y, float __x) __attribute__ ((__nothrow__)); extern float __atan2f (float __y, float __x) __attribute__ ((__nothrow__));
8793
8794
8795 extern float cosf (float __x) __attribute__ ((__nothrow__)); extern float __cosf (float __x) __attribute__ ((__nothrow__));
8796
8797 extern float sinf (float __x) __attribute__ ((__nothrow__)); extern float __sinf (float __x) __attribute__ ((__nothrow__));
8798
8799 extern float tanf (float __x) __attribute__ ((__nothrow__)); extern float __tanf (float __x) __attribute__ ((__nothrow__));
8800
8801
8802
8803
8804 extern float coshf (float __x) __attribute__ ((__nothrow__)); extern float __coshf (float __x) __attribute__ ((__nothrow__));
8805
8806 extern float sinhf (float __x) __attribute__ ((__nothrow__)); extern float __sinhf (float __x) __attribute__ ((__nothrow__));
8807
8808 extern float tanhf (float __x) __attribute__ ((__nothrow__)); extern float __tanhf (float __x) __attribute__ ((__nothrow__));
8809 # 87 "/usr/include/bits/mathcalls.h" 3 4
8810
8811
8812 extern float acoshf (float __x) __attribute__ ((__nothrow__)); extern float __acoshf (float __x) __attribute__ ((__nothrow__));
8813
8814 extern float asinhf (float __x) __attribute__ ((__nothrow__)); extern float __asinhf (float __x) __attribute__ ((__nothrow__));
8815
8816 extern float atanhf (float __x) __attribute__ ((__nothrow__)); extern float __atanhf (float __x) __attribute__ ((__nothrow__));
8817
8818
8819
8820
8821
8822
8823
8824 extern float expf (float __x) __attribute__ ((__nothrow__)); extern float __expf (float __x) __attribute__ ((__nothrow__));
8825
8826
8827 extern float frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__)); extern float __frexpf (float __x, int *__exponent) __attribute__ ((__nothrow__));
8828
8829
8830 extern float ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__)); extern float __ldexpf (float __x, int __exponent) __attribute__ ((__nothrow__));
8831
8832
8833 extern float logf (float __x) __attribute__ ((__nothrow__)); extern float __logf (float __x) __attribute__ ((__nothrow__));
8834
8835
8836 extern float log10f (float __x) __attribute__ ((__nothrow__)); extern float __log10f (float __x) __attribute__ ((__nothrow__));
8837
8838
8839 extern float modff (float __x, float *__iptr) __attribute__ ((__nothrow__)); extern float __modff (float __x, float *__iptr) __attribute__ ((__nothrow__));
8840 # 127 "/usr/include/bits/mathcalls.h" 3 4
8841
8842
8843 extern float expm1f (float __x) __attribute__ ((__nothrow__)); extern float __expm1f (float __x) __attribute__ ((__nothrow__));
8844
8845
8846 extern float log1pf (float __x) __attribute__ ((__nothrow__)); extern float __log1pf (float __x) __attribute__ ((__nothrow__));
8847
8848
8849 extern float logbf (float __x) __attribute__ ((__nothrow__)); extern float __logbf (float __x) __attribute__ ((__nothrow__));
8850 # 152 "/usr/include/bits/mathcalls.h" 3 4
8851
8852
8853 extern float powf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __powf (float __x, float __y) __attribute__ ((__nothrow__));
8854
8855
8856 extern float sqrtf (float __x) __attribute__ ((__nothrow__)); extern float __sqrtf (float __x) __attribute__ ((__nothrow__));
8857
8858
8859
8860
8861
8862 extern float hypotf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __hypotf (float __x, float __y) __attribute__ ((__nothrow__));
8863
8864
8865
8866
8867
8868
8869 extern float cbrtf (float __x) __attribute__ ((__nothrow__)); extern float __cbrtf (float __x) __attribute__ ((__nothrow__));
8870 # 179 "/usr/include/bits/mathcalls.h" 3 4
8871 extern float ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __ceilf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8872
8873
8874 extern float fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __fabsf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8875
8876
8877 extern float floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __floorf (float __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8878
8879
8880 extern float fmodf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __fmodf (float __x, float __y) __attribute__ ((__nothrow__));
8881
8882
8883
8884
8885 extern int __isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8886
8887
8888 extern int __finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8889
8890
8891
8892
8893
8894 extern int isinff (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8895
8896
8897 extern int finitef (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8898
8899
8900 extern float dremf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __dremf (float __x, float __y) __attribute__ ((__nothrow__));
8901
8902
8903
8904 extern float significandf (float __x) __attribute__ ((__nothrow__)); extern float __significandf (float __x) __attribute__ ((__nothrow__));
8905
8906
8907
8908
8909
8910 extern float copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8911 # 231 "/usr/include/bits/mathcalls.h" 3 4
8912 extern int __isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8913
8914
8915
8916 extern int isnanf (float __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8917
8918
8919 extern float j0f (float) __attribute__ ((__nothrow__)); extern float __j0f (float) __attribute__ ((__nothrow__));
8920 extern float j1f (float) __attribute__ ((__nothrow__)); extern float __j1f (float) __attribute__ ((__nothrow__));
8921 extern float jnf (int, float) __attribute__ ((__nothrow__)); extern float __jnf (int, float) __attribute__ ((__nothrow__));
8922 extern float y0f (float) __attribute__ ((__nothrow__)); extern float __y0f (float) __attribute__ ((__nothrow__));
8923 extern float y1f (float) __attribute__ ((__nothrow__)); extern float __y1f (float) __attribute__ ((__nothrow__));
8924 extern float ynf (int, float) __attribute__ ((__nothrow__)); extern float __ynf (int, float) __attribute__ ((__nothrow__));
8925
8926
8927
8928
8929
8930
8931 extern float erff (float) __attribute__ ((__nothrow__)); extern float __erff (float) __attribute__ ((__nothrow__));
8932 extern float erfcf (float) __attribute__ ((__nothrow__)); extern float __erfcf (float) __attribute__ ((__nothrow__));
8933 extern float lgammaf (float) __attribute__ ((__nothrow__)); extern float __lgammaf (float) __attribute__ ((__nothrow__));
8934 # 265 "/usr/include/bits/mathcalls.h" 3 4
8935 extern float gammaf (float) __attribute__ ((__nothrow__)); extern float __gammaf (float) __attribute__ ((__nothrow__));
8936
8937
8938
8939
8940
8941
8942 extern float lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__)); extern float __lgammaf_r (float, int *__signgamp) __attribute__ ((__nothrow__));
8943
8944
8945
8946
8947
8948
8949
8950 extern float rintf (float __x) __attribute__ ((__nothrow__)); extern float __rintf (float __x) __attribute__ ((__nothrow__));
8951
8952
8953 extern float nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern float __nextafterf (float __x, float __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
8954
8955
8956
8957
8958
8959 extern float remainderf (float __x, float __y) __attribute__ ((__nothrow__)); extern float __remainderf (float __x, float __y) __attribute__ ((__nothrow__));
8960
8961
8962
8963 extern float scalbnf (float __x, int __n) __attribute__ ((__nothrow__)); extern float __scalbnf (float __x, int __n) __attribute__ ((__nothrow__));
8964
8965
8966
8967 extern int ilogbf (float __x) __attribute__ ((__nothrow__)); extern int __ilogbf (float __x) __attribute__ ((__nothrow__));
8968 # 359 "/usr/include/bits/mathcalls.h" 3 4
8969
8970
8971
8972
8973
8974 extern float scalbf (float __x, float __n) __attribute__ ((__nothrow__)); extern float __scalbf (float __x, float __n) __attribute__ ((__nothrow__));
8975 # 95 "/usr/include/math.h" 2 3 4
8976 # 141 "/usr/include/math.h" 3 4
8977
8978 # 1 "/usr/include/bits/mathcalls.h" 1 3 4
8979 # 53 "/usr/include/bits/mathcalls.h" 3 4
8980
8981
8982 extern long double acosl (long double __x) __attribute__ ((__nothrow__)); extern long double __acosl (long double __x) __attribute__ ((__nothrow__));
8983
8984 extern long double asinl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinl (long double __x) __attribute__ ((__nothrow__));
8985
8986 extern long double atanl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanl (long double __x) __attribute__ ((__nothrow__));
8987
8988 extern long double atan2l (long double __y, long double __x) __attribute__ ((__nothrow__)); extern long double __atan2l (long double __y, long double __x) __attribute__ ((__nothrow__));
8989
8990
8991 extern long double cosl (long double __x) __attribute__ ((__nothrow__)); extern long double __cosl (long double __x) __attribute__ ((__nothrow__));
8992
8993 extern long double sinl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinl (long double __x) __attribute__ ((__nothrow__));
8994
8995 extern long double tanl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanl (long double __x) __attribute__ ((__nothrow__));
8996
8997
8998
8999
9000 extern long double coshl (long double __x) __attribute__ ((__nothrow__)); extern long double __coshl (long double __x) __attribute__ ((__nothrow__));
9001
9002 extern long double sinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __sinhl (long double __x) __attribute__ ((__nothrow__));
9003
9004 extern long double tanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __tanhl (long double __x) __attribute__ ((__nothrow__));
9005 # 87 "/usr/include/bits/mathcalls.h" 3 4
9006
9007
9008 extern long double acoshl (long double __x) __attribute__ ((__nothrow__)); extern long double __acoshl (long double __x) __attribute__ ((__nothrow__));
9009
9010 extern long double asinhl (long double __x) __attribute__ ((__nothrow__)); extern long double __asinhl (long double __x) __attribute__ ((__nothrow__));
9011
9012 extern long double atanhl (long double __x) __attribute__ ((__nothrow__)); extern long double __atanhl (long double __x) __attribute__ ((__nothrow__));
9013
9014
9015
9016
9017
9018
9019
9020 extern long double expl (long double __x) __attribute__ ((__nothrow__)); extern long double __expl (long double __x) __attribute__ ((__nothrow__));
9021
9022
9023 extern long double frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__)); extern long double __frexpl (long double __x, int *__exponent) __attribute__ ((__nothrow__));
9024
9025
9026 extern long double ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__)); extern long double __ldexpl (long double __x, int __exponent) __attribute__ ((__nothrow__));
9027
9028
9029 extern long double logl (long double __x) __attribute__ ((__nothrow__)); extern long double __logl (long double __x) __attribute__ ((__nothrow__));
9030
9031
9032 extern long double log10l (long double __x) __attribute__ ((__nothrow__)); extern long double __log10l (long double __x) __attribute__ ((__nothrow__));
9033
9034
9035 extern long double modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__)); extern long double __modfl (long double __x, long double *__iptr) __attribute__ ((__nothrow__));
9036 # 127 "/usr/include/bits/mathcalls.h" 3 4
9037
9038
9039 extern long double expm1l (long double __x) __attribute__ ((__nothrow__)); extern long double __expm1l (long double __x) __attribute__ ((__nothrow__));
9040
9041
9042 extern long double log1pl (long double __x) __attribute__ ((__nothrow__)); extern long double __log1pl (long double __x) __attribute__ ((__nothrow__));
9043
9044
9045 extern long double logbl (long double __x) __attribute__ ((__nothrow__)); extern long double __logbl (long double __x) __attribute__ ((__nothrow__));
9046 # 152 "/usr/include/bits/mathcalls.h" 3 4
9047
9048
9049 extern long double powl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __powl (long double __x, long double __y) __attribute__ ((__nothrow__));
9050
9051
9052 extern long double sqrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __sqrtl (long double __x) __attribute__ ((__nothrow__));
9053
9054
9055
9056
9057
9058 extern long double hypotl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __hypotl (long double __x, long double __y) __attribute__ ((__nothrow__));
9059
9060
9061
9062
9063
9064
9065 extern long double cbrtl (long double __x) __attribute__ ((__nothrow__)); extern long double __cbrtl (long double __x) __attribute__ ((__nothrow__));
9066 # 179 "/usr/include/bits/mathcalls.h" 3 4
9067 extern long double ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __ceill (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
9068
9069
9070 extern long double fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __fabsl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
9071
9072
9073 extern long double floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __floorl (long double __x) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
9074
9075
9076 extern long double fmodl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __fmodl (long double __x, long double __y) __attribute__ ((__nothrow__));
9077
9078
9079
9080
9081 extern int __isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
9082
9083
9084 extern int __finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
9085
9086
9087
9088
9089
9090 extern int isinfl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
9091
9092
9093 extern int finitel (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
9094
9095
9096 extern long double dreml (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __dreml (long double __x, long double __y) __attribute__ ((__nothrow__));
9097
9098
9099
9100 extern long double significandl (long double __x) __attribute__ ((__nothrow__)); extern long double __significandl (long double __x) __attribute__ ((__nothrow__));
9101
9102
9103
9104
9105
9106 extern long double copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
9107 # 231 "/usr/include/bits/mathcalls.h" 3 4
9108 extern int __isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
9109
9110
9111
9112 extern int isnanl (long double __value) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
9113
9114
9115 extern long double j0l (long double) __attribute__ ((__nothrow__)); extern long double __j0l (long double) __attribute__ ((__nothrow__));
9116 extern long double j1l (long double) __attribute__ ((__nothrow__)); extern long double __j1l (long double) __attribute__ ((__nothrow__));
9117 extern long double jnl (int, long double) __attribute__ ((__nothrow__)); extern long double __jnl (int, long double) __attribute__ ((__nothrow__));
9118 extern long double y0l (long double) __attribute__ ((__nothrow__)); extern long double __y0l (long double) __attribute__ ((__nothrow__));
9119 extern long double y1l (long double) __attribute__ ((__nothrow__)); extern long double __y1l (long double) __attribute__ ((__nothrow__));
9120 extern long double ynl (int, long double) __attribute__ ((__nothrow__)); extern long double __ynl (int, long double) __attribute__ ((__nothrow__));
9121
9122
9123
9124
9125
9126
9127 extern long double erfl (long double) __attribute__ ((__nothrow__)); extern long double __erfl (long double) __attribute__ ((__nothrow__));
9128 extern long double erfcl (long double) __attribute__ ((__nothrow__)); extern long double __erfcl (long double) __attribute__ ((__nothrow__));
9129 extern long double lgammal (long double) __attribute__ ((__nothrow__)); extern long double __lgammal (long double) __attribute__ ((__nothrow__));
9130 # 265 "/usr/include/bits/mathcalls.h" 3 4
9131 extern long double gammal (long double) __attribute__ ((__nothrow__)); extern long double __gammal (long double) __attribute__ ((__nothrow__));
9132
9133
9134
9135
9136
9137
9138 extern long double lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__)); extern long double __lgammal_r (long double, int *__signgamp) __attribute__ ((__nothrow__));
9139
9140
9141
9142
9143
9144
9145
9146 extern long double rintl (long double __x) __attribute__ ((__nothrow__)); extern long double __rintl (long double __x) __attribute__ ((__nothrow__));
9147
9148
9149 extern long double nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__)); extern long double __nextafterl (long double __x, long double __y) __attribute__ ((__nothrow__)) __attribute__ ((__const__));
9150
9151
9152
9153
9154
9155 extern long double remainderl (long double __x, long double __y) __attribute__ ((__nothrow__)); extern long double __remainderl (long double __x, long double __y) __attribute__ ((__nothrow__));
9156
9157
9158
9159 extern long double scalbnl (long double __x, int __n) __attribute__ ((__nothrow__)); extern long double __scalbnl (long double __x, int __n) __attribute__ ((__nothrow__));
9160
9161
9162
9163 extern int ilogbl (long double __x) __attribute__ ((__nothrow__)); extern int __ilogbl (long double __x) __attribute__ ((__nothrow__));
9164 # 359 "/usr/include/bits/mathcalls.h" 3 4
9165
9166
9167
9168
9169
9170 extern long double scalbl (long double __x, long double __n) __attribute__ ((__nothrow__)); extern long double __scalbl (long double __x, long double __n) __attribute__ ((__nothrow__));
9171 # 142 "/usr/include/math.h" 2 3 4
9172 # 157 "/usr/include/math.h" 3 4
9173 extern int signgam;
9174 # 284 "/usr/include/math.h" 3 4
9175 typedef enum
9176 {
9177 _IEEE_ = -1,
9178 _SVID_,
9179 _XOPEN_,
9180 _POSIX_,
9181 _ISOC_
9182 } _LIB_VERSION_TYPE;
9183
9184
9185
9186
9187 extern _LIB_VERSION_TYPE _LIB_VERSION;
9188 # 309 "/usr/include/math.h" 3 4
9189 struct exception
9190
9191 {
9192 int type;
9193 char *name;
9194 double arg1;
9195 double arg2;
9196 double retval;
9197 };
9198
9199
9200
9201
9202 extern int matherr (struct exception *__exc);
9203 # 409 "/usr/include/math.h" 3 4
9204
9205 # 1 "/usr/include/bits/mathinline.h" 1 3 4
9206 # 291 "/usr/include/bits/mathinline.h" 3 4
9207 extern __inline double __sgn (double) __attribute__ ((__nothrow__)); extern __inline double __attribute__ ((__nothrow__)) __sgn (double __x) { return __x == 0.0 ? 0.0 : (__x > 0.0 ? 1.0 : -1.0); } extern __inline float __sgnf (float) __attribute__ ((__nothrow__)); extern __inline float __attribute__ ((__nothrow__)) __sgnf (float __x) { return __x == 0.0 ? 0.0 : (__x > 0.0 ? 1.0 : -1.0); } extern __inline long double __sgnl (long double) __attribute__ ((__nothrow__)); extern __inline long double __attribute__ ((__nothrow__)) __sgnl (long double __x) { return __x == 0.0 ? 0.0 : (__x > 0.0 ? 1.0 : -1.0); }
9208 # 433 "/usr/include/bits/mathinline.h" 3 4
9209 extern __inline long double __attribute__ ((__nothrow__)) __atan2l (long double __y, long double __x) { return __builtin_atan2l (__y, __x); }
9210 # 473 "/usr/include/bits/mathinline.h" 3 4
9211 extern __inline double __attribute__ ((__nothrow__)) fabs (double __x) { return __builtin_fabs (__x); }
9212
9213 extern __inline float __attribute__ ((__nothrow__)) fabsf (float __x) { return __builtin_fabsf (__x); }
9214 extern __inline long double __attribute__ ((__nothrow__)) fabsl (long double __x) { return __builtin_fabsl (__x); }
9215
9216 extern __inline long double __attribute__ ((__nothrow__)) __fabsl (long double __x) { return __builtin_fabsl (__x); }
9217 # 506 "/usr/include/bits/mathinline.h" 3 4
9218 extern __inline long double __sgn1l (long double) __attribute__ ((__nothrow__)); extern __inline long double __attribute__ ((__nothrow__)) __sgn1l (long double __x) { __extension__ union { long double __xld; unsigned int __xi[3]; } __n = { __xld: __x }; __n.__xi[2] = (__n.__xi[2] & 0x8000) | 0x3fff; __n.__xi[1] = 0x80000000; __n.__xi[0] = 0; return __n.__xld; }
9219 # 530 "/usr/include/bits/mathinline.h" 3 4
9220 extern __inline double __attribute__ ((__nothrow__)) floor (double __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0400; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } extern __inline float __attribute__ ((__nothrow__)) floorf (float __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0400; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } extern __inline long double __attribute__ ((__nothrow__)) floorl (long double __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0400; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; }
9221 # 541 "/usr/include/bits/mathinline.h" 3 4
9222 extern __inline double __attribute__ ((__nothrow__)) ceil (double __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0800; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } extern __inline float __attribute__ ((__nothrow__)) ceilf (float __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0800; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; } extern __inline long double __attribute__ ((__nothrow__)) ceill (long double __x) { register long double __value; __volatile unsigned short int __cw; __volatile unsigned short int __cwtmp; __asm __volatile ("fnstcw %0" : "=m" (__cw)); __cwtmp = (__cw & 0xf3ff) | 0x0800; __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); __asm __volatile ("fldcw %0" : : "m" (__cw)); return __value; }
9223 # 713 "/usr/include/bits/mathinline.h" 3 4
9224 extern __inline int
9225 __attribute__ ((__nothrow__)) __finite (double __x)
9226 {
9227 return (__extension__
9228 (((((union { double __d; int __i[2]; }) {__d: __x}).__i[1]
9229 | 0x800fffffu) + 1) >> 31));
9230 }
9231 # 410 "/usr/include/math.h" 2 3 4
9232 # 465 "/usr/include/math.h" 3 4
9233 # 26 "../../libgimpmath/gimpmath.h" 2
9234 # 35 "../../libgimpmath/gimpmath.h"
9235
9236 # 1 "../../libgimpmath/gimpmathtypes.h" 1
9237 # 25 "../../libgimpmath/gimpmathtypes.h"
9238
9239
9240 typedef struct _GimpMatrix2 GimpMatrix2;
9241 typedef struct _GimpMatrix3 GimpMatrix3;
9242 typedef struct _GimpMatrix4 GimpMatrix4;
9243
9244 typedef struct _GimpVector2 GimpVector2;
9245 typedef struct _GimpVector3 GimpVector3;
9246 typedef struct _GimpVector4 GimpVector4;
9247 # 36 "../../libgimpmath/gimpmath.h" 2
9248
9249
9250 # 1 "../../libgimpmath/gimpmatrix.h" 1
9251 # 26 "../../libgimpmath/gimpmatrix.h"
9252
9253
9254
9255
9256 struct _GimpMatrix2
9257 {
9258 gdouble coeff[2][2];
9259 };
9260
9261 struct _GimpMatrix3
9262 {
9263 gdouble coeff[3][3];
9264 };
9265
9266 struct _GimpMatrix4
9267 {
9268 gdouble coeff[4][4];
9269 };
9270
9271
9272 void gimp_matrix2_identity (GimpMatrix2 *matrix);
9273 void gimp_matrix2_mult (const GimpMatrix2 *matrix1,
9274 GimpMatrix2 *matrix2);
9275
9276 void gimp_matrix3_identity (GimpMatrix3 *matrix);
9277 void gimp_matrix3_mult (const GimpMatrix3 *matrix1,
9278 GimpMatrix3 *matrix2);
9279 void gimp_matrix3_translate (GimpMatrix3 *matrix,
9280 gdouble x,
9281 gdouble y);
9282 void gimp_matrix3_scale (GimpMatrix3 *matrix,
9283 gdouble x,
9284 gdouble y);
9285 void gimp_matrix3_rotate (GimpMatrix3 *matrix,
9286 gdouble theta);
9287 void gimp_matrix3_xshear (GimpMatrix3 *matrix,
9288 gdouble amount);
9289 void gimp_matrix3_yshear (GimpMatrix3 *matrix,
9290 gdouble amount);
9291 void gimp_matrix3_affine (GimpMatrix3 *matrix,
9292 gdouble a,
9293 gdouble b,
9294 gdouble c,
9295 gdouble d,
9296 gdouble e,
9297 gdouble f);
9298
9299 gdouble gimp_matrix3_determinant (const GimpMatrix3 *matrix);
9300 void gimp_matrix3_invert (GimpMatrix3 *matrix);
9301
9302 gboolean gimp_matrix3_is_diagonal (const GimpMatrix3 *matrix);
9303 gboolean gimp_matrix3_is_identity (const GimpMatrix3 *matrix);
9304 gboolean gimp_matrix3_is_simple (const GimpMatrix3 *matrix);
9305
9306 void gimp_matrix3_transform_point (const GimpMatrix3 *matrix,
9307 gdouble x,
9308 gdouble y,
9309 gdouble *newx,
9310 gdouble *newy);
9311
9312 void gimp_matrix4_to_deg (const GimpMatrix4 *matrix,
9313 gdouble *a,
9314 gdouble *b,
9315 gdouble *c);
9316 # 38 "../../libgimpmath/gimpmath.h" 2
9317
9318 # 1 "../../libgimpmath/gimpmd5.h" 1
9319 # 27 "../../libgimpmath/gimpmd5.h"
9320
9321
9322
9323
9324 void gimp_md5_get_digest (const gchar *buffer,
9325 gint buffer_size,
9326 guchar digest[16]);
9327 # 39 "../../libgimpmath/gimpmath.h" 2
9328
9329 # 1 "../../libgimpmath/gimpvector.h" 1
9330 # 29 "../../libgimpmath/gimpvector.h"
9331
9332
9333
9334
9335 struct _GimpVector2
9336 {
9337 gdouble x, y;
9338 };
9339
9340 struct _GimpVector3
9341 {
9342 gdouble x, y, z;
9343 };
9344
9345 struct _GimpVector4
9346 {
9347 gdouble x, y, z, w;
9348 };
9349
9350
9351
9352
9353
9354 GimpVector2 gimp_vector2_new (gdouble x,
9355 gdouble y);
9356 void gimp_vector2_set (GimpVector2 *vector,
9357 gdouble x,
9358 gdouble y);
9359 gdouble gimp_vector2_length (const GimpVector2 *vector);
9360 gdouble gimp_vector2_length_val (GimpVector2 vector);
9361 void gimp_vector2_mul (GimpVector2 *vector,
9362 gdouble factor);
9363 GimpVector2 gimp_vector2_mul_val (GimpVector2 vector,
9364 gdouble factor);
9365 void gimp_vector2_normalize (GimpVector2 *vector);
9366 GimpVector2 gimp_vector2_normalize_val (GimpVector2 vector);
9367 void gimp_vector2_neg (GimpVector2 *vector);
9368 GimpVector2 gimp_vector2_neg_val (GimpVector2 vector);
9369 void gimp_vector2_add (GimpVector2 *result,
9370 const GimpVector2 *vector1,
9371 const GimpVector2 *vector2);
9372 GimpVector2 gimp_vector2_add_val (GimpVector2 vector1,
9373 GimpVector2 vector2);
9374 void gimp_vector2_sub (GimpVector2 *result,
9375 const GimpVector2 *vector1,
9376 const GimpVector2 *vector2);
9377 GimpVector2 gimp_vector2_sub_val (GimpVector2 vector1,
9378 GimpVector2 vector2);
9379 gdouble gimp_vector2_inner_product (const GimpVector2 *vector1,
9380 const GimpVector2 *vector2);
9381 gdouble gimp_vector2_inner_product_val (GimpVector2 vector1,
9382 GimpVector2 vector2);
9383 GimpVector2 gimp_vector2_cross_product (const GimpVector2 *vector1,
9384 const GimpVector2 *vector2);
9385 GimpVector2 gimp_vector2_cross_product_val (GimpVector2 vector1,
9386 GimpVector2 vector2);
9387 void gimp_vector2_rotate (GimpVector2 *vector,
9388 gdouble alpha);
9389 GimpVector2 gimp_vector2_rotate_val (GimpVector2 vector,
9390 gdouble alpha);
9391
9392
9393
9394
9395 GimpVector3 gimp_vector3_new (gdouble x,
9396 gdouble y,
9397 gdouble z);
9398 void gimp_vector3_set (GimpVector3 *vector,
9399 gdouble x,
9400 gdouble y,
9401 gdouble z);
9402 gdouble gimp_vector3_length (const GimpVector3 *vector);
9403 gdouble gimp_vector3_length_val (GimpVector3 vector);
9404 void gimp_vector3_mul (GimpVector3 *vector,
9405 gdouble factor);
9406 GimpVector3 gimp_vector3_mul_val (GimpVector3 vector,
9407 gdouble factor);
9408 void gimp_vector3_normalize (GimpVector3 *vector);
9409 GimpVector3 gimp_vector3_normalize_val (GimpVector3 vector);
9410 void gimp_vector3_neg (GimpVector3 *vector);
9411 GimpVector3 gimp_vector3_neg_val (GimpVector3 vector);
9412 void gimp_vector3_add (GimpVector3 *result,
9413 const GimpVector3 *vector1,
9414 const GimpVector3 *vector2);
9415 GimpVector3 gimp_vector3_add_val (GimpVector3 vector1,
9416 GimpVector3 vector2);
9417 void gimp_vector3_sub (GimpVector3 *result,
9418 const GimpVector3 *vector1,
9419 const GimpVector3 *vector2);
9420 GimpVector3 gimp_vector3_sub_val (GimpVector3 vector1,
9421 GimpVector3 vector2);
9422 gdouble gimp_vector3_inner_product (const GimpVector3 *vector1,
9423 const GimpVector3 *vector2);
9424 gdouble gimp_vector3_inner_product_val (GimpVector3 vector1,
9425 GimpVector3 vector2);
9426 GimpVector3 gimp_vector3_cross_product (const GimpVector3 *vector1,
9427 const GimpVector3 *vector2);
9428 GimpVector3 gimp_vector3_cross_product_val (GimpVector3 vector1,
9429 GimpVector3 vector2);
9430 void gimp_vector3_rotate (GimpVector3 *vector,
9431 gdouble alpha,
9432 gdouble beta,
9433 gdouble gamma);
9434 GimpVector3 gimp_vector3_rotate_val (GimpVector3 vector,
9435 gdouble alpha,
9436 gdouble beta,
9437 gdouble gamma);
9438
9439
9440
9441
9442 void gimp_vector_2d_to_3d (gint sx,
9443 gint sy,
9444 gint w,
9445 gint h,
9446 gint x,
9447 gint y,
9448 const GimpVector3 *vp,
9449 GimpVector3 *p);
9450
9451 GimpVector3 gimp_vector_2d_to_3d_val (gint sx,
9452 gint sy,
9453 gint w,
9454 gint h,
9455 gint x,
9456 gint y,
9457 GimpVector3 vp,
9458 GimpVector3 p);
9459
9460 void gimp_vector_3d_to_2d (gint sx,
9461 gint sy,
9462 gint w,
9463 gint h,
9464 gdouble *x,
9465 gdouble *y,
9466 const GimpVector3 *vp,
9467 const GimpVector3 *p);
9468 # 40 "../../libgimpmath/gimpmath.h" 2
9469 # 71 "../../libgimpmath/gimpmath.h"
9470 # 29 "../../libgimp/gimp.h" 2
9471
9472 # 1 "../../libgimpbase/gimpbase.h" 1
9473 # 24 "../../libgimpbase/gimpbase.h"
9474
9475 # 1 "../../libgimpbase/gimpbasetypes.h" 1
9476 # 27 "../../libgimpbase/gimpbasetypes.h"
9477
9478 # 1 "../../libgimpbase/gimpbaseenums.h" 1
9479 # 24 "../../libgimpbase/gimpbaseenums.h"
9480
9481
9482
9483
9484
9485
9486
9487 GType gimp_check_size_get_type (void) __attribute__((__const__));
9488
9489 typedef enum
9490 {
9491 GIMP_CHECK_SIZE_SMALL_CHECKS = 0,
9492 GIMP_CHECK_SIZE_MEDIUM_CHECKS = 1,
9493 GIMP_CHECK_SIZE_LARGE_CHECKS = 2
9494 } GimpCheckSize;
9495
9496
9497
9498
9499 GType gimp_check_type_get_type (void) __attribute__((__const__));
9500
9501 typedef enum
9502 {
9503 GIMP_CHECK_TYPE_LIGHT_CHECKS = 0,
9504 GIMP_CHECK_TYPE_GRAY_CHECKS = 1,
9505 GIMP_CHECK_TYPE_DARK_CHECKS = 2,
9506 GIMP_CHECK_TYPE_WHITE_ONLY = 3,
9507 GIMP_CHECK_TYPE_GRAY_ONLY = 4,
9508 GIMP_CHECK_TYPE_BLACK_ONLY = 5
9509 } GimpCheckType;
9510
9511
9512
9513
9514 GType gimp_image_base_type_get_type (void) __attribute__((__const__));
9515
9516 typedef enum
9517 {
9518 GIMP_RGB,
9519 GIMP_GRAY,
9520 GIMP_INDEXED
9521 } GimpImageBaseType;
9522
9523
9524
9525
9526 GType gimp_image_type_get_type (void) __attribute__((__const__));
9527
9528 typedef enum
9529 {
9530 GIMP_RGB_IMAGE,
9531 GIMP_RGBA_IMAGE,
9532 GIMP_GRAY_IMAGE,
9533 GIMP_GRAYA_IMAGE,
9534 GIMP_INDEXED_IMAGE,
9535 GIMP_INDEXEDA_IMAGE
9536 } GimpImageType;
9537
9538
9539 typedef enum
9540 {
9541 GIMP_UNIT_PIXEL = 0,
9542
9543 GIMP_UNIT_INCH = 1,
9544 GIMP_UNIT_MM = 2,
9545 GIMP_UNIT_POINT = 3,
9546 GIMP_UNIT_PICA = 4,
9547
9548 GIMP_UNIT_END = 5,
9549
9550 GIMP_UNIT_PERCENT = 65536
9551 } GimpUnit;
9552
9553
9554
9555
9556 GType gimp_pdb_arg_type_get_type (void) __attribute__((__const__));
9557
9558 typedef enum
9559 {
9560 GIMP_PDB_INT32,
9561 GIMP_PDB_INT16,
9562 GIMP_PDB_INT8,
9563 GIMP_PDB_FLOAT,
9564 GIMP_PDB_STRING,
9565 GIMP_PDB_INT32ARRAY,
9566 GIMP_PDB_INT16ARRAY,
9567 GIMP_PDB_INT8ARRAY,
9568 GIMP_PDB_FLOATARRAY,
9569 GIMP_PDB_STRINGARRAY,
9570 GIMP_PDB_COLOR,
9571 GIMP_PDB_REGION,
9572 GIMP_PDB_DISPLAY,
9573 GIMP_PDB_IMAGE,
9574 GIMP_PDB_LAYER,
9575 GIMP_PDB_CHANNEL,
9576 GIMP_PDB_DRAWABLE,
9577 GIMP_PDB_SELECTION,
9578 GIMP_PDB_BOUNDARY,
9579 GIMP_PDB_PATH,
9580 GIMP_PDB_PARASITE,
9581 GIMP_PDB_STATUS,
9582 GIMP_PDB_END
9583 } GimpPDBArgType;
9584
9585
9586
9587
9588 GType gimp_pdb_proc_type_get_type (void) __attribute__((__const__));
9589
9590 typedef enum
9591 {
9592 GIMP_INTERNAL,
9593 GIMP_PLUGIN,
9594 GIMP_EXTENSION,
9595 GIMP_TEMPORARY
9596 } GimpPDBProcType;
9597
9598
9599
9600
9601 GType gimp_pdb_status_type_get_type (void) __attribute__((__const__));
9602
9603 typedef enum
9604 {
9605 GIMP_PDB_EXECUTION_ERROR,
9606 GIMP_PDB_CALLING_ERROR,
9607 GIMP_PDB_PASS_THROUGH,
9608 GIMP_PDB_SUCCESS,
9609 GIMP_PDB_CANCEL
9610 } GimpPDBStatusType;
9611
9612
9613
9614
9615 GType gimp_message_handler_type_get_type (void) __attribute__((__const__));
9616
9617 typedef enum
9618 {
9619 GIMP_MESSAGE_BOX,
9620 GIMP_CONSOLE,
9621 GIMP_ERROR_CONSOLE
9622 } GimpMessageHandlerType;
9623
9624
9625
9626
9627 GType gimp_stack_trace_mode_get_type (void) __attribute__((__const__));
9628
9629 typedef enum
9630 {
9631 GIMP_STACK_TRACE_NEVER,
9632 GIMP_STACK_TRACE_QUERY,
9633 GIMP_STACK_TRACE_ALWAYS
9634 } GimpStackTraceMode;
9635
9636
9637
9638
9639 GType gimp_progress_command_get_type (void) __attribute__((__const__));
9640
9641 typedef enum
9642 {
9643 GIMP_PROGRESS_COMMAND_START,
9644 GIMP_PROGRESS_COMMAND_END,
9645 GIMP_PROGRESS_COMMAND_SET_TEXT,
9646 GIMP_PROGRESS_COMMAND_SET_VALUE
9647 } GimpProgressCommand;
9648 # 28 "../../libgimpbase/gimpbasetypes.h" 2
9649
9650
9651
9652
9653
9654
9655 typedef struct _GimpParasite GimpParasite;
9656 typedef struct _GimpDatafileData GimpDatafileData;
9657 typedef struct _GimpEnumDesc GimpEnumDesc;
9658 typedef struct _GimpFlagsDesc GimpFlagsDesc;
9659
9660
9661 typedef void (* GimpDatafileLoaderFunc) (const GimpDatafileData *file_data,
9662 gpointer user_data);
9663
9664
9665 struct _GimpEnumDesc
9666 {
9667 gint value;
9668 gchar *value_desc;
9669 gchar *value_help;
9670 };
9671
9672 struct _GimpFlagsDesc
9673 {
9674 guint value;
9675 gchar *value_desc;
9676 gchar *value_help;
9677 };
9678
9679
9680 void gimp_type_set_translation_domain (GType type,
9681 const gchar *domain);
9682 const gchar * gimp_type_get_translation_domain (GType type);
9683
9684 void gimp_enum_set_value_descriptions (GType enum_type,
9685 const GimpEnumDesc *descriptions);
9686 const GimpEnumDesc * gimp_enum_get_value_descriptions (GType enum_type);
9687
9688 void gimp_flags_set_value_descriptions (GType flags_type,
9689 const GimpFlagsDesc *descriptions);
9690 const GimpFlagsDesc * gimp_flags_get_value_descriptions (GType flags_type);
9691 # 25 "../../libgimpbase/gimpbase.h" 2
9692
9693
9694 # 1 "../../libgimpbase/gimpchecks.h" 1
9695 # 23 "../../libgimpbase/gimpchecks.h"
9696 # 37 "../../libgimpbase/gimpchecks.h"
9697 void gimp_checks_get_shades (GimpCheckType type,
9698 guchar *light,
9699 guchar *dark);
9700 # 27 "../../libgimpbase/gimpbase.h" 2
9701
9702 # 1 "../../libgimpbase/gimpdatafiles.h" 1
9703 # 28 "../../libgimpbase/gimpdatafiles.h"
9704
9705
9706
9707 struct _GimpDatafileData
9708 {
9709 const gchar *filename;
9710 const gchar *dirname;
9711 const gchar *basename;
9712
9713 time_t atime;
9714 time_t mtime;
9715 time_t ctime;
9716 };
9717
9718
9719 gboolean gimp_datafiles_check_extension (const gchar *filename,
9720 const gchar *extension);
9721
9722 void gimp_datafiles_read_directories (const gchar *path_str,
9723 GFileTest flags,
9724 GimpDatafileLoaderFunc loader_func,
9725 gpointer user_data);
9726 # 28 "../../libgimpbase/gimpbase.h" 2
9727
9728 # 1 "../../libgimpbase/gimpenv.h" 1
9729 # 27 "../../libgimpbase/gimpenv.h"
9730
9731
9732
9733
9734
9735 const gchar * gimp_directory (void) __attribute__((__const__));
9736 const gchar * gimp_data_directory (void) __attribute__((__const__));
9737 const gchar * gimp_locale_directory (void) __attribute__((__const__));
9738 const gchar * gimp_sysconf_directory (void) __attribute__((__const__));
9739 const gchar * gimp_plug_in_directory (void) __attribute__((__const__));
9740 const gchar * gimp_gtkrc (void) __attribute__((__const__));
9741 gchar * gimp_personal_rc_file (const gchar *basename);
9742
9743 GList * gimp_path_parse (const gchar *path,
9744 gint max_paths,
9745 gboolean check,
9746 GList **check_failed);
9747 gchar * gimp_path_to_str (GList *path);
9748 void gimp_path_free (GList *path);
9749
9750 gchar * gimp_path_get_user_writable_dir (GList *path);
9751 # 29 "../../libgimpbase/gimpbase.h" 2
9752
9753 # 1 "../../libgimpbase/gimplimits.h" 1
9754 # 26 "../../libgimpbase/gimplimits.h"
9755 # 47 "../../libgimpbase/gimplimits.h"
9756 # 30 "../../libgimpbase/gimpbase.h" 2
9757
9758 # 1 "../../libgimpbase/gimpmemsize.h" 1
9759 # 23 "../../libgimpbase/gimpmemsize.h"
9760
9761
9762
9763
9764
9765
9766 GType gimp_memsize_get_type (void) __attribute__((__const__));
9767
9768 gchar * gimp_memsize_serialize (guint64 memsize);
9769 gboolean gimp_memsize_deserialize (const gchar *string,
9770 guint64 *memsize);
9771
9772 gchar * gimp_memsize_to_string (guint64 memsize);
9773 # 31 "../../libgimpbase/gimpbase.h" 2
9774
9775 # 1 "../../libgimpbase/gimpparasite.h" 1
9776 # 26 "../../libgimpbase/gimpparasite.h"
9777 # 43 "../../libgimpbase/gimpparasite.h"
9778 struct _GimpParasite
9779 {
9780 gchar *name;
9781 guint32 flags;
9782 guint32 size;
9783 gpointer data;
9784
9785 };
9786
9787
9788 GimpParasite * gimp_parasite_new (const gchar *name,
9789 guint32 flags,
9790 guint32 size,
9791 gconstpointer data);
9792 void gimp_parasite_free (GimpParasite *parasite);
9793
9794 GimpParasite * gimp_parasite_copy (const GimpParasite *parasite);
9795
9796 gboolean gimp_parasite_compare (const GimpParasite *a,
9797 const GimpParasite *b);
9798
9799 gboolean gimp_parasite_is_type (const GimpParasite *parasite,
9800 const gchar *name);
9801 gboolean gimp_parasite_is_persistent (const GimpParasite *parasite);
9802 gboolean gimp_parasite_is_undoable (const GimpParasite *parasite);
9803 gboolean gimp_parasite_has_flag (const GimpParasite *parasite,
9804 gulong flag);
9805 gulong gimp_parasite_flags (const GimpParasite *parasite);
9806 const gchar * gimp_parasite_name (const GimpParasite *parasite);
9807 gconstpointer gimp_parasite_data (const GimpParasite *parasite);
9808 glong gimp_parasite_data_size (const GimpParasite *parasite);
9809 # 32 "../../libgimpbase/gimpbase.h" 2
9810
9811 # 1 "../../libgimpbase/gimpunit.h" 1
9812 # 26 "../../libgimpbase/gimpunit.h"
9813
9814
9815
9816
9817
9818
9819
9820 GType gimp_unit_get_type (void) __attribute__((__const__));
9821
9822
9823 gint gimp_unit_get_number_of_units (void);
9824 gint gimp_unit_get_number_of_built_in_units (void) __attribute__((__const__));
9825
9826 GimpUnit gimp_unit_new (gchar *identifier,
9827 gdouble factor,
9828 gint digits,
9829 gchar *symbol,
9830 gchar *abbreviation,
9831 gchar *singular,
9832 gchar *plural);
9833
9834 gboolean gimp_unit_get_deletion_flag (GimpUnit unit);
9835 void gimp_unit_set_deletion_flag (GimpUnit unit,
9836 gboolean deletion_flag);
9837
9838 gdouble gimp_unit_get_factor (GimpUnit unit);
9839
9840 gint gimp_unit_get_digits (GimpUnit unit);
9841
9842 const gchar * gimp_unit_get_identifier (GimpUnit unit);
9843
9844 const gchar * gimp_unit_get_symbol (GimpUnit unit);
9845 const gchar * gimp_unit_get_abbreviation (GimpUnit unit);
9846 const gchar * gimp_unit_get_singular (GimpUnit unit);
9847 const gchar * gimp_unit_get_plural (GimpUnit unit);
9848 # 33 "../../libgimpbase/gimpbase.h" 2
9849
9850 # 1 "../../libgimpbase/gimputils.h" 1
9851 # 23 "../../libgimpbase/gimputils.h"
9852
9853
9854
9855 gchar * gimp_utf8_strtrim (const gchar *str,
9856 gint max_chars);
9857 gchar * gimp_any_to_utf8 (const gchar *str,
9858 gssize len,
9859 const gchar *warning_format,
9860 ...) __attribute__((__format__ (__printf__, 3, 4)));
9861 const gchar * gimp_filename_to_utf8 (const gchar *filename);
9862
9863 gchar * gimp_strip_uline (const gchar *str);
9864 gchar * gimp_escape_uline (const gchar *str);
9865
9866 GimpEnumDesc * gimp_enum_get_desc (GEnumClass *enum_class,
9867 gint value);
9868 gboolean gimp_enum_get_value (GType enum_type,
9869 gint value,
9870 const gchar **value_name,
9871 const gchar **value_nick,
9872 const gchar **value_desc,
9873 const gchar **value_help);
9874 const gchar * gimp_enum_value_get_desc (GEnumClass *enum_class,
9875 GEnumValue *enum_value);
9876 const gchar * gimp_enum_value_get_help (GEnumClass *enum_class,
9877 GEnumValue *enum_value);
9878
9879 GimpFlagsDesc * gimp_flags_get_first_desc (GFlagsClass *flags_class,
9880 guint value);
9881 gboolean gimp_flags_get_first_value (GType flags_type,
9882 guint value,
9883 const gchar **value_name,
9884 const gchar **value_nick,
9885 const gchar **value_desc,
9886 const gchar **value_help);
9887 const gchar * gimp_flags_value_get_desc (GFlagsClass *flags_class,
9888 GFlagsValue *flags_value);
9889 const gchar * gimp_flags_value_get_help (GFlagsClass *flags_class,
9890 GFlagsValue *flags_value);
9891 # 34 "../../libgimpbase/gimpbase.h" 2
9892
9893 # 1 "../../libgimpbase/gimpversion.h" 1
9894 # 9 "../../libgimpbase/gimpversion.h"
9895 # 24 "../../libgimpbase/gimpversion.h"
9896 # 35 "../../libgimpbase/gimpbase.h" 2
9897
9898
9899
9900 # 1 "../../libgimpbase/gimpsignal.h" 1
9901 # 23 "../../libgimpbase/gimpsignal.h"
9902
9903 # 1 "/usr/include/signal.h" 1 3 4
9904 # 31 "/usr/include/signal.h" 3 4
9905
9906
9907
9908 # 1 "/usr/include/bits/sigset.h" 1 3 4
9909 # 103 "/usr/include/bits/sigset.h" 3 4
9910 extern int __sigismember (__const __sigset_t *, int);
9911 extern int __sigaddset (__sigset_t *, int);
9912 extern int __sigdelset (__sigset_t *, int);
9913 # 117 "/usr/include/bits/sigset.h" 3 4
9914 extern __inline int __sigismember (__const __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return (__set->__val[__word] & __mask) ? 1 : 0; }
9915 extern __inline int __sigaddset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] |= __mask), 0); }
9916 extern __inline int __sigdelset ( __sigset_t *__set, int __sig) { unsigned long int __mask = (((unsigned long int) 1) << (((__sig) - 1) % (8 * sizeof (unsigned long int)))); unsigned long int __word = (((__sig) - 1) / (8 * sizeof (unsigned long int))); return ((__set->__val[__word] &= ~__mask), 0); }
9917 # 34 "/usr/include/signal.h" 2 3 4
9918
9919
9920
9921
9922
9923
9924
9925 typedef __sig_atomic_t sig_atomic_t;
9926 # 58 "/usr/include/signal.h" 3 4
9927
9928 # 1 "/usr/include/bits/signum.h" 1 3 4
9929 # 59 "/usr/include/signal.h" 2 3 4
9930 # 75 "/usr/include/signal.h" 3 4
9931 typedef void (*__sighandler_t) (int);
9932
9933
9934
9935
9936 extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler)
9937 __attribute__ ((__nothrow__));
9938 # 90 "/usr/include/signal.h" 3 4
9939
9940
9941 extern __sighandler_t signal (int __sig, __sighandler_t __handler)
9942 __attribute__ ((__nothrow__));
9943 # 104 "/usr/include/signal.h" 3 4
9944 # 117 "/usr/include/signal.h" 3 4
9945 extern int kill (__pid_t __pid, int __sig) __attribute__ ((__nothrow__));
9946
9947
9948
9949
9950
9951
9952 extern int killpg (__pid_t __pgrp, int __sig) __attribute__ ((__nothrow__));
9953
9954
9955
9956
9957 extern int raise (int __sig) __attribute__ ((__nothrow__));
9958
9959
9960
9961
9962 extern __sighandler_t ssignal (int __sig, __sighandler_t __handler)
9963 __attribute__ ((__nothrow__));
9964 extern int gsignal (int __sig) __attribute__ ((__nothrow__));
9965
9966
9967
9968
9969 extern void psignal (int __sig, __const char *__s);
9970 # 153 "/usr/include/signal.h" 3 4
9971 extern int __sigpause (int __sig_or_mask, int __is_sig);
9972 # 181 "/usr/include/signal.h" 3 4
9973 extern int sigblock (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
9974
9975
9976 extern int sigsetmask (int __mask) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
9977
9978
9979 extern int siggetmask (void) __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
9980 # 201 "/usr/include/signal.h" 3 4
9981 typedef __sighandler_t sig_t;
9982 # 212 "/usr/include/signal.h" 3 4
9983
9984 # 1 "/usr/include/bits/siginfo.h" 1 3 4
9985 # 25 "/usr/include/bits/siginfo.h" 3 4
9986
9987 # 1 "/usr/include/bits/wordsize.h" 1 3 4
9988 # 26 "/usr/include/bits/siginfo.h" 2 3 4
9989
9990
9991
9992
9993
9994
9995
9996 typedef union sigval
9997 {
9998 int sival_int;
9999 void *sival_ptr;
10000 } sigval_t;
10001 # 51 "/usr/include/bits/siginfo.h" 3 4
10002 typedef struct siginfo
10003 {
10004 int si_signo;
10005 int si_errno;
10006
10007 int si_code;
10008
10009 union
10010 {
10011 int _pad[((128 / sizeof (int)) - 3)];
10012
10013
10014 struct
10015 {
10016 __pid_t si_pid;
10017 __uid_t si_uid;
10018 } _kill;
10019
10020
10021 struct
10022 {
10023 int si_tid;
10024 int si_overrun;
10025 sigval_t si_sigval;
10026 } _timer;
10027
10028
10029 struct
10030 {
10031 __pid_t si_pid;
10032 __uid_t si_uid;
10033 sigval_t si_sigval;
10034 } _rt;
10035
10036
10037 struct
10038 {
10039 __pid_t si_pid;
10040 __uid_t si_uid;
10041 int si_status;
10042 __clock_t si_utime;
10043 __clock_t si_stime;
10044 } _sigchld;
10045
10046
10047 struct
10048 {
10049 void *si_addr;
10050 } _sigfault;
10051
10052
10053 struct
10054 {
10055 long int si_band;
10056 int si_fd;
10057 } _sigpoll;
10058 } _sifields;
10059 } siginfo_t;
10060 # 129 "/usr/include/bits/siginfo.h" 3 4
10061 enum
10062 {
10063 SI_ASYNCNL = -60,
10064
10065 SI_TKILL = -6,
10066
10067 SI_SIGIO,
10068
10069 SI_ASYNCIO,
10070
10071 SI_MESGQ,
10072
10073 SI_TIMER,
10074
10075 SI_QUEUE,
10076
10077 SI_USER,
10078
10079 SI_KERNEL = 0x80
10080
10081 };
10082
10083
10084
10085 enum
10086 {
10087 ILL_ILLOPC = 1,
10088
10089 ILL_ILLOPN,
10090
10091 ILL_ILLADR,
10092
10093 ILL_ILLTRP,
10094
10095 ILL_PRVOPC,
10096
10097 ILL_PRVREG,
10098
10099 ILL_COPROC,
10100
10101 ILL_BADSTK
10102
10103 };
10104
10105
10106 enum
10107 {
10108 FPE_INTDIV = 1,
10109
10110 FPE_INTOVF,
10111
10112 FPE_FLTDIV,
10113
10114 FPE_FLTOVF,
10115
10116 FPE_FLTUND,
10117
10118 FPE_FLTRES,
10119
10120 FPE_FLTINV,
10121
10122 FPE_FLTSUB
10123
10124 };
10125
10126
10127 enum
10128 {
10129 SEGV_MAPERR = 1,
10130
10131 SEGV_ACCERR
10132
10133 };
10134
10135
10136 enum
10137 {
10138 BUS_ADRALN = 1,
10139
10140 BUS_ADRERR,
10141
10142 BUS_OBJERR
10143
10144 };
10145
10146
10147 enum
10148 {
10149 TRAP_BRKPT = 1,
10150
10151 TRAP_TRACE
10152
10153 };
10154
10155
10156 enum
10157 {
10158 CLD_EXITED = 1,
10159
10160 CLD_KILLED,
10161
10162 CLD_DUMPED,
10163
10164 CLD_TRAPPED,
10165
10166 CLD_STOPPED,
10167
10168 CLD_CONTINUED
10169
10170 };
10171
10172
10173 enum
10174 {
10175 POLL_IN = 1,
10176
10177 POLL_OUT,
10178
10179 POLL_MSG,
10180
10181 POLL_ERR,
10182
10183 POLL_PRI,
10184
10185 POLL_HUP
10186
10187 };
10188 # 273 "/usr/include/bits/siginfo.h" 3 4
10189 typedef struct sigevent
10190 {
10191 sigval_t sigev_value;
10192 int sigev_signo;
10193 int sigev_notify;
10194
10195 union
10196 {
10197 int _pad[((64 / sizeof (int)) - 3)];
10198
10199
10200
10201 __pid_t _tid;
10202
10203 struct
10204 {
10205 void (*_function) (sigval_t);
10206 void *_attribute;
10207 } _sigev_thread;
10208 } _sigev_un;
10209 } sigevent_t;
10210
10211
10212
10213
10214
10215
10216 enum
10217 {
10218 SIGEV_SIGNAL = 0,
10219
10220 SIGEV_NONE,
10221
10222 SIGEV_THREAD,
10223
10224
10225 SIGEV_THREAD_ID = 4
10226
10227 };
10228 # 213 "/usr/include/signal.h" 2 3 4
10229
10230
10231
10232 extern int sigemptyset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
10233
10234
10235 extern int sigfillset (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
10236
10237
10238 extern int sigaddset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
10239
10240
10241 extern int sigdelset (sigset_t *__set, int __signo) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
10242
10243
10244 extern int sigismember (__const sigset_t *__set, int __signo)
10245 __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
10246 # 246 "/usr/include/signal.h" 3 4
10247
10248 # 1 "/usr/include/bits/sigaction.h" 1 3 4
10249 # 25 "/usr/include/bits/sigaction.h" 3 4
10250 struct sigaction
10251 {
10252
10253
10254 union
10255 {
10256
10257 __sighandler_t sa_handler;
10258
10259 void (*sa_sigaction) (int, siginfo_t *, void *);
10260 }
10261 __sigaction_handler;
10262
10263
10264
10265
10266
10267
10268
10269 __sigset_t sa_mask;
10270
10271
10272 int sa_flags;
10273
10274
10275 void (*sa_restorer) (void);
10276 };
10277 # 247 "/usr/include/signal.h" 2 3 4
10278
10279
10280 extern int sigprocmask (int __how, __const sigset_t *__restrict __set,
10281 sigset_t *__restrict __oset) __attribute__ ((__nothrow__));
10282
10283
10284
10285
10286
10287
10288 extern int sigsuspend (__const sigset_t *__set) __attribute__ ((__nonnull__ (1)));
10289
10290
10291 extern int sigaction (int __sig, __const struct sigaction *__restrict __act,
10292 struct sigaction *__restrict __oact) __attribute__ ((__nothrow__));
10293
10294
10295 extern int sigpending (sigset_t *__set) __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1)));
10296
10297
10298
10299
10300
10301
10302 extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig)
10303 __attribute__ ((__nonnull__ (1, 2)));
10304
10305
10306
10307
10308
10309
10310 extern int sigwaitinfo (__const sigset_t *__restrict __set,
10311 siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1)));
10312
10313
10314
10315
10316
10317
10318 extern int sigtimedwait (__const sigset_t *__restrict __set,
10319 siginfo_t *__restrict __info,
10320 __const struct timespec *__restrict __timeout)
10321 __attribute__ ((__nonnull__ (1)));
10322
10323
10324
10325 extern int sigqueue (__pid_t __pid, int __sig, __const union sigval __val)
10326 __attribute__ ((__nothrow__));
10327 # 304 "/usr/include/signal.h" 3 4
10328 extern __const char *__const _sys_siglist[65];
10329 extern __const char *__const sys_siglist[65];
10330
10331
10332 struct sigvec
10333 {
10334 __sighandler_t sv_handler;
10335 int sv_mask;
10336
10337 int sv_flags;
10338
10339 };
10340 # 328 "/usr/include/signal.h" 3 4
10341 extern int sigvec (int __sig, __const struct sigvec *__vec,
10342 struct sigvec *__ovec) __attribute__ ((__nothrow__));
10343
10344
10345
10346
10347 # 1 "/usr/include/bits/sigcontext.h" 1 3 4
10348 # 28 "/usr/include/bits/sigcontext.h" 3 4
10349
10350 # 1 "/usr/include/asm/sigcontext.h" 1 3 4
10351
10352
10353
10354
10355 # 1 "/usr/include/linux/compiler.h" 1 3 4
10356 # 5 "/usr/include/asm/sigcontext.h" 2 3 4
10357 # 20 "/usr/include/asm/sigcontext.h" 3 4
10358 struct _fpreg {
10359 unsigned short significand[4];
10360 unsigned short exponent;
10361 };
10362
10363 struct _fpxreg {
10364 unsigned short significand[4];
10365 unsigned short exponent;
10366 unsigned short padding[3];
10367 };
10368
10369 struct _xmmreg {
10370 unsigned long element[4];
10371 };
10372
10373 struct _fpstate {
10374
10375 unsigned long cw;
10376 unsigned long sw;
10377 unsigned long tag;
10378 unsigned long ipoff;
10379 unsigned long cssel;
10380 unsigned long dataoff;
10381 unsigned long datasel;
10382 struct _fpreg _st[8];
10383 unsigned short status;
10384 unsigned short magic;
10385
10386
10387 unsigned long _fxsr_env[6];
10388 unsigned long mxcsr;
10389 unsigned long reserved;
10390 struct _fpxreg _fxsr_st[8];
10391 struct _xmmreg _xmm[8];
10392 unsigned long padding[56];
10393 };
10394
10395
10396
10397 struct sigcontext {
10398 unsigned short gs, __gsh;
10399 unsigned short fs, __fsh;
10400 unsigned short es, __esh;
10401 unsigned short ds, __dsh;
10402 unsigned long edi;
10403 unsigned long esi;
10404 unsigned long ebp;
10405 unsigned long esp;
10406 unsigned long ebx;
10407 unsigned long edx;
10408 unsigned long ecx;
10409 unsigned long eax;
10410 unsigned long trapno;
10411 unsigned long err;
10412 unsigned long eip;
10413 unsigned short cs, __csh;
10414 unsigned long eflags;
10415 unsigned long esp_at_signal;
10416 unsigned short ss, __ssh;
10417 struct _fpstate * fpstate;
10418 unsigned long oldmask;
10419 unsigned long cr2;
10420 };
10421 # 29 "/usr/include/bits/sigcontext.h" 2 3 4
10422 # 334 "/usr/include/signal.h" 2 3 4
10423
10424
10425 extern int sigreturn (struct sigcontext *__scp) __attribute__ ((__nothrow__));
10426 # 346 "/usr/include/signal.h" 3 4
10427 extern int siginterrupt (int __sig, int __interrupt) __attribute__ ((__nothrow__));
10428
10429
10430 # 1 "/usr/include/bits/sigstack.h" 1 3 4
10431 # 26 "/usr/include/bits/sigstack.h" 3 4
10432 struct sigstack
10433 {
10434 void *ss_sp;
10435 int ss_onstack;
10436 };
10437
10438
10439
10440 enum
10441 {
10442 SS_ONSTACK = 1,
10443
10444 SS_DISABLE
10445
10446 };
10447 # 50 "/usr/include/bits/sigstack.h" 3 4
10448 typedef struct sigaltstack
10449 {
10450 void *ss_sp;
10451 int ss_flags;
10452 size_t ss_size;
10453 } stack_t;
10454 # 349 "/usr/include/signal.h" 2 3 4
10455 # 357 "/usr/include/signal.h" 3 4
10456 extern int sigstack (struct sigstack *__ss, struct sigstack *__oss)
10457 __attribute__ ((__nothrow__)) __attribute__ ((__deprecated__));
10458
10459
10460
10461 extern int sigaltstack (__const struct sigaltstack *__restrict __ss,
10462 struct sigaltstack *__restrict __oss) __attribute__ ((__nothrow__));
10463 # 387 "/usr/include/signal.h" 3 4
10464
10465 # 1 "/usr/include/bits/sigthread.h" 1 3 4
10466 # 31 "/usr/include/bits/sigthread.h" 3 4
10467 extern int pthread_sigmask (int __how,
10468 __const __sigset_t *__restrict __newmask,
10469 __sigset_t *__restrict __oldmask)__attribute__ ((__nothrow__));
10470
10471
10472 extern int pthread_kill (pthread_t __threadid, int __signo) __attribute__ ((__nothrow__));
10473 # 388 "/usr/include/signal.h" 2 3 4
10474
10475
10476
10477
10478
10479
10480 extern int __libc_current_sigrtmin (void) __attribute__ ((__nothrow__));
10481
10482 extern int __libc_current_sigrtmax (void) __attribute__ ((__nothrow__));
10483 # 24 "../../libgimpbase/gimpsignal.h" 2
10484 # 34 "../../libgimpbase/gimpsignal.h"
10485 typedef void (* GimpSignalHandlerFunc) (gint signum);
10486
10487 GimpSignalHandlerFunc gimp_signal_private (gint signum,
10488 GimpSignalHandlerFunc handler,
10489 gint flags);
10490 # 38 "../../libgimpbase/gimpbase.h" 2
10491 # 30 "../../libgimp/gimp.h" 2
10492
10493
10494 # 1 "../../libgimp/gimpenums.h" 1
10495 # 25 "../../libgimp/gimpenums.h"
10496
10497
10498
10499
10500
10501 GType gimp_add_mask_type_get_type (void) __attribute__((__const__));
10502
10503 typedef enum
10504 {
10505 GIMP_ADD_WHITE_MASK,
10506 GIMP_ADD_BLACK_MASK,
10507 GIMP_ADD_ALPHA_MASK,
10508 GIMP_ADD_ALPHA_TRANSFER_MASK,
10509 GIMP_ADD_SELECTION_MASK,
10510 GIMP_ADD_COPY_MASK
10511 } GimpAddMaskType;
10512
10513
10514
10515
10516 GType gimp_blend_mode_get_type (void) __attribute__((__const__));
10517
10518 typedef enum
10519 {
10520 GIMP_FG_BG_RGB_MODE,
10521 GIMP_FG_BG_HSV_MODE,
10522 GIMP_FG_TRANSPARENT_MODE,
10523 GIMP_CUSTOM_MODE
10524 } GimpBlendMode;
10525
10526
10527
10528
10529 GType gimp_brush_application_mode_get_type (void) __attribute__((__const__));
10530
10531 typedef enum
10532 {
10533 GIMP_BRUSH_HARD,
10534 GIMP_BRUSH_SOFT
10535 } GimpBrushApplicationMode;
10536
10537
10538
10539
10540 GType gimp_bucket_fill_mode_get_type (void) __attribute__((__const__));
10541
10542 typedef enum
10543 {
10544 GIMP_FG_BUCKET_FILL,
10545 GIMP_BG_BUCKET_FILL,
10546 GIMP_PATTERN_BUCKET_FILL
10547 } GimpBucketFillMode;
10548
10549
10550
10551
10552 GType gimp_channel_ops_get_type (void) __attribute__((__const__));
10553
10554 typedef enum
10555 {
10556 GIMP_CHANNEL_OP_ADD,
10557 GIMP_CHANNEL_OP_SUBTRACT,
10558 GIMP_CHANNEL_OP_REPLACE,
10559 GIMP_CHANNEL_OP_INTERSECT
10560 } GimpChannelOps;
10561
10562
10563
10564
10565 GType gimp_channel_type_get_type (void) __attribute__((__const__));
10566
10567 typedef enum
10568 {
10569 GIMP_RED_CHANNEL,
10570 GIMP_GREEN_CHANNEL,
10571 GIMP_BLUE_CHANNEL,
10572 GIMP_GRAY_CHANNEL,
10573 GIMP_INDEXED_CHANNEL,
10574 GIMP_ALPHA_CHANNEL
10575 } GimpChannelType;
10576
10577
10578
10579
10580 GType gimp_clone_type_get_type (void) __attribute__((__const__));
10581
10582 typedef enum
10583 {
10584 GIMP_IMAGE_CLONE,
10585 GIMP_PATTERN_CLONE
10586 } GimpCloneType;
10587
10588
10589
10590
10591 GType gimp_convert_dither_type_get_type (void) __attribute__((__const__));
10592
10593 typedef enum
10594 {
10595 GIMP_NO_DITHER,
10596 GIMP_FS_DITHER,
10597 GIMP_FSLOWBLEED_DITHER,
10598 GIMP_FIXED_DITHER
10599 } GimpConvertDitherType;
10600
10601
10602
10603
10604 GType gimp_convert_palette_type_get_type (void) __attribute__((__const__));
10605
10606 typedef enum
10607 {
10608 GIMP_MAKE_PALETTE,
10609 GIMP_REUSE_PALETTE,
10610 GIMP_WEB_PALETTE,
10611 GIMP_MONO_PALETTE,
10612 GIMP_CUSTOM_PALETTE
10613 } GimpConvertPaletteType;
10614
10615
10616
10617
10618 GType gimp_convolution_type_get_type (void) __attribute__((__const__));
10619
10620 typedef enum
10621 {
10622 GIMP_NORMAL_CONVOL,
10623 GIMP_ABSOLUTE_CONVOL,
10624 GIMP_NEGATIVE_CONVOL
10625 } GimpConvolutionType;
10626
10627
10628
10629
10630 GType gimp_convolve_type_get_type (void) __attribute__((__const__));
10631
10632 typedef enum
10633 {
10634 GIMP_BLUR_CONVOLVE,
10635 GIMP_SHARPEN_CONVOLVE
10636 } GimpConvolveType;
10637
10638
10639
10640
10641 GType gimp_dodge_burn_type_get_type (void) __attribute__((__const__));
10642
10643 typedef enum
10644 {
10645 GIMP_DODGE,
10646 GIMP_BURN
10647 } GimpDodgeBurnType;
10648
10649
10650
10651
10652 GType gimp_fill_type_get_type (void) __attribute__((__const__));
10653
10654 typedef enum
10655 {
10656 GIMP_FOREGROUND_FILL,
10657 GIMP_BACKGROUND_FILL,
10658 GIMP_WHITE_FILL,
10659 GIMP_TRANSPARENT_FILL,
10660 GIMP_PATTERN_FILL
10661 } GimpFillType;
10662
10663
10664
10665
10666 GType gimp_gradient_segment_color_get_type (void) __attribute__((__const__));
10667
10668 typedef enum
10669 {
10670 GIMP_GRADIENT_SEGMENT_RGB,
10671 GIMP_GRADIENT_SEGMENT_HSV_CCW,
10672 GIMP_GRADIENT_SEGMENT_HSV_CW
10673 } GimpGradientSegmentColor;
10674
10675
10676
10677
10678 GType gimp_gradient_segment_type_get_type (void) __attribute__((__const__));
10679
10680 typedef enum
10681 {
10682 GIMP_GRADIENT_SEGMENT_LINEAR,
10683 GIMP_GRADIENT_SEGMENT_CURVED,
10684 GIMP_GRADIENT_SEGMENT_SINE,
10685 GIMP_GRADIENT_SEGMENT_SPHERE_INCREASING,
10686 GIMP_GRADIENT_SEGMENT_SPHERE_DECREASING
10687 } GimpGradientSegmentType;
10688
10689
10690
10691
10692 GType gimp_gradient_type_get_type (void) __attribute__((__const__));
10693
10694 typedef enum
10695 {
10696 GIMP_GRADIENT_LINEAR,
10697 GIMP_GRADIENT_BILINEAR,
10698 GIMP_GRADIENT_RADIAL,
10699 GIMP_GRADIENT_SQUARE,
10700 GIMP_GRADIENT_CONICAL_SYMMETRIC,
10701 GIMP_GRADIENT_CONICAL_ASYMMETRIC,
10702 GIMP_GRADIENT_SHAPEBURST_ANGULAR,
10703 GIMP_GRADIENT_SHAPEBURST_SPHERICAL,
10704 GIMP_GRADIENT_SHAPEBURST_DIMPLED,
10705 GIMP_GRADIENT_SPIRAL_CLOCKWISE,
10706 GIMP_GRADIENT_SPIRAL_ANTICLOCKWISE
10707 } GimpGradientType;
10708
10709
10710
10711
10712 GType gimp_histogram_channel_get_type (void) __attribute__((__const__));
10713
10714 typedef enum
10715 {
10716 GIMP_HISTOGRAM_VALUE,
10717 GIMP_HISTOGRAM_RED,
10718 GIMP_HISTOGRAM_GREEN,
10719 GIMP_HISTOGRAM_BLUE,
10720 GIMP_HISTOGRAM_ALPHA
10721 } GimpHistogramChannel;
10722
10723
10724
10725
10726 GType gimp_hue_range_get_type (void) __attribute__((__const__));
10727
10728 typedef enum
10729 {
10730 GIMP_ALL_HUES,
10731 GIMP_RED_HUES,
10732 GIMP_YELLOW_HUES,
10733 GIMP_GREEN_HUES,
10734 GIMP_CYAN_HUES,
10735 GIMP_BLUE_HUES,
10736 GIMP_MAGENTA_HUES
10737 } GimpHueRange;
10738
10739
10740
10741
10742 GType gimp_icon_type_get_type (void) __attribute__((__const__));
10743
10744 typedef enum
10745 {
10746 GIMP_ICON_TYPE_STOCK_ID,
10747 GIMP_ICON_TYPE_INLINE_PIXBUF,
10748 GIMP_ICON_TYPE_IMAGE_FILE
10749 } GimpIconType;
10750
10751
10752
10753
10754 GType gimp_interpolation_type_get_type (void) __attribute__((__const__));
10755
10756 typedef enum
10757 {
10758 GIMP_INTERPOLATION_NONE,
10759 GIMP_INTERPOLATION_LINEAR,
10760 GIMP_INTERPOLATION_CUBIC
10761 } GimpInterpolationType;
10762
10763
10764
10765
10766 GType gimp_layer_mode_effects_get_type (void) __attribute__((__const__));
10767
10768 typedef enum
10769 {
10770 GIMP_NORMAL_MODE,
10771 GIMP_DISSOLVE_MODE,
10772 GIMP_BEHIND_MODE,
10773 GIMP_MULTIPLY_MODE,
10774 GIMP_SCREEN_MODE,
10775 GIMP_OVERLAY_MODE,
10776 GIMP_DIFFERENCE_MODE,
10777 GIMP_ADDITION_MODE,
10778 GIMP_SUBTRACT_MODE,
10779 GIMP_DARKEN_ONLY_MODE,
10780 GIMP_LIGHTEN_ONLY_MODE,
10781 GIMP_HUE_MODE,
10782 GIMP_SATURATION_MODE,
10783 GIMP_COLOR_MODE,
10784 GIMP_VALUE_MODE,
10785 GIMP_DIVIDE_MODE,
10786 GIMP_DODGE_MODE,
10787 GIMP_BURN_MODE,
10788 GIMP_HARDLIGHT_MODE,
10789 GIMP_SOFTLIGHT_MODE,
10790 GIMP_GRAIN_EXTRACT_MODE,
10791 GIMP_GRAIN_MERGE_MODE,
10792 GIMP_COLOR_ERASE_MODE
10793 } GimpLayerModeEffects;
10794
10795
10796
10797
10798 GType gimp_mask_apply_mode_get_type (void) __attribute__((__const__));
10799
10800 typedef enum
10801 {
10802 GIMP_MASK_APPLY,
10803 GIMP_MASK_DISCARD
10804 } GimpMaskApplyMode;
10805
10806
10807
10808
10809 GType gimp_merge_type_get_type (void) __attribute__((__const__));
10810
10811 typedef enum
10812 {
10813 GIMP_EXPAND_AS_NECESSARY,
10814 GIMP_CLIP_TO_IMAGE,
10815 GIMP_CLIP_TO_BOTTOM_LAYER,
10816 GIMP_FLATTEN_IMAGE
10817 } GimpMergeType;
10818
10819
10820
10821
10822 GType gimp_offset_type_get_type (void) __attribute__((__const__));
10823
10824 typedef enum
10825 {
10826 GIMP_OFFSET_BACKGROUND,
10827 GIMP_OFFSET_TRANSPARENT
10828 } GimpOffsetType;
10829
10830
10831
10832
10833 GType gimp_orientation_type_get_type (void) __attribute__((__const__));
10834
10835 typedef enum
10836 {
10837 GIMP_ORIENTATION_HORIZONTAL,
10838 GIMP_ORIENTATION_VERTICAL,
10839 GIMP_ORIENTATION_UNKNOWN
10840 } GimpOrientationType;
10841
10842
10843
10844
10845 GType gimp_paint_application_mode_get_type (void) __attribute__((__const__));
10846
10847 typedef enum
10848 {
10849 GIMP_PAINT_CONSTANT,
10850 GIMP_PAINT_INCREMENTAL
10851 } GimpPaintApplicationMode;
10852
10853
10854
10855
10856 GType gimp_repeat_mode_get_type (void) __attribute__((__const__));
10857
10858 typedef enum
10859 {
10860 GIMP_REPEAT_NONE,
10861 GIMP_REPEAT_SAWTOOTH,
10862 GIMP_REPEAT_TRIANGULAR
10863 } GimpRepeatMode;
10864
10865
10866
10867
10868 GType gimp_rotation_type_get_type (void) __attribute__((__const__));
10869
10870 typedef enum
10871 {
10872 GIMP_ROTATE_90,
10873 GIMP_ROTATE_180,
10874 GIMP_ROTATE_270
10875 } GimpRotationType;
10876
10877
10878
10879
10880 GType gimp_run_mode_get_type (void) __attribute__((__const__));
10881
10882 typedef enum
10883 {
10884 GIMP_RUN_INTERACTIVE,
10885 GIMP_RUN_NONINTERACTIVE,
10886 GIMP_RUN_WITH_LAST_VALS
10887 } GimpRunMode;
10888
10889
10890
10891
10892 GType gimp_size_type_get_type (void) __attribute__((__const__));
10893
10894 typedef enum
10895 {
10896 GIMP_PIXELS,
10897 GIMP_POINTS
10898 } GimpSizeType;
10899
10900
10901
10902
10903 GType gimp_transfer_mode_get_type (void) __attribute__((__const__));
10904
10905 typedef enum
10906 {
10907 GIMP_SHADOWS,
10908 GIMP_MIDTONES,
10909 GIMP_HIGHLIGHTS
10910 } GimpTransferMode;
10911
10912
10913
10914
10915 GType gimp_transform_direction_get_type (void) __attribute__((__const__));
10916
10917 typedef enum
10918 {
10919 GIMP_TRANSFORM_FORWARD,
10920 GIMP_TRANSFORM_BACKWARD
10921 } GimpTransformDirection;
10922
10923
10924 void _gimp_enums_init (void);
10925
10926 const gchar ** gimp_enums_get_type_names (gint *n_type_names);
10927 # 32 "../../libgimp/gimp.h" 2
10928
10929 # 1 "../../libgimp/gimptypes.h" 1
10930 # 27 "../../libgimp/gimptypes.h"
10931
10932
10933
10934
10935
10936 typedef struct _GimpPlugInInfo GimpPlugInInfo;
10937 typedef struct _GimpTile GimpTile;
10938 typedef struct _GimpDrawable GimpDrawable;
10939 typedef struct _GimpPixelRgn GimpPixelRgn;
10940 typedef struct _GimpParamDef GimpParamDef;
10941 typedef struct _GimpParamRegion GimpParamRegion;
10942 typedef union _GimpParamData GimpParamData;
10943 typedef struct _GimpParam GimpParam;
10944 # 33 "../../libgimp/gimp.h" 2
10945
10946
10947 # 1 "../../libgimp/gimpbrushes.h" 1
10948 # 25 "../../libgimp/gimpbrushes.h"
10949 # 39 "../../libgimp/gimpbrushes.h"
10950 # 35 "../../libgimp/gimp.h" 2
10951
10952 # 1 "../../libgimp/gimpbrushselect.h" 1
10953 # 25 "../../libgimp/gimpbrushselect.h"
10954
10955
10956
10957 typedef void (* GimpRunBrushCallback) (const gchar *brush_name,
10958 gdouble opacity,
10959 gint spacing,
10960 GimpLayerModeEffects paint_mode,
10961 gint width,
10962 gint height,
10963 const guchar *mask_data,
10964 gboolean dialog_closing,
10965 gpointer user_data);
10966
10967
10968 const gchar * gimp_brush_select_new (const gchar *title,
10969 const gchar *brush_name,
10970 gdouble opacity,
10971 gint spacing,
10972 GimpLayerModeEffects paint_mode,
10973 GimpRunBrushCallback callback,
10974 gpointer data);
10975 void gimp_brush_select_destroy (const gchar *brush_callback);
10976 # 36 "../../libgimp/gimp.h" 2
10977
10978 # 1 "../../libgimp/gimpchannel.h" 1
10979 # 25 "../../libgimp/gimpchannel.h"
10980
10981
10982
10983
10984
10985 gint32 gimp_channel_new (gint32 image_ID,
10986 const gchar *name,
10987 guint width,
10988 guint height,
10989 gdouble opacity,
10990 const GimpRGB *color);
10991 # 37 "../../libgimp/gimp.h" 2
10992
10993 # 1 "../../libgimp/gimpdrawable.h" 1
10994 # 25 "../../libgimp/gimpdrawable.h"
10995
10996
10997
10998
10999
11000 struct _GimpDrawable
11001 {
11002 gint32 drawable_id;
11003 guint width;
11004 guint height;
11005 guint bpp;
11006 guint ntile_rows;
11007 guint ntile_cols;
11008 GimpTile *tiles;
11009 GimpTile *shadow_tiles;
11010 };
11011
11012
11013 GimpDrawable * gimp_drawable_get (gint32 drawable_ID);
11014 void gimp_drawable_detach (GimpDrawable *drawable);
11015 void gimp_drawable_flush (GimpDrawable *drawable);
11016 GimpTile * gimp_drawable_get_tile (GimpDrawable *drawable,
11017 gboolean shadow,
11018 gint row,
11019 gint col);
11020 GimpTile * gimp_drawable_get_tile2 (GimpDrawable *drawable,
11021 gboolean shadow,
11022 gint x,
11023 gint y);
11024
11025 void gimp_drawable_get_color_uchar (gint32 drawable_ID,
11026 const GimpRGB *color,
11027 guchar *color_uchar);
11028
11029 guchar * gimp_drawable_get_thumbnail_data (gint32 drawable_ID,
11030 gint *width,
11031 gint *height,
11032 gint *bpp);
11033 guchar * gimp_drawable_get_sub_thumbnail_data (gint32 drawable_ID,
11034 gint src_x,
11035 gint src_y,
11036 gint src_width,
11037 gint src_height,
11038 gint *dest_width,
11039 gint *dest_height,
11040 gint *bpp);
11041
11042 void gimp_drawable_attach_new_parasite (gint32 drawable_ID,
11043 const gchar *name,
11044 gint flags,
11045 gint size,
11046 gconstpointer data);
11047 # 38 "../../libgimp/gimp.h" 2
11048
11049 # 1 "../../libgimp/gimpfontselect.h" 1
11050 # 25 "../../libgimp/gimpfontselect.h"
11051
11052
11053
11054 typedef void (* GimpRunFontCallback) (const gchar *font_name,
11055 gboolean dialog_closing,
11056 gpointer user_data);
11057
11058
11059 const gchar * gimp_font_select_new (const gchar *title,
11060 const gchar *font_name,
11061 GimpRunFontCallback callback,
11062 gpointer data);
11063 void gimp_font_select_destroy (const gchar *font_callback);
11064 # 39 "../../libgimp/gimp.h" 2
11065
11066 # 1 "../../libgimp/gimpgradients.h" 1
11067 # 25 "../../libgimp/gimpgradients.h"
11068 # 36 "../../libgimp/gimpgradients.h"
11069 # 40 "../../libgimp/gimp.h" 2
11070
11071 # 1 "../../libgimp/gimpgradientselect.h" 1
11072 # 25 "../../libgimp/gimpgradientselect.h"
11073
11074
11075
11076 typedef void (* GimpRunGradientCallback) (const gchar *gradient_name,
11077 gint width,
11078 const gdouble *grad_data,
11079 gboolean dialog_closing,
11080 gpointer user_data);
11081
11082
11083 const gchar * gimp_gradient_select_new (const gchar *title,
11084 const gchar *gradient_name,
11085 gint sample_size,
11086 GimpRunGradientCallback callback,
11087 gpointer data);
11088 void gimp_gradient_select_destroy (const gchar *gradient_callback);
11089 # 41 "../../libgimp/gimp.h" 2
11090
11091 # 1 "../../libgimp/gimpimage.h" 1
11092 # 25 "../../libgimp/gimpimage.h"
11093 # 38 "../../libgimp/gimpimage.h"
11094 guchar * gimp_image_get_colormap (gint32 image_ID,
11095 gint *num_colors);
11096 gboolean gimp_image_set_colormap (gint32 image_ID,
11097 const guchar *colormap,
11098 gint num_colors);
11099
11100 guchar * gimp_image_get_thumbnail_data (gint32 image_ID,
11101 gint *width,
11102 gint *height,
11103 gint *bpp);
11104
11105 void gimp_image_attach_new_parasite (gint32 image_ID,
11106 const gchar *name,
11107 gint flags,
11108 gint size,
11109 gconstpointer data);
11110 # 42 "../../libgimp/gimp.h" 2
11111
11112 # 1 "../../libgimp/gimplayer.h" 1
11113 # 25 "../../libgimp/gimplayer.h"
11114
11115
11116
11117
11118
11119 gint32 gimp_layer_new (gint32 image_ID,
11120 const gchar *name,
11121 gint width,
11122 gint height,
11123 GimpImageType type,
11124 gdouble opacity,
11125 GimpLayerModeEffects mode);
11126 gint32 gimp_layer_copy (gint32 layer_ID);
11127 # 43 "../../libgimp/gimp.h" 2
11128
11129 # 1 "../../libgimp/gimppalette.h" 1
11130 # 25 "../../libgimp/gimppalette.h"
11131 # 41 "../../libgimp/gimppalette.h"
11132 # 44 "../../libgimp/gimp.h" 2
11133
11134 # 1 "../../libgimp/gimppalettes.h" 1
11135 # 25 "../../libgimp/gimppalettes.h"
11136 # 35 "../../libgimp/gimppalettes.h"
11137 # 45 "../../libgimp/gimp.h" 2
11138
11139 # 1 "../../libgimp/gimppaletteselect.h" 1
11140 # 25 "../../libgimp/gimppaletteselect.h"
11141
11142
11143
11144 typedef void (* GimpRunPaletteCallback) (const gchar *palette_name,
11145 gboolean dialog_closing,
11146 gpointer user_data);
11147
11148
11149 const gchar * gimp_palette_select_new (const gchar *title,
11150 const gchar *palette_name,
11151 GimpRunPaletteCallback callback,
11152 gpointer data);
11153 void gimp_palette_select_destroy (const gchar *palette_callback);
11154 # 46 "../../libgimp/gimp.h" 2
11155
11156 # 1 "../../libgimp/gimppatterns.h" 1
11157 # 25 "../../libgimp/gimppatterns.h"
11158 # 35 "../../libgimp/gimppatterns.h"
11159 # 47 "../../libgimp/gimp.h" 2
11160
11161 # 1 "../../libgimp/gimppatternselect.h" 1
11162 # 25 "../../libgimp/gimppatternselect.h"
11163
11164
11165
11166 typedef void (* GimpRunPatternCallback) (const gchar *pattern_name,
11167 gint width,
11168 gint height,
11169 gint bpp,
11170 const guchar *mask_data,
11171 gboolean dialog_closing,
11172 gpointer user_data);
11173
11174
11175 const gchar * gimp_pattern_select_new (const gchar *title,
11176 const gchar *pattern_name,
11177 GimpRunPatternCallback callback,
11178 gpointer data);
11179 void gimp_pattern_select_destroy (const gchar *pattern_callback);
11180 # 48 "../../libgimp/gimp.h" 2
11181
11182 # 1 "../../libgimp/gimppixelfetcher.h" 1
11183 # 29 "../../libgimp/gimppixelfetcher.h"
11184
11185
11186
11187
11188 typedef enum
11189 {
11190 GIMP_PIXEL_FETCHER_EDGE_NONE,
11191 GIMP_PIXEL_FETCHER_EDGE_WRAP,
11192 GIMP_PIXEL_FETCHER_EDGE_SMEAR,
11193 GIMP_PIXEL_FETCHER_EDGE_BLACK,
11194 GIMP_PIXEL_FETCHER_EDGE_BACKGROUND
11195 } GimpPixelFetcherEdgeMode;
11196
11197
11198 typedef struct _GimpPixelFetcher GimpPixelFetcher;
11199
11200
11201 GimpPixelFetcher * gimp_pixel_fetcher_new (GimpDrawable *drawable,
11202 gboolean shadow);
11203 void gimp_pixel_fetcher_destroy (GimpPixelFetcher *pf);
11204
11205 void gimp_pixel_fetcher_set_edge_mode (GimpPixelFetcher *pf,
11206 GimpPixelFetcherEdgeMode mode);
11207 void gimp_pixel_fetcher_set_bg_color (GimpPixelFetcher *pf,
11208 const GimpRGB *color);
11209
11210 void gimp_pixel_fetcher_get_pixel (GimpPixelFetcher *pf,
11211 gint x,
11212 gint y,
11213 guchar *pixel);
11214 void gimp_pixel_fetcher_put_pixel (GimpPixelFetcher *pf,
11215 gint x,
11216 gint y,
11217 const guchar *pixel);
11218 # 49 "../../libgimp/gimp.h" 2
11219
11220 # 1 "../../libgimp/gimppixelrgn.h" 1
11221 # 25 "../../libgimp/gimppixelrgn.h"
11222
11223
11224
11225
11226
11227 struct _GimpPixelRgn
11228 {
11229 guchar *data;
11230 GimpDrawable *drawable;
11231 guint bpp;
11232 guint rowstride;
11233 guint x, y;
11234 guint w, h;
11235 guint dirty : 1;
11236 guint shadow : 1;
11237 guint process_count;
11238 };
11239
11240
11241 void gimp_pixel_rgn_init (GimpPixelRgn *pr,
11242 GimpDrawable *drawable,
11243 gint x,
11244 gint y,
11245 gint width,
11246 gint height,
11247 gint dirty,
11248 gint shadow);
11249 void gimp_pixel_rgn_resize (GimpPixelRgn *pr,
11250 gint x,
11251 gint y,
11252 gint width,
11253 gint height);
11254 void gimp_pixel_rgn_get_pixel (GimpPixelRgn *pr,
11255 guchar *buf,
11256 gint x,
11257 gint y);
11258 void gimp_pixel_rgn_get_row (GimpPixelRgn *pr,
11259 guchar *buf,
11260 gint x,
11261 gint y,
11262 gint width);
11263 void gimp_pixel_rgn_get_col (GimpPixelRgn *pr,
11264 guchar *buf,
11265 gint x,
11266 gint y,
11267 gint height);
11268 void gimp_pixel_rgn_get_rect (GimpPixelRgn *pr,
11269 guchar *buf,
11270 gint x,
11271 gint y,
11272 gint width,
11273 gint height);
11274 void gimp_pixel_rgn_set_pixel (GimpPixelRgn *pr,
11275 const guchar *buf,
11276 gint x,
11277 gint y);
11278 void gimp_pixel_rgn_set_row (GimpPixelRgn *pr,
11279 const guchar *buf,
11280 gint x,
11281 gint y,
11282 gint width);
11283 void gimp_pixel_rgn_set_col (GimpPixelRgn *pr,
11284 const guchar *buf,
11285 gint x,
11286 gint y,
11287 gint height);
11288 void gimp_pixel_rgn_set_rect (GimpPixelRgn *pr,
11289 const guchar *buf,
11290 gint x,
11291 gint y,
11292 gint width,
11293 gint height);
11294 gpointer gimp_pixel_rgns_register (gint nrgns,
11295 ...);
11296 gpointer gimp_pixel_rgns_register2 (gint nrgns,
11297 GimpPixelRgn **prs);
11298 gpointer gimp_pixel_rgns_process (gpointer pri_ptr);
11299 # 50 "../../libgimp/gimp.h" 2
11300
11301 # 1 "../../libgimp/gimpplugin.h" 1
11302 # 25 "../../libgimp/gimpplugin.h"
11303
11304
11305
11306
11307
11308 gboolean gimp_plugin_icon_register (const gchar *procedure_name,
11309 GimpIconType icon_type,
11310 const guint8 *icon_data);
11311 # 51 "../../libgimp/gimp.h" 2
11312
11313 # 1 "../../libgimp/gimpproceduraldb.h" 1
11314 # 25 "../../libgimp/gimpproceduraldb.h"
11315
11316
11317
11318
11319
11320 gboolean gimp_procedural_db_proc_info (const gchar *procedure,
11321 gchar **blurb,
11322 gchar **help,
11323 gchar **author,
11324 gchar **copyright,
11325 gchar **date,
11326 GimpPDBProcType *proc_type,
11327 gint *num_args,
11328 gint *num_values,
11329 GimpParamDef **args,
11330 GimpParamDef **return_vals);
11331 gboolean gimp_procedural_db_get_data (const gchar *identifier,
11332 gpointer data);
11333 gboolean gimp_procedural_db_set_data (const gchar *identifier,
11334 gpointer data,
11335 guint32 bytes);
11336 # 52 "../../libgimp/gimp.h" 2
11337
11338 # 1 "../../libgimp/gimpprogress.h" 1
11339 # 25 "../../libgimp/gimpprogress.h"
11340
11341
11342
11343 typedef void (* GimpProgressStartCallback) (const gchar *message,
11344 gboolean cancelable,
11345 gpointer user_data);
11346 typedef void (* GimpProgressEndCallback) (gpointer user_data);
11347 typedef void (* GimpProgressTextCallback) (const gchar *message,
11348 gpointer user_data);
11349 typedef void (* GimpProgressValueCallback) (gdouble percentage,
11350 gpointer user_data);
11351
11352
11353 const gchar * gimp_progress_install (GimpProgressStartCallback start_callback,
11354 GimpProgressEndCallback end_callback,
11355 GimpProgressTextCallback text_callback,
11356 GimpProgressValueCallback value_callback,
11357 gpointer user_data);
11358 gpointer gimp_progress_uninstall (const gchar *progress_callback);
11359 # 53 "../../libgimp/gimp.h" 2
11360
11361 # 1 "../../libgimp/gimpregioniterator.h" 1
11362 # 29 "../../libgimp/gimpregioniterator.h"
11363
11364
11365
11366
11367 typedef struct _GimpRgnIterator GimpRgnIterator;
11368
11369 typedef void (* GimpRgnFunc1) (const guchar *src,
11370 gint bpp,
11371 gpointer data);
11372 typedef void (* GimpRgnFunc2) (const guchar *src,
11373 guchar *dest,
11374 gint bpp,
11375 gpointer data);
11376 typedef void (* GimpRgnFuncSrc) (gint x,
11377 gint y,
11378 const guchar *src,
11379 gint bpp,
11380 gpointer data);
11381 typedef void (* GimpRgnFuncDest) (gint x,
11382 gint y,
11383 guchar *dest,
11384 gint bpp,
11385 gpointer data);
11386 typedef void (* GimpRgnFuncSrcDest) (gint x,
11387 gint y,
11388 const guchar *src,
11389 guchar *dest,
11390 gint bpp,
11391 gpointer data);
11392
11393 GimpRgnIterator * gimp_rgn_iterator_new (GimpDrawable *drawable,
11394 GimpRunMode unused);
11395 void gimp_rgn_iterator_free (GimpRgnIterator *iter);
11396 void gimp_rgn_iterator_src (GimpRgnIterator *iter,
11397 GimpRgnFuncSrc func,
11398 gpointer data);
11399 void gimp_rgn_iterator_dest (GimpRgnIterator *iter,
11400 GimpRgnFuncDest func,
11401 gpointer data);
11402 void gimp_rgn_iterator_src_dest (GimpRgnIterator *iter,
11403 GimpRgnFuncSrcDest func,
11404 gpointer data);
11405
11406
11407 void gimp_rgn_iterate1 (GimpDrawable *drawable,
11408 GimpRunMode unused,
11409 GimpRgnFunc1 func,
11410 gpointer data);
11411
11412 void gimp_rgn_iterate2 (GimpDrawable *drawable,
11413 GimpRunMode unused,
11414 GimpRgnFunc2 func,
11415 gpointer data);
11416 # 54 "../../libgimp/gimp.h" 2
11417
11418 # 1 "../../libgimp/gimpselection.h" 1
11419 # 25 "../../libgimp/gimpselection.h"
11420
11421
11422
11423
11424
11425 gint32 gimp_selection_float (gint32 image_ID,
11426 gint32 drawable_ID,
11427 gint offx,
11428 gint offy);
11429 # 42 "../../libgimp/gimpselection.h"
11430 # 55 "../../libgimp/gimp.h" 2
11431
11432 # 1 "../../libgimp/gimptile.h" 1
11433 # 25 "../../libgimp/gimptile.h"
11434
11435
11436
11437
11438
11439 struct _GimpTile
11440 {
11441 guint ewidth;
11442 guint eheight;
11443 guint bpp;
11444 guint tile_num;
11445 guint16 ref_count;
11446 guint dirty : 1;
11447 guint shadow: 1;
11448 guchar *data;
11449 GimpDrawable *drawable;
11450 };
11451
11452
11453 void gimp_tile_ref (GimpTile *tile);
11454 void gimp_tile_ref_zero (GimpTile *tile);
11455 void gimp_tile_unref (GimpTile *tile,
11456 gboolean dirty);
11457 void gimp_tile_flush (GimpTile *tile);
11458
11459 void gimp_tile_cache_size (gulong kilobytes);
11460 void gimp_tile_cache_ntiles (gulong ntiles);
11461
11462
11463
11464
11465 void _gimp_tile_cache_flush_drawable (GimpDrawable *drawable);
11466 # 56 "../../libgimp/gimp.h" 2
11467
11468
11469 # 1 "../../libgimp/gimp_pdb.h" 1
11470 # 27 "../../libgimp/gimp_pdb.h"
11471
11472 # 1 "../../libgimp/gimpbrush_pdb.h" 1
11473 # 27 "../../libgimp/gimpbrush_pdb.h"
11474
11475
11476
11477
11478
11479 gchar* gimp_brush_new (const gchar *name);
11480 gchar* gimp_brush_duplicate (const gchar *name);
11481 gchar* gimp_brush_rename (const gchar *name,
11482 const gchar *new_name);
11483 gboolean gimp_brush_delete (const gchar *name);
11484 gboolean gimp_brush_get_info (const gchar *name,
11485 gint *width,
11486 gint *height,
11487 gint *mask_bpp,
11488 gint *color_bpp);
11489 gboolean gimp_brush_get_pixels (const gchar *name,
11490 gint *width,
11491 gint *height,
11492 gint *mask_bpp,
11493 gint *num_mask_bytes,
11494 guint8 **mask_bytes,
11495 gint *color_bpp,
11496 gint *num_color_bytes,
11497 guint8 **color_bytes);
11498 gboolean gimp_brush_get_spacing (const gchar *name,
11499 gint *spacing);
11500 gboolean gimp_brush_set_spacing (const gchar *name,
11501 gint spacing);
11502 # 28 "../../libgimp/gimp_pdb.h" 2
11503
11504 # 1 "../../libgimp/gimpbrushes_pdb.h" 1
11505 # 27 "../../libgimp/gimpbrushes_pdb.h"
11506
11507
11508
11509
11510
11511 gboolean gimp_brushes_refresh (void);
11512 gchar** gimp_brushes_get_list (const gchar *filter,
11513 gint *num_brushes);
11514 # 52 "../../libgimp/gimpbrushes_pdb.h"
11515 # 29 "../../libgimp/gimp_pdb.h" 2
11516
11517 # 1 "../../libgimp/gimpbrushselect_pdb.h" 1
11518 # 27 "../../libgimp/gimpbrushselect_pdb.h"
11519
11520
11521
11522
11523
11524 gboolean gimp_brushes_popup (const gchar *brush_callback,
11525 const gchar *popup_title,
11526 const gchar *initial_brush,
11527 gdouble opacity,
11528 gint spacing,
11529 GimpLayerModeEffects paint_mode);
11530 gboolean gimp_brushes_close_popup (const gchar *brush_callback);
11531 gboolean gimp_brushes_set_popup (const gchar *brush_callback,
11532 const gchar *brush_name,
11533 gdouble opacity,
11534 gint spacing,
11535 GimpLayerModeEffects paint_mode);
11536 # 30 "../../libgimp/gimp_pdb.h" 2
11537
11538 # 1 "../../libgimp/gimpchannel_pdb.h" 1
11539 # 27 "../../libgimp/gimpchannel_pdb.h"
11540
11541
11542
11543
11544
11545 gint32 _gimp_channel_new (gint32 image_ID,
11546 gint width,
11547 gint height,
11548 const gchar *name,
11549 gdouble opacity,
11550 const GimpRGB *color);
11551 gint32 gimp_channel_copy (gint32 channel_ID);
11552 gboolean gimp_channel_combine_masks (gint32 channel1_ID,
11553 gint32 channel2_ID,
11554 GimpChannelOps operation,
11555 gint offx,
11556 gint offy);
11557 gboolean gimp_channel_get_show_masked (gint32 channel_ID);
11558 gboolean gimp_channel_set_show_masked (gint32 channel_ID,
11559 gboolean show_masked);
11560 gdouble gimp_channel_get_opacity (gint32 channel_ID);
11561 gboolean gimp_channel_set_opacity (gint32 channel_ID,
11562 gdouble opacity);
11563 gboolean gimp_channel_get_color (gint32 channel_ID,
11564 GimpRGB *color);
11565 gboolean gimp_channel_set_color (gint32 channel_ID,
11566 const GimpRGB *color);
11567 # 31 "../../libgimp/gimp_pdb.h" 2
11568
11569 # 1 "../../libgimp/gimpcolor_pdb.h" 1
11570 # 27 "../../libgimp/gimpcolor_pdb.h"
11571
11572
11573
11574
11575
11576 gboolean gimp_brightness_contrast (gint32 drawable_ID,
11577 gint brightness,
11578 gint contrast);
11579 gboolean gimp_levels (gint32 drawable_ID,
11580 GimpHistogramChannel channel,
11581 gint low_input,
11582 gint high_input,
11583 gdouble gamma,
11584 gint low_output,
11585 gint high_output);
11586
11587
11588
11589 gboolean gimp_levels_stretch (gint32 drawable_ID);
11590 gboolean gimp_posterize (gint32 drawable_ID,
11591 gint levels);
11592 gboolean gimp_desaturate (gint32 drawable_ID);
11593 gboolean gimp_equalize (gint32 drawable_ID,
11594 gboolean mask_only);
11595 gboolean gimp_invert (gint32 drawable_ID);
11596 gboolean gimp_curves_spline (gint32 drawable_ID,
11597 GimpHistogramChannel channel,
11598 gint num_points,
11599 const guint8 *control_pts);
11600 gboolean gimp_curves_explicit (gint32 drawable_ID,
11601 GimpHistogramChannel channel,
11602 gint num_bytes,
11603 const guint8 *curve);
11604 gboolean gimp_color_balance (gint32 drawable_ID,
11605 GimpTransferMode transfer_mode,
11606 gboolean preserve_lum,
11607 gdouble cyan_red,
11608 gdouble magenta_green,
11609 gdouble yellow_blue);
11610 gboolean gimp_colorize (gint32 drawable_ID,
11611 gdouble hue,
11612 gdouble saturation,
11613 gdouble lightness);
11614 gboolean gimp_histogram (gint32 drawable_ID,
11615 GimpHistogramChannel channel,
11616 gint start_range,
11617 gint end_range,
11618 gdouble *mean,
11619 gdouble *std_dev,
11620 gdouble *median,
11621 gdouble *pixels,
11622 gdouble *count,
11623 gdouble *percentile);
11624 gboolean gimp_hue_saturation (gint32 drawable_ID,
11625 GimpHueRange hue_range,
11626 gdouble hue_offset,
11627 gdouble lightness,
11628 gdouble saturation);
11629 gboolean gimp_threshold (gint32 drawable_ID,
11630 gint low_threshold,
11631 gint high_threshold);
11632 # 32 "../../libgimp/gimp_pdb.h" 2
11633
11634 # 1 "../../libgimp/gimpcontext_pdb.h" 1
11635 # 27 "../../libgimp/gimpcontext_pdb.h"
11636
11637
11638
11639
11640
11641 gboolean gimp_context_push (void);
11642 gboolean gimp_context_pop (void);
11643 gboolean gimp_context_get_foreground (GimpRGB *foreground);
11644 gboolean gimp_context_set_foreground (const GimpRGB *foreground);
11645 gboolean gimp_context_get_background (GimpRGB *background);
11646 gboolean gimp_context_set_background (const GimpRGB *background);
11647 gboolean gimp_context_set_default_colors (void);
11648 gboolean gimp_context_swap_colors (void);
11649 gdouble gimp_context_get_opacity (void);
11650 gboolean gimp_context_set_opacity (gdouble opacity);
11651 GimpLayerModeEffects gimp_context_get_paint_mode (void);
11652 gboolean gimp_context_set_paint_mode (GimpLayerModeEffects paint_mode);
11653 gchar* gimp_context_get_brush (void);
11654 gboolean gimp_context_set_brush (const gchar *name);
11655 gchar* gimp_context_get_pattern (void);
11656 gboolean gimp_context_set_pattern (const gchar *name);
11657 gchar* gimp_context_get_gradient (void);
11658 gboolean gimp_context_set_gradient (const gchar *name);
11659 gchar* gimp_context_get_palette (void);
11660 gboolean gimp_context_set_palette (const gchar *name);
11661 gchar* gimp_context_get_font (void);
11662 gboolean gimp_context_set_font (const gchar *name);
11663 # 33 "../../libgimp/gimp_pdb.h" 2
11664
11665 # 1 "../../libgimp/gimpconvert_pdb.h" 1
11666 # 27 "../../libgimp/gimpconvert_pdb.h"
11667
11668
11669
11670
11671
11672 gboolean gimp_image_convert_rgb (gint32 image_ID);
11673 gboolean gimp_image_convert_grayscale (gint32 image_ID);
11674 gboolean gimp_image_convert_indexed (gint32 image_ID,
11675 GimpConvertDitherType dither_type,
11676 GimpConvertPaletteType palette_type,
11677 gint num_cols,
11678 gboolean alpha_dither,
11679 gboolean remove_unused,
11680 const gchar *palette);
11681 # 34 "../../libgimp/gimp_pdb.h" 2
11682
11683 # 1 "../../libgimp/gimpdisplay_pdb.h" 1
11684 # 27 "../../libgimp/gimpdisplay_pdb.h"
11685
11686
11687
11688
11689
11690 gint32 gimp_display_new (gint32 image_ID);
11691 gboolean gimp_display_delete (gint32 display_ID);
11692 gboolean gimp_displays_flush (void);
11693 gboolean gimp_displays_reconnect (gint32 old_image_ID,
11694 gint32 new_image_ID);
11695 # 35 "../../libgimp/gimp_pdb.h" 2
11696
11697 # 1 "../../libgimp/gimpdrawable_pdb.h" 1
11698 # 27 "../../libgimp/gimpdrawable_pdb.h"
11699
11700
11701
11702
11703
11704 gboolean gimp_drawable_delete (gint32 drawable_ID);
11705 gboolean gimp_drawable_is_layer (gint32 drawable_ID);
11706 gboolean gimp_drawable_is_layer_mask (gint32 drawable_ID);
11707 gboolean gimp_drawable_is_channel (gint32 drawable_ID);
11708 GimpImageType gimp_drawable_type (gint32 drawable_ID);
11709 GimpImageType gimp_drawable_type_with_alpha (gint32 drawable_ID);
11710 gboolean gimp_drawable_has_alpha (gint32 drawable_ID);
11711 gboolean gimp_drawable_is_rgb (gint32 drawable_ID);
11712 gboolean gimp_drawable_is_gray (gint32 drawable_ID);
11713 gboolean gimp_drawable_is_indexed (gint32 drawable_ID);
11714 gint gimp_drawable_bpp (gint32 drawable_ID);
11715 gint gimp_drawable_width (gint32 drawable_ID);
11716 gint gimp_drawable_height (gint32 drawable_ID);
11717 gboolean gimp_drawable_offsets (gint32 drawable_ID,
11718 gint *offset_x,
11719 gint *offset_y);
11720 gint32 gimp_drawable_get_image (gint32 drawable_ID);
11721
11722
11723
11724
11725 gchar* gimp_drawable_get_name (gint32 drawable_ID);
11726 gboolean gimp_drawable_set_name (gint32 drawable_ID,
11727 const gchar *name);
11728 gboolean gimp_drawable_get_visible (gint32 drawable_ID);
11729 gboolean gimp_drawable_set_visible (gint32 drawable_ID,
11730 gboolean visible);
11731 gboolean gimp_drawable_get_linked (gint32 drawable_ID);
11732 gboolean gimp_drawable_set_linked (gint32 drawable_ID,
11733 gboolean linked);
11734 gint gimp_drawable_get_tattoo (gint32 drawable_ID);
11735 gboolean gimp_drawable_set_tattoo (gint32 drawable_ID,
11736 gint tattoo);
11737 gboolean gimp_drawable_mask_bounds (gint32 drawable_ID,
11738 gint *x1,
11739 gint *y1,
11740 gint *x2,
11741 gint *y2);
11742 gboolean gimp_drawable_mask_intersect (gint32 drawable_ID,
11743 gint *x,
11744 gint *y,
11745 gint *width,
11746 gint *height);
11747 gboolean gimp_drawable_merge_shadow (gint32 drawable_ID,
11748 gboolean undo);
11749 gboolean gimp_drawable_update (gint32 drawable_ID,
11750 gint x,
11751 gint y,
11752 gint width,
11753 gint height);
11754 guint8* gimp_drawable_get_pixel (gint32 drawable_ID,
11755 gint x_coord,
11756 gint y_coord,
11757 gint *num_channels);
11758 gboolean gimp_drawable_set_pixel (gint32 drawable_ID,
11759 gint x_coord,
11760 gint y_coord,
11761 gint num_channels,
11762 const guint8 *pixel);
11763 gboolean gimp_drawable_fill (gint32 drawable_ID,
11764 GimpFillType fill_type);
11765 gboolean gimp_drawable_offset (gint32 drawable_ID,
11766 gboolean wrap_around,
11767 GimpOffsetType fill_type,
11768 gint offset_x,
11769 gint offset_y);
11770 gboolean _gimp_drawable_thumbnail (gint32 drawable_ID,
11771 gint width,
11772 gint height,
11773 gint *ret_width,
11774 gint *ret_height,
11775 gint *bpp,
11776 gint *thumbnail_data_count,
11777 guint8 **thumbnail_data);
11778 gboolean _gimp_drawable_sub_thumbnail (gint32 drawable_ID,
11779 gint src_x,
11780 gint src_y,
11781 gint src_width,
11782 gint src_height,
11783 gint dest_width,
11784 gint dest_height,
11785 gint *width,
11786 gint *height,
11787 gint *bpp,
11788 gint *thumbnail_data_count,
11789 guint8 **thumbnail_data);
11790 # 36 "../../libgimp/gimp_pdb.h" 2
11791
11792 # 1 "../../libgimp/gimpdrawabletransform_pdb.h" 1
11793 # 27 "../../libgimp/gimpdrawabletransform_pdb.h"
11794
11795
11796
11797
11798
11799 gint32 gimp_drawable_transform_flip_simple (gint32 drawable_ID,
11800 GimpOrientationType flip_type,
11801 gboolean auto_center,
11802 gdouble axis,
11803 gboolean clip_result);
11804 gint32 gimp_drawable_transform_flip (gint32 drawable_ID,
11805 gdouble x0,
11806 gdouble y0,
11807 gdouble x1,
11808 gdouble y1,
11809 GimpTransformDirection transform_direction,
11810 GimpInterpolationType interpolation,
11811 gboolean supersample,
11812 gint recursion_level,
11813 gboolean clip_result);
11814 gint32 gimp_drawable_transform_flip_default (gint32 drawable_ID,
11815 gdouble x0,
11816 gdouble y0,
11817 gdouble x1,
11818 gdouble y1,
11819 gboolean interpolate,
11820 gboolean clip_result);
11821 gint32 gimp_drawable_transform_perspective (gint32 drawable_ID,
11822 gdouble x0,
11823 gdouble y0,
11824 gdouble x1,
11825 gdouble y1,
11826 gdouble x2,
11827 gdouble y2,
11828 gdouble x3,
11829 gdouble y3,
11830 GimpTransformDirection transform_direction,
11831 GimpInterpolationType interpolation,
11832 gboolean supersample,
11833 gint recursion_level,
11834 gboolean clip_result);
11835 gint32 gimp_drawable_transform_perspective_default (gint32 drawable_ID,
11836 gdouble x0,
11837 gdouble y0,
11838 gdouble x1,
11839 gdouble y1,
11840 gdouble x2,
11841 gdouble y2,
11842 gdouble x3,
11843 gdouble y3,
11844 gboolean interpolate,
11845 gboolean clip_result);
11846 gint32 gimp_drawable_transform_rotate_simple (gint32 drawable_ID,
11847 GimpRotationType rotate_type,
11848 gboolean auto_center,
11849 gint center_x,
11850 gint center_y,
11851 gboolean clip_result);
11852 gint32 gimp_drawable_transform_rotate (gint32 drawable_ID,
11853 gdouble angle,
11854 gboolean auto_center,
11855 gint center_x,
11856 gint center_y,
11857 GimpTransformDirection transform_direction,
11858 GimpInterpolationType interpolation,
11859 gboolean supersample,
11860 gint recursion_level,
11861 gboolean clip_result);
11862 gint32 gimp_drawable_transform_rotate_default (gint32 drawable_ID,
11863 gdouble angle,
11864 gboolean auto_center,
11865 gint center_x,
11866 gint center_y,
11867 gboolean interpolate,
11868 gboolean clip_result);
11869 gint32 gimp_drawable_transform_scale (gint32 drawable_ID,
11870 gdouble x0,
11871 gdouble y0,
11872 gdouble x1,
11873 gdouble y1,
11874 GimpTransformDirection transform_direction,
11875 GimpInterpolationType interpolation,
11876 gboolean supersample,
11877 gint recursion_level,
11878 gboolean clip_result);
11879 gint32 gimp_drawable_transform_scale_default (gint32 drawable_ID,
11880 gdouble x0,
11881 gdouble y0,
11882 gdouble x1,
11883 gdouble y1,
11884 gboolean interpolate,
11885 gboolean clip_result);
11886 gint32 gimp_drawable_transform_shear (gint32 drawable_ID,
11887 GimpOrientationType shear_type,
11888 gdouble magnitude,
11889 GimpTransformDirection transform_direction,
11890 GimpInterpolationType interpolation,
11891 gboolean supersample,
11892 gint recursion_level,
11893 gboolean clip_result);
11894 gint32 gimp_drawable_transform_shear_default (gint32 drawable_ID,
11895 GimpOrientationType shear_type,
11896 gdouble magnitude,
11897 gboolean interpolate,
11898 gboolean clip_result);
11899 gint32 gimp_drawable_transform_2d (gint32 drawable_ID,
11900 gdouble source_x,
11901 gdouble source_y,
11902 gdouble scale_x,
11903 gdouble scale_y,
11904 gdouble angle,
11905 gdouble dest_x,
11906 gdouble dest_y,
11907 GimpTransformDirection transform_direction,
11908 GimpInterpolationType interpolation,
11909 gboolean supersample,
11910 gint recursion_level,
11911 gboolean clip_result);
11912 gint32 gimp_drawable_transform_2d_default (gint32 drawable_ID,
11913 gdouble source_x,
11914 gdouble source_y,
11915 gdouble scale_x,
11916 gdouble scale_y,
11917 gdouble angle,
11918 gdouble dest_x,
11919 gdouble dest_y,
11920 gboolean interpolate,
11921 gboolean clip_result);
11922 gint32 gimp_drawable_transform_matrix (gint32 drawable_ID,
11923 gdouble coeff_0_0,
11924 gdouble coeff_0_1,
11925 gdouble coeff_0_2,
11926 gdouble coeff_1_0,
11927 gdouble coeff_1_1,
11928 gdouble coeff_1_2,
11929 gdouble coeff_2_0,
11930 gdouble coeff_2_1,
11931 gdouble coeff_2_2,
11932 GimpTransformDirection transform_direction,
11933 GimpInterpolationType interpolation,
11934 gboolean supersample,
11935 gint recursion_level,
11936 gboolean clip_result);
11937 gint32 gimp_drawable_transform_matrix_default (gint32 drawable_ID,
11938 gdouble coeff_0_0,
11939 gdouble coeff_0_1,
11940 gdouble coeff_0_2,
11941 gdouble coeff_1_0,
11942 gdouble coeff_1_1,
11943 gdouble coeff_1_2,
11944 gdouble coeff_2_0,
11945 gdouble coeff_2_1,
11946 gdouble coeff_2_2,
11947 gboolean interpolate,
11948 gboolean clip_result);
11949 # 37 "../../libgimp/gimp_pdb.h" 2
11950
11951 # 1 "../../libgimp/gimpedit_pdb.h" 1
11952 # 27 "../../libgimp/gimpedit_pdb.h"
11953
11954
11955
11956
11957
11958 gboolean gimp_edit_cut (gint32 drawable_ID);
11959 gboolean gimp_edit_copy (gint32 drawable_ID);
11960 gboolean gimp_edit_copy_visible (gint32 image_ID);
11961 gint32 gimp_edit_paste (gint32 drawable_ID,
11962 gboolean paste_into);
11963 gboolean gimp_edit_clear (gint32 drawable_ID);
11964 gboolean gimp_edit_fill (gint32 drawable_ID,
11965 GimpFillType fill_type);
11966 gboolean gimp_edit_bucket_fill (gint32 drawable_ID,
11967 GimpBucketFillMode fill_mode,
11968 GimpLayerModeEffects paint_mode,
11969 gdouble opacity,
11970 gdouble threshold,
11971 gboolean sample_merged,
11972 gdouble x,
11973 gdouble y);
11974 gboolean gimp_edit_blend (gint32 drawable_ID,
11975 GimpBlendMode blend_mode,
11976 GimpLayerModeEffects paint_mode,
11977 GimpGradientType gradient_type,
11978 gdouble opacity,
11979 gdouble offset,
11980 GimpRepeatMode repeat,
11981 gboolean reverse,
11982 gboolean supersample,
11983 gint max_depth,
11984 gdouble threshold,
11985 gboolean dither,
11986 gdouble x1,
11987 gdouble y1,
11988 gdouble x2,
11989 gdouble y2);
11990 gboolean gimp_edit_stroke (gint32 drawable_ID);
11991 # 38 "../../libgimp/gimp_pdb.h" 2
11992
11993 # 1 "../../libgimp/gimpfileops_pdb.h" 1
11994 # 27 "../../libgimp/gimpfileops_pdb.h"
11995
11996
11997
11998
11999
12000 gint32 gimp_file_load (GimpRunMode run_mode,
12001 const gchar *filename,
12002 const gchar *raw_filename);
12003 gboolean gimp_file_save (GimpRunMode run_mode,
12004 gint32 image_ID,
12005 gint32 drawable_ID,
12006 const gchar *filename,
12007 const gchar *raw_filename);
12008 gchar* gimp_temp_name (const gchar *extension);
12009 gboolean gimp_register_magic_load_handler (const gchar *procedure_name,
12010 const gchar *extensions,
12011 const gchar *prefixes,
12012 const gchar *magics);
12013 gboolean gimp_register_load_handler (const gchar *procedure_name,
12014 const gchar *extensions,
12015 const gchar *prefixes);
12016 gboolean gimp_register_save_handler (const gchar *procedure_name,
12017 const gchar *extensions,
12018 const gchar *prefixes);
12019 gboolean gimp_register_file_handler_mime (const gchar *procedure_name,
12020 const gchar *mime_type);
12021 gboolean gimp_register_thumbnail_loader (const gchar *load_proc,
12022 const gchar *thumb_proc);
12023 # 39 "../../libgimp/gimp_pdb.h" 2
12024
12025 # 1 "../../libgimp/gimpfloatingsel_pdb.h" 1
12026 # 27 "../../libgimp/gimpfloatingsel_pdb.h"
12027
12028
12029
12030
12031
12032 gboolean gimp_floating_sel_remove (gint32 floating_sel_ID);
12033 gboolean gimp_floating_sel_anchor (gint32 floating_sel_ID);
12034 gboolean gimp_floating_sel_to_layer (gint32 floating_sel_ID);
12035 gboolean gimp_floating_sel_attach (gint32 layer_ID,
12036 gint32 drawable_ID);
12037 gboolean gimp_floating_sel_rigor (gint32 floating_sel_ID,
12038 gboolean undo);
12039 gboolean gimp_floating_sel_relax (gint32 floating_sel_ID,
12040 gboolean undo);
12041 # 40 "../../libgimp/gimp_pdb.h" 2
12042
12043 # 1 "../../libgimp/gimpfonts_pdb.h" 1
12044 # 27 "../../libgimp/gimpfonts_pdb.h"
12045
12046
12047
12048
12049
12050 gboolean gimp_fonts_refresh (void);
12051 gchar** gimp_fonts_get_list (const gchar *filter,
12052 gint *num_fonts);
12053 # 41 "../../libgimp/gimp_pdb.h" 2
12054
12055 # 1 "../../libgimp/gimpfontselect_pdb.h" 1
12056 # 27 "../../libgimp/gimpfontselect_pdb.h"
12057
12058
12059
12060
12061
12062 gboolean gimp_fonts_popup (const gchar *font_callback,
12063 const gchar *popup_title,
12064 const gchar *initial_font);
12065 gboolean gimp_fonts_close_popup (const gchar *font_callback);
12066 gboolean gimp_fonts_set_popup (const gchar *font_callback,
12067 const gchar *font_name);
12068 # 42 "../../libgimp/gimp_pdb.h" 2
12069
12070 # 1 "../../libgimp/gimpgimprc_pdb.h" 1
12071 # 27 "../../libgimp/gimpgimprc_pdb.h"
12072
12073
12074
12075
12076
12077 gchar* gimp_gimprc_query (const gchar *token);
12078 gboolean gimp_gimprc_set (const gchar *token,
12079 const gchar *value);
12080 gchar* gimp_get_default_comment (void);
12081 gboolean gimp_get_monitor_resolution (gdouble *xres,
12082 gdouble *yres);
12083 gchar* gimp_get_theme_dir (void);
12084 gchar* gimp_get_module_load_inhibit (void);
12085 # 43 "../../libgimp/gimp_pdb.h" 2
12086
12087 # 1 "../../libgimp/gimpgradient_pdb.h" 1
12088 # 27 "../../libgimp/gimpgradient_pdb.h"
12089
12090
12091
12092
12093
12094 gchar* gimp_gradient_new (const gchar *name);
12095 gchar* gimp_gradient_duplicate (const gchar *name);
12096 gchar* gimp_gradient_rename (const gchar *name,
12097 const gchar *new_name);
12098 gboolean gimp_gradient_delete (const gchar *name);
12099 gboolean gimp_gradient_get_uniform_samples (const gchar *name,
12100 gint num_samples,
12101 gboolean reverse,
12102 gint *num_color_samples,
12103 gdouble **color_samples);
12104 gboolean gimp_gradient_get_custom_samples (const gchar *name,
12105 gint num_samples,
12106 const gdouble *positions,
12107 gboolean reverse,
12108 gint *num_color_samples,
12109 gdouble **color_samples);
12110 gboolean gimp_gradient_segment_get_left_color (const gchar *name,
12111 gint segment,
12112 GimpRGB *color,
12113 gdouble *opacity);
12114 gboolean gimp_gradient_segment_set_left_color (const gchar *name,
12115 gint segment,
12116 const GimpRGB *color,
12117 gdouble opacity);
12118 gboolean gimp_gradient_segment_get_right_color (const gchar *name,
12119 gint segment,
12120 GimpRGB *color,
12121 gdouble *opacity);
12122 gboolean gimp_gradient_segment_set_right_color (const gchar *name,
12123 gint segment,
12124 const GimpRGB *color,
12125 gdouble opacity);
12126 gboolean gimp_gradient_segment_get_left_pos (const gchar *name,
12127 gint segment,
12128 gdouble *pos);
12129 gboolean gimp_gradient_segment_set_left_pos (const gchar *name,
12130 gint segment,
12131 gdouble pos,
12132 gdouble *final_pos);
12133 gboolean gimp_gradient_segment_get_middle_pos (const gchar *name,
12134 gint segment,
12135 gdouble *pos);
12136 gboolean gimp_gradient_segment_set_middle_pos (const gchar *name,
12137 gint segment,
12138 gdouble pos,
12139 gdouble *final_pos);
12140 gboolean gimp_gradient_segment_get_right_pos (const gchar *name,
12141 gint segment,
12142 gdouble *pos);
12143 gboolean gimp_gradient_segment_set_right_pos (const gchar *name,
12144 gint segment,
12145 gdouble pos,
12146 gdouble *final_pos);
12147 gboolean gimp_gradient_segment_get_blending_function (const gchar *name,
12148 gint segment,
12149 GimpGradientSegmentType *blend_func);
12150 gboolean gimp_gradient_segment_get_coloring_type (const gchar *name,
12151 gint segment,
12152 GimpGradientSegmentColor *coloring_type);
12153 gboolean gimp_gradient_segment_range_set_blending_function (const gchar *name,
12154 gint start_segment,
12155 gint end_segment,
12156 GimpGradientSegmentType blending_function);
12157 gboolean gimp_gradient_segment_range_set_coloring_type (const gchar *name,
12158 gint start_segment,
12159 gint end_segment,
12160 GimpGradientSegmentColor coloring_type);
12161 gboolean gimp_gradient_segment_range_flip (const gchar *name,
12162 gint start_segment,
12163 gint end_segment);
12164 gboolean gimp_gradient_segment_range_replicate (const gchar *name,
12165 gint start_segment,
12166 gint end_segment,
12167 gint replicate_times);
12168 gboolean gimp_gradient_segment_range_split_midpoint (const gchar *name,
12169 gint start_segment,
12170 gint end_segment);
12171 gboolean gimp_gradient_segment_range_split_uniform (const gchar *name,
12172 gint start_segment,
12173 gint end_segment,
12174 gint split_parts);
12175 gboolean gimp_gradient_segment_range_delete (const gchar *name,
12176 gint start_segment,
12177 gint end_segment);
12178 gboolean gimp_gradient_segment_range_redistribute_handles (const gchar *name,
12179 gint start_segment,
12180 gint end_segment);
12181 gboolean gimp_gradient_segment_range_blend_colors (const gchar *name,
12182 gint start_segment,
12183 gint end_segment);
12184 gboolean gimp_gradient_segment_range_blend_opacity (const gchar *name,
12185 gint start_segment,
12186 gint end_segment);
12187 gdouble gimp_gradient_segment_range_move (const gchar *name,
12188 gint start_segment,
12189 gint end_segment,
12190 gdouble delta,
12191 gboolean control_compress);
12192 # 44 "../../libgimp/gimp_pdb.h" 2
12193
12194 # 1 "../../libgimp/gimpgradients_pdb.h" 1
12195 # 27 "../../libgimp/gimpgradients_pdb.h"
12196
12197
12198
12199
12200
12201 gboolean gimp_gradients_refresh (void);
12202 gchar** gimp_gradients_get_list (const gchar *filter,
12203 gint *num_gradients);
12204 # 49 "../../libgimp/gimpgradients_pdb.h"
12205 # 45 "../../libgimp/gimp_pdb.h" 2
12206
12207 # 1 "../../libgimp/gimpgradientselect_pdb.h" 1
12208 # 27 "../../libgimp/gimpgradientselect_pdb.h"
12209
12210
12211
12212
12213
12214 gboolean gimp_gradients_popup (const gchar *gradient_callback,
12215 const gchar *popup_title,
12216 const gchar *initial_gradient,
12217 gint sample_size);
12218 gboolean gimp_gradients_close_popup (const gchar *gradient_callback);
12219 gboolean gimp_gradients_set_popup (const gchar *gradient_callback,
12220 const gchar *gradient_name);
12221 # 46 "../../libgimp/gimp_pdb.h" 2
12222
12223 # 1 "../../libgimp/gimpguides_pdb.h" 1
12224 # 27 "../../libgimp/gimpguides_pdb.h"
12225
12226
12227
12228
12229
12230 gint32 gimp_image_add_hguide (gint32 image_ID,
12231 gint yposition);
12232 gint32 gimp_image_add_vguide (gint32 image_ID,
12233 gint xposition);
12234 gboolean gimp_image_delete_guide (gint32 image_ID,
12235 gint32 guide_ID);
12236 gint32 gimp_image_find_next_guide (gint32 image_ID,
12237 gint32 guide_ID);
12238 GimpOrientationType gimp_image_get_guide_orientation (gint32 image_ID,
12239 gint32 guide_ID);
12240 gint gimp_image_get_guide_position (gint32 image_ID,
12241 gint32 guide_ID);
12242 # 47 "../../libgimp/gimp_pdb.h" 2
12243
12244 # 1 "../../libgimp/gimphelp_pdb.h" 1
12245 # 27 "../../libgimp/gimphelp_pdb.h"
12246
12247
12248
12249
12250
12251 gboolean gimp_help (const gchar *help_domain,
12252 const gchar *help_id);
12253 # 48 "../../libgimp/gimp_pdb.h" 2
12254
12255 # 1 "../../libgimp/gimpimage_pdb.h" 1
12256 # 27 "../../libgimp/gimpimage_pdb.h"
12257
12258
12259
12260
12261
12262 gint* gimp_image_list (gint *num_images);
12263 gint32 gimp_image_new (gint width,
12264 gint height,
12265 GimpImageBaseType type);
12266 gint32 gimp_image_duplicate (gint32 image_ID);
12267 gboolean gimp_image_delete (gint32 image_ID);
12268 GimpImageBaseType gimp_image_base_type (gint32 image_ID);
12269 gint gimp_image_width (gint32 image_ID);
12270 gint gimp_image_height (gint32 image_ID);
12271 gboolean gimp_image_free_shadow (gint32 image_ID);
12272 gboolean gimp_image_resize (gint32 image_ID,
12273 gint new_width,
12274 gint new_height,
12275 gint offx,
12276 gint offy);
12277 gboolean gimp_image_resize_to_layers (gint32 image_ID);
12278 gboolean gimp_image_scale (gint32 image_ID,
12279 gint new_width,
12280 gint new_height);
12281 gboolean gimp_image_crop (gint32 image_ID,
12282 gint new_width,
12283 gint new_height,
12284 gint offx,
12285 gint offy);
12286 gboolean gimp_image_flip (gint32 image_ID,
12287 GimpOrientationType flip_type);
12288 gboolean gimp_image_rotate (gint32 image_ID,
12289 GimpRotationType rotate_type);
12290 gint* gimp_image_get_layers (gint32 image_ID,
12291 gint *num_layers);
12292 gint* gimp_image_get_channels (gint32 image_ID,
12293 gint *num_channels);
12294 gint32 gimp_image_get_active_drawable (gint32 image_ID);
12295 gboolean gimp_image_unset_active_channel (gint32 image_ID);
12296 gint32 gimp_image_get_floating_sel (gint32 image_ID);
12297 gint32 gimp_image_floating_sel_attached_to (gint32 image_ID);
12298 gboolean gimp_image_pick_color (gint32 image_ID,
12299 gint32 drawable_ID,
12300 gdouble x,
12301 gdouble y,
12302 gboolean sample_merged,
12303 gboolean sample_average,
12304 gdouble average_radius,
12305 GimpRGB *color);
12306 gint32 gimp_image_pick_correlate_layer (gint32 image_ID,
12307 gint x,
12308 gint y);
12309 gboolean gimp_image_add_layer (gint32 image_ID,
12310 gint32 layer_ID,
12311 gint position);
12312 gboolean gimp_image_remove_layer (gint32 image_ID,
12313 gint32 layer_ID);
12314 gboolean gimp_image_raise_layer (gint32 image_ID,
12315 gint32 layer_ID);
12316 gboolean gimp_image_lower_layer (gint32 image_ID,
12317 gint32 layer_ID);
12318 gboolean gimp_image_raise_layer_to_top (gint32 image_ID,
12319 gint32 layer_ID);
12320 gboolean gimp_image_lower_layer_to_bottom (gint32 image_ID,
12321 gint32 layer_ID);
12322 gboolean gimp_image_add_channel (gint32 image_ID,
12323 gint32 channel_ID,
12324 gint position);
12325 gboolean gimp_image_remove_channel (gint32 image_ID,
12326 gint32 channel_ID);
12327 gboolean gimp_image_raise_channel (gint32 image_ID,
12328 gint32 channel_ID);
12329 gboolean gimp_image_lower_channel (gint32 image_ID,
12330 gint32 layer_ID);
12331 gint32 gimp_image_flatten (gint32 image_ID);
12332 gint32 gimp_image_merge_visible_layers (gint32 image_ID,
12333 GimpMergeType merge_type);
12334 gint32 gimp_image_merge_down (gint32 image_ID,
12335 gint32 merge_layer_ID,
12336 GimpMergeType merge_type);
12337 guint8* _gimp_image_get_colormap (gint32 image_ID,
12338 gint *num_bytes);
12339 gboolean _gimp_image_set_colormap (gint32 image_ID,
12340 gint num_bytes,
12341 const guint8 *colormap);
12342 gboolean gimp_image_clean_all (gint32 image_ID);
12343 gboolean gimp_image_is_dirty (gint32 image_ID);
12344 gboolean _gimp_image_thumbnail (gint32 image_ID,
12345 gint width,
12346 gint height,
12347 gint *ret_width,
12348 gint *ret_height,
12349 gint *bpp,
12350 gint *thumbnail_data_count,
12351 guint8 **thumbnail_data);
12352 gint32 gimp_image_get_active_layer (gint32 image_ID);
12353 gboolean gimp_image_set_active_layer (gint32 image_ID,
12354 gint32 active_layer_ID);
12355 gint32 gimp_image_get_active_channel (gint32 image_ID);
12356 gboolean gimp_image_set_active_channel (gint32 image_ID,
12357 gint32 active_channel_ID);
12358 gint32 gimp_image_get_selection (gint32 image_ID);
12359 gboolean gimp_image_get_component_active (gint32 image_ID,
12360 GimpChannelType component);
12361 gboolean gimp_image_set_component_active (gint32 image_ID,
12362 GimpChannelType component,
12363 gboolean active);
12364 gboolean gimp_image_get_component_visible (gint32 image_ID,
12365 GimpChannelType component);
12366 gboolean gimp_image_set_component_visible (gint32 image_ID,
12367 GimpChannelType component,
12368 gboolean visible);
12369 gchar* gimp_image_get_filename (gint32 image_ID);
12370 gboolean gimp_image_set_filename (gint32 image_ID,
12371 const gchar *filename);
12372 gchar* gimp_image_get_name (gint32 image_ID);
12373 gboolean gimp_image_get_resolution (gint32 image_ID,
12374 gdouble *xresolution,
12375 gdouble *yresolution);
12376 gboolean gimp_image_set_resolution (gint32 image_ID,
12377 gdouble xresolution,
12378 gdouble yresolution);
12379 GimpUnit gimp_image_get_unit (gint32 image_ID);
12380 gboolean gimp_image_set_unit (gint32 image_ID,
12381 GimpUnit unit);
12382 gint gimp_image_get_tattoo_state (gint32 image_ID);
12383 gboolean gimp_image_set_tattoo_state (gint32 image_ID,
12384 gint tattoo_state);
12385 gint32 gimp_image_get_layer_by_tattoo (gint32 image_ID,
12386 gint tattoo);
12387 gint32 gimp_image_get_channel_by_tattoo (gint32 image_ID,
12388 gint tattoo);
12389 # 49 "../../libgimp/gimp_pdb.h" 2
12390
12391 # 1 "../../libgimp/gimplayer_pdb.h" 1
12392 # 27 "../../libgimp/gimplayer_pdb.h"
12393
12394
12395
12396
12397
12398 gint32 _gimp_layer_new (gint32 image_ID,
12399 gint width,
12400 gint height,
12401 GimpImageType type,
12402 const gchar *name,
12403 gdouble opacity,
12404 GimpLayerModeEffects mode);
12405 gint32 gimp_layer_new_from_drawable (gint32 drawable_ID,
12406 gint32 dest_image_ID);
12407 gint32 _gimp_layer_copy (gint32 layer_ID,
12408 gboolean add_alpha);
12409 gboolean gimp_layer_add_alpha (gint32 layer_ID);
12410 gboolean gimp_layer_scale (gint32 layer_ID,
12411 gint new_width,
12412 gint new_height,
12413 gboolean local_origin);
12414 gboolean gimp_layer_resize (gint32 layer_ID,
12415 gint new_width,
12416 gint new_height,
12417 gint offx,
12418 gint offy);
12419 gboolean gimp_layer_resize_to_image_size (gint32 layer_ID);
12420 gboolean gimp_layer_translate (gint32 layer_ID,
12421 gint offx,
12422 gint offy);
12423 gboolean gimp_layer_set_offsets (gint32 layer_ID,
12424 gint offx,
12425 gint offy);
12426 gint32 gimp_layer_create_mask (gint32 layer_ID,
12427 GimpAddMaskType mask_type);
12428 gint32 gimp_layer_get_mask (gint32 layer_ID);
12429 gint32 gimp_layer_from_mask (gint32 mask_ID);
12430 gboolean gimp_layer_add_mask (gint32 layer_ID,
12431 gint32 mask_ID);
12432 gboolean gimp_layer_remove_mask (gint32 layer_ID,
12433 GimpMaskApplyMode mode);
12434 gboolean gimp_layer_is_floating_sel (gint32 layer_ID);
12435 gboolean gimp_layer_get_preserve_trans (gint32 layer_ID);
12436 gboolean gimp_layer_set_preserve_trans (gint32 layer_ID,
12437 gboolean preserve_trans);
12438 gboolean gimp_layer_get_apply_mask (gint32 layer_ID);
12439 gboolean gimp_layer_set_apply_mask (gint32 layer_ID,
12440 gboolean apply_mask);
12441 gboolean gimp_layer_get_show_mask (gint32 layer_ID);
12442 gboolean gimp_layer_set_show_mask (gint32 layer_ID,
12443 gboolean show_mask);
12444 gboolean gimp_layer_get_edit_mask (gint32 layer_ID);
12445 gboolean gimp_layer_set_edit_mask (gint32 layer_ID,
12446 gboolean edit_mask);
12447 gdouble gimp_layer_get_opacity (gint32 layer_ID);
12448 gboolean gimp_layer_set_opacity (gint32 layer_ID,
12449 gdouble opacity);
12450 GimpLayerModeEffects gimp_layer_get_mode (gint32 layer_ID);
12451 gboolean gimp_layer_set_mode (gint32 layer_ID,
12452 GimpLayerModeEffects mode);
12453 # 50 "../../libgimp/gimp_pdb.h" 2
12454
12455 # 1 "../../libgimp/gimpmessage_pdb.h" 1
12456 # 27 "../../libgimp/gimpmessage_pdb.h"
12457
12458
12459
12460
12461
12462 gboolean gimp_message (const gchar *message);
12463 GimpMessageHandlerType gimp_message_get_handler (void);
12464 gboolean gimp_message_set_handler (GimpMessageHandlerType handler);
12465 # 51 "../../libgimp/gimp_pdb.h" 2
12466
12467 # 1 "../../libgimp/gimpmisc_pdb.h" 1
12468 # 27 "../../libgimp/gimpmisc_pdb.h"
12469
12470
12471
12472
12473
12474 gchar* gimp_version (void);
12475 # 52 "../../libgimp/gimp_pdb.h" 2
12476
12477 # 1 "../../libgimp/gimppainttools_pdb.h" 1
12478 # 27 "../../libgimp/gimppainttools_pdb.h"
12479
12480
12481
12482
12483
12484 gboolean gimp_airbrush (gint32 drawable_ID,
12485 gdouble pressure,
12486 gint num_strokes,
12487 const gdouble *strokes);
12488 gboolean gimp_airbrush_default (gint32 drawable_ID,
12489 gint num_strokes,
12490 const gdouble *strokes);
12491 gboolean gimp_clone (gint32 drawable_ID,
12492 gint32 src_drawable_ID,
12493 GimpCloneType clone_type,
12494 gdouble src_x,
12495 gdouble src_y,
12496 gint num_strokes,
12497 const gdouble *strokes);
12498 gboolean gimp_clone_default (gint32 drawable_ID,
12499 gint num_strokes,
12500 const gdouble *strokes);
12501 gboolean gimp_convolve (gint32 drawable_ID,
12502 gdouble pressure,
12503 GimpConvolveType convolve_type,
12504 gint num_strokes,
12505 const gdouble *strokes);
12506 gboolean gimp_convolve_default (gint32 drawable_ID,
12507 gint num_strokes,
12508 const gdouble *strokes);
12509 gboolean gimp_dodgeburn (gint32 drawable_ID,
12510 gdouble exposure,
12511 GimpDodgeBurnType dodgeburn_type,
12512 GimpTransferMode dodgeburn_mode,
12513 gint num_strokes,
12514 const gdouble *strokes);
12515 gboolean gimp_dodgeburn_default (gint32 drawable_ID,
12516 gint num_strokes,
12517 const gdouble *strokes);
12518 gboolean gimp_eraser (gint32 drawable_ID,
12519 gint num_strokes,
12520 const gdouble *strokes,
12521 GimpBrushApplicationMode hardness,
12522 GimpPaintApplicationMode method);
12523 gboolean gimp_eraser_default (gint32 drawable_ID,
12524 gint num_strokes,
12525 const gdouble *strokes);
12526 gboolean gimp_paintbrush (gint32 drawable_ID,
12527 gdouble fade_out,
12528 gint num_strokes,
12529 const gdouble *strokes,
12530 GimpPaintApplicationMode method,
12531 gdouble gradient_length);
12532 gboolean gimp_paintbrush_default (gint32 drawable_ID,
12533 gint num_strokes,
12534 const gdouble *strokes);
12535 gboolean gimp_pencil (gint32 drawable_ID,
12536 gint num_strokes,
12537 const gdouble *strokes);
12538 gboolean gimp_smudge (gint32 drawable_ID,
12539 gdouble pressure,
12540 gint num_strokes,
12541 const gdouble *strokes);
12542 gboolean gimp_smudge_default (gint32 drawable_ID,
12543 gint num_strokes,
12544 const gdouble *strokes);
12545 # 53 "../../libgimp/gimp_pdb.h" 2
12546
12547 # 1 "../../libgimp/gimppalette_pdb.h" 1
12548 # 27 "../../libgimp/gimppalette_pdb.h"
12549
12550
12551
12552
12553
12554 gchar* gimp_palette_new (const gchar *name);
12555 gchar* gimp_palette_duplicate (const gchar *name);
12556 gchar* gimp_palette_rename (const gchar *name,
12557 const gchar *new_name);
12558 gboolean gimp_palette_delete (const gchar *name);
12559 gboolean gimp_palette_get_info (const gchar *name,
12560 gint *num_colors);
12561 gboolean gimp_palette_add_entry (const gchar *name,
12562 const gchar *entry_name,
12563 const GimpRGB *color,
12564 gint *entry_num);
12565 gboolean gimp_palette_delete_entry (const gchar *name,
12566 gint entry_num);
12567 gboolean gimp_palette_entry_get_color (const gchar *name,
12568 gint entry_num,
12569 GimpRGB *color);
12570 gboolean gimp_palette_entry_set_color (const gchar *name,
12571 gint entry_num,
12572 const GimpRGB *color);
12573 gboolean gimp_palette_entry_get_name (const gchar *name,
12574 gint entry_num,
12575 gchar **entry_name);
12576 gboolean gimp_palette_entry_set_name (const gchar *name,
12577 gint entry_num,
12578 const gchar *entry_name);
12579 # 54 "../../libgimp/gimp_pdb.h" 2
12580
12581 # 1 "../../libgimp/gimppalettes_pdb.h" 1
12582 # 27 "../../libgimp/gimppalettes_pdb.h"
12583
12584
12585
12586
12587
12588 gboolean gimp_palettes_refresh (void);
12589 gchar** gimp_palettes_get_list (const gchar *filter,
12590 gint *num_palettes);
12591 # 44 "../../libgimp/gimppalettes_pdb.h"
12592 # 55 "../../libgimp/gimp_pdb.h" 2
12593
12594 # 1 "../../libgimp/gimppaletteselect_pdb.h" 1
12595 # 27 "../../libgimp/gimppaletteselect_pdb.h"
12596
12597
12598
12599
12600
12601 gboolean gimp_palettes_popup (const gchar *palette_callback,
12602 const gchar *popup_title,
12603 const gchar *initial_palette);
12604 gboolean gimp_palettes_close_popup (const gchar *palette_callback);
12605 gboolean gimp_palettes_set_popup (const gchar *palette_callback,
12606 const gchar *palette_name);
12607 # 56 "../../libgimp/gimp_pdb.h" 2
12608
12609 # 1 "../../libgimp/gimpparasite_pdb.h" 1
12610 # 27 "../../libgimp/gimpparasite_pdb.h"
12611
12612
12613
12614
12615
12616 GimpParasite* gimp_parasite_find (const gchar *name);
12617 gboolean gimp_parasite_attach (GimpParasite *parasite);
12618 gboolean gimp_parasite_detach (const gchar *name);
12619 gboolean gimp_parasite_list (gint *num_parasites,
12620 gchar ***parasites);
12621 GimpParasite* gimp_drawable_parasite_find (gint32 drawable_ID,
12622 const gchar *name);
12623 gboolean gimp_drawable_parasite_attach (gint32 drawable_ID,
12624 GimpParasite *parasite);
12625 gboolean gimp_drawable_parasite_detach (gint32 drawable_ID,
12626 const gchar *name);
12627 gboolean gimp_drawable_parasite_list (gint32 drawable_ID,
12628 gint *num_parasites,
12629 gchar ***parasites);
12630 GimpParasite* gimp_image_parasite_find (gint32 image_ID,
12631 const gchar *name);
12632 gboolean gimp_image_parasite_attach (gint32 image_ID,
12633 GimpParasite *parasite);
12634 gboolean gimp_image_parasite_detach (gint32 image_ID,
12635 const gchar *name);
12636 gboolean gimp_image_parasite_list (gint32 image_ID,
12637 gint *num_parasites,
12638 gchar ***parasites);
12639 # 57 "../../libgimp/gimp_pdb.h" 2
12640
12641 # 1 "../../libgimp/gimppaths_pdb.h" 1
12642 # 27 "../../libgimp/gimppaths_pdb.h"
12643
12644
12645
12646
12647
12648 gchar** gimp_path_list (gint32 image_ID,
12649 gint *num_paths);
12650 gchar* gimp_path_get_current (gint32 image_ID);
12651 gboolean gimp_path_set_current (gint32 image_ID,
12652 const gchar *name);
12653 gboolean gimp_path_delete (gint32 image_ID,
12654 const gchar *name);
12655 gint gimp_path_get_points (gint32 image_ID,
12656 const gchar *name,
12657 gint *path_closed,
12658 gint *num_path_point_details,
12659 gdouble **points_pairs);
12660 gboolean gimp_path_set_points (gint32 image_ID,
12661 const gchar *name,
12662 gint ptype,
12663 gint num_path_points,
12664 const gdouble *points_pairs);
12665 gboolean gimp_path_stroke_current (gint32 image_ID);
12666 gint gimp_path_get_point_at_dist (gint32 image_ID,
12667 gdouble distance,
12668 gint *y_point,
12669 gdouble *slope);
12670 gint gimp_path_get_tattoo (gint32 image_ID,
12671 const gchar *name);
12672 gboolean gimp_path_set_tattoo (gint32 image_ID,
12673 const gchar *name,
12674 gint tattovalue);
12675 gchar* gimp_get_path_by_tattoo (gint32 image_ID,
12676 gint tattoo);
12677 gint gimp_path_get_locked (gint32 image_ID,
12678 const gchar *name);
12679 gboolean gimp_path_set_locked (gint32 image_ID,
12680 const gchar *name,
12681 gint lockstatus);
12682 gboolean gimp_path_to_selection (gint32 image_ID,
12683 const gchar *name,
12684 GimpChannelOps op,
12685 gboolean antialias,
12686 gboolean feather,
12687 gdouble feather_radius_x,
12688 gdouble feather_radius_y);
12689 gboolean gimp_path_import (gint32 image_ID,
12690 const gchar *filename,
12691 gboolean merge,
12692 gboolean scale);
12693 # 58 "../../libgimp/gimp_pdb.h" 2
12694
12695 # 1 "../../libgimp/gimppattern_pdb.h" 1
12696 # 27 "../../libgimp/gimppattern_pdb.h"
12697
12698
12699
12700
12701
12702 gboolean gimp_pattern_get_info (const gchar *name,
12703 gint *width,
12704 gint *height,
12705 gint *bpp);
12706 gboolean gimp_pattern_get_pixels (const gchar *name,
12707 gint *width,
12708 gint *height,
12709 gint *bpp,
12710 gint *num_color_bytes,
12711 guint8 **color_bytes);
12712 # 59 "../../libgimp/gimp_pdb.h" 2
12713
12714 # 1 "../../libgimp/gimppatterns_pdb.h" 1
12715 # 27 "../../libgimp/gimppatterns_pdb.h"
12716
12717
12718
12719
12720
12721 gboolean gimp_patterns_refresh (void);
12722 gchar** gimp_patterns_get_list (const gchar *filter,
12723 gint *num_patterns);
12724 # 47 "../../libgimp/gimppatterns_pdb.h"
12725 # 60 "../../libgimp/gimp_pdb.h" 2
12726
12727 # 1 "../../libgimp/gimppatternselect_pdb.h" 1
12728 # 27 "../../libgimp/gimppatternselect_pdb.h"
12729
12730
12731
12732
12733
12734 gboolean gimp_patterns_popup (const gchar *pattern_callback,
12735 const gchar *popup_title,
12736 const gchar *initial_pattern);
12737 gboolean gimp_patterns_close_popup (const gchar *pattern_callback);
12738 gboolean gimp_patterns_set_popup (const gchar *pattern_callback,
12739 const gchar *pattern_name);
12740 # 61 "../../libgimp/gimp_pdb.h" 2
12741
12742 # 1 "../../libgimp/gimpplugin_pdb.h" 1
12743 # 27 "../../libgimp/gimpplugin_pdb.h"
12744
12745
12746
12747
12748
12749 gboolean gimp_plugin_domain_register (const gchar *domain_name,
12750 const gchar *domain_path);
12751 gboolean gimp_plugin_help_register (const gchar *domain_name,
12752 const gchar *domain_uri);
12753 gboolean gimp_plugin_menu_register (const gchar *procedure_name,
12754 const gchar *menu_path);
12755 gboolean _gimp_plugin_icon_register (const gchar *procedure_name,
12756 GimpIconType icon_type,
12757 gint icon_data_length,
12758 const guint8 *icon_data);
12759 # 62 "../../libgimp/gimp_pdb.h" 2
12760
12761 # 1 "../../libgimp/gimpproceduraldb_pdb.h" 1
12762 # 27 "../../libgimp/gimpproceduraldb_pdb.h"
12763
12764
12765
12766
12767
12768 gchar* gimp_procedural_db_temp_name (void);
12769 gboolean gimp_procedural_db_dump (const gchar *filename);
12770 gboolean gimp_procedural_db_query (const gchar *name,
12771 const gchar *blurb,
12772 const gchar *help,
12773 const gchar *author,
12774 const gchar *copyright,
12775 const gchar *date,
12776 const gchar *proc_type,
12777 gint *num_matches,
12778 gchar ***procedure_names);
12779 gboolean _gimp_procedural_db_proc_info (const gchar *procedure,
12780 gchar **blurb,
12781 gchar **help,
12782 gchar **author,
12783 gchar **copyright,
12784 gchar **date,
12785 GimpPDBProcType *proc_type,
12786 gint *num_args,
12787 gint *num_values);
12788 gboolean gimp_procedural_db_proc_arg (const gchar *procedure,
12789 gint arg_num,
12790 GimpPDBArgType *arg_type,
12791 gchar **arg_name,
12792 gchar **arg_desc);
12793 gboolean gimp_procedural_db_proc_val (const gchar *procedure,
12794 gint val_num,
12795 GimpPDBArgType *val_type,
12796 gchar **val_name,
12797 gchar **val_desc);
12798 gboolean _gimp_procedural_db_get_data (const gchar *identifier,
12799 gint *bytes,
12800 guint8 **data);
12801 gint gimp_procedural_db_get_data_size (const gchar *identifier);
12802 gboolean _gimp_procedural_db_set_data (const gchar *identifier,
12803 gint bytes,
12804 const guint8 *data);
12805 # 63 "../../libgimp/gimp_pdb.h" 2
12806
12807 # 1 "../../libgimp/gimpprogress_pdb.h" 1
12808 # 27 "../../libgimp/gimpprogress_pdb.h"
12809
12810
12811
12812
12813
12814 gboolean gimp_progress_init (const gchar *message);
12815 gboolean gimp_progress_update (gdouble percentage);
12816 gboolean _gimp_progress_install (const gchar *progress_callback);
12817 gboolean _gimp_progress_uninstall (const gchar *progress_callback);
12818 gboolean gimp_progress_cancel (const gchar *progress_callback);
12819 # 64 "../../libgimp/gimp_pdb.h" 2
12820
12821 # 1 "../../libgimp/gimpselection_pdb.h" 1
12822 # 27 "../../libgimp/gimpselection_pdb.h"
12823
12824
12825
12826
12827
12828 gboolean gimp_selection_bounds (gint32 image_ID,
12829 gboolean *non_empty,
12830 gint *x1,
12831 gint *y1,
12832 gint *x2,
12833 gint *y2);
12834 gint gimp_selection_value (gint32 image_ID,
12835 gint x,
12836 gint y);
12837 gboolean gimp_selection_is_empty (gint32 image_ID);
12838 gboolean gimp_selection_translate (gint32 image_ID,
12839 gint offx,
12840 gint offy);
12841 gint32 _gimp_selection_float (gint32 drawable_ID,
12842 gint offx,
12843 gint offy);
12844 gboolean gimp_selection_invert (gint32 image_ID);
12845 gboolean gimp_selection_sharpen (gint32 image_ID);
12846 gboolean gimp_selection_all (gint32 image_ID);
12847 gboolean gimp_selection_none (gint32 image_ID);
12848 gboolean gimp_selection_feather (gint32 image_ID,
12849 gdouble radius);
12850 gboolean gimp_selection_border (gint32 image_ID,
12851 gint radius);
12852 gboolean gimp_selection_grow (gint32 image_ID,
12853 gint steps);
12854 gboolean gimp_selection_shrink (gint32 image_ID,
12855 gint radius);
12856 gboolean gimp_selection_layer_alpha (gint32 layer_ID);
12857 gboolean gimp_selection_load (gint32 channel_ID);
12858 gint32 gimp_selection_save (gint32 image_ID);
12859 gboolean gimp_selection_combine (gint32 channel_ID,
12860 GimpChannelOps operation);
12861 # 65 "../../libgimp/gimp_pdb.h" 2
12862
12863 # 1 "../../libgimp/gimpselectiontools_pdb.h" 1
12864 # 27 "../../libgimp/gimpselectiontools_pdb.h"
12865
12866
12867
12868
12869
12870 gboolean gimp_by_color_select (gint32 drawable_ID,
12871 const GimpRGB *color,
12872 gint threshold,
12873 GimpChannelOps operation,
12874 gboolean antialias,
12875 gboolean feather,
12876 gdouble feather_radius,
12877 gboolean sample_merged);
12878 gboolean gimp_ellipse_select (gint32 image_ID,
12879 gdouble x,
12880 gdouble y,
12881 gdouble width,
12882 gdouble height,
12883 GimpChannelOps operation,
12884 gboolean antialias,
12885 gboolean feather,
12886 gdouble feather_radius);
12887 gboolean gimp_free_select (gint32 image_ID,
12888 gint num_segs,
12889 const gdouble *segs,
12890 GimpChannelOps operation,
12891 gboolean antialias,
12892 gboolean feather,
12893 gdouble feather_radius);
12894 gboolean gimp_fuzzy_select (gint32 drawable_ID,
12895 gdouble x,
12896 gdouble y,
12897 gint threshold,
12898 GimpChannelOps operation,
12899 gboolean antialias,
12900 gboolean feather,
12901 gdouble feather_radius,
12902 gboolean sample_merged);
12903 gboolean gimp_rect_select (gint32 image_ID,
12904 gdouble x,
12905 gdouble y,
12906 gdouble width,
12907 gdouble height,
12908 GimpChannelOps operation,
12909 gboolean feather,
12910 gdouble feather_radius);
12911 # 66 "../../libgimp/gimp_pdb.h" 2
12912
12913 # 1 "../../libgimp/gimptexttool_pdb.h" 1
12914 # 27 "../../libgimp/gimptexttool_pdb.h"
12915
12916
12917
12918
12919
12920 gint32 gimp_text_fontname (gint32 image_ID,
12921 gint32 drawable_ID,
12922 gdouble x,
12923 gdouble y,
12924 const gchar *text,
12925 gint border,
12926 gboolean antialias,
12927 gdouble size,
12928 GimpSizeType size_type,
12929 const gchar *fontname);
12930 gboolean gimp_text_get_extents_fontname (const gchar *text,
12931 gdouble size,
12932 GimpSizeType size_type,
12933 const gchar *fontname,
12934 gint *width,
12935 gint *height,
12936 gint *ascent,
12937 gint *descent);
12938 # 86 "../../libgimp/gimptexttool_pdb.h"
12939 # 67 "../../libgimp/gimp_pdb.h" 2
12940
12941 # 1 "../../libgimp/gimptransformtools_pdb.h" 1
12942 # 27 "../../libgimp/gimptransformtools_pdb.h"
12943 # 70 "../../libgimp/gimptransformtools_pdb.h"
12944 # 68 "../../libgimp/gimp_pdb.h" 2
12945
12946 # 1 "../../libgimp/gimpundo_pdb.h" 1
12947 # 27 "../../libgimp/gimpundo_pdb.h"
12948
12949
12950
12951
12952
12953 gboolean gimp_image_undo_group_start (gint32 image_ID);
12954 gboolean gimp_image_undo_group_end (gint32 image_ID);
12955 gboolean gimp_image_undo_is_enabled (gint32 image_ID);
12956 gboolean gimp_image_undo_disable (gint32 image_ID);
12957 gboolean gimp_image_undo_enable (gint32 image_ID);
12958 gboolean gimp_image_undo_freeze (gint32 image_ID);
12959 gboolean gimp_image_undo_thaw (gint32 image_ID);
12960 # 69 "../../libgimp/gimp_pdb.h" 2
12961
12962 # 1 "../../libgimp/gimpunit_pdb.h" 1
12963 # 27 "../../libgimp/gimpunit_pdb.h"
12964
12965
12966
12967
12968
12969 gint _gimp_unit_get_number_of_units (void);
12970 gint _gimp_unit_get_number_of_built_in_units (void);
12971 GimpUnit _gimp_unit_new (const gchar *identifier,
12972 gdouble factor,
12973 gint digits,
12974 const gchar *symbol,
12975 const gchar *abbreviation,
12976 const gchar *singular,
12977 const gchar *plural);
12978 gboolean _gimp_unit_get_deletion_flag (GimpUnit unit_id);
12979 gboolean _gimp_unit_set_deletion_flag (GimpUnit unit_id,
12980 gboolean deletion_flag);
12981 gchar* _gimp_unit_get_identifier (GimpUnit unit_id);
12982 gdouble _gimp_unit_get_factor (GimpUnit unit_id);
12983 gint _gimp_unit_get_digits (GimpUnit unit_id);
12984 gchar* _gimp_unit_get_symbol (GimpUnit unit_id);
12985 gchar* _gimp_unit_get_abbreviation (GimpUnit unit_id);
12986 gchar* _gimp_unit_get_singular (GimpUnit unit_id);
12987 gchar* _gimp_unit_get_plural (GimpUnit unit_id);
12988 # 70 "../../libgimp/gimp_pdb.h" 2
12989 # 58 "../../libgimp/gimp.h" 2
12990 # 70 "../../libgimp/gimp.h"
12991 # 78 "../../libgimp/gimp.h"
12992 extern const guint gimp_major_version;
12993 extern const guint gimp_minor_version;
12994 extern const guint gimp_micro_version;
12995
12996
12997 typedef void (* GimpInitProc) (void);
12998 typedef void (* GimpQuitProc) (void);
12999 typedef void (* GimpQueryProc) (void);
13000 typedef void (* GimpRunProc) (const gchar *name,
13001 gint n_params,
13002 const GimpParam *param,
13003 gint *n_return_vals,
13004 GimpParam **return_vals);
13005
13006
13007 struct _GimpPlugInInfo
13008 {
13009
13010 GimpInitProc init_proc;
13011
13012
13013 GimpQuitProc quit_proc;
13014
13015
13016
13017
13018
13019 GimpQueryProc query_proc;
13020
13021
13022
13023
13024 GimpRunProc run_proc;
13025 };
13026
13027 struct _GimpParamDef
13028 {
13029 GimpPDBArgType type;
13030 gchar *name;
13031 gchar *description;
13032 };
13033
13034 struct _GimpParamRegion
13035 {
13036 gint32 x;
13037 gint32 y;
13038 gint32 width;
13039 gint32 height;
13040 };
13041
13042 union _GimpParamData
13043 {
13044 gint32 d_int32;
13045 gint16 d_int16;
13046 gint8 d_int8;
13047 gdouble d_float;
13048 gchar *d_string;
13049 gint32 *d_int32array;
13050 gint16 *d_int16array;
13051 gint8 *d_int8array;
13052 gdouble *d_floatarray;
13053 gchar **d_stringarray;
13054 GimpRGB d_color;
13055 GimpParamRegion d_region;
13056 gint32 d_display;
13057 gint32 d_image;
13058 gint32 d_layer;
13059 gint32 d_layer_mask;
13060 gint32 d_channel;
13061 gint32 d_drawable;
13062 gint32 d_selection;
13063 gint32 d_boundary;
13064 gint32 d_path;
13065 gint32 d_unit;
13066 GimpParasite d_parasite;
13067 gint32 d_tattoo;
13068 GimpPDBStatusType d_status;
13069 };
13070
13071 struct _GimpParam
13072 {
13073 GimpPDBArgType type;
13074 GimpParamData data;
13075 };
13076 # 217 "../../libgimp/gimp.h"
13077 gint gimp_main (const GimpPlugInInfo *info,
13078 gint argc,
13079 gchar *argv[]);
13080
13081
13082
13083
13084 void gimp_quit (void) __attribute__((__noreturn__));
13085
13086
13087
13088
13089 void gimp_install_procedure (const gchar *name,
13090 const gchar *blurb,
13091 const gchar *help,
13092 const gchar *author,
13093 const gchar *copyright,
13094 const gchar *date,
13095 const gchar *menu_label,
13096 const gchar *image_types,
13097 GimpPDBProcType type,
13098 gint n_params,
13099 gint n_return_vals,
13100 const GimpParamDef *params,
13101 const GimpParamDef *return_vals);
13102
13103
13104
13105 void gimp_install_temp_proc (const gchar *name,
13106 const gchar *blurb,
13107 const gchar *help,
13108 const gchar *author,
13109 const gchar *copyright,
13110 const gchar *date,
13111 const gchar *menu_label,
13112 const gchar *image_types,
13113 GimpPDBProcType type,
13114 gint n_params,
13115 gint n_return_vals,
13116 const GimpParamDef *params,
13117 const GimpParamDef *return_vals,
13118 GimpRunProc run_proc);
13119
13120
13121
13122 void gimp_uninstall_temp_proc (const gchar *name);
13123
13124
13125
13126 void gimp_extension_ack (void);
13127
13128
13129
13130 void gimp_extension_enable (void);
13131
13132
13133
13134 void gimp_extension_process (guint timeout);
13135
13136
13137
13138
13139
13140 GimpParam * gimp_run_procedure (const gchar *name,
13141 gint *n_return_vals,
13142 ...);
13143
13144
13145
13146
13147
13148 GimpParam * gimp_run_procedure2 (const gchar *name,
13149 gint *n_return_vals,
13150 gint n_params,
13151 const GimpParam *params);
13152
13153
13154
13155
13156
13157 void gimp_destroy_params (GimpParam *params,
13158 gint n_params);
13159
13160
13161
13162
13163
13164 void gimp_destroy_paramdefs (GimpParamDef *paramdefs,
13165 gint n_params);
13166
13167
13168
13169
13170 guint gimp_tile_width (void) __attribute__((__const__));
13171 guint gimp_tile_height (void) __attribute__((__const__));
13172 gint gimp_shm_ID (void) __attribute__((__const__));
13173 guchar * gimp_shm_addr (void) __attribute__((__const__));
13174 gdouble gimp_gamma (void) __attribute__((__const__));
13175 gboolean gimp_install_cmap (void) __attribute__((__const__));
13176 gint gimp_min_colors (void) __attribute__((__const__));
13177 gboolean gimp_show_tool_tips (void) __attribute__((__const__));
13178 gboolean gimp_show_help_button (void) __attribute__((__const__));
13179 GimpCheckSize gimp_check_size (void) __attribute__((__const__));
13180 GimpCheckType gimp_check_type (void) __attribute__((__const__));
13181 gint32 gimp_default_display (void) __attribute__((__const__));
13182 const gchar * gimp_wm_class (void) __attribute__((__const__));
13183 const gchar * gimp_display_name (void) __attribute__((__const__));
13184 gint gimp_monitor_number (void) __attribute__((__const__));
13185
13186 const gchar * gimp_get_progname (void) __attribute__((__const__));
13187
13188
13189 void gimp_attach_new_parasite (const gchar *name,
13190 gint flags,
13191 gint size,
13192 gconstpointer data);
13193 # 46 "maze.c" 2
13194
13195 # 1 "../../libgimp/gimpui.h" 1
13196 # 23 "../../libgimp/gimpui.h"
13197
13198 # 1 "/usr/include/gtk-2.0/gtk/gtk.h" 1
13199 # 31 "/usr/include/gtk-2.0/gtk/gtk.h"
13200
13201 # 1 "/usr/include/gtk-2.0/gdk/gdk.h" 1
13202 # 30 "/usr/include/gtk-2.0/gdk/gdk.h"
13203
13204 # 1 "/usr/include/gtk-2.0/gdk/gdkcairo.h" 1
13205 # 23 "/usr/include/gtk-2.0/gdk/gdkcairo.h"
13206
13207 # 1 "/usr/include/gtk-2.0/gdk/gdkcolor.h" 1
13208 # 30 "/usr/include/gtk-2.0/gdk/gdkcolor.h"
13209
13210 # 1 "/usr/include/cairo/cairo.h" 1
13211 # 41 "/usr/include/cairo/cairo.h"
13212
13213 # 1 "/usr/include/cairo/cairo-features.h" 1
13214 # 42 "/usr/include/cairo/cairo.h" 2
13215 # 55 "/usr/include/cairo/cairo.h"
13216 int
13217 cairo_version (void);
13218
13219 const char*
13220 cairo_version_string (void);
13221 # 75 "/usr/include/cairo/cairo.h"
13222 typedef int cairo_bool_t;
13223
13224
13225
13226
13227
13228
13229
13230 typedef struct _cairo cairo_t;
13231 # 97 "/usr/include/cairo/cairo.h"
13232 typedef struct _cairo_surface cairo_surface_t;
13233 # 116 "/usr/include/cairo/cairo.h"
13234 typedef struct _cairo_matrix {
13235 double xx; double yx;
13236 double xy; double yy;
13237 double x0; double y0;
13238 } cairo_matrix_t;
13239
13240 typedef struct _cairo_pattern cairo_pattern_t;
13241 # 132 "/usr/include/cairo/cairo.h"
13242 typedef void (*cairo_destroy_func_t) (void *data);
13243 # 144 "/usr/include/cairo/cairo.h"
13244 typedef struct _cairo_user_data_key {
13245 int unused;
13246 } cairo_user_data_key_t;
13247 # 177 "/usr/include/cairo/cairo.h"
13248 typedef enum _cairo_status {
13249 CAIRO_STATUS_SUCCESS = 0,
13250 CAIRO_STATUS_NO_MEMORY,
13251 CAIRO_STATUS_INVALID_RESTORE,
13252 CAIRO_STATUS_INVALID_POP_GROUP,
13253 CAIRO_STATUS_NO_CURRENT_POINT,
13254 CAIRO_STATUS_INVALID_MATRIX,
13255 CAIRO_STATUS_INVALID_STATUS,
13256 CAIRO_STATUS_NULL_POINTER,
13257 CAIRO_STATUS_INVALID_STRING,
13258 CAIRO_STATUS_INVALID_PATH_DATA,
13259 CAIRO_STATUS_READ_ERROR,
13260 CAIRO_STATUS_WRITE_ERROR,
13261 CAIRO_STATUS_SURFACE_FINISHED,
13262 CAIRO_STATUS_SURFACE_TYPE_MISMATCH,
13263 CAIRO_STATUS_PATTERN_TYPE_MISMATCH,
13264 CAIRO_STATUS_INVALID_CONTENT,
13265 CAIRO_STATUS_INVALID_FORMAT,
13266 CAIRO_STATUS_INVALID_VISUAL,
13267 CAIRO_STATUS_FILE_NOT_FOUND,
13268 CAIRO_STATUS_INVALID_DASH,
13269 CAIRO_STATUS_INVALID_DSC_COMMENT
13270 } cairo_status_t;
13271 # 215 "/usr/include/cairo/cairo.h"
13272 typedef enum _cairo_content {
13273 CAIRO_CONTENT_COLOR = 0x1000,
13274 CAIRO_CONTENT_ALPHA = 0x2000,
13275 CAIRO_CONTENT_COLOR_ALPHA = 0x3000
13276 } cairo_content_t;
13277 # 237 "/usr/include/cairo/cairo.h"
13278 typedef cairo_status_t (*cairo_write_func_t) (void *closure,
13279 const unsigned char *data,
13280 unsigned int length);
13281 # 257 "/usr/include/cairo/cairo.h"
13282 typedef cairo_status_t (*cairo_read_func_t) (void *closure,
13283 unsigned char *data,
13284 unsigned int length);
13285
13286
13287 cairo_t *
13288 cairo_create (cairo_surface_t *target);
13289
13290 cairo_t *
13291 cairo_reference (cairo_t *cr);
13292
13293 void
13294 cairo_destroy (cairo_t *cr);
13295
13296 void
13297 cairo_save (cairo_t *cr);
13298
13299 void
13300 cairo_restore (cairo_t *cr);
13301
13302 void
13303 cairo_push_group (cairo_t *cr);
13304
13305 void
13306 cairo_push_group_with_content (cairo_t *cr, cairo_content_t content);
13307
13308 cairo_pattern_t *
13309 cairo_pop_group (cairo_t *cr);
13310
13311 void
13312 cairo_pop_group_to_source (cairo_t *cr);
13313
13314
13315
13316 typedef enum _cairo_operator {
13317 CAIRO_OPERATOR_CLEAR,
13318
13319 CAIRO_OPERATOR_SOURCE,
13320 CAIRO_OPERATOR_OVER,
13321 CAIRO_OPERATOR_IN,
13322 CAIRO_OPERATOR_OUT,
13323 CAIRO_OPERATOR_ATOP,
13324
13325 CAIRO_OPERATOR_DEST,
13326 CAIRO_OPERATOR_DEST_OVER,
13327 CAIRO_OPERATOR_DEST_IN,
13328 CAIRO_OPERATOR_DEST_OUT,
13329 CAIRO_OPERATOR_DEST_ATOP,
13330
13331 CAIRO_OPERATOR_XOR,
13332 CAIRO_OPERATOR_ADD,
13333 CAIRO_OPERATOR_SATURATE
13334 } cairo_operator_t;
13335
13336 void
13337 cairo_set_operator (cairo_t *cr, cairo_operator_t op);
13338
13339 void
13340 cairo_set_source (cairo_t *cr, cairo_pattern_t *source);
13341
13342 void
13343 cairo_set_source_rgb (cairo_t *cr, double red, double green, double blue);
13344
13345 void
13346 cairo_set_source_rgba (cairo_t *cr,
13347 double red, double green, double blue,
13348 double alpha);
13349
13350 void
13351 cairo_set_source_surface (cairo_t *cr,
13352 cairo_surface_t *surface,
13353 double x,
13354 double y);
13355
13356 void
13357 cairo_set_tolerance (cairo_t *cr, double tolerance);
13358 # 347 "/usr/include/cairo/cairo.h"
13359 typedef enum _cairo_antialias {
13360 CAIRO_ANTIALIAS_DEFAULT,
13361 CAIRO_ANTIALIAS_NONE,
13362 CAIRO_ANTIALIAS_GRAY,
13363 CAIRO_ANTIALIAS_SUBPIXEL
13364 } cairo_antialias_t;
13365
13366 void
13367 cairo_set_antialias (cairo_t *cr, cairo_antialias_t antialias);
13368 # 378 "/usr/include/cairo/cairo.h"
13369 typedef enum _cairo_fill_rule {
13370 CAIRO_FILL_RULE_WINDING,
13371 CAIRO_FILL_RULE_EVEN_ODD
13372 } cairo_fill_rule_t;
13373
13374 void
13375 cairo_set_fill_rule (cairo_t *cr, cairo_fill_rule_t fill_rule);
13376
13377 void
13378 cairo_set_line_width (cairo_t *cr, double width);
13379 # 398 "/usr/include/cairo/cairo.h"
13380 typedef enum _cairo_line_cap {
13381 CAIRO_LINE_CAP_BUTT,
13382 CAIRO_LINE_CAP_ROUND,
13383 CAIRO_LINE_CAP_SQUARE
13384 } cairo_line_cap_t;
13385
13386 void
13387 cairo_set_line_cap (cairo_t *cr, cairo_line_cap_t line_cap);
13388
13389 typedef enum _cairo_line_join {
13390 CAIRO_LINE_JOIN_MITER,
13391 CAIRO_LINE_JOIN_ROUND,
13392 CAIRO_LINE_JOIN_BEVEL
13393 } cairo_line_join_t;
13394
13395 void
13396 cairo_set_line_join (cairo_t *cr, cairo_line_join_t line_join);
13397
13398 void
13399 cairo_set_dash (cairo_t *cr,
13400 double *dashes,
13401 int num_dashes,
13402 double offset);
13403
13404 void
13405 cairo_set_miter_limit (cairo_t *cr, double limit);
13406
13407 void
13408 cairo_translate (cairo_t *cr, double tx, double ty);
13409
13410 void
13411 cairo_scale (cairo_t *cr, double sx, double sy);
13412
13413 void
13414 cairo_rotate (cairo_t *cr, double angle);
13415
13416 void
13417 cairo_transform (cairo_t *cr,
13418 const cairo_matrix_t *matrix);
13419
13420 void
13421 cairo_set_matrix (cairo_t *cr,
13422 const cairo_matrix_t *matrix);
13423
13424 void
13425 cairo_identity_matrix (cairo_t *cr);
13426
13427 void
13428 cairo_user_to_device (cairo_t *cr, double *x, double *y);
13429
13430 void
13431 cairo_user_to_device_distance (cairo_t *cr, double *dx, double *dy);
13432
13433 void
13434 cairo_device_to_user (cairo_t *cr, double *x, double *y);
13435
13436 void
13437 cairo_device_to_user_distance (cairo_t *cr, double *dx, double *dy);
13438
13439
13440 void
13441 cairo_new_path (cairo_t *cr);
13442
13443 void
13444 cairo_move_to (cairo_t *cr, double x, double y);
13445
13446 void
13447 cairo_new_sub_path (cairo_t *cr);
13448
13449 void
13450 cairo_line_to (cairo_t *cr, double x, double y);
13451
13452 void
13453 cairo_curve_to (cairo_t *cr,
13454 double x1, double y1,
13455 double x2, double y2,
13456 double x3, double y3);
13457
13458 void
13459 cairo_arc (cairo_t *cr,
13460 double xc, double yc,
13461 double radius,
13462 double angle1, double angle2);
13463
13464 void
13465 cairo_arc_negative (cairo_t *cr,
13466 double xc, double yc,
13467 double radius,
13468 double angle1, double angle2);
13469 # 496 "/usr/include/cairo/cairo.h"
13470 void
13471 cairo_rel_move_to (cairo_t *cr, double dx, double dy);
13472
13473 void
13474 cairo_rel_line_to (cairo_t *cr, double dx, double dy);
13475
13476 void
13477 cairo_rel_curve_to (cairo_t *cr,
13478 double dx1, double dy1,
13479 double dx2, double dy2,
13480 double dx3, double dy3);
13481
13482 void
13483 cairo_rectangle (cairo_t *cr,
13484 double x, double y,
13485 double width, double height);
13486
13487
13488
13489
13490
13491
13492 void
13493 cairo_close_path (cairo_t *cr);
13494
13495
13496 void
13497 cairo_paint (cairo_t *cr);
13498
13499 void
13500 cairo_paint_with_alpha (cairo_t *cr,
13501 double alpha);
13502
13503 void
13504 cairo_mask (cairo_t *cr,
13505 cairo_pattern_t *pattern);
13506
13507 void
13508 cairo_mask_surface (cairo_t *cr,
13509 cairo_surface_t *surface,
13510 double surface_x,
13511 double surface_y);
13512
13513 void
13514 cairo_stroke (cairo_t *cr);
13515
13516 void
13517 cairo_stroke_preserve (cairo_t *cr);
13518
13519 void
13520 cairo_fill (cairo_t *cr);
13521
13522 void
13523 cairo_fill_preserve (cairo_t *cr);
13524
13525 void
13526 cairo_copy_page (cairo_t *cr);
13527
13528 void
13529 cairo_show_page (cairo_t *cr);
13530
13531
13532 cairo_bool_t
13533 cairo_in_stroke (cairo_t *cr, double x, double y);
13534
13535 cairo_bool_t
13536 cairo_in_fill (cairo_t *cr, double x, double y);
13537
13538
13539 void
13540 cairo_stroke_extents (cairo_t *cr,
13541 double *x1, double *y1,
13542 double *x2, double *y2);
13543
13544 void
13545 cairo_fill_extents (cairo_t *cr,
13546 double *x1, double *y1,
13547 double *x2, double *y2);
13548
13549
13550 void
13551 cairo_reset_clip (cairo_t *cr);
13552
13553 void
13554 cairo_clip (cairo_t *cr);
13555
13556 void
13557 cairo_clip_preserve (cairo_t *cr);
13558 # 595 "/usr/include/cairo/cairo.h"
13559 typedef struct _cairo_scaled_font cairo_scaled_font_t;
13560 # 607 "/usr/include/cairo/cairo.h"
13561 typedef struct _cairo_font_face cairo_font_face_t;
13562 # 633 "/usr/include/cairo/cairo.h"
13563 typedef struct {
13564 unsigned long index;
13565 double x;
13566 double y;
13567 } cairo_glyph_t;
13568 # 666 "/usr/include/cairo/cairo.h"
13569 typedef struct {
13570 double x_bearing;
13571 double y_bearing;
13572 double width;
13573 double height;
13574 double x_advance;
13575 double y_advance;
13576 } cairo_text_extents_t;
13577 # 716 "/usr/include/cairo/cairo.h"
13578 typedef struct {
13579 double ascent;
13580 double descent;
13581 double height;
13582 double max_x_advance;
13583 double max_y_advance;
13584 } cairo_font_extents_t;
13585
13586 typedef enum _cairo_font_slant {
13587 CAIRO_FONT_SLANT_NORMAL,
13588 CAIRO_FONT_SLANT_ITALIC,
13589 CAIRO_FONT_SLANT_OBLIQUE
13590 } cairo_font_slant_t;
13591
13592 typedef enum _cairo_font_weight {
13593 CAIRO_FONT_WEIGHT_NORMAL,
13594 CAIRO_FONT_WEIGHT_BOLD
13595 } cairo_font_weight_t;
13596 # 752 "/usr/include/cairo/cairo.h"
13597 typedef enum _cairo_subpixel_order {
13598 CAIRO_SUBPIXEL_ORDER_DEFAULT,
13599 CAIRO_SUBPIXEL_ORDER_RGB,
13600 CAIRO_SUBPIXEL_ORDER_BGR,
13601 CAIRO_SUBPIXEL_ORDER_VRGB,
13602 CAIRO_SUBPIXEL_ORDER_VBGR
13603 } cairo_subpixel_order_t;
13604 # 780 "/usr/include/cairo/cairo.h"
13605 typedef enum _cairo_hint_style {
13606 CAIRO_HINT_STYLE_DEFAULT,
13607 CAIRO_HINT_STYLE_NONE,
13608 CAIRO_HINT_STYLE_SLIGHT,
13609 CAIRO_HINT_STYLE_MEDIUM,
13610 CAIRO_HINT_STYLE_FULL
13611 } cairo_hint_style_t;
13612 # 801 "/usr/include/cairo/cairo.h"
13613 typedef enum _cairo_hint_metrics {
13614 CAIRO_HINT_METRICS_DEFAULT,
13615 CAIRO_HINT_METRICS_OFF,
13616 CAIRO_HINT_METRICS_ON
13617 } cairo_hint_metrics_t;
13618
13619 typedef struct _cairo_font_options cairo_font_options_t;
13620
13621 cairo_font_options_t *
13622 cairo_font_options_create (void);
13623
13624 cairo_font_options_t *
13625 cairo_font_options_copy (const cairo_font_options_t *original);
13626
13627 void
13628 cairo_font_options_destroy (cairo_font_options_t *options);
13629
13630 cairo_status_t
13631 cairo_font_options_status (cairo_font_options_t *options);
13632
13633 void
13634 cairo_font_options_merge (cairo_font_options_t *options,
13635 const cairo_font_options_t *other);
13636 cairo_bool_t
13637 cairo_font_options_equal (const cairo_font_options_t *options,
13638 const cairo_font_options_t *other);
13639
13640 unsigned long
13641 cairo_font_options_hash (const cairo_font_options_t *options);
13642
13643 void
13644 cairo_font_options_set_antialias (cairo_font_options_t *options,
13645 cairo_antialias_t antialias);
13646 cairo_antialias_t
13647 cairo_font_options_get_antialias (const cairo_font_options_t *options);
13648
13649 void
13650 cairo_font_options_set_subpixel_order (cairo_font_options_t *options,
13651 cairo_subpixel_order_t subpixel_order);
13652 cairo_subpixel_order_t
13653 cairo_font_options_get_subpixel_order (const cairo_font_options_t *options);
13654
13655 void
13656 cairo_font_options_set_hint_style (cairo_font_options_t *options,
13657 cairo_hint_style_t hint_style);
13658 cairo_hint_style_t
13659 cairo_font_options_get_hint_style (const cairo_font_options_t *options);
13660
13661 void
13662 cairo_font_options_set_hint_metrics (cairo_font_options_t *options,
13663 cairo_hint_metrics_t hint_metrics);
13664 cairo_hint_metrics_t
13665 cairo_font_options_get_hint_metrics (const cairo_font_options_t *options);
13666
13667
13668
13669
13670
13671 void
13672 cairo_select_font_face (cairo_t *cr,
13673 const char *family,
13674 cairo_font_slant_t slant,
13675 cairo_font_weight_t weight);
13676
13677 void
13678 cairo_set_font_size (cairo_t *cr, double size);
13679
13680 void
13681 cairo_set_font_matrix (cairo_t *cr,
13682 const cairo_matrix_t *matrix);
13683
13684 void
13685 cairo_get_font_matrix (cairo_t *cr,
13686 cairo_matrix_t *matrix);
13687
13688 void
13689 cairo_set_font_options (cairo_t *cr,
13690 const cairo_font_options_t *options);
13691
13692 void
13693 cairo_get_font_options (cairo_t *cr,
13694 cairo_font_options_t *options);
13695
13696 void
13697 cairo_set_scaled_font (cairo_t *cr,
13698 const cairo_scaled_font_t *scaled_font);
13699
13700 void
13701 cairo_show_text (cairo_t *cr, const char *utf8);
13702
13703 void
13704 cairo_show_glyphs (cairo_t *cr, cairo_glyph_t *glyphs, int num_glyphs);
13705
13706 cairo_font_face_t *
13707 cairo_get_font_face (cairo_t *cr);
13708
13709 void
13710 cairo_font_extents (cairo_t *cr,
13711 cairo_font_extents_t *extents);
13712
13713 void
13714 cairo_set_font_face (cairo_t *cr, cairo_font_face_t *font_face);
13715
13716 void
13717 cairo_text_extents (cairo_t *cr,
13718 const char *utf8,
13719 cairo_text_extents_t *extents);
13720
13721 void
13722 cairo_glyph_extents (cairo_t *cr,
13723 cairo_glyph_t *glyphs,
13724 int num_glyphs,
13725 cairo_text_extents_t *extents);
13726
13727 void
13728 cairo_text_path (cairo_t *cr, const char *utf8);
13729
13730 void
13731 cairo_glyph_path (cairo_t *cr, cairo_glyph_t *glyphs, int num_glyphs);
13732
13733
13734
13735 cairo_font_face_t *
13736 cairo_font_face_reference (cairo_font_face_t *font_face);
13737
13738 void
13739 cairo_font_face_destroy (cairo_font_face_t *font_face);
13740
13741 cairo_status_t
13742 cairo_font_face_status (cairo_font_face_t *font_face);
13743 # 963 "/usr/include/cairo/cairo.h"
13744 typedef enum _cairo_font_type {
13745 CAIRO_FONT_TYPE_TOY,
13746 CAIRO_FONT_TYPE_FT,
13747 CAIRO_FONT_TYPE_WIN32,
13748 CAIRO_FONT_TYPE_ATSUI
13749 } cairo_font_type_t;
13750
13751 cairo_font_type_t
13752 cairo_font_face_get_type (cairo_font_face_t *font_face);
13753
13754 void *
13755 cairo_font_face_get_user_data (cairo_font_face_t *font_face,
13756 const cairo_user_data_key_t *key);
13757
13758 cairo_status_t
13759 cairo_font_face_set_user_data (cairo_font_face_t *font_face,
13760 const cairo_user_data_key_t *key,
13761 void *user_data,
13762 cairo_destroy_func_t destroy);
13763
13764
13765
13766 cairo_scaled_font_t *
13767 cairo_scaled_font_create (cairo_font_face_t *font_face,
13768 const cairo_matrix_t *font_matrix,
13769 const cairo_matrix_t *ctm,
13770 const cairo_font_options_t *options);
13771
13772 cairo_scaled_font_t *
13773 cairo_scaled_font_reference (cairo_scaled_font_t *scaled_font);
13774
13775 void
13776 cairo_scaled_font_destroy (cairo_scaled_font_t *scaled_font);
13777
13778 cairo_status_t
13779 cairo_scaled_font_status (cairo_scaled_font_t *scaled_font);
13780
13781 cairo_font_type_t
13782 cairo_scaled_font_get_type (cairo_scaled_font_t *scaled_font);
13783
13784 void
13785 cairo_scaled_font_extents (cairo_scaled_font_t *scaled_font,
13786 cairo_font_extents_t *extents);
13787
13788 void
13789 cairo_scaled_font_text_extents (cairo_scaled_font_t *scaled_font,
13790 const char *utf8,
13791 cairo_text_extents_t *extents);
13792
13793 void
13794 cairo_scaled_font_glyph_extents (cairo_scaled_font_t *scaled_font,
13795 cairo_glyph_t *glyphs,
13796 int num_glyphs,
13797 cairo_text_extents_t *extents);
13798
13799 cairo_font_face_t *
13800 cairo_scaled_font_get_font_face (cairo_scaled_font_t *scaled_font);
13801
13802 void
13803 cairo_scaled_font_get_font_matrix (cairo_scaled_font_t *scaled_font,
13804 cairo_matrix_t *font_matrix);
13805
13806 void
13807 cairo_scaled_font_get_ctm (cairo_scaled_font_t *scaled_font,
13808 cairo_matrix_t *ctm);
13809
13810 void
13811 cairo_scaled_font_get_font_options (cairo_scaled_font_t *scaled_font,
13812 cairo_font_options_t *options);
13813
13814
13815
13816 cairo_operator_t
13817 cairo_get_operator (cairo_t *cr);
13818
13819 cairo_pattern_t *
13820 cairo_get_source (cairo_t *cr);
13821
13822 double
13823 cairo_get_tolerance (cairo_t *cr);
13824
13825 cairo_antialias_t
13826 cairo_get_antialias (cairo_t *cr);
13827
13828 void
13829 cairo_get_current_point (cairo_t *cr, double *x, double *y);
13830
13831 cairo_fill_rule_t
13832 cairo_get_fill_rule (cairo_t *cr);
13833
13834 double
13835 cairo_get_line_width (cairo_t *cr);
13836
13837 cairo_line_cap_t
13838 cairo_get_line_cap (cairo_t *cr);
13839
13840 cairo_line_join_t
13841 cairo_get_line_join (cairo_t *cr);
13842
13843 double
13844 cairo_get_miter_limit (cairo_t *cr);
13845
13846
13847
13848 void
13849 cairo_get_matrix (cairo_t *cr, cairo_matrix_t *matrix);
13850
13851 cairo_surface_t *
13852 cairo_get_target (cairo_t *cr);
13853
13854 cairo_surface_t *
13855 cairo_get_group_target (cairo_t *cr);
13856
13857 typedef enum _cairo_path_data_type {
13858 CAIRO_PATH_MOVE_TO,
13859 CAIRO_PATH_LINE_TO,
13860 CAIRO_PATH_CURVE_TO,
13861 CAIRO_PATH_CLOSE_PATH
13862 } cairo_path_data_type_t;
13863 # 1142 "/usr/include/cairo/cairo.h"
13864 typedef union _cairo_path_data_t cairo_path_data_t;
13865 union _cairo_path_data_t {
13866 struct {
13867 cairo_path_data_type_t type;
13868 int length;
13869 } header;
13870 struct {
13871 double x, y;
13872 } point;
13873 };
13874 # 1172 "/usr/include/cairo/cairo.h"
13875 typedef struct cairo_path {
13876 cairo_status_t status;
13877 cairo_path_data_t *data;
13878 int num_data;
13879 } cairo_path_t;
13880
13881 cairo_path_t *
13882 cairo_copy_path (cairo_t *cr);
13883
13884 cairo_path_t *
13885 cairo_copy_path_flat (cairo_t *cr);
13886
13887 void
13888 cairo_append_path (cairo_t *cr,
13889 cairo_path_t *path);
13890
13891 void
13892 cairo_path_destroy (cairo_path_t *path);
13893
13894
13895
13896 cairo_status_t
13897 cairo_status (cairo_t *cr);
13898
13899 const char *
13900 cairo_status_to_string (cairo_status_t status);
13901
13902
13903
13904 cairo_surface_t *
13905 cairo_surface_create_similar (cairo_surface_t *other,
13906 cairo_content_t content,
13907 int width,
13908 int height);
13909
13910 cairo_surface_t *
13911 cairo_surface_reference (cairo_surface_t *surface);
13912
13913 void
13914 cairo_surface_finish (cairo_surface_t *surface);
13915
13916 void
13917 cairo_surface_destroy (cairo_surface_t *surface);
13918
13919 cairo_status_t
13920 cairo_surface_status (cairo_surface_t *surface);
13921 # 1252 "/usr/include/cairo/cairo.h"
13922 typedef enum _cairo_surface_type {
13923 CAIRO_SURFACE_TYPE_IMAGE,
13924 CAIRO_SURFACE_TYPE_PDF,
13925 CAIRO_SURFACE_TYPE_PS,
13926 CAIRO_SURFACE_TYPE_XLIB,
13927 CAIRO_SURFACE_TYPE_XCB,
13928 CAIRO_SURFACE_TYPE_GLITZ,
13929 CAIRO_SURFACE_TYPE_QUARTZ,
13930 CAIRO_SURFACE_TYPE_WIN32,
13931 CAIRO_SURFACE_TYPE_BEOS,
13932 CAIRO_SURFACE_TYPE_DIRECTFB,
13933 CAIRO_SURFACE_TYPE_SVG
13934 } cairo_surface_type_t;
13935
13936 cairo_surface_type_t
13937 cairo_surface_get_type (cairo_surface_t *surface);
13938
13939
13940
13941 cairo_status_t
13942 cairo_surface_write_to_png (cairo_surface_t *surface,
13943 const char *filename);
13944
13945 cairo_status_t
13946 cairo_surface_write_to_png_stream (cairo_surface_t *surface,
13947 cairo_write_func_t write_func,
13948 void *closure);
13949
13950
13951
13952 void *
13953 cairo_surface_get_user_data (cairo_surface_t *surface,
13954 const cairo_user_data_key_t *key);
13955
13956 cairo_status_t
13957 cairo_surface_set_user_data (cairo_surface_t *surface,
13958 const cairo_user_data_key_t *key,
13959 void *user_data,
13960 cairo_destroy_func_t destroy);
13961
13962 void
13963 cairo_surface_get_font_options (cairo_surface_t *surface,
13964 cairo_font_options_t *options);
13965
13966 void
13967 cairo_surface_flush (cairo_surface_t *surface);
13968
13969 void
13970 cairo_surface_mark_dirty (cairo_surface_t *surface);
13971
13972 void
13973 cairo_surface_mark_dirty_rectangle (cairo_surface_t *surface,
13974 int x,
13975 int y,
13976 int width,
13977 int height);
13978
13979 void
13980 cairo_surface_set_device_offset (cairo_surface_t *surface,
13981 double x_offset,
13982 double y_offset);
13983
13984 void
13985 cairo_surface_get_device_offset (cairo_surface_t *surface,
13986 double *x_offset,
13987 double *y_offset);
13988 # 1343 "/usr/include/cairo/cairo.h"
13989 typedef enum _cairo_format {
13990 CAIRO_FORMAT_ARGB32,
13991 CAIRO_FORMAT_RGB24,
13992 CAIRO_FORMAT_A8,
13993 CAIRO_FORMAT_A1
13994 } cairo_format_t;
13995
13996 cairo_surface_t *
13997 cairo_image_surface_create (cairo_format_t format,
13998 int width,
13999 int height);
14000
14001 cairo_surface_t *
14002 cairo_image_surface_create_for_data (unsigned char *data,
14003 cairo_format_t format,
14004 int width,
14005 int height,
14006 int stride);
14007
14008 int
14009 cairo_image_surface_get_width (cairo_surface_t *surface);
14010
14011 int
14012 cairo_image_surface_get_height (cairo_surface_t *surface);
14013
14014
14015
14016 cairo_surface_t *
14017 cairo_image_surface_create_from_png (const char *filename);
14018
14019 cairo_surface_t *
14020 cairo_image_surface_create_from_png_stream (cairo_read_func_t read_func,
14021 void *closure);
14022
14023
14024
14025
14026
14027 cairo_pattern_t *
14028 cairo_pattern_create_rgb (double red, double green, double blue);
14029
14030 cairo_pattern_t *
14031 cairo_pattern_create_rgba (double red, double green, double blue,
14032 double alpha);
14033
14034 cairo_pattern_t *
14035 cairo_pattern_create_for_surface (cairo_surface_t *surface);
14036
14037 cairo_pattern_t *
14038 cairo_pattern_create_linear (double x0, double y0,
14039 double x1, double y1);
14040
14041 cairo_pattern_t *
14042 cairo_pattern_create_radial (double cx0, double cy0, double radius0,
14043 double cx1, double cy1, double radius1);
14044
14045 cairo_pattern_t *
14046 cairo_pattern_reference (cairo_pattern_t *pattern);
14047
14048 void
14049 cairo_pattern_destroy (cairo_pattern_t *pattern);
14050
14051 cairo_status_t
14052 cairo_pattern_status (cairo_pattern_t *pattern);
14053 # 1435 "/usr/include/cairo/cairo.h"
14054 typedef enum _cairo_pattern_type {
14055 CAIRO_PATTERN_TYPE_SOLID,
14056 CAIRO_PATTERN_TYPE_SURFACE,
14057 CAIRO_PATTERN_TYPE_LINEAR,
14058 CAIRO_PATTERN_TYPE_RADIAL
14059 } cairo_pattern_type_t;
14060
14061 cairo_pattern_type_t
14062 cairo_pattern_get_type (cairo_pattern_t *pattern);
14063
14064 void
14065 cairo_pattern_add_color_stop_rgb (cairo_pattern_t *pattern,
14066 double offset,
14067 double red, double green, double blue);
14068
14069 void
14070 cairo_pattern_add_color_stop_rgba (cairo_pattern_t *pattern,
14071 double offset,
14072 double red, double green, double blue,
14073 double alpha);
14074
14075 void
14076 cairo_pattern_set_matrix (cairo_pattern_t *pattern,
14077 const cairo_matrix_t *matrix);
14078
14079 void
14080 cairo_pattern_get_matrix (cairo_pattern_t *pattern,
14081 cairo_matrix_t *matrix);
14082 # 1477 "/usr/include/cairo/cairo.h"
14083 typedef enum _cairo_extend {
14084 CAIRO_EXTEND_NONE,
14085 CAIRO_EXTEND_REPEAT,
14086 CAIRO_EXTEND_REFLECT,
14087 CAIRO_EXTEND_PAD
14088 } cairo_extend_t;
14089
14090 void
14091 cairo_pattern_set_extend (cairo_pattern_t *pattern, cairo_extend_t extend);
14092
14093 cairo_extend_t
14094 cairo_pattern_get_extend (cairo_pattern_t *pattern);
14095
14096 typedef enum _cairo_filter {
14097 CAIRO_FILTER_FAST,
14098 CAIRO_FILTER_GOOD,
14099 CAIRO_FILTER_BEST,
14100 CAIRO_FILTER_NEAREST,
14101 CAIRO_FILTER_BILINEAR,
14102 CAIRO_FILTER_GAUSSIAN
14103 } cairo_filter_t;
14104
14105 void
14106 cairo_pattern_set_filter (cairo_pattern_t *pattern, cairo_filter_t filter);
14107
14108 cairo_filter_t
14109 cairo_pattern_get_filter (cairo_pattern_t *pattern);
14110
14111
14112
14113 void
14114 cairo_matrix_init (cairo_matrix_t *matrix,
14115 double xx, double yx,
14116 double xy, double yy,
14117 double x0, double y0);
14118
14119 void
14120 cairo_matrix_init_identity (cairo_matrix_t *matrix);
14121
14122 void
14123 cairo_matrix_init_translate (cairo_matrix_t *matrix,
14124 double tx, double ty);
14125
14126 void
14127 cairo_matrix_init_scale (cairo_matrix_t *matrix,
14128 double sx, double sy);
14129
14130 void
14131 cairo_matrix_init_rotate (cairo_matrix_t *matrix,
14132 double radians);
14133
14134 void
14135 cairo_matrix_translate (cairo_matrix_t *matrix, double tx, double ty);
14136
14137 void
14138 cairo_matrix_scale (cairo_matrix_t *matrix, double sx, double sy);
14139
14140 void
14141 cairo_matrix_rotate (cairo_matrix_t *matrix, double radians);
14142
14143 cairo_status_t
14144 cairo_matrix_invert (cairo_matrix_t *matrix);
14145
14146 void
14147 cairo_matrix_multiply (cairo_matrix_t *result,
14148 const cairo_matrix_t *a,
14149 const cairo_matrix_t *b);
14150
14151
14152 void
14153 cairo_matrix_transform_distance (const cairo_matrix_t *matrix,
14154 double *dx, double *dy);
14155
14156
14157 void
14158 cairo_matrix_transform_point (const cairo_matrix_t *matrix,
14159 double *x, double *y);
14160 # 1639 "/usr/include/cairo/cairo.h"
14161 # 31 "/usr/include/gtk-2.0/gdk/gdkcolor.h" 2
14162
14163 # 1 "/usr/include/gtk-2.0/gdk/gdktypes.h" 1
14164 # 33 "/usr/include/gtk-2.0/gdk/gdktypes.h"
14165
14166 # 1 "/usr/include/pango-1.0/pango/pango.h" 1
14167 # 25 "/usr/include/pango-1.0/pango/pango.h"
14168
14169 # 1 "/usr/include/pango-1.0/pango/pango-attributes.h" 1
14170 # 25 "/usr/include/pango-1.0/pango/pango-attributes.h"
14171
14172 # 1 "/usr/include/pango-1.0/pango/pango-font.h" 1
14173 # 25 "/usr/include/pango-1.0/pango/pango-font.h"
14174
14175 # 1 "/usr/include/pango-1.0/pango/pango-coverage.h" 1
14176 # 27 "/usr/include/pango-1.0/pango/pango-coverage.h"
14177
14178
14179 typedef struct _PangoCoverage PangoCoverage;
14180
14181 typedef enum {
14182 PANGO_COVERAGE_NONE,
14183 PANGO_COVERAGE_FALLBACK,
14184 PANGO_COVERAGE_APPROXIMATE,
14185 PANGO_COVERAGE_EXACT
14186 } PangoCoverageLevel;
14187
14188 PangoCoverage * pango_coverage_new (void);
14189 PangoCoverage * pango_coverage_ref (PangoCoverage *coverage);
14190 void pango_coverage_unref (PangoCoverage *coverage);
14191 PangoCoverage * pango_coverage_copy (PangoCoverage *coverage);
14192 PangoCoverageLevel pango_coverage_get (PangoCoverage *coverage,
14193 int index_);
14194 void pango_coverage_set (PangoCoverage *coverage,
14195 int index_,
14196 PangoCoverageLevel level);
14197 void pango_coverage_max (PangoCoverage *coverage,
14198 PangoCoverage *other);
14199
14200 void pango_coverage_to_bytes (PangoCoverage *coverage,
14201 guchar **bytes,
14202 int *n_bytes);
14203 PangoCoverage *pango_coverage_from_bytes (guchar *bytes,
14204 int n_bytes);
14205 # 26 "/usr/include/pango-1.0/pango/pango-font.h" 2
14206
14207 # 1 "/usr/include/pango-1.0/pango/pango-types.h" 1
14208 # 28 "/usr/include/pango-1.0/pango/pango-types.h"
14209
14210
14211 typedef struct _PangoLogAttr PangoLogAttr;
14212
14213 typedef struct _PangoEngineLang PangoEngineLang;
14214 typedef struct _PangoEngineShape PangoEngineShape;
14215
14216 typedef struct _PangoFont PangoFont;
14217 typedef struct _PangoFontMap PangoFontMap;
14218
14219 typedef struct _PangoMatrix PangoMatrix;
14220 typedef struct _PangoRectangle PangoRectangle;
14221
14222
14223 typedef struct _PangoLanguage PangoLanguage;
14224
14225
14226
14227 typedef guint32 PangoGlyph;
14228
14229
14230
14231
14232 struct _PangoRectangle
14233 {
14234 int x;
14235 int y;
14236 int width;
14237 int height;
14238 };
14239 # 79 "/usr/include/pango-1.0/pango/pango-types.h"
14240 struct _PangoMatrix
14241 {
14242 double xx;
14243 double xy;
14244 double yx;
14245 double yy;
14246 double x0;
14247 double y0;
14248 };
14249 # 111 "/usr/include/pango-1.0/pango/pango-types.h"
14250 GType pango_matrix_get_type (void);
14251
14252 PangoMatrix *pango_matrix_copy (const PangoMatrix *matrix);
14253 void pango_matrix_free (PangoMatrix *matrix);
14254
14255 void pango_matrix_translate (PangoMatrix *matrix,
14256 double tx,
14257 double ty);
14258 void pango_matrix_scale (PangoMatrix *matrix,
14259 double scale_x,
14260 double scale_y);
14261 void pango_matrix_rotate (PangoMatrix *matrix,
14262 double degrees);
14263 void pango_matrix_concat (PangoMatrix *matrix,
14264 const PangoMatrix *new_matrix);
14265 double pango_matrix_get_font_scale_factor (const PangoMatrix *matrix);
14266 # 175 "/usr/include/pango-1.0/pango/pango-types.h"
14267 typedef enum {
14268 PANGO_DIRECTION_LTR,
14269 PANGO_DIRECTION_RTL,
14270 PANGO_DIRECTION_TTB_LTR,
14271 PANGO_DIRECTION_TTB_RTL,
14272 PANGO_DIRECTION_WEAK_LTR,
14273 PANGO_DIRECTION_WEAK_RTL,
14274 PANGO_DIRECTION_NEUTRAL
14275 } PangoDirection;
14276
14277
14278
14279 GType pango_language_get_type (void);
14280 PangoLanguage *pango_language_from_string (const char *language);
14281
14282
14283 gboolean pango_language_matches (PangoLanguage *language,
14284 const char *range_list);
14285
14286
14287 gboolean pango_get_mirror_char (gunichar ch,
14288 gunichar *mirrored_ch);
14289
14290
14291
14292 PangoDirection pango_unichar_direction (gunichar ch);
14293 PangoDirection pango_find_base_dir (const gchar *text,
14294 gint length);
14295 # 27 "/usr/include/pango-1.0/pango/pango-font.h" 2
14296
14297
14298
14299
14300
14301 typedef struct _PangoFontDescription PangoFontDescription;
14302 typedef struct _PangoFontMetrics PangoFontMetrics;
14303 # 43 "/usr/include/pango-1.0/pango/pango-font.h"
14304 typedef enum {
14305 PANGO_STYLE_NORMAL,
14306 PANGO_STYLE_OBLIQUE,
14307 PANGO_STYLE_ITALIC
14308 } PangoStyle;
14309
14310 typedef enum {
14311 PANGO_VARIANT_NORMAL,
14312 PANGO_VARIANT_SMALL_CAPS
14313 } PangoVariant;
14314
14315 typedef enum {
14316 PANGO_WEIGHT_ULTRALIGHT = 200,
14317 PANGO_WEIGHT_LIGHT = 300,
14318 PANGO_WEIGHT_NORMAL = 400,
14319 PANGO_WEIGHT_SEMIBOLD = 600,
14320 PANGO_WEIGHT_BOLD = 700,
14321 PANGO_WEIGHT_ULTRABOLD = 800,
14322 PANGO_WEIGHT_HEAVY = 900
14323 } PangoWeight;
14324
14325 typedef enum {
14326 PANGO_STRETCH_ULTRA_CONDENSED,
14327 PANGO_STRETCH_EXTRA_CONDENSED,
14328 PANGO_STRETCH_CONDENSED,
14329 PANGO_STRETCH_SEMI_CONDENSED,
14330 PANGO_STRETCH_NORMAL,
14331 PANGO_STRETCH_SEMI_EXPANDED,
14332 PANGO_STRETCH_EXPANDED,
14333 PANGO_STRETCH_EXTRA_EXPANDED,
14334 PANGO_STRETCH_ULTRA_EXPANDED
14335 } PangoStretch;
14336
14337 typedef enum {
14338 PANGO_FONT_MASK_FAMILY = 1 << 0,
14339 PANGO_FONT_MASK_STYLE = 1 << 1,
14340 PANGO_FONT_MASK_VARIANT = 1 << 2,
14341 PANGO_FONT_MASK_WEIGHT = 1 << 3,
14342 PANGO_FONT_MASK_STRETCH = 1 << 4,
14343 PANGO_FONT_MASK_SIZE = 1 << 5
14344 } PangoFontMask;
14345 # 100 "/usr/include/pango-1.0/pango/pango-font.h"
14346 GType pango_font_description_get_type (void);
14347 PangoFontDescription *pango_font_description_new (void);
14348 PangoFontDescription *pango_font_description_copy (const PangoFontDescription *desc);
14349 PangoFontDescription *pango_font_description_copy_static (const PangoFontDescription *desc);
14350 guint pango_font_description_hash (const PangoFontDescription *desc);
14351 gboolean pango_font_description_equal (const PangoFontDescription *desc1,
14352 const PangoFontDescription *desc2);
14353 void pango_font_description_free (PangoFontDescription *desc);
14354 void pango_font_descriptions_free (PangoFontDescription **descs,
14355 int n_descs);
14356
14357 void pango_font_description_set_family (PangoFontDescription *desc,
14358 const char *family);
14359 void pango_font_description_set_family_static (PangoFontDescription *desc,
14360 const char *family);
14361 const char *pango_font_description_get_family (const PangoFontDescription *desc);
14362 void pango_font_description_set_style (PangoFontDescription *desc,
14363 PangoStyle style);
14364 PangoStyle pango_font_description_get_style (const PangoFontDescription *desc);
14365 void pango_font_description_set_variant (PangoFontDescription *desc,
14366 PangoVariant variant);
14367 PangoVariant pango_font_description_get_variant (const PangoFontDescription *desc);
14368 void pango_font_description_set_weight (PangoFontDescription *desc,
14369 PangoWeight weight);
14370 PangoWeight pango_font_description_get_weight (const PangoFontDescription *desc);
14371 void pango_font_description_set_stretch (PangoFontDescription *desc,
14372 PangoStretch stretch);
14373 PangoStretch pango_font_description_get_stretch (const PangoFontDescription *desc);
14374 void pango_font_description_set_size (PangoFontDescription *desc,
14375 gint size);
14376 gint pango_font_description_get_size (const PangoFontDescription *desc);
14377 void pango_font_description_set_absolute_size (PangoFontDescription *desc,
14378 double size);
14379 gboolean pango_font_description_get_size_is_absolute (const PangoFontDescription *desc);
14380
14381 PangoFontMask pango_font_description_get_set_fields (const PangoFontDescription *desc);
14382 void pango_font_description_unset_fields (PangoFontDescription *desc,
14383 PangoFontMask to_unset);
14384
14385 void pango_font_description_merge (PangoFontDescription *desc,
14386 const PangoFontDescription *desc_to_merge,
14387 gboolean replace_existing);
14388 void pango_font_description_merge_static (PangoFontDescription *desc,
14389 const PangoFontDescription *desc_to_merge,
14390 gboolean replace_existing);
14391
14392 gboolean pango_font_description_better_match (const PangoFontDescription *desc,
14393 const PangoFontDescription *old_match,
14394 const PangoFontDescription *new_match);
14395
14396 PangoFontDescription *pango_font_description_from_string (const char *str);
14397 char * pango_font_description_to_string (const PangoFontDescription *desc);
14398 char * pango_font_description_to_filename (const PangoFontDescription *desc);
14399
14400
14401
14402
14403
14404
14405 GType pango_font_metrics_get_type (void);
14406 PangoFontMetrics *pango_font_metrics_ref (PangoFontMetrics *metrics);
14407 void pango_font_metrics_unref (PangoFontMetrics *metrics);
14408 int pango_font_metrics_get_ascent (PangoFontMetrics *metrics);
14409 int pango_font_metrics_get_descent (PangoFontMetrics *metrics);
14410 int pango_font_metrics_get_approximate_char_width (PangoFontMetrics *metrics);
14411 int pango_font_metrics_get_approximate_digit_width (PangoFontMetrics *metrics);
14412 int pango_font_metrics_get_underline_position (PangoFontMetrics *metrics);
14413 int pango_font_metrics_get_underline_thickness (PangoFontMetrics *metrics);
14414 int pango_font_metrics_get_strikethrough_position (PangoFontMetrics *metrics);
14415 int pango_font_metrics_get_strikethrough_thickness (PangoFontMetrics *metrics);
14416 # 199 "/usr/include/pango-1.0/pango/pango-font.h"
14417 typedef struct _PangoFontFamily PangoFontFamily;
14418 typedef struct _PangoFontFace PangoFontFace;
14419
14420 GType pango_font_family_get_type (void) __attribute__((__const__));
14421
14422 void pango_font_family_list_faces (PangoFontFamily *family,
14423 PangoFontFace ***faces,
14424 int *n_faces);
14425 const char *pango_font_family_get_name (PangoFontFamily *family);
14426 gboolean pango_font_family_is_monospace (PangoFontFamily *family);
14427 # 253 "/usr/include/pango-1.0/pango/pango-font.h"
14428 GType pango_font_face_get_type (void) __attribute__((__const__));
14429
14430 PangoFontDescription *pango_font_face_describe (PangoFontFace *face);
14431 const char *pango_font_face_get_face_name (PangoFontFace *face);
14432 void pango_font_face_list_sizes (PangoFontFace *face,
14433 int **sizes,
14434 int *n_sizes);
14435 # 304 "/usr/include/pango-1.0/pango/pango-font.h"
14436 GType pango_font_get_type (void) __attribute__((__const__));
14437
14438 PangoFontDescription *pango_font_describe (PangoFont *font);
14439 PangoCoverage * pango_font_get_coverage (PangoFont *font,
14440 PangoLanguage *language);
14441 PangoEngineShape * pango_font_find_shaper (PangoFont *font,
14442 PangoLanguage *language,
14443 guint32 ch);
14444 PangoFontMetrics * pango_font_get_metrics (PangoFont *font,
14445 PangoLanguage *language);
14446 void pango_font_get_glyph_extents (PangoFont *font,
14447 PangoGlyph glyph,
14448 PangoRectangle *ink_rect,
14449 PangoRectangle *logical_rect);
14450 PangoFontMap *pango_font_get_font_map (PangoFont *font);
14451 # 375 "/usr/include/pango-1.0/pango/pango-font.h"
14452 # 26 "/usr/include/pango-1.0/pango/pango-attributes.h" 2
14453
14454
14455
14456
14457
14458
14459 typedef struct _PangoColor PangoColor;
14460
14461 struct _PangoColor
14462 {
14463 guint16 red;
14464 guint16 green;
14465 guint16 blue;
14466 };
14467
14468
14469 GType pango_color_get_type (void) __attribute__((__const__));
14470
14471 PangoColor *pango_color_copy (const PangoColor *src);
14472 void pango_color_free (PangoColor *color);
14473 gboolean pango_color_parse (PangoColor *color,
14474 const char *spec);
14475
14476
14477
14478 typedef struct _PangoAttribute PangoAttribute;
14479 typedef struct _PangoAttrClass PangoAttrClass;
14480
14481 typedef struct _PangoAttrString PangoAttrString;
14482 typedef struct _PangoAttrLanguage PangoAttrLanguage;
14483 typedef struct _PangoAttrInt PangoAttrInt;
14484 typedef struct _PangoAttrSize PangoAttrSize;
14485 typedef struct _PangoAttrFloat PangoAttrFloat;
14486 typedef struct _PangoAttrColor PangoAttrColor;
14487 typedef struct _PangoAttrFontDesc PangoAttrFontDesc;
14488 typedef struct _PangoAttrShape PangoAttrShape;
14489
14490
14491 typedef struct _PangoAttrList PangoAttrList;
14492 typedef struct _PangoAttrIterator PangoAttrIterator;
14493
14494 typedef enum
14495 {
14496 PANGO_ATTR_INVALID,
14497 PANGO_ATTR_LANGUAGE,
14498 PANGO_ATTR_FAMILY,
14499 PANGO_ATTR_STYLE,
14500 PANGO_ATTR_WEIGHT,
14501 PANGO_ATTR_VARIANT,
14502 PANGO_ATTR_STRETCH,
14503 PANGO_ATTR_SIZE,
14504 PANGO_ATTR_FONT_DESC,
14505 PANGO_ATTR_FOREGROUND,
14506 PANGO_ATTR_BACKGROUND,
14507 PANGO_ATTR_UNDERLINE,
14508 PANGO_ATTR_STRIKETHROUGH,
14509 PANGO_ATTR_RISE,
14510 PANGO_ATTR_SHAPE,
14511 PANGO_ATTR_SCALE,
14512 PANGO_ATTR_FALLBACK,
14513 PANGO_ATTR_LETTER_SPACING,
14514 PANGO_ATTR_UNDERLINE_COLOR,
14515 PANGO_ATTR_STRIKETHROUGH_COLOR,
14516 PANGO_ATTR_ABSOLUTE_SIZE
14517 } PangoAttrType;
14518
14519 typedef enum {
14520 PANGO_UNDERLINE_NONE,
14521 PANGO_UNDERLINE_SINGLE,
14522 PANGO_UNDERLINE_DOUBLE,
14523 PANGO_UNDERLINE_LOW,
14524 PANGO_UNDERLINE_ERROR
14525 } PangoUnderline;
14526
14527 struct _PangoAttribute
14528 {
14529 const PangoAttrClass *klass;
14530 guint start_index;
14531 guint end_index;
14532 };
14533
14534 typedef gboolean (*PangoAttrFilterFunc) (PangoAttribute *attribute,
14535 gpointer data);
14536
14537 typedef gpointer (*PangoAttrDataCopyFunc) (gconstpointer data);
14538
14539 struct _PangoAttrClass
14540 {
14541
14542 PangoAttrType type;
14543 PangoAttribute * (*copy) (const PangoAttribute *attr);
14544 void (*destroy) (PangoAttribute *attr);
14545 gboolean (*equal) (const PangoAttribute *attr1, const PangoAttribute *attr2);
14546 };
14547
14548 struct _PangoAttrString
14549 {
14550 PangoAttribute attr;
14551 char *value;
14552 };
14553
14554 struct _PangoAttrLanguage
14555 {
14556 PangoAttribute attr;
14557 PangoLanguage *value;
14558 };
14559
14560 struct _PangoAttrInt
14561 {
14562 PangoAttribute attr;
14563 int value;
14564 };
14565
14566 struct _PangoAttrFloat
14567 {
14568 PangoAttribute attr;
14569 double value;
14570 };
14571
14572 struct _PangoAttrColor
14573 {
14574 PangoAttribute attr;
14575 PangoColor color;
14576 };
14577
14578 struct _PangoAttrSize
14579 {
14580 PangoAttribute attr;
14581 int size;
14582 guint absolute : 1;
14583 };
14584
14585 struct _PangoAttrShape
14586 {
14587 PangoAttribute attr;
14588 PangoRectangle ink_rect;
14589 PangoRectangle logical_rect;
14590
14591 gpointer data;
14592 PangoAttrDataCopyFunc copy_func;
14593 GDestroyNotify destroy_func;
14594 };
14595
14596 struct _PangoAttrFontDesc
14597 {
14598 PangoAttribute attr;
14599 PangoFontDescription *desc;
14600 };
14601
14602 PangoAttrType pango_attr_type_register (const gchar *name);
14603
14604 PangoAttribute * pango_attribute_copy (const PangoAttribute *attr);
14605 void pango_attribute_destroy (PangoAttribute *attr);
14606 gboolean pango_attribute_equal (const PangoAttribute *attr1,
14607 const PangoAttribute *attr2);
14608
14609 PangoAttribute *pango_attr_language_new (PangoLanguage *language);
14610 PangoAttribute *pango_attr_family_new (const char *family);
14611 PangoAttribute *pango_attr_foreground_new (guint16 red,
14612 guint16 green,
14613 guint16 blue);
14614 PangoAttribute *pango_attr_background_new (guint16 red,
14615 guint16 green,
14616 guint16 blue);
14617 PangoAttribute *pango_attr_size_new (int size);
14618 PangoAttribute *pango_attr_size_new_absolute (int size);
14619 PangoAttribute *pango_attr_style_new (PangoStyle style);
14620 PangoAttribute *pango_attr_weight_new (PangoWeight weight);
14621 PangoAttribute *pango_attr_variant_new (PangoVariant variant);
14622 PangoAttribute *pango_attr_stretch_new (PangoStretch stretch);
14623 PangoAttribute *pango_attr_font_desc_new (const PangoFontDescription *desc);
14624
14625 PangoAttribute *pango_attr_underline_new (PangoUnderline underline);
14626 PangoAttribute *pango_attr_underline_color_new (guint16 red,
14627 guint16 green,
14628 guint16 blue);
14629 PangoAttribute *pango_attr_strikethrough_new (gboolean strikethrough);
14630 PangoAttribute *pango_attr_strikethrough_color_new (guint16 red,
14631 guint16 green,
14632 guint16 blue);
14633
14634 PangoAttribute *pango_attr_rise_new (int rise);
14635 PangoAttribute *pango_attr_scale_new (double scale_factor);
14636 PangoAttribute *pango_attr_fallback_new (gboolean enable_fallback);
14637 PangoAttribute *pango_attr_letter_spacing_new (int letter_spacing);
14638
14639 PangoAttribute *pango_attr_shape_new (const PangoRectangle *ink_rect,
14640 const PangoRectangle *logical_rect);
14641 PangoAttribute *pango_attr_shape_new_with_data (const PangoRectangle *ink_rect,
14642 const PangoRectangle *logical_rect,
14643 gpointer data,
14644 PangoAttrDataCopyFunc copy_func,
14645 GDestroyNotify destroy_func);
14646
14647 GType pango_attr_list_get_type (void) __attribute__((__const__));
14648 PangoAttrList * pango_attr_list_new (void);
14649 PangoAttrList * pango_attr_list_ref (PangoAttrList *list);
14650 void pango_attr_list_unref (PangoAttrList *list);
14651 PangoAttrList * pango_attr_list_copy (PangoAttrList *list);
14652 void pango_attr_list_insert (PangoAttrList *list,
14653 PangoAttribute *attr);
14654 void pango_attr_list_insert_before (PangoAttrList *list,
14655 PangoAttribute *attr);
14656 void pango_attr_list_change (PangoAttrList *list,
14657 PangoAttribute *attr);
14658 void pango_attr_list_splice (PangoAttrList *list,
14659 PangoAttrList *other,
14660 gint pos,
14661 gint len);
14662
14663 PangoAttrList *pango_attr_list_filter (PangoAttrList *list,
14664 PangoAttrFilterFunc func,
14665 gpointer data);
14666
14667 PangoAttrIterator *pango_attr_list_get_iterator (PangoAttrList *list);
14668
14669 void pango_attr_iterator_range (PangoAttrIterator *iterator,
14670 gint *start,
14671 gint *end);
14672 gboolean pango_attr_iterator_next (PangoAttrIterator *iterator);
14673 PangoAttrIterator *pango_attr_iterator_copy (PangoAttrIterator *iterator);
14674 void pango_attr_iterator_destroy (PangoAttrIterator *iterator);
14675 PangoAttribute * pango_attr_iterator_get (PangoAttrIterator *iterator,
14676 PangoAttrType type);
14677 void pango_attr_iterator_get_font (PangoAttrIterator *iterator,
14678 PangoFontDescription *desc,
14679 PangoLanguage **language,
14680 GSList **extra_attrs);
14681 GSList * pango_attr_iterator_get_attrs (PangoAttrIterator *iterator);
14682
14683
14684 gboolean pango_parse_markup (const char *markup_text,
14685 int length,
14686 gunichar accel_marker,
14687 PangoAttrList **attr_list,
14688 char **text,
14689 gunichar *accel_char,
14690 GError **error);
14691 # 26 "/usr/include/pango-1.0/pango/pango.h" 2
14692
14693 # 1 "/usr/include/pango-1.0/pango/pango-break.h" 1
14694 # 27 "/usr/include/pango-1.0/pango/pango-break.h"
14695
14696
14697
14698 # 1 "/usr/include/pango-1.0/pango/pango-item.h" 1
14699 # 27 "/usr/include/pango-1.0/pango/pango-item.h"
14700
14701
14702 typedef struct _PangoAnalysis PangoAnalysis;
14703 typedef struct _PangoItem PangoItem;
14704
14705 struct _PangoAnalysis
14706 {
14707 PangoEngineShape *shape_engine;
14708 PangoEngineLang *lang_engine;
14709 PangoFont *font;
14710 guint8 level;
14711 PangoLanguage *language;
14712 GSList *extra_attrs;
14713 };
14714
14715 struct _PangoItem
14716 {
14717 gint offset;
14718 gint length;
14719 gint num_chars;
14720 PangoAnalysis analysis;
14721 };
14722
14723
14724
14725 GType pango_item_get_type (void) __attribute__((__const__));
14726
14727 PangoItem *pango_item_new (void);
14728 PangoItem *pango_item_copy (PangoItem *item);
14729 void pango_item_free (PangoItem *item);
14730 PangoItem *pango_item_split (PangoItem *orig,
14731 int split_index,
14732 int split_offset);
14733 # 30 "/usr/include/pango-1.0/pango/pango-break.h" 2
14734
14735
14736
14737 struct _PangoLogAttr
14738 {
14739 guint is_line_break : 1;
14740
14741 guint is_mandatory_break : 1;
14742
14743 guint is_char_break : 1;
14744
14745 guint is_white : 1;
14746
14747
14748
14749
14750 guint is_cursor_position : 1;
14751
14752
14753
14754
14755
14756
14757 guint is_word_start : 1;
14758 guint is_word_end : 1;
14759 # 64 "/usr/include/pango-1.0/pango/pango-break.h"
14760 guint is_sentence_boundary : 1;
14761 guint is_sentence_start : 1;
14762 guint is_sentence_end : 1;
14763
14764
14765
14766
14767 guint backspace_deletes_character : 1;
14768 };
14769
14770
14771
14772
14773 void pango_break (const gchar *text,
14774 int length,
14775 PangoAnalysis *analysis,
14776 PangoLogAttr *attrs,
14777 int attrs_len);
14778
14779 void pango_find_paragraph_boundary (const gchar *text,
14780 gint length,
14781 gint *paragraph_delimiter_index,
14782 gint *next_paragraph_start);
14783
14784 void pango_get_log_attrs (const char *text,
14785 int length,
14786 int level,
14787 PangoLanguage *language,
14788 PangoLogAttr *log_attrs,
14789 int attrs_len);
14790 # 110 "/usr/include/pango-1.0/pango/pango-break.h"
14791 # 27 "/usr/include/pango-1.0/pango/pango.h" 2
14792
14793 # 1 "/usr/include/pango-1.0/pango/pango-context.h" 1
14794 # 26 "/usr/include/pango-1.0/pango/pango-context.h"
14795
14796 # 1 "/usr/include/pango-1.0/pango/pango-fontmap.h" 1
14797 # 26 "/usr/include/pango-1.0/pango/pango-fontmap.h"
14798
14799 # 1 "/usr/include/pango-1.0/pango/pango-fontset.h" 1
14800 # 30 "/usr/include/pango-1.0/pango/pango-fontset.h"
14801 # 40 "/usr/include/pango-1.0/pango/pango-fontset.h"
14802 GType pango_fontset_get_type (void) __attribute__((__const__));
14803
14804 typedef struct _PangoFontset PangoFontset;
14805 # 57 "/usr/include/pango-1.0/pango/pango-fontset.h"
14806 typedef gboolean (*PangoFontsetForeachFunc) (PangoFontset *fontset,
14807 PangoFont *font,
14808 gpointer data);
14809
14810 PangoFont * pango_fontset_get_font (PangoFontset *fontset,
14811 guint wc);
14812 PangoFontMetrics *pango_fontset_get_metrics (PangoFontset *fontset);
14813 void pango_fontset_foreach (PangoFontset *fontset,
14814 PangoFontsetForeachFunc func,
14815 gpointer data);
14816 # 125 "/usr/include/pango-1.0/pango/pango-fontset.h"
14817 # 27 "/usr/include/pango-1.0/pango/pango-fontmap.h" 2
14818
14819
14820
14821
14822
14823
14824
14825 typedef struct _PangoContext PangoContext;
14826
14827 GType pango_font_map_get_type (void) __attribute__((__const__));
14828 PangoFont * pango_font_map_load_font (PangoFontMap *fontmap,
14829 PangoContext *context,
14830 const PangoFontDescription *desc);
14831 PangoFontset *pango_font_map_load_fontset (PangoFontMap *fontmap,
14832 PangoContext *context,
14833 const PangoFontDescription *desc,
14834 PangoLanguage *language);
14835 void pango_font_map_list_families (PangoFontMap *fontmap,
14836 PangoFontFamily ***families,
14837 int *n_families);
14838 # 93 "/usr/include/pango-1.0/pango/pango-fontmap.h"
14839 # 27 "/usr/include/pango-1.0/pango/pango-context.h" 2
14840 # 36 "/usr/include/pango-1.0/pango/pango-context.h"
14841 typedef struct _PangoContextClass PangoContextClass;
14842 # 50 "/usr/include/pango-1.0/pango/pango-context.h"
14843 GType pango_context_get_type (void) __attribute__((__const__));
14844
14845
14846
14847
14848
14849
14850 PangoFontMap *pango_context_get_font_map (PangoContext *context);
14851
14852 void pango_context_list_families (PangoContext *context,
14853 PangoFontFamily ***families,
14854 int *n_families);
14855 PangoFont * pango_context_load_font (PangoContext *context,
14856 const PangoFontDescription *desc);
14857 PangoFontset *pango_context_load_fontset (PangoContext *context,
14858 const PangoFontDescription *desc,
14859 PangoLanguage *language);
14860
14861 PangoFontMetrics *pango_context_get_metrics (PangoContext *context,
14862 const PangoFontDescription *desc,
14863 PangoLanguage *language);
14864
14865 void pango_context_set_font_description (PangoContext *context,
14866 const PangoFontDescription *desc);
14867 PangoFontDescription * pango_context_get_font_description (PangoContext *context);
14868 PangoLanguage *pango_context_get_language (PangoContext *context);
14869 void pango_context_set_language (PangoContext *context,
14870 PangoLanguage *language);
14871 void pango_context_set_base_dir (PangoContext *context,
14872 PangoDirection direction);
14873 PangoDirection pango_context_get_base_dir (PangoContext *context);
14874
14875 void pango_context_set_matrix (PangoContext *context,
14876 const PangoMatrix *matrix);
14877 const PangoMatrix *pango_context_get_matrix (PangoContext *context);
14878
14879
14880
14881
14882
14883 GList *pango_itemize (PangoContext *context,
14884 const char *text,
14885 int start_index,
14886 int length,
14887 PangoAttrList *attrs,
14888 PangoAttrIterator *cached_iter);
14889 GList *pango_itemize_with_base_dir (PangoContext *context,
14890 PangoDirection base_dir,
14891 const char *text,
14892 int start_index,
14893 int length,
14894 PangoAttrList *attrs,
14895 PangoAttrIterator *cached_iter);
14896 # 28 "/usr/include/pango-1.0/pango/pango.h" 2
14897
14898
14899 # 1 "/usr/include/pango-1.0/pango/pango-engine.h" 1
14900 # 28 "/usr/include/pango-1.0/pango/pango-engine.h"
14901
14902 # 1 "/usr/include/pango-1.0/pango/pango-glyph.h" 1
14903 # 28 "/usr/include/pango-1.0/pango/pango-glyph.h"
14904
14905
14906 typedef struct _PangoGlyphGeometry PangoGlyphGeometry;
14907 typedef struct _PangoGlyphVisAttr PangoGlyphVisAttr;
14908 typedef struct _PangoGlyphInfo PangoGlyphInfo;
14909 typedef struct _PangoGlyphString PangoGlyphString;
14910
14911
14912 typedef gint32 PangoGlyphUnit;
14913
14914
14915
14916 struct _PangoGlyphGeometry
14917 {
14918 PangoGlyphUnit width;
14919 PangoGlyphUnit x_offset;
14920 PangoGlyphUnit y_offset;
14921 };
14922
14923
14924
14925 struct _PangoGlyphVisAttr
14926 {
14927 guint is_cluster_start : 1;
14928 };
14929
14930
14931
14932 struct _PangoGlyphInfo
14933 {
14934 PangoGlyph glyph;
14935 PangoGlyphGeometry geometry;
14936 PangoGlyphVisAttr attr;
14937 };
14938
14939
14940
14941
14942 struct _PangoGlyphString {
14943 gint num_glyphs;
14944
14945 PangoGlyphInfo *glyphs;
14946
14947
14948
14949
14950
14951
14952 gint *log_clusters;
14953
14954
14955 gint space;
14956 };
14957
14958
14959
14960 PangoGlyphString *pango_glyph_string_new (void);
14961 void pango_glyph_string_set_size (PangoGlyphString *string,
14962 gint new_len);
14963 GType pango_glyph_string_get_type (void);
14964 PangoGlyphString *pango_glyph_string_copy (PangoGlyphString *string);
14965 void pango_glyph_string_free (PangoGlyphString *string);
14966 void pango_glyph_string_extents (PangoGlyphString *glyphs,
14967 PangoFont *font,
14968 PangoRectangle *ink_rect,
14969 PangoRectangle *logical_rect);
14970
14971 void pango_glyph_string_extents_range (PangoGlyphString *glyphs,
14972 int start,
14973 int end,
14974 PangoFont *font,
14975 PangoRectangle *ink_rect,
14976 PangoRectangle *logical_rect);
14977
14978 void pango_glyph_string_get_logical_widths (PangoGlyphString *glyphs,
14979 const char *text,
14980 int length,
14981 int embedding_level,
14982 int *logical_widths);
14983
14984 void pango_glyph_string_index_to_x (PangoGlyphString *glyphs,
14985 char *text,
14986 int length,
14987 PangoAnalysis *analysis,
14988 int index_,
14989 gboolean trailing,
14990 int *x_pos);
14991 void pango_glyph_string_x_to_index (PangoGlyphString *glyphs,
14992 char *text,
14993 int length,
14994 PangoAnalysis *analysis,
14995 int x_pos,
14996 int *index_,
14997 int *trailing);
14998
14999
15000
15001 void pango_shape (const gchar *text,
15002 gint length,
15003 const PangoAnalysis *analysis,
15004 PangoGlyphString *glyphs);
15005
15006 GList *pango_reorder_items (GList *logical_items);
15007 # 29 "/usr/include/pango-1.0/pango/pango-engine.h" 2
15008
15009 # 1 "/usr/include/pango-1.0/pango/pango-script.h" 1
15010 # 30 "/usr/include/pango-1.0/pango/pango-script.h"
15011 # 38 "/usr/include/pango-1.0/pango/pango-script.h"
15012 typedef struct _PangoScriptIter PangoScriptIter;
15013
15014 typedef enum {
15015 PANGO_SCRIPT_INVALID_CODE = -1,
15016 PANGO_SCRIPT_COMMON = 0,
15017 PANGO_SCRIPT_INHERITED,
15018 PANGO_SCRIPT_ARABIC,
15019 PANGO_SCRIPT_ARMENIAN,
15020 PANGO_SCRIPT_BENGALI,
15021 PANGO_SCRIPT_BOPOMOFO,
15022 PANGO_SCRIPT_CHEROKEE,
15023 PANGO_SCRIPT_COPTIC,
15024 PANGO_SCRIPT_CYRILLIC,
15025 PANGO_SCRIPT_DESERET,
15026 PANGO_SCRIPT_DEVANAGARI,
15027 PANGO_SCRIPT_ETHIOPIC,
15028 PANGO_SCRIPT_GEORGIAN,
15029 PANGO_SCRIPT_GOTHIC,
15030 PANGO_SCRIPT_GREEK,
15031 PANGO_SCRIPT_GUJARATI,
15032 PANGO_SCRIPT_GURMUKHI,
15033 PANGO_SCRIPT_HAN,
15034 PANGO_SCRIPT_HANGUL,
15035 PANGO_SCRIPT_HEBREW,
15036 PANGO_SCRIPT_HIRAGANA,
15037 PANGO_SCRIPT_KANNADA,
15038 PANGO_SCRIPT_KATAKANA,
15039 PANGO_SCRIPT_KHMER,
15040 PANGO_SCRIPT_LAO,
15041 PANGO_SCRIPT_LATIN,
15042 PANGO_SCRIPT_MALAYALAM,
15043 PANGO_SCRIPT_MONGOLIAN,
15044 PANGO_SCRIPT_MYANMAR,
15045 PANGO_SCRIPT_OGHAM,
15046 PANGO_SCRIPT_OLD_ITALIC,
15047 PANGO_SCRIPT_ORIYA,
15048 PANGO_SCRIPT_RUNIC,
15049 PANGO_SCRIPT_SINHALA,
15050 PANGO_SCRIPT_SYRIAC,
15051 PANGO_SCRIPT_TAMIL,
15052 PANGO_SCRIPT_TELUGU,
15053 PANGO_SCRIPT_THAANA,
15054 PANGO_SCRIPT_THAI,
15055 PANGO_SCRIPT_TIBETAN,
15056 PANGO_SCRIPT_CANADIAN_ABORIGINAL,
15057 PANGO_SCRIPT_YI,
15058 PANGO_SCRIPT_TAGALOG,
15059 PANGO_SCRIPT_HANUNOO,
15060 PANGO_SCRIPT_BUHID,
15061 PANGO_SCRIPT_TAGBANWA,
15062
15063
15064 PANGO_SCRIPT_BRAILLE,
15065 PANGO_SCRIPT_CYPRIOT,
15066 PANGO_SCRIPT_LIMBU,
15067 PANGO_SCRIPT_OSMANYA,
15068 PANGO_SCRIPT_SHAVIAN,
15069 PANGO_SCRIPT_LINEAR_B,
15070 PANGO_SCRIPT_TAI_LE,
15071 PANGO_SCRIPT_UGARITIC,
15072
15073
15074 PANGO_SCRIPT_NEW_TAI_LUE,
15075 PANGO_SCRIPT_BUGINESE,
15076 PANGO_SCRIPT_GLAGOLITIC,
15077 PANGO_SCRIPT_TIFINAGH,
15078 PANGO_SCRIPT_SYLOTI_NAGRI,
15079 PANGO_SCRIPT_OLD_PERSIAN,
15080 PANGO_SCRIPT_KHAROSHTHI
15081 } PangoScript;
15082
15083 PangoScript pango_script_for_unichar (gunichar ch);
15084
15085 PangoScriptIter *pango_script_iter_new (const char *text,
15086 int length);
15087 void pango_script_iter_get_range (PangoScriptIter *iter,
15088 const char **start,
15089 const char **end,
15090 PangoScript *script);
15091 gboolean pango_script_iter_next (PangoScriptIter *iter);
15092 void pango_script_iter_free (PangoScriptIter *iter);
15093
15094 PangoLanguage *pango_script_get_sample_language (PangoScript script);
15095 gboolean pango_language_includes_script (PangoLanguage *language,
15096 PangoScript script);
15097 # 30 "/usr/include/pango-1.0/pango/pango-engine.h" 2
15098 # 373 "/usr/include/pango-1.0/pango/pango-engine.h"
15099 # 30 "/usr/include/pango-1.0/pango/pango.h" 2
15100
15101 # 1 "/usr/include/pango-1.0/pango/pango-enum-types.h" 1
15102 # 9 "/usr/include/pango-1.0/pango/pango-enum-types.h"
15103
15104
15105 GType pango_attr_type_get_type (void);
15106
15107 GType pango_underline_get_type (void);
15108
15109
15110 GType pango_coverage_level_get_type (void);
15111
15112
15113 GType pango_style_get_type (void);
15114
15115 GType pango_variant_get_type (void);
15116
15117 GType pango_weight_get_type (void);
15118
15119 GType pango_stretch_get_type (void);
15120
15121 GType pango_font_mask_get_type (void);
15122
15123
15124 GType pango_alignment_get_type (void);
15125
15126 GType pango_wrap_mode_get_type (void);
15127
15128 GType pango_ellipsize_mode_get_type (void);
15129
15130
15131 GType pango_render_part_get_type (void);
15132
15133
15134 GType pango_script_get_type (void);
15135
15136
15137 GType pango_tab_align_get_type (void);
15138
15139
15140 GType pango_direction_get_type (void);
15141 # 31 "/usr/include/pango-1.0/pango/pango.h" 2
15142
15143
15144
15145
15146
15147 # 1 "/usr/include/pango-1.0/pango/pango-layout.h" 1
15148 # 27 "/usr/include/pango-1.0/pango/pango-layout.h"
15149
15150 # 1 "/usr/include/pango-1.0/pango/pango-glyph-item.h" 1
15151 # 31 "/usr/include/pango-1.0/pango/pango-glyph-item.h"
15152
15153
15154 typedef struct _PangoGlyphItem PangoGlyphItem;
15155
15156 struct _PangoGlyphItem
15157 {
15158 PangoItem *item;
15159 PangoGlyphString *glyphs;
15160 };
15161
15162 PangoGlyphItem *pango_glyph_item_split (PangoGlyphItem *orig,
15163 const char *text,
15164 int split_index);
15165 void pango_glyph_item_free (PangoGlyphItem *glyph_item);
15166 GSList * pango_glyph_item_apply_attrs (PangoGlyphItem *glyph_item,
15167 const char *text,
15168 PangoAttrList *list);
15169 void pango_glyph_item_letter_space (PangoGlyphItem *glyph_item,
15170 const char *text,
15171 PangoLogAttr *log_attrs,
15172 int letter_spacing);
15173 # 28 "/usr/include/pango-1.0/pango/pango-layout.h" 2
15174
15175 # 1 "/usr/include/pango-1.0/pango/pango-tabs.h" 1
15176 # 27 "/usr/include/pango-1.0/pango/pango-tabs.h"
15177
15178
15179 typedef struct _PangoTabArray PangoTabArray;
15180
15181 typedef enum
15182 {
15183 PANGO_TAB_LEFT
15184 # 42 "/usr/include/pango-1.0/pango/pango-tabs.h"
15185 } PangoTabAlign;
15186
15187
15188
15189 PangoTabArray *pango_tab_array_new (gint initial_size,
15190 gboolean positions_in_pixels);
15191 PangoTabArray *pango_tab_array_new_with_positions (gint size,
15192 gboolean positions_in_pixels,
15193 PangoTabAlign first_alignment,
15194 gint first_position,
15195 ...);
15196 GType pango_tab_array_get_type (void);
15197 PangoTabArray *pango_tab_array_copy (PangoTabArray *src);
15198 void pango_tab_array_free (PangoTabArray *tab_array);
15199 gint pango_tab_array_get_size (PangoTabArray *tab_array);
15200 void pango_tab_array_resize (PangoTabArray *tab_array,
15201 gint new_size);
15202 void pango_tab_array_set_tab (PangoTabArray *tab_array,
15203 gint tab_index,
15204 PangoTabAlign alignment,
15205 gint location);
15206 void pango_tab_array_get_tab (PangoTabArray *tab_array,
15207 gint tab_index,
15208 PangoTabAlign *alignment,
15209 gint *location);
15210 void pango_tab_array_get_tabs (PangoTabArray *tab_array,
15211 PangoTabAlign **alignments,
15212 gint **locations);
15213
15214 gboolean pango_tab_array_get_positions_in_pixels (PangoTabArray *tab_array);
15215 # 29 "/usr/include/pango-1.0/pango/pango-layout.h" 2
15216
15217
15218
15219 typedef struct _PangoLayout PangoLayout;
15220 typedef struct _PangoLayoutClass PangoLayoutClass;
15221 typedef struct _PangoLayoutLine PangoLayoutLine;
15222
15223
15224 typedef PangoGlyphItem PangoLayoutRun;
15225
15226 typedef enum {
15227 PANGO_ALIGN_LEFT,
15228 PANGO_ALIGN_CENTER,
15229 PANGO_ALIGN_RIGHT
15230 } PangoAlignment;
15231
15232 typedef enum {
15233 PANGO_WRAP_WORD,
15234 PANGO_WRAP_CHAR,
15235 PANGO_WRAP_WORD_CHAR
15236 } PangoWrapMode;
15237 # 64 "/usr/include/pango-1.0/pango/pango-layout.h"
15238 typedef enum {
15239 PANGO_ELLIPSIZE_NONE,
15240 PANGO_ELLIPSIZE_START,
15241 PANGO_ELLIPSIZE_MIDDLE,
15242 PANGO_ELLIPSIZE_END
15243 } PangoEllipsizeMode;
15244
15245 struct _PangoLayoutLine
15246 {
15247 PangoLayout *layout;
15248 gint start_index;
15249 gint length;
15250 GSList *runs;
15251 guint is_paragraph_start : 1;
15252 guint resolved_dir : 3;
15253 };
15254 # 92 "/usr/include/pango-1.0/pango/pango-layout.h"
15255 GType pango_layout_get_type (void) __attribute__((__const__));
15256 PangoLayout *pango_layout_new (PangoContext *context);
15257 PangoLayout *pango_layout_copy (PangoLayout *src);
15258
15259 PangoContext *pango_layout_get_context (PangoLayout *layout);
15260
15261 void pango_layout_set_attributes (PangoLayout *layout,
15262 PangoAttrList *attrs);
15263 PangoAttrList *pango_layout_get_attributes (PangoLayout *layout);
15264
15265 void pango_layout_set_text (PangoLayout *layout,
15266 const char *text,
15267 int length);
15268 const char *pango_layout_get_text (PangoLayout *layout);
15269
15270 void pango_layout_set_markup (PangoLayout *layout,
15271 const char *markup,
15272 int length);
15273
15274 void pango_layout_set_markup_with_accel (PangoLayout *layout,
15275 const char *markup,
15276 int length,
15277 gunichar accel_marker,
15278 gunichar *accel_char);
15279
15280 void pango_layout_set_font_description (PangoLayout *layout,
15281 const PangoFontDescription *desc);
15282
15283 const PangoFontDescription *pango_layout_get_font_description (PangoLayout *layout);
15284
15285 void pango_layout_set_width (PangoLayout *layout,
15286 int width);
15287 int pango_layout_get_width (PangoLayout *layout);
15288 void pango_layout_set_wrap (PangoLayout *layout,
15289 PangoWrapMode wrap);
15290 PangoWrapMode pango_layout_get_wrap (PangoLayout *layout);
15291 void pango_layout_set_indent (PangoLayout *layout,
15292 int indent);
15293 int pango_layout_get_indent (PangoLayout *layout);
15294 void pango_layout_set_spacing (PangoLayout *layout,
15295 int spacing);
15296 int pango_layout_get_spacing (PangoLayout *layout);
15297 void pango_layout_set_justify (PangoLayout *layout,
15298 gboolean justify);
15299 gboolean pango_layout_get_justify (PangoLayout *layout);
15300 void pango_layout_set_auto_dir (PangoLayout *layout,
15301 gboolean auto_dir);
15302 gboolean pango_layout_get_auto_dir (PangoLayout *layout);
15303 void pango_layout_set_alignment (PangoLayout *layout,
15304 PangoAlignment alignment);
15305 PangoAlignment pango_layout_get_alignment (PangoLayout *layout);
15306
15307 void pango_layout_set_tabs (PangoLayout *layout,
15308 PangoTabArray *tabs);
15309
15310 PangoTabArray* pango_layout_get_tabs (PangoLayout *layout);
15311
15312 void pango_layout_set_single_paragraph_mode (PangoLayout *layout,
15313 gboolean setting);
15314 gboolean pango_layout_get_single_paragraph_mode (PangoLayout *layout);
15315
15316 void pango_layout_set_ellipsize (PangoLayout *layout,
15317 PangoEllipsizeMode ellipsize);
15318 PangoEllipsizeMode pango_layout_get_ellipsize (PangoLayout *layout);
15319
15320 void pango_layout_context_changed (PangoLayout *layout);
15321
15322 void pango_layout_get_log_attrs (PangoLayout *layout,
15323 PangoLogAttr **attrs,
15324 gint *n_attrs);
15325
15326 void pango_layout_index_to_pos (PangoLayout *layout,
15327 int index_,
15328 PangoRectangle *pos);
15329 void pango_layout_index_to_line_x (PangoLayout *layout,
15330 int index_,
15331 gboolean trailing,
15332 int *line,
15333 int *x_pos);
15334 void pango_layout_get_cursor_pos (PangoLayout *layout,
15335 int index_,
15336 PangoRectangle *strong_pos,
15337 PangoRectangle *weak_pos);
15338 void pango_layout_move_cursor_visually (PangoLayout *layout,
15339 gboolean strong,
15340 int old_index,
15341 int old_trailing,
15342 int direction,
15343 int *new_index,
15344 int *new_trailing);
15345 gboolean pango_layout_xy_to_index (PangoLayout *layout,
15346 int x,
15347 int y,
15348 int *index_,
15349 int *trailing);
15350 void pango_layout_get_extents (PangoLayout *layout,
15351 PangoRectangle *ink_rect,
15352 PangoRectangle *logical_rect);
15353 void pango_layout_get_pixel_extents (PangoLayout *layout,
15354 PangoRectangle *ink_rect,
15355 PangoRectangle *logical_rect);
15356 void pango_layout_get_size (PangoLayout *layout,
15357 int *width,
15358 int *height);
15359 void pango_layout_get_pixel_size (PangoLayout *layout,
15360 int *width,
15361 int *height);
15362
15363 int pango_layout_get_line_count (PangoLayout *layout);
15364 PangoLayoutLine *pango_layout_get_line (PangoLayout *layout,
15365 int line);
15366 GSList * pango_layout_get_lines (PangoLayout *layout);
15367
15368
15369
15370 GType pango_layout_line_get_type (void) __attribute__((__const__));
15371
15372 PangoLayoutLine *pango_layout_line_ref (PangoLayoutLine *line);
15373 void pango_layout_line_unref (PangoLayoutLine *line);
15374
15375 gboolean pango_layout_line_x_to_index (PangoLayoutLine *line,
15376 int x_pos,
15377 int *index_,
15378 int *trailing);
15379 void pango_layout_line_index_to_x (PangoLayoutLine *line,
15380 int index_,
15381 gboolean trailing,
15382 int *x_pos);
15383 void pango_layout_line_get_x_ranges (PangoLayoutLine *line,
15384 int start_index,
15385 int end_index,
15386 int **ranges,
15387 int *n_ranges);
15388 void pango_layout_line_get_extents (PangoLayoutLine *line,
15389 PangoRectangle *ink_rect,
15390 PangoRectangle *logical_rect);
15391 void pango_layout_line_get_pixel_extents (PangoLayoutLine *layout_line,
15392 PangoRectangle *ink_rect,
15393 PangoRectangle *logical_rect);
15394
15395 typedef struct _PangoLayoutIter PangoLayoutIter;
15396
15397
15398
15399 GType pango_layout_iter_get_type (void);
15400
15401 PangoLayoutIter *pango_layout_get_iter (PangoLayout *layout);
15402 void pango_layout_iter_free (PangoLayoutIter *iter);
15403
15404 int pango_layout_iter_get_index (PangoLayoutIter *iter);
15405 PangoLayoutRun *pango_layout_iter_get_run (PangoLayoutIter *iter);
15406 PangoLayoutLine *pango_layout_iter_get_line (PangoLayoutIter *iter);
15407 gboolean pango_layout_iter_at_last_line (PangoLayoutIter *iter);
15408
15409 gboolean pango_layout_iter_next_char (PangoLayoutIter *iter);
15410 gboolean pango_layout_iter_next_cluster (PangoLayoutIter *iter);
15411 gboolean pango_layout_iter_next_run (PangoLayoutIter *iter);
15412 gboolean pango_layout_iter_next_line (PangoLayoutIter *iter);
15413
15414 void pango_layout_iter_get_char_extents (PangoLayoutIter *iter,
15415 PangoRectangle *logical_rect);
15416 void pango_layout_iter_get_cluster_extents (PangoLayoutIter *iter,
15417 PangoRectangle *ink_rect,
15418 PangoRectangle *logical_rect);
15419 void pango_layout_iter_get_run_extents (PangoLayoutIter *iter,
15420 PangoRectangle *ink_rect,
15421 PangoRectangle *logical_rect);
15422 void pango_layout_iter_get_line_extents (PangoLayoutIter *iter,
15423 PangoRectangle *ink_rect,
15424 PangoRectangle *logical_rect);
15425
15426
15427
15428 void pango_layout_iter_get_line_yrange (PangoLayoutIter *iter,
15429 int *y0_,
15430 int *y1_);
15431 void pango_layout_iter_get_layout_extents (PangoLayoutIter *iter,
15432 PangoRectangle *ink_rect,
15433 PangoRectangle *logical_rect);
15434 int pango_layout_iter_get_baseline (PangoLayoutIter *iter);
15435 # 36 "/usr/include/pango-1.0/pango/pango.h" 2
15436
15437 # 1 "/usr/include/pango-1.0/pango/pango-renderer.h" 1
15438 # 26 "/usr/include/pango-1.0/pango/pango-renderer.h"
15439 # 35 "/usr/include/pango-1.0/pango/pango-renderer.h"
15440 typedef struct _PangoRenderer PangoRenderer;
15441 typedef struct _PangoRendererClass PangoRendererClass;
15442 typedef struct _PangoRendererPrivate PangoRendererPrivate;
15443 # 52 "/usr/include/pango-1.0/pango/pango-renderer.h"
15444 typedef enum
15445 {
15446 PANGO_RENDER_PART_FOREGROUND,
15447 PANGO_RENDER_PART_BACKGROUND,
15448 PANGO_RENDER_PART_UNDERLINE,
15449 PANGO_RENDER_PART_STRIKETHROUGH
15450 } PangoRenderPart;
15451 # 71 "/usr/include/pango-1.0/pango/pango-renderer.h"
15452 struct _PangoRenderer
15453 {
15454
15455 GObject parent_instance;
15456
15457 PangoUnderline underline;
15458 gboolean strikethrough;
15459 int active_count;
15460
15461
15462 PangoMatrix *matrix;
15463
15464
15465 PangoRendererPrivate *priv;
15466 };
15467 # 109 "/usr/include/pango-1.0/pango/pango-renderer.h"
15468 struct _PangoRendererClass
15469 {
15470
15471 GObjectClass parent_class;
15472
15473
15474
15475
15476
15477
15478
15479 void (*draw_glyphs) (PangoRenderer *renderer,
15480 PangoFont *font,
15481 PangoGlyphString *glyphs,
15482 int x,
15483 int y);
15484 void (*draw_rectangle) (PangoRenderer *renderer,
15485 PangoRenderPart part,
15486 int x,
15487 int y,
15488 int width,
15489 int height);
15490 void (*draw_error_underline) (PangoRenderer *renderer,
15491 int x,
15492 int y,
15493 int width,
15494 int height);
15495
15496
15497 void (*draw_shape) (PangoRenderer *renderer,
15498 PangoAttrShape *attr,
15499 int x,
15500 int y);
15501
15502
15503
15504
15505 void (*draw_trapezoid) (PangoRenderer *renderer,
15506 PangoRenderPart part,
15507 double y1_,
15508 double x11,
15509 double x21,
15510 double y2,
15511 double x12,
15512 double x22);
15513 void (*draw_glyph) (PangoRenderer *renderer,
15514 PangoFont *font,
15515 PangoGlyph glyph,
15516 double x,
15517 double y);
15518
15519
15520
15521 void (*part_changed) (PangoRenderer *renderer,
15522 PangoRenderPart part);
15523
15524
15525
15526 void (*begin) (PangoRenderer *renderer);
15527 void (*end) (PangoRenderer *renderer);
15528
15529
15530
15531 void (*prepare_run) (PangoRenderer *renderer,
15532 PangoLayoutRun *run);
15533
15534
15535
15536
15537 void (*_pango_reserved1) (void);
15538 void (*_pango_reserved2) (void);
15539 void (*_pango_reserved3) (void);
15540 void (*_pango_reserved4) (void);
15541 };
15542
15543 GType pango_renderer_get_type (void);
15544
15545 void pango_renderer_draw_layout (PangoRenderer *renderer,
15546 PangoLayout *layout,
15547 int x,
15548 int y);
15549 void pango_renderer_draw_layout_line (PangoRenderer *renderer,
15550 PangoLayoutLine *line,
15551 int x,
15552 int y);
15553 void pango_renderer_draw_glyphs (PangoRenderer *renderer,
15554 PangoFont *font,
15555 PangoGlyphString *glyphs,
15556 int x,
15557 int y);
15558 void pango_renderer_draw_rectangle (PangoRenderer *renderer,
15559 PangoRenderPart part,
15560 int x,
15561 int y,
15562 int width,
15563 int height);
15564 void pango_renderer_draw_error_underline (PangoRenderer *renderer,
15565 int x,
15566 int y,
15567 int width,
15568 int height);
15569 void pango_renderer_draw_trapezoid (PangoRenderer *renderer,
15570 PangoRenderPart part,
15571 double y1_,
15572 double x11,
15573 double x21,
15574 double y2,
15575 double x12,
15576 double x22);
15577 void pango_renderer_draw_glyph (PangoRenderer *renderer,
15578 PangoFont *font,
15579 PangoGlyph glyph,
15580 double x,
15581 double y);
15582
15583 void pango_renderer_activate (PangoRenderer *renderer);
15584 void pango_renderer_deactivate (PangoRenderer *renderer);
15585
15586 void pango_renderer_part_changed (PangoRenderer *renderer,
15587 PangoRenderPart part);
15588
15589 void pango_renderer_set_color (PangoRenderer *renderer,
15590 PangoRenderPart part,
15591 const PangoColor *color);
15592 PangoColor *pango_renderer_get_color (PangoRenderer *renderer,
15593 PangoRenderPart part);
15594
15595 void pango_renderer_set_matrix (PangoRenderer *renderer,
15596 const PangoMatrix *matrix);
15597 const PangoMatrix *pango_renderer_get_matrix (PangoRenderer *renderer);
15598 # 37 "/usr/include/pango-1.0/pango/pango.h" 2
15599 # 34 "/usr/include/gtk-2.0/gdk/gdktypes.h" 2
15600 # 51 "/usr/include/gtk-2.0/gdk/gdktypes.h"
15601
15602 # 1 "/usr/lib/gtk-2.0/include/gdkconfig.h" 1
15603 # 52 "/usr/include/gtk-2.0/gdk/gdktypes.h" 2
15604 # 64 "/usr/include/gtk-2.0/gdk/gdktypes.h"
15605 typedef struct _GdkPoint GdkPoint;
15606 typedef struct _GdkRectangle GdkRectangle;
15607 typedef struct _GdkSegment GdkSegment;
15608 typedef struct _GdkSpan GdkSpan;
15609
15610
15611
15612
15613
15614
15615 typedef guint32 GdkWChar;
15616
15617 typedef struct _GdkAtom *GdkAtom;
15618 # 87 "/usr/include/gtk-2.0/gdk/gdktypes.h"
15619 typedef guint32 GdkNativeWindow;
15620
15621
15622
15623
15624 typedef struct _GdkColor GdkColor;
15625 typedef struct _GdkColormap GdkColormap;
15626 typedef struct _GdkCursor GdkCursor;
15627 typedef struct _GdkFont GdkFont;
15628 typedef struct _GdkGC GdkGC;
15629 typedef struct _GdkImage GdkImage;
15630 typedef struct _GdkRegion GdkRegion;
15631 typedef struct _GdkVisual GdkVisual;
15632
15633 typedef struct _GdkDrawable GdkDrawable;
15634 typedef struct _GdkDrawable GdkBitmap;
15635 typedef struct _GdkDrawable GdkPixmap;
15636 typedef struct _GdkDrawable GdkWindow;
15637 typedef struct _GdkDisplay GdkDisplay;
15638 typedef struct _GdkScreen GdkScreen;
15639
15640 typedef enum
15641 {
15642 GDK_LSB_FIRST,
15643 GDK_MSB_FIRST
15644 } GdkByteOrder;
15645
15646
15647
15648 typedef enum
15649 {
15650 GDK_SHIFT_MASK = 1 << 0,
15651 GDK_LOCK_MASK = 1 << 1,
15652 GDK_CONTROL_MASK = 1 << 2,
15653 GDK_MOD1_MASK = 1 << 3,
15654 GDK_MOD2_MASK = 1 << 4,
15655 GDK_MOD3_MASK = 1 << 5,
15656 GDK_MOD4_MASK = 1 << 6,
15657 GDK_MOD5_MASK = 1 << 7,
15658 GDK_BUTTON1_MASK = 1 << 8,
15659 GDK_BUTTON2_MASK = 1 << 9,
15660 GDK_BUTTON3_MASK = 1 << 10,
15661 GDK_BUTTON4_MASK = 1 << 11,
15662 GDK_BUTTON5_MASK = 1 << 12,
15663
15664
15665
15666
15667 GDK_RELEASE_MASK = 1 << 30,
15668 GDK_MODIFIER_MASK = GDK_RELEASE_MASK | 0x1fff
15669 } GdkModifierType;
15670
15671 typedef enum
15672 {
15673 GDK_INPUT_READ = 1 << 0,
15674 GDK_INPUT_WRITE = 1 << 1,
15675 GDK_INPUT_EXCEPTION = 1 << 2
15676 } GdkInputCondition;
15677
15678 typedef enum
15679 {
15680 GDK_OK = 0,
15681 GDK_ERROR = -1,
15682 GDK_ERROR_PARAM = -2,
15683 GDK_ERROR_FILE = -3,
15684 GDK_ERROR_MEM = -4
15685 } GdkStatus;
15686
15687
15688
15689
15690
15691 typedef enum
15692 {
15693 GDK_GRAB_SUCCESS = 0,
15694 GDK_GRAB_ALREADY_GRABBED = 1,
15695 GDK_GRAB_INVALID_TIME = 2,
15696 GDK_GRAB_NOT_VIEWABLE = 3,
15697 GDK_GRAB_FROZEN = 4
15698 } GdkGrabStatus;
15699
15700 typedef void (*GdkInputFunction) (gpointer data,
15701 gint source,
15702 GdkInputCondition condition);
15703
15704 typedef void (*GdkDestroyNotify) (gpointer data);
15705
15706 struct _GdkPoint
15707 {
15708 gint x;
15709 gint y;
15710 };
15711
15712 struct _GdkRectangle
15713 {
15714 gint x;
15715 gint y;
15716 gint width;
15717 gint height;
15718 };
15719
15720 struct _GdkSegment
15721 {
15722 gint x1;
15723 gint y1;
15724 gint x2;
15725 gint y2;
15726 };
15727
15728 struct _GdkSpan
15729 {
15730 gint x;
15731 gint y;
15732 gint width;
15733 };
15734 # 32 "/usr/include/gtk-2.0/gdk/gdkcolor.h" 2
15735 # 42 "/usr/include/gtk-2.0/gdk/gdkcolor.h"
15736 struct _GdkColor
15737 {
15738 guint32 pixel;
15739 guint16 red;
15740 guint16 green;
15741 guint16 blue;
15742 };
15743
15744
15745
15746
15747 typedef struct _GdkColormapClass GdkColormapClass;
15748 # 64 "/usr/include/gtk-2.0/gdk/gdkcolor.h"
15749 struct _GdkColormap
15750 {
15751
15752 GObject parent_instance;
15753
15754
15755 gint size;
15756 GdkColor *colors;
15757
15758
15759 GdkVisual *visual;
15760
15761 gpointer windowing_data;
15762 };
15763
15764 struct _GdkColormapClass
15765 {
15766 GObjectClass parent_class;
15767
15768 };
15769
15770 GType gdk_colormap_get_type (void) __attribute__((__const__));
15771
15772 GdkColormap* gdk_colormap_new (GdkVisual *visual,
15773 gboolean allocate);
15774
15775
15776 GdkColormap* gdk_colormap_ref (GdkColormap *cmap);
15777 void gdk_colormap_unref (GdkColormap *cmap);
15778
15779
15780
15781
15782
15783
15784 GdkScreen *gdk_colormap_get_screen (GdkColormap *cmap);
15785
15786
15787 gint gdk_colormap_get_system_size (void);
15788
15789
15790
15791
15792 void gdk_colormap_change (GdkColormap *colormap,
15793 gint ncolors);
15794
15795
15796 gint gdk_colormap_alloc_colors (GdkColormap *colormap,
15797 GdkColor *colors,
15798 gint ncolors,
15799 gboolean writeable,
15800 gboolean best_match,
15801 gboolean *success);
15802 gboolean gdk_colormap_alloc_color (GdkColormap *colormap,
15803 GdkColor *color,
15804 gboolean writeable,
15805 gboolean best_match);
15806 void gdk_colormap_free_colors (GdkColormap *colormap,
15807 GdkColor *colors,
15808 gint ncolors);
15809 void gdk_colormap_query_color (GdkColormap *colormap,
15810 gulong pixel,
15811 GdkColor *result);
15812
15813 GdkVisual *gdk_colormap_get_visual (GdkColormap *colormap);
15814
15815 GdkColor *gdk_color_copy (const GdkColor *color);
15816 void gdk_color_free (GdkColor *color);
15817 gint gdk_color_parse (const gchar *spec,
15818 GdkColor *color);
15819 guint gdk_color_hash (const GdkColor *colora);
15820 gboolean gdk_color_equal (const GdkColor *colora,
15821 const GdkColor *colorb);
15822
15823 GType gdk_color_get_type (void) __attribute__((__const__));
15824
15825
15826
15827 void gdk_colors_store (GdkColormap *colormap,
15828 GdkColor *colors,
15829 gint ncolors);
15830 gint gdk_color_white (GdkColormap *colormap,
15831 GdkColor *color);
15832 gint gdk_color_black (GdkColormap *colormap,
15833 GdkColor *color);
15834 gint gdk_color_alloc (GdkColormap *colormap,
15835 GdkColor *color);
15836 gint gdk_color_change (GdkColormap *colormap,
15837 GdkColor *color);
15838
15839
15840
15841
15842 gint gdk_colors_alloc (GdkColormap *colormap,
15843 gboolean contiguous,
15844 gulong *planes,
15845 gint nplanes,
15846 gulong *pixels,
15847 gint npixels);
15848 void gdk_colors_free (GdkColormap *colormap,
15849 gulong *pixels,
15850 gint npixels,
15851 gulong planes);
15852 # 24 "/usr/include/gtk-2.0/gdk/gdkcairo.h" 2
15853
15854 # 1 "/usr/include/gtk-2.0/gdk/gdkpixbuf.h" 1
15855 # 32 "/usr/include/gtk-2.0/gdk/gdkpixbuf.h"
15856
15857 # 1 "/usr/include/gtk-2.0/gdk/gdkrgb.h" 1
15858 # 32 "/usr/include/gtk-2.0/gdk/gdkrgb.h"
15859
15860
15861 typedef struct _GdkRgbCmap GdkRgbCmap;
15862
15863 struct _GdkRgbCmap {
15864 guint32 colors[256];
15865 gint n_colors;
15866
15867
15868 GSList *info_list;
15869 };
15870
15871
15872 void gdk_rgb_init (void);
15873
15874 gulong gdk_rgb_xpixel_from_rgb (guint32 rgb) __attribute__((__const__));
15875 void gdk_rgb_gc_set_foreground (GdkGC *gc,
15876 guint32 rgb);
15877 void gdk_rgb_gc_set_background (GdkGC *gc,
15878 guint32 rgb);
15879
15880
15881
15882 void gdk_rgb_find_color (GdkColormap *colormap,
15883 GdkColor *color);
15884
15885 typedef enum
15886 {
15887 GDK_RGB_DITHER_NONE,
15888 GDK_RGB_DITHER_NORMAL,
15889 GDK_RGB_DITHER_MAX
15890 } GdkRgbDither;
15891
15892 void gdk_draw_rgb_image (GdkDrawable *drawable,
15893 GdkGC *gc,
15894 gint x,
15895 gint y,
15896 gint width,
15897 gint height,
15898 GdkRgbDither dith,
15899 guchar *rgb_buf,
15900 gint rowstride);
15901 void gdk_draw_rgb_image_dithalign (GdkDrawable *drawable,
15902 GdkGC *gc,
15903 gint x,
15904 gint y,
15905 gint width,
15906 gint height,
15907 GdkRgbDither dith,
15908 guchar *rgb_buf,
15909 gint rowstride,
15910 gint xdith,
15911 gint ydith);
15912 void gdk_draw_rgb_32_image (GdkDrawable *drawable,
15913 GdkGC *gc,
15914 gint x,
15915 gint y,
15916 gint width,
15917 gint height,
15918 GdkRgbDither dith,
15919 guchar *buf,
15920 gint rowstride);
15921 void gdk_draw_rgb_32_image_dithalign (GdkDrawable *drawable,
15922 GdkGC *gc,
15923 gint x,
15924 gint y,
15925 gint width,
15926 gint height,
15927 GdkRgbDither dith,
15928 guchar *buf,
15929 gint rowstride,
15930 gint xdith,
15931 gint ydith);
15932 void gdk_draw_gray_image (GdkDrawable *drawable,
15933 GdkGC *gc,
15934 gint x,
15935 gint y,
15936 gint width,
15937 gint height,
15938 GdkRgbDither dith,
15939 guchar *buf,
15940 gint rowstride);
15941 void gdk_draw_indexed_image (GdkDrawable *drawable,
15942 GdkGC *gc,
15943 gint x,
15944 gint y,
15945 gint width,
15946 gint height,
15947 GdkRgbDither dith,
15948 guchar *buf,
15949 gint rowstride,
15950 GdkRgbCmap *cmap);
15951 GdkRgbCmap *gdk_rgb_cmap_new (guint32 *colors,
15952 gint n_colors);
15953 void gdk_rgb_cmap_free (GdkRgbCmap *cmap);
15954
15955 void gdk_rgb_set_verbose (gboolean verbose);
15956
15957
15958 void gdk_rgb_set_install (gboolean install);
15959 void gdk_rgb_set_min_colors (gint min_colors);
15960 # 141 "/usr/include/gtk-2.0/gdk/gdkrgb.h"
15961 # 33 "/usr/include/gtk-2.0/gdk/gdkpixbuf.h" 2
15962
15963 # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 1
15964 # 30 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h"
15965
15966 # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-features.h" 1
15967 # 36 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-features.h"
15968 extern const guint gdk_pixbuf_major_version;
15969 extern const guint gdk_pixbuf_minor_version;
15970 extern const guint gdk_pixbuf_micro_version;
15971 extern const char *gdk_pixbuf_version;
15972 # 31 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2
15973
15974
15975
15976 # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h" 1
15977 # 32 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h"
15978
15979
15980
15981 typedef enum
15982 {
15983 GDK_PIXBUF_ALPHA_BILEVEL,
15984 GDK_PIXBUF_ALPHA_FULL
15985 } GdkPixbufAlphaMode;
15986
15987
15988
15989
15990
15991 typedef enum {
15992 GDK_COLORSPACE_RGB
15993 } GdkColorspace;
15994
15995
15996 typedef struct _GdkPixbuf GdkPixbuf;
15997
15998
15999
16000
16001
16002
16003
16004 typedef void (* GdkPixbufDestroyNotify) (guchar *pixels, gpointer data);
16005
16006
16007
16008 typedef enum {
16009
16010 GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
16011
16012 GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
16013
16014 GDK_PIXBUF_ERROR_BAD_OPTION,
16015
16016 GDK_PIXBUF_ERROR_UNKNOWN_TYPE,
16017
16018 GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION,
16019 GDK_PIXBUF_ERROR_FAILED
16020 } GdkPixbufError;
16021
16022 GQuark gdk_pixbuf_error_quark (void);
16023
16024
16025
16026 GType gdk_pixbuf_get_type (void) __attribute__((__const__));
16027
16028
16029
16030
16031 GdkPixbuf *gdk_pixbuf_ref (GdkPixbuf *pixbuf);
16032 void gdk_pixbuf_unref (GdkPixbuf *pixbuf);
16033
16034
16035
16036
16037 GdkColorspace gdk_pixbuf_get_colorspace (const GdkPixbuf *pixbuf);
16038 int gdk_pixbuf_get_n_channels (const GdkPixbuf *pixbuf);
16039 gboolean gdk_pixbuf_get_has_alpha (const GdkPixbuf *pixbuf);
16040 int gdk_pixbuf_get_bits_per_sample (const GdkPixbuf *pixbuf);
16041 guchar *gdk_pixbuf_get_pixels (const GdkPixbuf *pixbuf);
16042 int gdk_pixbuf_get_width (const GdkPixbuf *pixbuf);
16043 int gdk_pixbuf_get_height (const GdkPixbuf *pixbuf);
16044 int gdk_pixbuf_get_rowstride (const GdkPixbuf *pixbuf);
16045
16046
16047
16048
16049 GdkPixbuf *gdk_pixbuf_new (GdkColorspace colorspace, gboolean has_alpha, int bits_per_sample,
16050 int width, int height);
16051
16052
16053
16054 GdkPixbuf *gdk_pixbuf_copy (const GdkPixbuf *pixbuf);
16055
16056
16057 GdkPixbuf *gdk_pixbuf_new_subpixbuf (GdkPixbuf *src_pixbuf,
16058 int src_x,
16059 int src_y,
16060 int width,
16061 int height);
16062 # 126 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h"
16063 GdkPixbuf *gdk_pixbuf_new_from_file (const char *filename,
16064 GError **error);
16065 GdkPixbuf *gdk_pixbuf_new_from_file_at_size (const char *filename,
16066 int width,
16067 int height,
16068 GError **error);
16069 GdkPixbuf *gdk_pixbuf_new_from_file_at_scale (const char *filename,
16070 int width,
16071 int height,
16072 gboolean preserve_aspect_ratio,
16073 GError **error);
16074
16075 GdkPixbuf *gdk_pixbuf_new_from_data (const guchar *data,
16076 GdkColorspace colorspace,
16077 gboolean has_alpha,
16078 int bits_per_sample,
16079 int width, int height,
16080 int rowstride,
16081 GdkPixbufDestroyNotify destroy_fn,
16082 gpointer destroy_fn_data);
16083
16084 GdkPixbuf *gdk_pixbuf_new_from_xpm_data (const char **data);
16085 GdkPixbuf* gdk_pixbuf_new_from_inline (gint data_length,
16086 const guint8 *data,
16087 gboolean copy_pixels,
16088 GError **error);
16089
16090
16091 void gdk_pixbuf_fill (GdkPixbuf *pixbuf,
16092 guint32 pixel);
16093 # 165 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-core.h"
16094 gboolean gdk_pixbuf_save (GdkPixbuf *pixbuf,
16095 const char *filename,
16096 const char *type,
16097 GError **error,
16098 ...) __attribute__((__sentinel__));
16099
16100 gboolean gdk_pixbuf_savev (GdkPixbuf *pixbuf,
16101 const char *filename,
16102 const char *type,
16103 char **option_keys,
16104 char **option_values,
16105 GError **error);
16106
16107
16108
16109 typedef gboolean (*GdkPixbufSaveFunc) (const gchar *buf,
16110 gsize count,
16111 GError **error,
16112 gpointer data);
16113
16114 gboolean gdk_pixbuf_save_to_callback (GdkPixbuf *pixbuf,
16115 GdkPixbufSaveFunc save_func,
16116 gpointer user_data,
16117 const char *type,
16118 GError **error,
16119 ...) __attribute__((__sentinel__));
16120
16121 gboolean gdk_pixbuf_save_to_callbackv (GdkPixbuf *pixbuf,
16122 GdkPixbufSaveFunc save_func,
16123 gpointer user_data,
16124 const char *type,
16125 char **option_keys,
16126 char **option_values,
16127 GError **error);
16128
16129
16130
16131 gboolean gdk_pixbuf_save_to_buffer (GdkPixbuf *pixbuf,
16132 gchar **buffer,
16133 gsize *buffer_size,
16134 const char *type,
16135 GError **error,
16136 ...) __attribute__((__sentinel__));
16137
16138 gboolean gdk_pixbuf_save_to_bufferv (GdkPixbuf *pixbuf,
16139 gchar **buffer,
16140 gsize *buffer_size,
16141 const char *type,
16142 char **option_keys,
16143 char **option_values,
16144 GError **error);
16145
16146
16147 GdkPixbuf *gdk_pixbuf_add_alpha (const GdkPixbuf *pixbuf, gboolean substitute_color,
16148 guchar r, guchar g, guchar b);
16149
16150
16151 void gdk_pixbuf_copy_area (const GdkPixbuf *src_pixbuf,
16152 int src_x, int src_y,
16153 int width, int height,
16154 GdkPixbuf *dest_pixbuf,
16155 int dest_x, int dest_y);
16156
16157
16158 void gdk_pixbuf_saturate_and_pixelate (const GdkPixbuf *src,
16159 GdkPixbuf *dest,
16160 gfloat saturation,
16161 gboolean pixelate);
16162
16163
16164 const gchar * gdk_pixbuf_get_option (GdkPixbuf *pixbuf,
16165 const gchar *key);
16166 # 34 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2
16167
16168 # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h" 1
16169 # 33 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-transform.h"
16170
16171
16172
16173
16174
16175 typedef enum {
16176 GDK_INTERP_NEAREST,
16177 GDK_INTERP_TILES,
16178 GDK_INTERP_BILINEAR,
16179 GDK_INTERP_HYPER
16180 } GdkInterpType;
16181
16182 typedef enum {
16183 GDK_PIXBUF_ROTATE_NONE = 0,
16184 GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE = 90,
16185 GDK_PIXBUF_ROTATE_UPSIDEDOWN = 180,
16186 GDK_PIXBUF_ROTATE_CLOCKWISE = 270
16187 } GdkPixbufRotation;
16188
16189 void gdk_pixbuf_scale (const GdkPixbuf *src,
16190 GdkPixbuf *dest,
16191 int dest_x,
16192 int dest_y,
16193 int dest_width,
16194 int dest_height,
16195 double offset_x,
16196 double offset_y,
16197 double scale_x,
16198 double scale_y,
16199 GdkInterpType interp_type);
16200 void gdk_pixbuf_composite (const GdkPixbuf *src,
16201 GdkPixbuf *dest,
16202 int dest_x,
16203 int dest_y,
16204 int dest_width,
16205 int dest_height,
16206 double offset_x,
16207 double offset_y,
16208 double scale_x,
16209 double scale_y,
16210 GdkInterpType interp_type,
16211 int overall_alpha);
16212 void gdk_pixbuf_composite_color (const GdkPixbuf *src,
16213 GdkPixbuf *dest,
16214 int dest_x,
16215 int dest_y,
16216 int dest_width,
16217 int dest_height,
16218 double offset_x,
16219 double offset_y,
16220 double scale_x,
16221 double scale_y,
16222 GdkInterpType interp_type,
16223 int overall_alpha,
16224 int check_x,
16225 int check_y,
16226 int check_size,
16227 guint32 color1,
16228 guint32 color2);
16229
16230 GdkPixbuf *gdk_pixbuf_scale_simple (const GdkPixbuf *src,
16231 int dest_width,
16232 int dest_height,
16233 GdkInterpType interp_type);
16234
16235 GdkPixbuf *gdk_pixbuf_composite_color_simple (const GdkPixbuf *src,
16236 int dest_width,
16237 int dest_height,
16238 GdkInterpType interp_type,
16239 int overall_alpha,
16240 int check_size,
16241 guint32 color1,
16242 guint32 color2);
16243
16244 GdkPixbuf *gdk_pixbuf_rotate_simple (const GdkPixbuf *src,
16245 GdkPixbufRotation angle);
16246 GdkPixbuf *gdk_pixbuf_flip (const GdkPixbuf *src,
16247 gboolean horizontal);
16248 # 35 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2
16249
16250 # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-animation.h" 1
16251 # 34 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-animation.h"
16252
16253
16254
16255
16256 typedef struct _GdkPixbufAnimation GdkPixbufAnimation;
16257 typedef struct _GdkPixbufAnimationIter GdkPixbufAnimationIter;
16258 # 49 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-animation.h"
16259 GType gdk_pixbuf_animation_get_type (void) __attribute__((__const__));
16260
16261
16262
16263
16264
16265 GdkPixbufAnimation *gdk_pixbuf_animation_new_from_file (const char *filename,
16266 GError **error);
16267
16268
16269 GdkPixbufAnimation *gdk_pixbuf_animation_ref (GdkPixbufAnimation *animation);
16270 void gdk_pixbuf_animation_unref (GdkPixbufAnimation *animation);
16271
16272
16273 int gdk_pixbuf_animation_get_width (GdkPixbufAnimation *animation);
16274 int gdk_pixbuf_animation_get_height (GdkPixbufAnimation *animation);
16275 gboolean gdk_pixbuf_animation_is_static_image (GdkPixbufAnimation *animation);
16276 GdkPixbuf *gdk_pixbuf_animation_get_static_image (GdkPixbufAnimation *animation);
16277
16278 GdkPixbufAnimationIter *gdk_pixbuf_animation_get_iter (GdkPixbufAnimation *animation,
16279 const GTimeVal *start_time);
16280 GType gdk_pixbuf_animation_iter_get_type (void) __attribute__((__const__));
16281 int gdk_pixbuf_animation_iter_get_delay_time (GdkPixbufAnimationIter *iter);
16282 GdkPixbuf *gdk_pixbuf_animation_iter_get_pixbuf (GdkPixbufAnimationIter *iter);
16283 gboolean gdk_pixbuf_animation_iter_on_currently_loading_frame (GdkPixbufAnimationIter *iter);
16284 gboolean gdk_pixbuf_animation_iter_advance (GdkPixbufAnimationIter *iter,
16285 const GTimeVal *current_time);
16286 # 145 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-animation.h"
16287 # 36 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2
16288
16289 # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h" 1
16290 # 29 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h"
16291
16292
16293 typedef struct _GdkPixbufSimpleAnim GdkPixbufSimpleAnim;
16294 typedef struct _GdkPixbufSimpleAnimClass GdkPixbufSimpleAnimClass;
16295 # 42 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h"
16296 GType gdk_pixbuf_simple_anim_get_type (void) __attribute__((__const__));
16297 GType gdk_pixbuf_simple_anim_iter_get_type (void) __attribute__((__const__));
16298
16299 GdkPixbufSimpleAnim *gdk_pixbuf_simple_anim_new (gint width,
16300 gint height,
16301 gfloat rate);
16302 void gdk_pixbuf_simple_anim_add_frame (GdkPixbufSimpleAnim *animation,
16303 GdkPixbuf *pixbuf);
16304 # 37 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2
16305
16306 # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-io.h" 1
16307 # 34 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-io.h"
16308
16309 # 1 "/usr/include/glib-2.0/gmodule.h" 1
16310 # 32 "/usr/include/glib-2.0/gmodule.h"
16311 # 44 "/usr/include/glib-2.0/gmodule.h"
16312 typedef enum
16313 {
16314 G_MODULE_BIND_LAZY = 1 << 0,
16315 G_MODULE_BIND_LOCAL = 1 << 1,
16316 G_MODULE_BIND_MASK = 0x03
16317 } GModuleFlags;
16318
16319 typedef struct _GModule GModule;
16320 typedef const gchar* (*GModuleCheckInit) (GModule *module);
16321 typedef void (*GModuleUnload) (GModule *module);
16322
16323
16324
16325
16326
16327
16328
16329 gboolean g_module_supported (void) __attribute__((__const__));
16330
16331
16332 GModule* g_module_open (const gchar *file_name,
16333 GModuleFlags flags);
16334
16335
16336 gboolean g_module_close (GModule *module);
16337
16338
16339 void g_module_make_resident (GModule *module);
16340
16341
16342 const gchar* g_module_error (void);
16343
16344
16345 gboolean g_module_symbol (GModule *module,
16346 const gchar *symbol_name,
16347 gpointer *symbol);
16348
16349
16350 const gchar* g_module_name (GModule *module);
16351 # 95 "/usr/include/glib-2.0/gmodule.h"
16352 gchar* g_module_build_path (const gchar *directory,
16353 const gchar *module_name);
16354 # 35 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-io.h" 2
16355
16356
16357
16358
16359
16360 typedef struct _GdkPixbufFormat GdkPixbufFormat;
16361
16362 GSList *gdk_pixbuf_get_formats (void);
16363 gchar *gdk_pixbuf_format_get_name (GdkPixbufFormat *format);
16364 gchar *gdk_pixbuf_format_get_description (GdkPixbufFormat *format);
16365 gchar **gdk_pixbuf_format_get_mime_types (GdkPixbufFormat *format);
16366 gchar **gdk_pixbuf_format_get_extensions (GdkPixbufFormat *format);
16367 gboolean gdk_pixbuf_format_is_writable (GdkPixbufFormat *format);
16368 gboolean gdk_pixbuf_format_is_scalable (GdkPixbufFormat *format);
16369 gboolean gdk_pixbuf_format_is_disabled (GdkPixbufFormat *format);
16370 void gdk_pixbuf_format_set_disabled (GdkPixbufFormat *format,
16371 gboolean disabled);
16372 gchar *gdk_pixbuf_format_get_license (GdkPixbufFormat *format);
16373
16374 GdkPixbufFormat *gdk_pixbuf_get_file_info (const gchar *filename,
16375 gint *width,
16376 gint *height);
16377 # 166 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-io.h"
16378 # 38 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2
16379
16380 # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h" 1
16381 # 35 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h"
16382 # 45 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-loader.h"
16383 typedef struct _GdkPixbufLoader GdkPixbufLoader;
16384 struct _GdkPixbufLoader
16385 {
16386 GObject parent_instance;
16387
16388
16389 gpointer priv;
16390 };
16391
16392 typedef struct _GdkPixbufLoaderClass GdkPixbufLoaderClass;
16393 struct _GdkPixbufLoaderClass
16394 {
16395 GObjectClass parent_class;
16396
16397 void (*size_prepared) (GdkPixbufLoader *loader,
16398 int width,
16399 int height);
16400
16401 void (*area_prepared) (GdkPixbufLoader *loader);
16402
16403
16404 void (*area_updated) (GdkPixbufLoader *loader,
16405 int x,
16406 int y,
16407 int width,
16408 int height);
16409
16410 void (*closed) (GdkPixbufLoader *loader);
16411 };
16412
16413 GType gdk_pixbuf_loader_get_type (void) __attribute__((__const__));
16414 GdkPixbufLoader * gdk_pixbuf_loader_new (void);
16415 GdkPixbufLoader * gdk_pixbuf_loader_new_with_type (const char *image_type,
16416 GError **error);
16417 GdkPixbufLoader * gdk_pixbuf_loader_new_with_mime_type (const char *mime_type,
16418 GError **error);
16419 void gdk_pixbuf_loader_set_size (GdkPixbufLoader *loader,
16420 int width,
16421 int height);
16422 gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader,
16423 const guchar *buf,
16424 gsize count,
16425 GError **error);
16426 GdkPixbuf * gdk_pixbuf_loader_get_pixbuf (GdkPixbufLoader *loader);
16427 GdkPixbufAnimation * gdk_pixbuf_loader_get_animation (GdkPixbufLoader *loader);
16428 gboolean gdk_pixbuf_loader_close (GdkPixbufLoader *loader,
16429 GError **error);
16430 GdkPixbufFormat *gdk_pixbuf_loader_get_format (GdkPixbufLoader *loader);
16431 # 39 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2
16432
16433 # 1 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h" 1
16434 # 9 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h"
16435
16436
16437 GType gdk_pixbuf_alpha_mode_get_type (void) __attribute__((__const__));
16438
16439 GType gdk_colorspace_get_type (void) __attribute__((__const__));
16440
16441 GType gdk_pixbuf_error_get_type (void) __attribute__((__const__));
16442
16443
16444 GType gdk_interp_type_get_type (void) __attribute__((__const__));
16445
16446 GType gdk_pixbuf_rotation_get_type (void) __attribute__((__const__));
16447 # 40 "/usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h" 2
16448 # 34 "/usr/include/gtk-2.0/gdk/gdkpixbuf.h" 2
16449
16450
16451
16452
16453
16454 void gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
16455 GdkBitmap *bitmap,
16456 int src_x,
16457 int src_y,
16458 int dest_x,
16459 int dest_y,
16460 int width,
16461 int height,
16462 int alpha_threshold);
16463
16464 void gdk_pixbuf_render_to_drawable (GdkPixbuf *pixbuf,
16465 GdkDrawable *drawable,
16466 GdkGC *gc,
16467 int src_x,
16468 int src_y,
16469 int dest_x,
16470 int dest_y,
16471 int width,
16472 int height,
16473 GdkRgbDither dither,
16474 int x_dither,
16475 int y_dither);
16476 void gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf *pixbuf,
16477 GdkDrawable *drawable,
16478 int src_x,
16479 int src_y,
16480 int dest_x,
16481 int dest_y,
16482 int width,
16483 int height,
16484 GdkPixbufAlphaMode alpha_mode,
16485 int alpha_threshold,
16486 GdkRgbDither dither,
16487 int x_dither,
16488 int y_dither);
16489
16490 void gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf *pixbuf,
16491 GdkColormap *colormap,
16492 GdkPixmap **pixmap_return,
16493 GdkBitmap **mask_return,
16494 int alpha_threshold);
16495 # 89 "/usr/include/gtk-2.0/gdk/gdkpixbuf.h"
16496 GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf *dest,
16497 GdkDrawable *src,
16498 GdkColormap *cmap,
16499 int src_x,
16500 int src_y,
16501 int dest_x,
16502 int dest_y,
16503 int width,
16504 int height);
16505
16506 GdkPixbuf *gdk_pixbuf_get_from_image (GdkPixbuf *dest,
16507 GdkImage *src,
16508 GdkColormap *cmap,
16509 int src_x,
16510 int src_y,
16511 int dest_x,
16512 int dest_y,
16513 int width,
16514 int height);
16515 # 25 "/usr/include/gtk-2.0/gdk/gdkcairo.h" 2
16516
16517 # 1 "/usr/include/pango-1.0/pango/pangocairo.h" 1
16518 # 30 "/usr/include/pango-1.0/pango/pangocairo.h"
16519 # 45 "/usr/include/pango-1.0/pango/pangocairo.h"
16520 typedef struct _PangoCairoFontMap PangoCairoFontMap;
16521
16522
16523
16524
16525 GType pango_cairo_font_map_get_type (void);
16526
16527 PangoFontMap *pango_cairo_font_map_new (void);
16528 PangoFontMap *pango_cairo_font_map_get_default (void);
16529
16530 void pango_cairo_font_map_set_resolution (PangoCairoFontMap *fontmap,
16531 double dpi);
16532 double pango_cairo_font_map_get_resolution (PangoCairoFontMap *fontmap);
16533 PangoContext *pango_cairo_font_map_create_context (PangoCairoFontMap *fontmap);
16534
16535
16536
16537 void pango_cairo_update_context (cairo_t *cr,
16538 PangoContext *context);
16539
16540 void pango_cairo_context_set_font_options (PangoContext *context,
16541 const cairo_font_options_t *options);
16542 const cairo_font_options_t *pango_cairo_context_get_font_options (PangoContext *context);
16543
16544 void pango_cairo_context_set_resolution (PangoContext *context,
16545 double dpi);
16546 double pango_cairo_context_get_resolution (PangoContext *context);
16547
16548
16549
16550 PangoLayout *pango_cairo_create_layout (cairo_t *cr);
16551 void pango_cairo_update_layout (cairo_t *cr,
16552 PangoLayout *layout);
16553
16554
16555
16556
16557 void pango_cairo_show_glyph_string (cairo_t *cr,
16558 PangoFont *font,
16559 PangoGlyphString *glyphs);
16560 void pango_cairo_show_layout_line (cairo_t *cr,
16561 PangoLayoutLine *line);
16562 void pango_cairo_show_layout (cairo_t *cr,
16563 PangoLayout *layout);
16564
16565
16566
16567
16568 void pango_cairo_glyph_string_path (cairo_t *cr,
16569 PangoFont *font,
16570 PangoGlyphString *glyphs);
16571 void pango_cairo_layout_line_path (cairo_t *cr,
16572 PangoLayoutLine *line);
16573 void pango_cairo_layout_path (cairo_t *cr,
16574 PangoLayout *layout);
16575 # 26 "/usr/include/gtk-2.0/gdk/gdkcairo.h" 2
16576
16577
16578
16579 cairo_t *gdk_cairo_create (GdkDrawable *drawable);
16580
16581 void gdk_cairo_set_source_color (cairo_t *cr,
16582 GdkColor *color);
16583 void gdk_cairo_set_source_pixbuf (cairo_t *cr,
16584 GdkPixbuf *pixbuf,
16585 double pixbuf_x,
16586 double pixbuf_y);
16587
16588 void gdk_cairo_rectangle (cairo_t *cr,
16589 GdkRectangle *rectangle);
16590 void gdk_cairo_region (cairo_t *cr,
16591 GdkRegion *region);
16592 # 31 "/usr/include/gtk-2.0/gdk/gdk.h" 2
16593
16594
16595 # 1 "/usr/include/gtk-2.0/gdk/gdkcursor.h" 1
16596 # 33 "/usr/include/gtk-2.0/gdk/gdkcursor.h"
16597
16598
16599
16600
16601
16602
16603 typedef enum
16604 {
16605 GDK_X_CURSOR = 0,
16606 GDK_ARROW = 2,
16607 GDK_BASED_ARROW_DOWN = 4,
16608 GDK_BASED_ARROW_UP = 6,
16609 GDK_BOAT = 8,
16610 GDK_BOGOSITY = 10,
16611 GDK_BOTTOM_LEFT_CORNER = 12,
16612 GDK_BOTTOM_RIGHT_CORNER = 14,
16613 GDK_BOTTOM_SIDE = 16,
16614 GDK_BOTTOM_TEE = 18,
16615 GDK_BOX_SPIRAL = 20,
16616 GDK_CENTER_PTR = 22,
16617 GDK_CIRCLE = 24,
16618 GDK_CLOCK = 26,
16619 GDK_COFFEE_MUG = 28,
16620 GDK_CROSS = 30,
16621 GDK_CROSS_REVERSE = 32,
16622 GDK_CROSSHAIR = 34,
16623 GDK_DIAMOND_CROSS = 36,
16624 GDK_DOT = 38,
16625 GDK_DOTBOX = 40,
16626 GDK_DOUBLE_ARROW = 42,
16627 GDK_DRAFT_LARGE = 44,
16628 GDK_DRAFT_SMALL = 46,
16629 GDK_DRAPED_BOX = 48,
16630 GDK_EXCHANGE = 50,
16631 GDK_FLEUR = 52,
16632 GDK_GOBBLER = 54,
16633 GDK_GUMBY = 56,
16634 GDK_HAND1 = 58,
16635 GDK_HAND2 = 60,
16636 GDK_HEART = 62,
16637 GDK_ICON = 64,
16638 GDK_IRON_CROSS = 66,
16639 GDK_LEFT_PTR = 68,
16640 GDK_LEFT_SIDE = 70,
16641 GDK_LEFT_TEE = 72,
16642 GDK_LEFTBUTTON = 74,
16643 GDK_LL_ANGLE = 76,
16644 GDK_LR_ANGLE = 78,
16645 GDK_MAN = 80,
16646 GDK_MIDDLEBUTTON = 82,
16647 GDK_MOUSE = 84,
16648 GDK_PENCIL = 86,
16649 GDK_PIRATE = 88,
16650 GDK_PLUS = 90,
16651 GDK_QUESTION_ARROW = 92,
16652 GDK_RIGHT_PTR = 94,
16653 GDK_RIGHT_SIDE = 96,
16654 GDK_RIGHT_TEE = 98,
16655 GDK_RIGHTBUTTON = 100,
16656 GDK_RTL_LOGO = 102,
16657 GDK_SAILBOAT = 104,
16658 GDK_SB_DOWN_ARROW = 106,
16659 GDK_SB_H_DOUBLE_ARROW = 108,
16660 GDK_SB_LEFT_ARROW = 110,
16661 GDK_SB_RIGHT_ARROW = 112,
16662 GDK_SB_UP_ARROW = 114,
16663 GDK_SB_V_DOUBLE_ARROW = 116,
16664 GDK_SHUTTLE = 118,
16665 GDK_SIZING = 120,
16666 GDK_SPIDER = 122,
16667 GDK_SPRAYCAN = 124,
16668 GDK_STAR = 126,
16669 GDK_TARGET = 128,
16670 GDK_TCROSS = 130,
16671 GDK_TOP_LEFT_ARROW = 132,
16672 GDK_TOP_LEFT_CORNER = 134,
16673 GDK_TOP_RIGHT_CORNER = 136,
16674 GDK_TOP_SIDE = 138,
16675 GDK_TOP_TEE = 140,
16676 GDK_TREK = 142,
16677 GDK_UL_ANGLE = 144,
16678 GDK_UMBRELLA = 146,
16679 GDK_UR_ANGLE = 148,
16680 GDK_WATCH = 150,
16681 GDK_XTERM = 152,
16682 GDK_LAST_CURSOR,
16683 GDK_CURSOR_IS_PIXMAP = -1
16684 } GdkCursorType;
16685
16686 struct _GdkCursor
16687 {
16688 GdkCursorType type;
16689
16690 guint ref_count;
16691 };
16692
16693
16694
16695
16696 GType gdk_cursor_get_type (void) __attribute__((__const__));
16697
16698 GdkCursor* gdk_cursor_new_for_display (GdkDisplay *display,
16699 GdkCursorType cursor_type);
16700
16701
16702
16703 GdkCursor* gdk_cursor_new_from_pixmap (GdkPixmap *source,
16704 GdkPixmap *mask,
16705 const GdkColor *fg,
16706 const GdkColor *bg,
16707 gint x,
16708 gint y);
16709 GdkCursor* gdk_cursor_new_from_pixbuf (GdkDisplay *display,
16710 GdkPixbuf *pixbuf,
16711 gint x,
16712 gint y);
16713 GdkDisplay* gdk_cursor_get_display (GdkCursor *cursor);
16714 GdkCursor* gdk_cursor_ref (GdkCursor *cursor);
16715 void gdk_cursor_unref (GdkCursor *cursor);
16716 GdkCursor* gdk_cursor_new_from_name (GdkDisplay *display,
16717 const gchar *name);
16718 GdkPixbuf* gdk_cursor_get_image (GdkCursor *cursor);
16719 # 33 "/usr/include/gtk-2.0/gdk/gdk.h" 2
16720
16721 # 1 "/usr/include/gtk-2.0/gdk/gdkdisplay.h" 1
16722 # 28 "/usr/include/gtk-2.0/gdk/gdkdisplay.h"
16723
16724 # 1 "/usr/include/gtk-2.0/gdk/gdkevents.h" 1
16725 # 32 "/usr/include/gtk-2.0/gdk/gdkevents.h"
16726
16727 # 1 "/usr/include/gtk-2.0/gdk/gdkdnd.h" 1
16728 # 31 "/usr/include/gtk-2.0/gdk/gdkdnd.h"
16729
16730
16731 typedef struct _GdkDragContext GdkDragContext;
16732
16733 typedef enum
16734 {
16735 GDK_ACTION_DEFAULT = 1 << 0,
16736 GDK_ACTION_COPY = 1 << 1,
16737 GDK_ACTION_MOVE = 1 << 2,
16738 GDK_ACTION_LINK = 1 << 3,
16739 GDK_ACTION_PRIVATE = 1 << 4,
16740 GDK_ACTION_ASK = 1 << 5
16741 } GdkDragAction;
16742
16743 typedef enum
16744 {
16745 GDK_DRAG_PROTO_MOTIF,
16746 GDK_DRAG_PROTO_XDND,
16747 GDK_DRAG_PROTO_ROOTWIN,
16748
16749 GDK_DRAG_PROTO_NONE,
16750 GDK_DRAG_PROTO_WIN32_DROPFILES,
16751 GDK_DRAG_PROTO_OLE2,
16752 GDK_DRAG_PROTO_LOCAL
16753 } GdkDragProtocol;
16754
16755
16756
16757
16758
16759 typedef struct _GdkDragContextClass GdkDragContextClass;
16760 # 70 "/usr/include/gtk-2.0/gdk/gdkdnd.h"
16761 struct _GdkDragContext {
16762 GObject parent_instance;
16763
16764
16765
16766 GdkDragProtocol protocol;
16767
16768 gboolean is_source;
16769
16770 GdkWindow *source_window;
16771 GdkWindow *dest_window;
16772
16773 GList *targets;
16774 GdkDragAction actions;
16775 GdkDragAction suggested_action;
16776 GdkDragAction action;
16777
16778 guint32 start_time;
16779
16780
16781
16782 gpointer windowing_data;
16783 };
16784
16785 struct _GdkDragContextClass {
16786 GObjectClass parent_class;
16787
16788
16789 };
16790
16791
16792
16793 GType gdk_drag_context_get_type (void) __attribute__((__const__));
16794 GdkDragContext * gdk_drag_context_new (void);
16795
16796
16797 void gdk_drag_context_ref (GdkDragContext *context);
16798 void gdk_drag_context_unref (GdkDragContext *context);
16799
16800
16801
16802
16803 void gdk_drag_status (GdkDragContext *context,
16804 GdkDragAction action,
16805 guint32 time_);
16806 void gdk_drop_reply (GdkDragContext *context,
16807 gboolean ok,
16808 guint32 time_);
16809 void gdk_drop_finish (GdkDragContext *context,
16810 gboolean success,
16811 guint32 time_);
16812 GdkAtom gdk_drag_get_selection (GdkDragContext *context);
16813
16814
16815
16816 GdkDragContext * gdk_drag_begin (GdkWindow *window,
16817 GList *targets);
16818
16819 guint32 gdk_drag_get_protocol_for_display (GdkDisplay *display,
16820 guint32 xid,
16821 GdkDragProtocol *protocol);
16822 void gdk_drag_find_window_for_screen (GdkDragContext *context,
16823 GdkWindow *drag_window,
16824 GdkScreen *screen,
16825 gint x_root,
16826 gint y_root,
16827 GdkWindow **dest_window,
16828 GdkDragProtocol *protocol);
16829 # 150 "/usr/include/gtk-2.0/gdk/gdkdnd.h"
16830 gboolean gdk_drag_motion (GdkDragContext *context,
16831 GdkWindow *dest_window,
16832 GdkDragProtocol protocol,
16833 gint x_root,
16834 gint y_root,
16835 GdkDragAction suggested_action,
16836 GdkDragAction possible_actions,
16837 guint32 time_);
16838 void gdk_drag_drop (GdkDragContext *context,
16839 guint32 time_);
16840 void gdk_drag_abort (GdkDragContext *context,
16841 guint32 time_);
16842 gboolean gdk_drag_drop_succeeded (GdkDragContext *context);
16843 # 33 "/usr/include/gtk-2.0/gdk/gdkevents.h" 2
16844
16845 # 1 "/usr/include/gtk-2.0/gdk/gdkinput.h" 1
16846 # 32 "/usr/include/gtk-2.0/gdk/gdkinput.h"
16847 # 41 "/usr/include/gtk-2.0/gdk/gdkinput.h"
16848 typedef struct _GdkDeviceKey GdkDeviceKey;
16849 typedef struct _GdkDeviceAxis GdkDeviceAxis;
16850 typedef struct _GdkDevice GdkDevice;
16851 typedef struct _GdkDeviceClass GdkDeviceClass;
16852 typedef struct _GdkTimeCoord GdkTimeCoord;
16853
16854 typedef enum
16855 {
16856 GDK_EXTENSION_EVENTS_NONE,
16857 GDK_EXTENSION_EVENTS_ALL,
16858 GDK_EXTENSION_EVENTS_CURSOR
16859 } GdkExtensionMode;
16860
16861 typedef enum
16862 {
16863 GDK_SOURCE_MOUSE,
16864 GDK_SOURCE_PEN,
16865 GDK_SOURCE_ERASER,
16866 GDK_SOURCE_CURSOR
16867 } GdkInputSource;
16868
16869 typedef enum
16870 {
16871 GDK_MODE_DISABLED,
16872 GDK_MODE_SCREEN,
16873 GDK_MODE_WINDOW
16874 } GdkInputMode;
16875
16876 typedef enum
16877 {
16878 GDK_AXIS_IGNORE,
16879 GDK_AXIS_X,
16880 GDK_AXIS_Y,
16881 GDK_AXIS_PRESSURE,
16882 GDK_AXIS_XTILT,
16883 GDK_AXIS_YTILT,
16884 GDK_AXIS_WHEEL,
16885 GDK_AXIS_LAST
16886 } GdkAxisUse;
16887
16888 struct _GdkDeviceKey
16889 {
16890 guint keyval;
16891 GdkModifierType modifiers;
16892 };
16893
16894 struct _GdkDeviceAxis
16895 {
16896 GdkAxisUse use;
16897 gdouble min;
16898 gdouble max;
16899 };
16900
16901 struct _GdkDevice
16902 {
16903 GObject parent_instance;
16904
16905
16906 gchar *name;
16907 GdkInputSource source;
16908 GdkInputMode mode;
16909 gboolean has_cursor;
16910
16911 gint num_axes;
16912 GdkDeviceAxis *axes;
16913
16914 gint num_keys;
16915 GdkDeviceKey *keys;
16916 };
16917
16918
16919
16920
16921
16922
16923 struct _GdkTimeCoord
16924 {
16925 guint32 time;
16926 gdouble axes[128];
16927 };
16928
16929 GType gdk_device_get_type (void) __attribute__((__const__));
16930
16931
16932
16933
16934
16935
16936
16937 void gdk_device_set_source (GdkDevice *device,
16938 GdkInputSource source);
16939
16940 gboolean gdk_device_set_mode (GdkDevice *device,
16941 GdkInputMode mode);
16942
16943 void gdk_device_set_key (GdkDevice *device,
16944 guint index_,
16945 guint keyval,
16946 GdkModifierType modifiers);
16947
16948 void gdk_device_set_axis_use (GdkDevice *device,
16949 guint index_,
16950 GdkAxisUse use);
16951 void gdk_device_get_state (GdkDevice *device,
16952 GdkWindow *window,
16953 gdouble *axes,
16954 GdkModifierType *mask);
16955 gboolean gdk_device_get_history (GdkDevice *device,
16956 GdkWindow *window,
16957 guint32 start,
16958 guint32 stop,
16959 GdkTimeCoord ***events,
16960 gint *n_events);
16961 void gdk_device_free_history (GdkTimeCoord **events,
16962 gint n_events);
16963 gboolean gdk_device_get_axis (GdkDevice *device,
16964 gdouble *axes,
16965 GdkAxisUse use,
16966 gdouble *value);
16967
16968 void gdk_input_set_extension_events (GdkWindow *window,
16969 gint mask,
16970 GdkExtensionMode mode);
16971 # 34 "/usr/include/gtk-2.0/gdk/gdkevents.h" 2
16972 # 43 "/usr/include/gtk-2.0/gdk/gdkevents.h"
16973 typedef struct _GdkEventAny GdkEventAny;
16974 typedef struct _GdkEventExpose GdkEventExpose;
16975 typedef struct _GdkEventNoExpose GdkEventNoExpose;
16976 typedef struct _GdkEventVisibility GdkEventVisibility;
16977 typedef struct _GdkEventMotion GdkEventMotion;
16978 typedef struct _GdkEventButton GdkEventButton;
16979 typedef struct _GdkEventScroll GdkEventScroll;
16980 typedef struct _GdkEventKey GdkEventKey;
16981 typedef struct _GdkEventFocus GdkEventFocus;
16982 typedef struct _GdkEventCrossing GdkEventCrossing;
16983 typedef struct _GdkEventConfigure GdkEventConfigure;
16984 typedef struct _GdkEventProperty GdkEventProperty;
16985 typedef struct _GdkEventSelection GdkEventSelection;
16986 typedef struct _GdkEventOwnerChange GdkEventOwnerChange;
16987 typedef struct _GdkEventProximity GdkEventProximity;
16988 typedef struct _GdkEventClient GdkEventClient;
16989 typedef struct _GdkEventDND GdkEventDND;
16990 typedef struct _GdkEventWindowState GdkEventWindowState;
16991 typedef struct _GdkEventSetting GdkEventSetting;
16992 typedef struct _GdkEventGrabBroken GdkEventGrabBroken;
16993
16994 typedef union _GdkEvent GdkEvent;
16995
16996 typedef void (*GdkEventFunc) (GdkEvent *event,
16997 gpointer data);
16998
16999
17000
17001 typedef void GdkXEvent;
17002
17003
17004
17005 typedef enum {
17006 GDK_FILTER_CONTINUE,
17007 GDK_FILTER_TRANSLATE,
17008
17009
17010 GDK_FILTER_REMOVE
17011 } GdkFilterReturn;
17012
17013 typedef GdkFilterReturn (*GdkFilterFunc) (GdkXEvent *xevent,
17014 GdkEvent *event,
17015 gpointer data);
17016 # 111 "/usr/include/gtk-2.0/gdk/gdkevents.h"
17017 typedef enum
17018 {
17019 GDK_NOTHING = -1,
17020 GDK_DELETE = 0,
17021 GDK_DESTROY = 1,
17022 GDK_EXPOSE = 2,
17023 GDK_MOTION_NOTIFY = 3,
17024 GDK_BUTTON_PRESS = 4,
17025 GDK_2BUTTON_PRESS = 5,
17026 GDK_3BUTTON_PRESS = 6,
17027 GDK_BUTTON_RELEASE = 7,
17028 GDK_KEY_PRESS = 8,
17029 GDK_KEY_RELEASE = 9,
17030 GDK_ENTER_NOTIFY = 10,
17031 GDK_LEAVE_NOTIFY = 11,
17032 GDK_FOCUS_CHANGE = 12,
17033 GDK_CONFIGURE = 13,
17034 GDK_MAP = 14,
17035 GDK_UNMAP = 15,
17036 GDK_PROPERTY_NOTIFY = 16,
17037 GDK_SELECTION_CLEAR = 17,
17038 GDK_SELECTION_REQUEST = 18,
17039 GDK_SELECTION_NOTIFY = 19,
17040 GDK_PROXIMITY_IN = 20,
17041 GDK_PROXIMITY_OUT = 21,
17042 GDK_DRAG_ENTER = 22,
17043 GDK_DRAG_LEAVE = 23,
17044 GDK_DRAG_MOTION = 24,
17045 GDK_DRAG_STATUS = 25,
17046 GDK_DROP_START = 26,
17047 GDK_DROP_FINISHED = 27,
17048 GDK_CLIENT_EVENT = 28,
17049 GDK_VISIBILITY_NOTIFY = 29,
17050 GDK_NO_EXPOSE = 30,
17051 GDK_SCROLL = 31,
17052 GDK_WINDOW_STATE = 32,
17053 GDK_SETTING = 33,
17054 GDK_OWNER_CHANGE = 34,
17055 GDK_GRAB_BROKEN = 35
17056 } GdkEventType;
17057
17058
17059
17060
17061 typedef enum
17062 {
17063 GDK_EXPOSURE_MASK = 1 << 1,
17064 GDK_POINTER_MOTION_MASK = 1 << 2,
17065 GDK_POINTER_MOTION_HINT_MASK = 1 << 3,
17066 GDK_BUTTON_MOTION_MASK = 1 << 4,
17067 GDK_BUTTON1_MOTION_MASK = 1 << 5,
17068 GDK_BUTTON2_MOTION_MASK = 1 << 6,
17069 GDK_BUTTON3_MOTION_MASK = 1 << 7,
17070 GDK_BUTTON_PRESS_MASK = 1 << 8,
17071 GDK_BUTTON_RELEASE_MASK = 1 << 9,
17072 GDK_KEY_PRESS_MASK = 1 << 10,
17073 GDK_KEY_RELEASE_MASK = 1 << 11,
17074 GDK_ENTER_NOTIFY_MASK = 1 << 12,
17075 GDK_LEAVE_NOTIFY_MASK = 1 << 13,
17076 GDK_FOCUS_CHANGE_MASK = 1 << 14,
17077 GDK_STRUCTURE_MASK = 1 << 15,
17078 GDK_PROPERTY_CHANGE_MASK = 1 << 16,
17079 GDK_VISIBILITY_NOTIFY_MASK = 1 << 17,
17080 GDK_PROXIMITY_IN_MASK = 1 << 18,
17081 GDK_PROXIMITY_OUT_MASK = 1 << 19,
17082 GDK_SUBSTRUCTURE_MASK = 1 << 20,
17083 GDK_SCROLL_MASK = 1 << 21,
17084 GDK_ALL_EVENTS_MASK = 0x3FFFFE
17085 } GdkEventMask;
17086
17087 typedef enum
17088 {
17089 GDK_VISIBILITY_UNOBSCURED,
17090 GDK_VISIBILITY_PARTIAL,
17091 GDK_VISIBILITY_FULLY_OBSCURED
17092 } GdkVisibilityState;
17093
17094 typedef enum
17095 {
17096 GDK_SCROLL_UP,
17097 GDK_SCROLL_DOWN,
17098 GDK_SCROLL_LEFT,
17099 GDK_SCROLL_RIGHT
17100 } GdkScrollDirection;
17101 # 204 "/usr/include/gtk-2.0/gdk/gdkevents.h"
17102 typedef enum
17103 {
17104 GDK_NOTIFY_ANCESTOR = 0,
17105 GDK_NOTIFY_VIRTUAL = 1,
17106 GDK_NOTIFY_INFERIOR = 2,
17107 GDK_NOTIFY_NONLINEAR = 3,
17108 GDK_NOTIFY_NONLINEAR_VIRTUAL = 4,
17109 GDK_NOTIFY_UNKNOWN = 5
17110 } GdkNotifyType;
17111
17112
17113
17114
17115
17116
17117 typedef enum
17118 {
17119 GDK_CROSSING_NORMAL,
17120 GDK_CROSSING_GRAB,
17121 GDK_CROSSING_UNGRAB
17122 } GdkCrossingMode;
17123
17124 typedef enum
17125 {
17126 GDK_PROPERTY_NEW_VALUE,
17127 GDK_PROPERTY_DELETE
17128 } GdkPropertyState;
17129
17130 typedef enum
17131 {
17132 GDK_WINDOW_STATE_WITHDRAWN = 1 << 0,
17133 GDK_WINDOW_STATE_ICONIFIED = 1 << 1,
17134 GDK_WINDOW_STATE_MAXIMIZED = 1 << 2,
17135 GDK_WINDOW_STATE_STICKY = 1 << 3,
17136 GDK_WINDOW_STATE_FULLSCREEN = 1 << 4,
17137 GDK_WINDOW_STATE_ABOVE = 1 << 5,
17138 GDK_WINDOW_STATE_BELOW = 1 << 6
17139 } GdkWindowState;
17140
17141 typedef enum
17142 {
17143 GDK_SETTING_ACTION_NEW,
17144 GDK_SETTING_ACTION_CHANGED,
17145 GDK_SETTING_ACTION_DELETED
17146 } GdkSettingAction;
17147
17148 typedef enum
17149 {
17150 GDK_OWNER_CHANGE_NEW_OWNER,
17151 GDK_OWNER_CHANGE_DESTROY,
17152 GDK_OWNER_CHANGE_CLOSE
17153 } GdkOwnerChange;
17154
17155 struct _GdkEventAny
17156 {
17157 GdkEventType type;
17158 GdkWindow *window;
17159 gint8 send_event;
17160 };
17161
17162 struct _GdkEventExpose
17163 {
17164 GdkEventType type;
17165 GdkWindow *window;
17166 gint8 send_event;
17167 GdkRectangle area;
17168 GdkRegion *region;
17169 gint count;
17170 };
17171
17172 struct _GdkEventNoExpose
17173 {
17174 GdkEventType type;
17175 GdkWindow *window;
17176 gint8 send_event;
17177 };
17178
17179 struct _GdkEventVisibility
17180 {
17181 GdkEventType type;
17182 GdkWindow *window;
17183 gint8 send_event;
17184 GdkVisibilityState state;
17185 };
17186
17187 struct _GdkEventMotion
17188 {
17189 GdkEventType type;
17190 GdkWindow *window;
17191 gint8 send_event;
17192 guint32 time;
17193 gdouble x;
17194 gdouble y;
17195 gdouble *axes;
17196 guint state;
17197 gint16 is_hint;
17198 GdkDevice *device;
17199 gdouble x_root, y_root;
17200 };
17201
17202 struct _GdkEventButton
17203 {
17204 GdkEventType type;
17205 GdkWindow *window;
17206 gint8 send_event;
17207 guint32 time;
17208 gdouble x;
17209 gdouble y;
17210 gdouble *axes;
17211 guint state;
17212 guint button;
17213 GdkDevice *device;
17214 gdouble x_root, y_root;
17215 };
17216
17217 struct _GdkEventScroll
17218 {
17219 GdkEventType type;
17220 GdkWindow *window;
17221 gint8 send_event;
17222 guint32 time;
17223 gdouble x;
17224 gdouble y;
17225 guint state;
17226 GdkScrollDirection direction;
17227 GdkDevice *device;
17228 gdouble x_root, y_root;
17229 };
17230
17231 struct _GdkEventKey
17232 {
17233 GdkEventType type;
17234 GdkWindow *window;
17235 gint8 send_event;
17236 guint32 time;
17237 guint state;
17238 guint keyval;
17239 gint length;
17240 gchar *string;
17241 guint16 hardware_keycode;
17242 guint8 group;
17243 };
17244
17245 struct _GdkEventCrossing
17246 {
17247 GdkEventType type;
17248 GdkWindow *window;
17249 gint8 send_event;
17250 GdkWindow *subwindow;
17251 guint32 time;
17252 gdouble x;
17253 gdouble y;
17254 gdouble x_root;
17255 gdouble y_root;
17256 GdkCrossingMode mode;
17257 GdkNotifyType detail;
17258 gboolean focus;
17259 guint state;
17260 };
17261
17262 struct _GdkEventFocus
17263 {
17264 GdkEventType type;
17265 GdkWindow *window;
17266 gint8 send_event;
17267 gint16 in;
17268 };
17269
17270 struct _GdkEventConfigure
17271 {
17272 GdkEventType type;
17273 GdkWindow *window;
17274 gint8 send_event;
17275 gint x, y;
17276 gint width;
17277 gint height;
17278 };
17279
17280 struct _GdkEventProperty
17281 {
17282 GdkEventType type;
17283 GdkWindow *window;
17284 gint8 send_event;
17285 GdkAtom atom;
17286 guint32 time;
17287 guint state;
17288 };
17289
17290 struct _GdkEventSelection
17291 {
17292 GdkEventType type;
17293 GdkWindow *window;
17294 gint8 send_event;
17295 GdkAtom selection;
17296 GdkAtom target;
17297 GdkAtom property;
17298 guint32 time;
17299 GdkNativeWindow requestor;
17300 };
17301
17302 struct _GdkEventOwnerChange
17303 {
17304 GdkEventType type;
17305 GdkWindow *window;
17306 gint8 send_event;
17307 GdkNativeWindow owner;
17308 GdkOwnerChange reason;
17309 GdkAtom selection;
17310 guint32 time;
17311 guint32 selection_time;
17312 };
17313
17314
17315
17316
17317 struct _GdkEventProximity
17318 {
17319 GdkEventType type;
17320 GdkWindow *window;
17321 gint8 send_event;
17322 guint32 time;
17323 GdkDevice *device;
17324 };
17325
17326 struct _GdkEventClient
17327 {
17328 GdkEventType type;
17329 GdkWindow *window;
17330 gint8 send_event;
17331 GdkAtom message_type;
17332 gushort data_format;
17333 union {
17334 char b[20];
17335 short s[10];
17336 long l[5];
17337 } data;
17338 };
17339
17340 struct _GdkEventSetting
17341 {
17342 GdkEventType type;
17343 GdkWindow *window;
17344 gint8 send_event;
17345 GdkSettingAction action;
17346 char *name;
17347 };
17348
17349 struct _GdkEventWindowState
17350 {
17351 GdkEventType type;
17352 GdkWindow *window;
17353 gint8 send_event;
17354 GdkWindowState changed_mask;
17355 GdkWindowState new_window_state;
17356 };
17357
17358 struct _GdkEventGrabBroken {
17359 GdkEventType type;
17360 GdkWindow *window;
17361 gint8 send_event;
17362 gboolean keyboard;
17363 gboolean implicit;
17364 GdkWindow *grab_window;
17365 };
17366
17367
17368
17369 struct _GdkEventDND {
17370 GdkEventType type;
17371 GdkWindow *window;
17372 gint8 send_event;
17373 GdkDragContext *context;
17374
17375 guint32 time;
17376 gshort x_root, y_root;
17377 };
17378
17379 union _GdkEvent
17380 {
17381 GdkEventType type;
17382 GdkEventAny any;
17383 GdkEventExpose expose;
17384 GdkEventNoExpose no_expose;
17385 GdkEventVisibility visibility;
17386 GdkEventMotion motion;
17387 GdkEventButton button;
17388 GdkEventScroll scroll;
17389 GdkEventKey key;
17390 GdkEventCrossing crossing;
17391 GdkEventFocus focus_change;
17392 GdkEventConfigure configure;
17393 GdkEventProperty property;
17394 GdkEventSelection selection;
17395 GdkEventOwnerChange owner_change;
17396 GdkEventProximity proximity;
17397 GdkEventClient client;
17398 GdkEventDND dnd;
17399 GdkEventWindowState window_state;
17400 GdkEventSetting setting;
17401 GdkEventGrabBroken grab_broken;
17402 };
17403
17404 GType gdk_event_get_type (void) __attribute__((__const__));
17405
17406 gboolean gdk_events_pending (void);
17407 GdkEvent* gdk_event_get (void);
17408
17409 GdkEvent* gdk_event_peek (void);
17410 GdkEvent* gdk_event_get_graphics_expose (GdkWindow *window);
17411 void gdk_event_put (GdkEvent *event);
17412
17413 GdkEvent* gdk_event_new (GdkEventType type);
17414 GdkEvent* gdk_event_copy (GdkEvent *event);
17415 void gdk_event_free (GdkEvent *event);
17416
17417 guint32 gdk_event_get_time (GdkEvent *event);
17418 gboolean gdk_event_get_state (GdkEvent *event,
17419 GdkModifierType *state);
17420 gboolean gdk_event_get_coords (GdkEvent *event,
17421 gdouble *x_win,
17422 gdouble *y_win);
17423 gboolean gdk_event_get_root_coords (GdkEvent *event,
17424 gdouble *x_root,
17425 gdouble *y_root);
17426 gboolean gdk_event_get_axis (GdkEvent *event,
17427 GdkAxisUse axis_use,
17428 gdouble *value);
17429 void gdk_event_handler_set (GdkEventFunc func,
17430 gpointer data,
17431 GDestroyNotify notify);
17432
17433 void gdk_event_set_screen (GdkEvent *event,
17434 GdkScreen *screen);
17435 GdkScreen *gdk_event_get_screen (GdkEvent *event);
17436
17437 void gdk_set_show_events (gboolean show_events);
17438 gboolean gdk_get_show_events (void);
17439 # 551 "/usr/include/gtk-2.0/gdk/gdkevents.h"
17440 # 29 "/usr/include/gtk-2.0/gdk/gdkdisplay.h" 2
17441
17442
17443
17444
17445 typedef struct _GdkDisplayClass GdkDisplayClass;
17446 typedef struct _GdkDisplayPointerHooks GdkDisplayPointerHooks;
17447 # 43 "/usr/include/gtk-2.0/gdk/gdkdisplay.h"
17448 struct _GdkDisplay
17449 {
17450 GObject parent_instance;
17451
17452
17453 GList *queued_events;
17454 GList *queued_tail;
17455
17456
17457
17458
17459 guint32 button_click_time[2];
17460 GdkWindow *button_window[2];
17461 gint button_number[2];
17462
17463 guint double_click_time;
17464 GdkDevice *core_pointer;
17465
17466 const GdkDisplayPointerHooks *pointer_hooks;
17467
17468 guint closed : 1;
17469
17470 guint double_click_distance;
17471 gint button_x[2];
17472 gint button_y[2];
17473 };
17474
17475 struct _GdkDisplayClass
17476 {
17477 GObjectClass parent_class;
17478
17479 const gchar * (*get_display_name) (GdkDisplay *display);
17480 gint (*get_n_screens) (GdkDisplay *display);
17481 GdkScreen * (*get_screen) (GdkDisplay *display,
17482 gint screen_num);
17483 GdkScreen * (*get_default_screen) (GdkDisplay *display);
17484
17485
17486
17487 void (*closed) (GdkDisplay *display,
17488 gboolean is_error);
17489 };
17490
17491 struct _GdkDisplayPointerHooks
17492 {
17493 void (*get_pointer) (GdkDisplay *display,
17494 GdkScreen **screen,
17495 gint *x,
17496 gint *y,
17497 GdkModifierType *mask);
17498 GdkWindow* (*window_get_pointer) (GdkDisplay *display,
17499 GdkWindow *window,
17500 gint *x,
17501 gint *y,
17502 GdkModifierType *mask);
17503 GdkWindow* (*window_at_pointer) (GdkDisplay *display,
17504 gint *win_x,
17505 gint *win_y);
17506 };
17507
17508 GType gdk_display_get_type (void) __attribute__((__const__));
17509 GdkDisplay *gdk_display_open (const gchar *display_name);
17510
17511 const gchar * gdk_display_get_name (GdkDisplay *display);
17512
17513 gint gdk_display_get_n_screens (GdkDisplay *display);
17514 GdkScreen * gdk_display_get_screen (GdkDisplay *display,
17515 gint screen_num);
17516 GdkScreen * gdk_display_get_default_screen (GdkDisplay *display);
17517 void gdk_display_pointer_ungrab (GdkDisplay *display,
17518 guint32 time_);
17519 void gdk_display_keyboard_ungrab (GdkDisplay *display,
17520 guint32 time_);
17521 gboolean gdk_display_pointer_is_grabbed (GdkDisplay *display);
17522 void gdk_display_beep (GdkDisplay *display);
17523 void gdk_display_sync (GdkDisplay *display);
17524 void gdk_display_flush (GdkDisplay *display);
17525
17526 void gdk_display_close (GdkDisplay *display);
17527
17528 GList * gdk_display_list_devices (GdkDisplay *display);
17529
17530 GdkEvent* gdk_display_get_event (GdkDisplay *display);
17531 GdkEvent* gdk_display_peek_event (GdkDisplay *display);
17532 void gdk_display_put_event (GdkDisplay *display,
17533 GdkEvent *event);
17534
17535 void gdk_display_add_client_message_filter (GdkDisplay *display,
17536 GdkAtom message_type,
17537 GdkFilterFunc func,
17538 gpointer data);
17539
17540 void gdk_display_set_double_click_time (GdkDisplay *display,
17541 guint msec);
17542 void gdk_display_set_double_click_distance (GdkDisplay *display,
17543 guint distance);
17544
17545 GdkDisplay *gdk_display_get_default (void);
17546
17547 GdkDevice *gdk_display_get_core_pointer (GdkDisplay *display);
17548
17549 void gdk_display_get_pointer (GdkDisplay *display,
17550 GdkScreen **screen,
17551 gint *x,
17552 gint *y,
17553 GdkModifierType *mask);
17554 GdkWindow * gdk_display_get_window_at_pointer (GdkDisplay *display,
17555 gint *win_x,
17556 gint *win_y);
17557 void gdk_display_warp_pointer (GdkDisplay *display,
17558 GdkScreen *screen,
17559 gint x,
17560 gint y);
17561
17562 GdkDisplayPointerHooks *gdk_display_set_pointer_hooks (GdkDisplay *display,
17563 const GdkDisplayPointerHooks *new_hooks);
17564
17565 GdkDisplay *gdk_display_open_default_libgtk_only (void);
17566
17567 gboolean gdk_display_supports_cursor_alpha (GdkDisplay *display);
17568 gboolean gdk_display_supports_cursor_color (GdkDisplay *display);
17569 guint gdk_display_get_default_cursor_size (GdkDisplay *display);
17570 void gdk_display_get_maximal_cursor_size (GdkDisplay *display,
17571 guint *width,
17572 guint *height);
17573
17574 GdkWindow *gdk_display_get_default_group (GdkDisplay *display);
17575
17576 gboolean gdk_display_supports_selection_notification (GdkDisplay *display);
17577 gboolean gdk_display_request_selection_notification (GdkDisplay *display,
17578 GdkAtom selection);
17579
17580 gboolean gdk_display_supports_clipboard_persistence (GdkDisplay *display);
17581 void gdk_display_store_clipboard (GdkDisplay *display,
17582 GdkWindow *clipboard_window,
17583 guint32 time_,
17584 GdkAtom *targets,
17585 gint n_targets);
17586 # 34 "/usr/include/gtk-2.0/gdk/gdk.h" 2
17587
17588
17589 # 1 "/usr/include/gtk-2.0/gdk/gdkdrawable.h" 1
17590 # 30 "/usr/include/gtk-2.0/gdk/gdkdrawable.h"
17591
17592 # 1 "/usr/include/gtk-2.0/gdk/gdkgc.h" 1
17593 # 33 "/usr/include/gtk-2.0/gdk/gdkgc.h"
17594
17595
17596 typedef struct _GdkGCValues GdkGCValues;
17597 typedef struct _GdkGCClass GdkGCClass;
17598
17599
17600
17601
17602
17603
17604
17605 typedef enum
17606 {
17607 GDK_CAP_NOT_LAST,
17608 GDK_CAP_BUTT,
17609 GDK_CAP_ROUND,
17610 GDK_CAP_PROJECTING
17611 } GdkCapStyle;
17612
17613
17614
17615
17616
17617
17618
17619 typedef enum
17620 {
17621 GDK_SOLID,
17622 GDK_TILED,
17623 GDK_STIPPLED,
17624 GDK_OPAQUE_STIPPLED
17625 } GdkFill;
17626 # 84 "/usr/include/gtk-2.0/gdk/gdkgc.h"
17627 typedef enum
17628 {
17629 GDK_COPY,
17630 GDK_INVERT,
17631 GDK_XOR,
17632 GDK_CLEAR,
17633 GDK_AND,
17634 GDK_AND_REVERSE,
17635 GDK_AND_INVERT,
17636 GDK_NOOP,
17637 GDK_OR,
17638 GDK_EQUIV,
17639 GDK_OR_REVERSE,
17640 GDK_COPY_INVERT,
17641 GDK_OR_INVERT,
17642 GDK_NAND,
17643 GDK_NOR,
17644 GDK_SET
17645 } GdkFunction;
17646
17647
17648
17649
17650
17651
17652 typedef enum
17653 {
17654 GDK_JOIN_MITER,
17655 GDK_JOIN_ROUND,
17656 GDK_JOIN_BEVEL
17657 } GdkJoinStyle;
17658
17659
17660
17661
17662
17663
17664 typedef enum
17665 {
17666 GDK_LINE_SOLID,
17667 GDK_LINE_ON_OFF_DASH,
17668 GDK_LINE_DOUBLE_DASH
17669 } GdkLineStyle;
17670
17671 typedef enum
17672 {
17673 GDK_CLIP_BY_CHILDREN = 0,
17674 GDK_INCLUDE_INFERIORS = 1
17675 } GdkSubwindowMode;
17676
17677 typedef enum
17678 {
17679 GDK_GC_FOREGROUND = 1 << 0,
17680 GDK_GC_BACKGROUND = 1 << 1,
17681 GDK_GC_FONT = 1 << 2,
17682 GDK_GC_FUNCTION = 1 << 3,
17683 GDK_GC_FILL = 1 << 4,
17684 GDK_GC_TILE = 1 << 5,
17685 GDK_GC_STIPPLE = 1 << 6,
17686 GDK_GC_CLIP_MASK = 1 << 7,
17687 GDK_GC_SUBWINDOW = 1 << 8,
17688 GDK_GC_TS_X_ORIGIN = 1 << 9,
17689 GDK_GC_TS_Y_ORIGIN = 1 << 10,
17690 GDK_GC_CLIP_X_ORIGIN = 1 << 11,
17691 GDK_GC_CLIP_Y_ORIGIN = 1 << 12,
17692 GDK_GC_EXPOSURES = 1 << 13,
17693 GDK_GC_LINE_WIDTH = 1 << 14,
17694 GDK_GC_LINE_STYLE = 1 << 15,
17695 GDK_GC_CAP_STYLE = 1 << 16,
17696 GDK_GC_JOIN_STYLE = 1 << 17
17697 } GdkGCValuesMask;
17698
17699 struct _GdkGCValues
17700 {
17701 GdkColor foreground;
17702 GdkColor background;
17703 GdkFont *font;
17704 GdkFunction function;
17705 GdkFill fill;
17706 GdkPixmap *tile;
17707 GdkPixmap *stipple;
17708 GdkPixmap *clip_mask;
17709 GdkSubwindowMode subwindow_mode;
17710 gint ts_x_origin;
17711 gint ts_y_origin;
17712 gint clip_x_origin;
17713 gint clip_y_origin;
17714 gint graphics_exposures;
17715 gint line_width;
17716 GdkLineStyle line_style;
17717 GdkCapStyle cap_style;
17718 GdkJoinStyle join_style;
17719 };
17720 # 185 "/usr/include/gtk-2.0/gdk/gdkgc.h"
17721 struct _GdkGC
17722 {
17723 GObject parent_instance;
17724
17725 gint clip_x_origin;
17726 gint clip_y_origin;
17727 gint ts_x_origin;
17728 gint ts_y_origin;
17729
17730 GdkColormap *colormap;
17731 };
17732
17733 struct _GdkGCClass
17734 {
17735 GObjectClass parent_class;
17736
17737 void (*get_values) (GdkGC *gc,
17738 GdkGCValues *values);
17739 void (*set_values) (GdkGC *gc,
17740 GdkGCValues *values,
17741 GdkGCValuesMask mask);
17742 void (*set_dashes) (GdkGC *gc,
17743 gint dash_offset,
17744 gint8 dash_list[],
17745 gint n);
17746
17747
17748 void (*_gdk_reserved1) (void);
17749 void (*_gdk_reserved2) (void);
17750 void (*_gdk_reserved3) (void);
17751 void (*_gdk_reserved4) (void);
17752 };
17753
17754
17755 GType gdk_gc_get_type (void) __attribute__((__const__));
17756 GdkGC *gdk_gc_new (GdkDrawable *drawable);
17757 GdkGC *gdk_gc_new_with_values (GdkDrawable *drawable,
17758 GdkGCValues *values,
17759 GdkGCValuesMask values_mask);
17760
17761
17762 GdkGC *gdk_gc_ref (GdkGC *gc);
17763 void gdk_gc_unref (GdkGC *gc);
17764
17765
17766 void gdk_gc_get_values (GdkGC *gc,
17767 GdkGCValues *values);
17768 void gdk_gc_set_values (GdkGC *gc,
17769 GdkGCValues *values,
17770 GdkGCValuesMask values_mask);
17771 void gdk_gc_set_foreground (GdkGC *gc,
17772 const GdkColor *color);
17773 void gdk_gc_set_background (GdkGC *gc,
17774 const GdkColor *color);
17775
17776 void gdk_gc_set_font (GdkGC *gc,
17777 GdkFont *font);
17778
17779 void gdk_gc_set_function (GdkGC *gc,
17780 GdkFunction function);
17781 void gdk_gc_set_fill (GdkGC *gc,
17782 GdkFill fill);
17783 void gdk_gc_set_tile (GdkGC *gc,
17784 GdkPixmap *tile);
17785 void gdk_gc_set_stipple (GdkGC *gc,
17786 GdkPixmap *stipple);
17787 void gdk_gc_set_ts_origin (GdkGC *gc,
17788 gint x,
17789 gint y);
17790 void gdk_gc_set_clip_origin (GdkGC *gc,
17791 gint x,
17792 gint y);
17793 void gdk_gc_set_clip_mask (GdkGC *gc,
17794 GdkBitmap *mask);
17795 void gdk_gc_set_clip_rectangle (GdkGC *gc,
17796 GdkRectangle *rectangle);
17797 void gdk_gc_set_clip_region (GdkGC *gc,
17798 GdkRegion *region);
17799 void gdk_gc_set_subwindow (GdkGC *gc,
17800 GdkSubwindowMode mode);
17801 void gdk_gc_set_exposures (GdkGC *gc,
17802 gboolean exposures);
17803 void gdk_gc_set_line_attributes (GdkGC *gc,
17804 gint line_width,
17805 GdkLineStyle line_style,
17806 GdkCapStyle cap_style,
17807 GdkJoinStyle join_style);
17808 void gdk_gc_set_dashes (GdkGC *gc,
17809 gint dash_offset,
17810 gint8 dash_list[],
17811 gint n);
17812 void gdk_gc_offset (GdkGC *gc,
17813 gint x_offset,
17814 gint y_offset);
17815 void gdk_gc_copy (GdkGC *dst_gc,
17816 GdkGC *src_gc);
17817
17818
17819 void gdk_gc_set_colormap (GdkGC *gc,
17820 GdkColormap *colormap);
17821 GdkColormap *gdk_gc_get_colormap (GdkGC *gc);
17822 void gdk_gc_set_rgb_fg_color (GdkGC *gc,
17823 const GdkColor *color);
17824 void gdk_gc_set_rgb_bg_color (GdkGC *gc,
17825 const GdkColor *color);
17826 GdkScreen * gdk_gc_get_screen (GdkGC *gc);
17827 # 31 "/usr/include/gtk-2.0/gdk/gdkdrawable.h" 2
17828
17829
17830
17831
17832
17833
17834
17835 typedef struct _GdkDrawableClass GdkDrawableClass;
17836 typedef struct _GdkTrapezoid GdkTrapezoid;
17837 # 48 "/usr/include/gtk-2.0/gdk/gdkdrawable.h"
17838 struct _GdkDrawable
17839 {
17840 GObject parent_instance;
17841 };
17842
17843 struct _GdkDrawableClass
17844 {
17845 GObjectClass parent_class;
17846
17847 GdkGC *(*create_gc) (GdkDrawable *drawable,
17848 GdkGCValues *values,
17849 GdkGCValuesMask mask);
17850 void (*draw_rectangle) (GdkDrawable *drawable,
17851 GdkGC *gc,
17852 gboolean filled,
17853 gint x,
17854 gint y,
17855 gint width,
17856 gint height);
17857 void (*draw_arc) (GdkDrawable *drawable,
17858 GdkGC *gc,
17859 gboolean filled,
17860 gint x,
17861 gint y,
17862 gint width,
17863 gint height,
17864 gint angle1,
17865 gint angle2);
17866 void (*draw_polygon) (GdkDrawable *drawable,
17867 GdkGC *gc,
17868 gboolean filled,
17869 GdkPoint *points,
17870 gint npoints);
17871 void (*draw_text) (GdkDrawable *drawable,
17872 GdkFont *font,
17873 GdkGC *gc,
17874 gint x,
17875 gint y,
17876 const gchar *text,
17877 gint text_length);
17878 void (*draw_text_wc) (GdkDrawable *drawable,
17879 GdkFont *font,
17880 GdkGC *gc,
17881 gint x,
17882 gint y,
17883 const GdkWChar *text,
17884 gint text_length);
17885 void (*draw_drawable) (GdkDrawable *drawable,
17886 GdkGC *gc,
17887 GdkDrawable *src,
17888 gint xsrc,
17889 gint ysrc,
17890 gint xdest,
17891 gint ydest,
17892 gint width,
17893 gint height);
17894 void (*draw_points) (GdkDrawable *drawable,
17895 GdkGC *gc,
17896 GdkPoint *points,
17897 gint npoints);
17898 void (*draw_segments) (GdkDrawable *drawable,
17899 GdkGC *gc,
17900 GdkSegment *segs,
17901 gint nsegs);
17902 void (*draw_lines) (GdkDrawable *drawable,
17903 GdkGC *gc,
17904 GdkPoint *points,
17905 gint npoints);
17906
17907 void (*draw_glyphs) (GdkDrawable *drawable,
17908 GdkGC *gc,
17909 PangoFont *font,
17910 gint x,
17911 gint y,
17912 PangoGlyphString *glyphs);
17913
17914 void (*draw_image) (GdkDrawable *drawable,
17915 GdkGC *gc,
17916 GdkImage *image,
17917 gint xsrc,
17918 gint ysrc,
17919 gint xdest,
17920 gint ydest,
17921 gint width,
17922 gint height);
17923
17924 gint (*get_depth) (GdkDrawable *drawable);
17925 void (*get_size) (GdkDrawable *drawable,
17926 gint *width,
17927 gint *height);
17928
17929 void (*set_colormap) (GdkDrawable *drawable,
17930 GdkColormap *cmap);
17931
17932 GdkColormap* (*get_colormap) (GdkDrawable *drawable);
17933 GdkVisual* (*get_visual) (GdkDrawable *drawable);
17934 GdkScreen* (*get_screen) (GdkDrawable *drawable);
17935
17936 GdkImage* (*get_image) (GdkDrawable *drawable,
17937 gint x,
17938 gint y,
17939 gint width,
17940 gint height);
17941
17942 GdkRegion* (*get_clip_region) (GdkDrawable *drawable);
17943 GdkRegion* (*get_visible_region) (GdkDrawable *drawable);
17944
17945 GdkDrawable* (*get_composite_drawable) (GdkDrawable *drawable,
17946 gint x,
17947 gint y,
17948 gint width,
17949 gint height,
17950 gint *composite_x_offset,
17951 gint *composite_y_offset);
17952
17953 void (*draw_pixbuf) (GdkDrawable *drawable,
17954 GdkGC *gc,
17955 GdkPixbuf *pixbuf,
17956 gint src_x,
17957 gint src_y,
17958 gint dest_x,
17959 gint dest_y,
17960 gint width,
17961 gint height,
17962 GdkRgbDither dither,
17963 gint x_dither,
17964 gint y_dither);
17965 GdkImage* (*_copy_to_image) (GdkDrawable *drawable,
17966 GdkImage *image,
17967 gint src_x,
17968 gint src_y,
17969 gint dest_x,
17970 gint dest_y,
17971 gint width,
17972 gint height);
17973
17974 void (*draw_glyphs_transformed) (GdkDrawable *drawable,
17975 GdkGC *gc,
17976 PangoMatrix *matrix,
17977 PangoFont *font,
17978 gint x,
17979 gint y,
17980 PangoGlyphString *glyphs);
17981 void (*draw_trapezoids) (GdkDrawable *drawable,
17982 GdkGC *gc,
17983 GdkTrapezoid *trapezoids,
17984 gint n_trapezoids);
17985
17986 cairo_surface_t *(*ref_cairo_surface) (GdkDrawable *drawable);
17987
17988
17989 void (*_gdk_reserved4) (void);
17990 void (*_gdk_reserved5) (void);
17991 void (*_gdk_reserved6) (void);
17992 void (*_gdk_reserved7) (void);
17993 void (*_gdk_reserved9) (void);
17994 void (*_gdk_reserved10) (void);
17995 void (*_gdk_reserved11) (void);
17996 void (*_gdk_reserved12) (void);
17997 void (*_gdk_reserved13) (void);
17998 void (*_gdk_reserved14) (void);
17999 void (*_gdk_reserved15) (void);
18000 void (*_gdk_reserved16) (void);
18001 };
18002
18003 struct _GdkTrapezoid
18004 {
18005 double y1, x11, x21, y2, x12, x22;
18006 };
18007
18008 GType gdk_drawable_get_type (void) __attribute__((__const__));
18009
18010
18011
18012
18013
18014 void gdk_drawable_set_data (GdkDrawable *drawable,
18015 const gchar *key,
18016 gpointer data,
18017 GDestroyNotify destroy_func);
18018 gpointer gdk_drawable_get_data (GdkDrawable *drawable,
18019 const gchar *key);
18020
18021
18022 void gdk_drawable_get_size (GdkDrawable *drawable,
18023 gint *width,
18024 gint *height);
18025 void gdk_drawable_set_colormap (GdkDrawable *drawable,
18026 GdkColormap *colormap);
18027 GdkColormap* gdk_drawable_get_colormap (GdkDrawable *drawable);
18028 GdkVisual* gdk_drawable_get_visual (GdkDrawable *drawable);
18029 gint gdk_drawable_get_depth (GdkDrawable *drawable);
18030 GdkScreen* gdk_drawable_get_screen (GdkDrawable *drawable);
18031 GdkDisplay* gdk_drawable_get_display (GdkDrawable *drawable);
18032
18033
18034 GdkDrawable* gdk_drawable_ref (GdkDrawable *drawable);
18035 void gdk_drawable_unref (GdkDrawable *drawable);
18036
18037
18038
18039
18040 void gdk_draw_point (GdkDrawable *drawable,
18041 GdkGC *gc,
18042 gint x,
18043 gint y);
18044 void gdk_draw_line (GdkDrawable *drawable,
18045 GdkGC *gc,
18046 gint x1_,
18047 gint y1_,
18048 gint x2_,
18049 gint y2_);
18050 void gdk_draw_rectangle (GdkDrawable *drawable,
18051 GdkGC *gc,
18052 gboolean filled,
18053 gint x,
18054 gint y,
18055 gint width,
18056 gint height);
18057 void gdk_draw_arc (GdkDrawable *drawable,
18058 GdkGC *gc,
18059 gboolean filled,
18060 gint x,
18061 gint y,
18062 gint width,
18063 gint height,
18064 gint angle1,
18065 gint angle2);
18066 void gdk_draw_polygon (GdkDrawable *drawable,
18067 GdkGC *gc,
18068 gboolean filled,
18069 GdkPoint *points,
18070 gint npoints);
18071
18072
18073 void gdk_draw_string (GdkDrawable *drawable,
18074 GdkFont *font,
18075 GdkGC *gc,
18076 gint x,
18077 gint y,
18078 const gchar *string);
18079
18080
18081
18082 void gdk_draw_text (GdkDrawable *drawable,
18083 GdkFont *font,
18084 GdkGC *gc,
18085 gint x,
18086 gint y,
18087 const gchar *text,
18088 gint text_length);
18089
18090 void gdk_draw_text_wc (GdkDrawable *drawable,
18091 GdkFont *font,
18092 GdkGC *gc,
18093 gint x,
18094 gint y,
18095 const GdkWChar *text,
18096 gint text_length);
18097
18098 void gdk_draw_drawable (GdkDrawable *drawable,
18099 GdkGC *gc,
18100 GdkDrawable *src,
18101 gint xsrc,
18102 gint ysrc,
18103 gint xdest,
18104 gint ydest,
18105 gint width,
18106 gint height);
18107 void gdk_draw_image (GdkDrawable *drawable,
18108 GdkGC *gc,
18109 GdkImage *image,
18110 gint xsrc,
18111 gint ysrc,
18112 gint xdest,
18113 gint ydest,
18114 gint width,
18115 gint height);
18116 void gdk_draw_points (GdkDrawable *drawable,
18117 GdkGC *gc,
18118 GdkPoint *points,
18119 gint npoints);
18120 void gdk_draw_segments (GdkDrawable *drawable,
18121 GdkGC *gc,
18122 GdkSegment *segs,
18123 gint nsegs);
18124 void gdk_draw_lines (GdkDrawable *drawable,
18125 GdkGC *gc,
18126 GdkPoint *points,
18127 gint npoints);
18128 void gdk_draw_pixbuf (GdkDrawable *drawable,
18129 GdkGC *gc,
18130 GdkPixbuf *pixbuf,
18131 gint src_x,
18132 gint src_y,
18133 gint dest_x,
18134 gint dest_y,
18135 gint width,
18136 gint height,
18137 GdkRgbDither dither,
18138 gint x_dither,
18139 gint y_dither);
18140
18141 void gdk_draw_glyphs (GdkDrawable *drawable,
18142 GdkGC *gc,
18143 PangoFont *font,
18144 gint x,
18145 gint y,
18146 PangoGlyphString *glyphs);
18147 void gdk_draw_layout_line (GdkDrawable *drawable,
18148 GdkGC *gc,
18149 gint x,
18150 gint y,
18151 PangoLayoutLine *line);
18152 void gdk_draw_layout (GdkDrawable *drawable,
18153 GdkGC *gc,
18154 gint x,
18155 gint y,
18156 PangoLayout *layout);
18157
18158 void gdk_draw_layout_line_with_colors (GdkDrawable *drawable,
18159 GdkGC *gc,
18160 gint x,
18161 gint y,
18162 PangoLayoutLine *line,
18163 const GdkColor *foreground,
18164 const GdkColor *background);
18165 void gdk_draw_layout_with_colors (GdkDrawable *drawable,
18166 GdkGC *gc,
18167 gint x,
18168 gint y,
18169 PangoLayout *layout,
18170 const GdkColor *foreground,
18171 const GdkColor *background);
18172
18173 void gdk_draw_glyphs_transformed (GdkDrawable *drawable,
18174 GdkGC *gc,
18175 PangoMatrix *matrix,
18176 PangoFont *font,
18177 gint x,
18178 gint y,
18179 PangoGlyphString *glyphs);
18180 void gdk_draw_trapezoids (GdkDrawable *drawable,
18181 GdkGC *gc,
18182 GdkTrapezoid *trapezoids,
18183 gint n_trapezoids);
18184
18185
18186
18187
18188
18189
18190 GdkImage* gdk_drawable_get_image (GdkDrawable *drawable,
18191 gint x,
18192 gint y,
18193 gint width,
18194 gint height);
18195 GdkImage *gdk_drawable_copy_to_image (GdkDrawable *drawable,
18196 GdkImage *image,
18197 gint src_x,
18198 gint src_y,
18199 gint dest_x,
18200 gint dest_y,
18201 gint width,
18202 gint height);
18203
18204 GdkRegion *gdk_drawable_get_clip_region (GdkDrawable *drawable);
18205 GdkRegion *gdk_drawable_get_visible_region (GdkDrawable *drawable);
18206 # 36 "/usr/include/gtk-2.0/gdk/gdk.h" 2
18207
18208 # 1 "/usr/include/gtk-2.0/gdk/gdkenumtypes.h" 1
18209 # 9 "/usr/include/gtk-2.0/gdk/gdkenumtypes.h"
18210
18211
18212 GType gdk_cursor_type_get_type (void) __attribute__((__const__));
18213
18214
18215 GType gdk_drag_action_get_type (void) __attribute__((__const__));
18216
18217 GType gdk_drag_protocol_get_type (void) __attribute__((__const__));
18218
18219
18220 GType gdk_filter_return_get_type (void) __attribute__((__const__));
18221
18222 GType gdk_event_type_get_type (void) __attribute__((__const__));
18223
18224 GType gdk_event_mask_get_type (void) __attribute__((__const__));
18225
18226 GType gdk_visibility_state_get_type (void) __attribute__((__const__));
18227
18228 GType gdk_scroll_direction_get_type (void) __attribute__((__const__));
18229
18230 GType gdk_notify_type_get_type (void) __attribute__((__const__));
18231
18232 GType gdk_crossing_mode_get_type (void) __attribute__((__const__));
18233
18234 GType gdk_property_state_get_type (void) __attribute__((__const__));
18235
18236 GType gdk_window_state_get_type (void) __attribute__((__const__));
18237
18238 GType gdk_setting_action_get_type (void) __attribute__((__const__));
18239
18240 GType gdk_owner_change_get_type (void) __attribute__((__const__));
18241
18242
18243 GType gdk_font_type_get_type (void) __attribute__((__const__));
18244
18245
18246 GType gdk_cap_style_get_type (void) __attribute__((__const__));
18247
18248 GType gdk_fill_get_type (void) __attribute__((__const__));
18249
18250 GType gdk_function_get_type (void) __attribute__((__const__));
18251
18252 GType gdk_join_style_get_type (void) __attribute__((__const__));
18253
18254 GType gdk_line_style_get_type (void) __attribute__((__const__));
18255
18256 GType gdk_subwindow_mode_get_type (void) __attribute__((__const__));
18257
18258 GType gdk_gc_values_mask_get_type (void) __attribute__((__const__));
18259
18260
18261 GType gdk_image_type_get_type (void) __attribute__((__const__));
18262
18263
18264 GType gdk_extension_mode_get_type (void) __attribute__((__const__));
18265
18266 GType gdk_input_source_get_type (void) __attribute__((__const__));
18267
18268 GType gdk_input_mode_get_type (void) __attribute__((__const__));
18269
18270 GType gdk_axis_use_get_type (void) __attribute__((__const__));
18271
18272
18273 GType gdk_prop_mode_get_type (void) __attribute__((__const__));
18274
18275
18276 GType gdk_fill_rule_get_type (void) __attribute__((__const__));
18277
18278 GType gdk_overlap_type_get_type (void) __attribute__((__const__));
18279
18280
18281 GType gdk_rgb_dither_get_type (void) __attribute__((__const__));
18282
18283
18284 GType gdk_byte_order_get_type (void) __attribute__((__const__));
18285
18286 GType gdk_modifier_type_get_type (void) __attribute__((__const__));
18287
18288 GType gdk_input_condition_get_type (void) __attribute__((__const__));
18289
18290 GType gdk_status_get_type (void) __attribute__((__const__));
18291
18292 GType gdk_grab_status_get_type (void) __attribute__((__const__));
18293
18294
18295 GType gdk_visual_type_get_type (void) __attribute__((__const__));
18296
18297
18298 GType gdk_window_class_get_type (void) __attribute__((__const__));
18299
18300 GType gdk_window_type_get_type (void) __attribute__((__const__));
18301
18302 GType gdk_window_attributes_type_get_type (void) __attribute__((__const__));
18303
18304 GType gdk_window_hints_get_type (void) __attribute__((__const__));
18305
18306 GType gdk_window_type_hint_get_type (void) __attribute__((__const__));
18307
18308 GType gdk_wm_decoration_get_type (void) __attribute__((__const__));
18309
18310 GType gdk_wm_function_get_type (void) __attribute__((__const__));
18311
18312 GType gdk_gravity_get_type (void) __attribute__((__const__));
18313
18314 GType gdk_window_edge_get_type (void) __attribute__((__const__));
18315 # 37 "/usr/include/gtk-2.0/gdk/gdk.h" 2
18316
18317
18318 # 1 "/usr/include/gtk-2.0/gdk/gdkfont.h" 1
18319 # 35 "/usr/include/gtk-2.0/gdk/gdkfont.h"
18320 # 43 "/usr/include/gtk-2.0/gdk/gdkfont.h"
18321 typedef enum
18322 {
18323 GDK_FONT_FONT,
18324 GDK_FONT_FONTSET
18325 } GdkFontType;
18326
18327 struct _GdkFont
18328 {
18329 GdkFontType type;
18330 gint ascent;
18331 gint descent;
18332 };
18333
18334 GType gdk_font_get_type (void) __attribute__((__const__));
18335
18336 GdkFont* gdk_font_ref (GdkFont *font);
18337 void gdk_font_unref (GdkFont *font);
18338 gint gdk_font_id (const GdkFont *font);
18339 gboolean gdk_font_equal (const GdkFont *fonta,
18340 const GdkFont *fontb);
18341
18342 GdkFont *gdk_font_load_for_display (GdkDisplay *display,
18343 const gchar *font_name);
18344 GdkFont *gdk_fontset_load_for_display (GdkDisplay *display,
18345 const gchar *fontset_name);
18346 GdkFont *gdk_font_from_description_for_display (GdkDisplay *display,
18347 PangoFontDescription *font_desc);
18348 # 79 "/usr/include/gtk-2.0/gdk/gdkfont.h"
18349 gint gdk_string_width (GdkFont *font,
18350 const gchar *string);
18351 gint gdk_text_width (GdkFont *font,
18352 const gchar *text,
18353 gint text_length);
18354 gint gdk_text_width_wc (GdkFont *font,
18355 const GdkWChar *text,
18356 gint text_length);
18357 gint gdk_char_width (GdkFont *font,
18358 gchar character);
18359 gint gdk_char_width_wc (GdkFont *font,
18360 GdkWChar character);
18361 gint gdk_string_measure (GdkFont *font,
18362 const gchar *string);
18363 gint gdk_text_measure (GdkFont *font,
18364 const gchar *text,
18365 gint text_length);
18366 gint gdk_char_measure (GdkFont *font,
18367 gchar character);
18368 gint gdk_string_height (GdkFont *font,
18369 const gchar *string);
18370 gint gdk_text_height (GdkFont *font,
18371 const gchar *text,
18372 gint text_length);
18373 gint gdk_char_height (GdkFont *font,
18374 gchar character);
18375
18376 void gdk_text_extents (GdkFont *font,
18377 const gchar *text,
18378 gint text_length,
18379 gint *lbearing,
18380 gint *rbearing,
18381 gint *width,
18382 gint *ascent,
18383 gint *descent);
18384 void gdk_text_extents_wc (GdkFont *font,
18385 const GdkWChar *text,
18386 gint text_length,
18387 gint *lbearing,
18388 gint *rbearing,
18389 gint *width,
18390 gint *ascent,
18391 gint *descent);
18392 void gdk_string_extents (GdkFont *font,
18393 const gchar *string,
18394 gint *lbearing,
18395 gint *rbearing,
18396 gint *width,
18397 gint *ascent,
18398 gint *descent);
18399
18400 GdkDisplay * gdk_font_get_display (GdkFont *font);
18401 # 39 "/usr/include/gtk-2.0/gdk/gdk.h" 2
18402
18403
18404 # 1 "/usr/include/gtk-2.0/gdk/gdkimage.h" 1
18405 # 32 "/usr/include/gtk-2.0/gdk/gdkimage.h"
18406 # 45 "/usr/include/gtk-2.0/gdk/gdkimage.h"
18407 typedef enum
18408 {
18409 GDK_IMAGE_NORMAL,
18410 GDK_IMAGE_SHARED,
18411 GDK_IMAGE_FASTEST
18412 } GdkImageType;
18413
18414 typedef struct _GdkImageClass GdkImageClass;
18415 # 61 "/usr/include/gtk-2.0/gdk/gdkimage.h"
18416 struct _GdkImage
18417 {
18418 GObject parent_instance;
18419
18420
18421
18422 GdkImageType type;
18423 GdkVisual *visual;
18424 GdkByteOrder byte_order;
18425 gint width;
18426 gint height;
18427 guint16 depth;
18428 guint16 bpp;
18429 guint16 bpl;
18430 guint16 bits_per_pixel;
18431 gpointer mem;
18432
18433 GdkColormap *colormap;
18434
18435
18436 gpointer windowing_data;
18437 };
18438
18439 struct _GdkImageClass
18440 {
18441 GObjectClass parent_class;
18442 };
18443
18444 GType gdk_image_get_type (void) __attribute__((__const__));
18445
18446 GdkImage* gdk_image_new (GdkImageType type,
18447 GdkVisual *visual,
18448 gint width,
18449 gint height);
18450
18451
18452 GdkImage* gdk_image_get (GdkDrawable *drawable,
18453 gint x,
18454 gint y,
18455 gint width,
18456 gint height);
18457
18458 GdkImage * gdk_image_ref (GdkImage *image);
18459 void gdk_image_unref (GdkImage *image);
18460
18461
18462 void gdk_image_put_pixel (GdkImage *image,
18463 gint x,
18464 gint y,
18465 guint32 pixel);
18466 guint32 gdk_image_get_pixel (GdkImage *image,
18467 gint x,
18468 gint y);
18469
18470 void gdk_image_set_colormap (GdkImage *image,
18471 GdkColormap *colormap);
18472 GdkColormap* gdk_image_get_colormap (GdkImage *image);
18473 # 131 "/usr/include/gtk-2.0/gdk/gdkimage.h"
18474 # 41 "/usr/include/gtk-2.0/gdk/gdk.h" 2
18475
18476
18477 # 1 "/usr/include/gtk-2.0/gdk/gdkkeys.h" 1
18478 # 32 "/usr/include/gtk-2.0/gdk/gdkkeys.h"
18479
18480
18481 typedef struct _GdkKeymapKey GdkKeymapKey;
18482
18483
18484 struct _GdkKeymapKey
18485 {
18486 guint keycode;
18487 gint group;
18488 gint level;
18489 };
18490 # 52 "/usr/include/gtk-2.0/gdk/gdkkeys.h"
18491 typedef struct _GdkKeymap GdkKeymap;
18492 typedef struct _GdkKeymapClass GdkKeymapClass;
18493 # 62 "/usr/include/gtk-2.0/gdk/gdkkeys.h"
18494 struct _GdkKeymap
18495 {
18496 GObject parent_instance;
18497 GdkDisplay *display;
18498 };
18499
18500 struct _GdkKeymapClass
18501 {
18502 GObjectClass parent_class;
18503
18504 void (*direction_changed) (GdkKeymap *keymap);
18505 void (*keys_changed) (GdkKeymap *keymap);
18506 };
18507
18508 GType gdk_keymap_get_type (void) __attribute__((__const__));
18509
18510
18511
18512
18513 GdkKeymap* gdk_keymap_get_for_display (GdkDisplay *display);
18514
18515
18516 guint gdk_keymap_lookup_key (GdkKeymap *keymap,
18517 const GdkKeymapKey *key);
18518 gboolean gdk_keymap_translate_keyboard_state (GdkKeymap *keymap,
18519 guint hardware_keycode,
18520 GdkModifierType state,
18521 gint group,
18522 guint *keyval,
18523 gint *effective_group,
18524 gint *level,
18525 GdkModifierType *consumed_modifiers);
18526 gboolean gdk_keymap_get_entries_for_keyval (GdkKeymap *keymap,
18527 guint keyval,
18528 GdkKeymapKey **keys,
18529 gint *n_keys);
18530 gboolean gdk_keymap_get_entries_for_keycode (GdkKeymap *keymap,
18531 guint hardware_keycode,
18532 GdkKeymapKey **keys,
18533 guint **keyvals,
18534 gint *n_entries);
18535 PangoDirection gdk_keymap_get_direction (GdkKeymap *keymap);
18536
18537
18538
18539 gchar* gdk_keyval_name (guint keyval) __attribute__((__const__));
18540 guint gdk_keyval_from_name (const gchar *keyval_name);
18541 void gdk_keyval_convert_case (guint symbol,
18542 guint *lower,
18543 guint *upper);
18544 guint gdk_keyval_to_upper (guint keyval) __attribute__((__const__));
18545 guint gdk_keyval_to_lower (guint keyval) __attribute__((__const__));
18546 gboolean gdk_keyval_is_upper (guint keyval) __attribute__((__const__));
18547 gboolean gdk_keyval_is_lower (guint keyval) __attribute__((__const__));
18548
18549 guint32 gdk_keyval_to_unicode (guint keyval) __attribute__((__const__));
18550 guint gdk_unicode_to_keyval (guint32 wc) __attribute__((__const__));
18551 # 43 "/usr/include/gtk-2.0/gdk/gdk.h" 2
18552
18553 # 1 "/usr/include/gtk-2.0/gdk/gdkdisplaymanager.h" 1
18554 # 33 "/usr/include/gtk-2.0/gdk/gdkdisplaymanager.h"
18555
18556
18557 typedef struct _GdkDisplayManager GdkDisplayManager;
18558 typedef struct _GdkDisplayManagerClass GdkDisplayManagerClass;
18559 # 45 "/usr/include/gtk-2.0/gdk/gdkdisplaymanager.h"
18560 struct _GdkDisplayManagerClass
18561 {
18562 GObjectClass parent_class;
18563
18564 void (*display_opened) (GdkDisplayManager *display_manager,
18565 GdkDisplay *display);
18566 };
18567
18568 GType gdk_display_manager_get_type (void) __attribute__((__const__));
18569
18570 GdkDisplayManager *gdk_display_manager_get (void);
18571 GdkDisplay * gdk_display_manager_get_default_display (GdkDisplayManager *display_manager);
18572 void gdk_display_manager_set_default_display (GdkDisplayManager *display_manager,
18573 GdkDisplay *display);
18574 GSList * gdk_display_manager_list_displays (GdkDisplayManager *display_manager);
18575 # 44 "/usr/include/gtk-2.0/gdk/gdk.h" 2
18576
18577 # 1 "/usr/include/gtk-2.0/gdk/gdkpango.h" 1
18578 # 25 "/usr/include/gtk-2.0/gdk/gdkpango.h"
18579
18580
18581
18582
18583 typedef struct _GdkPangoRenderer GdkPangoRenderer;
18584 typedef struct _GdkPangoRendererClass GdkPangoRendererClass;
18585 typedef struct _GdkPangoRendererPrivate GdkPangoRendererPrivate;
18586 # 64 "/usr/include/gtk-2.0/gdk/gdkpango.h"
18587 struct _GdkPangoRenderer
18588 {
18589
18590 PangoRenderer parent_instance;
18591
18592 GdkPangoRendererPrivate *priv;
18593 };
18594 # 79 "/usr/include/gtk-2.0/gdk/gdkpango.h"
18595 struct _GdkPangoRendererClass
18596 {
18597
18598 PangoRendererClass parent_class;
18599 };
18600
18601 GType gdk_pango_renderer_get_type (void) __attribute__((__const__));
18602
18603 PangoRenderer *gdk_pango_renderer_new (GdkScreen *screen);
18604 PangoRenderer *gdk_pango_renderer_get_default (GdkScreen *screen);
18605
18606 void gdk_pango_renderer_set_drawable (GdkPangoRenderer *gdk_renderer,
18607 GdkDrawable *drawable);
18608 void gdk_pango_renderer_set_gc (GdkPangoRenderer *gdk_renderer,
18609 GdkGC *gc);
18610 void gdk_pango_renderer_set_stipple (GdkPangoRenderer *gdk_renderer,
18611 PangoRenderPart part,
18612 GdkBitmap *stipple);
18613 void gdk_pango_renderer_set_override_color (GdkPangoRenderer *gdk_renderer,
18614 PangoRenderPart part,
18615 const GdkColor *color);
18616
18617
18618
18619 PangoContext *gdk_pango_context_get_for_screen (GdkScreen *screen);
18620
18621
18622
18623
18624 void gdk_pango_context_set_colormap (PangoContext *context,
18625 GdkColormap *colormap);
18626 # 119 "/usr/include/gtk-2.0/gdk/gdkpango.h"
18627 GdkRegion *gdk_pango_layout_line_get_clip_region (PangoLayoutLine *line,
18628 gint x_origin,
18629 gint y_origin,
18630 gint *index_ranges,
18631 gint n_ranges);
18632 GdkRegion *gdk_pango_layout_get_clip_region (PangoLayout *layout,
18633 gint x_origin,
18634 gint y_origin,
18635 gint *index_ranges,
18636 gint n_ranges);
18637
18638
18639
18640
18641
18642 typedef struct _GdkPangoAttrStipple GdkPangoAttrStipple;
18643 typedef struct _GdkPangoAttrEmbossed GdkPangoAttrEmbossed;
18644
18645 struct _GdkPangoAttrStipple
18646 {
18647 PangoAttribute attr;
18648 GdkBitmap *stipple;
18649 };
18650
18651 struct _GdkPangoAttrEmbossed
18652 {
18653 PangoAttribute attr;
18654 gboolean embossed;
18655 };
18656
18657 PangoAttribute *gdk_pango_attr_stipple_new (GdkBitmap *stipple);
18658 PangoAttribute *gdk_pango_attr_embossed_new (gboolean embossed);
18659 # 45 "/usr/include/gtk-2.0/gdk/gdk.h" 2
18660
18661
18662 # 1 "/usr/include/gtk-2.0/gdk/gdkpixmap.h" 1
18663 # 33 "/usr/include/gtk-2.0/gdk/gdkpixmap.h"
18664
18665
18666 typedef struct _GdkPixmapObject GdkPixmapObject;
18667 typedef struct _GdkPixmapObjectClass GdkPixmapObjectClass;
18668 # 46 "/usr/include/gtk-2.0/gdk/gdkpixmap.h"
18669 struct _GdkPixmapObject
18670 {
18671 GdkDrawable parent_instance;
18672
18673 GdkDrawable *impl;
18674
18675 gint depth;
18676 };
18677
18678 struct _GdkPixmapObjectClass
18679 {
18680 GdkDrawableClass parent_class;
18681
18682 };
18683
18684 GType gdk_pixmap_get_type (void) __attribute__((__const__));
18685
18686
18687
18688 GdkPixmap* gdk_pixmap_new (GdkDrawable *drawable,
18689 gint width,
18690 gint height,
18691 gint depth);
18692 GdkBitmap* gdk_bitmap_create_from_data (GdkDrawable *drawable,
18693 const gchar *data,
18694 gint width,
18695 gint height);
18696 GdkPixmap* gdk_pixmap_create_from_data (GdkDrawable *drawable,
18697 const gchar *data,
18698 gint width,
18699 gint height,
18700 gint depth,
18701 const GdkColor *fg,
18702 const GdkColor *bg);
18703
18704 GdkPixmap* gdk_pixmap_create_from_xpm (GdkDrawable *drawable,
18705 GdkBitmap **mask,
18706 const GdkColor *transparent_color,
18707 const gchar *filename);
18708 GdkPixmap* gdk_pixmap_colormap_create_from_xpm (GdkDrawable *drawable,
18709 GdkColormap *colormap,
18710 GdkBitmap **mask,
18711 const GdkColor *transparent_color,
18712 const gchar *filename);
18713 GdkPixmap* gdk_pixmap_create_from_xpm_d (GdkDrawable *drawable,
18714 GdkBitmap **mask,
18715 const GdkColor *transparent_color,
18716 gchar **data);
18717 GdkPixmap* gdk_pixmap_colormap_create_from_xpm_d (GdkDrawable *drawable,
18718 GdkColormap *colormap,
18719 GdkBitmap **mask,
18720 const GdkColor *transparent_color,
18721 gchar **data);
18722 # 107 "/usr/include/gtk-2.0/gdk/gdkpixmap.h"
18723 GdkPixmap* gdk_pixmap_foreign_new_for_display (GdkDisplay *display,
18724 GdkNativeWindow anid);
18725 GdkPixmap* gdk_pixmap_lookup_for_display (GdkDisplay *display,
18726 GdkNativeWindow anid);
18727 # 119 "/usr/include/gtk-2.0/gdk/gdkpixmap.h"
18728 # 47 "/usr/include/gtk-2.0/gdk/gdk.h" 2
18729
18730 # 1 "/usr/include/gtk-2.0/gdk/gdkproperty.h" 1
18731 # 32 "/usr/include/gtk-2.0/gdk/gdkproperty.h"
18732
18733
18734 typedef enum
18735 {
18736 GDK_PROP_MODE_REPLACE,
18737 GDK_PROP_MODE_PREPEND,
18738 GDK_PROP_MODE_APPEND
18739 } GdkPropMode;
18740
18741 GdkAtom gdk_atom_intern (const gchar *atom_name,
18742 gboolean only_if_exists);
18743 gchar* gdk_atom_name (GdkAtom atom);
18744
18745 gboolean gdk_property_get (GdkWindow *window,
18746 GdkAtom property,
18747 GdkAtom type,
18748 gulong offset,
18749 gulong length,
18750 gint pdelete,
18751 GdkAtom *actual_property_type,
18752 gint *actual_format,
18753 gint *actual_length,
18754 guchar **data);
18755 void gdk_property_change (GdkWindow *window,
18756 GdkAtom property,
18757 GdkAtom type,
18758 gint format,
18759 GdkPropMode mode,
18760 const guchar *data,
18761 gint nelements);
18762 void gdk_property_delete (GdkWindow *window,
18763 GdkAtom property);
18764 # 87 "/usr/include/gtk-2.0/gdk/gdkproperty.h"
18765 gint gdk_text_property_to_text_list_for_display (GdkDisplay *display,
18766 GdkAtom encoding,
18767 gint format,
18768 const guchar *text,
18769 gint length,
18770 gchar ***list);
18771 gint gdk_text_property_to_utf8_list_for_display (GdkDisplay *display,
18772 GdkAtom encoding,
18773 gint format,
18774 const guchar *text,
18775 gint length,
18776 gchar ***list);
18777
18778 gchar *gdk_utf8_to_string_target (const gchar *str);
18779 gint gdk_string_to_compound_text_for_display (GdkDisplay *display,
18780 const gchar *str,
18781 GdkAtom *encoding,
18782 gint *format,
18783 guchar **ctext,
18784 gint *length);
18785 gboolean gdk_utf8_to_compound_text_for_display (GdkDisplay *display,
18786 const gchar *str,
18787 GdkAtom *encoding,
18788 gint *format,
18789 guchar **ctext,
18790 gint *length);
18791
18792 void gdk_free_text_list (gchar **list);
18793 void gdk_free_compound_text (guchar *ctext);
18794 # 48 "/usr/include/gtk-2.0/gdk/gdk.h" 2
18795
18796 # 1 "/usr/include/gtk-2.0/gdk/gdkregion.h" 1
18797 # 32 "/usr/include/gtk-2.0/gdk/gdkregion.h"
18798
18799
18800
18801
18802
18803
18804 typedef enum
18805 {
18806 GDK_EVEN_ODD_RULE,
18807 GDK_WINDING_RULE
18808 } GdkFillRule;
18809
18810
18811
18812
18813
18814
18815 typedef enum
18816 {
18817 GDK_OVERLAP_RECTANGLE_IN,
18818 GDK_OVERLAP_RECTANGLE_OUT,
18819 GDK_OVERLAP_RECTANGLE_PART
18820 } GdkOverlapType;
18821
18822 typedef void (*GdkSpanFunc) (GdkSpan *span,
18823 gpointer data);
18824
18825 GdkRegion *gdk_region_new (void);
18826 GdkRegion *gdk_region_polygon (GdkPoint *points,
18827 gint npoints,
18828 GdkFillRule fill_rule);
18829 GdkRegion *gdk_region_copy (GdkRegion *region);
18830 GdkRegion *gdk_region_rectangle (GdkRectangle *rectangle);
18831 void gdk_region_destroy (GdkRegion *region);
18832
18833 void gdk_region_get_clipbox (GdkRegion *region,
18834 GdkRectangle *rectangle);
18835 void gdk_region_get_rectangles (GdkRegion *region,
18836 GdkRectangle **rectangles,
18837 gint *n_rectangles);
18838
18839 gboolean gdk_region_empty (GdkRegion *region);
18840 gboolean gdk_region_equal (GdkRegion *region1,
18841 GdkRegion *region2);
18842 gboolean gdk_region_point_in (GdkRegion *region,
18843 int x,
18844 int y);
18845 GdkOverlapType gdk_region_rect_in (GdkRegion *region,
18846 GdkRectangle *rect);
18847
18848 void gdk_region_offset (GdkRegion *region,
18849 gint dx,
18850 gint dy);
18851 void gdk_region_shrink (GdkRegion *region,
18852 gint dx,
18853 gint dy);
18854 void gdk_region_union_with_rect (GdkRegion *region,
18855 GdkRectangle *rect);
18856 void gdk_region_intersect (GdkRegion *source1,
18857 GdkRegion *source2);
18858 void gdk_region_union (GdkRegion *source1,
18859 GdkRegion *source2);
18860 void gdk_region_subtract (GdkRegion *source1,
18861 GdkRegion *source2);
18862 void gdk_region_xor (GdkRegion *source1,
18863 GdkRegion *source2);
18864
18865 void gdk_region_spans_intersect_foreach (GdkRegion *region,
18866 GdkSpan *spans,
18867 int n_spans,
18868 gboolean sorted,
18869 GdkSpanFunc function,
18870 gpointer data);
18871 # 49 "/usr/include/gtk-2.0/gdk/gdk.h" 2
18872
18873
18874 # 1 "/usr/include/gtk-2.0/gdk/gdkscreen.h" 1
18875 # 31 "/usr/include/gtk-2.0/gdk/gdkscreen.h"
18876
18877
18878 typedef struct _GdkScreenClass GdkScreenClass;
18879 # 42 "/usr/include/gtk-2.0/gdk/gdkscreen.h"
18880 struct _GdkScreen
18881 {
18882 GObject parent_instance;
18883
18884 guint closed : 1;
18885
18886 GdkGC *normal_gcs[32];
18887 GdkGC *exposure_gcs[32];
18888
18889 cairo_font_options_t *font_options;
18890 double resolution;
18891 };
18892
18893 struct _GdkScreenClass
18894 {
18895 GObjectClass parent_class;
18896
18897 void (*size_changed) (GdkScreen *screen);
18898 };
18899
18900 GType gdk_screen_get_type (void) __attribute__((__const__));
18901 GdkColormap *gdk_screen_get_default_colormap (GdkScreen *screen);
18902 void gdk_screen_set_default_colormap (GdkScreen *screen,
18903 GdkColormap *colormap);
18904 GdkColormap* gdk_screen_get_system_colormap (GdkScreen *screen);
18905 GdkVisual* gdk_screen_get_system_visual (GdkScreen *screen);
18906 GdkColormap *gdk_screen_get_rgb_colormap (GdkScreen *screen);
18907 GdkVisual * gdk_screen_get_rgb_visual (GdkScreen *screen);
18908 GdkColormap *gdk_screen_get_rgba_colormap (GdkScreen *screen);
18909 GdkVisual * gdk_screen_get_rgba_visual (GdkScreen *screen);
18910
18911
18912 GdkWindow * gdk_screen_get_root_window (GdkScreen *screen);
18913 GdkDisplay * gdk_screen_get_display (GdkScreen *screen);
18914 gint gdk_screen_get_number (GdkScreen *screen);
18915 gint gdk_screen_get_width (GdkScreen *screen);
18916 gint gdk_screen_get_height (GdkScreen *screen);
18917 gint gdk_screen_get_width_mm (GdkScreen *screen);
18918 gint gdk_screen_get_height_mm (GdkScreen *screen);
18919
18920 GList * gdk_screen_list_visuals (GdkScreen *screen);
18921 GList * gdk_screen_get_toplevel_windows (GdkScreen *screen);
18922 gchar * gdk_screen_make_display_name (GdkScreen *screen);
18923
18924 gint gdk_screen_get_n_monitors (GdkScreen *screen);
18925 void gdk_screen_get_monitor_geometry (GdkScreen *screen,
18926 gint monitor_num,
18927 GdkRectangle *dest);
18928 gint gdk_screen_get_monitor_at_point (GdkScreen *screen,
18929 gint x,
18930 gint y);
18931 gint gdk_screen_get_monitor_at_window (GdkScreen *screen,
18932 GdkWindow *window);
18933
18934 void gdk_screen_broadcast_client_message (GdkScreen *screen,
18935 GdkEvent *event);
18936
18937 GdkScreen *gdk_screen_get_default (void);
18938
18939 gboolean gdk_screen_get_setting (GdkScreen *screen,
18940 const gchar *name,
18941 GValue *value);
18942
18943 void gdk_screen_set_font_options_libgtk_only (GdkScreen *screen,
18944 const cairo_font_options_t *options);
18945 const cairo_font_options_t *gdk_screen_get_font_options_libgtk_only (GdkScreen *screen);
18946
18947 void gdk_screen_set_resolution_libgtk_only (GdkScreen *screen,
18948 gdouble dpi);
18949 gdouble gdk_screen_get_resolution_libgtk_only (GdkScreen *screen);
18950 # 51 "/usr/include/gtk-2.0/gdk/gdk.h" 2
18951
18952 # 1 "/usr/include/gtk-2.0/gdk/gdkselection.h" 1
18953 # 32 "/usr/include/gtk-2.0/gdk/gdkselection.h"
18954 # 56 "/usr/include/gtk-2.0/gdk/gdkselection.h"
18955 typedef GdkAtom GdkSelection;
18956 typedef GdkAtom GdkTarget;
18957 typedef GdkAtom GdkSelectionType;
18958 # 73 "/usr/include/gtk-2.0/gdk/gdkselection.h"
18959 gboolean gdk_selection_owner_set_for_display (GdkDisplay *display,
18960 GdkWindow *owner,
18961 GdkAtom selection,
18962 guint32 time_,
18963 gboolean send_event);
18964 GdkWindow *gdk_selection_owner_get_for_display (GdkDisplay *display,
18965 GdkAtom selection);
18966
18967 void gdk_selection_convert (GdkWindow *requestor,
18968 GdkAtom selection,
18969 GdkAtom target,
18970 guint32 time_);
18971 gboolean gdk_selection_property_get (GdkWindow *requestor,
18972 guchar **data,
18973 GdkAtom *prop_type,
18974 gint *prop_format);
18975 # 98 "/usr/include/gtk-2.0/gdk/gdkselection.h"
18976 void gdk_selection_send_notify_for_display (GdkDisplay *display,
18977 guint32 requestor,
18978 GdkAtom selection,
18979 GdkAtom target,
18980 GdkAtom property,
18981 guint32 time_);
18982 # 52 "/usr/include/gtk-2.0/gdk/gdk.h" 2
18983
18984 # 1 "/usr/include/gtk-2.0/gdk/gdkspawn.h" 1
18985 # 28 "/usr/include/gtk-2.0/gdk/gdkspawn.h"
18986
18987
18988 gboolean gdk_spawn_on_screen (GdkScreen *screen,
18989 const gchar *working_directory,
18990 gchar **argv,
18991 gchar **envp,
18992 GSpawnFlags flags,
18993 GSpawnChildSetupFunc child_setup,
18994 gpointer user_data,
18995 gint *child_pid,
18996 GError **error);
18997
18998 gboolean gdk_spawn_on_screen_with_pipes (GdkScreen *screen,
18999 const gchar *working_directory,
19000 gchar **argv,
19001 gchar **envp,
19002 GSpawnFlags flags,
19003 GSpawnChildSetupFunc child_setup,
19004 gpointer user_data,
19005 gint *child_pid,
19006 gint *standard_input,
19007 gint *standard_output,
19008 gint *standard_error,
19009 GError **error);
19010
19011 gboolean gdk_spawn_command_line_on_screen (GdkScreen *screen,
19012 const gchar *command_line,
19013 GError **error);
19014 # 53 "/usr/include/gtk-2.0/gdk/gdk.h" 2
19015
19016
19017 # 1 "/usr/include/gtk-2.0/gdk/gdkvisual.h" 1
19018 # 32 "/usr/include/gtk-2.0/gdk/gdkvisual.h"
19019 # 41 "/usr/include/gtk-2.0/gdk/gdkvisual.h"
19020 typedef struct _GdkVisualClass GdkVisualClass;
19021 # 51 "/usr/include/gtk-2.0/gdk/gdkvisual.h"
19022 typedef enum
19023 {
19024 GDK_VISUAL_STATIC_GRAY,
19025 GDK_VISUAL_GRAYSCALE,
19026 GDK_VISUAL_STATIC_COLOR,
19027 GDK_VISUAL_PSEUDO_COLOR,
19028 GDK_VISUAL_TRUE_COLOR,
19029 GDK_VISUAL_DIRECT_COLOR
19030 } GdkVisualType;
19031 # 73 "/usr/include/gtk-2.0/gdk/gdkvisual.h"
19032 struct _GdkVisual
19033 {
19034 GObject parent_instance;
19035
19036 GdkVisualType type;
19037 gint depth;
19038 GdkByteOrder byte_order;
19039 gint colormap_size;
19040 gint bits_per_rgb;
19041
19042 guint32 red_mask;
19043 gint red_shift;
19044 gint red_prec;
19045
19046 guint32 green_mask;
19047 gint green_shift;
19048 gint green_prec;
19049
19050 guint32 blue_mask;
19051 gint blue_shift;
19052 gint blue_prec;
19053 };
19054
19055 GType gdk_visual_get_type (void) __attribute__((__const__));
19056 # 116 "/usr/include/gtk-2.0/gdk/gdkvisual.h"
19057 GdkScreen *gdk_visual_get_screen (GdkVisual *visual);
19058 # 55 "/usr/include/gtk-2.0/gdk/gdk.h" 2
19059
19060 # 1 "/usr/include/gtk-2.0/gdk/gdkwindow.h" 1
19061 # 34 "/usr/include/gtk-2.0/gdk/gdkwindow.h"
19062
19063
19064 typedef struct _GdkGeometry GdkGeometry;
19065 typedef struct _GdkWindowAttr GdkWindowAttr;
19066 typedef struct _GdkPointerHooks GdkPointerHooks;
19067 # 49 "/usr/include/gtk-2.0/gdk/gdkwindow.h"
19068 typedef enum
19069 {
19070 GDK_INPUT_OUTPUT,
19071 GDK_INPUT_ONLY
19072 } GdkWindowClass;
19073 # 68 "/usr/include/gtk-2.0/gdk/gdkwindow.h"
19074 typedef enum
19075 {
19076 GDK_WINDOW_ROOT,
19077 GDK_WINDOW_TOPLEVEL,
19078 GDK_WINDOW_CHILD,
19079 GDK_WINDOW_DIALOG,
19080 GDK_WINDOW_TEMP,
19081 GDK_WINDOW_FOREIGN
19082 } GdkWindowType;
19083 # 86 "/usr/include/gtk-2.0/gdk/gdkwindow.h"
19084 typedef enum
19085 {
19086 GDK_WA_TITLE = 1 << 1,
19087 GDK_WA_X = 1 << 2,
19088 GDK_WA_Y = 1 << 3,
19089 GDK_WA_CURSOR = 1 << 4,
19090 GDK_WA_COLORMAP = 1 << 5,
19091 GDK_WA_VISUAL = 1 << 6,
19092 GDK_WA_WMCLASS = 1 << 7,
19093 GDK_WA_NOREDIR = 1 << 8
19094 } GdkWindowAttributesType;
19095
19096
19097
19098 typedef enum
19099 {
19100 GDK_HINT_POS = 1 << 0,
19101 GDK_HINT_MIN_SIZE = 1 << 1,
19102 GDK_HINT_MAX_SIZE = 1 << 2,
19103 GDK_HINT_BASE_SIZE = 1 << 3,
19104 GDK_HINT_ASPECT = 1 << 4,
19105 GDK_HINT_RESIZE_INC = 1 << 5,
19106 GDK_HINT_WIN_GRAVITY = 1 << 6,
19107 GDK_HINT_USER_POS = 1 << 7,
19108 GDK_HINT_USER_SIZE = 1 << 8
19109 } GdkWindowHints;
19110 # 126 "/usr/include/gtk-2.0/gdk/gdkwindow.h"
19111 typedef enum
19112 {
19113 GDK_WINDOW_TYPE_HINT_NORMAL,
19114 GDK_WINDOW_TYPE_HINT_DIALOG,
19115 GDK_WINDOW_TYPE_HINT_MENU,
19116 GDK_WINDOW_TYPE_HINT_TOOLBAR,
19117 GDK_WINDOW_TYPE_HINT_SPLASHSCREEN,
19118 GDK_WINDOW_TYPE_HINT_UTILITY,
19119 GDK_WINDOW_TYPE_HINT_DOCK,
19120 GDK_WINDOW_TYPE_HINT_DESKTOP
19121 } GdkWindowTypeHint;
19122
19123
19124
19125
19126
19127
19128
19129 typedef enum
19130 {
19131 GDK_DECOR_ALL = 1 << 0,
19132 GDK_DECOR_BORDER = 1 << 1,
19133 GDK_DECOR_RESIZEH = 1 << 2,
19134 GDK_DECOR_TITLE = 1 << 3,
19135 GDK_DECOR_MENU = 1 << 4,
19136 GDK_DECOR_MINIMIZE = 1 << 5,
19137 GDK_DECOR_MAXIMIZE = 1 << 6
19138 } GdkWMDecoration;
19139
19140 typedef enum
19141 {
19142 GDK_FUNC_ALL = 1 << 0,
19143 GDK_FUNC_RESIZE = 1 << 1,
19144 GDK_FUNC_MOVE = 1 << 2,
19145 GDK_FUNC_MINIMIZE = 1 << 3,
19146 GDK_FUNC_MAXIMIZE = 1 << 4,
19147 GDK_FUNC_CLOSE = 1 << 5
19148 } GdkWMFunction;
19149
19150
19151
19152
19153
19154 typedef enum
19155 {
19156 GDK_GRAVITY_NORTH_WEST = 1,
19157 GDK_GRAVITY_NORTH,
19158 GDK_GRAVITY_NORTH_EAST,
19159 GDK_GRAVITY_WEST,
19160 GDK_GRAVITY_CENTER,
19161 GDK_GRAVITY_EAST,
19162 GDK_GRAVITY_SOUTH_WEST,
19163 GDK_GRAVITY_SOUTH,
19164 GDK_GRAVITY_SOUTH_EAST,
19165 GDK_GRAVITY_STATIC
19166 } GdkGravity;
19167
19168
19169 typedef enum
19170 {
19171 GDK_WINDOW_EDGE_NORTH_WEST,
19172 GDK_WINDOW_EDGE_NORTH,
19173 GDK_WINDOW_EDGE_NORTH_EAST,
19174 GDK_WINDOW_EDGE_WEST,
19175 GDK_WINDOW_EDGE_EAST,
19176 GDK_WINDOW_EDGE_SOUTH_WEST,
19177 GDK_WINDOW_EDGE_SOUTH,
19178 GDK_WINDOW_EDGE_SOUTH_EAST
19179 } GdkWindowEdge;
19180
19181 struct _GdkWindowAttr
19182 {
19183 gchar *title;
19184 gint event_mask;
19185 gint x, y;
19186 gint width;
19187 gint height;
19188 GdkWindowClass wclass;
19189 GdkVisual *visual;
19190 GdkColormap *colormap;
19191 GdkWindowType window_type;
19192 GdkCursor *cursor;
19193 gchar *wmclass_name;
19194 gchar *wmclass_class;
19195 gboolean override_redirect;
19196 };
19197
19198 struct _GdkGeometry
19199 {
19200 gint min_width;
19201 gint min_height;
19202 gint max_width;
19203 gint max_height;
19204 gint base_width;
19205 gint base_height;
19206 gint width_inc;
19207 gint height_inc;
19208 gdouble min_aspect;
19209 gdouble max_aspect;
19210 GdkGravity win_gravity;
19211 };
19212
19213 struct _GdkPointerHooks
19214 {
19215 GdkWindow* (*get_pointer) (GdkWindow *window,
19216 gint *x,
19217 gint *y,
19218 GdkModifierType *mask);
19219 GdkWindow* (*window_at_pointer) (GdkScreen *screen,
19220 gint *win_x,
19221 gint *win_y);
19222 };
19223
19224 typedef struct _GdkWindowObject GdkWindowObject;
19225 typedef struct _GdkWindowObjectClass GdkWindowObjectClass;
19226 # 250 "/usr/include/gtk-2.0/gdk/gdkwindow.h"
19227 struct _GdkWindowObject
19228 {
19229 GdkDrawable parent_instance;
19230
19231 GdkDrawable *impl;
19232
19233 GdkWindowObject *parent;
19234
19235 gpointer user_data;
19236
19237 gint x;
19238 gint y;
19239
19240 gint extension_events;
19241
19242 GList *filters;
19243 GList *children;
19244
19245 GdkColor bg_color;
19246 GdkPixmap *bg_pixmap;
19247
19248 GSList *paint_stack;
19249
19250 GdkRegion *update_area;
19251 guint update_freeze_count;
19252
19253 guint8 window_type;
19254 guint8 depth;
19255 guint8 resize_count;
19256
19257 GdkWindowState state;
19258
19259 guint guffaw_gravity : 1;
19260 guint input_only : 1;
19261 guint modal_hint : 1;
19262
19263 guint destroyed : 2;
19264
19265 guint accept_focus : 1;
19266 guint focus_on_map : 1;
19267 guint shaped : 1;
19268
19269 GdkEventMask event_mask;
19270 };
19271
19272 struct _GdkWindowObjectClass
19273 {
19274 GdkDrawableClass parent_class;
19275 };
19276
19277
19278
19279 GType gdk_window_object_get_type (void) __attribute__((__const__));
19280 GdkWindow* gdk_window_new (GdkWindow *parent,
19281 GdkWindowAttr *attributes,
19282 gint attributes_mask);
19283 void gdk_window_destroy (GdkWindow *window);
19284 GdkWindowType gdk_window_get_window_type (GdkWindow *window);
19285 GdkWindow* gdk_window_at_pointer (gint *win_x,
19286 gint *win_y);
19287 void gdk_window_show (GdkWindow *window);
19288 void gdk_window_hide (GdkWindow *window);
19289 void gdk_window_withdraw (GdkWindow *window);
19290 void gdk_window_show_unraised (GdkWindow *window);
19291 void gdk_window_move (GdkWindow *window,
19292 gint x,
19293 gint y);
19294 void gdk_window_resize (GdkWindow *window,
19295 gint width,
19296 gint height);
19297 void gdk_window_move_resize (GdkWindow *window,
19298 gint x,
19299 gint y,
19300 gint width,
19301 gint height);
19302 void gdk_window_reparent (GdkWindow *window,
19303 GdkWindow *new_parent,
19304 gint x,
19305 gint y);
19306 void gdk_window_clear (GdkWindow *window);
19307 void gdk_window_clear_area (GdkWindow *window,
19308 gint x,
19309 gint y,
19310 gint width,
19311 gint height);
19312 void gdk_window_clear_area_e (GdkWindow *window,
19313 gint x,
19314 gint y,
19315 gint width,
19316 gint height);
19317 void gdk_window_raise (GdkWindow *window);
19318 void gdk_window_lower (GdkWindow *window);
19319 void gdk_window_focus (GdkWindow *window,
19320 guint32 timestamp);
19321 void gdk_window_set_user_data (GdkWindow *window,
19322 gpointer user_data);
19323 void gdk_window_set_override_redirect (GdkWindow *window,
19324 gboolean override_redirect);
19325 void gdk_window_set_accept_focus (GdkWindow *window,
19326 gboolean accept_focus);
19327 void gdk_window_set_focus_on_map (GdkWindow *window,
19328 gboolean focus_on_map);
19329 void gdk_window_add_filter (GdkWindow *window,
19330 GdkFilterFunc function,
19331 gpointer data);
19332 void gdk_window_remove_filter (GdkWindow *window,
19333 GdkFilterFunc function,
19334 gpointer data);
19335 void gdk_window_scroll (GdkWindow *window,
19336 gint dx,
19337 gint dy);
19338 void gdk_window_move_region (GdkWindow *window,
19339 GdkRegion *region,
19340 gint dx,
19341 gint dy);
19342
19343
19344
19345
19346
19347
19348
19349 void gdk_window_shape_combine_mask (GdkWindow *window,
19350 GdkBitmap *mask,
19351 gint x,
19352 gint y);
19353 void gdk_window_shape_combine_region (GdkWindow *window,
19354 GdkRegion *shape_region,
19355 gint offset_x,
19356 gint offset_y);
19357 # 388 "/usr/include/gtk-2.0/gdk/gdkwindow.h"
19358 void gdk_window_set_child_shapes (GdkWindow *window);
19359 # 397 "/usr/include/gtk-2.0/gdk/gdkwindow.h"
19360 void gdk_window_merge_child_shapes (GdkWindow *window);
19361
19362
19363
19364
19365
19366
19367
19368 gboolean gdk_window_is_visible (GdkWindow *window);
19369 gboolean gdk_window_is_viewable (GdkWindow *window);
19370
19371 GdkWindowState gdk_window_get_state (GdkWindow *window);
19372
19373
19374
19375
19376 gboolean gdk_window_set_static_gravities (GdkWindow *window,
19377 gboolean use_static);
19378
19379
19380
19381
19382
19383
19384 GdkWindow *gdk_window_foreign_new_for_display (GdkDisplay *display,
19385 GdkNativeWindow anid);
19386 GdkWindow* gdk_window_lookup_for_display (GdkDisplay *display,
19387 GdkNativeWindow anid);
19388
19389
19390
19391
19392
19393 void gdk_window_set_hints (GdkWindow *window,
19394 gint x,
19395 gint y,
19396 gint min_width,
19397 gint min_height,
19398 gint max_width,
19399 gint max_height,
19400 gint flags);
19401
19402 void gdk_window_set_type_hint (GdkWindow *window,
19403 GdkWindowTypeHint hint);
19404 void gdk_window_set_modal_hint (GdkWindow *window,
19405 gboolean modal);
19406
19407 void gdk_window_set_skip_taskbar_hint (GdkWindow *window,
19408 gboolean skips_taskbar);
19409 void gdk_window_set_skip_pager_hint (GdkWindow *window,
19410 gboolean skips_pager);
19411 void gdk_window_set_urgency_hint (GdkWindow *window,
19412 gboolean urgent);
19413
19414 void gdk_window_set_geometry_hints (GdkWindow *window,
19415 GdkGeometry *geometry,
19416 GdkWindowHints geom_mask);
19417 void gdk_set_sm_client_id (const gchar *sm_client_id);
19418
19419 void gdk_window_begin_paint_rect (GdkWindow *window,
19420 GdkRectangle *rectangle);
19421 void gdk_window_begin_paint_region (GdkWindow *window,
19422 GdkRegion *region);
19423 void gdk_window_end_paint (GdkWindow *window);
19424
19425 void gdk_window_set_title (GdkWindow *window,
19426 const gchar *title);
19427 void gdk_window_set_role (GdkWindow *window,
19428 const gchar *role);
19429 void gdk_window_set_transient_for (GdkWindow *window,
19430 GdkWindow *parent);
19431 void gdk_window_set_background (GdkWindow *window,
19432 const GdkColor *color);
19433 void gdk_window_set_back_pixmap (GdkWindow *window,
19434 GdkPixmap *pixmap,
19435 gboolean parent_relative);
19436 void gdk_window_set_cursor (GdkWindow *window,
19437 GdkCursor *cursor);
19438 void gdk_window_get_user_data (GdkWindow *window,
19439 gpointer *data);
19440 void gdk_window_get_geometry (GdkWindow *window,
19441 gint *x,
19442 gint *y,
19443 gint *width,
19444 gint *height,
19445 gint *depth);
19446 void gdk_window_get_position (GdkWindow *window,
19447 gint *x,
19448 gint *y);
19449 gint gdk_window_get_origin (GdkWindow *window,
19450 gint *x,
19451 gint *y);
19452
19453
19454
19455 gboolean gdk_window_get_deskrelative_origin (GdkWindow *window,
19456 gint *x,
19457 gint *y);
19458
19459
19460 void gdk_window_get_root_origin (GdkWindow *window,
19461 gint *x,
19462 gint *y);
19463 void gdk_window_get_frame_extents (GdkWindow *window,
19464 GdkRectangle *rect);
19465 GdkWindow* gdk_window_get_pointer (GdkWindow *window,
19466 gint *x,
19467 gint *y,
19468 GdkModifierType *mask);
19469 GdkWindow * gdk_window_get_parent (GdkWindow *window);
19470 GdkWindow * gdk_window_get_toplevel (GdkWindow *window);
19471
19472 GList * gdk_window_get_children (GdkWindow *window);
19473 GList * gdk_window_peek_children (GdkWindow *window);
19474 GdkEventMask gdk_window_get_events (GdkWindow *window);
19475 void gdk_window_set_events (GdkWindow *window,
19476 GdkEventMask event_mask);
19477
19478 void gdk_window_set_icon_list (GdkWindow *window,
19479 GList *pixbufs);
19480 void gdk_window_set_icon (GdkWindow *window,
19481 GdkWindow *icon_window,
19482 GdkPixmap *pixmap,
19483 GdkBitmap *mask);
19484 void gdk_window_set_icon_name (GdkWindow *window,
19485 const gchar *name);
19486 void gdk_window_set_group (GdkWindow *window,
19487 GdkWindow *leader);
19488 GdkWindow* gdk_window_get_group (GdkWindow *window);
19489 void gdk_window_set_decorations (GdkWindow *window,
19490 GdkWMDecoration decorations);
19491 gboolean gdk_window_get_decorations (GdkWindow *window,
19492 GdkWMDecoration *decorations);
19493 void gdk_window_set_functions (GdkWindow *window,
19494 GdkWMFunction functions);
19495
19496
19497
19498
19499 void gdk_window_iconify (GdkWindow *window);
19500 void gdk_window_deiconify (GdkWindow *window);
19501 void gdk_window_stick (GdkWindow *window);
19502 void gdk_window_unstick (GdkWindow *window);
19503 void gdk_window_maximize (GdkWindow *window);
19504 void gdk_window_unmaximize (GdkWindow *window);
19505 void gdk_window_fullscreen (GdkWindow *window);
19506 void gdk_window_unfullscreen (GdkWindow *window);
19507 void gdk_window_set_keep_above (GdkWindow *window,
19508 gboolean setting);
19509 void gdk_window_set_keep_below (GdkWindow *window,
19510 gboolean setting);
19511
19512 void gdk_window_register_dnd (GdkWindow *window);
19513
19514 void gdk_window_begin_resize_drag (GdkWindow *window,
19515 GdkWindowEdge edge,
19516 gint button,
19517 gint root_x,
19518 gint root_y,
19519 guint32 timestamp);
19520 void gdk_window_begin_move_drag (GdkWindow *window,
19521 gint button,
19522 gint root_x,
19523 gint root_y,
19524 guint32 timestamp);
19525
19526
19527 void gdk_window_invalidate_rect (GdkWindow *window,
19528 GdkRectangle *rect,
19529 gboolean invalidate_children);
19530 void gdk_window_invalidate_region (GdkWindow *window,
19531 GdkRegion *region,
19532 gboolean invalidate_children);
19533 void gdk_window_invalidate_maybe_recurse (GdkWindow *window,
19534 GdkRegion *region,
19535 gboolean (*child_func) (GdkWindow *, gpointer),
19536 gpointer user_data);
19537 GdkRegion *gdk_window_get_update_area (GdkWindow *window);
19538
19539 void gdk_window_freeze_updates (GdkWindow *window);
19540 void gdk_window_thaw_updates (GdkWindow *window);
19541
19542 void gdk_window_process_all_updates (void);
19543 void gdk_window_process_updates (GdkWindow *window,
19544 gboolean update_children);
19545
19546
19547 void gdk_window_set_debug_updates (gboolean setting);
19548
19549 void gdk_window_constrain_size (GdkGeometry *geometry,
19550 guint flags,
19551 gint width,
19552 gint height,
19553 gint *new_width,
19554 gint *new_height);
19555
19556 void gdk_window_get_internal_paint_info (GdkWindow *window,
19557 GdkDrawable **real_drawable,
19558 gint *x_offset,
19559 gint *y_offset);
19560
19561 void gdk_window_enable_synchronized_configure (GdkWindow *window);
19562 void gdk_window_configure_finished (GdkWindow *window);
19563
19564
19565
19566
19567
19568 GdkWindow *gdk_get_default_root_window (void);
19569 # 621 "/usr/include/gtk-2.0/gdk/gdkwindow.h"
19570 # 56 "/usr/include/gtk-2.0/gdk/gdk.h" 2
19571
19572
19573
19574
19575
19576
19577
19578 void gdk_parse_args (gint *argc,
19579 gchar ***argv);
19580 void gdk_init (gint *argc,
19581 gchar ***argv);
19582 gboolean gdk_init_check (gint *argc,
19583 gchar ***argv);
19584 void gdk_add_option_entries_libgtk_only (GOptionGroup *group);
19585 void gdk_pre_parse_libgtk_only (void);
19586
19587
19588 void gdk_exit (gint error_code);
19589
19590 gchar* gdk_set_locale (void);
19591
19592 const char *gdk_get_program_class (void);
19593 void gdk_set_program_class (const char *program_class);
19594
19595
19596
19597 void gdk_error_trap_push (void);
19598 gint gdk_error_trap_pop (void);
19599
19600
19601 void gdk_set_use_xshm (gboolean use_xshm);
19602 gboolean gdk_get_use_xshm (void);
19603
19604
19605 gchar* gdk_get_display (void);
19606 const gchar* gdk_get_display_arg_name (void);
19607
19608
19609
19610 gint gdk_input_add_full (gint source,
19611 GdkInputCondition condition,
19612 GdkInputFunction function,
19613 gpointer data,
19614 GdkDestroyNotify destroy);
19615
19616
19617 gint gdk_input_add (gint source,
19618 GdkInputCondition condition,
19619 GdkInputFunction function,
19620 gpointer data);
19621 void gdk_input_remove (gint tag);
19622
19623
19624 GdkGrabStatus gdk_pointer_grab (GdkWindow *window,
19625 gboolean owner_events,
19626 GdkEventMask event_mask,
19627 GdkWindow *confine_to,
19628 GdkCursor *cursor,
19629 guint32 time_);
19630 GdkGrabStatus gdk_keyboard_grab (GdkWindow *window,
19631 gboolean owner_events,
19632 guint32 time_);
19633
19634 gboolean gdk_pointer_grab_info_libgtk_only (GdkDisplay *display,
19635 GdkWindow **grab_window,
19636 gboolean *owner_events);
19637 gboolean gdk_keyboard_grab_info_libgtk_only (GdkDisplay *display,
19638 GdkWindow **grab_window,
19639 gboolean *owner_events);
19640 # 140 "/usr/include/gtk-2.0/gdk/gdk.h"
19641 void gdk_flush (void);
19642
19643
19644
19645
19646
19647
19648
19649 gboolean gdk_rectangle_intersect (GdkRectangle *src1,
19650 GdkRectangle *src2,
19651 GdkRectangle *dest);
19652 void gdk_rectangle_union (GdkRectangle *src1,
19653 GdkRectangle *src2,
19654 GdkRectangle *dest);
19655
19656 GType gdk_rectangle_get_type (void) __attribute__((__const__));
19657
19658
19659
19660
19661
19662
19663 gchar *gdk_wcstombs (const GdkWChar *src);
19664 gint gdk_mbstowcs (GdkWChar *dest,
19665 const gchar *src,
19666 gint dest_max);
19667 # 174 "/usr/include/gtk-2.0/gdk/gdk.h"
19668 gboolean gdk_event_send_client_message_for_display (GdkDisplay *display,
19669 GdkEvent *event,
19670 GdkNativeWindow winid);
19671
19672 void gdk_notify_startup_complete (void);
19673
19674
19675
19676
19677
19678 extern GMutex *gdk_threads_mutex;
19679
19680
19681 extern GCallback gdk_threads_lock;
19682 extern GCallback gdk_threads_unlock;
19683
19684 void gdk_threads_enter (void);
19685 void gdk_threads_leave (void);
19686 void gdk_threads_init (void);
19687 void gdk_threads_set_lock_functions (GCallback enter_fn,
19688 GCallback leave_fn);
19689 # 210 "/usr/include/gtk-2.0/gdk/gdk.h"
19690 # 32 "/usr/include/gtk-2.0/gtk/gtk.h" 2
19691
19692 # 1 "/usr/include/gtk-2.0/gtk/gtkaboutdialog.h" 1
19693 # 28 "/usr/include/gtk-2.0/gtk/gtkaboutdialog.h"
19694
19695 # 1 "/usr/include/gtk-2.0/gtk/gtkdialog.h" 1
19696 # 32 "/usr/include/gtk-2.0/gtk/gtkdialog.h"
19697
19698 # 1 "/usr/include/gtk-2.0/gtk/gtkwindow.h" 1
19699 # 32 "/usr/include/gtk-2.0/gtk/gtkwindow.h"
19700
19701 # 1 "/usr/include/gtk-2.0/gtk/gtkaccelgroup.h" 1
19702 # 32 "/usr/include/gtk-2.0/gtk/gtkaccelgroup.h"
19703
19704 # 1 "/usr/include/gtk-2.0/gtk/gtkenums.h" 1
19705 # 32 "/usr/include/gtk-2.0/gtk/gtkenums.h"
19706
19707
19708
19709 typedef enum
19710 {
19711 GTK_ANCHOR_CENTER,
19712 GTK_ANCHOR_NORTH,
19713 GTK_ANCHOR_NORTH_WEST,
19714 GTK_ANCHOR_NORTH_EAST,
19715 GTK_ANCHOR_SOUTH,
19716 GTK_ANCHOR_SOUTH_WEST,
19717 GTK_ANCHOR_SOUTH_EAST,
19718 GTK_ANCHOR_WEST,
19719 GTK_ANCHOR_EAST,
19720 GTK_ANCHOR_N = GTK_ANCHOR_NORTH,
19721 GTK_ANCHOR_NW = GTK_ANCHOR_NORTH_WEST,
19722 GTK_ANCHOR_NE = GTK_ANCHOR_NORTH_EAST,
19723 GTK_ANCHOR_S = GTK_ANCHOR_SOUTH,
19724 GTK_ANCHOR_SW = GTK_ANCHOR_SOUTH_WEST,
19725 GTK_ANCHOR_SE = GTK_ANCHOR_SOUTH_EAST,
19726 GTK_ANCHOR_W = GTK_ANCHOR_WEST,
19727 GTK_ANCHOR_E = GTK_ANCHOR_EAST
19728 } GtkAnchorType;
19729
19730
19731 typedef enum
19732 {
19733 GTK_ARROW_UP,
19734 GTK_ARROW_DOWN,
19735 GTK_ARROW_LEFT,
19736 GTK_ARROW_RIGHT
19737 } GtkArrowType;
19738
19739
19740 typedef enum
19741 {
19742 GTK_EXPAND = 1 << 0,
19743 GTK_SHRINK = 1 << 1,
19744 GTK_FILL = 1 << 2
19745 } GtkAttachOptions;
19746
19747
19748 typedef enum
19749 {
19750 GTK_BUTTONBOX_DEFAULT_STYLE,
19751 GTK_BUTTONBOX_SPREAD,
19752 GTK_BUTTONBOX_EDGE,
19753 GTK_BUTTONBOX_START,
19754 GTK_BUTTONBOX_END
19755 } GtkButtonBoxStyle;
19756
19757
19758 typedef enum
19759 {
19760 GTK_CURVE_TYPE_LINEAR,
19761 GTK_CURVE_TYPE_SPLINE,
19762 GTK_CURVE_TYPE_FREE
19763 } GtkCurveType;
19764
19765 typedef enum {
19766 GTK_DELETE_CHARS,
19767 GTK_DELETE_WORD_ENDS,
19768
19769
19770 GTK_DELETE_WORDS,
19771 GTK_DELETE_DISPLAY_LINES,
19772 GTK_DELETE_DISPLAY_LINE_ENDS,
19773 GTK_DELETE_PARAGRAPH_ENDS,
19774 GTK_DELETE_PARAGRAPHS,
19775 GTK_DELETE_WHITESPACE
19776 } GtkDeleteType;
19777
19778
19779 typedef enum
19780 {
19781 GTK_DIR_TAB_FORWARD,
19782 GTK_DIR_TAB_BACKWARD,
19783 GTK_DIR_UP,
19784 GTK_DIR_DOWN,
19785 GTK_DIR_LEFT,
19786 GTK_DIR_RIGHT
19787 } GtkDirectionType;
19788
19789
19790 typedef enum
19791 {
19792 GTK_EXPANDER_COLLAPSED,
19793 GTK_EXPANDER_SEMI_COLLAPSED,
19794 GTK_EXPANDER_SEMI_EXPANDED,
19795 GTK_EXPANDER_EXPANDED
19796 } GtkExpanderStyle;
19797
19798
19799 typedef enum
19800 {
19801 GTK_ICON_SIZE_INVALID,
19802 GTK_ICON_SIZE_MENU,
19803 GTK_ICON_SIZE_SMALL_TOOLBAR,
19804 GTK_ICON_SIZE_LARGE_TOOLBAR,
19805 GTK_ICON_SIZE_BUTTON,
19806 GTK_ICON_SIZE_DND,
19807 GTK_ICON_SIZE_DIALOG
19808 } GtkIconSize;
19809
19810
19811
19812 typedef enum
19813 {
19814 GTK_SIDE_TOP,
19815 GTK_SIDE_BOTTOM,
19816 GTK_SIDE_LEFT,
19817 GTK_SIDE_RIGHT
19818 } GtkSideType;
19819
19820
19821
19822 typedef enum
19823 {
19824 GTK_TEXT_DIR_NONE,
19825 GTK_TEXT_DIR_LTR,
19826 GTK_TEXT_DIR_RTL
19827 } GtkTextDirection;
19828
19829
19830 typedef enum
19831 {
19832 GTK_JUSTIFY_LEFT,
19833 GTK_JUSTIFY_RIGHT,
19834 GTK_JUSTIFY_CENTER,
19835 GTK_JUSTIFY_FILL
19836 } GtkJustification;
19837
19838
19839
19840 typedef enum
19841 {
19842 GTK_MATCH_ALL,
19843 GTK_MATCH_ALL_TAIL,
19844 GTK_MATCH_HEAD,
19845 GTK_MATCH_TAIL,
19846 GTK_MATCH_EXACT,
19847 GTK_MATCH_LAST
19848 } GtkMatchType;
19849
19850
19851
19852 typedef enum
19853 {
19854 GTK_MENU_DIR_PARENT,
19855 GTK_MENU_DIR_CHILD,
19856 GTK_MENU_DIR_NEXT,
19857 GTK_MENU_DIR_PREV
19858 } GtkMenuDirectionType;
19859
19860 typedef enum
19861 {
19862 GTK_PIXELS,
19863 GTK_INCHES,
19864 GTK_CENTIMETERS
19865 } GtkMetricType;
19866
19867 typedef enum
19868 {
19869 GTK_MOVEMENT_LOGICAL_POSITIONS,
19870 GTK_MOVEMENT_VISUAL_POSITIONS,
19871 GTK_MOVEMENT_WORDS,
19872 GTK_MOVEMENT_DISPLAY_LINES,
19873 GTK_MOVEMENT_DISPLAY_LINE_ENDS,
19874 GTK_MOVEMENT_PARAGRAPHS,
19875 GTK_MOVEMENT_PARAGRAPH_ENDS,
19876 GTK_MOVEMENT_PAGES,
19877 GTK_MOVEMENT_BUFFER_ENDS,
19878 GTK_MOVEMENT_HORIZONTAL_PAGES
19879 } GtkMovementStep;
19880
19881 typedef enum
19882 {
19883 GTK_SCROLL_STEPS,
19884 GTK_SCROLL_PAGES,
19885 GTK_SCROLL_ENDS,
19886 GTK_SCROLL_HORIZONTAL_STEPS,
19887 GTK_SCROLL_HORIZONTAL_PAGES,
19888 GTK_SCROLL_HORIZONTAL_ENDS
19889 } GtkScrollStep;
19890
19891
19892 typedef enum
19893 {
19894 GTK_ORIENTATION_HORIZONTAL,
19895 GTK_ORIENTATION_VERTICAL
19896 } GtkOrientation;
19897
19898
19899 typedef enum
19900 {
19901 GTK_CORNER_TOP_LEFT,
19902 GTK_CORNER_BOTTOM_LEFT,
19903 GTK_CORNER_TOP_RIGHT,
19904 GTK_CORNER_BOTTOM_RIGHT
19905 } GtkCornerType;
19906
19907
19908 typedef enum
19909 {
19910 GTK_PACK_START,
19911 GTK_PACK_END
19912 } GtkPackType;
19913
19914
19915 typedef enum
19916 {
19917 GTK_PATH_PRIO_LOWEST = 0,
19918 GTK_PATH_PRIO_GTK = 4,
19919 GTK_PATH_PRIO_APPLICATION = 8,
19920 GTK_PATH_PRIO_THEME = 10,
19921 GTK_PATH_PRIO_RC = 12,
19922 GTK_PATH_PRIO_HIGHEST = 15
19923 } GtkPathPriorityType;
19924
19925
19926
19927 typedef enum
19928 {
19929 GTK_PATH_WIDGET,
19930 GTK_PATH_WIDGET_CLASS,
19931 GTK_PATH_CLASS
19932 } GtkPathType;
19933
19934
19935 typedef enum
19936 {
19937 GTK_POLICY_ALWAYS,
19938 GTK_POLICY_AUTOMATIC,
19939 GTK_POLICY_NEVER
19940 } GtkPolicyType;
19941
19942 typedef enum
19943 {
19944 GTK_POS_LEFT,
19945 GTK_POS_RIGHT,
19946 GTK_POS_TOP,
19947 GTK_POS_BOTTOM
19948 } GtkPositionType;
19949
19950
19951 typedef enum
19952 {
19953 GTK_PREVIEW_COLOR,
19954 GTK_PREVIEW_GRAYSCALE
19955 } GtkPreviewType;
19956
19957
19958
19959 typedef enum
19960 {
19961 GTK_RELIEF_NORMAL,
19962 GTK_RELIEF_HALF,
19963 GTK_RELIEF_NONE
19964 } GtkReliefStyle;
19965
19966
19967 typedef enum
19968 {
19969 GTK_RESIZE_PARENT,
19970 GTK_RESIZE_QUEUE,
19971 GTK_RESIZE_IMMEDIATE
19972 } GtkResizeMode;
19973
19974
19975
19976 typedef enum
19977 {
19978 GTK_RUN_FIRST = G_SIGNAL_RUN_FIRST,
19979 GTK_RUN_LAST = G_SIGNAL_RUN_LAST,
19980 GTK_RUN_BOTH = (GTK_RUN_FIRST | GTK_RUN_LAST),
19981 GTK_RUN_NO_RECURSE = G_SIGNAL_NO_RECURSE,
19982 GTK_RUN_ACTION = G_SIGNAL_ACTION,
19983 GTK_RUN_NO_HOOKS = G_SIGNAL_NO_HOOKS
19984 } GtkSignalRunType;
19985
19986
19987
19988 typedef enum
19989 {
19990 GTK_SCROLL_NONE,
19991 GTK_SCROLL_JUMP,
19992 GTK_SCROLL_STEP_BACKWARD,
19993 GTK_SCROLL_STEP_FORWARD,
19994 GTK_SCROLL_PAGE_BACKWARD,
19995 GTK_SCROLL_PAGE_FORWARD,
19996 GTK_SCROLL_STEP_UP,
19997 GTK_SCROLL_STEP_DOWN,
19998 GTK_SCROLL_PAGE_UP,
19999 GTK_SCROLL_PAGE_DOWN,
20000 GTK_SCROLL_STEP_LEFT,
20001 GTK_SCROLL_STEP_RIGHT,
20002 GTK_SCROLL_PAGE_LEFT,
20003 GTK_SCROLL_PAGE_RIGHT,
20004 GTK_SCROLL_START,
20005 GTK_SCROLL_END
20006 } GtkScrollType;
20007
20008
20009 typedef enum
20010 {
20011 GTK_SELECTION_NONE,
20012 GTK_SELECTION_SINGLE,
20013 GTK_SELECTION_BROWSE,
20014 GTK_SELECTION_MULTIPLE,
20015 GTK_SELECTION_EXTENDED = GTK_SELECTION_MULTIPLE
20016 } GtkSelectionMode;
20017
20018
20019 typedef enum
20020 {
20021 GTK_SHADOW_NONE,
20022 GTK_SHADOW_IN,
20023 GTK_SHADOW_OUT,
20024 GTK_SHADOW_ETCHED_IN,
20025 GTK_SHADOW_ETCHED_OUT
20026 } GtkShadowType;
20027
20028
20029 typedef enum
20030 {
20031 GTK_STATE_NORMAL,
20032 GTK_STATE_ACTIVE,
20033 GTK_STATE_PRELIGHT,
20034 GTK_STATE_SELECTED,
20035 GTK_STATE_INSENSITIVE
20036 } GtkStateType;
20037
20038
20039
20040 typedef enum
20041 {
20042 GTK_DIRECTION_LEFT,
20043 GTK_DIRECTION_RIGHT
20044 } GtkSubmenuDirection;
20045
20046
20047 typedef enum
20048 {
20049 GTK_TOP_BOTTOM,
20050 GTK_LEFT_RIGHT
20051 } GtkSubmenuPlacement;
20052
20053
20054
20055 typedef enum
20056 {
20057 GTK_TOOLBAR_ICONS,
20058 GTK_TOOLBAR_TEXT,
20059 GTK_TOOLBAR_BOTH,
20060 GTK_TOOLBAR_BOTH_HORIZ
20061 } GtkToolbarStyle;
20062
20063
20064 typedef enum
20065 {
20066 GTK_UPDATE_CONTINUOUS,
20067 GTK_UPDATE_DISCONTINUOUS,
20068 GTK_UPDATE_DELAYED
20069 } GtkUpdateType;
20070
20071
20072 typedef enum
20073 {
20074 GTK_VISIBILITY_NONE,
20075 GTK_VISIBILITY_PARTIAL,
20076 GTK_VISIBILITY_FULL
20077 } GtkVisibility;
20078
20079
20080 typedef enum
20081 {
20082 GTK_WIN_POS_NONE,
20083 GTK_WIN_POS_CENTER,
20084 GTK_WIN_POS_MOUSE,
20085 GTK_WIN_POS_CENTER_ALWAYS,
20086 GTK_WIN_POS_CENTER_ON_PARENT
20087 } GtkWindowPosition;
20088
20089
20090 typedef enum
20091 {
20092 GTK_WINDOW_TOPLEVEL,
20093 GTK_WINDOW_POPUP
20094 } GtkWindowType;
20095
20096
20097 typedef enum
20098 {
20099 GTK_WRAP_NONE,
20100 GTK_WRAP_CHAR,
20101 GTK_WRAP_WORD,
20102 GTK_WRAP_WORD_CHAR
20103 } GtkWrapMode;
20104
20105
20106 typedef enum
20107 {
20108 GTK_SORT_ASCENDING,
20109 GTK_SORT_DESCENDING
20110 } GtkSortType;
20111
20112
20113 typedef enum
20114 {
20115 GTK_IM_PREEDIT_NOTHING,
20116 GTK_IM_PREEDIT_CALLBACK,
20117 GTK_IM_PREEDIT_NONE
20118 } GtkIMPreeditStyle;
20119
20120 typedef enum
20121 {
20122 GTK_IM_STATUS_NOTHING,
20123 GTK_IM_STATUS_CALLBACK,
20124 GTK_IM_STATUS_NONE
20125 } GtkIMStatusStyle;
20126
20127 typedef enum
20128 {
20129 GTK_PACK_DIRECTION_LTR,
20130 GTK_PACK_DIRECTION_RTL,
20131 GTK_PACK_DIRECTION_TTB,
20132 GTK_PACK_DIRECTION_BTT
20133 } GtkPackDirection;
20134 # 33 "/usr/include/gtk-2.0/gtk/gtkaccelgroup.h" 2
20135 # 47 "/usr/include/gtk-2.0/gtk/gtkaccelgroup.h"
20136 typedef enum
20137 {
20138 GTK_ACCEL_VISIBLE = 1 << 0,
20139 GTK_ACCEL_LOCKED = 1 << 1,
20140 GTK_ACCEL_MASK = 0x07
20141 } GtkAccelFlags;
20142
20143
20144
20145 typedef struct _GtkAccelGroup GtkAccelGroup;
20146 typedef struct _GtkAccelGroupClass GtkAccelGroupClass;
20147 typedef struct _GtkAccelKey GtkAccelKey;
20148 typedef struct _GtkAccelGroupEntry GtkAccelGroupEntry;
20149 typedef gboolean (*GtkAccelGroupActivate) (GtkAccelGroup *accel_group,
20150 GObject *acceleratable,
20151 guint keyval,
20152 GdkModifierType modifier);
20153
20154 typedef gboolean (*GtkAccelGroupFindFunc) (GtkAccelKey *key,
20155 GClosure *closure,
20156 gpointer data);
20157
20158 struct _GtkAccelGroup
20159 {
20160 GObject parent;
20161 guint lock_count;
20162 GdkModifierType modifier_mask;
20163 GSList *acceleratables;
20164 guint n_accels;
20165 GtkAccelGroupEntry *priv_accels;
20166 };
20167
20168 struct _GtkAccelGroupClass
20169 {
20170 GObjectClass parent_class;
20171
20172 void (*accel_changed) (GtkAccelGroup *accel_group,
20173 guint keyval,
20174 GdkModifierType modifier,
20175 GClosure *accel_closure);
20176
20177
20178 void (*_gtk_reserved1) (void);
20179 void (*_gtk_reserved2) (void);
20180 void (*_gtk_reserved3) (void);
20181 void (*_gtk_reserved4) (void);
20182 };
20183
20184 struct _GtkAccelKey
20185 {
20186 guint accel_key;
20187 GdkModifierType accel_mods;
20188 guint accel_flags : 16;
20189 };
20190
20191
20192
20193 GType gtk_accel_group_get_type (void) __attribute__((__const__));
20194 GtkAccelGroup* gtk_accel_group_new (void);
20195 void gtk_accel_group_lock (GtkAccelGroup *accel_group);
20196 void gtk_accel_group_unlock (GtkAccelGroup *accel_group);
20197 void gtk_accel_group_connect (GtkAccelGroup *accel_group,
20198 guint accel_key,
20199 GdkModifierType accel_mods,
20200 GtkAccelFlags accel_flags,
20201 GClosure *closure);
20202 void gtk_accel_group_connect_by_path (GtkAccelGroup *accel_group,
20203 const gchar *accel_path,
20204 GClosure *closure);
20205 gboolean gtk_accel_group_disconnect (GtkAccelGroup *accel_group,
20206 GClosure *closure);
20207 gboolean gtk_accel_group_disconnect_key (GtkAccelGroup *accel_group,
20208 guint accel_key,
20209 GdkModifierType accel_mods);
20210 gboolean gtk_accel_group_activate (GtkAccelGroup *accel_group,
20211 GQuark accel_quark,
20212 GObject *acceleratable,
20213 guint accel_key,
20214 GdkModifierType accel_mods);
20215
20216
20217
20218 void _gtk_accel_group_attach (GtkAccelGroup *accel_group,
20219 GObject *object);
20220 void _gtk_accel_group_detach (GtkAccelGroup *accel_group,
20221 GObject *object);
20222 gboolean gtk_accel_groups_activate (GObject *object,
20223 guint accel_key,
20224 GdkModifierType accel_mods);
20225 GSList* gtk_accel_groups_from_object (GObject *object);
20226 GtkAccelKey* gtk_accel_group_find (GtkAccelGroup *accel_group,
20227 GtkAccelGroupFindFunc find_func,
20228 gpointer data);
20229 GtkAccelGroup* gtk_accel_group_from_accel_closure (GClosure *closure);
20230
20231
20232
20233 gboolean gtk_accelerator_valid (guint keyval,
20234 GdkModifierType modifiers) __attribute__((__const__));
20235 void gtk_accelerator_parse (const gchar *accelerator,
20236 guint *accelerator_key,
20237 GdkModifierType *accelerator_mods);
20238 gchar* gtk_accelerator_name (guint accelerator_key,
20239 GdkModifierType accelerator_mods);
20240 gchar* gtk_accelerator_get_label (guint accelerator_key,
20241 GdkModifierType accelerator_mods);
20242 void gtk_accelerator_set_default_mod_mask (GdkModifierType default_mod_mask);
20243 guint gtk_accelerator_get_default_mod_mask (void);
20244
20245
20246
20247 GtkAccelGroupEntry* gtk_accel_group_query (GtkAccelGroup *accel_group,
20248 guint accel_key,
20249 GdkModifierType accel_mods,
20250 guint *n_entries);
20251
20252 void _gtk_accel_group_reconnect (GtkAccelGroup *accel_group,
20253 GQuark accel_path_quark);
20254
20255 struct _GtkAccelGroupEntry
20256 {
20257 GtkAccelKey key;
20258 GClosure *closure;
20259 GQuark accel_path_quark;
20260 };
20261 # 33 "/usr/include/gtk-2.0/gtk/gtkwindow.h" 2
20262
20263 # 1 "/usr/include/gtk-2.0/gtk/gtkbin.h" 1
20264 # 32 "/usr/include/gtk-2.0/gtk/gtkbin.h"
20265
20266 # 1 "/usr/include/gtk-2.0/gtk/gtkcontainer.h" 1
20267 # 33 "/usr/include/gtk-2.0/gtk/gtkcontainer.h"
20268
20269 # 1 "/usr/include/gtk-2.0/gtk/gtkwidget.h" 1
20270 # 32 "/usr/include/gtk-2.0/gtk/gtkwidget.h"
20271
20272 # 1 "/usr/include/gtk-2.0/gtk/gtkobject.h" 1
20273 # 32 "/usr/include/gtk-2.0/gtk/gtkobject.h"
20274
20275 # 1 "/usr/include/gtk-2.0/gtk/gtktypeutils.h" 1
20276 # 34 "/usr/include/gtk-2.0/gtk/gtktypeutils.h"
20277 # 62 "/usr/include/gtk-2.0/gtk/gtktypeutils.h"
20278 typedef GType GtkFundamentalType;
20279 # 89 "/usr/include/gtk-2.0/gtk/gtktypeutils.h"
20280 typedef GType GtkType;
20281
20282
20283
20284 typedef GTypeInstance GtkTypeObject;
20285 typedef GTypeClass GtkTypeClass;
20286 typedef GBaseInitFunc GtkClassInitFunc;
20287 typedef GInstanceInitFunc GtkObjectInitFunc;
20288 # 105 "/usr/include/gtk-2.0/gtk/gtktypeutils.h"
20289 # 1 "/usr/include/gtk-2.0/gtk/gtktypebuiltins.h" 1
20290 # 9 "/usr/include/gtk-2.0/gtk/gtktypebuiltins.h"
20291
20292
20293 GType gtk_accel_flags_get_type (void) __attribute__((__const__));
20294
20295
20296 GType gtk_calendar_display_options_get_type (void) __attribute__((__const__));
20297
20298
20299 GType gtk_cell_renderer_state_get_type (void) __attribute__((__const__));
20300
20301 GType gtk_cell_renderer_mode_get_type (void) __attribute__((__const__));
20302
20303
20304 GType gtk_cell_type_get_type (void) __attribute__((__const__));
20305
20306 GType gtk_clist_drag_pos_get_type (void) __attribute__((__const__));
20307
20308 GType gtk_button_action_get_type (void) __attribute__((__const__));
20309
20310
20311 GType gtk_ctree_pos_get_type (void) __attribute__((__const__));
20312
20313 GType gtk_ctree_line_style_get_type (void) __attribute__((__const__));
20314
20315 GType gtk_ctree_expander_style_get_type (void) __attribute__((__const__));
20316
20317 GType gtk_ctree_expansion_type_get_type (void) __attribute__((__const__));
20318
20319
20320 GType gtk_debug_flag_get_type (void) __attribute__((__const__));
20321
20322
20323 GType gtk_dialog_flags_get_type (void) __attribute__((__const__));
20324
20325 GType gtk_response_type_get_type (void) __attribute__((__const__));
20326
20327
20328 GType gtk_dest_defaults_get_type (void) __attribute__((__const__));
20329
20330 GType gtk_target_flags_get_type (void) __attribute__((__const__));
20331
20332
20333 GType gtk_anchor_type_get_type (void) __attribute__((__const__));
20334
20335 GType gtk_arrow_type_get_type (void) __attribute__((__const__));
20336
20337 GType gtk_attach_options_get_type (void) __attribute__((__const__));
20338
20339 GType gtk_button_box_style_get_type (void) __attribute__((__const__));
20340
20341 GType gtk_curve_type_get_type (void) __attribute__((__const__));
20342
20343 GType gtk_delete_type_get_type (void) __attribute__((__const__));
20344
20345 GType gtk_direction_type_get_type (void) __attribute__((__const__));
20346
20347 GType gtk_expander_style_get_type (void) __attribute__((__const__));
20348
20349 GType gtk_icon_size_get_type (void) __attribute__((__const__));
20350
20351 GType gtk_side_type_get_type (void) __attribute__((__const__));
20352
20353 GType gtk_text_direction_get_type (void) __attribute__((__const__));
20354
20355 GType gtk_justification_get_type (void) __attribute__((__const__));
20356
20357 GType gtk_match_type_get_type (void) __attribute__((__const__));
20358
20359 GType gtk_menu_direction_type_get_type (void) __attribute__((__const__));
20360
20361 GType gtk_metric_type_get_type (void) __attribute__((__const__));
20362
20363 GType gtk_movement_step_get_type (void) __attribute__((__const__));
20364
20365 GType gtk_scroll_step_get_type (void) __attribute__((__const__));
20366
20367 GType gtk_orientation_get_type (void) __attribute__((__const__));
20368
20369 GType gtk_corner_type_get_type (void) __attribute__((__const__));
20370
20371 GType gtk_pack_type_get_type (void) __attribute__((__const__));
20372
20373 GType gtk_path_priority_type_get_type (void) __attribute__((__const__));
20374
20375 GType gtk_path_type_get_type (void) __attribute__((__const__));
20376
20377 GType gtk_policy_type_get_type (void) __attribute__((__const__));
20378
20379 GType gtk_position_type_get_type (void) __attribute__((__const__));
20380
20381 GType gtk_preview_type_get_type (void) __attribute__((__const__));
20382
20383 GType gtk_relief_style_get_type (void) __attribute__((__const__));
20384
20385 GType gtk_resize_mode_get_type (void) __attribute__((__const__));
20386
20387 GType gtk_signal_run_type_get_type (void) __attribute__((__const__));
20388
20389 GType gtk_scroll_type_get_type (void) __attribute__((__const__));
20390
20391 GType gtk_selection_mode_get_type (void) __attribute__((__const__));
20392
20393 GType gtk_shadow_type_get_type (void) __attribute__((__const__));
20394
20395 GType gtk_state_type_get_type (void) __attribute__((__const__));
20396
20397 GType gtk_submenu_direction_get_type (void) __attribute__((__const__));
20398
20399 GType gtk_submenu_placement_get_type (void) __attribute__((__const__));
20400
20401 GType gtk_toolbar_style_get_type (void) __attribute__((__const__));
20402
20403 GType gtk_update_type_get_type (void) __attribute__((__const__));
20404
20405 GType gtk_visibility_get_type (void) __attribute__((__const__));
20406
20407 GType gtk_window_position_get_type (void) __attribute__((__const__));
20408
20409 GType gtk_window_type_get_type (void) __attribute__((__const__));
20410
20411 GType gtk_wrap_mode_get_type (void) __attribute__((__const__));
20412
20413 GType gtk_sort_type_get_type (void) __attribute__((__const__));
20414
20415 GType gtk_im_preedit_style_get_type (void) __attribute__((__const__));
20416
20417 GType gtk_im_status_style_get_type (void) __attribute__((__const__));
20418
20419 GType gtk_pack_direction_get_type (void) __attribute__((__const__));
20420
20421
20422 GType gtk_file_chooser_action_get_type (void) __attribute__((__const__));
20423
20424 GType gtk_file_chooser_confirmation_get_type (void) __attribute__((__const__));
20425
20426 GType gtk_file_chooser_error_get_type (void) __attribute__((__const__));
20427
20428
20429 GType gtk_file_filter_flags_get_type (void) __attribute__((__const__));
20430
20431
20432 GType gtk_icon_lookup_flags_get_type (void) __attribute__((__const__));
20433
20434 GType gtk_icon_theme_error_get_type (void) __attribute__((__const__));
20435
20436
20437 GType gtk_icon_view_drop_position_get_type (void) __attribute__((__const__));
20438
20439
20440 GType gtk_image_type_get_type (void) __attribute__((__const__));
20441
20442
20443 GType gtk_message_type_get_type (void) __attribute__((__const__));
20444
20445 GType gtk_buttons_type_get_type (void) __attribute__((__const__));
20446
20447
20448 GType gtk_notebook_tab_get_type (void) __attribute__((__const__));
20449
20450
20451 GType gtk_object_flags_get_type (void) __attribute__((__const__));
20452
20453 GType gtk_arg_flags_get_type (void) __attribute__((__const__));
20454
20455
20456 GType gtk_private_flags_get_type (void) __attribute__((__const__));
20457
20458
20459 GType gtk_progress_bar_style_get_type (void) __attribute__((__const__));
20460
20461 GType gtk_progress_bar_orientation_get_type (void) __attribute__((__const__));
20462
20463
20464 GType gtk_rc_flags_get_type (void) __attribute__((__const__));
20465
20466 GType gtk_rc_token_type_get_type (void) __attribute__((__const__));
20467
20468
20469 GType gtk_size_group_mode_get_type (void) __attribute__((__const__));
20470
20471
20472 GType gtk_spin_button_update_policy_get_type (void) __attribute__((__const__));
20473
20474 GType gtk_spin_type_get_type (void) __attribute__((__const__));
20475
20476
20477 GType gtk_text_search_flags_get_type (void) __attribute__((__const__));
20478
20479
20480 GType gtk_text_window_type_get_type (void) __attribute__((__const__));
20481
20482
20483 GType gtk_toolbar_child_type_get_type (void) __attribute__((__const__));
20484
20485 GType gtk_toolbar_space_style_get_type (void) __attribute__((__const__));
20486
20487
20488 GType gtk_tree_view_mode_get_type (void) __attribute__((__const__));
20489
20490
20491 GType gtk_tree_model_flags_get_type (void) __attribute__((__const__));
20492
20493
20494 GType gtk_tree_view_drop_position_get_type (void) __attribute__((__const__));
20495
20496
20497 GType gtk_tree_view_column_sizing_get_type (void) __attribute__((__const__));
20498
20499
20500 GType gtk_ui_manager_item_type_get_type (void) __attribute__((__const__));
20501
20502
20503 GType gtk_widget_flags_get_type (void) __attribute__((__const__));
20504
20505 GType gtk_widget_help_type_get_type (void) __attribute__((__const__));
20506 # 105 "/usr/include/gtk-2.0/gtk/gtktypeutils.h" 2
20507
20508
20509
20510
20511
20512 GType gtk_identifier_get_type (void) __attribute__((__const__));
20513
20514
20515
20516
20517
20518 typedef struct _GtkArg GtkArg;
20519 typedef struct _GtkObject GtkObject;
20520 typedef gboolean (*GtkFunction) (gpointer data);
20521 typedef void (*GtkDestroyNotify) (gpointer data);
20522 typedef void (*GtkCallbackMarshal) (GtkObject *object,
20523 gpointer data,
20524 guint n_args,
20525 GtkArg *args);
20526 typedef void (*GtkSignalFunc) (void);
20527
20528
20529
20530 typedef struct _GtkTypeInfo GtkTypeInfo;
20531 typedef GSignalCMarshaller GtkSignalMarshaller;
20532
20533
20534
20535
20536
20537
20538 struct _GtkArg
20539 {
20540 GtkType type;
20541 gchar *name;
20542
20543
20544
20545
20546
20547
20548
20549 union {
20550
20551 gchar char_data;
20552 guchar uchar_data;
20553 gboolean bool_data;
20554 gint int_data;
20555 guint uint_data;
20556 glong long_data;
20557 gulong ulong_data;
20558 gfloat float_data;
20559 gdouble double_data;
20560 gchar *string_data;
20561 GtkObject *object_data;
20562 gpointer pointer_data;
20563
20564
20565 struct {
20566 GtkSignalFunc f;
20567 gpointer d;
20568 } signal_data;
20569 } d;
20570 };
20571 # 218 "/usr/include/gtk-2.0/gtk/gtktypeutils.h"
20572 struct _GtkTypeInfo
20573 {
20574 gchar *type_name;
20575 guint object_size;
20576 guint class_size;
20577 GtkClassInitFunc class_init_func;
20578 GtkObjectInitFunc object_init_func;
20579 gpointer reserved_1;
20580 gpointer reserved_2;
20581 GtkClassInitFunc base_class_init_func;
20582 };
20583
20584
20585
20586 gpointer gtk_type_class (GtkType type);
20587
20588
20589
20590 GtkType gtk_type_unique (GtkType parent_type,
20591 const GtkTypeInfo *gtkinfo);
20592 gpointer gtk_type_new (GtkType type);
20593 # 249 "/usr/include/gtk-2.0/gtk/gtktypeutils.h"
20594 typedef GEnumValue GtkEnumValue;
20595 typedef GFlagsValue GtkFlagValue;
20596 GtkEnumValue* gtk_type_enum_get_values (GtkType enum_type);
20597 GtkFlagValue* gtk_type_flags_get_values (GtkType flags_type);
20598 GtkEnumValue* gtk_type_enum_find_value (GtkType enum_type,
20599 const gchar *value_name);
20600 GtkFlagValue* gtk_type_flags_find_value (GtkType flags_type,
20601 const gchar *value_name);
20602
20603
20604
20605
20606
20607 void gtk_type_init (GTypeDebugFlags debug_flags);
20608 # 33 "/usr/include/gtk-2.0/gtk/gtkobject.h" 2
20609
20610 # 1 "/usr/include/gtk-2.0/gtk/gtkdebug.h" 1
20611 # 32 "/usr/include/gtk-2.0/gtk/gtkdebug.h"
20612
20613
20614 typedef enum {
20615 GTK_DEBUG_MISC = 1 << 0,
20616 GTK_DEBUG_PLUGSOCKET = 1 << 1,
20617 GTK_DEBUG_TEXT = 1 << 2,
20618 GTK_DEBUG_TREE = 1 << 3,
20619 GTK_DEBUG_UPDATES = 1 << 4,
20620 GTK_DEBUG_KEYBINDINGS = 1 << 5,
20621 GTK_DEBUG_MULTIHEAD = 1 << 6,
20622 GTK_DEBUG_MODULES = 1 << 7,
20623 GTK_DEBUG_GEOMETRY = 1 << 8,
20624 GTK_DEBUG_ICONTHEME = 1 << 9
20625 } GtkDebugFlag;
20626 # 69 "/usr/include/gtk-2.0/gtk/gtkdebug.h"
20627 extern guint gtk_debug_flags;
20628 # 34 "/usr/include/gtk-2.0/gtk/gtkobject.h" 2
20629 # 58 "/usr/include/gtk-2.0/gtk/gtkobject.h"
20630 typedef enum
20631 {
20632 GTK_IN_DESTRUCTION = 1 << 0,
20633 GTK_FLOATING = 1 << 1,
20634 GTK_RESERVED_1 = 1 << 2,
20635 GTK_RESERVED_2 = 1 << 3
20636 } GtkObjectFlags;
20637 # 76 "/usr/include/gtk-2.0/gtk/gtkobject.h"
20638 typedef struct _GtkObjectClass GtkObjectClass;
20639
20640
20641 struct _GtkObject
20642 {
20643 GObject parent_instance;
20644
20645
20646
20647
20648
20649
20650 guint32 flags;
20651 };
20652
20653 struct _GtkObjectClass
20654 {
20655 GObjectClass parent_class;
20656
20657
20658 void (*set_arg) (GtkObject *object,
20659 GtkArg *arg,
20660 guint arg_id);
20661 void (*get_arg) (GtkObject *object,
20662 GtkArg *arg,
20663 guint arg_id);
20664 # 111 "/usr/include/gtk-2.0/gtk/gtkobject.h"
20665 void (*destroy) (GtkObject *object);
20666 };
20667
20668
20669
20670
20671
20672 GtkType gtk_object_get_type (void) __attribute__((__const__));
20673
20674 void gtk_object_sink (GtkObject *object);
20675 void gtk_object_destroy (GtkObject *object);
20676
20677
20678
20679
20680
20681 GtkObject* gtk_object_new (GtkType type,
20682 const gchar *first_property_name,
20683 ...);
20684 GtkObject* gtk_object_ref (GtkObject *object);
20685 void gtk_object_unref (GtkObject *object);
20686 void gtk_object_weakref (GtkObject *object,
20687 GtkDestroyNotify notify,
20688 gpointer data);
20689 void gtk_object_weakunref (GtkObject *object,
20690 GtkDestroyNotify notify,
20691 gpointer data);
20692 # 151 "/usr/include/gtk-2.0/gtk/gtkobject.h"
20693 void gtk_object_set_data (GtkObject *object,
20694 const gchar *key,
20695 gpointer data);
20696 void gtk_object_set_data_full (GtkObject *object,
20697 const gchar *key,
20698 gpointer data,
20699 GtkDestroyNotify destroy);
20700 void gtk_object_remove_data (GtkObject *object,
20701 const gchar *key);
20702 gpointer gtk_object_get_data (GtkObject *object,
20703 const gchar *key);
20704 void gtk_object_remove_no_notify (GtkObject *object,
20705 const gchar *key);
20706
20707
20708
20709
20710
20711
20712 void gtk_object_set_user_data (GtkObject *object,
20713 gpointer data);
20714 gpointer gtk_object_get_user_data (GtkObject *object);
20715
20716
20717
20718
20719
20720 void gtk_object_set_data_by_id (GtkObject *object,
20721 GQuark data_id,
20722 gpointer data);
20723 void gtk_object_set_data_by_id_full (GtkObject *object,
20724 GQuark data_id,
20725 gpointer data,
20726 GtkDestroyNotify destroy);
20727 gpointer gtk_object_get_data_by_id (GtkObject *object,
20728 GQuark data_id);
20729 void gtk_object_remove_data_by_id (GtkObject *object,
20730 GQuark data_id);
20731 void gtk_object_remove_no_notify_by_id (GtkObject *object,
20732 GQuark key_id);
20733
20734
20735
20736
20737
20738 typedef enum
20739 {
20740 GTK_ARG_READABLE = G_PARAM_READABLE,
20741 GTK_ARG_WRITABLE = G_PARAM_WRITABLE,
20742 GTK_ARG_CONSTRUCT = G_PARAM_CONSTRUCT,
20743 GTK_ARG_CONSTRUCT_ONLY = G_PARAM_CONSTRUCT_ONLY,
20744 GTK_ARG_CHILD_ARG = 1 << 4
20745 } GtkArgFlags;
20746
20747 void gtk_object_get (GtkObject *object,
20748 const gchar *first_property_name,
20749 ...) __attribute__((__sentinel__));
20750 void gtk_object_set (GtkObject *object,
20751 const gchar *first_property_name,
20752 ...) __attribute__((__sentinel__));
20753 void gtk_object_add_arg_type (const gchar *arg_name,
20754 GtkType arg_type,
20755 guint arg_flags,
20756 guint arg_id);
20757 # 33 "/usr/include/gtk-2.0/gtk/gtkwidget.h" 2
20758
20759 # 1 "/usr/include/gtk-2.0/gtk/gtkadjustment.h" 1
20760 # 34 "/usr/include/gtk-2.0/gtk/gtkadjustment.h"
20761 # 44 "/usr/include/gtk-2.0/gtk/gtkadjustment.h"
20762 typedef struct _GtkAdjustment GtkAdjustment;
20763 typedef struct _GtkAdjustmentClass GtkAdjustmentClass;
20764
20765 struct _GtkAdjustment
20766 {
20767 GtkObject parent_instance;
20768
20769 gdouble lower;
20770 gdouble upper;
20771 gdouble value;
20772 gdouble step_increment;
20773 gdouble page_increment;
20774 gdouble page_size;
20775 };
20776
20777 struct _GtkAdjustmentClass
20778 {
20779 GtkObjectClass parent_class;
20780
20781 void (* changed) (GtkAdjustment *adjustment);
20782 void (* value_changed) (GtkAdjustment *adjustment);
20783
20784
20785 void (*_gtk_reserved1) (void);
20786 void (*_gtk_reserved2) (void);
20787 void (*_gtk_reserved3) (void);
20788 void (*_gtk_reserved4) (void);
20789 };
20790
20791
20792 GType gtk_adjustment_get_type (void) __attribute__((__const__));
20793 GtkObject* gtk_adjustment_new (gdouble value,
20794 gdouble lower,
20795 gdouble upper,
20796 gdouble step_increment,
20797 gdouble page_increment,
20798 gdouble page_size);
20799 void gtk_adjustment_changed (GtkAdjustment *adjustment);
20800 void gtk_adjustment_value_changed (GtkAdjustment *adjustment);
20801 void gtk_adjustment_clamp_page (GtkAdjustment *adjustment,
20802 gdouble lower,
20803 gdouble upper);
20804 gdouble gtk_adjustment_get_value (GtkAdjustment *adjustment);
20805 void gtk_adjustment_set_value (GtkAdjustment *adjustment,
20806 gdouble value);
20807 # 34 "/usr/include/gtk-2.0/gtk/gtkwidget.h" 2
20808
20809 # 1 "/usr/include/gtk-2.0/gtk/gtkstyle.h" 1
20810 # 35 "/usr/include/gtk-2.0/gtk/gtkstyle.h"
20811 # 49 "/usr/include/gtk-2.0/gtk/gtkstyle.h"
20812 typedef struct _GtkBorder GtkBorder;
20813 typedef struct _GtkStyle GtkStyle;
20814 typedef struct _GtkStyleClass GtkStyleClass;
20815 typedef struct _GtkThemeEngine GtkThemeEngine;
20816 typedef struct _GtkRcStyle GtkRcStyle;
20817 typedef struct _GtkIconSet GtkIconSet;
20818 typedef struct _GtkIconSource GtkIconSource;
20819 typedef struct _GtkRcProperty GtkRcProperty;
20820 typedef struct _GtkSettings GtkSettings;
20821 typedef gboolean (*GtkRcPropertyParser) (const GParamSpec *pspec,
20822 const GString *rc_string,
20823 GValue *property_value);
20824
20825
20826
20827
20828 typedef struct _GtkWidget GtkWidget;
20829
20830
20831
20832 struct _GtkStyle
20833 {
20834 GObject parent_instance;
20835
20836
20837
20838 GdkColor fg[5];
20839 GdkColor bg[5];
20840 GdkColor light[5];
20841 GdkColor dark[5];
20842 GdkColor mid[5];
20843 GdkColor text[5];
20844 GdkColor base[5];
20845 GdkColor text_aa[5];
20846
20847 GdkColor black;
20848 GdkColor white;
20849 PangoFontDescription *font_desc;
20850
20851 gint xthickness;
20852 gint ythickness;
20853
20854 GdkGC *fg_gc[5];
20855 GdkGC *bg_gc[5];
20856 GdkGC *light_gc[5];
20857 GdkGC *dark_gc[5];
20858 GdkGC *mid_gc[5];
20859 GdkGC *text_gc[5];
20860 GdkGC *base_gc[5];
20861 GdkGC *text_aa_gc[5];
20862 GdkGC *black_gc;
20863 GdkGC *white_gc;
20864
20865 GdkPixmap *bg_pixmap[5];
20866
20867
20868
20869 gint attach_count;
20870
20871 gint depth;
20872 GdkColormap *colormap;
20873 GdkFont *private_font;
20874 PangoFontDescription *private_font_desc;
20875
20876
20877 GtkRcStyle *rc_style;
20878
20879 GSList *styles;
20880 GArray *property_cache;
20881 GSList *icon_factories;
20882 };
20883
20884 struct _GtkStyleClass
20885 {
20886 GObjectClass parent_class;
20887
20888
20889
20890
20891
20892 void (*realize) (GtkStyle *style);
20893
20894
20895
20896
20897 void (*unrealize) (GtkStyle *style);
20898
20899
20900
20901 void (*copy) (GtkStyle *style,
20902 GtkStyle *src);
20903
20904
20905
20906
20907
20908
20909 GtkStyle *(*clone) (GtkStyle *style);
20910
20911
20912
20913
20914 void (*init_from_rc) (GtkStyle *style,
20915 GtkRcStyle *rc_style);
20916
20917 void (*set_background) (GtkStyle *style,
20918 GdkWindow *window,
20919 GtkStateType state_type);
20920
20921
20922 GdkPixbuf * (* render_icon) (GtkStyle *style,
20923 const GtkIconSource *source,
20924 GtkTextDirection direction,
20925 GtkStateType state,
20926 GtkIconSize size,
20927 GtkWidget *widget,
20928 const gchar *detail);
20929
20930
20931
20932
20933 void (*draw_hline) (GtkStyle *style,
20934 GdkWindow *window,
20935 GtkStateType state_type,
20936 GdkRectangle *area,
20937 GtkWidget *widget,
20938 const gchar *detail,
20939 gint x1,
20940 gint x2,
20941 gint y);
20942 void (*draw_vline) (GtkStyle *style,
20943 GdkWindow *window,
20944 GtkStateType state_type,
20945 GdkRectangle *area,
20946 GtkWidget *widget,
20947 const gchar *detail,
20948 gint y1_,
20949 gint y2_,
20950 gint x);
20951 void (*draw_shadow) (GtkStyle *style,
20952 GdkWindow *window,
20953 GtkStateType state_type,
20954 GtkShadowType shadow_type,
20955 GdkRectangle *area,
20956 GtkWidget *widget,
20957 const gchar *detail,
20958 gint x,
20959 gint y,
20960 gint width,
20961 gint height);
20962 void (*draw_polygon) (GtkStyle *style,
20963 GdkWindow *window,
20964 GtkStateType state_type,
20965 GtkShadowType shadow_type,
20966 GdkRectangle *area,
20967 GtkWidget *widget,
20968 const gchar *detail,
20969 GdkPoint *point,
20970 gint npoints,
20971 gboolean fill);
20972 void (*draw_arrow) (GtkStyle *style,
20973 GdkWindow *window,
20974 GtkStateType state_type,
20975 GtkShadowType shadow_type,
20976 GdkRectangle *area,
20977 GtkWidget *widget,
20978 const gchar *detail,
20979 GtkArrowType arrow_type,
20980 gboolean fill,
20981 gint x,
20982 gint y,
20983 gint width,
20984 gint height);
20985 void (*draw_diamond) (GtkStyle *style,
20986 GdkWindow *window,
20987 GtkStateType state_type,
20988 GtkShadowType shadow_type,
20989 GdkRectangle *area,
20990 GtkWidget *widget,
20991 const gchar *detail,
20992 gint x,
20993 gint y,
20994 gint width,
20995 gint height);
20996 void (*draw_string) (GtkStyle *style,
20997 GdkWindow *window,
20998 GtkStateType state_type,
20999 GdkRectangle *area,
21000 GtkWidget *widget,
21001 const gchar *detail,
21002 gint x,
21003 gint y,
21004 const gchar *string);
21005 void (*draw_box) (GtkStyle *style,
21006 GdkWindow *window,
21007 GtkStateType state_type,
21008 GtkShadowType shadow_type,
21009 GdkRectangle *area,
21010 GtkWidget *widget,
21011 const gchar *detail,
21012 gint x,
21013 gint y,
21014 gint width,
21015 gint height);
21016 void (*draw_flat_box) (GtkStyle *style,
21017 GdkWindow *window,
21018 GtkStateType state_type,
21019 GtkShadowType shadow_type,
21020 GdkRectangle *area,
21021 GtkWidget *widget,
21022 const gchar *detail,
21023 gint x,
21024 gint y,
21025 gint width,
21026 gint height);
21027 void (*draw_check) (GtkStyle *style,
21028 GdkWindow *window,
21029 GtkStateType state_type,
21030 GtkShadowType shadow_type,
21031 GdkRectangle *area,
21032 GtkWidget *widget,
21033 const gchar *detail,
21034 gint x,
21035 gint y,
21036 gint width,
21037 gint height);
21038 void (*draw_option) (GtkStyle *style,
21039 GdkWindow *window,
21040 GtkStateType state_type,
21041 GtkShadowType shadow_type,
21042 GdkRectangle *area,
21043 GtkWidget *widget,
21044 const gchar *detail,
21045 gint x,
21046 gint y,
21047 gint width,
21048 gint height);
21049 void (*draw_tab) (GtkStyle *style,
21050 GdkWindow *window,
21051 GtkStateType state_type,
21052 GtkShadowType shadow_type,
21053 GdkRectangle *area,
21054 GtkWidget *widget,
21055 const gchar *detail,
21056 gint x,
21057 gint y,
21058 gint width,
21059 gint height);
21060 void (*draw_shadow_gap) (GtkStyle *style,
21061 GdkWindow *window,
21062 GtkStateType state_type,
21063 GtkShadowType shadow_type,
21064 GdkRectangle *area,
21065 GtkWidget *widget,
21066 const gchar *detail,
21067 gint x,
21068 gint y,
21069 gint width,
21070 gint height,
21071 GtkPositionType gap_side,
21072 gint gap_x,
21073 gint gap_width);
21074 void (*draw_box_gap) (GtkStyle *style,
21075 GdkWindow *window,
21076 GtkStateType state_type,
21077 GtkShadowType shadow_type,
21078 GdkRectangle *area,
21079 GtkWidget *widget,
21080 const gchar *detail,
21081 gint x,
21082 gint y,
21083 gint width,
21084 gint height,
21085 GtkPositionType gap_side,
21086 gint gap_x,
21087 gint gap_width);
21088 void (*draw_extension) (GtkStyle *style,
21089 GdkWindow *window,
21090 GtkStateType state_type,
21091 GtkShadowType shadow_type,
21092 GdkRectangle *area,
21093 GtkWidget *widget,
21094 const gchar *detail,
21095 gint x,
21096 gint y,
21097 gint width,
21098 gint height,
21099 GtkPositionType gap_side);
21100 void (*draw_focus) (GtkStyle *style,
21101 GdkWindow *window,
21102 GtkStateType state_type,
21103 GdkRectangle *area,
21104 GtkWidget *widget,
21105 const gchar *detail,
21106 gint x,
21107 gint y,
21108 gint width,
21109 gint height);
21110 void (*draw_slider) (GtkStyle *style,
21111 GdkWindow *window,
21112 GtkStateType state_type,
21113 GtkShadowType shadow_type,
21114 GdkRectangle *area,
21115 GtkWidget *widget,
21116 const gchar *detail,
21117 gint x,
21118 gint y,
21119 gint width,
21120 gint height,
21121 GtkOrientation orientation);
21122 void (*draw_handle) (GtkStyle *style,
21123 GdkWindow *window,
21124 GtkStateType state_type,
21125 GtkShadowType shadow_type,
21126 GdkRectangle *area,
21127 GtkWidget *widget,
21128 const gchar *detail,
21129 gint x,
21130 gint y,
21131 gint width,
21132 gint height,
21133 GtkOrientation orientation);
21134
21135 void (*draw_expander) (GtkStyle *style,
21136 GdkWindow *window,
21137 GtkStateType state_type,
21138 GdkRectangle *area,
21139 GtkWidget *widget,
21140 const gchar *detail,
21141 gint x,
21142 gint y,
21143 GtkExpanderStyle expander_style);
21144 void (*draw_layout) (GtkStyle *style,
21145 GdkWindow *window,
21146 GtkStateType state_type,
21147 gboolean use_text,
21148 GdkRectangle *area,
21149 GtkWidget *widget,
21150 const gchar *detail,
21151 gint x,
21152 gint y,
21153 PangoLayout *layout);
21154 void (*draw_resize_grip) (GtkStyle *style,
21155 GdkWindow *window,
21156 GtkStateType state_type,
21157 GdkRectangle *area,
21158 GtkWidget *widget,
21159 const gchar *detail,
21160 GdkWindowEdge edge,
21161 gint x,
21162 gint y,
21163 gint width,
21164 gint height);
21165
21166
21167 void (*_gtk_reserved1) (void);
21168 void (*_gtk_reserved2) (void);
21169 void (*_gtk_reserved3) (void);
21170 void (*_gtk_reserved4) (void);
21171 void (*_gtk_reserved5) (void);
21172 void (*_gtk_reserved6) (void);
21173 void (*_gtk_reserved7) (void);
21174 void (*_gtk_reserved8) (void);
21175 void (*_gtk_reserved9) (void);
21176 void (*_gtk_reserved10) (void);
21177 void (*_gtk_reserved11) (void);
21178 void (*_gtk_reserved12) (void);
21179 };
21180
21181 struct _GtkBorder
21182 {
21183 gint left;
21184 gint right;
21185 gint top;
21186 gint bottom;
21187 };
21188
21189 GType gtk_style_get_type (void) __attribute__((__const__));
21190 GtkStyle* gtk_style_new (void);
21191 GtkStyle* gtk_style_copy (GtkStyle *style);
21192 GtkStyle* gtk_style_attach (GtkStyle *style,
21193 GdkWindow *window);
21194 void gtk_style_detach (GtkStyle *style);
21195
21196
21197 GtkStyle* gtk_style_ref (GtkStyle *style);
21198 void gtk_style_unref (GtkStyle *style);
21199
21200 GdkFont * gtk_style_get_font (GtkStyle *style);
21201 void gtk_style_set_font (GtkStyle *style,
21202 GdkFont *font);
21203
21204
21205 void gtk_style_set_background (GtkStyle *style,
21206 GdkWindow *window,
21207 GtkStateType state_type);
21208 void gtk_style_apply_default_background (GtkStyle *style,
21209 GdkWindow *window,
21210 gboolean set_bg,
21211 GtkStateType state_type,
21212 GdkRectangle *area,
21213 gint x,
21214 gint y,
21215 gint width,
21216 gint height);
21217
21218 GtkIconSet* gtk_style_lookup_icon_set (GtkStyle *style,
21219 const gchar *stock_id);
21220 GdkPixbuf* gtk_style_render_icon (GtkStyle *style,
21221 const GtkIconSource *source,
21222 GtkTextDirection direction,
21223 GtkStateType state,
21224 GtkIconSize size,
21225 GtkWidget *widget,
21226 const gchar *detail);
21227
21228 void gtk_draw_hline (GtkStyle *style,
21229 GdkWindow *window,
21230 GtkStateType state_type,
21231 gint x1,
21232 gint x2,
21233 gint y);
21234 void gtk_draw_vline (GtkStyle *style,
21235 GdkWindow *window,
21236 GtkStateType state_type,
21237 gint y1_,
21238 gint y2_,
21239 gint x);
21240 void gtk_draw_shadow (GtkStyle *style,
21241 GdkWindow *window,
21242 GtkStateType state_type,
21243 GtkShadowType shadow_type,
21244 gint x,
21245 gint y,
21246 gint width,
21247 gint height);
21248 void gtk_draw_polygon (GtkStyle *style,
21249 GdkWindow *window,
21250 GtkStateType state_type,
21251 GtkShadowType shadow_type,
21252 GdkPoint *points,
21253 gint npoints,
21254 gboolean fill);
21255 void gtk_draw_arrow (GtkStyle *style,
21256 GdkWindow *window,
21257 GtkStateType state_type,
21258 GtkShadowType shadow_type,
21259 GtkArrowType arrow_type,
21260 gboolean fill,
21261 gint x,
21262 gint y,
21263 gint width,
21264 gint height);
21265 void gtk_draw_diamond (GtkStyle *style,
21266 GdkWindow *window,
21267 GtkStateType state_type,
21268 GtkShadowType shadow_type,
21269 gint x,
21270 gint y,
21271 gint width,
21272 gint height);
21273 void gtk_draw_box (GtkStyle *style,
21274 GdkWindow *window,
21275 GtkStateType state_type,
21276 GtkShadowType shadow_type,
21277 gint x,
21278 gint y,
21279 gint width,
21280 gint height);
21281 void gtk_draw_flat_box (GtkStyle *style,
21282 GdkWindow *window,
21283 GtkStateType state_type,
21284 GtkShadowType shadow_type,
21285 gint x,
21286 gint y,
21287 gint width,
21288 gint height);
21289 void gtk_draw_check (GtkStyle *style,
21290 GdkWindow *window,
21291 GtkStateType state_type,
21292 GtkShadowType shadow_type,
21293 gint x,
21294 gint y,
21295 gint width,
21296 gint height);
21297 void gtk_draw_option (GtkStyle *style,
21298 GdkWindow *window,
21299 GtkStateType state_type,
21300 GtkShadowType shadow_type,
21301 gint x,
21302 gint y,
21303 gint width,
21304 gint height);
21305 void gtk_draw_tab (GtkStyle *style,
21306 GdkWindow *window,
21307 GtkStateType state_type,
21308 GtkShadowType shadow_type,
21309 gint x,
21310 gint y,
21311 gint width,
21312 gint height);
21313 void gtk_draw_shadow_gap (GtkStyle *style,
21314 GdkWindow *window,
21315 GtkStateType state_type,
21316 GtkShadowType shadow_type,
21317 gint x,
21318 gint y,
21319 gint width,
21320 gint height,
21321 GtkPositionType gap_side,
21322 gint gap_x,
21323 gint gap_width);
21324 void gtk_draw_box_gap (GtkStyle *style,
21325 GdkWindow *window,
21326 GtkStateType state_type,
21327 GtkShadowType shadow_type,
21328 gint x,
21329 gint y,
21330 gint width,
21331 gint height,
21332 GtkPositionType gap_side,
21333 gint gap_x,
21334 gint gap_width);
21335 void gtk_draw_extension (GtkStyle *style,
21336 GdkWindow *window,
21337 GtkStateType state_type,
21338 GtkShadowType shadow_type,
21339 gint x,
21340 gint y,
21341 gint width,
21342 gint height,
21343 GtkPositionType gap_side);
21344 void gtk_draw_focus (GtkStyle *style,
21345 GdkWindow *window,
21346 gint x,
21347 gint y,
21348 gint width,
21349 gint height);
21350 void gtk_draw_slider (GtkStyle *style,
21351 GdkWindow *window,
21352 GtkStateType state_type,
21353 GtkShadowType shadow_type,
21354 gint x,
21355 gint y,
21356 gint width,
21357 gint height,
21358 GtkOrientation orientation);
21359 void gtk_draw_handle (GtkStyle *style,
21360 GdkWindow *window,
21361 GtkStateType state_type,
21362 GtkShadowType shadow_type,
21363 gint x,
21364 gint y,
21365 gint width,
21366 gint height,
21367 GtkOrientation orientation);
21368 void gtk_draw_expander (GtkStyle *style,
21369 GdkWindow *window,
21370 GtkStateType state_type,
21371 gint x,
21372 gint y,
21373 GtkExpanderStyle expander_style);
21374 void gtk_draw_layout (GtkStyle *style,
21375 GdkWindow *window,
21376 GtkStateType state_type,
21377 gboolean use_text,
21378 gint x,
21379 gint y,
21380 PangoLayout *layout);
21381 void gtk_draw_resize_grip (GtkStyle *style,
21382 GdkWindow *window,
21383 GtkStateType state_type,
21384 GdkWindowEdge edge,
21385 gint x,
21386 gint y,
21387 gint width,
21388 gint height);
21389
21390
21391 void gtk_paint_hline (GtkStyle *style,
21392 GdkWindow *window,
21393 GtkStateType state_type,
21394 GdkRectangle *area,
21395 GtkWidget *widget,
21396 const gchar *detail,
21397 gint x1,
21398 gint x2,
21399 gint y);
21400 void gtk_paint_vline (GtkStyle *style,
21401 GdkWindow *window,
21402 GtkStateType state_type,
21403 GdkRectangle *area,
21404 GtkWidget *widget,
21405 const gchar *detail,
21406 gint y1_,
21407 gint y2_,
21408 gint x);
21409 void gtk_paint_shadow (GtkStyle *style,
21410 GdkWindow *window,
21411 GtkStateType state_type,
21412 GtkShadowType shadow_type,
21413 GdkRectangle *area,
21414 GtkWidget *widget,
21415 const gchar *detail,
21416 gint x,
21417 gint y,
21418 gint width,
21419 gint height);
21420 void gtk_paint_polygon (GtkStyle *style,
21421 GdkWindow *window,
21422 GtkStateType state_type,
21423 GtkShadowType shadow_type,
21424 GdkRectangle *area,
21425 GtkWidget *widget,
21426 const gchar *detail,
21427 GdkPoint *points,
21428 gint npoints,
21429 gboolean fill);
21430 void gtk_paint_arrow (GtkStyle *style,
21431 GdkWindow *window,
21432 GtkStateType state_type,
21433 GtkShadowType shadow_type,
21434 GdkRectangle *area,
21435 GtkWidget *widget,
21436 const gchar *detail,
21437 GtkArrowType arrow_type,
21438 gboolean fill,
21439 gint x,
21440 gint y,
21441 gint width,
21442 gint height);
21443 void gtk_paint_diamond (GtkStyle *style,
21444 GdkWindow *window,
21445 GtkStateType state_type,
21446 GtkShadowType shadow_type,
21447 GdkRectangle *area,
21448 GtkWidget *widget,
21449 const gchar *detail,
21450 gint x,
21451 gint y,
21452 gint width,
21453 gint height);
21454 void gtk_paint_box (GtkStyle *style,
21455 GdkWindow *window,
21456 GtkStateType state_type,
21457 GtkShadowType shadow_type,
21458 GdkRectangle *area,
21459 GtkWidget *widget,
21460 const gchar *detail,
21461 gint x,
21462 gint y,
21463 gint width,
21464 gint height);
21465 void gtk_paint_flat_box (GtkStyle *style,
21466 GdkWindow *window,
21467 GtkStateType state_type,
21468 GtkShadowType shadow_type,
21469 GdkRectangle *area,
21470 GtkWidget *widget,
21471 const gchar *detail,
21472 gint x,
21473 gint y,
21474 gint width,
21475 gint height);
21476 void gtk_paint_check (GtkStyle *style,
21477 GdkWindow *window,
21478 GtkStateType state_type,
21479 GtkShadowType shadow_type,
21480 GdkRectangle *area,
21481 GtkWidget *widget,
21482 const gchar *detail,
21483 gint x,
21484 gint y,
21485 gint width,
21486 gint height);
21487 void gtk_paint_option (GtkStyle *style,
21488 GdkWindow *window,
21489 GtkStateType state_type,
21490 GtkShadowType shadow_type,
21491 GdkRectangle *area,
21492 GtkWidget *widget,
21493 const gchar *detail,
21494 gint x,
21495 gint y,
21496 gint width,
21497 gint height);
21498 void gtk_paint_tab (GtkStyle *style,
21499 GdkWindow *window,
21500 GtkStateType state_type,
21501 GtkShadowType shadow_type,
21502 GdkRectangle *area,
21503 GtkWidget *widget,
21504 const gchar *detail,
21505 gint x,
21506 gint y,
21507 gint width,
21508 gint height);
21509 void gtk_paint_shadow_gap (GtkStyle *style,
21510 GdkWindow *window,
21511 GtkStateType state_type,
21512 GtkShadowType shadow_type,
21513 GdkRectangle *area,
21514 GtkWidget *widget,
21515 gchar *detail,
21516 gint x,
21517 gint y,
21518 gint width,
21519 gint height,
21520 GtkPositionType gap_side,
21521 gint gap_x,
21522 gint gap_width);
21523 void gtk_paint_box_gap (GtkStyle *style,
21524 GdkWindow *window,
21525 GtkStateType state_type,
21526 GtkShadowType shadow_type,
21527 GdkRectangle *area,
21528 GtkWidget *widget,
21529 gchar *detail,
21530 gint x,
21531 gint y,
21532 gint width,
21533 gint height,
21534 GtkPositionType gap_side,
21535 gint gap_x,
21536 gint gap_width);
21537 void gtk_paint_extension (GtkStyle *style,
21538 GdkWindow *window,
21539 GtkStateType state_type,
21540 GtkShadowType shadow_type,
21541 GdkRectangle *area,
21542 GtkWidget *widget,
21543 gchar *detail,
21544 gint x,
21545 gint y,
21546 gint width,
21547 gint height,
21548 GtkPositionType gap_side);
21549 void gtk_paint_focus (GtkStyle *style,
21550 GdkWindow *window,
21551 GtkStateType state_type,
21552 GdkRectangle *area,
21553 GtkWidget *widget,
21554 const gchar *detail,
21555 gint x,
21556 gint y,
21557 gint width,
21558 gint height);
21559 void gtk_paint_slider (GtkStyle *style,
21560 GdkWindow *window,
21561 GtkStateType state_type,
21562 GtkShadowType shadow_type,
21563 GdkRectangle *area,
21564 GtkWidget *widget,
21565 const gchar *detail,
21566 gint x,
21567 gint y,
21568 gint width,
21569 gint height,
21570 GtkOrientation orientation);
21571 void gtk_paint_handle (GtkStyle *style,
21572 GdkWindow *window,
21573 GtkStateType state_type,
21574 GtkShadowType shadow_type,
21575 GdkRectangle *area,
21576 GtkWidget *widget,
21577 const gchar *detail,
21578 gint x,
21579 gint y,
21580 gint width,
21581 gint height,
21582 GtkOrientation orientation);
21583 void gtk_paint_expander (GtkStyle *style,
21584 GdkWindow *window,
21585 GtkStateType state_type,
21586 GdkRectangle *area,
21587 GtkWidget *widget,
21588 const gchar *detail,
21589 gint x,
21590 gint y,
21591 GtkExpanderStyle expander_style);
21592 void gtk_paint_layout (GtkStyle *style,
21593 GdkWindow *window,
21594 GtkStateType state_type,
21595 gboolean use_text,
21596 GdkRectangle *area,
21597 GtkWidget *widget,
21598 const gchar *detail,
21599 gint x,
21600 gint y,
21601 PangoLayout *layout);
21602
21603 void gtk_paint_resize_grip (GtkStyle *style,
21604 GdkWindow *window,
21605 GtkStateType state_type,
21606 GdkRectangle *area,
21607 GtkWidget *widget,
21608 const gchar *detail,
21609 GdkWindowEdge edge,
21610 gint x,
21611 gint y,
21612 gint width,
21613 gint height);
21614
21615
21616 GType gtk_border_get_type (void) __attribute__((__const__));
21617 GtkBorder *gtk_border_copy (const GtkBorder *border_);
21618 void gtk_border_free ( GtkBorder *border_);
21619
21620
21621 const GValue* _gtk_style_peek_property_value (GtkStyle *style,
21622 GType widget_type,
21623 GParamSpec *pspec,
21624 GtkRcPropertyParser parser);
21625
21626 void _gtk_style_init_for_settings (GtkStyle *style,
21627 GtkSettings *settings);
21628
21629
21630
21631
21632 void gtk_draw_string (GtkStyle *style,
21633 GdkWindow *window,
21634 GtkStateType state_type,
21635 gint x,
21636 gint y,
21637 const gchar *string);
21638 void gtk_paint_string (GtkStyle *style,
21639 GdkWindow *window,
21640 GtkStateType state_type,
21641 GdkRectangle *area,
21642 GtkWidget *widget,
21643 const gchar *detail,
21644 gint x,
21645 gint y,
21646 const gchar *string);
21647
21648
21649 void gtk_draw_insertion_cursor (GtkWidget *widget,
21650 GdkDrawable *drawable,
21651 GdkRectangle *area,
21652 GdkRectangle *location,
21653 gboolean is_primary,
21654 GtkTextDirection direction,
21655 gboolean draw_arrow);
21656 # 35 "/usr/include/gtk-2.0/gtk/gtkwidget.h" 2
21657
21658 # 1 "/usr/include/gtk-2.0/gtk/gtksettings.h" 1
21659 # 21 "/usr/include/gtk-2.0/gtk/gtksettings.h"
21660
21661 # 1 "/usr/include/gtk-2.0/gtk/gtkrc.h" 1
21662 # 33 "/usr/include/gtk-2.0/gtk/gtkrc.h"
21663
21664
21665
21666 typedef struct _GtkIconFactory GtkIconFactory;
21667 typedef struct _GtkRcContext GtkRcContext;
21668
21669 typedef struct _GtkRcStyleClass GtkRcStyleClass;
21670 # 48 "/usr/include/gtk-2.0/gtk/gtkrc.h"
21671 typedef enum
21672 {
21673 GTK_RC_FG = 1 << 0,
21674 GTK_RC_BG = 1 << 1,
21675 GTK_RC_TEXT = 1 << 2,
21676 GTK_RC_BASE = 1 << 3
21677 } GtkRcFlags;
21678
21679 struct _GtkRcStyle
21680 {
21681 GObject parent_instance;
21682
21683
21684
21685 gchar *name;
21686 gchar *bg_pixmap_name[5];
21687 PangoFontDescription *font_desc;
21688
21689 GtkRcFlags color_flags[5];
21690 GdkColor fg[5];
21691 GdkColor bg[5];
21692 GdkColor text[5];
21693 GdkColor base[5];
21694
21695 gint xthickness;
21696 gint ythickness;
21697
21698
21699 GArray *rc_properties;
21700
21701
21702 GSList *rc_style_lists;
21703
21704 GSList *icon_factories;
21705
21706 guint engine_specified : 1;
21707 };
21708
21709 struct _GtkRcStyleClass
21710 {
21711 GObjectClass parent_class;
21712
21713
21714
21715
21716
21717
21718 GtkRcStyle * (*create_rc_style) (GtkRcStyle *rc_style);
21719
21720
21721
21722
21723
21724 guint (*parse) (GtkRcStyle *rc_style,
21725 GtkSettings *settings,
21726 GScanner *scanner);
21727
21728
21729
21730
21731 void (*merge) (GtkRcStyle *dest,
21732 GtkRcStyle *src);
21733
21734
21735
21736 GtkStyle * (*create_style) (GtkRcStyle *rc_style);
21737
21738
21739 void (*_gtk_reserved1) (void);
21740 void (*_gtk_reserved2) (void);
21741 void (*_gtk_reserved3) (void);
21742 void (*_gtk_reserved4) (void);
21743 };
21744 # 129 "/usr/include/gtk-2.0/gtk/gtkrc.h"
21745 void _gtk_rc_init (void);
21746 void gtk_rc_add_default_file (const gchar *filename);
21747 void gtk_rc_set_default_files (gchar **filenames);
21748 gchar** gtk_rc_get_default_files (void);
21749 GtkStyle* gtk_rc_get_style (GtkWidget *widget);
21750 GtkStyle* gtk_rc_get_style_by_paths (GtkSettings *settings,
21751 const char *widget_path,
21752 const char *class_path,
21753 GType type);
21754
21755 gboolean gtk_rc_reparse_all_for_settings (GtkSettings *settings,
21756 gboolean force_load);
21757 void gtk_rc_reset_styles (GtkSettings *settings);
21758
21759 gchar* gtk_rc_find_pixmap_in_path (GtkSettings *settings,
21760 GScanner *scanner,
21761 const gchar *pixmap_file);
21762
21763 void gtk_rc_parse (const gchar *filename);
21764 void gtk_rc_parse_string (const gchar *rc_string);
21765 gboolean gtk_rc_reparse_all (void);
21766
21767
21768 void gtk_rc_add_widget_name_style (GtkRcStyle *rc_style,
21769 const gchar *pattern);
21770 void gtk_rc_add_widget_class_style (GtkRcStyle *rc_style,
21771 const gchar *pattern);
21772 void gtk_rc_add_class_style (GtkRcStyle *rc_style,
21773 const gchar *pattern);
21774
21775
21776
21777 GType gtk_rc_style_get_type (void) __attribute__((__const__));
21778 GtkRcStyle* gtk_rc_style_new (void);
21779 GtkRcStyle* gtk_rc_style_copy (GtkRcStyle *orig);
21780 void gtk_rc_style_ref (GtkRcStyle *rc_style);
21781 void gtk_rc_style_unref (GtkRcStyle *rc_style);
21782
21783 gchar* gtk_rc_find_module_in_path (const gchar *module_file);
21784 gchar* gtk_rc_get_theme_dir (void);
21785 gchar* gtk_rc_get_module_dir (void);
21786 gchar* gtk_rc_get_im_module_path (void);
21787 gchar* gtk_rc_get_im_module_file (void);
21788
21789
21790 typedef enum {
21791 GTK_RC_TOKEN_INVALID = G_TOKEN_LAST,
21792 GTK_RC_TOKEN_INCLUDE,
21793 GTK_RC_TOKEN_NORMAL,
21794 GTK_RC_TOKEN_ACTIVE,
21795 GTK_RC_TOKEN_PRELIGHT,
21796 GTK_RC_TOKEN_SELECTED,
21797 GTK_RC_TOKEN_INSENSITIVE,
21798 GTK_RC_TOKEN_FG,
21799 GTK_RC_TOKEN_BG,
21800 GTK_RC_TOKEN_TEXT,
21801 GTK_RC_TOKEN_BASE,
21802 GTK_RC_TOKEN_XTHICKNESS,
21803 GTK_RC_TOKEN_YTHICKNESS,
21804 GTK_RC_TOKEN_FONT,
21805 GTK_RC_TOKEN_FONTSET,
21806 GTK_RC_TOKEN_FONT_NAME,
21807 GTK_RC_TOKEN_BG_PIXMAP,
21808 GTK_RC_TOKEN_PIXMAP_PATH,
21809 GTK_RC_TOKEN_STYLE,
21810 GTK_RC_TOKEN_BINDING,
21811 GTK_RC_TOKEN_BIND,
21812 GTK_RC_TOKEN_WIDGET,
21813 GTK_RC_TOKEN_WIDGET_CLASS,
21814 GTK_RC_TOKEN_CLASS,
21815 GTK_RC_TOKEN_LOWEST,
21816 GTK_RC_TOKEN_GTK,
21817 GTK_RC_TOKEN_APPLICATION,
21818 GTK_RC_TOKEN_THEME,
21819 GTK_RC_TOKEN_RC,
21820 GTK_RC_TOKEN_HIGHEST,
21821 GTK_RC_TOKEN_ENGINE,
21822 GTK_RC_TOKEN_MODULE_PATH,
21823 GTK_RC_TOKEN_IM_MODULE_PATH,
21824 GTK_RC_TOKEN_IM_MODULE_FILE,
21825 GTK_RC_TOKEN_STOCK,
21826 GTK_RC_TOKEN_LTR,
21827 GTK_RC_TOKEN_RTL,
21828 GTK_RC_TOKEN_LAST
21829 } GtkRcTokenType;
21830
21831 GScanner* gtk_rc_scanner_new (void);
21832 guint gtk_rc_parse_color (GScanner *scanner,
21833 GdkColor *color);
21834 guint gtk_rc_parse_state (GScanner *scanner,
21835 GtkStateType *state);
21836 guint gtk_rc_parse_priority (GScanner *scanner,
21837 GtkPathPriorityType *priority);
21838
21839
21840
21841
21842 struct _GtkRcProperty
21843 {
21844
21845 GQuark type_name;
21846 GQuark property_name;
21847
21848
21849 gchar *origin;
21850 GValue value;
21851 };
21852 const GtkRcProperty* _gtk_rc_style_lookup_rc_property (GtkRcStyle *rc_style,
21853 GQuark type_name,
21854 GQuark property_name);
21855
21856 const gchar* _gtk_rc_context_get_default_font_name (GtkSettings *settings);
21857 # 22 "/usr/include/gtk-2.0/gtk/gtksettings.h" 2
21858 # 36 "/usr/include/gtk-2.0/gtk/gtksettings.h"
21859 typedef struct _GtkSettingsClass GtkSettingsClass;
21860 typedef struct _GtkSettingsValue GtkSettingsValue;
21861 typedef struct _GtkSettingsPropertyValue GtkSettingsPropertyValue;
21862
21863
21864
21865 struct _GtkSettings
21866 {
21867 GObject parent_instance;
21868
21869 GData *queued_settings;
21870 GtkSettingsPropertyValue *property_values;
21871
21872 GtkRcContext *rc_context;
21873 GdkScreen *screen;
21874 };
21875 struct _GtkSettingsClass
21876 {
21877 GObjectClass parent_class;
21878
21879 };
21880 struct _GtkSettingsValue
21881 {
21882
21883
21884
21885 gchar *origin;
21886
21887
21888
21889
21890 GValue value;
21891 };
21892
21893
21894
21895 GType gtk_settings_get_type (void) __attribute__((__const__));
21896
21897
21898
21899 GtkSettings* gtk_settings_get_for_screen (GdkScreen *screen);
21900
21901 void gtk_settings_install_property (GParamSpec *pspec);
21902 void gtk_settings_install_property_parser (GParamSpec *pspec,
21903 GtkRcPropertyParser parser);
21904
21905
21906 gboolean gtk_rc_property_parse_color (const GParamSpec *pspec,
21907 const GString *gstring,
21908 GValue *property_value);
21909 gboolean gtk_rc_property_parse_enum (const GParamSpec *pspec,
21910 const GString *gstring,
21911 GValue *property_value);
21912 gboolean gtk_rc_property_parse_flags (const GParamSpec *pspec,
21913 const GString *gstring,
21914 GValue *property_value);
21915 gboolean gtk_rc_property_parse_requisition (const GParamSpec *pspec,
21916 const GString *gstring,
21917 GValue *property_value);
21918 gboolean gtk_rc_property_parse_border (const GParamSpec *pspec,
21919 const GString *gstring,
21920 GValue *property_value);
21921
21922
21923 void gtk_settings_set_property_value (GtkSettings *settings,
21924 const gchar *name,
21925 const GtkSettingsValue *svalue);
21926 void gtk_settings_set_string_property (GtkSettings *settings,
21927 const gchar *name,
21928 const gchar *v_string,
21929 const gchar *origin);
21930 void gtk_settings_set_long_property (GtkSettings *settings,
21931 const gchar *name,
21932 glong v_long,
21933 const gchar *origin);
21934 void gtk_settings_set_double_property (GtkSettings *settings,
21935 const gchar *name,
21936 gdouble v_double,
21937 const gchar *origin);
21938
21939
21940
21941 void _gtk_settings_set_property_value_from_rc (GtkSettings *settings,
21942 const gchar *name,
21943 const GtkSettingsValue *svalue);
21944 void _gtk_settings_reset_rc_values (GtkSettings *settings);
21945
21946 void _gtk_settings_handle_event (GdkEventSetting *event);
21947 GtkRcPropertyParser _gtk_rc_property_parser_from_type (GType type);
21948 gboolean _gtk_settings_parse_convert (GtkRcPropertyParser parser,
21949 const GValue *src_value,
21950 GParamSpec *pspec,
21951 GValue *dest_value);
21952 # 36 "/usr/include/gtk-2.0/gtk/gtkwidget.h" 2
21953
21954 # 1 "/usr/include/atk-1.0/atk/atkobject.h" 1
21955 # 28 "/usr/include/atk-1.0/atk/atkobject.h"
21956
21957 # 1 "/usr/include/atk-1.0/atk/atkstate.h" 1
21958 # 73 "/usr/include/atk-1.0/atk/atkstate.h"
21959 typedef enum
21960 {
21961 ATK_STATE_INVALID,
21962 ATK_STATE_ACTIVE,
21963 ATK_STATE_ARMED,
21964 ATK_STATE_BUSY,
21965 ATK_STATE_CHECKED,
21966 ATK_STATE_DEFUNCT,
21967 ATK_STATE_EDITABLE,
21968 ATK_STATE_ENABLED,
21969 ATK_STATE_EXPANDABLE,
21970 ATK_STATE_EXPANDED,
21971 ATK_STATE_FOCUSABLE,
21972 ATK_STATE_FOCUSED,
21973 ATK_STATE_HORIZONTAL,
21974 ATK_STATE_ICONIFIED,
21975 ATK_STATE_MODAL,
21976 ATK_STATE_MULTI_LINE,
21977 ATK_STATE_MULTISELECTABLE,
21978 ATK_STATE_OPAQUE,
21979 ATK_STATE_PRESSED,
21980 ATK_STATE_RESIZABLE,
21981 ATK_STATE_SELECTABLE,
21982 ATK_STATE_SELECTED,
21983 ATK_STATE_SENSITIVE,
21984 ATK_STATE_SHOWING,
21985 ATK_STATE_SINGLE_LINE,
21986 ATK_STATE_STALE,
21987 ATK_STATE_TRANSIENT,
21988 ATK_STATE_VERTICAL,
21989 ATK_STATE_VISIBLE,
21990 ATK_STATE_MANAGES_DESCENDANTS,
21991 ATK_STATE_INDETERMINATE,
21992 ATK_STATE_TRUNCATED,
21993 ATK_STATE_REQUIRED,
21994 ATK_STATE_INVALID_ENTRY,
21995 ATK_STATE_SUPPORTS_AUTOCOMPLETION,
21996 ATK_STATE_SELECTABLE_TEXT,
21997
21998 ATK_STATE_LAST_DEFINED
21999 } AtkStateType;
22000
22001 typedef guint64 AtkState;
22002
22003 AtkStateType atk_state_type_register (const gchar *name);
22004
22005 const gchar* atk_state_type_get_name (AtkStateType type);
22006 AtkStateType atk_state_type_for_name (const gchar *name);
22007 # 29 "/usr/include/atk-1.0/atk/atkobject.h" 2
22008
22009 # 1 "/usr/include/atk-1.0/atk/atkrelationtype.h" 1
22010 # 52 "/usr/include/atk-1.0/atk/atkrelationtype.h"
22011 typedef enum
22012 {
22013 ATK_RELATION_NULL = 0,
22014 ATK_RELATION_CONTROLLED_BY,
22015 ATK_RELATION_CONTROLLER_FOR,
22016 ATK_RELATION_LABEL_FOR,
22017 ATK_RELATION_LABELLED_BY,
22018 ATK_RELATION_MEMBER_OF,
22019 ATK_RELATION_NODE_CHILD_OF,
22020 ATK_RELATION_FLOWS_TO,
22021 ATK_RELATION_FLOWS_FROM,
22022 ATK_RELATION_SUBWINDOW_OF,
22023 ATK_RELATION_EMBEDS,
22024 ATK_RELATION_EMBEDDED_BY,
22025 ATK_RELATION_POPUP_FOR,
22026 ATK_RELATION_PARENT_WINDOW_OF,
22027 ATK_RELATION_LAST_DEFINED
22028 } AtkRelationType;
22029 # 30 "/usr/include/atk-1.0/atk/atkobject.h" 2
22030 # 136 "/usr/include/atk-1.0/atk/atkobject.h"
22031 typedef enum
22032 {
22033 ATK_ROLE_INVALID = 0,
22034 ATK_ROLE_ACCEL_LABEL,
22035 ATK_ROLE_ALERT,
22036 ATK_ROLE_ANIMATION,
22037 ATK_ROLE_ARROW,
22038 ATK_ROLE_CALENDAR,
22039 ATK_ROLE_CANVAS,
22040 ATK_ROLE_CHECK_BOX,
22041 ATK_ROLE_CHECK_MENU_ITEM,
22042 ATK_ROLE_COLOR_CHOOSER,
22043 ATK_ROLE_COLUMN_HEADER,
22044 ATK_ROLE_COMBO_BOX,
22045 ATK_ROLE_DATE_EDITOR,
22046 ATK_ROLE_DESKTOP_ICON,
22047 ATK_ROLE_DESKTOP_FRAME,
22048 ATK_ROLE_DIAL,
22049 ATK_ROLE_DIALOG,
22050 ATK_ROLE_DIRECTORY_PANE,
22051 ATK_ROLE_DRAWING_AREA,
22052 ATK_ROLE_FILE_CHOOSER,
22053 ATK_ROLE_FILLER,
22054 ATK_ROLE_FONT_CHOOSER,
22055 ATK_ROLE_FRAME,
22056 ATK_ROLE_GLASS_PANE,
22057 ATK_ROLE_HTML_CONTAINER,
22058 ATK_ROLE_ICON,
22059 ATK_ROLE_IMAGE,
22060 ATK_ROLE_INTERNAL_FRAME,
22061 ATK_ROLE_LABEL,
22062 ATK_ROLE_LAYERED_PANE,
22063 ATK_ROLE_LIST,
22064 ATK_ROLE_LIST_ITEM,
22065 ATK_ROLE_MENU,
22066 ATK_ROLE_MENU_BAR,
22067 ATK_ROLE_MENU_ITEM,
22068 ATK_ROLE_OPTION_PANE,
22069 ATK_ROLE_PAGE_TAB,
22070 ATK_ROLE_PAGE_TAB_LIST,
22071 ATK_ROLE_PANEL,
22072 ATK_ROLE_PASSWORD_TEXT,
22073 ATK_ROLE_POPUP_MENU,
22074 ATK_ROLE_PROGRESS_BAR,
22075 ATK_ROLE_PUSH_BUTTON,
22076 ATK_ROLE_RADIO_BUTTON,
22077 ATK_ROLE_RADIO_MENU_ITEM,
22078 ATK_ROLE_ROOT_PANE,
22079 ATK_ROLE_ROW_HEADER,
22080 ATK_ROLE_SCROLL_BAR,
22081 ATK_ROLE_SCROLL_PANE,
22082 ATK_ROLE_SEPARATOR,
22083 ATK_ROLE_SLIDER,
22084 ATK_ROLE_SPLIT_PANE,
22085 ATK_ROLE_SPIN_BUTTON,
22086 ATK_ROLE_STATUSBAR,
22087 ATK_ROLE_TABLE,
22088 ATK_ROLE_TABLE_CELL,
22089 ATK_ROLE_TABLE_COLUMN_HEADER,
22090 ATK_ROLE_TABLE_ROW_HEADER,
22091 ATK_ROLE_TEAR_OFF_MENU_ITEM,
22092 ATK_ROLE_TERMINAL,
22093 ATK_ROLE_TEXT,
22094 ATK_ROLE_TOGGLE_BUTTON,
22095 ATK_ROLE_TOOL_BAR,
22096 ATK_ROLE_TOOL_TIP,
22097 ATK_ROLE_TREE,
22098 ATK_ROLE_TREE_TABLE,
22099 ATK_ROLE_UNKNOWN,
22100 ATK_ROLE_VIEWPORT,
22101 ATK_ROLE_WINDOW,
22102 ATK_ROLE_HEADER,
22103 ATK_ROLE_FOOTER,
22104 ATK_ROLE_PARAGRAPH,
22105 ATK_ROLE_RULER,
22106 ATK_ROLE_APPLICATION,
22107 ATK_ROLE_AUTOCOMPLETE,
22108 ATK_ROLE_EDITBAR,
22109 ATK_ROLE_EMBEDDED,
22110 ATK_ROLE_ENTRY,
22111 ATK_ROLE_CHART,
22112 ATK_ROLE_CAPTION,
22113 ATK_ROLE_DOCUMENT_FRAME,
22114 ATK_ROLE_HEADING,
22115 ATK_ROLE_PAGE,
22116 ATK_ROLE_SECTION,
22117 ATK_ROLE_REDUNDANT_OBJECT,
22118 ATK_ROLE_LAST_DEFINED
22119 } AtkRole;
22120
22121 AtkRole atk_role_register (const gchar *name);
22122 # 245 "/usr/include/atk-1.0/atk/atkobject.h"
22123 typedef enum
22124 {
22125 ATK_LAYER_INVALID,
22126 ATK_LAYER_BACKGROUND,
22127 ATK_LAYER_CANVAS,
22128 ATK_LAYER_WIDGET,
22129 ATK_LAYER_MDI,
22130 ATK_LAYER_POPUP,
22131 ATK_LAYER_OVERLAY,
22132 ATK_LAYER_WINDOW
22133 } AtkLayer;
22134 # 264 "/usr/include/atk-1.0/atk/atkobject.h"
22135 typedef GSList AtkAttributeSet;
22136 # 276 "/usr/include/atk-1.0/atk/atkobject.h"
22137 typedef struct _AtkAttribute AtkAttribute;
22138
22139 struct _AtkAttribute {
22140 gchar* name;
22141 gchar* value;
22142 };
22143 # 296 "/usr/include/atk-1.0/atk/atkobject.h"
22144 typedef struct _AtkImplementor AtkImplementor;
22145 typedef struct _AtkImplementorIface AtkImplementorIface;
22146
22147
22148 typedef struct _AtkObject AtkObject;
22149 typedef struct _AtkObjectClass AtkObjectClass;
22150 typedef struct _AtkRelationSet AtkRelationSet;
22151 typedef struct _AtkStateSet AtkStateSet;
22152 # 323 "/usr/include/atk-1.0/atk/atkobject.h"
22153 struct _AtkPropertyValues
22154 {
22155 const gchar *property_name;
22156 GValue old_value;
22157 GValue new_value;
22158 };
22159
22160 typedef struct _AtkPropertyValues AtkPropertyValues;
22161
22162 typedef gboolean (*AtkFunction) (gpointer data);
22163 # 345 "/usr/include/atk-1.0/atk/atkobject.h"
22164 typedef void (*AtkPropertyChangeHandler) (AtkObject*, AtkPropertyValues*);
22165
22166
22167 struct _AtkObject
22168 {
22169 GObject parent;
22170
22171 gchar *description;
22172 gchar *name;
22173 AtkObject *accessible_parent;
22174 AtkRole role;
22175 AtkRelationSet *relation_set;
22176 AtkLayer layer;
22177 };
22178
22179 struct _AtkObjectClass
22180 {
22181 GObjectClass parent;
22182
22183
22184
22185
22186 const gchar* (* get_name) (AtkObject *accessible);
22187
22188
22189
22190 const gchar* (* get_description) (AtkObject *accessible);
22191
22192
22193
22194 AtkObject* (*get_parent) (AtkObject *accessible);
22195
22196
22197
22198
22199 gint (* get_n_children) (AtkObject *accessible);
22200
22201
22202
22203
22204
22205 AtkObject* (* ref_child) (AtkObject *accessible,
22206 gint i);
22207
22208
22209
22210
22211 gint (* get_index_in_parent) (AtkObject *accessible);
22212
22213
22214
22215 AtkRelationSet* (* ref_relation_set) (AtkObject *accessible);
22216
22217
22218
22219 AtkRole (* get_role) (AtkObject *accessible);
22220 AtkLayer (* get_layer) (AtkObject *accessible);
22221 gint (* get_mdi_zorder) (AtkObject *accessible);
22222
22223
22224
22225 AtkStateSet* (* ref_state_set) (AtkObject *accessible);
22226
22227
22228
22229 void (* set_name) (AtkObject *accessible,
22230 const gchar *name);
22231
22232
22233
22234 void (* set_description) (AtkObject *accessible,
22235 const gchar *description);
22236
22237
22238
22239 void (* set_parent) (AtkObject *accessible,
22240 AtkObject *parent);
22241
22242
22243
22244 void (* set_role) (AtkObject *accessible,
22245 AtkRole role);
22246
22247
22248
22249 guint (* connect_property_change_handler) (AtkObject
22250 *accessible,
22251 AtkPropertyChangeHandler *handler);
22252
22253
22254
22255
22256 void (* remove_property_change_handler) (AtkObject
22257 *accessible,
22258 guint
22259 handler_id);
22260 void (* initialize) (AtkObject *accessible,
22261 gpointer data);
22262
22263
22264
22265
22266 void (* children_changed) (AtkObject *accessible,
22267 guint change_index,
22268 gpointer changed_child);
22269
22270
22271
22272
22273 void (* focus_event) (AtkObject *accessible,
22274 gboolean focus_in);
22275
22276
22277
22278
22279 void (* property_change) (AtkObject *accessible,
22280 AtkPropertyValues *values);
22281
22282
22283
22284
22285 void (* state_change) (AtkObject *accessible,
22286 const gchar *name,
22287 gboolean state_set);
22288
22289
22290
22291
22292 void (*visible_data_changed) (AtkObject *accessible);
22293
22294
22295
22296
22297
22298
22299
22300 void (*active_descendant_changed) (AtkObject *accessible,
22301 gpointer *child);
22302
22303
22304
22305
22306
22307 AtkAttributeSet* (*get_attributes) (AtkObject *accessible);
22308 AtkFunction pad1;
22309 AtkFunction pad2;
22310 };
22311
22312 GType atk_object_get_type (void);
22313
22314 struct _AtkImplementorIface
22315 {
22316 GTypeInterface parent;
22317
22318 AtkObject* (*ref_accessible) (AtkImplementor *implementor);
22319 };
22320 GType atk_implementor_get_type (void);
22321 # 515 "/usr/include/atk-1.0/atk/atkobject.h"
22322 AtkObject* atk_implementor_ref_accessible (AtkImplementor *implementor);
22323
22324
22325
22326
22327
22328 const gchar* atk_object_get_name (AtkObject *accessible);
22329 const gchar* atk_object_get_description (AtkObject *accessible);
22330 AtkObject* atk_object_get_parent (AtkObject *accessible);
22331 gint atk_object_get_n_accessible_children (AtkObject *accessible);
22332 AtkObject* atk_object_ref_accessible_child (AtkObject *accessible,
22333 gint i);
22334 AtkRelationSet* atk_object_ref_relation_set (AtkObject *accessible);
22335 AtkRole atk_object_get_role (AtkObject *accessible);
22336 AtkLayer atk_object_get_layer (AtkObject *accessible);
22337 gint atk_object_get_mdi_zorder (AtkObject *accessible);
22338 AtkAttributeSet* atk_object_get_attributes (AtkObject *accessible);
22339 AtkStateSet* atk_object_ref_state_set (AtkObject *accessible);
22340 gint atk_object_get_index_in_parent (AtkObject *accessible);
22341 void atk_object_set_name (AtkObject *accessible,
22342 const gchar *name);
22343 void atk_object_set_description (AtkObject *accessible,
22344 const gchar *description);
22345 void atk_object_set_parent (AtkObject *accessible,
22346 AtkObject *parent);
22347 void atk_object_set_role (AtkObject *accessible,
22348 AtkRole role);
22349
22350
22351 guint atk_object_connect_property_change_handler (AtkObject *accessible,
22352 AtkPropertyChangeHandler *handler);
22353 void atk_object_remove_property_change_handler (AtkObject *accessible,
22354 guint handler_id);
22355
22356 void atk_object_notify_state_change (AtkObject *accessible,
22357 AtkState state,
22358 gboolean value);
22359 void atk_object_initialize (AtkObject *accessible,
22360 gpointer data);
22361
22362 const gchar* atk_role_get_name (AtkRole role);
22363 AtkRole atk_role_for_name (const gchar *name);
22364
22365
22366
22367 gboolean atk_object_add_relationship (AtkObject *object,
22368 AtkRelationType relationship,
22369 AtkObject *target);
22370 gboolean atk_object_remove_relationship (AtkObject *object,
22371 AtkRelationType relationship,
22372 AtkObject *target);
22373 const gchar* atk_role_get_localized_name (AtkRole role);
22374 # 37 "/usr/include/gtk-2.0/gtk/gtkwidget.h" 2
22375
22376
22377
22378
22379
22380
22381 typedef enum
22382 {
22383 GTK_TOPLEVEL = 1 << 4,
22384 GTK_NO_WINDOW = 1 << 5,
22385 GTK_REALIZED = 1 << 6,
22386 GTK_MAPPED = 1 << 7,
22387 GTK_VISIBLE = 1 << 8,
22388 GTK_SENSITIVE = 1 << 9,
22389 GTK_PARENT_SENSITIVE = 1 << 10,
22390 GTK_CAN_FOCUS = 1 << 11,
22391 GTK_HAS_FOCUS = 1 << 12,
22392
22393
22394
22395
22396 GTK_CAN_DEFAULT = 1 << 13,
22397
22398
22399
22400
22401 GTK_HAS_DEFAULT = 1 << 14,
22402
22403 GTK_HAS_GRAB = 1 << 15,
22404 GTK_RC_STYLE = 1 << 16,
22405 GTK_COMPOSITE_CHILD = 1 << 17,
22406 GTK_NO_REPARENT = 1 << 18,
22407 GTK_APP_PAINTABLE = 1 << 19,
22408
22409
22410
22411
22412 GTK_RECEIVES_DEFAULT = 1 << 20,
22413
22414 GTK_DOUBLE_BUFFERED = 1 << 21,
22415 GTK_NO_SHOW_ALL = 1 << 22
22416 } GtkWidgetFlags;
22417
22418
22419 typedef enum
22420 {
22421 GTK_WIDGET_HELP_TOOLTIP,
22422 GTK_WIDGET_HELP_WHATS_THIS
22423 } GtkWidgetHelpType;
22424 # 136 "/usr/include/gtk-2.0/gtk/gtkwidget.h"
22425 typedef struct _GtkRequisition GtkRequisition;
22426 typedef GdkRectangle GtkAllocation;
22427 typedef struct _GtkSelectionData GtkSelectionData;
22428 typedef struct _GtkWidgetClass GtkWidgetClass;
22429 typedef struct _GtkWidgetAuxInfo GtkWidgetAuxInfo;
22430 typedef struct _GtkWidgetShapeInfo GtkWidgetShapeInfo;
22431 typedef struct _GtkClipboard GtkClipboard;
22432 typedef void (*GtkCallback) (GtkWidget *widget,
22433 gpointer data);
22434
22435
22436
22437
22438 struct _GtkRequisition
22439 {
22440 gint width;
22441 gint height;
22442 };
22443
22444
22445
22446
22447
22448
22449 struct _GtkWidget
22450 {
22451
22452
22453
22454
22455
22456
22457 GtkObject object;
22458
22459
22460
22461
22462
22463
22464 guint16 private_flags;
22465
22466
22467
22468
22469 guint8 state;
22470
22471
22472
22473
22474
22475
22476
22477 guint8 saved_state;
22478
22479
22480
22481
22482
22483
22484
22485 gchar *name;
22486 # 205 "/usr/include/gtk-2.0/gtk/gtkwidget.h"
22487 GtkStyle *style;
22488
22489
22490
22491 GtkRequisition requisition;
22492
22493
22494
22495 GtkAllocation allocation;
22496
22497
22498
22499
22500
22501 GdkWindow *window;
22502
22503
22504
22505 GtkWidget *parent;
22506 };
22507
22508 struct _GtkWidgetClass
22509 {
22510
22511
22512
22513
22514
22515
22516 GtkObjectClass parent_class;
22517
22518
22519
22520 guint activate_signal;
22521
22522 guint set_scroll_adjustments_signal;
22523
22524
22525
22526
22527 void (*dispatch_child_properties_changed) (GtkWidget *widget,
22528 guint n_pspecs,
22529 GParamSpec **pspecs);
22530
22531
22532 void (* show) (GtkWidget *widget);
22533 void (* show_all) (GtkWidget *widget);
22534 void (* hide) (GtkWidget *widget);
22535 void (* hide_all) (GtkWidget *widget);
22536 void (* map) (GtkWidget *widget);
22537 void (* unmap) (GtkWidget *widget);
22538 void (* realize) (GtkWidget *widget);
22539 void (* unrealize) (GtkWidget *widget);
22540 void (* size_request) (GtkWidget *widget,
22541 GtkRequisition *requisition);
22542 void (* size_allocate) (GtkWidget *widget,
22543 GtkAllocation *allocation);
22544 void (* state_changed) (GtkWidget *widget,
22545 GtkStateType previous_state);
22546 void (* parent_set) (GtkWidget *widget,
22547 GtkWidget *previous_parent);
22548 void (* hierarchy_changed) (GtkWidget *widget,
22549 GtkWidget *previous_toplevel);
22550 void (* style_set) (GtkWidget *widget,
22551 GtkStyle *previous_style);
22552 void (* direction_changed) (GtkWidget *widget,
22553 GtkTextDirection previous_direction);
22554 void (* grab_notify) (GtkWidget *widget,
22555 gboolean was_grabbed);
22556 void (* child_notify) (GtkWidget *widget,
22557 GParamSpec *pspec);
22558
22559
22560 gboolean (* mnemonic_activate) (GtkWidget *widget,
22561 gboolean group_cycling);
22562
22563
22564 void (* grab_focus) (GtkWidget *widget);
22565 gboolean (* focus) (GtkWidget *widget,
22566 GtkDirectionType direction);
22567
22568
22569 gboolean (* event) (GtkWidget *widget,
22570 GdkEvent *event);
22571 gboolean (* button_press_event) (GtkWidget *widget,
22572 GdkEventButton *event);
22573 gboolean (* button_release_event) (GtkWidget *widget,
22574 GdkEventButton *event);
22575 gboolean (* scroll_event) (GtkWidget *widget,
22576 GdkEventScroll *event);
22577 gboolean (* motion_notify_event) (GtkWidget *widget,
22578 GdkEventMotion *event);
22579 gboolean (* delete_event) (GtkWidget *widget,
22580 GdkEventAny *event);
22581 gboolean (* destroy_event) (GtkWidget *widget,
22582 GdkEventAny *event);
22583 gboolean (* expose_event) (GtkWidget *widget,
22584 GdkEventExpose *event);
22585 gboolean (* key_press_event) (GtkWidget *widget,
22586 GdkEventKey *event);
22587 gboolean (* key_release_event) (GtkWidget *widget,
22588 GdkEventKey *event);
22589 gboolean (* enter_notify_event) (GtkWidget *widget,
22590 GdkEventCrossing *event);
22591 gboolean (* leave_notify_event) (GtkWidget *widget,
22592 GdkEventCrossing *event);
22593 gboolean (* configure_event) (GtkWidget *widget,
22594 GdkEventConfigure *event);
22595 gboolean (* focus_in_event) (GtkWidget *widget,
22596 GdkEventFocus *event);
22597 gboolean (* focus_out_event) (GtkWidget *widget,
22598 GdkEventFocus *event);
22599 gboolean (* map_event) (GtkWidget *widget,
22600 GdkEventAny *event);
22601 gboolean (* unmap_event) (GtkWidget *widget,
22602 GdkEventAny *event);
22603 gboolean (* property_notify_event) (GtkWidget *widget,
22604 GdkEventProperty *event);
22605 gboolean (* selection_clear_event) (GtkWidget *widget,
22606 GdkEventSelection *event);
22607 gboolean (* selection_request_event) (GtkWidget *widget,
22608 GdkEventSelection *event);
22609 gboolean (* selection_notify_event) (GtkWidget *widget,
22610 GdkEventSelection *event);
22611 gboolean (* proximity_in_event) (GtkWidget *widget,
22612 GdkEventProximity *event);
22613 gboolean (* proximity_out_event) (GtkWidget *widget,
22614 GdkEventProximity *event);
22615 gboolean (* visibility_notify_event) (GtkWidget *widget,
22616 GdkEventVisibility *event);
22617 gboolean (* client_event) (GtkWidget *widget,
22618 GdkEventClient *event);
22619 gboolean (* no_expose_event) (GtkWidget *widget,
22620 GdkEventAny *event);
22621 gboolean (* window_state_event) (GtkWidget *widget,
22622 GdkEventWindowState *event);
22623
22624
22625 void (* selection_get) (GtkWidget *widget,
22626 GtkSelectionData *selection_data,
22627 guint info,
22628 guint time_);
22629 void (* selection_received) (GtkWidget *widget,
22630 GtkSelectionData *selection_data,
22631 guint time_);
22632
22633
22634 void (* drag_begin) (GtkWidget *widget,
22635 GdkDragContext *context);
22636 void (* drag_end) (GtkWidget *widget,
22637 GdkDragContext *context);
22638 void (* drag_data_get) (GtkWidget *widget,
22639 GdkDragContext *context,
22640 GtkSelectionData *selection_data,
22641 guint info,
22642 guint time_);
22643 void (* drag_data_delete) (GtkWidget *widget,
22644 GdkDragContext *context);
22645
22646
22647 void (* drag_leave) (GtkWidget *widget,
22648 GdkDragContext *context,
22649 guint time_);
22650 gboolean (* drag_motion) (GtkWidget *widget,
22651 GdkDragContext *context,
22652 gint x,
22653 gint y,
22654 guint time_);
22655 gboolean (* drag_drop) (GtkWidget *widget,
22656 GdkDragContext *context,
22657 gint x,
22658 gint y,
22659 guint time_);
22660 void (* drag_data_received) (GtkWidget *widget,
22661 GdkDragContext *context,
22662 gint x,
22663 gint y,
22664 GtkSelectionData *selection_data,
22665 guint info,
22666 guint time_);
22667
22668
22669 gboolean (* popup_menu) (GtkWidget *widget);
22670
22671
22672
22673
22674
22675
22676 gboolean (* show_help) (GtkWidget *widget,
22677 GtkWidgetHelpType help_type);
22678
22679
22680
22681 AtkObject* (*get_accessible) (GtkWidget *widget);
22682
22683 void (*screen_changed) (GtkWidget *widget,
22684 GdkScreen *previous_screen);
22685 gboolean (*can_activate_accel) (GtkWidget *widget,
22686 guint signal_id);
22687
22688
22689 gboolean (*grab_broken_event) (GtkWidget *widget,
22690 GdkEventGrabBroken *event);
22691
22692
22693 void (*_gtk_reserved3) (void);
22694 void (*_gtk_reserved4) (void);
22695 void (*_gtk_reserved5) (void);
22696 void (*_gtk_reserved6) (void);
22697 void (*_gtk_reserved7) (void);
22698 };
22699
22700 struct _GtkWidgetAuxInfo
22701 {
22702 gint x;
22703 gint y;
22704 gint width;
22705 gint height;
22706 guint x_set : 1;
22707 guint y_set : 1;
22708 };
22709
22710 struct _GtkWidgetShapeInfo
22711 {
22712 gint16 offset_x;
22713 gint16 offset_y;
22714 GdkBitmap *shape_mask;
22715 };
22716
22717 GType gtk_widget_get_type (void) __attribute__((__const__));
22718 GtkWidget* gtk_widget_new (GType type,
22719 const gchar *first_property_name,
22720 ...);
22721 GtkWidget* gtk_widget_ref (GtkWidget *widget);
22722 void gtk_widget_unref (GtkWidget *widget);
22723 void gtk_widget_destroy (GtkWidget *widget);
22724 void gtk_widget_destroyed (GtkWidget *widget,
22725 GtkWidget **widget_pointer);
22726
22727 void gtk_widget_set (GtkWidget *widget,
22728 const gchar *first_property_name,
22729 ...) __attribute__((__sentinel__));
22730
22731 void gtk_widget_unparent (GtkWidget *widget);
22732 void gtk_widget_show (GtkWidget *widget);
22733 void gtk_widget_show_now (GtkWidget *widget);
22734 void gtk_widget_hide (GtkWidget *widget);
22735 void gtk_widget_show_all (GtkWidget *widget);
22736 void gtk_widget_hide_all (GtkWidget *widget);
22737 void gtk_widget_set_no_show_all (GtkWidget *widget,
22738 gboolean no_show_all);
22739 gboolean gtk_widget_get_no_show_all (GtkWidget *widget);
22740 void gtk_widget_map (GtkWidget *widget);
22741 void gtk_widget_unmap (GtkWidget *widget);
22742 void gtk_widget_realize (GtkWidget *widget);
22743 void gtk_widget_unrealize (GtkWidget *widget);
22744
22745
22746 void gtk_widget_queue_draw (GtkWidget *widget);
22747 void gtk_widget_queue_draw_area (GtkWidget *widget,
22748 gint x,
22749 gint y,
22750 gint width,
22751 gint height);
22752
22753 void gtk_widget_queue_clear (GtkWidget *widget);
22754 void gtk_widget_queue_clear_area (GtkWidget *widget,
22755 gint x,
22756 gint y,
22757 gint width,
22758 gint height);
22759
22760
22761
22762 void gtk_widget_queue_resize (GtkWidget *widget);
22763 void gtk_widget_queue_resize_no_redraw (GtkWidget *widget);
22764
22765 void gtk_widget_draw (GtkWidget *widget,
22766 GdkRectangle *area);
22767
22768 void gtk_widget_size_request (GtkWidget *widget,
22769 GtkRequisition *requisition);
22770 void gtk_widget_size_allocate (GtkWidget *widget,
22771 GtkAllocation *allocation);
22772 void gtk_widget_get_child_requisition (GtkWidget *widget,
22773 GtkRequisition *requisition);
22774 void gtk_widget_add_accelerator (GtkWidget *widget,
22775 const gchar *accel_signal,
22776 GtkAccelGroup *accel_group,
22777 guint accel_key,
22778 GdkModifierType accel_mods,
22779 GtkAccelFlags accel_flags);
22780 gboolean gtk_widget_remove_accelerator (GtkWidget *widget,
22781 GtkAccelGroup *accel_group,
22782 guint accel_key,
22783 GdkModifierType accel_mods);
22784 void gtk_widget_set_accel_path (GtkWidget *widget,
22785 const gchar *accel_path,
22786 GtkAccelGroup *accel_group);
22787 const gchar* _gtk_widget_get_accel_path (GtkWidget *widget,
22788 gboolean *locked);
22789 GList* gtk_widget_list_accel_closures (GtkWidget *widget);
22790 gboolean gtk_widget_can_activate_accel (GtkWidget *widget,
22791 guint signal_id);
22792 gboolean gtk_widget_mnemonic_activate (GtkWidget *widget,
22793 gboolean group_cycling);
22794 gboolean gtk_widget_event (GtkWidget *widget,
22795 GdkEvent *event);
22796 gint gtk_widget_send_expose (GtkWidget *widget,
22797 GdkEvent *event);
22798
22799 gboolean gtk_widget_activate (GtkWidget *widget);
22800 gboolean gtk_widget_set_scroll_adjustments (GtkWidget *widget,
22801 GtkAdjustment *hadjustment,
22802 GtkAdjustment *vadjustment);
22803
22804 void gtk_widget_reparent (GtkWidget *widget,
22805 GtkWidget *new_parent);
22806 gboolean gtk_widget_intersect (GtkWidget *widget,
22807 GdkRectangle *area,
22808 GdkRectangle *intersection);
22809 GdkRegion *gtk_widget_region_intersect (GtkWidget *widget,
22810 GdkRegion *region);
22811
22812 void gtk_widget_freeze_child_notify (GtkWidget *widget);
22813 void gtk_widget_child_notify (GtkWidget *widget,
22814 const gchar *child_property);
22815 void gtk_widget_thaw_child_notify (GtkWidget *widget);
22816
22817 gboolean gtk_widget_is_focus (GtkWidget *widget);
22818 void gtk_widget_grab_focus (GtkWidget *widget);
22819 void gtk_widget_grab_default (GtkWidget *widget);
22820
22821 void gtk_widget_set_name (GtkWidget *widget,
22822 const gchar *name);
22823 const gchar* gtk_widget_get_name (GtkWidget *widget);
22824 void gtk_widget_set_state (GtkWidget *widget,
22825 GtkStateType state);
22826 void gtk_widget_set_sensitive (GtkWidget *widget,
22827 gboolean sensitive);
22828 void gtk_widget_set_app_paintable (GtkWidget *widget,
22829 gboolean app_paintable);
22830 void gtk_widget_set_double_buffered (GtkWidget *widget,
22831 gboolean double_buffered);
22832 void gtk_widget_set_redraw_on_allocate (GtkWidget *widget,
22833 gboolean redraw_on_allocate);
22834 void gtk_widget_set_parent (GtkWidget *widget,
22835 GtkWidget *parent);
22836 void gtk_widget_set_parent_window (GtkWidget *widget,
22837 GdkWindow *parent_window);
22838 void gtk_widget_set_child_visible (GtkWidget *widget,
22839 gboolean is_visible);
22840 gboolean gtk_widget_get_child_visible (GtkWidget *widget);
22841
22842 GtkWidget *gtk_widget_get_parent (GtkWidget *widget);
22843 GdkWindow *gtk_widget_get_parent_window (GtkWidget *widget);
22844
22845 gboolean gtk_widget_child_focus (GtkWidget *widget,
22846 GtkDirectionType direction);
22847
22848 void gtk_widget_set_size_request (GtkWidget *widget,
22849 gint width,
22850 gint height);
22851 void gtk_widget_get_size_request (GtkWidget *widget,
22852 gint *width,
22853 gint *height);
22854
22855 void gtk_widget_set_uposition (GtkWidget *widget,
22856 gint x,
22857 gint y);
22858 void gtk_widget_set_usize (GtkWidget *widget,
22859 gint width,
22860 gint height);
22861
22862
22863 void gtk_widget_set_events (GtkWidget *widget,
22864 gint events);
22865 void gtk_widget_add_events (GtkWidget *widget,
22866 gint events);
22867 void gtk_widget_set_extension_events (GtkWidget *widget,
22868 GdkExtensionMode mode);
22869
22870 GdkExtensionMode gtk_widget_get_extension_events (GtkWidget *widget);
22871 GtkWidget* gtk_widget_get_toplevel (GtkWidget *widget);
22872 GtkWidget* gtk_widget_get_ancestor (GtkWidget *widget,
22873 GType widget_type);
22874 GdkColormap* gtk_widget_get_colormap (GtkWidget *widget);
22875 GdkVisual* gtk_widget_get_visual (GtkWidget *widget);
22876
22877 GdkScreen * gtk_widget_get_screen (GtkWidget *widget);
22878 gboolean gtk_widget_has_screen (GtkWidget *widget);
22879 GdkDisplay * gtk_widget_get_display (GtkWidget *widget);
22880 GdkWindow * gtk_widget_get_root_window (GtkWidget *widget);
22881 GtkSettings* gtk_widget_get_settings (GtkWidget *widget);
22882 GtkClipboard *gtk_widget_get_clipboard (GtkWidget *widget,
22883 GdkAtom selection);
22884 # 611 "/usr/include/gtk-2.0/gtk/gtkwidget.h"
22885 AtkObject* gtk_widget_get_accessible (GtkWidget *widget);
22886
22887
22888
22889
22890
22891
22892
22893 void gtk_widget_set_colormap (GtkWidget *widget,
22894 GdkColormap *colormap);
22895
22896 gint gtk_widget_get_events (GtkWidget *widget);
22897 void gtk_widget_get_pointer (GtkWidget *widget,
22898 gint *x,
22899 gint *y);
22900
22901 gboolean gtk_widget_is_ancestor (GtkWidget *widget,
22902 GtkWidget *ancestor);
22903
22904 gboolean gtk_widget_translate_coordinates (GtkWidget *src_widget,
22905 GtkWidget *dest_widget,
22906 gint src_x,
22907 gint src_y,
22908 gint *dest_x,
22909 gint *dest_y);
22910
22911
22912
22913 gboolean gtk_widget_hide_on_delete (GtkWidget *widget);
22914
22915
22916
22917 void gtk_widget_set_style (GtkWidget *widget,
22918 GtkStyle *style);
22919 void gtk_widget_ensure_style (GtkWidget *widget);
22920 GtkStyle* gtk_widget_get_style (GtkWidget *widget);
22921
22922 void gtk_widget_modify_style (GtkWidget *widget,
22923 GtkRcStyle *style);
22924 GtkRcStyle *gtk_widget_get_modifier_style (GtkWidget *widget);
22925 void gtk_widget_modify_fg (GtkWidget *widget,
22926 GtkStateType state,
22927 const GdkColor *color);
22928 void gtk_widget_modify_bg (GtkWidget *widget,
22929 GtkStateType state,
22930 const GdkColor *color);
22931 void gtk_widget_modify_text (GtkWidget *widget,
22932 GtkStateType state,
22933 const GdkColor *color);
22934 void gtk_widget_modify_base (GtkWidget *widget,
22935 GtkStateType state,
22936 const GdkColor *color);
22937 void gtk_widget_modify_font (GtkWidget *widget,
22938 PangoFontDescription *font_desc);
22939
22940
22941
22942
22943
22944
22945 PangoContext *gtk_widget_create_pango_context (GtkWidget *widget);
22946 PangoContext *gtk_widget_get_pango_context (GtkWidget *widget);
22947 PangoLayout *gtk_widget_create_pango_layout (GtkWidget *widget,
22948 const gchar *text);
22949
22950 GdkPixbuf *gtk_widget_render_icon (GtkWidget *widget,
22951 const gchar *stock_id,
22952 GtkIconSize size,
22953 const gchar *detail);
22954
22955
22956
22957
22958 void gtk_widget_set_composite_name (GtkWidget *widget,
22959 const gchar *name);
22960 gchar* gtk_widget_get_composite_name (GtkWidget *widget);
22961
22962
22963 void gtk_widget_reset_rc_styles (GtkWidget *widget);
22964
22965
22966
22967
22968
22969 void gtk_widget_push_colormap (GdkColormap *cmap);
22970 void gtk_widget_push_composite_child (void);
22971 void gtk_widget_pop_composite_child (void);
22972 void gtk_widget_pop_colormap (void);
22973
22974
22975
22976 void gtk_widget_class_install_style_property (GtkWidgetClass *klass,
22977 GParamSpec *pspec);
22978 void gtk_widget_class_install_style_property_parser (GtkWidgetClass *klass,
22979 GParamSpec *pspec,
22980 GtkRcPropertyParser parser);
22981 GParamSpec* gtk_widget_class_find_style_property (GtkWidgetClass *klass,
22982 const gchar *property_name);
22983 GParamSpec** gtk_widget_class_list_style_properties (GtkWidgetClass *klass,
22984 guint *n_properties);
22985 void gtk_widget_style_get_property (GtkWidget *widget,
22986 const gchar *property_name,
22987 GValue *value);
22988 void gtk_widget_style_get_valist (GtkWidget *widget,
22989 const gchar *first_property_name,
22990 va_list var_args);
22991 void gtk_widget_style_get (GtkWidget *widget,
22992 const gchar *first_property_name,
22993 ...) __attribute__((__sentinel__));
22994
22995
22996
22997
22998 void gtk_widget_set_default_colormap (GdkColormap *colormap);
22999 GtkStyle* gtk_widget_get_default_style (void);
23000 # 734 "/usr/include/gtk-2.0/gtk/gtkwidget.h"
23001 void gtk_widget_set_direction (GtkWidget *widget,
23002 GtkTextDirection dir);
23003 GtkTextDirection gtk_widget_get_direction (GtkWidget *widget);
23004
23005 void gtk_widget_set_default_direction (GtkTextDirection dir);
23006 GtkTextDirection gtk_widget_get_default_direction (void);
23007
23008
23009
23010 void gtk_widget_shape_combine_mask (GtkWidget *widget,
23011 GdkBitmap *shape_mask,
23012 gint offset_x,
23013 gint offset_y);
23014
23015
23016 void gtk_widget_reset_shapes (GtkWidget *widget);
23017
23018
23019
23020
23021 void gtk_widget_path (GtkWidget *widget,
23022 guint *path_length,
23023 gchar **path,
23024 gchar **path_reversed);
23025 void gtk_widget_class_path (GtkWidget *widget,
23026 guint *path_length,
23027 gchar **path,
23028 gchar **path_reversed);
23029
23030 GList* gtk_widget_list_mnemonic_labels (GtkWidget *widget);
23031 void gtk_widget_add_mnemonic_label (GtkWidget *widget,
23032 GtkWidget *label);
23033 void gtk_widget_remove_mnemonic_label (GtkWidget *widget,
23034 GtkWidget *label);
23035
23036 GType gtk_requisition_get_type (void) __attribute__((__const__));
23037 GtkRequisition *gtk_requisition_copy (const GtkRequisition *requisition);
23038 void gtk_requisition_free (GtkRequisition *requisition);
23039
23040
23041
23042
23043
23044
23045 void _gtk_widget_grab_notify (GtkWidget *widget,
23046 gboolean was_grabbed);
23047
23048 GtkWidgetAuxInfo *_gtk_widget_get_aux_info (GtkWidget *widget,
23049 gboolean create);
23050 void _gtk_widget_propagate_hierarchy_changed (GtkWidget *widget,
23051 GtkWidget *previous_toplevel);
23052 void _gtk_widget_propagate_screen_changed (GtkWidget *widget,
23053 GdkScreen *previous_screen);
23054
23055 GdkColormap* _gtk_widget_peek_colormap (void);
23056 # 34 "/usr/include/gtk-2.0/gtk/gtkcontainer.h" 2
23057 # 49 "/usr/include/gtk-2.0/gtk/gtkcontainer.h"
23058 typedef struct _GtkContainer GtkContainer;
23059 typedef struct _GtkContainerClass GtkContainerClass;
23060
23061 struct _GtkContainer
23062 {
23063 GtkWidget widget;
23064
23065 GtkWidget *focus_child;
23066
23067 guint border_width : 16;
23068
23069
23070 guint need_resize : 1;
23071 guint resize_mode : 2;
23072 guint reallocate_redraws : 1;
23073 guint has_focus_chain : 1;
23074 };
23075
23076 struct _GtkContainerClass
23077 {
23078 GtkWidgetClass parent_class;
23079
23080 void (*add) (GtkContainer *container,
23081 GtkWidget *widget);
23082 void (*remove) (GtkContainer *container,
23083 GtkWidget *widget);
23084 void (*check_resize) (GtkContainer *container);
23085 void (*forall) (GtkContainer *container,
23086 gboolean include_internals,
23087 GtkCallback callback,
23088 gpointer callback_data);
23089 void (*set_focus_child) (GtkContainer *container,
23090 GtkWidget *widget);
23091 GType (*child_type) (GtkContainer *container);
23092 gchar* (*composite_name) (GtkContainer *container,
23093 GtkWidget *child);
23094 void (*set_child_property) (GtkContainer *container,
23095 GtkWidget *child,
23096 guint property_id,
23097 const GValue *value,
23098 GParamSpec *pspec);
23099 void (*get_child_property) (GtkContainer *container,
23100 GtkWidget *child,
23101 guint property_id,
23102 GValue *value,
23103 GParamSpec *pspec);
23104
23105
23106 void (*_gtk_reserved1) (void);
23107 void (*_gtk_reserved2) (void);
23108 void (*_gtk_reserved3) (void);
23109 void (*_gtk_reserved4) (void);
23110 };
23111
23112
23113
23114 GType gtk_container_get_type (void) __attribute__((__const__));
23115 void gtk_container_set_border_width (GtkContainer *container,
23116 guint border_width);
23117 guint gtk_container_get_border_width (GtkContainer *container);
23118 void gtk_container_add (GtkContainer *container,
23119 GtkWidget *widget);
23120 void gtk_container_remove (GtkContainer *container,
23121 GtkWidget *widget);
23122
23123 void gtk_container_set_resize_mode (GtkContainer *container,
23124 GtkResizeMode resize_mode);
23125 GtkResizeMode gtk_container_get_resize_mode (GtkContainer *container);
23126
23127 void gtk_container_check_resize (GtkContainer *container);
23128
23129 void gtk_container_foreach (GtkContainer *container,
23130 GtkCallback callback,
23131 gpointer callback_data);
23132
23133 void gtk_container_foreach_full (GtkContainer *container,
23134 GtkCallback callback,
23135 GtkCallbackMarshal marshal,
23136 gpointer callback_data,
23137 GtkDestroyNotify notify);
23138
23139 GList* gtk_container_get_children (GtkContainer *container);
23140
23141
23142
23143
23144
23145 void gtk_container_propagate_expose (GtkContainer *container,
23146 GtkWidget *child,
23147 GdkEventExpose *event);
23148
23149 void gtk_container_set_focus_chain (GtkContainer *container,
23150 GList *focusable_widgets);
23151 gboolean gtk_container_get_focus_chain (GtkContainer *container,
23152 GList **focusable_widgets);
23153 void gtk_container_unset_focus_chain (GtkContainer *container);
23154
23155
23156
23157 void gtk_container_set_reallocate_redraws (GtkContainer *container,
23158 gboolean needs_redraws);
23159 void gtk_container_set_focus_child (GtkContainer *container,
23160 GtkWidget *child);
23161 void gtk_container_set_focus_vadjustment (GtkContainer *container,
23162 GtkAdjustment *adjustment);
23163 GtkAdjustment *gtk_container_get_focus_vadjustment (GtkContainer *container);
23164 void gtk_container_set_focus_hadjustment (GtkContainer *container,
23165 GtkAdjustment *adjustment);
23166 GtkAdjustment *gtk_container_get_focus_hadjustment (GtkContainer *container);
23167
23168 void gtk_container_resize_children (GtkContainer *container);
23169
23170 GType gtk_container_child_type (GtkContainer *container);
23171
23172
23173 void gtk_container_class_install_child_property (GtkContainerClass *cclass,
23174 guint property_id,
23175 GParamSpec *pspec);
23176 GParamSpec* gtk_container_class_find_child_property (GObjectClass *cclass,
23177 const gchar *property_name);
23178 GParamSpec** gtk_container_class_list_child_properties (GObjectClass *cclass,
23179 guint *n_properties);
23180 void gtk_container_add_with_properties (GtkContainer *container,
23181 GtkWidget *widget,
23182 const gchar *first_prop_name,
23183 ...) __attribute__((__sentinel__));
23184 void gtk_container_child_set (GtkContainer *container,
23185 GtkWidget *child,
23186 const gchar *first_prop_name,
23187 ...) __attribute__((__sentinel__));
23188 void gtk_container_child_get (GtkContainer *container,
23189 GtkWidget *child,
23190 const gchar *first_prop_name,
23191 ...) __attribute__((__sentinel__));
23192 void gtk_container_child_set_valist (GtkContainer *container,
23193 GtkWidget *child,
23194 const gchar *first_property_name,
23195 va_list var_args);
23196 void gtk_container_child_get_valist (GtkContainer *container,
23197 GtkWidget *child,
23198 const gchar *first_property_name,
23199 va_list var_args);
23200 void gtk_container_child_set_property (GtkContainer *container,
23201 GtkWidget *child,
23202 const gchar *property_name,
23203 const GValue *value);
23204 void gtk_container_child_get_property (GtkContainer *container,
23205 GtkWidget *child,
23206 const gchar *property_name,
23207 GValue *value);
23208
23209
23210
23211
23212
23213 void gtk_container_forall (GtkContainer *container,
23214 GtkCallback callback,
23215 gpointer callback_data);
23216
23217
23218 void _gtk_container_queue_resize (GtkContainer *container);
23219 void _gtk_container_clear_resize_widgets (GtkContainer *container);
23220 gchar* _gtk_container_child_composite_name (GtkContainer *container,
23221 GtkWidget *child);
23222 void _gtk_container_dequeue_resize_handler (GtkContainer *container);
23223 GList *_gtk_container_focus_sort (GtkContainer *container,
23224 GList *children,
23225 GtkDirectionType direction,
23226 GtkWidget *old_focus);
23227 # 33 "/usr/include/gtk-2.0/gtk/gtkbin.h" 2
23228 # 45 "/usr/include/gtk-2.0/gtk/gtkbin.h"
23229 typedef struct _GtkBin GtkBin;
23230 typedef struct _GtkBinClass GtkBinClass;
23231
23232 struct _GtkBin
23233 {
23234 GtkContainer container;
23235
23236 GtkWidget *child;
23237 };
23238
23239 struct _GtkBinClass
23240 {
23241 GtkContainerClass parent_class;
23242 };
23243
23244
23245 GType gtk_bin_get_type (void) __attribute__((__const__));
23246
23247 GtkWidget *gtk_bin_get_child (GtkBin *bin);
23248 # 34 "/usr/include/gtk-2.0/gtk/gtkwindow.h" 2
23249 # 47 "/usr/include/gtk-2.0/gtk/gtkwindow.h"
23250 typedef struct _GtkWindow GtkWindow;
23251 typedef struct _GtkWindowClass GtkWindowClass;
23252 typedef struct _GtkWindowGeometryInfo GtkWindowGeometryInfo;
23253 typedef struct _GtkWindowGroup GtkWindowGroup;
23254 typedef struct _GtkWindowGroupClass GtkWindowGroupClass;
23255
23256 struct _GtkWindow
23257 {
23258 GtkBin bin;
23259
23260 gchar *title;
23261 gchar *wmclass_name;
23262 gchar *wmclass_class;
23263 gchar *wm_role;
23264
23265 GtkWidget *focus_widget;
23266 GtkWidget *default_widget;
23267 GtkWindow *transient_parent;
23268 GtkWindowGeometryInfo *geometry_info;
23269 GdkWindow *frame;
23270 GtkWindowGroup *group;
23271
23272 guint16 configure_request_count;
23273 guint allow_shrink : 1;
23274 guint allow_grow : 1;
23275 guint configure_notify_received : 1;
23276
23277
23278
23279
23280
23281
23282 guint need_default_position : 1;
23283 guint need_default_size : 1;
23284 guint position : 3;
23285 guint type : 4;
23286 guint has_user_ref_count : 1;
23287 guint has_focus : 1;
23288
23289 guint modal : 1;
23290 guint destroy_with_parent : 1;
23291
23292 guint has_frame : 1;
23293
23294
23295 guint iconify_initially : 1;
23296 guint stick_initially : 1;
23297 guint maximize_initially : 1;
23298 guint decorated : 1;
23299
23300 guint type_hint : 3;
23301 guint gravity : 5;
23302
23303 guint is_active : 1;
23304 guint has_toplevel_focus : 1;
23305
23306 guint frame_left;
23307 guint frame_top;
23308 guint frame_right;
23309 guint frame_bottom;
23310
23311 guint keys_changed_handler;
23312
23313 GdkModifierType mnemonic_modifier;
23314 GdkScreen *screen;
23315 };
23316
23317 struct _GtkWindowClass
23318 {
23319 GtkBinClass parent_class;
23320
23321 void (* set_focus) (GtkWindow *window,
23322 GtkWidget *focus);
23323 gboolean (* frame_event) (GtkWindow *window,
23324 GdkEvent *event);
23325
23326
23327
23328 void (* activate_focus) (GtkWindow *window);
23329 void (* activate_default) (GtkWindow *window);
23330 void (* move_focus) (GtkWindow *window,
23331 GtkDirectionType direction);
23332
23333 void (*keys_changed) (GtkWindow *window);
23334
23335
23336 void (*_gtk_reserved1) (void);
23337 void (*_gtk_reserved2) (void);
23338 void (*_gtk_reserved3) (void);
23339 void (*_gtk_reserved4) (void);
23340 };
23341 # 146 "/usr/include/gtk-2.0/gtk/gtkwindow.h"
23342 struct _GtkWindowGroup
23343 {
23344 GObject parent_instance;
23345
23346 GSList *grabs;
23347 };
23348
23349 struct _GtkWindowGroupClass
23350 {
23351 GObjectClass parent_class;
23352
23353
23354 void (*_gtk_reserved1) (void);
23355 void (*_gtk_reserved2) (void);
23356 void (*_gtk_reserved3) (void);
23357 void (*_gtk_reserved4) (void);
23358 };
23359
23360
23361
23362
23363
23364
23365
23366 GType gtk_window_get_type (void) __attribute__((__const__));
23367 GtkWidget* gtk_window_new (GtkWindowType type);
23368 void gtk_window_set_title (GtkWindow *window,
23369 const gchar *title);
23370 const gchar *gtk_window_get_title (GtkWindow *window);
23371 void gtk_window_set_wmclass (GtkWindow *window,
23372 const gchar *wmclass_name,
23373 const gchar *wmclass_class);
23374 void gtk_window_set_role (GtkWindow *window,
23375 const gchar *role);
23376 const gchar *gtk_window_get_role (GtkWindow *window);
23377 void gtk_window_add_accel_group (GtkWindow *window,
23378 GtkAccelGroup *accel_group);
23379 void gtk_window_remove_accel_group (GtkWindow *window,
23380 GtkAccelGroup *accel_group);
23381 void gtk_window_set_position (GtkWindow *window,
23382 GtkWindowPosition position);
23383 gboolean gtk_window_activate_focus (GtkWindow *window);
23384 void gtk_window_set_focus (GtkWindow *window,
23385 GtkWidget *focus);
23386 GtkWidget *gtk_window_get_focus (GtkWindow *window);
23387 void gtk_window_set_default (GtkWindow *window,
23388 GtkWidget *default_widget);
23389 gboolean gtk_window_activate_default (GtkWindow *window);
23390
23391 void gtk_window_set_transient_for (GtkWindow *window,
23392 GtkWindow *parent);
23393 GtkWindow *gtk_window_get_transient_for (GtkWindow *window);
23394 void gtk_window_set_type_hint (GtkWindow *window,
23395 GdkWindowTypeHint hint);
23396 GdkWindowTypeHint gtk_window_get_type_hint (GtkWindow *window);
23397 void gtk_window_set_skip_taskbar_hint (GtkWindow *window,
23398 gboolean setting);
23399 gboolean gtk_window_get_skip_taskbar_hint (GtkWindow *window);
23400 void gtk_window_set_skip_pager_hint (GtkWindow *window,
23401 gboolean setting);
23402 gboolean gtk_window_get_skip_pager_hint (GtkWindow *window);
23403 void gtk_window_set_urgency_hint (GtkWindow *window,
23404 gboolean setting);
23405 gboolean gtk_window_get_urgency_hint (GtkWindow *window);
23406 void gtk_window_set_accept_focus (GtkWindow *window,
23407 gboolean setting);
23408 gboolean gtk_window_get_accept_focus (GtkWindow *window);
23409 void gtk_window_set_focus_on_map (GtkWindow *window,
23410 gboolean setting);
23411 gboolean gtk_window_get_focus_on_map (GtkWindow *window);
23412 void gtk_window_set_destroy_with_parent (GtkWindow *window,
23413 gboolean setting);
23414 gboolean gtk_window_get_destroy_with_parent (GtkWindow *window);
23415
23416 void gtk_window_set_resizable (GtkWindow *window,
23417 gboolean resizable);
23418 gboolean gtk_window_get_resizable (GtkWindow *window);
23419
23420 void gtk_window_set_gravity (GtkWindow *window,
23421 GdkGravity gravity);
23422 GdkGravity gtk_window_get_gravity (GtkWindow *window);
23423
23424
23425 void gtk_window_set_geometry_hints (GtkWindow *window,
23426 GtkWidget *geometry_widget,
23427 GdkGeometry *geometry,
23428 GdkWindowHints geom_mask);
23429
23430 void gtk_window_set_screen (GtkWindow *window,
23431 GdkScreen *screen);
23432 GdkScreen* gtk_window_get_screen (GtkWindow *window);
23433
23434 gboolean gtk_window_is_active (GtkWindow *window);
23435 gboolean gtk_window_has_toplevel_focus (GtkWindow *window);
23436
23437
23438
23439
23440 void gtk_window_set_has_frame (GtkWindow *window,
23441 gboolean setting);
23442 gboolean gtk_window_get_has_frame (GtkWindow *window);
23443 void gtk_window_set_frame_dimensions (GtkWindow *window,
23444 gint left,
23445 gint top,
23446 gint right,
23447 gint bottom);
23448 void gtk_window_get_frame_dimensions (GtkWindow *window,
23449 gint *left,
23450 gint *top,
23451 gint *right,
23452 gint *bottom);
23453 void gtk_window_set_decorated (GtkWindow *window,
23454 gboolean setting);
23455 gboolean gtk_window_get_decorated (GtkWindow *window);
23456
23457 void gtk_window_set_icon_list (GtkWindow *window,
23458 GList *list);
23459 GList* gtk_window_get_icon_list (GtkWindow *window);
23460 void gtk_window_set_icon (GtkWindow *window,
23461 GdkPixbuf *icon);
23462 void gtk_window_set_icon_name (GtkWindow *window,
23463 const gchar *name);
23464 gboolean gtk_window_set_icon_from_file (GtkWindow *window,
23465 const gchar *filename,
23466 GError **err);
23467 GdkPixbuf* gtk_window_get_icon (GtkWindow *window);
23468 const
23469 gchar *gtk_window_get_icon_name (GtkWindow *window);
23470 void gtk_window_set_default_icon_list (GList *list);
23471 GList* gtk_window_get_default_icon_list (void);
23472 void gtk_window_set_default_icon (GdkPixbuf *icon);
23473 void gtk_window_set_default_icon_name (const gchar *name);
23474 gboolean gtk_window_set_default_icon_from_file (const gchar *filename,
23475 GError **err);
23476
23477 void gtk_window_set_auto_startup_notification (gboolean setting);
23478
23479
23480 void gtk_window_set_modal (GtkWindow *window,
23481 gboolean modal);
23482 gboolean gtk_window_get_modal (GtkWindow *window);
23483 GList* gtk_window_list_toplevels (void);
23484
23485 void gtk_window_add_mnemonic (GtkWindow *window,
23486 guint keyval,
23487 GtkWidget *target);
23488 void gtk_window_remove_mnemonic (GtkWindow *window,
23489 guint keyval,
23490 GtkWidget *target);
23491 gboolean gtk_window_mnemonic_activate (GtkWindow *window,
23492 guint keyval,
23493 GdkModifierType modifier);
23494 void gtk_window_set_mnemonic_modifier (GtkWindow *window,
23495 GdkModifierType modifier);
23496 GdkModifierType gtk_window_get_mnemonic_modifier (GtkWindow *window);
23497
23498 gboolean gtk_window_activate_key (GtkWindow *window,
23499 GdkEventKey *event);
23500 gboolean gtk_window_propagate_key_event (GtkWindow *window,
23501 GdkEventKey *event);
23502
23503 void gtk_window_present (GtkWindow *window);
23504 void gtk_window_present_with_time (GtkWindow *window,
23505 guint32 timestamp);
23506 void gtk_window_iconify (GtkWindow *window);
23507 void gtk_window_deiconify (GtkWindow *window);
23508 void gtk_window_stick (GtkWindow *window);
23509 void gtk_window_unstick (GtkWindow *window);
23510 void gtk_window_maximize (GtkWindow *window);
23511 void gtk_window_unmaximize (GtkWindow *window);
23512 void gtk_window_fullscreen (GtkWindow *window);
23513 void gtk_window_unfullscreen (GtkWindow *window);
23514 void gtk_window_set_keep_above (GtkWindow *window, gboolean setting);
23515 void gtk_window_set_keep_below (GtkWindow *window, gboolean setting);
23516
23517 void gtk_window_begin_resize_drag (GtkWindow *window,
23518 GdkWindowEdge edge,
23519 gint button,
23520 gint root_x,
23521 gint root_y,
23522 guint32 timestamp);
23523 void gtk_window_begin_move_drag (GtkWindow *window,
23524 gint button,
23525 gint root_x,
23526 gint root_y,
23527 guint32 timestamp);
23528
23529
23530 void gtk_window_set_policy (GtkWindow *window,
23531 gint allow_shrink,
23532 gint allow_grow,
23533 gint auto_shrink);
23534
23535
23536
23537
23538
23539
23540 void gtk_window_set_default_size (GtkWindow *window,
23541 gint width,
23542 gint height);
23543 void gtk_window_get_default_size (GtkWindow *window,
23544 gint *width,
23545 gint *height);
23546 void gtk_window_resize (GtkWindow *window,
23547 gint width,
23548 gint height);
23549 void gtk_window_get_size (GtkWindow *window,
23550 gint *width,
23551 gint *height);
23552 void gtk_window_move (GtkWindow *window,
23553 gint x,
23554 gint y);
23555 void gtk_window_get_position (GtkWindow *window,
23556 gint *root_x,
23557 gint *root_y);
23558 gboolean gtk_window_parse_geometry (GtkWindow *window,
23559 const gchar *geometry);
23560
23561
23562 void gtk_window_reshow_with_initial_size (GtkWindow *window);
23563
23564
23565
23566 GType gtk_window_group_get_type (void) __attribute__((__const__));
23567
23568 GtkWindowGroup * gtk_window_group_new (void);
23569 void gtk_window_group_add_window (GtkWindowGroup *window_group,
23570 GtkWindow *window);
23571 void gtk_window_group_remove_window (GtkWindowGroup *window_group,
23572 GtkWindow *window);
23573
23574
23575 void _gtk_window_internal_set_focus (GtkWindow *window,
23576 GtkWidget *focus);
23577 void gtk_window_remove_embedded_xid (GtkWindow *window,
23578 guint xid);
23579 void gtk_window_add_embedded_xid (GtkWindow *window,
23580 guint xid);
23581 void _gtk_window_reposition (GtkWindow *window,
23582 gint x,
23583 gint y);
23584 void _gtk_window_constrain_size (GtkWindow *window,
23585 gint width,
23586 gint height,
23587 gint *new_width,
23588 gint *new_height);
23589 GtkWindowGroup *_gtk_window_get_group (GtkWindow *window);
23590 GtkWidget *_gtk_window_group_get_current_grab (GtkWindowGroup *window_group);
23591
23592 void _gtk_window_set_has_toplevel_focus (GtkWindow *window,
23593 gboolean has_toplevel_focus);
23594 void _gtk_window_unset_focus_and_default (GtkWindow *window,
23595 GtkWidget *widget);
23596
23597 void _gtk_window_set_is_active (GtkWindow *window,
23598 gboolean is_active);
23599
23600 typedef void (*GtkWindowKeysForeachFunc) (GtkWindow *window,
23601 guint keyval,
23602 GdkModifierType modifiers,
23603 gboolean is_mnemonic,
23604 gpointer data);
23605
23606 void _gtk_window_keys_foreach (GtkWindow *window,
23607 GtkWindowKeysForeachFunc func,
23608 gpointer func_data);
23609
23610
23611 gboolean _gtk_window_query_nonaccels (GtkWindow *window,
23612 guint accel_key,
23613 GdkModifierType accel_mods);
23614 # 33 "/usr/include/gtk-2.0/gtk/gtkdialog.h" 2
23615
23616
23617
23618
23619
23620 typedef enum
23621 {
23622 GTK_DIALOG_MODAL = 1 << 0,
23623 GTK_DIALOG_DESTROY_WITH_PARENT = 1 << 1,
23624 GTK_DIALOG_NO_SEPARATOR = 1 << 2
23625 } GtkDialogFlags;
23626 # 53 "/usr/include/gtk-2.0/gtk/gtkdialog.h"
23627 typedef enum
23628 {
23629
23630
23631
23632 GTK_RESPONSE_NONE = -1,
23633
23634
23635
23636
23637
23638 GTK_RESPONSE_REJECT = -2,
23639 GTK_RESPONSE_ACCEPT = -3,
23640
23641
23642 GTK_RESPONSE_DELETE_EVENT = -4,
23643
23644
23645
23646
23647 GTK_RESPONSE_OK = -5,
23648 GTK_RESPONSE_CANCEL = -6,
23649 GTK_RESPONSE_CLOSE = -7,
23650 GTK_RESPONSE_YES = -8,
23651 GTK_RESPONSE_NO = -9,
23652 GTK_RESPONSE_APPLY = -10,
23653 GTK_RESPONSE_HELP = -11
23654 } GtkResponseType;
23655 # 91 "/usr/include/gtk-2.0/gtk/gtkdialog.h"
23656 typedef struct _GtkDialog GtkDialog;
23657 typedef struct _GtkDialogClass GtkDialogClass;
23658
23659 struct _GtkDialog
23660 {
23661 GtkWindow window;
23662
23663
23664 GtkWidget *vbox;
23665 GtkWidget *action_area;
23666
23667
23668 GtkWidget *separator;
23669 };
23670
23671 struct _GtkDialogClass
23672 {
23673 GtkWindowClass parent_class;
23674
23675 void (* response) (GtkDialog *dialog, gint response_id);
23676
23677
23678
23679 void (* close) (GtkDialog *dialog);
23680
23681
23682 void (*_gtk_reserved1) (void);
23683 void (*_gtk_reserved2) (void);
23684 void (*_gtk_reserved3) (void);
23685 void (*_gtk_reserved4) (void);
23686 };
23687
23688
23689 GType gtk_dialog_get_type (void) __attribute__((__const__));
23690 GtkWidget* gtk_dialog_new (void);
23691
23692 GtkWidget* gtk_dialog_new_with_buttons (const gchar *title,
23693 GtkWindow *parent,
23694 GtkDialogFlags flags,
23695 const gchar *first_button_text,
23696 ...);
23697
23698 void gtk_dialog_add_action_widget (GtkDialog *dialog,
23699 GtkWidget *child,
23700 gint response_id);
23701 GtkWidget* gtk_dialog_add_button (GtkDialog *dialog,
23702 const gchar *button_text,
23703 gint response_id);
23704 void gtk_dialog_add_buttons (GtkDialog *dialog,
23705 const gchar *first_button_text,
23706 ...) __attribute__((__sentinel__));
23707
23708 void gtk_dialog_set_response_sensitive (GtkDialog *dialog,
23709 gint response_id,
23710 gboolean setting);
23711 void gtk_dialog_set_default_response (GtkDialog *dialog,
23712 gint response_id);
23713 gint gtk_dialog_get_response_for_widget (GtkDialog *dialog,
23714 GtkWidget *widget);
23715
23716 void gtk_dialog_set_has_separator (GtkDialog *dialog,
23717 gboolean setting);
23718 gboolean gtk_dialog_get_has_separator (GtkDialog *dialog);
23719
23720 gboolean gtk_alternative_dialog_button_order (GdkScreen *screen);
23721 void gtk_dialog_set_alternative_button_order (GtkDialog *dialog,
23722 gint first_response_id,
23723 ...);
23724 void gtk_dialog_set_alternative_button_order_from_array (GtkDialog *dialog,
23725 gint n_params,
23726 gint *new_order);
23727
23728
23729 void gtk_dialog_response (GtkDialog *dialog,
23730 gint response_id);
23731
23732
23733 gint gtk_dialog_run (GtkDialog *dialog);
23734
23735
23736
23737 void _gtk_dialog_set_ignore_separator (GtkDialog *dialog,
23738 gboolean ignore_separator);
23739 gint _gtk_dialog_get_response_for_widget (GtkDialog *dialog,
23740 GtkWidget *widget);
23741 # 29 "/usr/include/gtk-2.0/gtk/gtkaboutdialog.h" 2
23742 # 39 "/usr/include/gtk-2.0/gtk/gtkaboutdialog.h"
23743 typedef struct _GtkAboutDialog GtkAboutDialog;
23744 typedef struct _GtkAboutDialogClass GtkAboutDialogClass;
23745
23746 struct _GtkAboutDialog
23747 {
23748 GtkDialog parent_instance;
23749
23750
23751 gpointer private_data;
23752 };
23753
23754 struct _GtkAboutDialogClass
23755 {
23756 GtkDialogClass parent_class;
23757
23758
23759 void (*_gtk_reserved1) (void);
23760 void (*_gtk_reserved2) (void);
23761 void (*_gtk_reserved3) (void);
23762 void (*_gtk_reserved4) (void);
23763 };
23764
23765 GType gtk_about_dialog_get_type (void) __attribute__((__const__));
23766 GtkWidget *gtk_about_dialog_new (void);
23767 void gtk_show_about_dialog (GtkWindow *parent,
23768 const gchar *first_property_name,
23769 ...) __attribute__((__sentinel__));
23770
23771 const gchar *gtk_about_dialog_get_name (GtkAboutDialog *about);
23772 void gtk_about_dialog_set_name (GtkAboutDialog *about,
23773 const gchar *name);
23774 const gchar *gtk_about_dialog_get_version (GtkAboutDialog *about);
23775 void gtk_about_dialog_set_version (GtkAboutDialog *about,
23776 const gchar *version);
23777 const gchar *gtk_about_dialog_get_copyright (GtkAboutDialog *about);
23778 void gtk_about_dialog_set_copyright (GtkAboutDialog *about,
23779 const gchar *copyright);
23780 const gchar *gtk_about_dialog_get_comments (GtkAboutDialog *about);
23781 void gtk_about_dialog_set_comments (GtkAboutDialog *about,
23782 const gchar *comments);
23783 const gchar *gtk_about_dialog_get_license (GtkAboutDialog *about);
23784 void gtk_about_dialog_set_license (GtkAboutDialog *about,
23785 const gchar *license);
23786
23787 gboolean gtk_about_dialog_get_wrap_license (GtkAboutDialog *about);
23788 void gtk_about_dialog_set_wrap_license (GtkAboutDialog *about,
23789 gboolean wrap_license);
23790
23791 const gchar *gtk_about_dialog_get_website (GtkAboutDialog *about);
23792 void gtk_about_dialog_set_website (GtkAboutDialog *about,
23793 const gchar *website);
23794 const gchar *gtk_about_dialog_get_website_label (GtkAboutDialog *about);
23795 void gtk_about_dialog_set_website_label (GtkAboutDialog *about,
23796 const gchar *website_label);
23797 const gchar* const * gtk_about_dialog_get_authors (GtkAboutDialog *about);
23798 void gtk_about_dialog_set_authors (GtkAboutDialog *about,
23799 const gchar **authors);
23800 const gchar* const * gtk_about_dialog_get_documenters (GtkAboutDialog *about);
23801 void gtk_about_dialog_set_documenters (GtkAboutDialog *about,
23802 const gchar **documenters);
23803 const gchar* const * gtk_about_dialog_get_artists (GtkAboutDialog *about);
23804 void gtk_about_dialog_set_artists (GtkAboutDialog *about,
23805 const gchar **artists);
23806 const gchar *gtk_about_dialog_get_translator_credits (GtkAboutDialog *about);
23807 void gtk_about_dialog_set_translator_credits (GtkAboutDialog *about,
23808 const gchar *translator_credits);
23809 GdkPixbuf *gtk_about_dialog_get_logo (GtkAboutDialog *about);
23810 void gtk_about_dialog_set_logo (GtkAboutDialog *about,
23811 GdkPixbuf *logo);
23812 const gchar *gtk_about_dialog_get_logo_icon_name (GtkAboutDialog *about);
23813 void gtk_about_dialog_set_logo_icon_name (GtkAboutDialog *about,
23814 const gchar *icon_name);
23815
23816 typedef void (* GtkAboutDialogActivateLinkFunc) (GtkAboutDialog *about,
23817 const gchar *link,
23818 gpointer data);
23819
23820 GtkAboutDialogActivateLinkFunc gtk_about_dialog_set_email_hook (GtkAboutDialogActivateLinkFunc func,
23821 gpointer data,
23822 GDestroyNotify destroy);
23823 GtkAboutDialogActivateLinkFunc gtk_about_dialog_set_url_hook (GtkAboutDialogActivateLinkFunc func,
23824 gpointer data,
23825 GDestroyNotify destroy);
23826 # 33 "/usr/include/gtk-2.0/gtk/gtk.h" 2
23827
23828
23829 # 1 "/usr/include/gtk-2.0/gtk/gtkaccellabel.h" 1
23830 # 34 "/usr/include/gtk-2.0/gtk/gtkaccellabel.h"
23831
23832 # 1 "/usr/include/gtk-2.0/gtk/gtklabel.h" 1
23833 # 31 "/usr/include/gtk-2.0/gtk/gtklabel.h"
23834
23835 # 1 "/usr/include/gtk-2.0/gtk/gtkmisc.h" 1
23836 # 35 "/usr/include/gtk-2.0/gtk/gtkmisc.h"
23837 # 45 "/usr/include/gtk-2.0/gtk/gtkmisc.h"
23838 typedef struct _GtkMisc GtkMisc;
23839 typedef struct _GtkMiscClass GtkMiscClass;
23840
23841 struct _GtkMisc
23842 {
23843 GtkWidget widget;
23844
23845 gfloat xalign;
23846 gfloat yalign;
23847
23848 guint16 xpad;
23849 guint16 ypad;
23850 };
23851
23852 struct _GtkMiscClass
23853 {
23854 GtkWidgetClass parent_class;
23855 };
23856
23857
23858 GType gtk_misc_get_type (void) __attribute__((__const__));
23859 void gtk_misc_set_alignment (GtkMisc *misc,
23860 gfloat xalign,
23861 gfloat yalign);
23862 void gtk_misc_get_alignment (GtkMisc *misc,
23863 gfloat *xalign,
23864 gfloat *yalign);
23865 void gtk_misc_set_padding (GtkMisc *misc,
23866 gint xpad,
23867 gint ypad);
23868 void gtk_misc_get_padding (GtkMisc *misc,
23869 gint *xpad,
23870 gint *ypad);
23871 # 32 "/usr/include/gtk-2.0/gtk/gtklabel.h" 2
23872
23873
23874 # 1 "/usr/include/gtk-2.0/gtk/gtkmenu.h" 1
23875 # 33 "/usr/include/gtk-2.0/gtk/gtkmenu.h"
23876
23877 # 1 "/usr/include/gtk-2.0/gtk/gtkmenushell.h" 1
23878 # 35 "/usr/include/gtk-2.0/gtk/gtkmenushell.h"
23879 # 45 "/usr/include/gtk-2.0/gtk/gtkmenushell.h"
23880 typedef struct _GtkMenuShell GtkMenuShell;
23881 typedef struct _GtkMenuShellClass GtkMenuShellClass;
23882
23883 struct _GtkMenuShell
23884 {
23885 GtkContainer container;
23886
23887 GList *children;
23888 GtkWidget *active_menu_item;
23889 GtkWidget *parent_menu_shell;
23890
23891 guint button;
23892 guint32 activate_time;
23893
23894 guint active : 1;
23895 guint have_grab : 1;
23896 guint have_xgrab : 1;
23897 guint ignore_leave : 1;
23898 guint menu_flag : 1;
23899 guint ignore_enter : 1;
23900 };
23901
23902 struct _GtkMenuShellClass
23903 {
23904 GtkContainerClass parent_class;
23905
23906 guint submenu_placement : 1;
23907
23908 void (*deactivate) (GtkMenuShell *menu_shell);
23909 void (*selection_done) (GtkMenuShell *menu_shell);
23910
23911 void (*move_current) (GtkMenuShell *menu_shell,
23912 GtkMenuDirectionType direction);
23913 void (*activate_current) (GtkMenuShell *menu_shell,
23914 gboolean force_hide);
23915 void (*cancel) (GtkMenuShell *menu_shell);
23916 void (*select_item) (GtkMenuShell *menu_shell,
23917 GtkWidget *menu_item);
23918 void (*insert) (GtkMenuShell *menu_shell,
23919 GtkWidget *child,
23920 gint position);
23921 gint (*get_popup_delay) (GtkMenuShell *menu_shell);
23922
23923
23924 void (*_gtk_reserved1) (void);
23925 void (*_gtk_reserved2) (void);
23926 void (*_gtk_reserved3) (void);
23927 };
23928
23929
23930 GType gtk_menu_shell_get_type (void) __attribute__((__const__));
23931 void gtk_menu_shell_append (GtkMenuShell *menu_shell,
23932 GtkWidget *child);
23933 void gtk_menu_shell_prepend (GtkMenuShell *menu_shell,
23934 GtkWidget *child);
23935 void gtk_menu_shell_insert (GtkMenuShell *menu_shell,
23936 GtkWidget *child,
23937 gint position);
23938 void gtk_menu_shell_deactivate (GtkMenuShell *menu_shell);
23939 void gtk_menu_shell_select_item (GtkMenuShell *menu_shell,
23940 GtkWidget *menu_item);
23941 void gtk_menu_shell_deselect (GtkMenuShell *menu_shell);
23942 void gtk_menu_shell_activate_item (GtkMenuShell *menu_shell,
23943 GtkWidget *menu_item,
23944 gboolean force_deactivate);
23945 void gtk_menu_shell_select_first (GtkMenuShell *menu_shell,
23946 gboolean search_sensitive);
23947 void _gtk_menu_shell_select_last (GtkMenuShell *menu_shell,
23948 gboolean search_sensitive);
23949 void _gtk_menu_shell_activate (GtkMenuShell *menu_shell);
23950 gint _gtk_menu_shell_get_popup_delay (GtkMenuShell *menu_shell);
23951 void gtk_menu_shell_cancel (GtkMenuShell *menu_shell);
23952
23953 void _gtk_menu_shell_add_mnemonic (GtkMenuShell *menu_shell,
23954 guint keyval,
23955 GtkWidget *target);
23956 void _gtk_menu_shell_remove_mnemonic (GtkMenuShell *menu_shell,
23957 guint keyval,
23958 GtkWidget *target);
23959
23960 gboolean gtk_menu_shell_get_take_focus (GtkMenuShell *menu_shell);
23961 void gtk_menu_shell_set_take_focus (GtkMenuShell *menu_shell,
23962 gboolean take_focus);
23963 # 34 "/usr/include/gtk-2.0/gtk/gtkmenu.h" 2
23964 # 46 "/usr/include/gtk-2.0/gtk/gtkmenu.h"
23965 typedef struct _GtkMenu GtkMenu;
23966 typedef struct _GtkMenuClass GtkMenuClass;
23967
23968 typedef void (*GtkMenuPositionFunc) (GtkMenu *menu,
23969 gint *x,
23970 gint *y,
23971 gboolean *push_in,
23972 gpointer user_data);
23973 typedef void (*GtkMenuDetachFunc) (GtkWidget *attach_widget,
23974 GtkMenu *menu);
23975
23976 struct _GtkMenu
23977 {
23978 GtkMenuShell menu_shell;
23979
23980 GtkWidget *parent_menu_item;
23981 GtkWidget *old_active_menu_item;
23982
23983 GtkAccelGroup *accel_group;
23984 gchar *accel_path;
23985 GtkMenuPositionFunc position_func;
23986 gpointer position_func_data;
23987
23988 guint toggle_size;
23989
23990
23991
23992
23993 GtkWidget *toplevel;
23994
23995 GtkWidget *tearoff_window;
23996 GtkWidget *tearoff_hbox;
23997 GtkWidget *tearoff_scrollbar;
23998 GtkAdjustment *tearoff_adjustment;
23999
24000 GdkWindow *view_window;
24001 GdkWindow *bin_window;
24002
24003 gint scroll_offset;
24004 gint saved_scroll_offset;
24005 gint scroll_step;
24006 guint timeout_id;
24007
24008
24009
24010
24011 GdkRegion *navigation_region;
24012 guint navigation_timeout;
24013
24014 guint needs_destruction_ref_count : 1;
24015 guint torn_off : 1;
24016
24017
24018
24019 guint tearoff_active : 1;
24020
24021 guint scroll_fast : 1;
24022
24023 guint upper_arrow_visible : 1;
24024 guint lower_arrow_visible : 1;
24025 guint upper_arrow_prelight : 1;
24026 guint lower_arrow_prelight : 1;
24027 };
24028
24029 struct _GtkMenuClass
24030 {
24031 GtkMenuShellClass parent_class;
24032
24033
24034 void (*_gtk_reserved1) (void);
24035 void (*_gtk_reserved2) (void);
24036 void (*_gtk_reserved3) (void);
24037 void (*_gtk_reserved4) (void);
24038 };
24039
24040
24041 GType gtk_menu_get_type (void) __attribute__((__const__));
24042 GtkWidget* gtk_menu_new (void);
24043
24044
24045 void gtk_menu_popup (GtkMenu *menu,
24046 GtkWidget *parent_menu_shell,
24047 GtkWidget *parent_menu_item,
24048 GtkMenuPositionFunc func,
24049 gpointer data,
24050 guint button,
24051 guint32 activate_time);
24052
24053
24054
24055
24056 void gtk_menu_reposition (GtkMenu *menu);
24057
24058 void gtk_menu_popdown (GtkMenu *menu);
24059
24060
24061
24062
24063 GtkWidget* gtk_menu_get_active (GtkMenu *menu);
24064 void gtk_menu_set_active (GtkMenu *menu,
24065 guint index_);
24066
24067
24068
24069
24070 void gtk_menu_set_accel_group (GtkMenu *menu,
24071 GtkAccelGroup *accel_group);
24072 GtkAccelGroup* gtk_menu_get_accel_group (GtkMenu *menu);
24073 void gtk_menu_set_accel_path (GtkMenu *menu,
24074 const gchar *accel_path);
24075
24076
24077
24078
24079
24080 void gtk_menu_attach_to_widget (GtkMenu *menu,
24081 GtkWidget *attach_widget,
24082 GtkMenuDetachFunc detacher);
24083 void gtk_menu_detach (GtkMenu *menu);
24084
24085
24086
24087
24088
24089 GtkWidget* gtk_menu_get_attach_widget (GtkMenu *menu);
24090
24091 void gtk_menu_set_tearoff_state (GtkMenu *menu,
24092 gboolean torn_off);
24093 gboolean gtk_menu_get_tearoff_state (GtkMenu *menu);
24094
24095
24096
24097
24098 void gtk_menu_set_title (GtkMenu *menu,
24099 const gchar *title);
24100 const gchar *gtk_menu_get_title (GtkMenu *menu);
24101
24102 void gtk_menu_reorder_child (GtkMenu *menu,
24103 GtkWidget *child,
24104 gint position);
24105
24106 void gtk_menu_set_screen (GtkMenu *menu,
24107 GdkScreen *screen);
24108
24109 void gtk_menu_attach (GtkMenu *menu,
24110 GtkWidget *child,
24111 guint left_attach,
24112 guint right_attach,
24113 guint top_attach,
24114 guint bottom_attach);
24115
24116 void gtk_menu_set_monitor (GtkMenu *menu,
24117 gint monitor_num);
24118 GList* gtk_menu_get_for_attach_widget (GtkWidget *widget);
24119 # 34 "/usr/include/gtk-2.0/gtk/gtklabel.h" 2
24120 # 45 "/usr/include/gtk-2.0/gtk/gtklabel.h"
24121 typedef struct _GtkLabel GtkLabel;
24122 typedef struct _GtkLabelClass GtkLabelClass;
24123
24124 typedef struct _GtkLabelSelectionInfo GtkLabelSelectionInfo;
24125
24126 struct _GtkLabel
24127 {
24128 GtkMisc misc;
24129
24130
24131 gchar *label;
24132 guint jtype : 2;
24133 guint wrap : 1;
24134 guint use_underline : 1;
24135 guint use_markup : 1;
24136 guint ellipsize : 3;
24137
24138 guint mnemonic_keyval;
24139
24140 gchar *text;
24141 PangoAttrList *attrs;
24142 PangoAttrList *effective_attrs;
24143
24144 PangoLayout *layout;
24145
24146 GtkWidget *mnemonic_widget;
24147 GtkWindow *mnemonic_window;
24148
24149 GtkLabelSelectionInfo *select_info;
24150 };
24151
24152 struct _GtkLabelClass
24153 {
24154 GtkMiscClass parent_class;
24155
24156 void (* move_cursor) (GtkLabel *label,
24157 GtkMovementStep step,
24158 gint count,
24159 gboolean extend_selection);
24160 void (* copy_clipboard) (GtkLabel *label);
24161
24162
24163 void (* populate_popup) (GtkLabel *label,
24164 GtkMenu *menu);
24165
24166
24167 void (*_gtk_reserved1) (void);
24168 void (*_gtk_reserved2) (void);
24169 void (*_gtk_reserved3) (void);
24170 void (*_gtk_reserved4) (void);
24171 };
24172
24173 GType gtk_label_get_type (void) __attribute__((__const__));
24174 GtkWidget* gtk_label_new (const gchar *str);
24175 GtkWidget* gtk_label_new_with_mnemonic (const gchar *str);
24176 void gtk_label_set_text (GtkLabel *label,
24177 const gchar *str);
24178 const gchar* gtk_label_get_text (GtkLabel *label);
24179 void gtk_label_set_attributes (GtkLabel *label,
24180 PangoAttrList *attrs);
24181 PangoAttrList *gtk_label_get_attributes (GtkLabel *label);
24182 void gtk_label_set_label (GtkLabel *label,
24183 const gchar *str);
24184 const gchar *gtk_label_get_label (GtkLabel *label);
24185 void gtk_label_set_markup (GtkLabel *label,
24186 const gchar *str);
24187 void gtk_label_set_use_markup (GtkLabel *label,
24188 gboolean setting);
24189 gboolean gtk_label_get_use_markup (GtkLabel *label);
24190 void gtk_label_set_use_underline (GtkLabel *label,
24191 gboolean setting);
24192 gboolean gtk_label_get_use_underline (GtkLabel *label);
24193
24194 void gtk_label_set_markup_with_mnemonic (GtkLabel *label,
24195 const gchar *str);
24196 guint gtk_label_get_mnemonic_keyval (GtkLabel *label);
24197 void gtk_label_set_mnemonic_widget (GtkLabel *label,
24198 GtkWidget *widget);
24199 GtkWidget *gtk_label_get_mnemonic_widget (GtkLabel *label);
24200 void gtk_label_set_text_with_mnemonic (GtkLabel *label,
24201 const gchar *str);
24202 void gtk_label_set_justify (GtkLabel *label,
24203 GtkJustification jtype);
24204 GtkJustification gtk_label_get_justify (GtkLabel *label);
24205 void gtk_label_set_ellipsize (GtkLabel *label,
24206 PangoEllipsizeMode mode);
24207 PangoEllipsizeMode gtk_label_get_ellipsize (GtkLabel *label);
24208 void gtk_label_set_width_chars (GtkLabel *label,
24209 gint n_chars);
24210 gint gtk_label_get_width_chars (GtkLabel *label);
24211 void gtk_label_set_max_width_chars (GtkLabel *label,
24212 gint n_chars);
24213 gint gtk_label_get_max_width_chars (GtkLabel *label);
24214 void gtk_label_set_pattern (GtkLabel *label,
24215 const gchar *pattern);
24216 void gtk_label_set_line_wrap (GtkLabel *label,
24217 gboolean wrap);
24218 gboolean gtk_label_get_line_wrap (GtkLabel *label);
24219 void gtk_label_set_selectable (GtkLabel *label,
24220 gboolean setting);
24221 gboolean gtk_label_get_selectable (GtkLabel *label);
24222 void gtk_label_set_angle (GtkLabel *label,
24223 gdouble angle);
24224 gdouble gtk_label_get_angle (GtkLabel *label);
24225 void gtk_label_select_region (GtkLabel *label,
24226 gint start_offset,
24227 gint end_offset);
24228 gboolean gtk_label_get_selection_bounds (GtkLabel *label,
24229 gint *start,
24230 gint *end);
24231
24232 PangoLayout *gtk_label_get_layout (GtkLabel *label);
24233 void gtk_label_get_layout_offsets (GtkLabel *label,
24234 gint *x,
24235 gint *y);
24236
24237 void gtk_label_set_single_line_mode (GtkLabel *label,
24238 gboolean single_line_mode);
24239 gboolean gtk_label_get_single_line_mode (GtkLabel *label);
24240
24241
24242
24243
24244 void gtk_label_get (GtkLabel *label,
24245 gchar **str);
24246
24247
24248
24249
24250
24251 guint gtk_label_parse_uline (GtkLabel *label,
24252 const gchar *string);
24253 # 35 "/usr/include/gtk-2.0/gtk/gtkaccellabel.h" 2
24254 # 47 "/usr/include/gtk-2.0/gtk/gtkaccellabel.h"
24255 typedef struct _GtkAccelLabel GtkAccelLabel;
24256 typedef struct _GtkAccelLabelClass GtkAccelLabelClass;
24257
24258 struct _GtkAccelLabel
24259 {
24260 GtkLabel label;
24261
24262 guint gtk_reserved;
24263 guint accel_padding;
24264 GtkWidget *accel_widget;
24265 GClosure *accel_closure;
24266 GtkAccelGroup *accel_group;
24267 gchar *accel_string;
24268 guint16 accel_string_width;
24269 };
24270
24271 struct _GtkAccelLabelClass
24272 {
24273 GtkLabelClass parent_class;
24274
24275 gchar *signal_quote1;
24276 gchar *signal_quote2;
24277 gchar *mod_name_shift;
24278 gchar *mod_name_control;
24279 gchar *mod_name_alt;
24280 gchar *mod_separator;
24281 gchar *accel_seperator;
24282 guint latin1_to_char : 1;
24283
24284
24285 void (*_gtk_reserved1) (void);
24286 void (*_gtk_reserved2) (void);
24287 void (*_gtk_reserved3) (void);
24288 void (*_gtk_reserved4) (void);
24289 };
24290
24291
24292
24293
24294
24295 GType gtk_accel_label_get_type (void) __attribute__((__const__));
24296 GtkWidget* gtk_accel_label_new (const gchar *string);
24297 GtkWidget* gtk_accel_label_get_accel_widget (GtkAccelLabel *accel_label);
24298 guint gtk_accel_label_get_accel_width (GtkAccelLabel *accel_label);
24299 void gtk_accel_label_set_accel_widget (GtkAccelLabel *accel_label,
24300 GtkWidget *accel_widget);
24301 void gtk_accel_label_set_accel_closure (GtkAccelLabel *accel_label,
24302 GClosure *accel_closure);
24303 gboolean gtk_accel_label_refetch (GtkAccelLabel *accel_label);
24304
24305
24306 gchar * _gtk_accel_label_class_get_accelerator_label (GtkAccelLabelClass *klass,
24307 guint accelerator_key,
24308 GdkModifierType accelerator_mods);
24309 # 35 "/usr/include/gtk-2.0/gtk/gtk.h" 2
24310
24311 # 1 "/usr/include/gtk-2.0/gtk/gtkaccelmap.h" 1
24312 # 25 "/usr/include/gtk-2.0/gtk/gtkaccelmap.h"
24313 # 35 "/usr/include/gtk-2.0/gtk/gtkaccelmap.h"
24314 typedef struct _GtkAccelMap GtkAccelMap;
24315 typedef struct _GtkAccelMapClass GtkAccelMapClass;
24316
24317
24318 typedef void (*GtkAccelMapForeach) (gpointer data,
24319 const gchar *accel_path,
24320 guint accel_key,
24321 GdkModifierType accel_mods,
24322 gboolean changed);
24323 # 54 "/usr/include/gtk-2.0/gtk/gtkaccelmap.h"
24324 void gtk_accel_map_add_entry (const gchar *accel_path,
24325 guint accel_key,
24326 GdkModifierType accel_mods);
24327 gboolean gtk_accel_map_lookup_entry (const gchar *accel_path,
24328 GtkAccelKey *key);
24329 gboolean gtk_accel_map_change_entry (const gchar *accel_path,
24330 guint accel_key,
24331 GdkModifierType accel_mods,
24332 gboolean replace);
24333 void gtk_accel_map_load (const gchar *file_name);
24334 void gtk_accel_map_save (const gchar *file_name);
24335 void gtk_accel_map_foreach (gpointer data,
24336 GtkAccelMapForeach foreach_func);
24337 void gtk_accel_map_load_fd (gint fd);
24338 void gtk_accel_map_load_scanner (GScanner *scanner);
24339 void gtk_accel_map_save_fd (gint fd);
24340
24341 void gtk_accel_map_lock_path (const gchar *accel_path);
24342 void gtk_accel_map_unlock_path (const gchar *accel_path);
24343
24344
24345 void gtk_accel_map_add_filter (const gchar *filter_pattern);
24346 void gtk_accel_map_foreach_unfiltered (gpointer data,
24347 GtkAccelMapForeach foreach_func);
24348
24349
24350 GType gtk_accel_map_get_type (void) __attribute__((__const__));
24351 GtkAccelMap *gtk_accel_map_get (void);
24352
24353
24354
24355 void _gtk_accel_map_init (void);
24356
24357 void _gtk_accel_map_add_group (const gchar *accel_path,
24358 GtkAccelGroup *accel_group);
24359 void _gtk_accel_map_remove_group (const gchar *accel_path,
24360 GtkAccelGroup *accel_group);
24361 gboolean _gtk_accel_path_is_valid (const gchar *accel_path);
24362 # 36 "/usr/include/gtk-2.0/gtk/gtk.h" 2
24363
24364 # 1 "/usr/include/gtk-2.0/gtk/gtkaccessible.h" 1
24365 # 23 "/usr/include/gtk-2.0/gtk/gtkaccessible.h"
24366
24367 # 1 "/usr/include/atk-1.0/atk/atk.h" 1
24368 # 24 "/usr/include/atk-1.0/atk/atk.h"
24369
24370 # 1 "/usr/include/atk-1.0/atk/atkaction.h" 1
24371 # 45 "/usr/include/atk-1.0/atk/atkaction.h"
24372 typedef struct _AtkAction AtkAction;
24373
24374 typedef struct _AtkActionIface AtkActionIface;
24375
24376 struct _AtkActionIface
24377 {
24378 GTypeInterface parent;
24379
24380 gboolean (*do_action) (AtkAction *action,
24381 gint i);
24382 gint (*get_n_actions) (AtkAction *action);
24383 const gchar* (*get_description) (AtkAction *action,
24384 gint i);
24385 const gchar* (*get_name) (AtkAction *action,
24386 gint i);
24387 const gchar* (*get_keybinding) (AtkAction *action,
24388 gint i);
24389 gboolean (*set_description) (AtkAction *action,
24390 gint i,
24391 const gchar *desc);
24392 const gchar* (*get_localized_name)(AtkAction *action,
24393 gint i);
24394 AtkFunction pad2;
24395 };
24396
24397 GType atk_action_get_type (void);
24398 # 83 "/usr/include/atk-1.0/atk/atkaction.h"
24399 gboolean atk_action_do_action (AtkAction *action,
24400 gint i);
24401 gint atk_action_get_n_actions (AtkAction *action);
24402 const gchar* atk_action_get_description (AtkAction *action,
24403 gint i);
24404 const gchar* atk_action_get_name (AtkAction *action,
24405 gint i);
24406 const gchar* atk_action_get_keybinding (AtkAction *action,
24407 gint i);
24408 gboolean atk_action_set_description (AtkAction *action,
24409 gint i,
24410 const gchar *desc);
24411
24412
24413
24414 const gchar* atk_action_get_localized_name (AtkAction *action,
24415 gint i);
24416 # 25 "/usr/include/atk-1.0/atk/atk.h" 2
24417
24418 # 1 "/usr/include/atk-1.0/atk/atkcomponent.h" 1
24419 # 24 "/usr/include/atk-1.0/atk/atkcomponent.h"
24420
24421 # 1 "/usr/include/atk-1.0/atk/atkutil.h" 1
24422 # 39 "/usr/include/atk-1.0/atk/atkutil.h"
24423 typedef struct _AtkUtil AtkUtil;
24424 typedef struct _AtkUtilClass AtkUtilClass;
24425 typedef struct _AtkKeyEventStruct AtkKeyEventStruct;
24426 # 57 "/usr/include/atk-1.0/atk/atkutil.h"
24427 typedef void (*AtkEventListener) (AtkObject* obj);
24428 # 67 "/usr/include/atk-1.0/atk/atkutil.h"
24429 typedef void (*AtkEventListenerInit) (void);
24430 # 84 "/usr/include/atk-1.0/atk/atkutil.h"
24431 typedef gint (*AtkKeySnoopFunc) (AtkKeyEventStruct *event,
24432 gpointer func_data);
24433 # 108 "/usr/include/atk-1.0/atk/atkutil.h"
24434 struct _AtkKeyEventStruct {
24435 gint type;
24436 guint state;
24437 guint keyval;
24438 gint length;
24439 gchar *string;
24440 guint16 keycode;
24441 guint32 timestamp;
24442 };
24443 # 126 "/usr/include/atk-1.0/atk/atkutil.h"
24444 typedef enum
24445 {
24446 ATK_KEY_EVENT_PRESS,
24447 ATK_KEY_EVENT_RELEASE,
24448 ATK_KEY_EVENT_LAST_DEFINED
24449 } AtkKeyEventType;
24450
24451 struct _AtkUtil
24452 {
24453 GObject parent;
24454 };
24455
24456 struct _AtkUtilClass
24457 {
24458 GObjectClass parent;
24459 guint (* add_global_event_listener) (GSignalEmissionHook listener,
24460 const gchar *event_type);
24461 void (* remove_global_event_listener) (guint listener_id);
24462 guint (* add_key_event_listener) (AtkKeySnoopFunc listener,
24463 gpointer data);
24464 void (* remove_key_event_listener) (guint listener_id);
24465 AtkObject* (* get_root) (void);
24466 const gchar* (* get_toolkit_name) (void);
24467 const gchar* (* get_toolkit_version) (void);
24468 };
24469 GType atk_util_get_type (void);
24470 # 162 "/usr/include/atk-1.0/atk/atkutil.h"
24471 typedef enum {
24472 ATK_XY_SCREEN,
24473 ATK_XY_WINDOW
24474 }AtkCoordType;
24475
24476
24477
24478
24479
24480 guint atk_add_focus_tracker (AtkEventListener focus_tracker);
24481
24482
24483
24484
24485
24486 void atk_remove_focus_tracker (guint tracker_id);
24487 # 189 "/usr/include/atk-1.0/atk/atkutil.h"
24488 void atk_focus_tracker_init (AtkEventListenerInit init);
24489
24490
24491
24492
24493
24494 void atk_focus_tracker_notify (AtkObject *object);
24495
24496
24497
24498
24499
24500 guint atk_add_global_event_listener (GSignalEmissionHook listener,
24501 const gchar *event_type);
24502
24503
24504
24505
24506 void atk_remove_global_event_listener (guint listener_id);
24507
24508
24509
24510
24511
24512 guint atk_add_key_event_listener (AtkKeySnoopFunc listener, gpointer data);
24513
24514
24515
24516
24517 void atk_remove_key_event_listener (guint listener_id);
24518
24519
24520
24521
24522 AtkObject* atk_get_root(void);
24523
24524 AtkObject* atk_get_focus_object (void);
24525
24526
24527
24528
24529 const gchar *atk_get_toolkit_name (void);
24530
24531
24532
24533
24534 const gchar *atk_get_toolkit_version (void);
24535 # 25 "/usr/include/atk-1.0/atk/atkcomponent.h" 2
24536 # 44 "/usr/include/atk-1.0/atk/atkcomponent.h"
24537 typedef struct _AtkComponent AtkComponent;
24538
24539 typedef struct _AtkComponentIface AtkComponentIface;
24540
24541 typedef void (*AtkFocusHandler) (AtkObject*, gboolean);
24542
24543 typedef struct _AtkRectangle AtkRectangle;
24544
24545 struct _AtkRectangle
24546 {
24547 gint x;
24548 gint y;
24549 gint width;
24550 gint height;
24551 };
24552
24553 GType atk_rectangle_get_type (void);
24554
24555
24556 struct _AtkComponentIface
24557 {
24558 GTypeInterface parent;
24559
24560 guint (* add_focus_handler) (AtkComponent *component,
24561 AtkFocusHandler handler);
24562
24563 gboolean (* contains) (AtkComponent *component,
24564 gint x,
24565 gint y,
24566 AtkCoordType coord_type);
24567
24568 AtkObject* (* ref_accessible_at_point) (AtkComponent *component,
24569 gint x,
24570 gint y,
24571 AtkCoordType coord_type);
24572 void (* get_extents) (AtkComponent *component,
24573 gint *x,
24574 gint *y,
24575 gint *width,
24576 gint *height,
24577 AtkCoordType coord_type);
24578 void (* get_position) (AtkComponent *component,
24579 gint *x,
24580 gint *y,
24581 AtkCoordType coord_type);
24582 void (* get_size) (AtkComponent *component,
24583 gint *width,
24584 gint *height);
24585 gboolean (* grab_focus) (AtkComponent *component);
24586 void (* remove_focus_handler) (AtkComponent *component,
24587 guint handler_id);
24588 gboolean (* set_extents) (AtkComponent *component,
24589 gint x,
24590 gint y,
24591 gint width,
24592 gint height,
24593 AtkCoordType coord_type);
24594 gboolean (* set_position) (AtkComponent *component,
24595 gint x,
24596 gint y,
24597 AtkCoordType coord_type);
24598 gboolean (* set_size) (AtkComponent *component,
24599 gint width,
24600 gint height);
24601
24602 AtkLayer (* get_layer) (AtkComponent *component);
24603 gint (* get_mdi_zorder) (AtkComponent *component);
24604
24605
24606
24607
24608 void (* bounds_changed) (AtkComponent *component,
24609 AtkRectangle *bounds);
24610 gdouble (* get_alpha) (AtkComponent *component);
24611 };
24612
24613 GType atk_component_get_type (void);
24614
24615
24616
24617 guint atk_component_add_focus_handler (AtkComponent *component,
24618 AtkFocusHandler handler);
24619 gboolean atk_component_contains (AtkComponent *component,
24620 gint x,
24621 gint y,
24622 AtkCoordType coord_type);
24623 AtkObject* atk_component_ref_accessible_at_point(AtkComponent *component,
24624 gint x,
24625 gint y,
24626 AtkCoordType coord_type);
24627 void atk_component_get_extents (AtkComponent *component,
24628 gint *x,
24629 gint *y,
24630 gint *width,
24631 gint *height,
24632 AtkCoordType coord_type);
24633 void atk_component_get_position (AtkComponent *component,
24634 gint *x,
24635 gint *y,
24636 AtkCoordType coord_type);
24637 void atk_component_get_size (AtkComponent *component,
24638 gint *width,
24639 gint *height);
24640 AtkLayer atk_component_get_layer (AtkComponent *component);
24641 gint atk_component_get_mdi_zorder (AtkComponent *component);
24642 gboolean atk_component_grab_focus (AtkComponent *component);
24643 void atk_component_remove_focus_handler (AtkComponent *component,
24644 guint handler_id);
24645 gboolean atk_component_set_extents (AtkComponent *component,
24646 gint x,
24647 gint y,
24648 gint width,
24649 gint height,
24650 AtkCoordType coord_type);
24651 gboolean atk_component_set_position (AtkComponent *component,
24652 gint x,
24653 gint y,
24654 AtkCoordType coord_type);
24655 gboolean atk_component_set_size (AtkComponent *component,
24656 gint width,
24657 gint height);
24658 gdouble atk_component_get_alpha (AtkComponent *component);
24659 # 26 "/usr/include/atk-1.0/atk/atk.h" 2
24660
24661 # 1 "/usr/include/atk-1.0/atk/atkdocument.h" 1
24662 # 43 "/usr/include/atk-1.0/atk/atkdocument.h"
24663 typedef struct _AtkDocument AtkDocument;
24664
24665 typedef struct _AtkDocumentIface AtkDocumentIface;
24666
24667 struct _AtkDocumentIface
24668 {
24669 GTypeInterface parent;
24670 const gchar* ( *get_document_type) (AtkDocument *document);
24671 gpointer ( *get_document) (AtkDocument *document);
24672
24673 const gchar* ( *get_document_locale) (AtkDocument *document);
24674 AtkAttributeSet * ( *get_document_attributes) (AtkDocument *document);
24675 const gchar* ( *get_document_attribute_value) (AtkDocument *document,
24676 const gchar *attribute_name);
24677 gboolean ( *set_document_attribute) (AtkDocument *document,
24678 const gchar *attribute_name,
24679 const gchar *attribute_value);
24680 AtkFunction pad1;
24681 AtkFunction pad2;
24682 AtkFunction pad3;
24683 AtkFunction pad4;
24684 };
24685
24686 GType atk_document_get_type (void);
24687
24688 const gchar* atk_document_get_document_type (AtkDocument *document);
24689 gpointer atk_document_get_document (AtkDocument *document);
24690 const gchar* atk_document_get_locale (AtkDocument *document);
24691 AtkAttributeSet* atk_document_get_attributes (AtkDocument *document);
24692 const gchar* atk_document_get_attribute_value (AtkDocument *document,
24693 const gchar *attribute_name);
24694 gboolean atk_document_set_attribute_value (AtkDocument *document,
24695 const gchar *attribute_name,
24696 const gchar *attribute_value);
24697 # 27 "/usr/include/atk-1.0/atk/atk.h" 2
24698
24699 # 1 "/usr/include/atk-1.0/atk/atkeditabletext.h" 1
24700 # 24 "/usr/include/atk-1.0/atk/atkeditabletext.h"
24701
24702 # 1 "/usr/include/atk-1.0/atk/atktext.h" 1
24703 # 66 "/usr/include/atk-1.0/atk/atktext.h"
24704 typedef enum
24705 {
24706 ATK_TEXT_ATTR_INVALID = 0,
24707 ATK_TEXT_ATTR_LEFT_MARGIN,
24708 ATK_TEXT_ATTR_RIGHT_MARGIN,
24709 ATK_TEXT_ATTR_INDENT,
24710 ATK_TEXT_ATTR_INVISIBLE,
24711 ATK_TEXT_ATTR_EDITABLE,
24712 ATK_TEXT_ATTR_PIXELS_ABOVE_LINES,
24713 ATK_TEXT_ATTR_PIXELS_BELOW_LINES,
24714 ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP,
24715 ATK_TEXT_ATTR_BG_FULL_HEIGHT,
24716 ATK_TEXT_ATTR_RISE,
24717 ATK_TEXT_ATTR_UNDERLINE,
24718 ATK_TEXT_ATTR_STRIKETHROUGH,
24719 ATK_TEXT_ATTR_SIZE,
24720 ATK_TEXT_ATTR_SCALE,
24721 ATK_TEXT_ATTR_WEIGHT,
24722 ATK_TEXT_ATTR_LANGUAGE,
24723 ATK_TEXT_ATTR_FAMILY_NAME,
24724 ATK_TEXT_ATTR_BG_COLOR,
24725 ATK_TEXT_ATTR_FG_COLOR,
24726 ATK_TEXT_ATTR_BG_STIPPLE,
24727 ATK_TEXT_ATTR_FG_STIPPLE,
24728 ATK_TEXT_ATTR_WRAP_MODE,
24729 ATK_TEXT_ATTR_DIRECTION,
24730 ATK_TEXT_ATTR_JUSTIFICATION,
24731 ATK_TEXT_ATTR_STRETCH,
24732 ATK_TEXT_ATTR_VARIANT,
24733 ATK_TEXT_ATTR_STYLE,
24734 ATK_TEXT_ATTR_LAST_DEFINED
24735 } AtkTextAttribute;
24736
24737 AtkTextAttribute atk_text_attribute_register (const gchar *name);
24738 # 109 "/usr/include/atk-1.0/atk/atktext.h"
24739 typedef struct _AtkText AtkText;
24740
24741 typedef struct _AtkTextIface AtkTextIface;
24742 # 129 "/usr/include/atk-1.0/atk/atktext.h"
24743 typedef enum {
24744 ATK_TEXT_BOUNDARY_CHAR,
24745 ATK_TEXT_BOUNDARY_WORD_START,
24746 ATK_TEXT_BOUNDARY_WORD_END,
24747 ATK_TEXT_BOUNDARY_SENTENCE_START,
24748 ATK_TEXT_BOUNDARY_SENTENCE_END,
24749 ATK_TEXT_BOUNDARY_LINE_START,
24750 ATK_TEXT_BOUNDARY_LINE_END
24751 } AtkTextBoundary;
24752 # 149 "/usr/include/atk-1.0/atk/atktext.h"
24753 typedef struct _AtkTextRectangle AtkTextRectangle;
24754
24755 struct _AtkTextRectangle {
24756 gint x;
24757 gint y;
24758 gint width;
24759 gint height;
24760 };
24761 # 167 "/usr/include/atk-1.0/atk/atktext.h"
24762 typedef struct _AtkTextRange AtkTextRange;
24763
24764 struct _AtkTextRange {
24765 AtkTextRectangle bounds;
24766 gint start_offset;
24767 gint end_offset;
24768 gchar* content;
24769 };
24770 # 185 "/usr/include/atk-1.0/atk/atktext.h"
24771 typedef enum {
24772 ATK_TEXT_CLIP_NONE,
24773 ATK_TEXT_CLIP_MIN,
24774 ATK_TEXT_CLIP_MAX,
24775 ATK_TEXT_CLIP_BOTH
24776 } AtkTextClipType;
24777
24778 struct _AtkTextIface
24779 {
24780 GTypeInterface parent;
24781
24782 gchar* (* get_text) (AtkText *text,
24783 gint start_offset,
24784 gint end_offset);
24785 gchar* (* get_text_after_offset) (AtkText *text,
24786 gint offset,
24787 AtkTextBoundary boundary_type,
24788 gint *start_offset,
24789 gint *end_offset);
24790 gchar* (* get_text_at_offset) (AtkText *text,
24791 gint offset,
24792 AtkTextBoundary boundary_type,
24793 gint *start_offset,
24794 gint *end_offset);
24795 gunichar (* get_character_at_offset) (AtkText *text,
24796 gint offset);
24797 gchar* (* get_text_before_offset) (AtkText *text,
24798 gint offset,
24799 AtkTextBoundary boundary_type,
24800 gint *start_offset,
24801 gint *end_offset);
24802 gint (* get_caret_offset) (AtkText *text);
24803 AtkAttributeSet* (* get_run_attributes) (AtkText *text,
24804 gint offset,
24805 gint *start_offset,
24806 gint *end_offset);
24807 AtkAttributeSet* (* get_default_attributes) (AtkText *text);
24808 void (* get_character_extents) (AtkText *text,
24809 gint offset,
24810 gint *x,
24811 gint *y,
24812 gint *width,
24813 gint *height,
24814 AtkCoordType coords);
24815 gint (* get_character_count) (AtkText *text);
24816 gint (* get_offset_at_point) (AtkText *text,
24817 gint x,
24818 gint y,
24819 AtkCoordType coords);
24820 gint (* get_n_selections) (AtkText *text);
24821 gchar* (* get_selection) (AtkText *text,
24822 gint selection_num,
24823 gint *start_offset,
24824 gint *end_offset);
24825 gboolean (* add_selection) (AtkText *text,
24826 gint start_offset,
24827 gint end_offset);
24828 gboolean (* remove_selection) (AtkText *text,
24829 gint selection_num);
24830 gboolean (* set_selection) (AtkText *text,
24831 gint selection_num,
24832 gint start_offset,
24833 gint end_offset);
24834 gboolean (* set_caret_offset) (AtkText *text,
24835 gint offset);
24836
24837
24838
24839
24840 void (* text_changed) (AtkText *text,
24841 gint position,
24842 gint length);
24843 void (* text_caret_moved) (AtkText *text,
24844 gint location);
24845 void (* text_selection_changed) (AtkText *text);
24846
24847 void (* text_attributes_changed) (AtkText *text);
24848
24849
24850 void (* get_range_extents) (AtkText *text,
24851 gint start_offset,
24852 gint end_offset,
24853 AtkCoordType coord_type,
24854 AtkTextRectangle *rect);
24855
24856 AtkTextRange** (* get_bounded_ranges) (AtkText *text,
24857 AtkTextRectangle *rect,
24858 AtkCoordType coord_type,
24859 AtkTextClipType x_clip_type,
24860 AtkTextClipType y_clip_type);
24861
24862
24863 AtkFunction pad4;
24864 };
24865
24866 GType atk_text_get_type (void);
24867 # 290 "/usr/include/atk-1.0/atk/atktext.h"
24868 gchar* atk_text_get_text (AtkText *text,
24869 gint start_offset,
24870 gint end_offset);
24871 gunichar atk_text_get_character_at_offset (AtkText *text,
24872 gint offset);
24873 gchar* atk_text_get_text_after_offset (AtkText *text,
24874 gint offset,
24875 AtkTextBoundary boundary_type,
24876 gint *start_offset,
24877 gint *end_offset);
24878 gchar* atk_text_get_text_at_offset (AtkText *text,
24879 gint offset,
24880 AtkTextBoundary boundary_type,
24881 gint *start_offset,
24882 gint *end_offset);
24883 gchar* atk_text_get_text_before_offset (AtkText *text,
24884 gint offset,
24885 AtkTextBoundary boundary_type,
24886 gint *start_offset,
24887 gint *end_offset);
24888 gint atk_text_get_caret_offset (AtkText *text);
24889 void atk_text_get_character_extents (AtkText *text,
24890 gint offset,
24891 gint *x,
24892 gint *y,
24893 gint *width,
24894 gint *height,
24895 AtkCoordType coords);
24896 AtkAttributeSet* atk_text_get_run_attributes (AtkText *text,
24897 gint offset,
24898 gint *start_offset,
24899 gint *end_offset);
24900 AtkAttributeSet* atk_text_get_default_attributes (AtkText *text);
24901 gint atk_text_get_character_count (AtkText *text);
24902 gint atk_text_get_offset_at_point (AtkText *text,
24903 gint x,
24904 gint y,
24905 AtkCoordType coords);
24906 gint atk_text_get_n_selections (AtkText *text);
24907 gchar* atk_text_get_selection (AtkText *text,
24908 gint selection_num,
24909 gint *start_offset,
24910 gint *end_offset);
24911 gboolean atk_text_add_selection (AtkText *text,
24912 gint start_offset,
24913 gint end_offset);
24914 gboolean atk_text_remove_selection (AtkText *text,
24915 gint selection_num);
24916 gboolean atk_text_set_selection (AtkText *text,
24917 gint selection_num,
24918 gint start_offset,
24919 gint end_offset);
24920 gboolean atk_text_set_caret_offset (AtkText *text,
24921 gint offset);
24922 void atk_text_get_range_extents (AtkText *text,
24923
24924 gint start_offset,
24925 gint end_offset,
24926 AtkCoordType coord_type,
24927 AtkTextRectangle *rect);
24928 AtkTextRange** atk_text_get_bounded_ranges (AtkText *text,
24929 AtkTextRectangle *rect,
24930 AtkCoordType coord_type,
24931 AtkTextClipType x_clip_type,
24932 AtkTextClipType y_clip_type);
24933 void atk_text_free_ranges (AtkTextRange **ranges);
24934 void atk_attribute_set_free (AtkAttributeSet *attrib_set);
24935 const gchar* atk_text_attribute_get_name (AtkTextAttribute attr);
24936 AtkTextAttribute atk_text_attribute_for_name (const gchar *name);
24937 const gchar* atk_text_attribute_get_value (AtkTextAttribute attr,
24938 gint index_);
24939 # 25 "/usr/include/atk-1.0/atk/atkeditabletext.h" 2
24940 # 42 "/usr/include/atk-1.0/atk/atkeditabletext.h"
24941 typedef struct _AtkEditableText AtkEditableText;
24942
24943 typedef struct _AtkEditableTextIface AtkEditableTextIface;
24944
24945 struct _AtkEditableTextIface
24946 {
24947 GTypeInterface parent_interface;
24948
24949 gboolean (* set_run_attributes) (AtkEditableText *text,
24950 AtkAttributeSet *attrib_set,
24951 gint start_offset,
24952 gint end_offset);
24953 void (* set_text_contents) (AtkEditableText *text,
24954 const gchar *string);
24955 void (* insert_text) (AtkEditableText *text,
24956 const gchar *string,
24957 gint length,
24958 gint *position);
24959 void (* copy_text) (AtkEditableText *text,
24960 gint start_pos,
24961 gint end_pos);
24962 void (* cut_text) (AtkEditableText *text,
24963 gint start_pos,
24964 gint end_pos);
24965 void (* delete_text) (AtkEditableText *text,
24966 gint start_pos,
24967 gint end_pos);
24968 void (* paste_text) (AtkEditableText *text,
24969 gint position);
24970
24971 AtkFunction pad1;
24972 AtkFunction pad2;
24973 };
24974 GType atk_editable_text_get_type (void);
24975
24976
24977 gboolean atk_editable_text_set_run_attributes (AtkEditableText *text,
24978 AtkAttributeSet *attrib_set,
24979 gint start_offset,
24980 gint end_offset);
24981 void atk_editable_text_set_text_contents (AtkEditableText *text,
24982 const gchar *string);
24983 void atk_editable_text_insert_text (AtkEditableText *text,
24984 const gchar *string,
24985 gint length,
24986 gint *position);
24987 void atk_editable_text_copy_text (AtkEditableText *text,
24988 gint start_pos,
24989 gint end_pos);
24990 void atk_editable_text_cut_text (AtkEditableText *text,
24991 gint start_pos,
24992 gint end_pos);
24993 void atk_editable_text_delete_text (AtkEditableText *text,
24994 gint start_pos,
24995 gint end_pos);
24996 void atk_editable_text_paste_text (AtkEditableText *text,
24997 gint position);
24998 # 28 "/usr/include/atk-1.0/atk/atk.h" 2
24999
25000 # 1 "/usr/include/atk-1.0/atk/atkgobjectaccessible.h" 1
25001 # 23 "/usr/include/atk-1.0/atk/atkgobjectaccessible.h"
25002
25003 # 1 "/usr/include/atk-1.0/atk/atk.h" 1
25004 # 24 "/usr/include/atk-1.0/atk/atkgobjectaccessible.h" 2
25005 # 41 "/usr/include/atk-1.0/atk/atkgobjectaccessible.h"
25006 typedef struct _AtkGObjectAccessible AtkGObjectAccessible;
25007 typedef struct _AtkGObjectAccessibleClass AtkGObjectAccessibleClass;
25008
25009 struct _AtkGObjectAccessible
25010 {
25011 AtkObject parent;
25012 };
25013
25014 GType atk_gobject_accessible_get_type (void);
25015
25016 struct _AtkGObjectAccessibleClass
25017 {
25018 AtkObjectClass parent_class;
25019
25020 AtkFunction pad1;
25021 AtkFunction pad2;
25022 };
25023
25024 AtkObject *atk_gobject_accessible_for_object (GObject *obj);
25025 GObject *atk_gobject_accessible_get_object (AtkGObjectAccessible *obj);
25026 # 29 "/usr/include/atk-1.0/atk/atk.h" 2
25027
25028 # 1 "/usr/include/atk-1.0/atk/atkhyperlink.h" 1
25029 # 41 "/usr/include/atk-1.0/atk/atkhyperlink.h"
25030 typedef enum
25031 {
25032 ATK_HYPERLINK_IS_INLINE = 1 << 0
25033 } AtkHyperlinkStateFlags;
25034 # 53 "/usr/include/atk-1.0/atk/atkhyperlink.h"
25035 typedef struct _AtkHyperlink AtkHyperlink;
25036 typedef struct _AtkHyperlinkClass AtkHyperlinkClass;
25037
25038 struct _AtkHyperlink
25039 {
25040 GObject parent;
25041 };
25042
25043 struct _AtkHyperlinkClass
25044 {
25045 GObjectClass parent;
25046
25047 gchar* (* get_uri) (AtkHyperlink *link_,
25048 gint i);
25049 AtkObject* (* get_object) (AtkHyperlink *link_,
25050 gint i);
25051 gint (* get_end_index) (AtkHyperlink *link_);
25052 gint (* get_start_index) (AtkHyperlink *link_);
25053 gboolean (* is_valid) (AtkHyperlink *link_);
25054 gint (* get_n_anchors) (AtkHyperlink *link_);
25055 guint (* link_state) (AtkHyperlink *link_);
25056 gboolean (* is_selected_link) (AtkHyperlink *link_);
25057
25058
25059 void ( *link_activated) (AtkHyperlink *link_);
25060 AtkFunction pad1;
25061 };
25062
25063 GType atk_hyperlink_get_type (void);
25064
25065 gchar* atk_hyperlink_get_uri (AtkHyperlink *link_,
25066 gint i);
25067
25068 AtkObject* atk_hyperlink_get_object (AtkHyperlink *link_,
25069 gint i);
25070
25071 gint atk_hyperlink_get_end_index (AtkHyperlink *link_);
25072
25073 gint atk_hyperlink_get_start_index (AtkHyperlink *link_);
25074
25075 gboolean atk_hyperlink_is_valid (AtkHyperlink *link_);
25076
25077 gboolean atk_hyperlink_is_inline (AtkHyperlink *link_);
25078
25079 gint atk_hyperlink_get_n_anchors (AtkHyperlink *link_);
25080 gboolean atk_hyperlink_is_selected_link (AtkHyperlink *link_);
25081 # 30 "/usr/include/atk-1.0/atk/atk.h" 2
25082
25083 # 1 "/usr/include/atk-1.0/atk/atkhypertext.h" 1
25084 # 42 "/usr/include/atk-1.0/atk/atkhypertext.h"
25085 typedef struct _AtkHypertext AtkHypertext;
25086
25087 typedef struct _AtkHypertextIface AtkHypertextIface;
25088
25089 struct _AtkHypertextIface
25090 {
25091 GTypeInterface parent;
25092
25093 AtkHyperlink*(* get_link) (AtkHypertext *hypertext,
25094 gint link_index);
25095 gint (* get_n_links) (AtkHypertext *hypertext);
25096 gint (* get_link_index) (AtkHypertext *hypertext,
25097 gint char_index);
25098
25099
25100
25101
25102 void (* link_selected) (AtkHypertext *hypertext,
25103 gint link_index);
25104
25105 AtkFunction pad1;
25106 AtkFunction pad2;
25107 AtkFunction pad3;
25108 };
25109 GType atk_hypertext_get_type (void);
25110
25111 AtkHyperlink* atk_hypertext_get_link (AtkHypertext *hypertext,
25112 gint link_index);
25113 gint atk_hypertext_get_n_links (AtkHypertext *hypertext);
25114 gint atk_hypertext_get_link_index (AtkHypertext *hypertext,
25115 gint char_index);
25116 # 31 "/usr/include/atk-1.0/atk/atk.h" 2
25117
25118 # 1 "/usr/include/atk-1.0/atk/atkimage.h" 1
25119 # 43 "/usr/include/atk-1.0/atk/atkimage.h"
25120 typedef struct _AtkImage AtkImage;
25121
25122 typedef struct _AtkImageIface AtkImageIface;
25123
25124 struct _AtkImageIface
25125 {
25126 GTypeInterface parent;
25127 void ( *get_image_position) (AtkImage *image,
25128 gint *x,
25129 gint *y,
25130 AtkCoordType coord_type);
25131 const gchar* ( *get_image_description) (AtkImage *image);
25132 void ( *get_image_size) (AtkImage *image,
25133 gint *width,
25134 gint *height);
25135 gboolean ( *set_image_description) (AtkImage *image,
25136 const gchar *description);
25137 const gchar* ( *get_image_locale) (AtkImage *image);
25138
25139 AtkFunction pad1;
25140
25141 };
25142
25143 GType atk_image_get_type (void);
25144
25145 const gchar* atk_image_get_image_description (AtkImage *image);
25146
25147 void atk_image_get_image_size (AtkImage *image,
25148 gint *width,
25149 gint *height);
25150
25151 gboolean atk_image_set_image_description (AtkImage *image,
25152 const gchar *description);
25153 void atk_image_get_image_position (AtkImage *image,
25154 gint *x,
25155 gint *y,
25156 AtkCoordType coord_type);
25157
25158 const gchar* atk_image_get_image_locale (AtkImage *image);
25159 # 32 "/usr/include/atk-1.0/atk/atk.h" 2
25160
25161 # 1 "/usr/include/atk-1.0/atk/atknoopobject.h" 1
25162 # 23 "/usr/include/atk-1.0/atk/atknoopobject.h"
25163 # 32 "/usr/include/atk-1.0/atk/atknoopobject.h"
25164 typedef struct _AtkNoOpObject AtkNoOpObject;
25165 typedef struct _AtkNoOpObjectClass AtkNoOpObjectClass;
25166
25167 struct _AtkNoOpObject
25168 {
25169 AtkObject parent;
25170 };
25171
25172 GType atk_no_op_object_get_type (void);
25173
25174 struct _AtkNoOpObjectClass
25175 {
25176 AtkObjectClass parent_class;
25177 };
25178
25179 AtkObject *atk_no_op_object_new (GObject *obj);
25180 # 33 "/usr/include/atk-1.0/atk/atk.h" 2
25181
25182 # 1 "/usr/include/atk-1.0/atk/atknoopobjectfactory.h" 1
25183 # 23 "/usr/include/atk-1.0/atk/atknoopobjectfactory.h"
25184
25185 # 1 "/usr/include/atk-1.0/atk/atkobjectfactory.h" 1
25186 # 37 "/usr/include/atk-1.0/atk/atkobjectfactory.h"
25187 typedef struct _AtkObjectFactory AtkObjectFactory;
25188 typedef struct _AtkObjectFactoryClass AtkObjectFactoryClass;
25189
25190 struct _AtkObjectFactory
25191 {
25192 GObject parent;
25193 };
25194
25195 struct _AtkObjectFactoryClass
25196 {
25197 GObjectClass parent_class;
25198
25199 AtkObject* (* create_accessible) (GObject *obj);
25200 void (* invalidate) (AtkObjectFactory *factory);
25201 GType (* get_accessible_type) (void);
25202
25203 AtkFunction pad1;
25204 AtkFunction pad2;
25205 };
25206
25207 GType atk_object_factory_get_type(void);
25208
25209 AtkObject* atk_object_factory_create_accessible (AtkObjectFactory *factory, GObject *obj);
25210 void atk_object_factory_invalidate (AtkObjectFactory *factory);
25211 GType atk_object_factory_get_accessible_type (AtkObjectFactory *factory);
25212 # 24 "/usr/include/atk-1.0/atk/atknoopobjectfactory.h" 2
25213 # 36 "/usr/include/atk-1.0/atk/atknoopobjectfactory.h"
25214 typedef struct _AtkNoOpObjectFactory AtkNoOpObjectFactory;
25215 typedef struct _AtkNoOpObjectFactoryClass AtkNoOpObjectFactoryClass;
25216
25217 struct _AtkNoOpObjectFactory
25218 {
25219 AtkObjectFactory parent;
25220 };
25221
25222 struct _AtkNoOpObjectFactoryClass
25223 {
25224 AtkObjectFactoryClass parent_class;
25225 };
25226
25227 GType atk_no_op_object_factory_get_type(void);
25228
25229 AtkObjectFactory *atk_no_op_object_factory_new(void);
25230 # 34 "/usr/include/atk-1.0/atk/atk.h" 2
25231
25232
25233 # 1 "/usr/include/atk-1.0/atk/atkregistry.h" 1
25234 # 28 "/usr/include/atk-1.0/atk/atkregistry.h"
25235
25236 # 1 "/usr/include/atk-1.0/atk/atkobjectfactory.h" 1
25237 # 29 "/usr/include/atk-1.0/atk/atkregistry.h" 2
25238 # 37 "/usr/include/atk-1.0/atk/atkregistry.h"
25239 struct _AtkRegistry
25240 {
25241 GObject parent;
25242 GHashTable *factory_type_registry;
25243 GHashTable *factory_singleton_cache;
25244 };
25245
25246 struct _AtkRegistryClass
25247 {
25248 GObjectClass parent_class;
25249 };
25250
25251 typedef struct _AtkRegistry AtkRegistry;
25252 typedef struct _AtkRegistryClass AtkRegistryClass;
25253
25254
25255 GType atk_registry_get_type (void);
25256 void atk_registry_set_factory_type (AtkRegistry *registry,
25257 GType type,
25258 GType factory_type);
25259 GType atk_registry_get_factory_type (AtkRegistry *registry,
25260 GType type);
25261 AtkObjectFactory* atk_registry_get_factory (AtkRegistry *registry,
25262 GType type);
25263
25264 AtkRegistry* atk_get_default_registry (void);
25265 # 36 "/usr/include/atk-1.0/atk/atk.h" 2
25266
25267 # 1 "/usr/include/atk-1.0/atk/atkrelation.h" 1
25268 # 43 "/usr/include/atk-1.0/atk/atkrelation.h"
25269 typedef struct _AtkRelation AtkRelation;
25270 typedef struct _AtkRelationClass AtkRelationClass;
25271
25272 struct _AtkRelation
25273 {
25274 GObject parent;
25275
25276 GPtrArray *target;
25277 AtkRelationType relationship;
25278 };
25279
25280 struct _AtkRelationClass
25281 {
25282 GObjectClass parent;
25283 };
25284
25285 GType atk_relation_get_type (void);
25286
25287 AtkRelationType atk_relation_type_register (const gchar *name);
25288 const gchar* atk_relation_type_get_name (AtkRelationType type);
25289 AtkRelationType atk_relation_type_for_name (const gchar *name);
25290
25291
25292
25293
25294
25295 AtkRelation* atk_relation_new (AtkObject **targets,
25296 gint n_targets,
25297 AtkRelationType relationship);
25298
25299
25300
25301 AtkRelationType atk_relation_get_relation_type (AtkRelation *relation);
25302
25303
25304
25305 GPtrArray* atk_relation_get_target (AtkRelation *relation);
25306 void atk_relation_add_target (AtkRelation *relation,
25307 AtkObject *target);
25308 # 37 "/usr/include/atk-1.0/atk/atk.h" 2
25309
25310 # 1 "/usr/include/atk-1.0/atk/atkrelationset.h" 1
25311 # 38 "/usr/include/atk-1.0/atk/atkrelationset.h"
25312 typedef struct _AtkRelationSetClass AtkRelationSetClass;
25313
25314
25315 struct _AtkRelationSet
25316 {
25317 GObject parent;
25318
25319 GPtrArray *relations;
25320 };
25321
25322 struct _AtkRelationSetClass
25323 {
25324 GObjectClass parent;
25325
25326 AtkFunction pad1;
25327 AtkFunction pad2;
25328 };
25329
25330 GType atk_relation_set_get_type (void);
25331
25332 AtkRelationSet* atk_relation_set_new (void);
25333 gboolean atk_relation_set_contains (AtkRelationSet *set,
25334 AtkRelationType relationship);
25335 void atk_relation_set_remove (AtkRelationSet *set,
25336 AtkRelation *relation);
25337 void atk_relation_set_add (AtkRelationSet *set,
25338 AtkRelation *relation);
25339 gint atk_relation_set_get_n_relations (AtkRelationSet *set);
25340 AtkRelation* atk_relation_set_get_relation (AtkRelationSet *set,
25341 gint i);
25342 AtkRelation* atk_relation_set_get_relation_by_type (AtkRelationSet *set,
25343 AtkRelationType relationship);
25344 void atk_relation_set_add_relation_by_type (AtkRelationSet *set,
25345 AtkRelationType relationship,
25346 AtkObject *target);
25347 # 38 "/usr/include/atk-1.0/atk/atk.h" 2
25348
25349
25350 # 1 "/usr/include/atk-1.0/atk/atkselection.h" 1
25351 # 43 "/usr/include/atk-1.0/atk/atkselection.h"
25352 typedef struct _AtkSelection AtkSelection;
25353
25354 typedef struct _AtkSelectionIface AtkSelectionIface;
25355
25356 struct _AtkSelectionIface
25357 {
25358 GTypeInterface parent;
25359
25360 gboolean (* add_selection) (AtkSelection *selection,
25361 gint i);
25362 gboolean (* clear_selection) (AtkSelection *selection);
25363 AtkObject* (* ref_selection) (AtkSelection *selection,
25364 gint i);
25365 gint (* get_selection_count) (AtkSelection *selection);
25366 gboolean (* is_child_selected) (AtkSelection *selection,
25367 gint i);
25368 gboolean (* remove_selection) (AtkSelection *selection,
25369 gint i);
25370 gboolean (* select_all_selection) (AtkSelection *selection);
25371
25372
25373
25374 void (*selection_changed) (AtkSelection *selection);
25375
25376 AtkFunction pad1;
25377 AtkFunction pad2;
25378 };
25379
25380 GType atk_selection_get_type (void);
25381
25382 gboolean atk_selection_add_selection (AtkSelection *selection,
25383 gint i);
25384
25385 gboolean atk_selection_clear_selection (AtkSelection *selection);
25386
25387 AtkObject* atk_selection_ref_selection (AtkSelection *selection,
25388 gint i);
25389
25390 gint atk_selection_get_selection_count (AtkSelection *selection);
25391
25392 gboolean atk_selection_is_child_selected (AtkSelection *selection,
25393 gint i);
25394
25395 gboolean atk_selection_remove_selection (AtkSelection *selection,
25396 gint i);
25397
25398 gboolean atk_selection_select_all_selection (AtkSelection *selection);
25399 # 40 "/usr/include/atk-1.0/atk/atk.h" 2
25400
25401
25402 # 1 "/usr/include/atk-1.0/atk/atkstateset.h" 1
25403 # 38 "/usr/include/atk-1.0/atk/atkstateset.h"
25404 typedef struct _AtkStateSetClass AtkStateSetClass;
25405
25406
25407 struct _AtkStateSet
25408 {
25409 GObject parent;
25410
25411 };
25412
25413 struct _AtkStateSetClass
25414 {
25415 GObjectClass parent;
25416 };
25417
25418 GType atk_state_set_get_type (void);
25419
25420 AtkStateSet* atk_state_set_new (void);
25421 gboolean atk_state_set_is_empty (AtkStateSet *set);
25422 gboolean atk_state_set_add_state (AtkStateSet *set,
25423 AtkStateType type);
25424 void atk_state_set_add_states (AtkStateSet *set,
25425 AtkStateType *types,
25426 gint n_types);
25427 void atk_state_set_clear_states (AtkStateSet *set);
25428 gboolean atk_state_set_contains_state (AtkStateSet *set,
25429 AtkStateType type);
25430 gboolean atk_state_set_contains_states (AtkStateSet *set,
25431 AtkStateType *types,
25432 gint n_types);
25433 gboolean atk_state_set_remove_state (AtkStateSet *set,
25434 AtkStateType type);
25435 AtkStateSet* atk_state_set_and_sets (AtkStateSet *set,
25436 AtkStateSet *compare_set);
25437 AtkStateSet* atk_state_set_or_sets (AtkStateSet *set,
25438 AtkStateSet *compare_set);
25439 AtkStateSet* atk_state_set_xor_sets (AtkStateSet *set,
25440 AtkStateSet *compare_set);
25441 # 42 "/usr/include/atk-1.0/atk/atk.h" 2
25442
25443 # 1 "/usr/include/atk-1.0/atk/atkstreamablecontent.h" 1
25444 # 36 "/usr/include/atk-1.0/atk/atkstreamablecontent.h"
25445 typedef struct _AtkStreamableContent AtkStreamableContent;
25446
25447 typedef struct _AtkStreamableContentIface AtkStreamableContentIface;
25448
25449 struct _AtkStreamableContentIface
25450 {
25451 GTypeInterface parent;
25452
25453
25454
25455
25456 gint (* get_n_mime_types) (AtkStreamableContent *streamable);
25457 # 58 "/usr/include/atk-1.0/atk/atkstreamablecontent.h"
25458 const gchar* (* get_mime_type) (AtkStreamableContent *streamable,
25459 gint i);
25460
25461
25462
25463
25464
25465
25466 GIOChannel* (* get_stream) (AtkStreamableContent *streamable,
25467 const gchar *mime_type);
25468
25469 AtkFunction pad1;
25470 AtkFunction pad2;
25471 AtkFunction pad3;
25472 AtkFunction pad4;
25473 };
25474 GType atk_streamable_content_get_type (void);
25475
25476 gint atk_streamable_content_get_n_mime_types (AtkStreamableContent *streamable);
25477
25478 const gchar* atk_streamable_content_get_mime_type (AtkStreamableContent *streamable,
25479 gint i);
25480 GIOChannel* atk_streamable_content_get_stream (AtkStreamableContent *streamable,
25481 const gchar *mime_type);
25482 # 43 "/usr/include/atk-1.0/atk/atk.h" 2
25483
25484 # 1 "/usr/include/atk-1.0/atk/atktable.h" 1
25485 # 42 "/usr/include/atk-1.0/atk/atktable.h"
25486 typedef struct _AtkTable AtkTable;
25487
25488 typedef struct _AtkTableIface AtkTableIface;
25489
25490 struct _AtkTableIface
25491 {
25492 GTypeInterface parent;
25493
25494 AtkObject* (* ref_at) (AtkTable *table,
25495 gint row,
25496 gint column);
25497 gint (* get_index_at) (AtkTable *table,
25498 gint row,
25499 gint column);
25500 gint (* get_column_at_index) (AtkTable *table,
25501 gint index_);
25502 gint (* get_row_at_index) (AtkTable *table,
25503 gint index_);
25504 gint (* get_n_columns) (AtkTable *table);
25505 gint (* get_n_rows) (AtkTable *table);
25506 gint (* get_column_extent_at) (AtkTable *table,
25507 gint row,
25508 gint column);
25509 gint (* get_row_extent_at) (AtkTable *table,
25510 gint row,
25511 gint column);
25512 AtkObject*
25513 (* get_caption) (AtkTable *table);
25514 const gchar*
25515 (* get_column_description) (AtkTable *table,
25516 gint column);
25517 AtkObject* (* get_column_header) (AtkTable *table,
25518 gint column);
25519 const gchar*
25520 (* get_row_description) (AtkTable *table,
25521 gint row);
25522 AtkObject* (* get_row_header) (AtkTable *table,
25523 gint row);
25524 AtkObject* (* get_summary) (AtkTable *table);
25525 void (* set_caption) (AtkTable *table,
25526 AtkObject *caption);
25527 void (* set_column_description) (AtkTable *table,
25528 gint column,
25529 const gchar *description);
25530 void (* set_column_header) (AtkTable *table,
25531 gint column,
25532 AtkObject *header);
25533 void (* set_row_description) (AtkTable *table,
25534 gint row,
25535 const gchar *description);
25536 void (* set_row_header) (AtkTable *table,
25537 gint row,
25538 AtkObject *header);
25539 void (* set_summary) (AtkTable *table,
25540 AtkObject *accessible);
25541 gint (* get_selected_columns) (AtkTable *table,
25542 gint **selected);
25543 gint (* get_selected_rows) (AtkTable *table,
25544 gint **selected);
25545 gboolean (* is_column_selected) (AtkTable *table,
25546 gint column);
25547 gboolean (* is_row_selected) (AtkTable *table,
25548 gint row);
25549 gboolean (* is_selected) (AtkTable *table,
25550 gint row,
25551 gint column);
25552 gboolean (* add_row_selection) (AtkTable *table,
25553 gint row);
25554 gboolean (* remove_row_selection) (AtkTable *table,
25555 gint row);
25556 gboolean (* add_column_selection) (AtkTable *table,
25557 gint column);
25558 gboolean (* remove_column_selection) (AtkTable *table,
25559 gint column);
25560
25561
25562
25563
25564 void (* row_inserted) (AtkTable *table,
25565 gint row,
25566 gint num_inserted);
25567 void (* column_inserted) (AtkTable *table,
25568 gint column,
25569 gint num_inserted);
25570 void (* row_deleted) (AtkTable *table,
25571 gint row,
25572 gint num_deleted);
25573 void (* column_deleted) (AtkTable *table,
25574 gint column,
25575 gint num_deleted);
25576 void (* row_reordered) (AtkTable *table);
25577 void (* column_reordered) (AtkTable *table);
25578 void (* model_changed) (AtkTable *table);
25579
25580 AtkFunction pad1;
25581 AtkFunction pad2;
25582 AtkFunction pad3;
25583 AtkFunction pad4;
25584 };
25585
25586 GType atk_table_get_type (void);
25587
25588 AtkObject* atk_table_ref_at (AtkTable *table,
25589 gint row,
25590 gint column);
25591 gint atk_table_get_index_at (AtkTable *table,
25592 gint row,
25593 gint column);
25594 gint atk_table_get_column_at_index (AtkTable *table,
25595 gint index_);
25596 gint atk_table_get_row_at_index (AtkTable *table,
25597 gint index_);
25598 gint atk_table_get_n_columns (AtkTable *table);
25599 gint atk_table_get_n_rows (AtkTable *table);
25600 gint atk_table_get_column_extent_at (AtkTable *table,
25601 gint row,
25602 gint column);
25603 gint atk_table_get_row_extent_at (AtkTable *table,
25604 gint row,
25605 gint column);
25606 AtkObject*
25607 atk_table_get_caption (AtkTable *table);
25608 const gchar*
25609 atk_table_get_column_description (AtkTable *table,
25610 gint column);
25611 AtkObject* atk_table_get_column_header (AtkTable *table,
25612 gint column);
25613 const gchar*
25614 atk_table_get_row_description (AtkTable *table,
25615 gint row);
25616 AtkObject* atk_table_get_row_header (AtkTable *table,
25617 gint row);
25618 AtkObject* atk_table_get_summary (AtkTable *table);
25619 void atk_table_set_caption (AtkTable *table,
25620 AtkObject *caption);
25621 void atk_table_set_column_description
25622 (AtkTable *table,
25623 gint column,
25624 const gchar *description);
25625 void atk_table_set_column_header (AtkTable *table,
25626 gint column,
25627 AtkObject *header);
25628 void atk_table_set_row_description (AtkTable *table,
25629 gint row,
25630 const gchar *description);
25631 void atk_table_set_row_header (AtkTable *table,
25632 gint row,
25633 AtkObject *header);
25634 void atk_table_set_summary (AtkTable *table,
25635 AtkObject *accessible);
25636 gint atk_table_get_selected_columns (AtkTable *table,
25637 gint **selected);
25638 gint atk_table_get_selected_rows (AtkTable *table,
25639 gint **selected);
25640 gboolean atk_table_is_column_selected (AtkTable *table,
25641 gint column);
25642 gboolean atk_table_is_row_selected (AtkTable *table,
25643 gint row);
25644 gboolean atk_table_is_selected (AtkTable *table,
25645 gint row,
25646 gint column);
25647 gboolean atk_table_add_row_selection (AtkTable *table,
25648 gint row);
25649 gboolean atk_table_remove_row_selection (AtkTable *table,
25650 gint row);
25651 gboolean atk_table_add_column_selection (AtkTable *table,
25652 gint column);
25653 gboolean atk_table_remove_column_selection
25654 (AtkTable *table,
25655 gint column);
25656 # 44 "/usr/include/atk-1.0/atk/atk.h" 2
25657
25658
25659
25660 # 1 "/usr/include/atk-1.0/atk/atkvalue.h" 1
25661 # 44 "/usr/include/atk-1.0/atk/atkvalue.h"
25662 typedef struct _AtkValue AtkValue;
25663
25664 typedef struct _AtkValueIface AtkValueIface;
25665
25666 struct _AtkValueIface
25667 {
25668 GTypeInterface parent;
25669
25670 void (* get_current_value) (AtkValue *obj,
25671 GValue *value);
25672 void (* get_maximum_value) (AtkValue *obj,
25673 GValue *value);
25674 void (* get_minimum_value) (AtkValue *obj,
25675 GValue *value);
25676 gboolean (* set_current_value) (AtkValue *obj,
25677 const GValue *value);
25678
25679 AtkFunction pad1;
25680 AtkFunction pad2;
25681 };
25682
25683 GType atk_value_get_type (void);
25684
25685 void atk_value_get_current_value (AtkValue *obj,
25686 GValue *value);
25687
25688
25689 void atk_value_get_maximum_value (AtkValue *obj,
25690 GValue *value);
25691
25692 void atk_value_get_minimum_value (AtkValue *obj,
25693 GValue *value);
25694
25695 gboolean atk_value_set_current_value (AtkValue *obj,
25696 const GValue *value);
25697 # 47 "/usr/include/atk-1.0/atk/atk.h" 2
25698 # 24 "/usr/include/gtk-2.0/gtk/gtkaccessible.h" 2
25699 # 35 "/usr/include/gtk-2.0/gtk/gtkaccessible.h"
25700 typedef struct _GtkAccessible GtkAccessible;
25701 typedef struct _GtkAccessibleClass GtkAccessibleClass;
25702
25703
25704
25705
25706
25707 struct _GtkAccessible
25708 {
25709 AtkObject parent;
25710
25711
25712
25713
25714
25715 GtkWidget *widget;
25716 };
25717
25718 struct _GtkAccessibleClass
25719 {
25720 AtkObjectClass parent_class;
25721
25722 void (*connect_widget_destroyed) (GtkAccessible *accessible);
25723
25724
25725 void (*_gtk_reserved1) (void);
25726 void (*_gtk_reserved2) (void);
25727 void (*_gtk_reserved3) (void);
25728 void (*_gtk_reserved4) (void);
25729 };
25730
25731 GType gtk_accessible_get_type (void) __attribute__((__const__));
25732
25733 void gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible);
25734 # 37 "/usr/include/gtk-2.0/gtk/gtk.h" 2
25735
25736 # 1 "/usr/include/gtk-2.0/gtk/gtkaction.h" 1
25737 # 36 "/usr/include/gtk-2.0/gtk/gtkaction.h"
25738 # 45 "/usr/include/gtk-2.0/gtk/gtkaction.h"
25739 typedef struct _GtkAction GtkAction;
25740 typedef struct _GtkActionClass GtkActionClass;
25741 typedef struct _GtkActionPrivate GtkActionPrivate;
25742
25743 struct _GtkAction
25744 {
25745 GObject object;
25746
25747
25748
25749 GtkActionPrivate *private_data;
25750 };
25751
25752 struct _GtkActionClass
25753 {
25754 GObjectClass parent_class;
25755
25756
25757 void (* activate) (GtkAction *action);
25758
25759 GType menu_item_type;
25760 GType toolbar_item_type;
25761
25762
25763 GtkWidget *(* create_menu_item) (GtkAction *action);
25764 GtkWidget *(* create_tool_item) (GtkAction *action);
25765 void (* connect_proxy) (GtkAction *action,
25766 GtkWidget *proxy);
25767 void (* disconnect_proxy) (GtkAction *action,
25768 GtkWidget *proxy);
25769
25770
25771 void (*_gtk_reserved1) (void);
25772 void (*_gtk_reserved2) (void);
25773 void (*_gtk_reserved3) (void);
25774 void (*_gtk_reserved4) (void);
25775 };
25776
25777 GType gtk_action_get_type (void) __attribute__((__const__));
25778 GtkAction *gtk_action_new (const gchar *name,
25779 const gchar *label,
25780 const gchar *tooltip,
25781 const gchar *stock_id);
25782 const gchar* gtk_action_get_name (GtkAction *action);
25783 gboolean gtk_action_is_sensitive (GtkAction *action);
25784 gboolean gtk_action_get_sensitive (GtkAction *action);
25785 void gtk_action_set_sensitive (GtkAction *action,
25786 gboolean sensitive);
25787 gboolean gtk_action_is_visible (GtkAction *action);
25788 gboolean gtk_action_get_visible (GtkAction *action);
25789 void gtk_action_set_visible (GtkAction *action,
25790 gboolean visible);
25791 void gtk_action_activate (GtkAction *action);
25792 GtkWidget* gtk_action_create_icon (GtkAction *action,
25793 GtkIconSize icon_size);
25794 GtkWidget* gtk_action_create_menu_item (GtkAction *action);
25795 GtkWidget* gtk_action_create_tool_item (GtkAction *action);
25796 void gtk_action_connect_proxy (GtkAction *action,
25797 GtkWidget *proxy);
25798 void gtk_action_disconnect_proxy (GtkAction *action,
25799 GtkWidget *proxy);
25800 GSList* gtk_action_get_proxies (GtkAction *action);
25801 void gtk_action_connect_accelerator (GtkAction *action);
25802 void gtk_action_disconnect_accelerator (GtkAction *action);
25803 const gchar *gtk_action_get_accel_path (GtkAction *action);
25804 GClosure *gtk_action_get_accel_closure (GtkAction *action);
25805
25806
25807 void gtk_action_block_activate_from (GtkAction *action,
25808 GtkWidget *proxy);
25809 void gtk_action_unblock_activate_from (GtkAction *action,
25810 GtkWidget *proxy);
25811 void _gtk_action_emit_activate (GtkAction *action);
25812
25813
25814 void gtk_action_set_accel_path (GtkAction *action,
25815 const gchar *accel_path);
25816 void gtk_action_set_accel_group (GtkAction *action,
25817 GtkAccelGroup *accel_group);
25818 # 38 "/usr/include/gtk-2.0/gtk/gtk.h" 2
25819
25820 # 1 "/usr/include/gtk-2.0/gtk/gtkactiongroup.h" 1
25821 # 34 "/usr/include/gtk-2.0/gtk/gtkactiongroup.h"
25822
25823 # 1 "/usr/include/gtk-2.0/gtk/gtkitemfactory.h" 1
25824 # 36 "/usr/include/gtk-2.0/gtk/gtkitemfactory.h"
25825
25826
25827 typedef gchar * (*GtkTranslateFunc) (const gchar *path,
25828 gpointer func_data);
25829
25830
25831
25832 typedef void (*GtkPrintFunc) (gpointer func_data,
25833 const gchar *str);
25834
25835
25836
25837
25838
25839 typedef void (*GtkItemFactoryCallback) ();
25840 typedef void (*GtkItemFactoryCallback1) (gpointer callback_data,
25841 guint callback_action,
25842 GtkWidget *widget);
25843 # 63 "/usr/include/gtk-2.0/gtk/gtkitemfactory.h"
25844 typedef struct _GtkItemFactory GtkItemFactory;
25845 typedef struct _GtkItemFactoryClass GtkItemFactoryClass;
25846 typedef struct _GtkItemFactoryEntry GtkItemFactoryEntry;
25847 typedef struct _GtkItemFactoryItem GtkItemFactoryItem;
25848
25849 struct _GtkItemFactory
25850 {
25851 GtkObject object;
25852
25853 gchar *path;
25854 GtkAccelGroup *accel_group;
25855 GtkWidget *widget;
25856 GSList *items;
25857
25858 GtkTranslateFunc translate_func;
25859 gpointer translate_data;
25860 GtkDestroyNotify translate_notify;
25861 };
25862
25863 struct _GtkItemFactoryClass
25864 {
25865 GtkObjectClass object_class;
25866
25867 GHashTable *item_ht;
25868
25869
25870 void (*_gtk_reserved1) (void);
25871 void (*_gtk_reserved2) (void);
25872 void (*_gtk_reserved3) (void);
25873 void (*_gtk_reserved4) (void);
25874 };
25875
25876 struct _GtkItemFactoryEntry
25877 {
25878 gchar *path;
25879 gchar *accelerator;
25880
25881 GtkItemFactoryCallback callback;
25882 guint callback_action;
25883 # 119 "/usr/include/gtk-2.0/gtk/gtkitemfactory.h"
25884 gchar *item_type;
25885
25886
25887
25888
25889
25890 gconstpointer extra_data;
25891 };
25892
25893 struct _GtkItemFactoryItem
25894 {
25895 gchar *path;
25896 GSList *widgets;
25897 };
25898
25899
25900 GType gtk_item_factory_get_type (void) __attribute__((__const__));
25901
25902
25903
25904
25905 GtkItemFactory* gtk_item_factory_new (GType container_type,
25906 const gchar *path,
25907 GtkAccelGroup *accel_group);
25908 void gtk_item_factory_construct (GtkItemFactory *ifactory,
25909 GType container_type,
25910 const gchar *path,
25911 GtkAccelGroup *accel_group);
25912
25913
25914
25915 void gtk_item_factory_add_foreign (GtkWidget *accel_widget,
25916 const gchar *full_path,
25917 GtkAccelGroup *accel_group,
25918 guint keyval,
25919 GdkModifierType modifiers);
25920
25921 GtkItemFactory* gtk_item_factory_from_widget (GtkWidget *widget);
25922 const gchar* gtk_item_factory_path_from_widget (GtkWidget *widget);
25923
25924 GtkWidget* gtk_item_factory_get_item (GtkItemFactory *ifactory,
25925 const gchar *path);
25926 GtkWidget* gtk_item_factory_get_widget (GtkItemFactory *ifactory,
25927 const gchar *path);
25928 GtkWidget* gtk_item_factory_get_widget_by_action (GtkItemFactory *ifactory,
25929 guint action);
25930 GtkWidget* gtk_item_factory_get_item_by_action (GtkItemFactory *ifactory,
25931 guint action);
25932
25933 void gtk_item_factory_create_item (GtkItemFactory *ifactory,
25934 GtkItemFactoryEntry *entry,
25935 gpointer callback_data,
25936 guint callback_type);
25937 void gtk_item_factory_create_items (GtkItemFactory *ifactory,
25938 guint n_entries,
25939 GtkItemFactoryEntry *entries,
25940 gpointer callback_data);
25941 void gtk_item_factory_delete_item (GtkItemFactory *ifactory,
25942 const gchar *path);
25943 void gtk_item_factory_delete_entry (GtkItemFactory *ifactory,
25944 GtkItemFactoryEntry *entry);
25945 void gtk_item_factory_delete_entries (GtkItemFactory *ifactory,
25946 guint n_entries,
25947 GtkItemFactoryEntry *entries);
25948 void gtk_item_factory_popup (GtkItemFactory *ifactory,
25949 guint x,
25950 guint y,
25951 guint mouse_button,
25952 guint32 time_);
25953 void gtk_item_factory_popup_with_data(GtkItemFactory *ifactory,
25954 gpointer popup_data,
25955 GtkDestroyNotify destroy,
25956 guint x,
25957 guint y,
25958 guint mouse_button,
25959 guint32 time_);
25960 gpointer gtk_item_factory_popup_data (GtkItemFactory *ifactory);
25961 gpointer gtk_item_factory_popup_data_from_widget (GtkWidget *widget);
25962 void gtk_item_factory_set_translate_func (GtkItemFactory *ifactory,
25963 GtkTranslateFunc func,
25964 gpointer data,
25965 GtkDestroyNotify notify);
25966
25967
25968
25969
25970
25971 typedef void (*GtkMenuCallback) (GtkWidget *widget,
25972 gpointer user_data);
25973 typedef struct {
25974 gchar *path;
25975 gchar *accelerator;
25976 GtkMenuCallback callback;
25977 gpointer callback_data;
25978 GtkWidget *widget;
25979 } GtkMenuEntry;
25980
25981
25982 typedef void (*GtkItemFactoryCallback2) (GtkWidget *widget,
25983 gpointer callback_data,
25984 guint callback_action);
25985
25986
25987 void gtk_item_factory_create_items_ac (GtkItemFactory *ifactory,
25988 guint n_entries,
25989 GtkItemFactoryEntry *entries,
25990 gpointer callback_data,
25991 guint callback_type);
25992
25993 GtkItemFactory* gtk_item_factory_from_path (const gchar *path);
25994 void gtk_item_factory_create_menu_entries (guint n_entries,
25995 GtkMenuEntry *entries);
25996 void gtk_item_factories_path_delete (const gchar *ifactory_path,
25997 const gchar *path);
25998 # 35 "/usr/include/gtk-2.0/gtk/gtkactiongroup.h" 2
25999 # 45 "/usr/include/gtk-2.0/gtk/gtkactiongroup.h"
26000 typedef struct _GtkActionGroup GtkActionGroup;
26001 typedef struct _GtkActionGroupPrivate GtkActionGroupPrivate;
26002 typedef struct _GtkActionGroupClass GtkActionGroupClass;
26003 typedef struct _GtkActionEntry GtkActionEntry;
26004 typedef struct _GtkToggleActionEntry GtkToggleActionEntry;
26005 typedef struct _GtkRadioActionEntry GtkRadioActionEntry;
26006
26007 struct _GtkActionGroup
26008 {
26009 GObject parent;
26010
26011
26012
26013 GtkActionGroupPrivate *private_data;
26014 };
26015
26016 struct _GtkActionGroupClass
26017 {
26018 GObjectClass parent_class;
26019
26020 GtkAction *(* get_action) (GtkActionGroup *action_group,
26021 const gchar *action_name);
26022
26023
26024 void (*_gtk_reserved1) (void);
26025 void (*_gtk_reserved2) (void);
26026 void (*_gtk_reserved3) (void);
26027 void (*_gtk_reserved4) (void);
26028 };
26029
26030 struct _GtkActionEntry
26031 {
26032 const gchar *name;
26033 const gchar *stock_id;
26034 const gchar *label;
26035 const gchar *accelerator;
26036 const gchar *tooltip;
26037 GCallback callback;
26038 };
26039
26040 struct _GtkToggleActionEntry
26041 {
26042 const gchar *name;
26043 const gchar *stock_id;
26044 const gchar *label;
26045 const gchar *accelerator;
26046 const gchar *tooltip;
26047 GCallback callback;
26048 gboolean is_active;
26049 };
26050
26051 struct _GtkRadioActionEntry
26052 {
26053 const gchar *name;
26054 const gchar *stock_id;
26055 const gchar *label;
26056 const gchar *accelerator;
26057 const gchar *tooltip;
26058 gint value;
26059 };
26060
26061 GType gtk_action_group_get_type (void) __attribute__((__const__));
26062 GtkActionGroup *gtk_action_group_new (const gchar *name);
26063 const gchar *gtk_action_group_get_name (GtkActionGroup *action_group);
26064 gboolean gtk_action_group_get_sensitive (GtkActionGroup *action_group);
26065 void gtk_action_group_set_sensitive (GtkActionGroup *action_group,
26066 gboolean sensitive);
26067 gboolean gtk_action_group_get_visible (GtkActionGroup *action_group);
26068 void gtk_action_group_set_visible (GtkActionGroup *action_group,
26069 gboolean visible);
26070 GtkAction *gtk_action_group_get_action (GtkActionGroup *action_group,
26071 const gchar *action_name);
26072 GList *gtk_action_group_list_actions (GtkActionGroup *action_group);
26073 void gtk_action_group_add_action (GtkActionGroup *action_group,
26074 GtkAction *action);
26075 void gtk_action_group_add_action_with_accel (GtkActionGroup *action_group,
26076 GtkAction *action,
26077 const gchar *accelerator);
26078 void gtk_action_group_remove_action (GtkActionGroup *action_group,
26079 GtkAction *action);
26080 void gtk_action_group_add_actions (GtkActionGroup *action_group,
26081 const GtkActionEntry *entries,
26082 guint n_entries,
26083 gpointer user_data);
26084 void gtk_action_group_add_toggle_actions (GtkActionGroup *action_group,
26085 const GtkToggleActionEntry *entries,
26086 guint n_entries,
26087 gpointer user_data);
26088 void gtk_action_group_add_radio_actions (GtkActionGroup *action_group,
26089 const GtkRadioActionEntry *entries,
26090 guint n_entries,
26091 gint value,
26092 GCallback on_change,
26093 gpointer user_data);
26094 void gtk_action_group_add_actions_full (GtkActionGroup *action_group,
26095 const GtkActionEntry *entries,
26096 guint n_entries,
26097 gpointer user_data,
26098 GDestroyNotify destroy);
26099 void gtk_action_group_add_toggle_actions_full (GtkActionGroup *action_group,
26100 const GtkToggleActionEntry *entries,
26101 guint n_entries,
26102 gpointer user_data,
26103 GDestroyNotify destroy);
26104 void gtk_action_group_add_radio_actions_full (GtkActionGroup *action_group,
26105 const GtkRadioActionEntry *entries,
26106 guint n_entries,
26107 gint value,
26108 GCallback on_change,
26109 gpointer user_data,
26110 GDestroyNotify destroy);
26111 void gtk_action_group_set_translate_func (GtkActionGroup *action_group,
26112 GtkTranslateFunc func,
26113 gpointer data,
26114 GtkDestroyNotify notify);
26115 void gtk_action_group_set_translation_domain (GtkActionGroup *action_group,
26116 const gchar *domain);
26117 const gchar *gtk_action_group_translate_string (GtkActionGroup *action_group,
26118 const gchar *string);
26119
26120
26121 void _gtk_action_group_emit_connect_proxy (GtkActionGroup *action_group,
26122 GtkAction *action,
26123 GtkWidget *proxy);
26124 void _gtk_action_group_emit_disconnect_proxy (GtkActionGroup *action_group,
26125 GtkAction *action,
26126 GtkWidget *proxy);
26127 void _gtk_action_group_emit_pre_activate (GtkActionGroup *action_group,
26128 GtkAction *action);
26129 void _gtk_action_group_emit_post_activate (GtkActionGroup *action_group,
26130 GtkAction *action);
26131 # 39 "/usr/include/gtk-2.0/gtk/gtk.h" 2
26132
26133
26134 # 1 "/usr/include/gtk-2.0/gtk/gtkalignment.h" 1
26135 # 35 "/usr/include/gtk-2.0/gtk/gtkalignment.h"
26136 # 45 "/usr/include/gtk-2.0/gtk/gtkalignment.h"
26137 typedef struct _GtkAlignment GtkAlignment;
26138 typedef struct _GtkAlignmentClass GtkAlignmentClass;
26139 typedef struct _GtkAlignmentPrivate GtkAlignmentPrivate;
26140
26141 struct _GtkAlignment
26142 {
26143 GtkBin bin;
26144
26145 gfloat xalign;
26146 gfloat yalign;
26147 gfloat xscale;
26148 gfloat yscale;
26149 };
26150
26151 struct _GtkAlignmentClass
26152 {
26153 GtkBinClass parent_class;
26154 };
26155
26156
26157 GType gtk_alignment_get_type (void) __attribute__((__const__));
26158 GtkWidget* gtk_alignment_new (gfloat xalign,
26159 gfloat yalign,
26160 gfloat xscale,
26161 gfloat yscale);
26162 void gtk_alignment_set (GtkAlignment *alignment,
26163 gfloat xalign,
26164 gfloat yalign,
26165 gfloat xscale,
26166 gfloat yscale);
26167
26168 void gtk_alignment_set_padding (GtkAlignment *alignment,
26169 guint padding_top,
26170 guint padding_bottom,
26171 guint padding_left,
26172 guint padding_right);
26173
26174 void gtk_alignment_get_padding (GtkAlignment *alignment,
26175 guint *padding_top,
26176 guint *padding_bottom,
26177 guint *padding_left,
26178 guint *padding_right);
26179 # 41 "/usr/include/gtk-2.0/gtk/gtk.h" 2
26180
26181 # 1 "/usr/include/gtk-2.0/gtk/gtkarrow.h" 1
26182 # 35 "/usr/include/gtk-2.0/gtk/gtkarrow.h"
26183 # 46 "/usr/include/gtk-2.0/gtk/gtkarrow.h"
26184 typedef struct _GtkArrow GtkArrow;
26185 typedef struct _GtkArrowClass GtkArrowClass;
26186
26187 struct _GtkArrow
26188 {
26189 GtkMisc misc;
26190
26191 gint16 arrow_type;
26192 gint16 shadow_type;
26193 };
26194
26195 struct _GtkArrowClass
26196 {
26197 GtkMiscClass parent_class;
26198 };
26199
26200
26201 GType gtk_arrow_get_type (void) __attribute__((__const__));
26202 GtkWidget* gtk_arrow_new (GtkArrowType arrow_type,
26203 GtkShadowType shadow_type);
26204 void gtk_arrow_set (GtkArrow *arrow,
26205 GtkArrowType arrow_type,
26206 GtkShadowType shadow_type);
26207 # 42 "/usr/include/gtk-2.0/gtk/gtk.h" 2
26208
26209 # 1 "/usr/include/gtk-2.0/gtk/gtkaspectframe.h" 1
26210 # 33 "/usr/include/gtk-2.0/gtk/gtkaspectframe.h"
26211
26212 # 1 "/usr/include/gtk-2.0/gtk/gtkframe.h" 1
26213 # 35 "/usr/include/gtk-2.0/gtk/gtkframe.h"
26214 # 46 "/usr/include/gtk-2.0/gtk/gtkframe.h"
26215 typedef struct _GtkFrame GtkFrame;
26216 typedef struct _GtkFrameClass GtkFrameClass;
26217
26218 struct _GtkFrame
26219 {
26220 GtkBin bin;
26221
26222 GtkWidget *label_widget;
26223 gint16 shadow_type;
26224 gfloat label_xalign;
26225 gfloat label_yalign;
26226
26227 GtkAllocation child_allocation;
26228 };
26229
26230 struct _GtkFrameClass
26231 {
26232 GtkBinClass parent_class;
26233
26234 void (*compute_child_allocation) (GtkFrame *frame, GtkAllocation *allocation);
26235 };
26236
26237
26238 GType gtk_frame_get_type (void) __attribute__((__const__));
26239 GtkWidget* gtk_frame_new (const gchar *label);
26240
26241 void gtk_frame_set_label (GtkFrame *frame,
26242 const gchar *label);
26243 const gchar *gtk_frame_get_label (GtkFrame *frame);
26244
26245 void gtk_frame_set_label_widget (GtkFrame *frame,
26246 GtkWidget *label_widget);
26247 GtkWidget *gtk_frame_get_label_widget (GtkFrame *frame);
26248 void gtk_frame_set_label_align (GtkFrame *frame,
26249 gfloat xalign,
26250 gfloat yalign);
26251 void gtk_frame_get_label_align (GtkFrame *frame,
26252 gfloat *xalign,
26253 gfloat *yalign);
26254 void gtk_frame_set_shadow_type (GtkFrame *frame,
26255 GtkShadowType type);
26256 GtkShadowType gtk_frame_get_shadow_type (GtkFrame *frame);
26257 # 34 "/usr/include/gtk-2.0/gtk/gtkaspectframe.h" 2
26258 # 45 "/usr/include/gtk-2.0/gtk/gtkaspectframe.h"
26259 typedef struct _GtkAspectFrame GtkAspectFrame;
26260 typedef struct _GtkAspectFrameClass GtkAspectFrameClass;
26261
26262 struct _GtkAspectFrame
26263 {
26264 GtkFrame frame;
26265
26266 gfloat xalign;
26267 gfloat yalign;
26268 gfloat ratio;
26269 gboolean obey_child;
26270
26271 GtkAllocation center_allocation;
26272 };
26273
26274 struct _GtkAspectFrameClass
26275 {
26276 GtkFrameClass parent_class;
26277 };
26278
26279
26280 GType gtk_aspect_frame_get_type (void) __attribute__((__const__));
26281 GtkWidget* gtk_aspect_frame_new (const gchar *label,
26282 gfloat xalign,
26283 gfloat yalign,
26284 gfloat ratio,
26285 gboolean obey_child);
26286 void gtk_aspect_frame_set (GtkAspectFrame *aspect_frame,
26287 gfloat xalign,
26288 gfloat yalign,
26289 gfloat ratio,
26290 gboolean obey_child);
26291 # 43 "/usr/include/gtk-2.0/gtk/gtk.h" 2
26292
26293 # 1 "/usr/include/gtk-2.0/gtk/gtkbbox.h" 1
26294 # 30 "/usr/include/gtk-2.0/gtk/gtkbbox.h"
26295
26296 # 1 "/usr/include/gtk-2.0/gtk/gtkbox.h" 1
26297 # 35 "/usr/include/gtk-2.0/gtk/gtkbox.h"
26298 # 46 "/usr/include/gtk-2.0/gtk/gtkbox.h"
26299 typedef struct _GtkBox GtkBox;
26300 typedef struct _GtkBoxClass GtkBoxClass;
26301 typedef struct _GtkBoxChild GtkBoxChild;
26302
26303 struct _GtkBox
26304 {
26305 GtkContainer container;
26306
26307
26308 GList *children;
26309 gint16 spacing;
26310 guint homogeneous : 1;
26311 };
26312
26313 struct _GtkBoxClass
26314 {
26315 GtkContainerClass parent_class;
26316 };
26317
26318 struct _GtkBoxChild
26319 {
26320 GtkWidget *widget;
26321 guint16 padding;
26322 guint expand : 1;
26323 guint fill : 1;
26324 guint pack : 1;
26325 guint is_secondary : 1;
26326 };
26327
26328
26329 GType gtk_box_get_type (void) __attribute__((__const__));
26330 void gtk_box_pack_start (GtkBox *box,
26331 GtkWidget *child,
26332 gboolean expand,
26333 gboolean fill,
26334 guint padding);
26335 void gtk_box_pack_end (GtkBox *box,
26336 GtkWidget *child,
26337 gboolean expand,
26338 gboolean fill,
26339 guint padding);
26340 void gtk_box_pack_start_defaults (GtkBox *box,
26341 GtkWidget *widget);
26342 void gtk_box_pack_end_defaults (GtkBox *box,
26343 GtkWidget *widget);
26344 void gtk_box_set_homogeneous (GtkBox *box,
26345 gboolean homogeneous);
26346 gboolean gtk_box_get_homogeneous (GtkBox *box);
26347 void gtk_box_set_spacing (GtkBox *box,
26348 gint spacing);
26349 gint gtk_box_get_spacing (GtkBox *box);
26350 void gtk_box_reorder_child (GtkBox *box,
26351 GtkWidget *child,
26352 gint position);
26353 void gtk_box_query_child_packing (GtkBox *box,
26354 GtkWidget *child,
26355 gboolean *expand,
26356 gboolean *fill,
26357 guint *padding,
26358 GtkPackType *pack_type);
26359 void gtk_box_set_child_packing (GtkBox *box,
26360 GtkWidget *child,
26361 gboolean expand,
26362 gboolean fill,
26363 guint padding,
26364 GtkPackType pack_type);
26365 # 31 "/usr/include/gtk-2.0/gtk/gtkbbox.h" 2
26366 # 45 "/usr/include/gtk-2.0/gtk/gtkbbox.h"
26367 typedef struct _GtkButtonBox GtkButtonBox;
26368 typedef struct _GtkButtonBoxClass GtkButtonBoxClass;
26369
26370 struct _GtkButtonBox
26371 {
26372 GtkBox box;
26373 gint child_min_width;
26374 gint child_min_height;
26375 gint child_ipad_x;
26376 gint child_ipad_y;
26377 GtkButtonBoxStyle layout_style;
26378 };
26379
26380 struct _GtkButtonBoxClass
26381 {
26382 GtkBoxClass parent_class;
26383 };
26384
26385
26386 GType gtk_button_box_get_type (void) __attribute__((__const__));
26387
26388 GtkButtonBoxStyle gtk_button_box_get_layout (GtkButtonBox *widget);
26389 void gtk_button_box_set_layout (GtkButtonBox *widget,
26390 GtkButtonBoxStyle layout_style);
26391 gboolean gtk_button_box_get_child_secondary (GtkButtonBox *widget,
26392 GtkWidget *child);
26393 void gtk_button_box_set_child_secondary (GtkButtonBox *widget,
26394 GtkWidget *child,
26395 gboolean is_secondary);
26396
26397
26398
26399
26400
26401 void gtk_button_box_set_child_size (GtkButtonBox *widget,
26402 gint min_width,
26403 gint min_height);
26404 void gtk_button_box_set_child_ipadding (GtkButtonBox *widget,
26405 gint ipad_x,
26406 gint ipad_y);
26407 void gtk_button_box_get_child_size (GtkButtonBox *widget,
26408 gint *min_width,
26409 gint *min_height);
26410 void gtk_button_box_get_child_ipadding (GtkButtonBox *widget,
26411 gint *ipad_x,
26412 gint *ipad_y);
26413
26414
26415
26416 void _gtk_button_box_child_requisition (GtkWidget *widget,
26417 int *nvis_children,
26418 int *nvis_secondaries,
26419 int *width,
26420 int *height);
26421 # 44 "/usr/include/gtk-2.0/gtk/gtk.h" 2
26422
26423
26424 # 1 "/usr/include/gtk-2.0/gtk/gtkbindings.h" 1
26425 # 39 "/usr/include/gtk-2.0/gtk/gtkbindings.h"
26426
26427
26428
26429
26430
26431
26432 typedef struct _GtkBindingSet GtkBindingSet;
26433 typedef struct _GtkBindingEntry GtkBindingEntry;
26434 typedef struct _GtkBindingSignal GtkBindingSignal;
26435 typedef struct _GtkBindingArg GtkBindingArg;
26436
26437 struct _GtkBindingSet
26438 {
26439 gchar *set_name;
26440 gint priority;
26441 GSList *widget_path_pspecs;
26442 GSList *widget_class_pspecs;
26443 GSList *class_branch_pspecs;
26444 GtkBindingEntry *entries;
26445 GtkBindingEntry *current;
26446 guint parsed : 1;
26447 };
26448
26449 struct _GtkBindingEntry
26450 {
26451
26452
26453 guint keyval;
26454 GdkModifierType modifiers;
26455
26456 GtkBindingSet *binding_set;
26457 guint destroyed : 1;
26458 guint in_emission : 1;
26459 GtkBindingEntry *set_next;
26460 GtkBindingEntry *hash_next;
26461 GtkBindingSignal *signals;
26462 };
26463
26464 struct _GtkBindingSignal
26465 {
26466 GtkBindingSignal *next;
26467 gchar *signal_name;
26468 guint n_args;
26469 GtkBindingArg *args;
26470 };
26471
26472 struct _GtkBindingArg
26473 {
26474 GType arg_type;
26475 union {
26476 glong long_data;
26477 gdouble double_data;
26478 gchar *string_data;
26479 } d;
26480 };
26481
26482
26483
26484
26485 GtkBindingSet* gtk_binding_set_new (const gchar *set_name);
26486 GtkBindingSet* gtk_binding_set_by_class(gpointer object_class);
26487 GtkBindingSet* gtk_binding_set_find (const gchar *set_name);
26488 gboolean gtk_bindings_activate (GtkObject *object,
26489 guint keyval,
26490 GdkModifierType modifiers);
26491 gboolean gtk_bindings_activate_event (GtkObject *object,
26492 GdkEventKey *event);
26493 gboolean gtk_binding_set_activate (GtkBindingSet *binding_set,
26494 guint keyval,
26495 GdkModifierType modifiers,
26496 GtkObject *object);
26497
26498 void gtk_binding_entry_clear (GtkBindingSet *binding_set,
26499 guint keyval,
26500 GdkModifierType modifiers);
26501 void gtk_binding_entry_add_signal (GtkBindingSet *binding_set,
26502 guint keyval,
26503 GdkModifierType modifiers,
26504 const gchar *signal_name,
26505 guint n_args,
26506 ...);
26507 void gtk_binding_set_add_path (GtkBindingSet *binding_set,
26508 GtkPathType path_type,
26509 const gchar *path_pattern,
26510 GtkPathPriorityType priority);
26511
26512
26513
26514
26515 void gtk_binding_entry_remove (GtkBindingSet *binding_set,
26516 guint keyval,
26517 GdkModifierType modifiers);
26518 void gtk_binding_entry_add_signall (GtkBindingSet *binding_set,
26519 guint keyval,
26520 GdkModifierType modifiers,
26521 const gchar *signal_name,
26522 GSList *binding_args);
26523 guint gtk_binding_parse_binding (GScanner *scanner);
26524
26525
26526 void _gtk_binding_reset_parsed (void);
26527
26528
26529
26530
26531 guint _gtk_binding_signal_new (const gchar *signal_name,
26532 GType itype,
26533 GSignalFlags signal_flags,
26534 GCallback handler,
26535 GSignalAccumulator accumulator,
26536 gpointer accu_data,
26537 GSignalCMarshaller c_marshaller,
26538 GType return_type,
26539 guint n_params,
26540 ...);
26541 # 46 "/usr/include/gtk-2.0/gtk/gtk.h" 2
26542
26543
26544 # 1 "/usr/include/gtk-2.0/gtk/gtkbutton.h" 1
26545 # 34 "/usr/include/gtk-2.0/gtk/gtkbutton.h"
26546
26547 # 1 "/usr/include/gtk-2.0/gtk/gtkimage.h" 1
26548 # 35 "/usr/include/gtk-2.0/gtk/gtkimage.h"
26549 # 45 "/usr/include/gtk-2.0/gtk/gtkimage.h"
26550 typedef struct _GtkImage GtkImage;
26551 typedef struct _GtkImageClass GtkImageClass;
26552
26553 typedef struct _GtkImagePixmapData GtkImagePixmapData;
26554 typedef struct _GtkImageImageData GtkImageImageData;
26555 typedef struct _GtkImagePixbufData GtkImagePixbufData;
26556 typedef struct _GtkImageStockData GtkImageStockData;
26557 typedef struct _GtkImageIconSetData GtkImageIconSetData;
26558 typedef struct _GtkImageAnimationData GtkImageAnimationData;
26559 typedef struct _GtkImageIconNameData GtkImageIconNameData;
26560
26561 struct _GtkImagePixmapData
26562 {
26563 GdkPixmap *pixmap;
26564 };
26565
26566 struct _GtkImageImageData
26567 {
26568 GdkImage *image;
26569 };
26570
26571 struct _GtkImagePixbufData
26572 {
26573 GdkPixbuf *pixbuf;
26574 };
26575
26576 struct _GtkImageStockData
26577 {
26578 gchar *stock_id;
26579 };
26580
26581 struct _GtkImageIconSetData
26582 {
26583 GtkIconSet *icon_set;
26584 };
26585
26586 struct _GtkImageAnimationData
26587 {
26588 GdkPixbufAnimation *anim;
26589 GdkPixbufAnimationIter *iter;
26590 guint frame_timeout;
26591 };
26592
26593 struct _GtkImageIconNameData
26594 {
26595 gchar *icon_name;
26596 GdkPixbuf *pixbuf;
26597 guint theme_change_id;
26598 };
26599
26600 typedef enum
26601 {
26602 GTK_IMAGE_EMPTY,
26603 GTK_IMAGE_PIXMAP,
26604 GTK_IMAGE_IMAGE,
26605 GTK_IMAGE_PIXBUF,
26606 GTK_IMAGE_STOCK,
26607 GTK_IMAGE_ICON_SET,
26608 GTK_IMAGE_ANIMATION,
26609 GTK_IMAGE_ICON_NAME
26610 } GtkImageType;
26611
26612 struct _GtkImage
26613 {
26614 GtkMisc misc;
26615
26616 GtkImageType storage_type;
26617
26618 union
26619 {
26620 GtkImagePixmapData pixmap;
26621 GtkImageImageData image;
26622 GtkImagePixbufData pixbuf;
26623 GtkImageStockData stock;
26624 GtkImageIconSetData icon_set;
26625 GtkImageAnimationData anim;
26626 GtkImageIconNameData name;
26627 } data;
26628
26629
26630 GdkBitmap *mask;
26631
26632
26633 GtkIconSize icon_size;
26634 };
26635
26636 struct _GtkImageClass
26637 {
26638 GtkMiscClass parent_class;
26639
26640
26641 void (*_gtk_reserved1) (void);
26642 void (*_gtk_reserved2) (void);
26643 void (*_gtk_reserved3) (void);
26644 void (*_gtk_reserved4) (void);
26645 };
26646
26647
26648
26649
26650
26651
26652
26653 GType gtk_image_get_type (void) __attribute__((__const__));
26654
26655 GtkWidget* gtk_image_new (void);
26656 GtkWidget* gtk_image_new_from_pixmap (GdkPixmap *pixmap,
26657 GdkBitmap *mask);
26658 GtkWidget* gtk_image_new_from_image (GdkImage *image,
26659 GdkBitmap *mask);
26660 GtkWidget* gtk_image_new_from_file (const gchar *filename);
26661 GtkWidget* gtk_image_new_from_pixbuf (GdkPixbuf *pixbuf);
26662 GtkWidget* gtk_image_new_from_stock (const gchar *stock_id,
26663 GtkIconSize size);
26664 GtkWidget* gtk_image_new_from_icon_set (GtkIconSet *icon_set,
26665 GtkIconSize size);
26666 GtkWidget* gtk_image_new_from_animation (GdkPixbufAnimation *animation);
26667 GtkWidget* gtk_image_new_from_icon_name (const gchar *icon_name,
26668 GtkIconSize size);
26669
26670 void gtk_image_clear (GtkImage *image);
26671 void gtk_image_set_from_pixmap (GtkImage *image,
26672 GdkPixmap *pixmap,
26673 GdkBitmap *mask);
26674 void gtk_image_set_from_image (GtkImage *image,
26675 GdkImage *gdk_image,
26676 GdkBitmap *mask);
26677 void gtk_image_set_from_file (GtkImage *image,
26678 const gchar *filename);
26679 void gtk_image_set_from_pixbuf (GtkImage *image,
26680 GdkPixbuf *pixbuf);
26681 void gtk_image_set_from_stock (GtkImage *image,
26682 const gchar *stock_id,
26683 GtkIconSize size);
26684 void gtk_image_set_from_icon_set (GtkImage *image,
26685 GtkIconSet *icon_set,
26686 GtkIconSize size);
26687 void gtk_image_set_from_animation (GtkImage *image,
26688 GdkPixbufAnimation *animation);
26689 void gtk_image_set_from_icon_name (GtkImage *image,
26690 const gchar *icon_name,
26691 GtkIconSize size);
26692 void gtk_image_set_pixel_size (GtkImage *image,
26693 gint pixel_size);
26694
26695 GtkImageType gtk_image_get_storage_type (GtkImage *image);
26696
26697 void gtk_image_get_pixmap (GtkImage *image,
26698 GdkPixmap **pixmap,
26699 GdkBitmap **mask);
26700 void gtk_image_get_image (GtkImage *image,
26701 GdkImage **gdk_image,
26702 GdkBitmap **mask);
26703 GdkPixbuf* gtk_image_get_pixbuf (GtkImage *image);
26704 void gtk_image_get_stock (GtkImage *image,
26705 gchar **stock_id,
26706 GtkIconSize *size);
26707 void gtk_image_get_icon_set (GtkImage *image,
26708 GtkIconSet **icon_set,
26709 GtkIconSize *size);
26710 GdkPixbufAnimation* gtk_image_get_animation (GtkImage *image);
26711 void gtk_image_get_icon_name (GtkImage *image,
26712 const gchar **icon_name,
26713 GtkIconSize *size);
26714 gint gtk_image_get_pixel_size (GtkImage *image);
26715
26716
26717
26718
26719 void gtk_image_set (GtkImage *image,
26720 GdkImage *val,
26721 GdkBitmap *mask);
26722 void gtk_image_get (GtkImage *image,
26723 GdkImage **val,
26724 GdkBitmap **mask);
26725 # 35 "/usr/include/gtk-2.0/gtk/gtkbutton.h" 2
26726 # 46 "/usr/include/gtk-2.0/gtk/gtkbutton.h"
26727 typedef struct _GtkButton GtkButton;
26728 typedef struct _GtkButtonClass GtkButtonClass;
26729
26730 struct _GtkButton
26731 {
26732 GtkBin bin;
26733
26734 GdkWindow *event_window;
26735
26736 gchar *label_text;
26737
26738 guint activate_timeout;
26739
26740 guint constructed : 1;
26741 guint in_button : 1;
26742 guint button_down : 1;
26743 guint relief : 2;
26744 guint use_underline : 1;
26745 guint use_stock : 1;
26746 guint depressed : 1;
26747 guint depress_on_activate : 1;
26748 guint focus_on_click : 1;
26749 };
26750
26751 struct _GtkButtonClass
26752 {
26753 GtkBinClass parent_class;
26754
26755 void (* pressed) (GtkButton *button);
26756 void (* released) (GtkButton *button);
26757 void (* clicked) (GtkButton *button);
26758 void (* enter) (GtkButton *button);
26759 void (* leave) (GtkButton *button);
26760 void (* activate) (GtkButton *button);
26761
26762
26763 void (*_gtk_reserved1) (void);
26764 void (*_gtk_reserved2) (void);
26765 void (*_gtk_reserved3) (void);
26766 void (*_gtk_reserved4) (void);
26767 };
26768
26769
26770 GType gtk_button_get_type (void) __attribute__((__const__));
26771 GtkWidget* gtk_button_new (void);
26772 GtkWidget* gtk_button_new_with_label (const gchar *label);
26773 GtkWidget* gtk_button_new_from_stock (const gchar *stock_id);
26774 GtkWidget* gtk_button_new_with_mnemonic (const gchar *label);
26775 void gtk_button_pressed (GtkButton *button);
26776 void gtk_button_released (GtkButton *button);
26777 void gtk_button_clicked (GtkButton *button);
26778 void gtk_button_enter (GtkButton *button);
26779 void gtk_button_leave (GtkButton *button);
26780
26781 void gtk_button_set_relief (GtkButton *button,
26782 GtkReliefStyle newstyle);
26783 GtkReliefStyle gtk_button_get_relief (GtkButton *button);
26784 void gtk_button_set_label (GtkButton *button,
26785 const gchar *label);
26786 const gchar *gtk_button_get_label (GtkButton *button);
26787 void gtk_button_set_use_underline (GtkButton *button,
26788 gboolean use_underline);
26789 gboolean gtk_button_get_use_underline (GtkButton *button);
26790 void gtk_button_set_use_stock (GtkButton *button,
26791 gboolean use_stock);
26792 gboolean gtk_button_get_use_stock (GtkButton *button);
26793 void gtk_button_set_focus_on_click (GtkButton *button,
26794 gboolean focus_on_click);
26795 gboolean gtk_button_get_focus_on_click (GtkButton *button);
26796 void gtk_button_set_alignment (GtkButton *button,
26797 gfloat xalign,
26798 gfloat yalign);
26799 void gtk_button_get_alignment (GtkButton *button,
26800 gfloat *xalign,
26801 gfloat *yalign);
26802 void gtk_button_set_image (GtkButton *button,
26803 GtkWidget *image);
26804 GtkWidget* gtk_button_get_image (GtkButton *button);
26805
26806
26807 void _gtk_button_set_depressed (GtkButton *button,
26808 gboolean depressed);
26809 void _gtk_button_paint (GtkButton *button,
26810 GdkRectangle *area,
26811 GtkStateType state_type,
26812 GtkShadowType shadow_type,
26813 const gchar *main_detail,
26814 const gchar *default_detail);
26815 # 48 "/usr/include/gtk-2.0/gtk/gtk.h" 2
26816
26817 # 1 "/usr/include/gtk-2.0/gtk/gtkcalendar.h" 1
26818 # 36 "/usr/include/gtk-2.0/gtk/gtkcalendar.h"
26819
26820 # 1 "/usr/include/gtk-2.0/gtk/gtksignal.h" 1
26821 # 33 "/usr/include/gtk-2.0/gtk/gtksignal.h"
26822
26823 # 1 "/usr/include/gtk-2.0/gtk/gtkmarshal.h" 1
26824 # 11 "/usr/include/gtk-2.0/gtk/gtkmarshal.h"
26825 extern void gtk_marshal_BOOLEAN__VOID (GClosure *closure,
26826 GValue *return_value,
26827 guint n_param_values,
26828 const GValue *param_values,
26829 gpointer invocation_hint,
26830 gpointer marshal_data);
26831
26832
26833
26834 extern void gtk_marshal_BOOLEAN__POINTER (GClosure *closure,
26835 GValue *return_value,
26836 guint n_param_values,
26837 const GValue *param_values,
26838 gpointer invocation_hint,
26839 gpointer marshal_data);
26840
26841
26842
26843 extern void gtk_marshal_BOOLEAN__POINTER_POINTER_INT_INT (GClosure *closure,
26844 GValue *return_value,
26845 guint n_param_values,
26846 const GValue *param_values,
26847 gpointer invocation_hint,
26848 gpointer marshal_data);
26849
26850
26851
26852 extern void gtk_marshal_BOOLEAN__POINTER_INT_INT (GClosure *closure,
26853 GValue *return_value,
26854 guint n_param_values,
26855 const GValue *param_values,
26856 gpointer invocation_hint,
26857 gpointer marshal_data);
26858
26859
26860
26861 extern void gtk_marshal_BOOLEAN__POINTER_INT_INT_UINT (GClosure *closure,
26862 GValue *return_value,
26863 guint n_param_values,
26864 const GValue *param_values,
26865 gpointer invocation_hint,
26866 gpointer marshal_data);
26867
26868
26869
26870 extern void gtk_marshal_BOOLEAN__POINTER_STRING_STRING_POINTER (GClosure *closure,
26871 GValue *return_value,
26872 guint n_param_values,
26873 const GValue *param_values,
26874 gpointer invocation_hint,
26875 gpointer marshal_data);
26876
26877
26878
26879 extern void gtk_marshal_ENUM__ENUM (GClosure *closure,
26880 GValue *return_value,
26881 guint n_param_values,
26882 const GValue *param_values,
26883 gpointer invocation_hint,
26884 gpointer marshal_data);
26885
26886
26887 extern void gtk_marshal_INT__POINTER (GClosure *closure,
26888 GValue *return_value,
26889 guint n_param_values,
26890 const GValue *param_values,
26891 gpointer invocation_hint,
26892 gpointer marshal_data);
26893
26894
26895 extern void gtk_marshal_INT__POINTER_CHAR_CHAR (GClosure *closure,
26896 GValue *return_value,
26897 guint n_param_values,
26898 const GValue *param_values,
26899 gpointer invocation_hint,
26900 gpointer marshal_data);
26901 # 101 "/usr/include/gtk-2.0/gtk/gtkmarshal.h"
26902 extern void gtk_marshal_VOID__ENUM_FLOAT (GClosure *closure,
26903 GValue *return_value,
26904 guint n_param_values,
26905 const GValue *param_values,
26906 gpointer invocation_hint,
26907 gpointer marshal_data);
26908
26909
26910
26911 extern void gtk_marshal_VOID__ENUM_FLOAT_BOOLEAN (GClosure *closure,
26912 GValue *return_value,
26913 guint n_param_values,
26914 const GValue *param_values,
26915 gpointer invocation_hint,
26916 gpointer marshal_data);
26917
26918
26919
26920
26921
26922
26923
26924 extern void gtk_marshal_VOID__INT_INT (GClosure *closure,
26925 GValue *return_value,
26926 guint n_param_values,
26927 const GValue *param_values,
26928 gpointer invocation_hint,
26929 gpointer marshal_data);
26930
26931
26932
26933 extern void gtk_marshal_VOID__INT_INT_POINTER (GClosure *closure,
26934 GValue *return_value,
26935 guint n_param_values,
26936 const GValue *param_values,
26937 gpointer invocation_hint,
26938 gpointer marshal_data);
26939 # 153 "/usr/include/gtk-2.0/gtk/gtkmarshal.h"
26940 extern void gtk_marshal_VOID__POINTER_INT (GClosure *closure,
26941 GValue *return_value,
26942 guint n_param_values,
26943 const GValue *param_values,
26944 gpointer invocation_hint,
26945 gpointer marshal_data);
26946
26947
26948
26949 extern void gtk_marshal_VOID__POINTER_POINTER (GClosure *closure,
26950 GValue *return_value,
26951 guint n_param_values,
26952 const GValue *param_values,
26953 gpointer invocation_hint,
26954 gpointer marshal_data);
26955
26956
26957
26958 extern void gtk_marshal_VOID__POINTER_POINTER_POINTER (GClosure *closure,
26959 GValue *return_value,
26960 guint n_param_values,
26961 const GValue *param_values,
26962 gpointer invocation_hint,
26963 gpointer marshal_data);
26964
26965
26966
26967 extern void gtk_marshal_VOID__POINTER_STRING_STRING (GClosure *closure,
26968 GValue *return_value,
26969 guint n_param_values,
26970 const GValue *param_values,
26971 gpointer invocation_hint,
26972 gpointer marshal_data);
26973
26974
26975
26976 extern void gtk_marshal_VOID__POINTER_UINT (GClosure *closure,
26977 GValue *return_value,
26978 guint n_param_values,
26979 const GValue *param_values,
26980 gpointer invocation_hint,
26981 gpointer marshal_data);
26982
26983
26984
26985 extern void gtk_marshal_VOID__POINTER_UINT_ENUM (GClosure *closure,
26986 GValue *return_value,
26987 guint n_param_values,
26988 const GValue *param_values,
26989 gpointer invocation_hint,
26990 gpointer marshal_data);
26991
26992
26993
26994 extern void gtk_marshal_VOID__POINTER_POINTER_UINT_UINT (GClosure *closure,
26995 GValue *return_value,
26996 guint n_param_values,
26997 const GValue *param_values,
26998 gpointer invocation_hint,
26999 gpointer marshal_data);
27000
27001
27002
27003 extern void gtk_marshal_VOID__POINTER_INT_INT_POINTER_UINT_UINT (GClosure *closure,
27004 GValue *return_value,
27005 guint n_param_values,
27006 const GValue *param_values,
27007 gpointer invocation_hint,
27008 gpointer marshal_data);
27009
27010
27011
27012 extern void gtk_marshal_VOID__POINTER_UINT_UINT (GClosure *closure,
27013 GValue *return_value,
27014 guint n_param_values,
27015 const GValue *param_values,
27016 gpointer invocation_hint,
27017 gpointer marshal_data);
27018 # 240 "/usr/include/gtk-2.0/gtk/gtkmarshal.h"
27019 extern void gtk_marshal_VOID__STRING_INT_POINTER (GClosure *closure,
27020 GValue *return_value,
27021 guint n_param_values,
27022 const GValue *param_values,
27023 gpointer invocation_hint,
27024 gpointer marshal_data);
27025
27026
27027
27028
27029
27030
27031
27032 extern void gtk_marshal_VOID__UINT_POINTER_UINT_ENUM_ENUM_POINTER (GClosure *closure,
27033 GValue *return_value,
27034 guint n_param_values,
27035 const GValue *param_values,
27036 gpointer invocation_hint,
27037 gpointer marshal_data);
27038
27039
27040
27041 extern void gtk_marshal_VOID__UINT_POINTER_UINT_UINT_ENUM (GClosure *closure,
27042 GValue *return_value,
27043 guint n_param_values,
27044 const GValue *param_values,
27045 gpointer invocation_hint,
27046 gpointer marshal_data);
27047
27048
27049
27050 extern void gtk_marshal_VOID__UINT_STRING (GClosure *closure,
27051 GValue *return_value,
27052 guint n_param_values,
27053 const GValue *param_values,
27054 gpointer invocation_hint,
27055 gpointer marshal_data);
27056 # 34 "/usr/include/gtk-2.0/gtk/gtksignal.h" 2
27057 # 94 "/usr/include/gtk-2.0/gtk/gtksignal.h"
27058 guint gtk_signal_newv (const gchar *name,
27059 GtkSignalRunType signal_flags,
27060 GtkType object_type,
27061 guint function_offset,
27062 GtkSignalMarshaller marshaller,
27063 GtkType return_val,
27064 guint n_args,
27065 GtkType *args);
27066 guint gtk_signal_new (const gchar *name,
27067 GtkSignalRunType signal_flags,
27068 GtkType object_type,
27069 guint function_offset,
27070 GtkSignalMarshaller marshaller,
27071 GtkType return_val,
27072 guint n_args,
27073 ...);
27074 void gtk_signal_emit_stop_by_name (GtkObject *object,
27075 const gchar *name);
27076 void gtk_signal_connect_object_while_alive (GtkObject *object,
27077 const gchar *name,
27078 GtkSignalFunc func,
27079 GtkObject *alive_object);
27080 void gtk_signal_connect_while_alive (GtkObject *object,
27081 const gchar *name,
27082 GtkSignalFunc func,
27083 gpointer func_data,
27084 GtkObject *alive_object);
27085 gulong gtk_signal_connect_full (GtkObject *object,
27086 const gchar *name,
27087 GtkSignalFunc func,
27088 GtkCallbackMarshal unsupported,
27089 gpointer data,
27090 GtkDestroyNotify destroy_func,
27091 gint object_signal,
27092 gint after);
27093 void gtk_signal_emitv (GtkObject *object,
27094 guint signal_id,
27095 GtkArg *args);
27096 void gtk_signal_emit (GtkObject *object,
27097 guint signal_id,
27098 ...);
27099 void gtk_signal_emit_by_name (GtkObject *object,
27100 const gchar *name,
27101 ...);
27102 void gtk_signal_emitv_by_name (GtkObject *object,
27103 const gchar *name,
27104 GtkArg *args);
27105 void gtk_signal_compat_matched (GtkObject *object,
27106 GtkSignalFunc func,
27107 gpointer data,
27108 GSignalMatchType match,
27109 guint action);
27110 # 37 "/usr/include/gtk-2.0/gtk/gtkcalendar.h" 2
27111 # 49 "/usr/include/gtk-2.0/gtk/gtkcalendar.h"
27112 typedef struct _GtkCalendar GtkCalendar;
27113 typedef struct _GtkCalendarClass GtkCalendarClass;
27114
27115 typedef struct _GtkCalendarPrivate GtkCalendarPrivate;
27116
27117 typedef enum
27118 {
27119 GTK_CALENDAR_SHOW_HEADING = 1 << 0,
27120 GTK_CALENDAR_SHOW_DAY_NAMES = 1 << 1,
27121 GTK_CALENDAR_NO_MONTH_CHANGE = 1 << 2,
27122 GTK_CALENDAR_SHOW_WEEK_NUMBERS = 1 << 3,
27123 GTK_CALENDAR_WEEK_START_MONDAY = 1 << 4
27124 } GtkCalendarDisplayOptions;
27125
27126 struct _GtkCalendar
27127 {
27128 GtkWidget widget;
27129
27130 GtkStyle *header_style;
27131 GtkStyle *label_style;
27132
27133 gint month;
27134 gint year;
27135 gint selected_day;
27136
27137 gint day_month[6][7];
27138 gint day[6][7];
27139
27140 gint num_marked_dates;
27141 gint marked_date[31];
27142 GtkCalendarDisplayOptions display_flags;
27143 GdkColor marked_date_color[31];
27144
27145 GdkGC *gc;
27146 GdkGC *xor_gc;
27147
27148 gint focus_row;
27149 gint focus_col;
27150
27151 gint highlight_row;
27152 gint highlight_col;
27153
27154 GtkCalendarPrivate *priv;
27155 gchar grow_space [32];
27156
27157
27158 void (*_gtk_reserved1) (void);
27159 void (*_gtk_reserved2) (void);
27160 void (*_gtk_reserved3) (void);
27161 void (*_gtk_reserved4) (void);
27162 };
27163
27164 struct _GtkCalendarClass
27165 {
27166 GtkWidgetClass parent_class;
27167
27168
27169 void (* month_changed) (GtkCalendar *calendar);
27170 void (* day_selected) (GtkCalendar *calendar);
27171 void (* day_selected_double_click) (GtkCalendar *calendar);
27172 void (* prev_month) (GtkCalendar *calendar);
27173 void (* next_month) (GtkCalendar *calendar);
27174 void (* prev_year) (GtkCalendar *calendar);
27175 void (* next_year) (GtkCalendar *calendar);
27176
27177 };
27178
27179
27180 GType gtk_calendar_get_type (void) __attribute__((__const__));
27181 GtkWidget* gtk_calendar_new (void);
27182
27183 gboolean gtk_calendar_select_month (GtkCalendar *calendar,
27184 guint month,
27185 guint year);
27186 void gtk_calendar_select_day (GtkCalendar *calendar,
27187 guint day);
27188
27189 gboolean gtk_calendar_mark_day (GtkCalendar *calendar,
27190 guint day);
27191 gboolean gtk_calendar_unmark_day (GtkCalendar *calendar,
27192 guint day);
27193 void gtk_calendar_clear_marks (GtkCalendar *calendar);
27194
27195
27196 void gtk_calendar_set_display_options (GtkCalendar *calendar,
27197 GtkCalendarDisplayOptions flags);
27198 GtkCalendarDisplayOptions
27199 gtk_calendar_get_display_options (GtkCalendar *calendar);
27200
27201 void gtk_calendar_display_options (GtkCalendar *calendar,
27202 GtkCalendarDisplayOptions flags);
27203
27204
27205 void gtk_calendar_get_date (GtkCalendar *calendar,
27206 guint *year,
27207 guint *month,
27208 guint *day);
27209
27210 void gtk_calendar_freeze (GtkCalendar *calendar);
27211 void gtk_calendar_thaw (GtkCalendar *calendar);
27212 # 49 "/usr/include/gtk-2.0/gtk/gtk.h" 2
27213
27214 # 1 "/usr/include/gtk-2.0/gtk/gtkcelllayout.h" 1
27215 # 25 "/usr/include/gtk-2.0/gtk/gtkcelllayout.h"
27216
27217 # 1 "/usr/include/gtk-2.0/gtk/gtkcellrenderer.h" 1
27218 # 25 "/usr/include/gtk-2.0/gtk/gtkcellrenderer.h"
27219
27220 # 1 "/usr/include/gtk-2.0/gtk/gtkcelleditable.h" 1
27221 # 25 "/usr/include/gtk-2.0/gtk/gtkcelleditable.h"
27222 # 33 "/usr/include/gtk-2.0/gtk/gtkcelleditable.h"
27223 typedef struct _GtkCellEditable GtkCellEditable;
27224 typedef struct _GtkCellEditableIface GtkCellEditableIface;
27225
27226 struct _GtkCellEditableIface
27227 {
27228 GTypeInterface g_iface;
27229
27230
27231 void (* editing_done) (GtkCellEditable *cell_editable);
27232 void (* remove_widget) (GtkCellEditable *cell_editable);
27233
27234
27235 void (* start_editing) (GtkCellEditable *cell_editable,
27236 GdkEvent *event);
27237 };
27238
27239
27240 GType gtk_cell_editable_get_type (void) __attribute__((__const__));
27241
27242 void gtk_cell_editable_start_editing (GtkCellEditable *cell_editable,
27243 GdkEvent *event);
27244 void gtk_cell_editable_editing_done (GtkCellEditable *cell_editable);
27245 void gtk_cell_editable_remove_widget (GtkCellEditable *cell_editable);
27246 # 26 "/usr/include/gtk-2.0/gtk/gtkcellrenderer.h" 2
27247
27248
27249
27250 typedef enum
27251 {
27252 GTK_CELL_RENDERER_SELECTED = 1 << 0,
27253 GTK_CELL_RENDERER_PRELIT = 1 << 1,
27254 GTK_CELL_RENDERER_INSENSITIVE = 1 << 2,
27255
27256 GTK_CELL_RENDERER_SORTED = 1 << 3,
27257 GTK_CELL_RENDERER_FOCUSED = 1 << 4
27258 } GtkCellRendererState;
27259
27260 typedef enum
27261 {
27262 GTK_CELL_RENDERER_MODE_INERT,
27263 GTK_CELL_RENDERER_MODE_ACTIVATABLE,
27264 GTK_CELL_RENDERER_MODE_EDITABLE
27265 } GtkCellRendererMode;
27266 # 53 "/usr/include/gtk-2.0/gtk/gtkcellrenderer.h"
27267 typedef struct _GtkCellRenderer GtkCellRenderer;
27268 typedef struct _GtkCellRendererClass GtkCellRendererClass;
27269
27270 struct _GtkCellRenderer
27271 {
27272 GtkObject parent;
27273
27274 gfloat xalign;
27275 gfloat yalign;
27276
27277 gint width;
27278 gint height;
27279
27280 guint16 xpad;
27281 guint16 ypad;
27282
27283 guint mode : 2;
27284 guint visible : 1;
27285 guint is_expander : 1;
27286 guint is_expanded : 1;
27287 guint cell_background_set : 1;
27288 guint sensitive : 1;
27289 guint editing : 1;
27290 };
27291
27292 struct _GtkCellRendererClass
27293 {
27294 GtkObjectClass parent_class;
27295
27296
27297 void (* get_size) (GtkCellRenderer *cell,
27298 GtkWidget *widget,
27299 GdkRectangle *cell_area,
27300 gint *x_offset,
27301 gint *y_offset,
27302 gint *width,
27303 gint *height);
27304 void (* render) (GtkCellRenderer *cell,
27305 GdkDrawable *window,
27306 GtkWidget *widget,
27307 GdkRectangle *background_area,
27308 GdkRectangle *cell_area,
27309 GdkRectangle *expose_area,
27310 GtkCellRendererState flags);
27311 gboolean (* activate) (GtkCellRenderer *cell,
27312 GdkEvent *event,
27313 GtkWidget *widget,
27314 const gchar *path,
27315 GdkRectangle *background_area,
27316 GdkRectangle *cell_area,
27317 GtkCellRendererState flags);
27318 GtkCellEditable *(* start_editing) (GtkCellRenderer *cell,
27319 GdkEvent *event,
27320 GtkWidget *widget,
27321 const gchar *path,
27322 GdkRectangle *background_area,
27323 GdkRectangle *cell_area,
27324 GtkCellRendererState flags);
27325
27326
27327 void (* editing_canceled) (GtkCellRenderer *cell);
27328 void (* editing_started) (GtkCellRenderer *cell,
27329 GtkCellEditable *editable,
27330 const gchar *path);
27331
27332
27333 void (*_gtk_reserved1) (void);
27334 void (*_gtk_reserved2) (void);
27335 };
27336
27337 GType gtk_cell_renderer_get_type (void) __attribute__((__const__));
27338
27339 void gtk_cell_renderer_get_size (GtkCellRenderer *cell,
27340 GtkWidget *widget,
27341 GdkRectangle *cell_area,
27342 gint *x_offset,
27343 gint *y_offset,
27344 gint *width,
27345 gint *height);
27346 void gtk_cell_renderer_render (GtkCellRenderer *cell,
27347 GdkWindow *window,
27348 GtkWidget *widget,
27349 GdkRectangle *background_area,
27350 GdkRectangle *cell_area,
27351 GdkRectangle *expose_area,
27352 GtkCellRendererState flags);
27353 gboolean gtk_cell_renderer_activate (GtkCellRenderer *cell,
27354 GdkEvent *event,
27355 GtkWidget *widget,
27356 const gchar *path,
27357 GdkRectangle *background_area,
27358 GdkRectangle *cell_area,
27359 GtkCellRendererState flags);
27360 GtkCellEditable *gtk_cell_renderer_start_editing (GtkCellRenderer *cell,
27361 GdkEvent *event,
27362 GtkWidget *widget,
27363 const gchar *path,
27364 GdkRectangle *background_area,
27365 GdkRectangle *cell_area,
27366 GtkCellRendererState flags);
27367 void gtk_cell_renderer_set_fixed_size (GtkCellRenderer *cell,
27368 gint width,
27369 gint height);
27370 void gtk_cell_renderer_get_fixed_size (GtkCellRenderer *cell,
27371 gint *width,
27372 gint *height);
27373
27374
27375
27376 void gtk_cell_renderer_editing_canceled (GtkCellRenderer *cell);
27377
27378 void gtk_cell_renderer_stop_editing (GtkCellRenderer *cell,
27379 gboolean canceled);
27380 # 26 "/usr/include/gtk-2.0/gtk/gtkcelllayout.h" 2
27381
27382 # 1 "/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h" 1
27383 # 25 "/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h"
27384
27385 # 1 "/usr/include/gtk-2.0/gtk/gtktreemodel.h" 1
27386 # 28 "/usr/include/gtk-2.0/gtk/gtktreemodel.h"
27387 # 39 "/usr/include/gtk-2.0/gtk/gtktreemodel.h"
27388 typedef struct _GtkTreeIter GtkTreeIter;
27389 typedef struct _GtkTreePath GtkTreePath;
27390 typedef struct _GtkTreeRowReference GtkTreeRowReference;
27391 typedef struct _GtkTreeModel GtkTreeModel;
27392 typedef struct _GtkTreeModelIface GtkTreeModelIface;
27393 typedef gboolean (* GtkTreeModelForeachFunc) (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data);
27394
27395
27396 typedef enum
27397 {
27398 GTK_TREE_MODEL_ITERS_PERSIST = 1 << 0,
27399 GTK_TREE_MODEL_LIST_ONLY = 1 << 1
27400 } GtkTreeModelFlags;
27401
27402 struct _GtkTreeIter
27403 {
27404 gint stamp;
27405 gpointer user_data;
27406 gpointer user_data2;
27407 gpointer user_data3;
27408 };
27409
27410 struct _GtkTreeModelIface
27411 {
27412 GTypeInterface g_iface;
27413
27414
27415 void (* row_changed) (GtkTreeModel *tree_model,
27416 GtkTreePath *path,
27417 GtkTreeIter *iter);
27418 void (* row_inserted) (GtkTreeModel *tree_model,
27419 GtkTreePath *path,
27420 GtkTreeIter *iter);
27421 void (* row_has_child_toggled) (GtkTreeModel *tree_model,
27422 GtkTreePath *path,
27423 GtkTreeIter *iter);
27424 void (* row_deleted) (GtkTreeModel *tree_model,
27425 GtkTreePath *path);
27426 void (* rows_reordered) (GtkTreeModel *tree_model,
27427 GtkTreePath *path,
27428 GtkTreeIter *iter,
27429 gint *new_order);
27430
27431
27432 GtkTreeModelFlags (* get_flags) (GtkTreeModel *tree_model);
27433
27434 gint (* get_n_columns) (GtkTreeModel *tree_model);
27435 GType (* get_column_type) (GtkTreeModel *tree_model,
27436 gint index_);
27437 gboolean (* get_iter) (GtkTreeModel *tree_model,
27438 GtkTreeIter *iter,
27439 GtkTreePath *path);
27440 GtkTreePath *(* get_path) (GtkTreeModel *tree_model,
27441 GtkTreeIter *iter);
27442 void (* get_value) (GtkTreeModel *tree_model,
27443 GtkTreeIter *iter,
27444 gint column,
27445 GValue *value);
27446 gboolean (* iter_next) (GtkTreeModel *tree_model,
27447 GtkTreeIter *iter);
27448 gboolean (* iter_children) (GtkTreeModel *tree_model,
27449 GtkTreeIter *iter,
27450 GtkTreeIter *parent);
27451 gboolean (* iter_has_child) (GtkTreeModel *tree_model,
27452 GtkTreeIter *iter);
27453 gint (* iter_n_children) (GtkTreeModel *tree_model,
27454 GtkTreeIter *iter);
27455 gboolean (* iter_nth_child) (GtkTreeModel *tree_model,
27456 GtkTreeIter *iter,
27457 GtkTreeIter *parent,
27458 gint n);
27459 gboolean (* iter_parent) (GtkTreeModel *tree_model,
27460 GtkTreeIter *iter,
27461 GtkTreeIter *child);
27462 void (* ref_node) (GtkTreeModel *tree_model,
27463 GtkTreeIter *iter);
27464 void (* unref_node) (GtkTreeModel *tree_model,
27465 GtkTreeIter *iter);
27466 };
27467
27468
27469
27470 GtkTreePath *gtk_tree_path_new (void);
27471 GtkTreePath *gtk_tree_path_new_from_string (const gchar *path);
27472 GtkTreePath *gtk_tree_path_new_from_indices (gint first_index,
27473 ...);
27474 gchar *gtk_tree_path_to_string (GtkTreePath *path);
27475 GtkTreePath *gtk_tree_path_new_first (void);
27476 void gtk_tree_path_append_index (GtkTreePath *path,
27477 gint index_);
27478 void gtk_tree_path_prepend_index (GtkTreePath *path,
27479 gint index_);
27480 gint gtk_tree_path_get_depth (GtkTreePath *path);
27481 gint *gtk_tree_path_get_indices (GtkTreePath *path);
27482 void gtk_tree_path_free (GtkTreePath *path);
27483 GtkTreePath *gtk_tree_path_copy (const GtkTreePath *path);
27484 GType gtk_tree_path_get_type (void) __attribute__((__const__));
27485 gint gtk_tree_path_compare (const GtkTreePath *a,
27486 const GtkTreePath *b);
27487 void gtk_tree_path_next (GtkTreePath *path);
27488 gboolean gtk_tree_path_prev (GtkTreePath *path);
27489 gboolean gtk_tree_path_up (GtkTreePath *path);
27490 void gtk_tree_path_down (GtkTreePath *path);
27491
27492 gboolean gtk_tree_path_is_ancestor (GtkTreePath *path,
27493 GtkTreePath *descendant);
27494 gboolean gtk_tree_path_is_descendant (GtkTreePath *path,
27495 GtkTreePath *ancestor);
27496 # 157 "/usr/include/gtk-2.0/gtk/gtktreemodel.h"
27497 GType gtk_tree_row_reference_get_type (void) __attribute__((__const__));
27498 GtkTreeRowReference *gtk_tree_row_reference_new (GtkTreeModel *model,
27499 GtkTreePath *path);
27500 GtkTreeRowReference *gtk_tree_row_reference_new_proxy (GObject *proxy,
27501 GtkTreeModel *model,
27502 GtkTreePath *path);
27503 GtkTreePath *gtk_tree_row_reference_get_path (GtkTreeRowReference *reference);
27504 GtkTreeModel *gtk_tree_row_reference_get_model (GtkTreeRowReference *reference);
27505 gboolean gtk_tree_row_reference_valid (GtkTreeRowReference *reference);
27506 GtkTreeRowReference *gtk_tree_row_reference_copy (GtkTreeRowReference *reference);
27507 void gtk_tree_row_reference_free (GtkTreeRowReference *reference);
27508
27509
27510 void gtk_tree_row_reference_inserted (GObject *proxy,
27511 GtkTreePath *path);
27512 void gtk_tree_row_reference_deleted (GObject *proxy,
27513 GtkTreePath *path);
27514 void gtk_tree_row_reference_reordered (GObject *proxy,
27515 GtkTreePath *path,
27516 GtkTreeIter *iter,
27517 gint *new_order);
27518
27519
27520 GtkTreeIter * gtk_tree_iter_copy (GtkTreeIter *iter);
27521 void gtk_tree_iter_free (GtkTreeIter *iter);
27522 GType gtk_tree_iter_get_type (void) __attribute__((__const__));
27523
27524 GType gtk_tree_model_get_type (void) __attribute__((__const__));
27525 GtkTreeModelFlags gtk_tree_model_get_flags (GtkTreeModel *tree_model);
27526 gint gtk_tree_model_get_n_columns (GtkTreeModel *tree_model);
27527 GType gtk_tree_model_get_column_type (GtkTreeModel *tree_model,
27528 gint index_);
27529
27530
27531
27532 gboolean gtk_tree_model_get_iter (GtkTreeModel *tree_model,
27533 GtkTreeIter *iter,
27534 GtkTreePath *path);
27535 gboolean gtk_tree_model_get_iter_from_string (GtkTreeModel *tree_model,
27536 GtkTreeIter *iter,
27537 const gchar *path_string);
27538 gchar * gtk_tree_model_get_string_from_iter (GtkTreeModel *tree_model,
27539 GtkTreeIter *iter);
27540 gboolean gtk_tree_model_get_iter_first (GtkTreeModel *tree_model,
27541 GtkTreeIter *iter);
27542 GtkTreePath * gtk_tree_model_get_path (GtkTreeModel *tree_model,
27543 GtkTreeIter *iter);
27544 void gtk_tree_model_get_value (GtkTreeModel *tree_model,
27545 GtkTreeIter *iter,
27546 gint column,
27547 GValue *value);
27548 gboolean gtk_tree_model_iter_next (GtkTreeModel *tree_model,
27549 GtkTreeIter *iter);
27550 gboolean gtk_tree_model_iter_children (GtkTreeModel *tree_model,
27551 GtkTreeIter *iter,
27552 GtkTreeIter *parent);
27553 gboolean gtk_tree_model_iter_has_child (GtkTreeModel *tree_model,
27554 GtkTreeIter *iter);
27555 gint gtk_tree_model_iter_n_children (GtkTreeModel *tree_model,
27556 GtkTreeIter *iter);
27557 gboolean gtk_tree_model_iter_nth_child (GtkTreeModel *tree_model,
27558 GtkTreeIter *iter,
27559 GtkTreeIter *parent,
27560 gint n);
27561 gboolean gtk_tree_model_iter_parent (GtkTreeModel *tree_model,
27562 GtkTreeIter *iter,
27563 GtkTreeIter *child);
27564 void gtk_tree_model_ref_node (GtkTreeModel *tree_model,
27565 GtkTreeIter *iter);
27566 void gtk_tree_model_unref_node (GtkTreeModel *tree_model,
27567 GtkTreeIter *iter);
27568 void gtk_tree_model_get (GtkTreeModel *tree_model,
27569 GtkTreeIter *iter,
27570 ...);
27571 void gtk_tree_model_get_valist (GtkTreeModel *tree_model,
27572 GtkTreeIter *iter,
27573 va_list var_args);
27574
27575
27576 void gtk_tree_model_foreach (GtkTreeModel *model,
27577 GtkTreeModelForeachFunc func,
27578 gpointer user_data);
27579
27580
27581
27582
27583
27584
27585
27586 void gtk_tree_model_row_changed (GtkTreeModel *tree_model,
27587 GtkTreePath *path,
27588 GtkTreeIter *iter);
27589 void gtk_tree_model_row_inserted (GtkTreeModel *tree_model,
27590 GtkTreePath *path,
27591 GtkTreeIter *iter);
27592 void gtk_tree_model_row_has_child_toggled (GtkTreeModel *tree_model,
27593 GtkTreePath *path,
27594 GtkTreeIter *iter);
27595 void gtk_tree_model_row_deleted (GtkTreeModel *tree_model,
27596 GtkTreePath *path);
27597 void gtk_tree_model_rows_reordered (GtkTreeModel *tree_model,
27598 GtkTreePath *path,
27599 GtkTreeIter *iter,
27600 gint *new_order);
27601 # 26 "/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h" 2
27602
27603 # 1 "/usr/include/gtk-2.0/gtk/gtktreesortable.h" 1
27604 # 27 "/usr/include/gtk-2.0/gtk/gtktreesortable.h"
27605 # 35 "/usr/include/gtk-2.0/gtk/gtktreesortable.h"
27606 enum {
27607 GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID = -1,
27608 GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID = -2
27609 };
27610
27611 typedef struct _GtkTreeSortable GtkTreeSortable;
27612 typedef struct _GtkTreeSortableIface GtkTreeSortableIface;
27613
27614 typedef gint (* GtkTreeIterCompareFunc) (GtkTreeModel *model,
27615 GtkTreeIter *a,
27616 GtkTreeIter *b,
27617 gpointer user_data);
27618
27619
27620 struct _GtkTreeSortableIface
27621 {
27622 GTypeInterface g_iface;
27623
27624
27625 void (* sort_column_changed) (GtkTreeSortable *sortable);
27626
27627
27628 gboolean (* get_sort_column_id) (GtkTreeSortable *sortable,
27629 gint *sort_column_id,
27630 GtkSortType *order);
27631 void (* set_sort_column_id) (GtkTreeSortable *sortable,
27632 gint sort_column_id,
27633 GtkSortType order);
27634 void (* set_sort_func) (GtkTreeSortable *sortable,
27635 gint sort_column_id,
27636 GtkTreeIterCompareFunc func,
27637 gpointer data,
27638 GtkDestroyNotify destroy);
27639 void (* set_default_sort_func) (GtkTreeSortable *sortable,
27640 GtkTreeIterCompareFunc func,
27641 gpointer data,
27642 GtkDestroyNotify destroy);
27643 gboolean (* has_default_sort_func) (GtkTreeSortable *sortable);
27644 };
27645
27646
27647 GType gtk_tree_sortable_get_type (void) __attribute__((__const__));
27648
27649 void gtk_tree_sortable_sort_column_changed (GtkTreeSortable *sortable);
27650 gboolean gtk_tree_sortable_get_sort_column_id (GtkTreeSortable *sortable,
27651 gint *sort_column_id,
27652 GtkSortType *order);
27653 void gtk_tree_sortable_set_sort_column_id (GtkTreeSortable *sortable,
27654 gint sort_column_id,
27655 GtkSortType order);
27656 void gtk_tree_sortable_set_sort_func (GtkTreeSortable *sortable,
27657 gint sort_column_id,
27658 GtkTreeIterCompareFunc sort_func,
27659 gpointer user_data,
27660 GtkDestroyNotify destroy);
27661 void gtk_tree_sortable_set_default_sort_func (GtkTreeSortable *sortable,
27662 GtkTreeIterCompareFunc sort_func,
27663 gpointer user_data,
27664 GtkDestroyNotify destroy);
27665 gboolean gtk_tree_sortable_has_default_sort_func (GtkTreeSortable *sortable);
27666 # 27 "/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h" 2
27667 # 42 "/usr/include/gtk-2.0/gtk/gtktreeviewcolumn.h"
27668 typedef enum
27669 {
27670 GTK_TREE_VIEW_COLUMN_GROW_ONLY,
27671 GTK_TREE_VIEW_COLUMN_AUTOSIZE,
27672 GTK_TREE_VIEW_COLUMN_FIXED
27673 } GtkTreeViewColumnSizing;
27674
27675 typedef struct _GtkTreeViewColumn GtkTreeViewColumn;
27676 typedef struct _GtkTreeViewColumnClass GtkTreeViewColumnClass;
27677
27678 typedef void (* GtkTreeCellDataFunc) (GtkTreeViewColumn *tree_column,
27679 GtkCellRenderer *cell,
27680 GtkTreeModel *tree_model,
27681 GtkTreeIter *iter,
27682 gpointer data);
27683
27684
27685 struct _GtkTreeViewColumn
27686 {
27687 GtkObject parent;
27688
27689 GtkWidget *tree_view;
27690 GtkWidget *button;
27691 GtkWidget *child;
27692 GtkWidget *arrow;
27693 GtkWidget *alignment;
27694 GdkWindow *window;
27695 GtkCellEditable *editable_widget;
27696 gfloat xalign;
27697 guint property_changed_signal;
27698 gint spacing;
27699
27700
27701
27702 GtkTreeViewColumnSizing column_type;
27703 gint requested_width;
27704 gint button_request;
27705 gint resized_width;
27706 gint width;
27707 gint fixed_width;
27708 gint min_width;
27709 gint max_width;
27710
27711
27712 gint drag_x;
27713 gint drag_y;
27714
27715 gchar *title;
27716 GList *cell_list;
27717
27718
27719 guint sort_clicked_signal;
27720 guint sort_column_changed_signal;
27721 gint sort_column_id;
27722 GtkSortType sort_order;
27723
27724
27725 guint visible : 1;
27726 guint resizable : 1;
27727 guint clickable : 1;
27728 guint dirty : 1;
27729 guint show_sort_indicator : 1;
27730 guint maybe_reordered : 1;
27731 guint reorderable : 1;
27732 guint use_resized_width : 1;
27733 guint expand : 1;
27734 };
27735
27736 struct _GtkTreeViewColumnClass
27737 {
27738 GtkObjectClass parent_class;
27739
27740 void (*clicked) (GtkTreeViewColumn *tree_column);
27741
27742
27743 void (*_gtk_reserved1) (void);
27744 void (*_gtk_reserved2) (void);
27745 void (*_gtk_reserved3) (void);
27746 void (*_gtk_reserved4) (void);
27747 };
27748
27749 GType gtk_tree_view_column_get_type (void) __attribute__((__const__));
27750 GtkTreeViewColumn *gtk_tree_view_column_new (void);
27751 GtkTreeViewColumn *gtk_tree_view_column_new_with_attributes (const gchar *title,
27752 GtkCellRenderer *cell,
27753 ...) __attribute__((__sentinel__));
27754 void gtk_tree_view_column_pack_start (GtkTreeViewColumn *tree_column,
27755 GtkCellRenderer *cell,
27756 gboolean expand);
27757 void gtk_tree_view_column_pack_end (GtkTreeViewColumn *tree_column,
27758 GtkCellRenderer *cell,
27759 gboolean expand);
27760 void gtk_tree_view_column_clear (GtkTreeViewColumn *tree_column);
27761 GList *gtk_tree_view_column_get_cell_renderers (GtkTreeViewColumn *tree_column);
27762 void gtk_tree_view_column_add_attribute (GtkTreeViewColumn *tree_column,
27763 GtkCellRenderer *cell_renderer,
27764 const gchar *attribute,
27765 gint column);
27766 void gtk_tree_view_column_set_attributes (GtkTreeViewColumn *tree_column,
27767 GtkCellRenderer *cell_renderer,
27768 ...) __attribute__((__sentinel__));
27769 void gtk_tree_view_column_set_cell_data_func (GtkTreeViewColumn *tree_column,
27770 GtkCellRenderer *cell_renderer,
27771 GtkTreeCellDataFunc func,
27772 gpointer func_data,
27773 GtkDestroyNotify destroy);
27774 void gtk_tree_view_column_clear_attributes (GtkTreeViewColumn *tree_column,
27775 GtkCellRenderer *cell_renderer);
27776 void gtk_tree_view_column_set_spacing (GtkTreeViewColumn *tree_column,
27777 gint spacing);
27778 gint gtk_tree_view_column_get_spacing (GtkTreeViewColumn *tree_column);
27779 void gtk_tree_view_column_set_visible (GtkTreeViewColumn *tree_column,
27780 gboolean visible);
27781 gboolean gtk_tree_view_column_get_visible (GtkTreeViewColumn *tree_column);
27782 void gtk_tree_view_column_set_resizable (GtkTreeViewColumn *tree_column,
27783 gboolean resizable);
27784 gboolean gtk_tree_view_column_get_resizable (GtkTreeViewColumn *tree_column);
27785 void gtk_tree_view_column_set_sizing (GtkTreeViewColumn *tree_column,
27786 GtkTreeViewColumnSizing type);
27787 GtkTreeViewColumnSizing gtk_tree_view_column_get_sizing (GtkTreeViewColumn *tree_column);
27788 gint gtk_tree_view_column_get_width (GtkTreeViewColumn *tree_column);
27789 gint gtk_tree_view_column_get_fixed_width (GtkTreeViewColumn *tree_column);
27790 void gtk_tree_view_column_set_fixed_width (GtkTreeViewColumn *tree_column,
27791 gint fixed_width);
27792 void gtk_tree_view_column_set_min_width (GtkTreeViewColumn *tree_column,
27793 gint min_width);
27794 gint gtk_tree_view_column_get_min_width (GtkTreeViewColumn *tree_column);
27795 void gtk_tree_view_column_set_max_width (GtkTreeViewColumn *tree_column,
27796 gint max_width);
27797 gint gtk_tree_view_column_get_max_width (GtkTreeViewColumn *tree_column);
27798 void gtk_tree_view_column_clicked (GtkTreeViewColumn *tree_column);
27799
27800
27801
27802
27803
27804 void gtk_tree_view_column_set_title (GtkTreeViewColumn *tree_column,
27805 const gchar *title);
27806 const gchar *gtk_tree_view_column_get_title (GtkTreeViewColumn *tree_column);
27807 void gtk_tree_view_column_set_expand (GtkTreeViewColumn *tree_column,
27808 gboolean expand);
27809 gboolean gtk_tree_view_column_get_expand (GtkTreeViewColumn *tree_column);
27810 void gtk_tree_view_column_set_clickable (GtkTreeViewColumn *tree_column,
27811 gboolean clickable);
27812 gboolean gtk_tree_view_column_get_clickable (GtkTreeViewColumn *tree_column);
27813 void gtk_tree_view_column_set_widget (GtkTreeViewColumn *tree_column,
27814 GtkWidget *widget);
27815 GtkWidget *gtk_tree_view_column_get_widget (GtkTreeViewColumn *tree_column);
27816 void gtk_tree_view_column_set_alignment (GtkTreeViewColumn *tree_column,
27817 gfloat xalign);
27818 gfloat gtk_tree_view_column_get_alignment (GtkTreeViewColumn *tree_column);
27819 void gtk_tree_view_column_set_reorderable (GtkTreeViewColumn *tree_column,
27820 gboolean reorderable);
27821 gboolean gtk_tree_view_column_get_reorderable (GtkTreeViewColumn *tree_column);
27822
27823
27824
27825
27826
27827
27828 void gtk_tree_view_column_set_sort_column_id (GtkTreeViewColumn *tree_column,
27829 gint sort_column_id);
27830 gint gtk_tree_view_column_get_sort_column_id (GtkTreeViewColumn *tree_column);
27831 void gtk_tree_view_column_set_sort_indicator (GtkTreeViewColumn *tree_column,
27832 gboolean setting);
27833 gboolean gtk_tree_view_column_get_sort_indicator (GtkTreeViewColumn *tree_column);
27834 void gtk_tree_view_column_set_sort_order (GtkTreeViewColumn *tree_column,
27835 GtkSortType order);
27836 GtkSortType gtk_tree_view_column_get_sort_order (GtkTreeViewColumn *tree_column);
27837
27838
27839
27840
27841 void gtk_tree_view_column_cell_set_cell_data (GtkTreeViewColumn *tree_column,
27842 GtkTreeModel *tree_model,
27843 GtkTreeIter *iter,
27844 gboolean is_expander,
27845 gboolean is_expanded);
27846 void gtk_tree_view_column_cell_get_size (GtkTreeViewColumn *tree_column,
27847 GdkRectangle *cell_area,
27848 gint *x_offset,
27849 gint *y_offset,
27850 gint *width,
27851 gint *height);
27852 gboolean gtk_tree_view_column_cell_is_visible (GtkTreeViewColumn *tree_column);
27853 void gtk_tree_view_column_focus_cell (GtkTreeViewColumn *tree_column,
27854 GtkCellRenderer *cell);
27855 gboolean gtk_tree_view_column_cell_get_position (GtkTreeViewColumn *tree_column,
27856 GtkCellRenderer *cell_renderer,
27857 gint *start_pos,
27858 gint *width);
27859 void gtk_tree_view_column_queue_resize (GtkTreeViewColumn *tree_column);
27860 # 27 "/usr/include/gtk-2.0/gtk/gtkcelllayout.h" 2
27861 # 35 "/usr/include/gtk-2.0/gtk/gtkcelllayout.h"
27862 typedef struct _GtkCellLayout GtkCellLayout;
27863 typedef struct _GtkCellLayoutIface GtkCellLayoutIface;
27864
27865
27866 typedef void (* GtkCellLayoutDataFunc) (GtkCellLayout *cell_layout,
27867 GtkCellRenderer *cell,
27868 GtkTreeModel *tree_model,
27869 GtkTreeIter *iter,
27870 gpointer data);
27871
27872 struct _GtkCellLayoutIface
27873 {
27874 GTypeInterface g_iface;
27875
27876
27877 void (* pack_start) (GtkCellLayout *cell_layout,
27878 GtkCellRenderer *cell,
27879 gboolean expand);
27880 void (* pack_end) (GtkCellLayout *cell_layout,
27881 GtkCellRenderer *cell,
27882 gboolean expand);
27883 void (* clear) (GtkCellLayout *cell_layout);
27884 void (* add_attribute) (GtkCellLayout *cell_layout,
27885 GtkCellRenderer *cell,
27886 const gchar *attribute,
27887 gint column);
27888 void (* set_cell_data_func) (GtkCellLayout *cell_layout,
27889 GtkCellRenderer *cell,
27890 GtkCellLayoutDataFunc func,
27891 gpointer func_data,
27892 GDestroyNotify destroy);
27893 void (* clear_attributes) (GtkCellLayout *cell_layout,
27894 GtkCellRenderer *cell);
27895 void (* reorder) (GtkCellLayout *cell_layout,
27896 GtkCellRenderer *cell,
27897 gint position);
27898 };
27899
27900 GType gtk_cell_layout_get_type (void) __attribute__((__const__));
27901 void gtk_cell_layout_pack_start (GtkCellLayout *cell_layout,
27902 GtkCellRenderer *cell,
27903 gboolean expand);
27904 void gtk_cell_layout_pack_end (GtkCellLayout *cell_layout,
27905 GtkCellRenderer *cell,
27906 gboolean expand);
27907 void gtk_cell_layout_clear (GtkCellLayout *cell_layout);
27908 void gtk_cell_layout_set_attributes (GtkCellLayout *cell_layout,
27909 GtkCellRenderer *cell,
27910 ...) __attribute__((__sentinel__));
27911 void gtk_cell_layout_add_attribute (GtkCellLayout *cell_layout,
27912 GtkCellRenderer *cell,
27913 const gchar *attribute,
27914 gint column);
27915 void gtk_cell_layout_set_cell_data_func (GtkCellLayout *cell_layout,
27916 GtkCellRenderer *cell,
27917 GtkCellLayoutDataFunc func,
27918 gpointer func_data,
27919 GDestroyNotify destroy);
27920 void gtk_cell_layout_clear_attributes (GtkCellLayout *cell_layout,
27921 GtkCellRenderer *cell);
27922 void gtk_cell_layout_reorder (GtkCellLayout *cell_layout,
27923 GtkCellRenderer *cell,
27924 gint position);
27925 # 50 "/usr/include/gtk-2.0/gtk/gtk.h" 2
27926
27927
27928 # 1 "/usr/include/gtk-2.0/gtk/gtkcellrenderercombo.h" 1
27929 # 25 "/usr/include/gtk-2.0/gtk/gtkcellrenderercombo.h"
27930
27931 # 1 "/usr/include/gtk-2.0/gtk/gtkcellrenderertext.h" 1
27932 # 27 "/usr/include/gtk-2.0/gtk/gtkcellrenderertext.h"
27933 # 37 "/usr/include/gtk-2.0/gtk/gtkcellrenderertext.h"
27934 typedef struct _GtkCellRendererText GtkCellRendererText;
27935 typedef struct _GtkCellRendererTextClass GtkCellRendererTextClass;
27936
27937 struct _GtkCellRendererText
27938 {
27939 GtkCellRenderer parent;
27940
27941
27942 gchar *text;
27943 PangoFontDescription *font;
27944 gdouble font_scale;
27945 PangoColor foreground;
27946 PangoColor background;
27947
27948 PangoAttrList *extra_attrs;
27949
27950 PangoUnderline underline_style;
27951
27952 gint rise;
27953 gint fixed_height_rows;
27954
27955 guint strikethrough : 1;
27956
27957 guint editable : 1;
27958
27959 guint scale_set : 1;
27960
27961 guint foreground_set : 1;
27962 guint background_set : 1;
27963
27964 guint underline_set : 1;
27965
27966 guint rise_set : 1;
27967
27968 guint strikethrough_set : 1;
27969
27970 guint editable_set : 1;
27971 guint calc_fixed_height : 1;
27972 };
27973
27974 struct _GtkCellRendererTextClass
27975 {
27976 GtkCellRendererClass parent_class;
27977
27978 void (* edited) (GtkCellRendererText *cell_renderer_text,
27979 const gchar *path,
27980 const gchar *new_text);
27981
27982
27983 void (*_gtk_reserved1) (void);
27984 void (*_gtk_reserved2) (void);
27985 void (*_gtk_reserved3) (void);
27986 void (*_gtk_reserved4) (void);
27987 };
27988
27989 GType gtk_cell_renderer_text_get_type (void) __attribute__((__const__));
27990 GtkCellRenderer *gtk_cell_renderer_text_new (void);
27991
27992 void gtk_cell_renderer_text_set_fixed_height_from_font (GtkCellRendererText *renderer,
27993 gint number_of_rows);
27994 # 26 "/usr/include/gtk-2.0/gtk/gtkcellrenderercombo.h" 2
27995 # 36 "/usr/include/gtk-2.0/gtk/gtkcellrenderercombo.h"
27996 typedef struct _GtkCellRendererCombo GtkCellRendererCombo;
27997 typedef struct _GtkCellRendererComboClass GtkCellRendererComboClass;
27998
27999 struct _GtkCellRendererCombo
28000 {
28001 GtkCellRendererText parent;
28002
28003 GtkTreeModel *model;
28004 gint text_column;
28005 gboolean has_entry;
28006
28007
28008 guint focus_out_id;
28009 };
28010
28011 struct _GtkCellRendererComboClass
28012 {
28013 GtkCellRendererTextClass parent;
28014 };
28015
28016 GType gtk_cell_renderer_combo_get_type (void) __attribute__((__const__));
28017 GtkCellRenderer *gtk_cell_renderer_combo_new (void);
28018 # 52 "/usr/include/gtk-2.0/gtk/gtk.h" 2
28019
28020 # 1 "/usr/include/gtk-2.0/gtk/gtkcellrendererpixbuf.h" 1
28021 # 26 "/usr/include/gtk-2.0/gtk/gtkcellrendererpixbuf.h"
28022 # 36 "/usr/include/gtk-2.0/gtk/gtkcellrendererpixbuf.h"
28023 typedef struct _GtkCellRendererPixbuf GtkCellRendererPixbuf;
28024 typedef struct _GtkCellRendererPixbufClass GtkCellRendererPixbufClass;
28025
28026 struct _GtkCellRendererPixbuf
28027 {
28028 GtkCellRenderer parent;
28029
28030
28031 GdkPixbuf *pixbuf;
28032 GdkPixbuf *pixbuf_expander_open;
28033 GdkPixbuf *pixbuf_expander_closed;
28034 };
28035
28036 struct _GtkCellRendererPixbufClass
28037 {
28038 GtkCellRendererClass parent_class;
28039
28040
28041 void (*_gtk_reserved1) (void);
28042 void (*_gtk_reserved2) (void);
28043 void (*_gtk_reserved3) (void);
28044 void (*_gtk_reserved4) (void);
28045 };
28046
28047 GType gtk_cell_renderer_pixbuf_get_type (void) __attribute__((__const__));
28048 GtkCellRenderer *gtk_cell_renderer_pixbuf_new (void);
28049 # 53 "/usr/include/gtk-2.0/gtk/gtk.h" 2
28050
28051 # 1 "/usr/include/gtk-2.0/gtk/gtkcellrendererprogress.h" 1
28052 # 32 "/usr/include/gtk-2.0/gtk/gtkcellrendererprogress.h"
28053 # 41 "/usr/include/gtk-2.0/gtk/gtkcellrendererprogress.h"
28054 typedef struct _GtkCellRendererProgress GtkCellRendererProgress;
28055 typedef struct _GtkCellRendererProgressClass GtkCellRendererProgressClass;
28056 typedef struct _GtkCellRendererProgressPrivate GtkCellRendererProgressPrivate;
28057
28058 struct _GtkCellRendererProgress
28059 {
28060 GtkCellRenderer parent_instance;
28061
28062
28063 GtkCellRendererProgressPrivate *priv;
28064 };
28065
28066 struct _GtkCellRendererProgressClass
28067 {
28068 GtkCellRendererClass parent_class;
28069
28070
28071 void (*_gtk_reserved1) (void);
28072 void (*_gtk_reserved2) (void);
28073 void (*_gtk_reserved3) (void);
28074 void (*_gtk_reserved4) (void);
28075 };
28076
28077 GType gtk_cell_renderer_progress_get_type (void) __attribute__((__const__));
28078 GtkCellRenderer* gtk_cell_renderer_progress_new (void);
28079 # 54 "/usr/include/gtk-2.0/gtk/gtk.h" 2
28080
28081
28082 # 1 "/usr/include/gtk-2.0/gtk/gtkcellrenderertoggle.h" 1
28083 # 26 "/usr/include/gtk-2.0/gtk/gtkcellrenderertoggle.h"
28084 # 36 "/usr/include/gtk-2.0/gtk/gtkcellrenderertoggle.h"
28085 typedef struct _GtkCellRendererToggle GtkCellRendererToggle;
28086 typedef struct _GtkCellRendererToggleClass GtkCellRendererToggleClass;
28087
28088 struct _GtkCellRendererToggle
28089 {
28090 GtkCellRenderer parent;
28091
28092
28093 guint active : 1;
28094 guint activatable : 1;
28095 guint radio : 1;
28096 };
28097
28098 struct _GtkCellRendererToggleClass
28099 {
28100 GtkCellRendererClass parent_class;
28101
28102 void (* toggled) (GtkCellRendererToggle *cell_renderer_toggle,
28103 const gchar *path);
28104
28105
28106 void (*_gtk_reserved1) (void);
28107 void (*_gtk_reserved2) (void);
28108 void (*_gtk_reserved3) (void);
28109 void (*_gtk_reserved4) (void);
28110 };
28111
28112 GType gtk_cell_renderer_toggle_get_type (void) __attribute__((__const__));
28113 GtkCellRenderer *gtk_cell_renderer_toggle_new (void);
28114
28115 gboolean gtk_cell_renderer_toggle_get_radio (GtkCellRendererToggle *toggle);
28116 void gtk_cell_renderer_toggle_set_radio (GtkCellRendererToggle *toggle,
28117 gboolean radio);
28118
28119 gboolean gtk_cell_renderer_toggle_get_active (GtkCellRendererToggle *toggle);
28120 void gtk_cell_renderer_toggle_set_active (GtkCellRendererToggle *toggle,
28121 gboolean setting);
28122 # 56 "/usr/include/gtk-2.0/gtk/gtk.h" 2
28123
28124 # 1 "/usr/include/gtk-2.0/gtk/gtkcellview.h" 1
28125 # 27 "/usr/include/gtk-2.0/gtk/gtkcellview.h"
28126 # 36 "/usr/include/gtk-2.0/gtk/gtkcellview.h"
28127 typedef struct _GtkCellView GtkCellView;
28128 typedef struct _GtkCellViewClass GtkCellViewClass;
28129 typedef struct _GtkCellViewPrivate GtkCellViewPrivate;
28130
28131 struct _GtkCellView
28132 {
28133 GtkWidget parent_instance;
28134
28135
28136 GtkCellViewPrivate *priv;
28137 };
28138
28139 struct _GtkCellViewClass
28140 {
28141 GtkWidgetClass parent_class;
28142 };
28143
28144 GType gtk_cell_view_get_type (void) __attribute__((__const__));
28145 GtkWidget *gtk_cell_view_new (void);
28146 GtkWidget *gtk_cell_view_new_with_text (const gchar *text);
28147 GtkWidget *gtk_cell_view_new_with_markup (const gchar *markup);
28148 GtkWidget *gtk_cell_view_new_with_pixbuf (GdkPixbuf *pixbuf);
28149
28150 void gtk_cell_view_set_model (GtkCellView *cell_view,
28151 GtkTreeModel *model);
28152 void gtk_cell_view_set_displayed_row (GtkCellView *cell_view,
28153 GtkTreePath *path);
28154 GtkTreePath *gtk_cell_view_get_displayed_row (GtkCellView *cell_view);
28155 gboolean gtk_cell_view_get_size_of_row (GtkCellView *cell_view,
28156 GtkTreePath *path,
28157 GtkRequisition *requisition);
28158
28159 void gtk_cell_view_set_background_color (GtkCellView *cell_view,
28160 const GdkColor *color);
28161 GList *gtk_cell_view_get_cell_renderers (GtkCellView *cell_view);
28162 # 57 "/usr/include/gtk-2.0/gtk/gtk.h" 2
28163
28164 # 1 "/usr/include/gtk-2.0/gtk/gtkcheckbutton.h" 1
28165 # 32 "/usr/include/gtk-2.0/gtk/gtkcheckbutton.h"
28166
28167 # 1 "/usr/include/gtk-2.0/gtk/gtktogglebutton.h" 1
28168 # 34 "/usr/include/gtk-2.0/gtk/gtktogglebutton.h"
28169 # 44 "/usr/include/gtk-2.0/gtk/gtktogglebutton.h"
28170 typedef struct _GtkToggleButton GtkToggleButton;
28171 typedef struct _GtkToggleButtonClass GtkToggleButtonClass;
28172
28173 struct _GtkToggleButton
28174 {
28175 GtkButton button;
28176
28177 guint active : 1;
28178 guint draw_indicator : 1;
28179 guint inconsistent : 1;
28180 };
28181
28182 struct _GtkToggleButtonClass
28183 {
28184 GtkButtonClass parent_class;
28185
28186 void (* toggled) (GtkToggleButton *toggle_button);
28187
28188
28189 void (*_gtk_reserved1) (void);
28190 void (*_gtk_reserved2) (void);
28191 void (*_gtk_reserved3) (void);
28192 void (*_gtk_reserved4) (void);
28193 };
28194
28195
28196 GType gtk_toggle_button_get_type (void) __attribute__((__const__));
28197
28198 GtkWidget* gtk_toggle_button_new (void);
28199 GtkWidget* gtk_toggle_button_new_with_label (const gchar *label);
28200 GtkWidget* gtk_toggle_button_new_with_mnemonic (const gchar *label);
28201 void gtk_toggle_button_set_mode (GtkToggleButton *toggle_button,
28202 gboolean draw_indicator);
28203 gboolean gtk_toggle_button_get_mode (GtkToggleButton *toggle_button);
28204 void gtk_toggle_button_set_active (GtkToggleButton *toggle_button,
28205 gboolean is_active);
28206 gboolean gtk_toggle_button_get_active (GtkToggleButton *toggle_button);
28207 void gtk_toggle_button_toggled (GtkToggleButton *toggle_button);
28208 void gtk_toggle_button_set_inconsistent (GtkToggleButton *toggle_button,
28209 gboolean setting);
28210 gboolean gtk_toggle_button_get_inconsistent (GtkToggleButton *toggle_button);
28211 # 33 "/usr/include/gtk-2.0/gtk/gtkcheckbutton.h" 2
28212 # 45 "/usr/include/gtk-2.0/gtk/gtkcheckbutton.h"
28213 typedef struct _GtkCheckButton GtkCheckButton;
28214 typedef struct _GtkCheckButtonClass GtkCheckButtonClass;
28215
28216 struct _GtkCheckButton
28217 {
28218 GtkToggleButton toggle_button;
28219 };
28220
28221 struct _GtkCheckButtonClass
28222 {
28223 GtkToggleButtonClass parent_class;
28224
28225 void (* draw_indicator) (GtkCheckButton *check_button,
28226 GdkRectangle *area);
28227
28228
28229 void (*_gtk_reserved1) (void);
28230 void (*_gtk_reserved2) (void);
28231 void (*_gtk_reserved3) (void);
28232 void (*_gtk_reserved4) (void);
28233 };
28234
28235
28236 GType gtk_check_button_get_type (void) __attribute__((__const__));
28237 GtkWidget* gtk_check_button_new (void);
28238 GtkWidget* gtk_check_button_new_with_label (const gchar *label);
28239 GtkWidget* gtk_check_button_new_with_mnemonic (const gchar *label);
28240
28241 void _gtk_check_button_get_props (GtkCheckButton *check_button,
28242 gint *indicator_size,
28243 gint *indicator_spacing);
28244 # 58 "/usr/include/gtk-2.0/gtk/gtk.h" 2
28245
28246 # 1 "/usr/include/gtk-2.0/gtk/gtkcheckmenuitem.h" 1
28247 # 32 "/usr/include/gtk-2.0/gtk/gtkcheckmenuitem.h"
28248
28249 # 1 "/usr/include/gtk-2.0/gtk/gtkmenuitem.h" 1
28250 # 32 "/usr/include/gtk-2.0/gtk/gtkmenuitem.h"
28251
28252 # 1 "/usr/include/gtk-2.0/gtk/gtkitem.h" 1
28253 # 35 "/usr/include/gtk-2.0/gtk/gtkitem.h"
28254 # 45 "/usr/include/gtk-2.0/gtk/gtkitem.h"
28255 typedef struct _GtkItem GtkItem;
28256 typedef struct _GtkItemClass GtkItemClass;
28257
28258 struct _GtkItem
28259 {
28260 GtkBin bin;
28261 };
28262
28263 struct _GtkItemClass
28264 {
28265 GtkBinClass parent_class;
28266
28267 void (* select) (GtkItem *item);
28268 void (* deselect) (GtkItem *item);
28269 void (* toggle) (GtkItem *item);
28270
28271
28272 void (*_gtk_reserved1) (void);
28273 void (*_gtk_reserved2) (void);
28274 void (*_gtk_reserved3) (void);
28275 void (*_gtk_reserved4) (void);
28276 };
28277
28278
28279 GType gtk_item_get_type (void) __attribute__((__const__));
28280 void gtk_item_select (GtkItem *item);
28281 void gtk_item_deselect (GtkItem *item);
28282 void gtk_item_toggle (GtkItem *item);
28283 # 33 "/usr/include/gtk-2.0/gtk/gtkmenuitem.h" 2
28284 # 45 "/usr/include/gtk-2.0/gtk/gtkmenuitem.h"
28285 typedef struct _GtkMenuItem GtkMenuItem;
28286 typedef struct _GtkMenuItemClass GtkMenuItemClass;
28287
28288 struct _GtkMenuItem
28289 {
28290 GtkItem item;
28291
28292 GtkWidget *submenu;
28293 GdkWindow *event_window;
28294
28295 guint16 toggle_size;
28296 guint16 accelerator_width;
28297 gchar *accel_path;
28298
28299 guint show_submenu_indicator : 1;
28300 guint submenu_placement : 1;
28301 guint submenu_direction : 1;
28302 guint right_justify: 1;
28303 guint timer_from_keypress : 1;
28304 guint timer;
28305 };
28306
28307 struct _GtkMenuItemClass
28308 {
28309 GtkItemClass parent_class;
28310
28311
28312
28313
28314
28315
28316
28317 guint hide_on_activate : 1;
28318
28319 void (* activate) (GtkMenuItem *menu_item);
28320 void (* activate_item) (GtkMenuItem *menu_item);
28321 void (* toggle_size_request) (GtkMenuItem *menu_item,
28322 gint *requisition);
28323 void (* toggle_size_allocate) (GtkMenuItem *menu_item,
28324 gint allocation);
28325
28326
28327 void (*_gtk_reserved1) (void);
28328 void (*_gtk_reserved2) (void);
28329 void (*_gtk_reserved3) (void);
28330 void (*_gtk_reserved4) (void);
28331 };
28332
28333
28334 GType gtk_menu_item_get_type (void) __attribute__((__const__));
28335 GtkWidget* gtk_menu_item_new (void);
28336 GtkWidget* gtk_menu_item_new_with_label (const gchar *label);
28337 GtkWidget* gtk_menu_item_new_with_mnemonic (const gchar *label);
28338 void gtk_menu_item_set_submenu (GtkMenuItem *menu_item,
28339 GtkWidget *submenu);
28340 GtkWidget* gtk_menu_item_get_submenu (GtkMenuItem *menu_item);
28341 void gtk_menu_item_remove_submenu (GtkMenuItem *menu_item);
28342 void gtk_menu_item_select (GtkMenuItem *menu_item);
28343 void gtk_menu_item_deselect (GtkMenuItem *menu_item);
28344 void gtk_menu_item_activate (GtkMenuItem *menu_item);
28345 void gtk_menu_item_toggle_size_request (GtkMenuItem *menu_item,
28346 gint *requisition);
28347 void gtk_menu_item_toggle_size_allocate (GtkMenuItem *menu_item,
28348 gint allocation);
28349 void gtk_menu_item_set_right_justified (GtkMenuItem *menu_item,
28350 gboolean right_justified);
28351 gboolean gtk_menu_item_get_right_justified (GtkMenuItem *menu_item);
28352 void gtk_menu_item_set_accel_path (GtkMenuItem *menu_item,
28353 const gchar *accel_path);
28354
28355
28356 void _gtk_menu_item_refresh_accel_path (GtkMenuItem *menu_item,
28357 const gchar *prefix,
28358 GtkAccelGroup *accel_group,
28359 gboolean group_changed);
28360 gboolean _gtk_menu_item_is_selectable (GtkWidget *menu_item);
28361 void _gtk_menu_item_popup_submenu (GtkWidget *menu_item);
28362 # 33 "/usr/include/gtk-2.0/gtk/gtkcheckmenuitem.h" 2
28363 # 45 "/usr/include/gtk-2.0/gtk/gtkcheckmenuitem.h"
28364 typedef struct _GtkCheckMenuItem GtkCheckMenuItem;
28365 typedef struct _GtkCheckMenuItemClass GtkCheckMenuItemClass;
28366
28367 struct _GtkCheckMenuItem
28368 {
28369 GtkMenuItem menu_item;
28370
28371 guint active : 1;
28372 guint always_show_toggle : 1;
28373 guint inconsistent : 1;
28374 guint draw_as_radio : 1;
28375 };
28376
28377 struct _GtkCheckMenuItemClass
28378 {
28379 GtkMenuItemClass parent_class;
28380
28381 void (* toggled) (GtkCheckMenuItem *check_menu_item);
28382 void (* draw_indicator) (GtkCheckMenuItem *check_menu_item,
28383 GdkRectangle *area);
28384
28385
28386 void (*_gtk_reserved1) (void);
28387 void (*_gtk_reserved2) (void);
28388 void (*_gtk_reserved3) (void);
28389 void (*_gtk_reserved4) (void);
28390 };
28391
28392
28393 GType gtk_check_menu_item_get_type (void) __attribute__((__const__));
28394
28395 GtkWidget* gtk_check_menu_item_new (void);
28396 GtkWidget* gtk_check_menu_item_new_with_label (const gchar *label);
28397 GtkWidget* gtk_check_menu_item_new_with_mnemonic (const gchar *label);
28398 void gtk_check_menu_item_set_active (GtkCheckMenuItem *check_menu_item,
28399 gboolean is_active);
28400 gboolean gtk_check_menu_item_get_active (GtkCheckMenuItem *check_menu_item);
28401 void gtk_check_menu_item_toggled (GtkCheckMenuItem *check_menu_item);
28402 void gtk_check_menu_item_set_inconsistent (GtkCheckMenuItem *check_menu_item,
28403 gboolean setting);
28404 gboolean gtk_check_menu_item_get_inconsistent (GtkCheckMenuItem *check_menu_item);
28405 void gtk_check_menu_item_set_draw_as_radio (GtkCheckMenuItem *check_menu_item,
28406 gboolean draw_as_radio);
28407 gboolean gtk_check_menu_item_get_draw_as_radio (GtkCheckMenuItem *check_menu_item);
28408
28409
28410
28411 void gtk_check_menu_item_set_show_toggle (GtkCheckMenuItem *menu_item,
28412 gboolean always);
28413 # 59 "/usr/include/gtk-2.0/gtk/gtk.h" 2
28414
28415 # 1 "/usr/include/gtk-2.0/gtk/gtkclipboard.h" 1
28416 # 25 "/usr/include/gtk-2.0/gtk/gtkclipboard.h"
28417
28418 # 1 "/usr/include/gtk-2.0/gtk/gtkselection.h" 1
28419 # 35 "/usr/include/gtk-2.0/gtk/gtkselection.h"
28420
28421
28422 typedef struct _GtkTargetList GtkTargetList;
28423 typedef struct _GtkTargetEntry GtkTargetEntry;
28424 # 53 "/usr/include/gtk-2.0/gtk/gtkselection.h"
28425 struct _GtkSelectionData
28426 {
28427 GdkAtom selection;
28428 GdkAtom target;
28429 GdkAtom type;
28430 gint format;
28431 guchar *data;
28432 gint length;
28433 GdkDisplay *display;
28434 };
28435
28436 struct _GtkTargetEntry {
28437 gchar *target;
28438 guint flags;
28439 guint info;
28440 };
28441
28442
28443
28444
28445
28446 typedef struct _GtkTargetPair GtkTargetPair;
28447
28448
28449 struct _GtkTargetList {
28450 GList *list;
28451 guint ref_count;
28452 };
28453
28454 struct _GtkTargetPair {
28455 GdkAtom target;
28456 guint flags;
28457 guint info;
28458 };
28459
28460 GtkTargetList *gtk_target_list_new (const GtkTargetEntry *targets,
28461 guint ntargets);
28462 void gtk_target_list_ref (GtkTargetList *list);
28463 void gtk_target_list_unref (GtkTargetList *list);
28464 void gtk_target_list_add (GtkTargetList *list,
28465 GdkAtom target,
28466 guint flags,
28467 guint info);
28468 void gtk_target_list_add_text_targets (GtkTargetList *list,
28469 guint info);
28470 void gtk_target_list_add_image_targets (GtkTargetList *list,
28471 guint info,
28472 gboolean writable);
28473 void gtk_target_list_add_uri_targets (GtkTargetList *list,
28474 guint info);
28475 void gtk_target_list_add_table (GtkTargetList *list,
28476 const GtkTargetEntry *targets,
28477 guint ntargets);
28478 void gtk_target_list_remove (GtkTargetList *list,
28479 GdkAtom target);
28480 gboolean gtk_target_list_find (GtkTargetList *list,
28481 GdkAtom target,
28482 guint *info);
28483
28484
28485
28486 gboolean gtk_selection_owner_set (GtkWidget *widget,
28487 GdkAtom selection,
28488 guint32 time_);
28489 gboolean gtk_selection_owner_set_for_display (GdkDisplay *display,
28490 GtkWidget *widget,
28491 GdkAtom selection,
28492 guint32 time_);
28493
28494 void gtk_selection_add_target (GtkWidget *widget,
28495 GdkAtom selection,
28496 GdkAtom target,
28497 guint info);
28498 void gtk_selection_add_targets (GtkWidget *widget,
28499 GdkAtom selection,
28500 const GtkTargetEntry *targets,
28501 guint ntargets);
28502 void gtk_selection_clear_targets (GtkWidget *widget,
28503 GdkAtom selection);
28504 gboolean gtk_selection_convert (GtkWidget *widget,
28505 GdkAtom selection,
28506 GdkAtom target,
28507 guint32 time_);
28508 void gtk_selection_data_set (GtkSelectionData *selection_data,
28509 GdkAtom type,
28510 gint format,
28511 const guchar *data,
28512 gint length);
28513 gboolean gtk_selection_data_set_text (GtkSelectionData *selection_data,
28514 const gchar *str,
28515 gint len);
28516 guchar * gtk_selection_data_get_text (GtkSelectionData *selection_data);
28517 gboolean gtk_selection_data_set_pixbuf (GtkSelectionData *selection_data,
28518 GdkPixbuf *pixbuf);
28519 GdkPixbuf *gtk_selection_data_get_pixbuf (GtkSelectionData *selection_data);
28520 gboolean gtk_selection_data_set_uris (GtkSelectionData *selection_data,
28521 gchar **uris);
28522 gchar **gtk_selection_data_get_uris (GtkSelectionData *selection_data);
28523
28524 gboolean gtk_selection_data_get_targets (GtkSelectionData *selection_data,
28525 GdkAtom **targets,
28526 gint *n_atoms);
28527 gboolean gtk_selection_data_targets_include_text (GtkSelectionData *selection_data);
28528 gboolean gtk_selection_data_targets_include_image (GtkSelectionData *selection_data,
28529 gboolean writable);
28530
28531
28532
28533 void gtk_selection_remove_all (GtkWidget *widget);
28534
28535
28536
28537 gboolean gtk_selection_clear (GtkWidget *widget,
28538 GdkEventSelection *event);
28539
28540 gboolean _gtk_selection_request (GtkWidget *widget,
28541 GdkEventSelection *event);
28542 gboolean _gtk_selection_incr_event (GdkWindow *window,
28543 GdkEventProperty *event);
28544 gboolean _gtk_selection_notify (GtkWidget *widget,
28545 GdkEventSelection *event);
28546 gboolean _gtk_selection_property_notify (GtkWidget *widget,
28547 GdkEventProperty *event);
28548
28549 GType gtk_selection_data_get_type (void) __attribute__((__const__));
28550 GtkSelectionData *gtk_selection_data_copy (GtkSelectionData *data);
28551 void gtk_selection_data_free (GtkSelectionData *data);
28552 # 26 "/usr/include/gtk-2.0/gtk/gtkclipboard.h" 2
28553
28554
28555
28556
28557
28558
28559
28560 typedef void (* GtkClipboardReceivedFunc) (GtkClipboard *clipboard,
28561 GtkSelectionData *selection_data,
28562 gpointer data);
28563 typedef void (* GtkClipboardTextReceivedFunc) (GtkClipboard *clipboard,
28564 const gchar *text,
28565 gpointer data);
28566 typedef void (* GtkClipboardImageReceivedFunc) (GtkClipboard *clipboard,
28567 GdkPixbuf *pixbuf,
28568 gpointer data);
28569 typedef void (* GtkClipboardTargetsReceivedFunc) (GtkClipboard *clipboard,
28570 GdkAtom *atoms,
28571 gint n_atoms,
28572 gpointer data);
28573
28574
28575
28576
28577
28578 typedef void (* GtkClipboardGetFunc) (GtkClipboard *clipboard,
28579 GtkSelectionData *selection_data,
28580 guint info,
28581 gpointer user_data_or_owner);
28582 typedef void (* GtkClipboardClearFunc) (GtkClipboard *clipboard,
28583 gpointer user_data_or_owner);
28584
28585 GType gtk_clipboard_get_type (void) __attribute__((__const__));
28586
28587 GtkClipboard *gtk_clipboard_get_for_display (GdkDisplay *display,
28588 GdkAtom selection);
28589
28590
28591
28592
28593 GdkDisplay *gtk_clipboard_get_display (GtkClipboard *clipboard);
28594
28595
28596 gboolean gtk_clipboard_set_with_data (GtkClipboard *clipboard,
28597 const GtkTargetEntry *targets,
28598 guint n_targets,
28599 GtkClipboardGetFunc get_func,
28600 GtkClipboardClearFunc clear_func,
28601 gpointer user_data);
28602 gboolean gtk_clipboard_set_with_owner (GtkClipboard *clipboard,
28603 const GtkTargetEntry *targets,
28604 guint n_targets,
28605 GtkClipboardGetFunc get_func,
28606 GtkClipboardClearFunc clear_func,
28607 GObject *owner);
28608 GObject *gtk_clipboard_get_owner (GtkClipboard *clipboard);
28609 void gtk_clipboard_clear (GtkClipboard *clipboard);
28610 void gtk_clipboard_set_text (GtkClipboard *clipboard,
28611 const gchar *text,
28612 gint len);
28613 void gtk_clipboard_set_image (GtkClipboard *clipboard,
28614 GdkPixbuf *pixbuf);
28615
28616 void gtk_clipboard_request_contents (GtkClipboard *clipboard,
28617 GdkAtom target,
28618 GtkClipboardReceivedFunc callback,
28619 gpointer user_data);
28620 void gtk_clipboard_request_text (GtkClipboard *clipboard,
28621 GtkClipboardTextReceivedFunc callback,
28622 gpointer user_data);
28623 void gtk_clipboard_request_image (GtkClipboard *clipboard,
28624 GtkClipboardImageReceivedFunc callback,
28625 gpointer user_data);
28626 void gtk_clipboard_request_targets (GtkClipboard *clipboard,
28627 GtkClipboardTargetsReceivedFunc callback,
28628 gpointer user_data);
28629
28630 GtkSelectionData *gtk_clipboard_wait_for_contents (GtkClipboard *clipboard,
28631 GdkAtom target);
28632 gchar * gtk_clipboard_wait_for_text (GtkClipboard *clipboard);
28633 GdkPixbuf * gtk_clipboard_wait_for_image (GtkClipboard *clipboard);
28634 gboolean gtk_clipboard_wait_for_targets (GtkClipboard *clipboard,
28635 GdkAtom **targets,
28636 gint *n_targets);
28637
28638 gboolean gtk_clipboard_wait_is_text_available (GtkClipboard *clipboard);
28639 gboolean gtk_clipboard_wait_is_image_available (GtkClipboard *clipboard);
28640 gboolean gtk_clipboard_wait_is_target_available (GtkClipboard *clipboard,
28641 GdkAtom target);
28642
28643
28644 void gtk_clipboard_set_can_store (GtkClipboard *clipboard,
28645 const GtkTargetEntry *targets,
28646 gint n_targets);
28647
28648 void gtk_clipboard_store (GtkClipboard *clipboard);
28649
28650
28651 void _gtk_clipboard_handle_event (GdkEventOwnerChange *event);
28652
28653 void _gtk_clipboard_store_all (void);
28654 # 60 "/usr/include/gtk-2.0/gtk/gtk.h" 2
28655
28656 # 1 "/usr/include/gtk-2.0/gtk/gtkclist.h" 1
28657 # 38 "/usr/include/gtk-2.0/gtk/gtkclist.h"
28658
28659 # 1 "/usr/include/gtk-2.0/gtk/gtkhscrollbar.h" 1
28660 # 32 "/usr/include/gtk-2.0/gtk/gtkhscrollbar.h"
28661
28662 # 1 "/usr/include/gtk-2.0/gtk/gtkscrollbar.h" 1
28663 # 32 "/usr/include/gtk-2.0/gtk/gtkscrollbar.h"
28664
28665 # 1 "/usr/include/gtk-2.0/gtk/gtkrange.h" 1
28666 # 36 "/usr/include/gtk-2.0/gtk/gtkrange.h"
28667 # 47 "/usr/include/gtk-2.0/gtk/gtkrange.h"
28668 typedef struct _GtkRangeLayout GtkRangeLayout;
28669 typedef struct _GtkRangeStepTimer GtkRangeStepTimer;
28670
28671 typedef struct _GtkRange GtkRange;
28672 typedef struct _GtkRangeClass GtkRangeClass;
28673
28674 struct _GtkRange
28675 {
28676 GtkWidget widget;
28677
28678 GtkAdjustment *adjustment;
28679 GtkUpdateType update_policy;
28680 guint inverted : 1;
28681
28682
28683
28684 guint flippable : 1;
28685
28686
28687
28688
28689
28690 guint has_stepper_a : 1;
28691 guint has_stepper_b : 1;
28692 guint has_stepper_c : 1;
28693 guint has_stepper_d : 1;
28694
28695 guint need_recalc : 1;
28696
28697 guint slider_size_fixed : 1;
28698
28699 gint min_slider_size;
28700
28701 GtkOrientation orientation;
28702
28703
28704 GdkRectangle range_rect;
28705
28706 gint slider_start, slider_end;
28707
28708
28709 gint round_digits;
28710
28711
28712 guint trough_click_forward : 1;
28713 guint update_pending : 1;
28714 GtkRangeLayout *layout;
28715 GtkRangeStepTimer *timer;
28716 gint slide_initial_slider_position;
28717 gint slide_initial_coordinate;
28718 guint update_timeout_id;
28719 GdkWindow *event_window;
28720 };
28721
28722 struct _GtkRangeClass
28723 {
28724 GtkWidgetClass parent_class;
28725
28726
28727 gchar *slider_detail;
28728 gchar *stepper_detail;
28729
28730 void (* value_changed) (GtkRange *range);
28731 void (* adjust_bounds) (GtkRange *range,
28732 gdouble new_value);
28733
28734
28735 void (* move_slider) (GtkRange *range,
28736 GtkScrollType scroll);
28737
28738
28739 void (* get_range_border) (GtkRange *range,
28740 GtkBorder *border_);
28741
28742 gboolean (* change_value) (GtkRange *range,
28743 GtkScrollType scroll,
28744 gdouble new_value);
28745
28746
28747 void (*_gtk_reserved1) (void);
28748 void (*_gtk_reserved2) (void);
28749 void (*_gtk_reserved3) (void);
28750 };
28751
28752
28753 GType gtk_range_get_type (void) __attribute__((__const__));
28754
28755 void gtk_range_set_update_policy (GtkRange *range,
28756 GtkUpdateType policy);
28757 GtkUpdateType gtk_range_get_update_policy (GtkRange *range);
28758 void gtk_range_set_adjustment (GtkRange *range,
28759 GtkAdjustment *adjustment);
28760 GtkAdjustment* gtk_range_get_adjustment (GtkRange *range);
28761 void gtk_range_set_inverted (GtkRange *range,
28762 gboolean setting);
28763 gboolean gtk_range_get_inverted (GtkRange *range);
28764 void gtk_range_set_increments (GtkRange *range,
28765 gdouble step,
28766 gdouble page);
28767 void gtk_range_set_range (GtkRange *range,
28768 gdouble min,
28769 gdouble max);
28770 void gtk_range_set_value (GtkRange *range,
28771 gdouble value);
28772 gdouble gtk_range_get_value (GtkRange *range);
28773
28774 gdouble _gtk_range_get_wheel_delta (GtkRange *range,
28775 GdkScrollDirection direction);
28776 # 33 "/usr/include/gtk-2.0/gtk/gtkscrollbar.h" 2
28777 # 45 "/usr/include/gtk-2.0/gtk/gtkscrollbar.h"
28778 typedef struct _GtkScrollbar GtkScrollbar;
28779 typedef struct _GtkScrollbarClass GtkScrollbarClass;
28780
28781 struct _GtkScrollbar
28782 {
28783 GtkRange range;
28784 };
28785
28786 struct _GtkScrollbarClass
28787 {
28788 GtkRangeClass parent_class;
28789
28790
28791 void (*_gtk_reserved1) (void);
28792 void (*_gtk_reserved2) (void);
28793 void (*_gtk_reserved3) (void);
28794 void (*_gtk_reserved4) (void);
28795 };
28796
28797
28798 GType gtk_scrollbar_get_type (void) __attribute__((__const__));
28799 # 33 "/usr/include/gtk-2.0/gtk/gtkhscrollbar.h" 2
28800 # 46 "/usr/include/gtk-2.0/gtk/gtkhscrollbar.h"
28801 typedef struct _GtkHScrollbar GtkHScrollbar;
28802 typedef struct _GtkHScrollbarClass GtkHScrollbarClass;
28803
28804 struct _GtkHScrollbar
28805 {
28806 GtkScrollbar scrollbar;
28807 };
28808
28809 struct _GtkHScrollbarClass
28810 {
28811 GtkScrollbarClass parent_class;
28812 };
28813
28814
28815 GType gtk_hscrollbar_get_type (void) __attribute__((__const__));
28816 GtkWidget* gtk_hscrollbar_new (GtkAdjustment *adjustment);
28817 # 39 "/usr/include/gtk-2.0/gtk/gtkclist.h" 2
28818
28819 # 1 "/usr/include/gtk-2.0/gtk/gtkvscrollbar.h" 1
28820 # 35 "/usr/include/gtk-2.0/gtk/gtkvscrollbar.h"
28821 # 46 "/usr/include/gtk-2.0/gtk/gtkvscrollbar.h"
28822 typedef struct _GtkVScrollbar GtkVScrollbar;
28823 typedef struct _GtkVScrollbarClass GtkVScrollbarClass;
28824
28825 struct _GtkVScrollbar
28826 {
28827 GtkScrollbar scrollbar;
28828 };
28829
28830 struct _GtkVScrollbarClass
28831 {
28832 GtkScrollbarClass parent_class;
28833 };
28834
28835
28836 GType gtk_vscrollbar_get_type (void) __attribute__((__const__));
28837 GtkWidget* gtk_vscrollbar_new (GtkAdjustment *adjustment);
28838 # 40 "/usr/include/gtk-2.0/gtk/gtkclist.h" 2
28839
28840
28841
28842
28843
28844
28845
28846 enum {
28847 GTK_CLIST_IN_DRAG = 1 << 0,
28848 GTK_CLIST_ROW_HEIGHT_SET = 1 << 1,
28849 GTK_CLIST_SHOW_TITLES = 1 << 2,
28850
28851 GTK_CLIST_ADD_MODE = 1 << 4,
28852 GTK_CLIST_AUTO_SORT = 1 << 5,
28853 GTK_CLIST_AUTO_RESIZE_BLOCKED = 1 << 6,
28854 GTK_CLIST_REORDERABLE = 1 << 7,
28855 GTK_CLIST_USE_DRAG_ICONS = 1 << 8,
28856 GTK_CLIST_DRAW_DRAG_LINE = 1 << 9,
28857 GTK_CLIST_DRAW_DRAG_RECT = 1 << 10
28858 };
28859
28860
28861 typedef enum
28862 {
28863 GTK_CELL_EMPTY,
28864 GTK_CELL_TEXT,
28865 GTK_CELL_PIXMAP,
28866 GTK_CELL_PIXTEXT,
28867 GTK_CELL_WIDGET
28868 } GtkCellType;
28869
28870 typedef enum
28871 {
28872 GTK_CLIST_DRAG_NONE,
28873 GTK_CLIST_DRAG_BEFORE,
28874 GTK_CLIST_DRAG_INTO,
28875 GTK_CLIST_DRAG_AFTER
28876 } GtkCListDragPos;
28877
28878 typedef enum
28879 {
28880 GTK_BUTTON_IGNORED = 0,
28881 GTK_BUTTON_SELECTS = 1 << 0,
28882 GTK_BUTTON_DRAGS = 1 << 1,
28883 GTK_BUTTON_EXPANDS = 1 << 2
28884 } GtkButtonAction;
28885 # 118 "/usr/include/gtk-2.0/gtk/gtkclist.h"
28886 typedef struct _GtkCList GtkCList;
28887 typedef struct _GtkCListClass GtkCListClass;
28888 typedef struct _GtkCListColumn GtkCListColumn;
28889 typedef struct _GtkCListRow GtkCListRow;
28890
28891 typedef struct _GtkCell GtkCell;
28892 typedef struct _GtkCellText GtkCellText;
28893 typedef struct _GtkCellPixmap GtkCellPixmap;
28894 typedef struct _GtkCellPixText GtkCellPixText;
28895 typedef struct _GtkCellWidget GtkCellWidget;
28896
28897 typedef gint (*GtkCListCompareFunc) (GtkCList *clist,
28898 gconstpointer ptr1,
28899 gconstpointer ptr2);
28900
28901 typedef struct _GtkCListCellInfo GtkCListCellInfo;
28902 typedef struct _GtkCListDestInfo GtkCListDestInfo;
28903
28904 struct _GtkCListCellInfo
28905 {
28906 gint row;
28907 gint column;
28908 };
28909
28910 struct _GtkCListDestInfo
28911 {
28912 GtkCListCellInfo cell;
28913 GtkCListDragPos insert_pos;
28914 };
28915
28916 struct _GtkCList
28917 {
28918 GtkContainer container;
28919
28920 guint16 flags;
28921
28922
28923 gpointer row_mem_chunk;
28924 gpointer cell_mem_chunk;
28925
28926 guint freeze_count;
28927
28928
28929
28930 GdkRectangle internal_allocation;
28931
28932
28933 gint rows;
28934 gint row_height;
28935 GList *row_list;
28936 GList *row_list_end;
28937
28938
28939 gint columns;
28940 GdkRectangle column_title_area;
28941 GdkWindow *title_window;
28942
28943
28944 GtkCListColumn *column;
28945
28946
28947
28948 GdkWindow *clist_window;
28949 gint clist_window_width;
28950 gint clist_window_height;
28951
28952
28953 gint hoffset;
28954 gint voffset;
28955
28956
28957 GtkShadowType shadow_type;
28958
28959
28960 GtkSelectionMode selection_mode;
28961
28962
28963 GList *selection;
28964 GList *selection_end;
28965
28966 GList *undo_selection;
28967 GList *undo_unselection;
28968 gint undo_anchor;
28969
28970
28971 guint8 button_actions[5];
28972
28973 guint8 drag_button;
28974
28975
28976 GtkCListCellInfo click_cell;
28977
28978
28979 GtkAdjustment *hadjustment;
28980 GtkAdjustment *vadjustment;
28981
28982
28983 GdkGC *xor_gc;
28984
28985
28986 GdkGC *fg_gc;
28987 GdkGC *bg_gc;
28988
28989
28990 GdkCursor *cursor_drag;
28991
28992
28993 gint x_drag;
28994
28995
28996 gint focus_row;
28997
28998 gint focus_header_column;
28999
29000
29001 gint anchor;
29002 GtkStateType anchor_state;
29003 gint drag_pos;
29004 gint htimer;
29005 gint vtimer;
29006
29007 GtkSortType sort_type;
29008 GtkCListCompareFunc compare;
29009 gint sort_column;
29010
29011 gint drag_highlight_row;
29012 GtkCListDragPos drag_highlight_pos;
29013 };
29014
29015 struct _GtkCListClass
29016 {
29017 GtkContainerClass parent_class;
29018
29019 void (*set_scroll_adjustments) (GtkCList *clist,
29020 GtkAdjustment *hadjustment,
29021 GtkAdjustment *vadjustment);
29022 void (*refresh) (GtkCList *clist);
29023 void (*select_row) (GtkCList *clist,
29024 gint row,
29025 gint column,
29026 GdkEvent *event);
29027 void (*unselect_row) (GtkCList *clist,
29028 gint row,
29029 gint column,
29030 GdkEvent *event);
29031 void (*row_move) (GtkCList *clist,
29032 gint source_row,
29033 gint dest_row);
29034 void (*click_column) (GtkCList *clist,
29035 gint column);
29036 void (*resize_column) (GtkCList *clist,
29037 gint column,
29038 gint width);
29039 void (*toggle_focus_row) (GtkCList *clist);
29040 void (*select_all) (GtkCList *clist);
29041 void (*unselect_all) (GtkCList *clist);
29042 void (*undo_selection) (GtkCList *clist);
29043 void (*start_selection) (GtkCList *clist);
29044 void (*end_selection) (GtkCList *clist);
29045 void (*extend_selection) (GtkCList *clist,
29046 GtkScrollType scroll_type,
29047 gfloat position,
29048 gboolean auto_start_selection);
29049 void (*scroll_horizontal) (GtkCList *clist,
29050 GtkScrollType scroll_type,
29051 gfloat position);
29052 void (*scroll_vertical) (GtkCList *clist,
29053 GtkScrollType scroll_type,
29054 gfloat position);
29055 void (*toggle_add_mode) (GtkCList *clist);
29056 void (*abort_column_resize) (GtkCList *clist);
29057 void (*resync_selection) (GtkCList *clist,
29058 GdkEvent *event);
29059 GList* (*selection_find) (GtkCList *clist,
29060 gint row_number,
29061 GList *row_list_element);
29062 void (*draw_row) (GtkCList *clist,
29063 GdkRectangle *area,
29064 gint row,
29065 GtkCListRow *clist_row);
29066 void (*draw_drag_highlight) (GtkCList *clist,
29067 GtkCListRow *target_row,
29068 gint target_row_number,
29069 GtkCListDragPos drag_pos);
29070 void (*clear) (GtkCList *clist);
29071 void (*fake_unselect_all) (GtkCList *clist,
29072 gint row);
29073 void (*sort_list) (GtkCList *clist);
29074 gint (*insert_row) (GtkCList *clist,
29075 gint row,
29076 gchar *text[]);
29077 void (*remove_row) (GtkCList *clist,
29078 gint row);
29079 void (*set_cell_contents) (GtkCList *clist,
29080 GtkCListRow *clist_row,
29081 gint column,
29082 GtkCellType type,
29083 const gchar *text,
29084 guint8 spacing,
29085 GdkPixmap *pixmap,
29086 GdkBitmap *mask);
29087 void (*cell_size_request) (GtkCList *clist,
29088 GtkCListRow *clist_row,
29089 gint column,
29090 GtkRequisition *requisition);
29091
29092 };
29093
29094 struct _GtkCListColumn
29095 {
29096 gchar *title;
29097 GdkRectangle area;
29098
29099 GtkWidget *button;
29100 GdkWindow *window;
29101
29102 gint width;
29103 gint min_width;
29104 gint max_width;
29105 GtkJustification justification;
29106
29107 guint visible : 1;
29108 guint width_set : 1;
29109 guint resizeable : 1;
29110 guint auto_resize : 1;
29111 guint button_passive : 1;
29112 };
29113
29114 struct _GtkCListRow
29115 {
29116 GtkCell *cell;
29117 GtkStateType state;
29118
29119 GdkColor foreground;
29120 GdkColor background;
29121
29122 GtkStyle *style;
29123
29124 gpointer data;
29125 GtkDestroyNotify destroy;
29126
29127 guint fg_set : 1;
29128 guint bg_set : 1;
29129 guint selectable : 1;
29130 };
29131
29132
29133 struct _GtkCellText
29134 {
29135 GtkCellType type;
29136
29137 gint16 vertical;
29138 gint16 horizontal;
29139
29140 GtkStyle *style;
29141
29142 gchar *text;
29143 };
29144
29145 struct _GtkCellPixmap
29146 {
29147 GtkCellType type;
29148
29149 gint16 vertical;
29150 gint16 horizontal;
29151
29152 GtkStyle *style;
29153
29154 GdkPixmap *pixmap;
29155 GdkBitmap *mask;
29156 };
29157
29158 struct _GtkCellPixText
29159 {
29160 GtkCellType type;
29161
29162 gint16 vertical;
29163 gint16 horizontal;
29164
29165 GtkStyle *style;
29166
29167 gchar *text;
29168 guint8 spacing;
29169 GdkPixmap *pixmap;
29170 GdkBitmap *mask;
29171 };
29172
29173 struct _GtkCellWidget
29174 {
29175 GtkCellType type;
29176
29177 gint16 vertical;
29178 gint16 horizontal;
29179
29180 GtkStyle *style;
29181
29182 GtkWidget *widget;
29183 };
29184
29185 struct _GtkCell
29186 {
29187 GtkCellType type;
29188
29189 gint16 vertical;
29190 gint16 horizontal;
29191
29192 GtkStyle *style;
29193
29194 union {
29195 gchar *text;
29196
29197 struct {
29198 GdkPixmap *pixmap;
29199 GdkBitmap *mask;
29200 } pm;
29201
29202 struct {
29203 gchar *text;
29204 guint8 spacing;
29205 GdkPixmap *pixmap;
29206 GdkBitmap *mask;
29207 } pt;
29208
29209 GtkWidget *widget;
29210 } u;
29211 };
29212
29213 GtkType gtk_clist_get_type (void) __attribute__((__const__));
29214
29215
29216 GtkWidget* gtk_clist_new (gint columns);
29217 GtkWidget* gtk_clist_new_with_titles (gint columns,
29218 gchar *titles[]);
29219
29220
29221 void gtk_clist_set_hadjustment (GtkCList *clist,
29222 GtkAdjustment *adjustment);
29223 void gtk_clist_set_vadjustment (GtkCList *clist,
29224 GtkAdjustment *adjustment);
29225
29226
29227 GtkAdjustment* gtk_clist_get_hadjustment (GtkCList *clist);
29228 GtkAdjustment* gtk_clist_get_vadjustment (GtkCList *clist);
29229
29230
29231 void gtk_clist_set_shadow_type (GtkCList *clist,
29232 GtkShadowType type);
29233
29234
29235 void gtk_clist_set_selection_mode (GtkCList *clist,
29236 GtkSelectionMode mode);
29237
29238
29239 void gtk_clist_set_reorderable (GtkCList *clist,
29240 gboolean reorderable);
29241 void gtk_clist_set_use_drag_icons (GtkCList *clist,
29242 gboolean use_icons);
29243 void gtk_clist_set_button_actions (GtkCList *clist,
29244 guint button,
29245 guint8 button_actions);
29246
29247
29248
29249
29250
29251 void gtk_clist_freeze (GtkCList *clist);
29252 void gtk_clist_thaw (GtkCList *clist);
29253
29254
29255 void gtk_clist_column_titles_show (GtkCList *clist);
29256 void gtk_clist_column_titles_hide (GtkCList *clist);
29257
29258
29259
29260
29261
29262 void gtk_clist_column_title_active (GtkCList *clist,
29263 gint column);
29264 void gtk_clist_column_title_passive (GtkCList *clist,
29265 gint column);
29266 void gtk_clist_column_titles_active (GtkCList *clist);
29267 void gtk_clist_column_titles_passive (GtkCList *clist);
29268
29269
29270 void gtk_clist_set_column_title (GtkCList *clist,
29271 gint column,
29272 const gchar *title);
29273
29274
29275 gchar * gtk_clist_get_column_title (GtkCList *clist,
29276 gint column);
29277
29278
29279 void gtk_clist_set_column_widget (GtkCList *clist,
29280 gint column,
29281 GtkWidget *widget);
29282
29283
29284 GtkWidget * gtk_clist_get_column_widget (GtkCList *clist,
29285 gint column);
29286
29287
29288 void gtk_clist_set_column_justification (GtkCList *clist,
29289 gint column,
29290 GtkJustification justification);
29291
29292
29293 void gtk_clist_set_column_visibility (GtkCList *clist,
29294 gint column,
29295 gboolean visible);
29296
29297
29298 void gtk_clist_set_column_resizeable (GtkCList *clist,
29299 gint column,
29300 gboolean resizeable);
29301
29302
29303 void gtk_clist_set_column_auto_resize (GtkCList *clist,
29304 gint column,
29305 gboolean auto_resize);
29306
29307 gint gtk_clist_columns_autosize (GtkCList *clist);
29308
29309
29310 gint gtk_clist_optimal_column_width (GtkCList *clist,
29311 gint column);
29312
29313
29314
29315
29316
29317 void gtk_clist_set_column_width (GtkCList *clist,
29318 gint column,
29319 gint width);
29320
29321
29322 void gtk_clist_set_column_min_width (GtkCList *clist,
29323 gint column,
29324 gint min_width);
29325 void gtk_clist_set_column_max_width (GtkCList *clist,
29326 gint column,
29327 gint max_width);
29328
29329
29330
29331
29332 void gtk_clist_set_row_height (GtkCList *clist,
29333 guint height);
29334
29335
29336
29337
29338
29339
29340 void gtk_clist_moveto (GtkCList *clist,
29341 gint row,
29342 gint column,
29343 gfloat row_align,
29344 gfloat col_align);
29345
29346
29347 GtkVisibility gtk_clist_row_is_visible (GtkCList *clist,
29348 gint row);
29349
29350
29351 GtkCellType gtk_clist_get_cell_type (GtkCList *clist,
29352 gint row,
29353 gint column);
29354
29355
29356 void gtk_clist_set_text (GtkCList *clist,
29357 gint row,
29358 gint column,
29359 const gchar *text);
29360
29361
29362
29363
29364 gint gtk_clist_get_text (GtkCList *clist,
29365 gint row,
29366 gint column,
29367 gchar **text);
29368
29369
29370 void gtk_clist_set_pixmap (GtkCList *clist,
29371 gint row,
29372 gint column,
29373 GdkPixmap *pixmap,
29374 GdkBitmap *mask);
29375
29376 gint gtk_clist_get_pixmap (GtkCList *clist,
29377 gint row,
29378 gint column,
29379 GdkPixmap **pixmap,
29380 GdkBitmap **mask);
29381
29382
29383 void gtk_clist_set_pixtext (GtkCList *clist,
29384 gint row,
29385 gint column,
29386 const gchar *text,
29387 guint8 spacing,
29388 GdkPixmap *pixmap,
29389 GdkBitmap *mask);
29390
29391 gint gtk_clist_get_pixtext (GtkCList *clist,
29392 gint row,
29393 gint column,
29394 gchar **text,
29395 guint8 *spacing,
29396 GdkPixmap **pixmap,
29397 GdkBitmap **mask);
29398
29399
29400
29401
29402 void gtk_clist_set_foreground (GtkCList *clist,
29403 gint row,
29404 const GdkColor *color);
29405
29406
29407
29408
29409 void gtk_clist_set_background (GtkCList *clist,
29410 gint row,
29411 const GdkColor *color);
29412
29413
29414 void gtk_clist_set_cell_style (GtkCList *clist,
29415 gint row,
29416 gint column,
29417 GtkStyle *style);
29418
29419 GtkStyle *gtk_clist_get_cell_style (GtkCList *clist,
29420 gint row,
29421 gint column);
29422
29423 void gtk_clist_set_row_style (GtkCList *clist,
29424 gint row,
29425 GtkStyle *style);
29426
29427 GtkStyle *gtk_clist_get_row_style (GtkCList *clist,
29428 gint row);
29429
29430
29431
29432
29433
29434 void gtk_clist_set_shift (GtkCList *clist,
29435 gint row,
29436 gint column,
29437 gint vertical,
29438 gint horizontal);
29439
29440
29441 void gtk_clist_set_selectable (GtkCList *clist,
29442 gint row,
29443 gboolean selectable);
29444 gboolean gtk_clist_get_selectable (GtkCList *clist,
29445 gint row);
29446
29447
29448
29449
29450 gint gtk_clist_prepend (GtkCList *clist,
29451 gchar *text[]);
29452 gint gtk_clist_append (GtkCList *clist,
29453 gchar *text[]);
29454
29455
29456
29457
29458 gint gtk_clist_insert (GtkCList *clist,
29459 gint row,
29460 gchar *text[]);
29461
29462
29463 void gtk_clist_remove (GtkCList *clist,
29464 gint row);
29465
29466
29467 void gtk_clist_set_row_data (GtkCList *clist,
29468 gint row,
29469 gpointer data);
29470
29471
29472 void gtk_clist_set_row_data_full (GtkCList *clist,
29473 gint row,
29474 gpointer data,
29475 GtkDestroyNotify destroy);
29476
29477
29478 gpointer gtk_clist_get_row_data (GtkCList *clist,
29479 gint row);
29480
29481
29482
29483
29484 gint gtk_clist_find_row_from_data (GtkCList *clist,
29485 gpointer data);
29486
29487
29488 void gtk_clist_select_row (GtkCList *clist,
29489 gint row,
29490 gint column);
29491
29492
29493 void gtk_clist_unselect_row (GtkCList *clist,
29494 gint row,
29495 gint column);
29496
29497
29498 void gtk_clist_undo_selection (GtkCList *clist);
29499
29500
29501
29502
29503 void gtk_clist_clear (GtkCList *clist);
29504
29505
29506
29507
29508
29509 gint gtk_clist_get_selection_info (GtkCList *clist,
29510 gint x,
29511 gint y,
29512 gint *row,
29513 gint *column);
29514
29515
29516 void gtk_clist_select_all (GtkCList *clist);
29517
29518
29519 void gtk_clist_unselect_all (GtkCList *clist);
29520
29521
29522 void gtk_clist_swap_rows (GtkCList *clist,
29523 gint row1,
29524 gint row2);
29525
29526
29527 void gtk_clist_row_move (GtkCList *clist,
29528 gint source_row,
29529 gint dest_row);
29530
29531
29532 void gtk_clist_set_compare_func (GtkCList *clist,
29533 GtkCListCompareFunc cmp_func);
29534
29535
29536 void gtk_clist_set_sort_column (GtkCList *clist,
29537 gint column);
29538
29539
29540 void gtk_clist_set_sort_type (GtkCList *clist,
29541 GtkSortType sort_type);
29542
29543
29544 void gtk_clist_sort (GtkCList *clist);
29545
29546
29547 void gtk_clist_set_auto_sort (GtkCList *clist,
29548 gboolean auto_sort);
29549
29550
29551
29552 PangoLayout *_gtk_clist_create_cell_layout (GtkCList *clist,
29553 GtkCListRow *clist_row,
29554 gint column);
29555 # 61 "/usr/include/gtk-2.0/gtk/gtk.h" 2
29556
29557 # 1 "/usr/include/gtk-2.0/gtk/gtkcolorbutton.h" 1
29558 # 37 "/usr/include/gtk-2.0/gtk/gtkcolorbutton.h"
29559 # 53 "/usr/include/gtk-2.0/gtk/gtkcolorbutton.h"
29560 typedef struct _GtkColorButton GtkColorButton;
29561 typedef struct _GtkColorButtonClass GtkColorButtonClass;
29562 typedef struct _GtkColorButtonPrivate GtkColorButtonPrivate;
29563
29564 struct _GtkColorButton {
29565 GtkButton button;
29566
29567
29568
29569 GtkColorButtonPrivate *priv;
29570 };
29571
29572 struct _GtkColorButtonClass {
29573 GtkButtonClass parent_class;
29574
29575 void (* color_set) (GtkColorButton *cp);
29576
29577
29578 void (*_gtk_reserved1) (void);
29579 void (*_gtk_reserved2) (void);
29580 void (*_gtk_reserved3) (void);
29581 void (*_gtk_reserved4) (void);
29582 };
29583
29584
29585 GType gtk_color_button_get_type (void) __attribute__((__const__));
29586 GtkWidget *gtk_color_button_new (void);
29587 GtkWidget *gtk_color_button_new_with_color (const GdkColor *color);
29588 void gtk_color_button_set_color (GtkColorButton *color_button,
29589 const GdkColor *color);
29590 void gtk_color_button_set_alpha (GtkColorButton *color_button,
29591 guint16 alpha);
29592 void gtk_color_button_get_color (GtkColorButton *color_button,
29593 GdkColor *color);
29594 guint16 gtk_color_button_get_alpha (GtkColorButton *color_button);
29595 void gtk_color_button_set_use_alpha (GtkColorButton *color_button,
29596 gboolean use_alpha);
29597 gboolean gtk_color_button_get_use_alpha (GtkColorButton *color_button);
29598 void gtk_color_button_set_title (GtkColorButton *color_button,
29599 const gchar *title);
29600 const gchar *gtk_color_button_get_title (GtkColorButton *color_button);
29601 # 62 "/usr/include/gtk-2.0/gtk/gtk.h" 2
29602
29603 # 1 "/usr/include/gtk-2.0/gtk/gtkcolorsel.h" 1
29604 # 31 "/usr/include/gtk-2.0/gtk/gtkcolorsel.h"
29605
29606 # 1 "/usr/include/gtk-2.0/gtk/gtkvbox.h" 1
29607 # 35 "/usr/include/gtk-2.0/gtk/gtkvbox.h"
29608 # 46 "/usr/include/gtk-2.0/gtk/gtkvbox.h"
29609 typedef struct _GtkVBox GtkVBox;
29610 typedef struct _GtkVBoxClass GtkVBoxClass;
29611
29612 struct _GtkVBox
29613 {
29614 GtkBox box;
29615 };
29616
29617 struct _GtkVBoxClass
29618 {
29619 GtkBoxClass parent_class;
29620 };
29621
29622
29623 GType gtk_vbox_get_type (void) __attribute__((__const__));
29624 GtkWidget* gtk_vbox_new (gboolean homogeneous,
29625 gint spacing);
29626 # 32 "/usr/include/gtk-2.0/gtk/gtkcolorsel.h" 2
29627 # 43 "/usr/include/gtk-2.0/gtk/gtkcolorsel.h"
29628 typedef struct _GtkColorSelection GtkColorSelection;
29629 typedef struct _GtkColorSelectionClass GtkColorSelectionClass;
29630
29631
29632 typedef void (* GtkColorSelectionChangePaletteFunc) (const GdkColor *colors,
29633 gint n_colors);
29634 typedef void (* GtkColorSelectionChangePaletteWithScreenFunc) (GdkScreen *screen,
29635 const GdkColor *colors,
29636 gint n_colors);
29637
29638 struct _GtkColorSelection
29639 {
29640 GtkVBox parent_instance;
29641
29642
29643 gpointer private_data;
29644 };
29645
29646 struct _GtkColorSelectionClass
29647 {
29648 GtkVBoxClass parent_class;
29649
29650 void (*color_changed) (GtkColorSelection *color_selection);
29651
29652
29653 void (*_gtk_reserved1) (void);
29654 void (*_gtk_reserved2) (void);
29655 void (*_gtk_reserved3) (void);
29656 void (*_gtk_reserved4) (void);
29657 };
29658
29659
29660
29661
29662 GType gtk_color_selection_get_type (void) __attribute__((__const__));
29663 GtkWidget *gtk_color_selection_new (void);
29664 gboolean gtk_color_selection_get_has_opacity_control (GtkColorSelection *colorsel);
29665 void gtk_color_selection_set_has_opacity_control (GtkColorSelection *colorsel,
29666 gboolean has_opacity);
29667 gboolean gtk_color_selection_get_has_palette (GtkColorSelection *colorsel);
29668 void gtk_color_selection_set_has_palette (GtkColorSelection *colorsel,
29669 gboolean has_palette);
29670
29671
29672 void gtk_color_selection_set_current_color (GtkColorSelection *colorsel,
29673 const GdkColor *color);
29674 void gtk_color_selection_set_current_alpha (GtkColorSelection *colorsel,
29675 guint16 alpha);
29676 void gtk_color_selection_get_current_color (GtkColorSelection *colorsel,
29677 GdkColor *color);
29678 guint16 gtk_color_selection_get_current_alpha (GtkColorSelection *colorsel);
29679 void gtk_color_selection_set_previous_color (GtkColorSelection *colorsel,
29680 const GdkColor *color);
29681 void gtk_color_selection_set_previous_alpha (GtkColorSelection *colorsel,
29682 guint16 alpha);
29683 void gtk_color_selection_get_previous_color (GtkColorSelection *colorsel,
29684 GdkColor *color);
29685 guint16 gtk_color_selection_get_previous_alpha (GtkColorSelection *colorsel);
29686
29687 gboolean gtk_color_selection_is_adjusting (GtkColorSelection *colorsel);
29688
29689 gboolean gtk_color_selection_palette_from_string (const gchar *str,
29690 GdkColor **colors,
29691 gint *n_colors);
29692 gchar* gtk_color_selection_palette_to_string (const GdkColor *colors,
29693 gint n_colors);
29694
29695
29696
29697
29698
29699
29700
29701 GtkColorSelectionChangePaletteWithScreenFunc gtk_color_selection_set_change_palette_with_screen_hook (GtkColorSelectionChangePaletteWithScreenFunc func);
29702
29703
29704
29705 void gtk_color_selection_set_color (GtkColorSelection *colorsel,
29706 gdouble *color);
29707 void gtk_color_selection_get_color (GtkColorSelection *colorsel,
29708 gdouble *color);
29709 void gtk_color_selection_set_update_policy (GtkColorSelection *colorsel,
29710 GtkUpdateType policy);
29711 # 63 "/usr/include/gtk-2.0/gtk/gtk.h" 2
29712
29713 # 1 "/usr/include/gtk-2.0/gtk/gtkcolorseldialog.h" 1
29714 # 33 "/usr/include/gtk-2.0/gtk/gtkcolorseldialog.h"
29715 # 43 "/usr/include/gtk-2.0/gtk/gtkcolorseldialog.h"
29716 typedef struct _GtkColorSelectionDialog GtkColorSelectionDialog;
29717 typedef struct _GtkColorSelectionDialogClass GtkColorSelectionDialogClass;
29718
29719
29720 struct _GtkColorSelectionDialog
29721 {
29722 GtkDialog parent_instance;
29723
29724 GtkWidget *colorsel;
29725 GtkWidget *ok_button;
29726 GtkWidget *cancel_button;
29727 GtkWidget *help_button;
29728 };
29729
29730 struct _GtkColorSelectionDialogClass
29731 {
29732 GtkDialogClass parent_class;
29733
29734
29735 void (*_gtk_reserved1) (void);
29736 void (*_gtk_reserved2) (void);
29737 void (*_gtk_reserved3) (void);
29738 void (*_gtk_reserved4) (void);
29739 };
29740
29741
29742
29743 GType gtk_color_selection_dialog_get_type (void) __attribute__((__const__));
29744 GtkWidget* gtk_color_selection_dialog_new (const gchar *title);
29745 # 64 "/usr/include/gtk-2.0/gtk/gtk.h" 2
29746
29747 # 1 "/usr/include/gtk-2.0/gtk/gtkcombo.h" 1
29748 # 32 "/usr/include/gtk-2.0/gtk/gtkcombo.h"
29749
29750 # 1 "/usr/include/gtk-2.0/gtk/gtkhbox.h" 1
29751 # 35 "/usr/include/gtk-2.0/gtk/gtkhbox.h"
29752 # 45 "/usr/include/gtk-2.0/gtk/gtkhbox.h"
29753 typedef struct _GtkHBox GtkHBox;
29754 typedef struct _GtkHBoxClass GtkHBoxClass;
29755
29756 struct _GtkHBox
29757 {
29758 GtkBox box;
29759 };
29760
29761 struct _GtkHBoxClass
29762 {
29763 GtkBoxClass parent_class;
29764 };
29765
29766
29767 GType gtk_hbox_get_type (void) __attribute__((__const__));
29768 GtkWidget* gtk_hbox_new (gboolean homogeneous,
29769 gint spacing);
29770 # 33 "/usr/include/gtk-2.0/gtk/gtkcombo.h" 2
29771 # 45 "/usr/include/gtk-2.0/gtk/gtkcombo.h"
29772 typedef struct _GtkCombo GtkCombo;
29773 typedef struct _GtkComboClass GtkComboClass;
29774
29775
29776 struct _GtkCombo {
29777 GtkHBox hbox;
29778
29779
29780 GtkWidget *entry;
29781
29782
29783 GtkWidget *button;
29784 GtkWidget *popup;
29785 GtkWidget *popwin;
29786
29787
29788 GtkWidget *list;
29789
29790
29791 guint entry_change_id;
29792 guint list_change_id;
29793
29794 guint value_in_list:1;
29795 guint ok_if_empty:1;
29796 guint case_sensitive:1;
29797 guint use_arrows:1;
29798 guint use_arrows_always:1;
29799
29800 guint16 current_button;
29801 guint activate_id;
29802 };
29803
29804 struct _GtkComboClass {
29805 GtkHBoxClass parent_class;
29806
29807
29808 void (*_gtk_reserved1) (void);
29809 void (*_gtk_reserved2) (void);
29810 void (*_gtk_reserved3) (void);
29811 void (*_gtk_reserved4) (void);
29812 };
29813
29814 GType gtk_combo_get_type (void) __attribute__((__const__));
29815
29816 GtkWidget* gtk_combo_new (void);
29817
29818 void gtk_combo_set_value_in_list (GtkCombo* combo,
29819 gboolean val,
29820 gboolean ok_if_empty);
29821
29822 void gtk_combo_set_use_arrows (GtkCombo* combo,
29823 gboolean val);
29824
29825 void gtk_combo_set_use_arrows_always (GtkCombo* combo,
29826 gboolean val);
29827
29828 void gtk_combo_set_case_sensitive (GtkCombo* combo,
29829 gboolean val);
29830
29831
29832 void gtk_combo_set_item_string (GtkCombo* combo,
29833 GtkItem* item,
29834 const gchar* item_value);
29835
29836 void gtk_combo_set_popdown_strings (GtkCombo* combo,
29837 GList *strings);
29838
29839 void gtk_combo_disable_activate (GtkCombo* combo);
29840 # 65 "/usr/include/gtk-2.0/gtk/gtk.h" 2
29841
29842 # 1 "/usr/include/gtk-2.0/gtk/gtkcombobox.h" 1
29843 # 25 "/usr/include/gtk-2.0/gtk/gtkcombobox.h"
29844
29845 # 1 "/usr/include/gtk-2.0/gtk/gtktreeview.h" 1
29846 # 26 "/usr/include/gtk-2.0/gtk/gtktreeview.h"
29847
29848 # 1 "/usr/include/gtk-2.0/gtk/gtkdnd.h" 1
29849 # 35 "/usr/include/gtk-2.0/gtk/gtkdnd.h"
29850
29851
29852 typedef enum {
29853 GTK_DEST_DEFAULT_MOTION = 1 << 0,
29854 GTK_DEST_DEFAULT_HIGHLIGHT = 1 << 1,
29855 GTK_DEST_DEFAULT_DROP = 1 << 2,
29856 GTK_DEST_DEFAULT_ALL = 0x07
29857 } GtkDestDefaults;
29858
29859
29860
29861 typedef enum {
29862 GTK_TARGET_SAME_APP = 1 << 0,
29863 GTK_TARGET_SAME_WIDGET = 1 << 1
29864 } GtkTargetFlags;
29865
29866
29867
29868 void gtk_drag_get_data (GtkWidget *widget,
29869 GdkDragContext *context,
29870 GdkAtom target,
29871 guint32 time_);
29872 void gtk_drag_finish (GdkDragContext *context,
29873 gboolean success,
29874 gboolean del,
29875 guint32 time_);
29876
29877 GtkWidget *gtk_drag_get_source_widget (GdkDragContext *context);
29878
29879 void gtk_drag_highlight (GtkWidget *widget);
29880 void gtk_drag_unhighlight (GtkWidget *widget);
29881
29882 void gtk_drag_dest_set (GtkWidget *widget,
29883 GtkDestDefaults flags,
29884 const GtkTargetEntry *targets,
29885 gint n_targets,
29886 GdkDragAction actions);
29887
29888 void gtk_drag_dest_set_proxy (GtkWidget *widget,
29889 GdkWindow *proxy_window,
29890 GdkDragProtocol protocol,
29891 gboolean use_coordinates);
29892
29893 void gtk_drag_dest_unset (GtkWidget *widget);
29894
29895 GdkAtom gtk_drag_dest_find_target (GtkWidget *widget,
29896 GdkDragContext *context,
29897 GtkTargetList *target_list);
29898 GtkTargetList* gtk_drag_dest_get_target_list (GtkWidget *widget);
29899 void gtk_drag_dest_set_target_list (GtkWidget *widget,
29900 GtkTargetList *target_list);
29901 void gtk_drag_dest_add_text_targets (GtkWidget *widget);
29902 void gtk_drag_dest_add_image_targets (GtkWidget *widget);
29903 void gtk_drag_dest_add_uri_targets (GtkWidget *widget);
29904
29905
29906
29907 void gtk_drag_source_set (GtkWidget *widget,
29908 GdkModifierType start_button_mask,
29909 const GtkTargetEntry *targets,
29910 gint n_targets,
29911 GdkDragAction actions);
29912
29913 void gtk_drag_source_unset (GtkWidget *widget);
29914
29915 GtkTargetList* gtk_drag_source_get_target_list (GtkWidget *widget);
29916 void gtk_drag_source_set_target_list (GtkWidget *widget,
29917 GtkTargetList *target_list);
29918 void gtk_drag_source_add_text_targets (GtkWidget *widget);
29919 void gtk_drag_source_add_image_targets (GtkWidget *widget);
29920 void gtk_drag_source_add_uri_targets (GtkWidget *widget);
29921
29922 void gtk_drag_source_set_icon (GtkWidget *widget,
29923 GdkColormap *colormap,
29924 GdkPixmap *pixmap,
29925 GdkBitmap *mask);
29926 void gtk_drag_source_set_icon_pixbuf (GtkWidget *widget,
29927 GdkPixbuf *pixbuf);
29928 void gtk_drag_source_set_icon_stock (GtkWidget *widget,
29929 const gchar *stock_id);
29930 void gtk_drag_source_set_icon_name (GtkWidget *widget,
29931 const gchar *icon_name);
29932
29933
29934
29935
29936
29937 GdkDragContext *gtk_drag_begin (GtkWidget *widget,
29938 GtkTargetList *targets,
29939 GdkDragAction actions,
29940 gint button,
29941 GdkEvent *event);
29942
29943
29944
29945 void gtk_drag_set_icon_widget (GdkDragContext *context,
29946 GtkWidget *widget,
29947 gint hot_x,
29948 gint hot_y);
29949 void gtk_drag_set_icon_pixmap (GdkDragContext *context,
29950 GdkColormap *colormap,
29951 GdkPixmap *pixmap,
29952 GdkBitmap *mask,
29953 gint hot_x,
29954 gint hot_y);
29955 void gtk_drag_set_icon_pixbuf (GdkDragContext *context,
29956 GdkPixbuf *pixbuf,
29957 gint hot_x,
29958 gint hot_y);
29959 void gtk_drag_set_icon_stock (GdkDragContext *context,
29960 const gchar *stock_id,
29961 gint hot_x,
29962 gint hot_y);
29963 void gtk_drag_set_icon_name (GdkDragContext *context,
29964 const gchar *icon_name,
29965 gint hot_x,
29966 gint hot_y);
29967
29968 void gtk_drag_set_icon_default (GdkDragContext *context);
29969
29970 gboolean gtk_drag_check_threshold (GtkWidget *widget,
29971 gint start_x,
29972 gint start_y,
29973 gint current_x,
29974 gint current_y);
29975
29976
29977 void _gtk_drag_source_handle_event (GtkWidget *widget,
29978 GdkEvent *event);
29979 void _gtk_drag_dest_handle_event (GtkWidget *toplevel,
29980 GdkEvent *event);
29981
29982
29983 void gtk_drag_set_default_icon (GdkColormap *colormap,
29984 GdkPixmap *pixmap,
29985 GdkBitmap *mask,
29986 gint hot_x,
29987 gint hot_y);
29988 # 27 "/usr/include/gtk-2.0/gtk/gtktreeview.h" 2
29989
29990
29991
29992
29993
29994 typedef enum
29995 {
29996
29997 GTK_TREE_VIEW_DROP_BEFORE,
29998 GTK_TREE_VIEW_DROP_AFTER,
29999
30000
30001
30002 GTK_TREE_VIEW_DROP_INTO_OR_BEFORE,
30003 GTK_TREE_VIEW_DROP_INTO_OR_AFTER
30004 } GtkTreeViewDropPosition;
30005 # 51 "/usr/include/gtk-2.0/gtk/gtktreeview.h"
30006 typedef struct _GtkTreeView GtkTreeView;
30007 typedef struct _GtkTreeViewClass GtkTreeViewClass;
30008 typedef struct _GtkTreeViewPrivate GtkTreeViewPrivate;
30009 typedef struct _GtkTreeSelection GtkTreeSelection;
30010 typedef struct _GtkTreeSelectionClass GtkTreeSelectionClass;
30011
30012 struct _GtkTreeView
30013 {
30014 GtkContainer parent;
30015
30016 GtkTreeViewPrivate *priv;
30017 };
30018
30019 struct _GtkTreeViewClass
30020 {
30021 GtkContainerClass parent_class;
30022
30023 void (* set_scroll_adjustments) (GtkTreeView *tree_view,
30024 GtkAdjustment *hadjustment,
30025 GtkAdjustment *vadjustment);
30026 void (* row_activated) (GtkTreeView *tree_view,
30027 GtkTreePath *path,
30028 GtkTreeViewColumn *column);
30029 gboolean (* test_expand_row) (GtkTreeView *tree_view,
30030 GtkTreeIter *iter,
30031 GtkTreePath *path);
30032 gboolean (* test_collapse_row) (GtkTreeView *tree_view,
30033 GtkTreeIter *iter,
30034 GtkTreePath *path);
30035 void (* row_expanded) (GtkTreeView *tree_view,
30036 GtkTreeIter *iter,
30037 GtkTreePath *path);
30038 void (* row_collapsed) (GtkTreeView *tree_view,
30039 GtkTreeIter *iter,
30040 GtkTreePath *path);
30041 void (* columns_changed) (GtkTreeView *tree_view);
30042 void (* cursor_changed) (GtkTreeView *tree_view);
30043
30044
30045 gboolean (* move_cursor) (GtkTreeView *tree_view,
30046 GtkMovementStep step,
30047 gint count);
30048 gboolean (* select_all) (GtkTreeView *tree_view);
30049 gboolean (* unselect_all) (GtkTreeView *tree_view);
30050 gboolean (* select_cursor_row) (GtkTreeView *tree_view,
30051 gboolean start_editing);
30052 gboolean (* toggle_cursor_row) (GtkTreeView *tree_view);
30053 gboolean (* expand_collapse_cursor_row) (GtkTreeView *tree_view,
30054 gboolean logical,
30055 gboolean expand,
30056 gboolean open_all);
30057 gboolean (* select_cursor_parent) (GtkTreeView *tree_view);
30058 gboolean (* start_interactive_search) (GtkTreeView *tree_view);
30059
30060
30061 void (*_gtk_reserved0) (void);
30062 void (*_gtk_reserved1) (void);
30063 void (*_gtk_reserved2) (void);
30064 void (*_gtk_reserved3) (void);
30065 void (*_gtk_reserved4) (void);
30066 };
30067
30068
30069 typedef gboolean (* GtkTreeViewColumnDropFunc) (GtkTreeView *tree_view,
30070 GtkTreeViewColumn *column,
30071 GtkTreeViewColumn *prev_column,
30072 GtkTreeViewColumn *next_column,
30073 gpointer data);
30074 typedef void (* GtkTreeViewMappingFunc) (GtkTreeView *tree_view,
30075 GtkTreePath *path,
30076 gpointer user_data);
30077 typedef gboolean (*GtkTreeViewSearchEqualFunc) (GtkTreeModel *model,
30078 gint column,
30079 const gchar *key,
30080 GtkTreeIter *iter,
30081 gpointer search_data);
30082 typedef gboolean (*GtkTreeViewRowSeparatorFunc) (GtkTreeModel *model,
30083 GtkTreeIter *iter,
30084 gpointer data);
30085
30086
30087
30088 GType gtk_tree_view_get_type (void) __attribute__((__const__));
30089 GtkWidget *gtk_tree_view_new (void);
30090 GtkWidget *gtk_tree_view_new_with_model (GtkTreeModel *model);
30091
30092
30093 GtkTreeModel *gtk_tree_view_get_model (GtkTreeView *tree_view);
30094 void gtk_tree_view_set_model (GtkTreeView *tree_view,
30095 GtkTreeModel *model);
30096 GtkTreeSelection *gtk_tree_view_get_selection (GtkTreeView *tree_view);
30097 GtkAdjustment *gtk_tree_view_get_hadjustment (GtkTreeView *tree_view);
30098 void gtk_tree_view_set_hadjustment (GtkTreeView *tree_view,
30099 GtkAdjustment *adjustment);
30100 GtkAdjustment *gtk_tree_view_get_vadjustment (GtkTreeView *tree_view);
30101 void gtk_tree_view_set_vadjustment (GtkTreeView *tree_view,
30102 GtkAdjustment *adjustment);
30103 gboolean gtk_tree_view_get_headers_visible (GtkTreeView *tree_view);
30104 void gtk_tree_view_set_headers_visible (GtkTreeView *tree_view,
30105 gboolean headers_visible);
30106 void gtk_tree_view_columns_autosize (GtkTreeView *tree_view);
30107 void gtk_tree_view_set_headers_clickable (GtkTreeView *tree_view,
30108 gboolean setting);
30109 void gtk_tree_view_set_rules_hint (GtkTreeView *tree_view,
30110 gboolean setting);
30111 gboolean gtk_tree_view_get_rules_hint (GtkTreeView *tree_view);
30112
30113
30114 gint gtk_tree_view_append_column (GtkTreeView *tree_view,
30115 GtkTreeViewColumn *column);
30116 gint gtk_tree_view_remove_column (GtkTreeView *tree_view,
30117 GtkTreeViewColumn *column);
30118 gint gtk_tree_view_insert_column (GtkTreeView *tree_view,
30119 GtkTreeViewColumn *column,
30120 gint position);
30121 gint gtk_tree_view_insert_column_with_attributes (GtkTreeView *tree_view,
30122 gint position,
30123 const gchar *title,
30124 GtkCellRenderer *cell,
30125 ...) __attribute__((__sentinel__));
30126 gint gtk_tree_view_insert_column_with_data_func (GtkTreeView *tree_view,
30127 gint position,
30128 const gchar *title,
30129 GtkCellRenderer *cell,
30130 GtkTreeCellDataFunc func,
30131 gpointer data,
30132 GDestroyNotify dnotify);
30133 GtkTreeViewColumn *gtk_tree_view_get_column (GtkTreeView *tree_view,
30134 gint n);
30135 GList *gtk_tree_view_get_columns (GtkTreeView *tree_view);
30136 void gtk_tree_view_move_column_after (GtkTreeView *tree_view,
30137 GtkTreeViewColumn *column,
30138 GtkTreeViewColumn *base_column);
30139 void gtk_tree_view_set_expander_column (GtkTreeView *tree_view,
30140 GtkTreeViewColumn *column);
30141 GtkTreeViewColumn *gtk_tree_view_get_expander_column (GtkTreeView *tree_view);
30142 void gtk_tree_view_set_column_drag_function (GtkTreeView *tree_view,
30143 GtkTreeViewColumnDropFunc func,
30144 gpointer user_data,
30145 GtkDestroyNotify destroy);
30146
30147
30148 void gtk_tree_view_scroll_to_point (GtkTreeView *tree_view,
30149 gint tree_x,
30150 gint tree_y);
30151 void gtk_tree_view_scroll_to_cell (GtkTreeView *tree_view,
30152 GtkTreePath *path,
30153 GtkTreeViewColumn *column,
30154 gboolean use_align,
30155 gfloat row_align,
30156 gfloat col_align);
30157 void gtk_tree_view_row_activated (GtkTreeView *tree_view,
30158 GtkTreePath *path,
30159 GtkTreeViewColumn *column);
30160 void gtk_tree_view_expand_all (GtkTreeView *tree_view);
30161 void gtk_tree_view_collapse_all (GtkTreeView *tree_view);
30162 void gtk_tree_view_expand_to_path (GtkTreeView *tree_view,
30163 GtkTreePath *path);
30164 gboolean gtk_tree_view_expand_row (GtkTreeView *tree_view,
30165 GtkTreePath *path,
30166 gboolean open_all);
30167 gboolean gtk_tree_view_collapse_row (GtkTreeView *tree_view,
30168 GtkTreePath *path);
30169 void gtk_tree_view_map_expanded_rows (GtkTreeView *tree_view,
30170 GtkTreeViewMappingFunc func,
30171 gpointer data);
30172 gboolean gtk_tree_view_row_expanded (GtkTreeView *tree_view,
30173 GtkTreePath *path);
30174 void gtk_tree_view_set_reorderable (GtkTreeView *tree_view,
30175 gboolean reorderable);
30176 gboolean gtk_tree_view_get_reorderable (GtkTreeView *tree_view);
30177 void gtk_tree_view_set_cursor (GtkTreeView *tree_view,
30178 GtkTreePath *path,
30179 GtkTreeViewColumn *focus_column,
30180 gboolean start_editing);
30181 void gtk_tree_view_set_cursor_on_cell (GtkTreeView *tree_view,
30182 GtkTreePath *path,
30183 GtkTreeViewColumn *focus_column,
30184 GtkCellRenderer *focus_cell,
30185 gboolean start_editing);
30186 void gtk_tree_view_get_cursor (GtkTreeView *tree_view,
30187 GtkTreePath **path,
30188 GtkTreeViewColumn **focus_column);
30189
30190
30191
30192 GdkWindow *gtk_tree_view_get_bin_window (GtkTreeView *tree_view);
30193 gboolean gtk_tree_view_get_path_at_pos (GtkTreeView *tree_view,
30194 gint x,
30195 gint y,
30196 GtkTreePath **path,
30197 GtkTreeViewColumn **column,
30198 gint *cell_x,
30199 gint *cell_y);
30200 void gtk_tree_view_get_cell_area (GtkTreeView *tree_view,
30201 GtkTreePath *path,
30202 GtkTreeViewColumn *column,
30203 GdkRectangle *rect);
30204 void gtk_tree_view_get_background_area (GtkTreeView *tree_view,
30205 GtkTreePath *path,
30206 GtkTreeViewColumn *column,
30207 GdkRectangle *rect);
30208 void gtk_tree_view_get_visible_rect (GtkTreeView *tree_view,
30209 GdkRectangle *visible_rect);
30210 void gtk_tree_view_widget_to_tree_coords (GtkTreeView *tree_view,
30211 gint wx,
30212 gint wy,
30213 gint *tx,
30214 gint *ty);
30215 void gtk_tree_view_tree_to_widget_coords (GtkTreeView *tree_view,
30216 gint tx,
30217 gint ty,
30218 gint *wx,
30219 gint *wy);
30220 gboolean gtk_tree_view_get_visible_range (GtkTreeView *tree_view,
30221 GtkTreePath **start_path,
30222 GtkTreePath **end_path);
30223
30224
30225 void gtk_tree_view_enable_model_drag_source (GtkTreeView *tree_view,
30226 GdkModifierType start_button_mask,
30227 const GtkTargetEntry *targets,
30228 gint n_targets,
30229 GdkDragAction actions);
30230 void gtk_tree_view_enable_model_drag_dest (GtkTreeView *tree_view,
30231 const GtkTargetEntry *targets,
30232 gint n_targets,
30233 GdkDragAction actions);
30234 void gtk_tree_view_unset_rows_drag_source (GtkTreeView *tree_view);
30235 void gtk_tree_view_unset_rows_drag_dest (GtkTreeView *tree_view);
30236
30237
30238
30239 void gtk_tree_view_set_drag_dest_row (GtkTreeView *tree_view,
30240 GtkTreePath *path,
30241 GtkTreeViewDropPosition pos);
30242 void gtk_tree_view_get_drag_dest_row (GtkTreeView *tree_view,
30243 GtkTreePath **path,
30244 GtkTreeViewDropPosition *pos);
30245 gboolean gtk_tree_view_get_dest_row_at_pos (GtkTreeView *tree_view,
30246 gint drag_x,
30247 gint drag_y,
30248 GtkTreePath **path,
30249 GtkTreeViewDropPosition *pos);
30250 GdkPixmap *gtk_tree_view_create_row_drag_icon (GtkTreeView *tree_view,
30251 GtkTreePath *path);
30252
30253
30254 void gtk_tree_view_set_enable_search (GtkTreeView *tree_view,
30255 gboolean enable_search);
30256 gboolean gtk_tree_view_get_enable_search (GtkTreeView *tree_view);
30257 gint gtk_tree_view_get_search_column (GtkTreeView *tree_view);
30258 void gtk_tree_view_set_search_column (GtkTreeView *tree_view,
30259 gint column);
30260 GtkTreeViewSearchEqualFunc gtk_tree_view_get_search_equal_func (GtkTreeView *tree_view);
30261 void gtk_tree_view_set_search_equal_func (GtkTreeView *tree_view,
30262 GtkTreeViewSearchEqualFunc search_equal_func,
30263 gpointer search_user_data,
30264 GtkDestroyNotify search_destroy);
30265
30266
30267
30268 typedef void (* GtkTreeDestroyCountFunc) (GtkTreeView *tree_view,
30269 GtkTreePath *path,
30270 gint children,
30271 gpointer user_data);
30272 void gtk_tree_view_set_destroy_count_func (GtkTreeView *tree_view,
30273 GtkTreeDestroyCountFunc func,
30274 gpointer data,
30275 GtkDestroyNotify destroy);
30276
30277 void gtk_tree_view_set_fixed_height_mode (GtkTreeView *tree_view,
30278 gboolean enable);
30279 gboolean gtk_tree_view_get_fixed_height_mode (GtkTreeView *tree_view);
30280 void gtk_tree_view_set_hover_selection (GtkTreeView *tree_view,
30281 gboolean hover);
30282 gboolean gtk_tree_view_get_hover_selection (GtkTreeView *tree_view);
30283 void gtk_tree_view_set_hover_expand (GtkTreeView *tree_view,
30284 gboolean expand);
30285 gboolean gtk_tree_view_get_hover_expand (GtkTreeView *tree_view);
30286
30287 GtkTreeViewRowSeparatorFunc gtk_tree_view_get_row_separator_func (GtkTreeView *tree_view);
30288 void gtk_tree_view_set_row_separator_func (GtkTreeView *tree_view,
30289 GtkTreeViewRowSeparatorFunc func,
30290 gpointer data,
30291 GtkDestroyNotify destroy);
30292 # 26 "/usr/include/gtk-2.0/gtk/gtkcombobox.h" 2
30293 # 36 "/usr/include/gtk-2.0/gtk/gtkcombobox.h"
30294 typedef struct _GtkComboBox GtkComboBox;
30295 typedef struct _GtkComboBoxClass GtkComboBoxClass;
30296 typedef struct _GtkComboBoxPrivate GtkComboBoxPrivate;
30297
30298 struct _GtkComboBox
30299 {
30300 GtkBin parent_instance;
30301
30302
30303 GtkComboBoxPrivate *priv;
30304 };
30305
30306 struct _GtkComboBoxClass
30307 {
30308 GtkBinClass parent_class;
30309
30310
30311 void (* changed) (GtkComboBox *combo_box);
30312
30313
30314 gchar * (* get_active_text) (GtkComboBox *combo_box);
30315
30316
30317 void (*_gtk_reserved0) (void);
30318 void (*_gtk_reserved1) (void);
30319 void (*_gtk_reserved2) (void);
30320 };
30321
30322
30323
30324 GType gtk_combo_box_get_type (void) __attribute__((__const__));
30325 GtkWidget *gtk_combo_box_new (void);
30326 GtkWidget *gtk_combo_box_new_with_model (GtkTreeModel *model);
30327
30328
30329 gint gtk_combo_box_get_wrap_width (GtkComboBox *combo_box);
30330 void gtk_combo_box_set_wrap_width (GtkComboBox *combo_box,
30331 gint width);
30332 gint gtk_combo_box_get_row_span_column (GtkComboBox *combo_box);
30333 void gtk_combo_box_set_row_span_column (GtkComboBox *combo_box,
30334 gint row_span);
30335 gint gtk_combo_box_get_column_span_column (GtkComboBox *combo_box);
30336 void gtk_combo_box_set_column_span_column (GtkComboBox *combo_box,
30337 gint column_span);
30338
30339 gboolean gtk_combo_box_get_add_tearoffs (GtkComboBox *combo_box);
30340 void gtk_combo_box_set_add_tearoffs (GtkComboBox *combo_box,
30341 gboolean add_tearoffs);
30342 gboolean gtk_combo_box_get_focus_on_click (GtkComboBox *combo);
30343 void gtk_combo_box_set_focus_on_click (GtkComboBox *combo,
30344 gboolean focus_on_click);
30345
30346
30347 gint gtk_combo_box_get_active (GtkComboBox *combo_box);
30348 void gtk_combo_box_set_active (GtkComboBox *combo_box,
30349 gint index_);
30350 gboolean gtk_combo_box_get_active_iter (GtkComboBox *combo_box,
30351 GtkTreeIter *iter);
30352 void gtk_combo_box_set_active_iter (GtkComboBox *combo_box,
30353 GtkTreeIter *iter);
30354
30355
30356 void gtk_combo_box_set_model (GtkComboBox *combo_box,
30357 GtkTreeModel *model);
30358 GtkTreeModel *gtk_combo_box_get_model (GtkComboBox *combo_box);
30359
30360 GtkTreeViewRowSeparatorFunc gtk_combo_box_get_row_separator_func (GtkComboBox *combo_box);
30361 void gtk_combo_box_set_row_separator_func (GtkComboBox *combo_box,
30362 GtkTreeViewRowSeparatorFunc func,
30363 gpointer data,
30364 GtkDestroyNotify destroy);
30365
30366
30367 GtkWidget *gtk_combo_box_new_text (void);
30368 void gtk_combo_box_append_text (GtkComboBox *combo_box,
30369 const gchar *text);
30370 void gtk_combo_box_insert_text (GtkComboBox *combo_box,
30371 gint position,
30372 const gchar *text);
30373 void gtk_combo_box_prepend_text (GtkComboBox *combo_box,
30374 const gchar *text);
30375 void gtk_combo_box_remove_text (GtkComboBox *combo_box,
30376 gint position);
30377 gchar *gtk_combo_box_get_active_text (GtkComboBox *combo_box);
30378
30379
30380 void gtk_combo_box_popup (GtkComboBox *combo_box);
30381 void gtk_combo_box_popdown (GtkComboBox *combo_box);
30382 AtkObject* gtk_combo_box_get_popup_accessible (GtkComboBox *combo_box);
30383
30384
30385 gboolean _gtk_combo_box_editing_canceled (GtkComboBox *combo_box);
30386 # 66 "/usr/include/gtk-2.0/gtk/gtk.h" 2
30387
30388 # 1 "/usr/include/gtk-2.0/gtk/gtkcomboboxentry.h" 1
30389 # 26 "/usr/include/gtk-2.0/gtk/gtkcomboboxentry.h"
30390 # 35 "/usr/include/gtk-2.0/gtk/gtkcomboboxentry.h"
30391 typedef struct _GtkComboBoxEntry GtkComboBoxEntry;
30392 typedef struct _GtkComboBoxEntryClass GtkComboBoxEntryClass;
30393 typedef struct _GtkComboBoxEntryPrivate GtkComboBoxEntryPrivate;
30394
30395 struct _GtkComboBoxEntry
30396 {
30397 GtkComboBox parent_instance;
30398
30399
30400 GtkComboBoxEntryPrivate *priv;
30401 };
30402
30403 struct _GtkComboBoxEntryClass
30404 {
30405 GtkComboBoxClass parent_class;
30406
30407
30408 void (*_gtk_reserved0) (void);
30409 void (*_gtk_reserved1) (void);
30410 void (*_gtk_reserved2) (void);
30411 void (*_gtk_reserved3) (void);
30412 };
30413
30414
30415 GType gtk_combo_box_entry_get_type (void) __attribute__((__const__));
30416 GtkWidget *gtk_combo_box_entry_new (void);
30417 GtkWidget *gtk_combo_box_entry_new_with_model (GtkTreeModel *model,
30418 gint text_column);
30419
30420 void gtk_combo_box_entry_set_text_column (GtkComboBoxEntry *entry_box,
30421 gint text_column);
30422 gint gtk_combo_box_entry_get_text_column (GtkComboBoxEntry *entry_box);
30423
30424
30425 GtkWidget *gtk_combo_box_entry_new_text (void);
30426 # 67 "/usr/include/gtk-2.0/gtk/gtk.h" 2
30427
30428
30429 # 1 "/usr/include/gtk-2.0/gtk/gtkctree.h" 1
30430 # 36 "/usr/include/gtk-2.0/gtk/gtkctree.h"
30431
30432 # 1 "/usr/include/gtk-2.0/gtk/gtkclist.h" 1
30433 # 37 "/usr/include/gtk-2.0/gtk/gtkctree.h" 2
30434 # 55 "/usr/include/gtk-2.0/gtk/gtkctree.h"
30435 typedef enum
30436 {
30437 GTK_CTREE_POS_BEFORE,
30438 GTK_CTREE_POS_AS_CHILD,
30439 GTK_CTREE_POS_AFTER
30440 } GtkCTreePos;
30441
30442 typedef enum
30443 {
30444 GTK_CTREE_LINES_NONE,
30445 GTK_CTREE_LINES_SOLID,
30446 GTK_CTREE_LINES_DOTTED,
30447 GTK_CTREE_LINES_TABBED
30448 } GtkCTreeLineStyle;
30449
30450 typedef enum
30451 {
30452 GTK_CTREE_EXPANDER_NONE,
30453 GTK_CTREE_EXPANDER_SQUARE,
30454 GTK_CTREE_EXPANDER_TRIANGLE,
30455 GTK_CTREE_EXPANDER_CIRCULAR
30456 } GtkCTreeExpanderStyle;
30457
30458 typedef enum
30459 {
30460 GTK_CTREE_EXPANSION_EXPAND,
30461 GTK_CTREE_EXPANSION_EXPAND_RECURSIVE,
30462 GTK_CTREE_EXPANSION_COLLAPSE,
30463 GTK_CTREE_EXPANSION_COLLAPSE_RECURSIVE,
30464 GTK_CTREE_EXPANSION_TOGGLE,
30465 GTK_CTREE_EXPANSION_TOGGLE_RECURSIVE
30466 } GtkCTreeExpansionType;
30467
30468 typedef struct _GtkCTree GtkCTree;
30469 typedef struct _GtkCTreeClass GtkCTreeClass;
30470 typedef struct _GtkCTreeRow GtkCTreeRow;
30471 typedef struct _GtkCTreeNode GtkCTreeNode;
30472
30473 typedef void (*GtkCTreeFunc) (GtkCTree *ctree,
30474 GtkCTreeNode *node,
30475 gpointer data);
30476
30477 typedef gboolean (*GtkCTreeGNodeFunc) (GtkCTree *ctree,
30478 guint depth,
30479 GNode *gnode,
30480 GtkCTreeNode *cnode,
30481 gpointer data);
30482
30483 typedef gboolean (*GtkCTreeCompareDragFunc) (GtkCTree *ctree,
30484 GtkCTreeNode *source_node,
30485 GtkCTreeNode *new_parent,
30486 GtkCTreeNode *new_sibling);
30487
30488 struct _GtkCTree
30489 {
30490 GtkCList clist;
30491
30492 GdkGC *lines_gc;
30493
30494 gint tree_indent;
30495 gint tree_spacing;
30496 gint tree_column;
30497
30498 guint line_style : 2;
30499 guint expander_style : 2;
30500 guint show_stub : 1;
30501
30502 GtkCTreeCompareDragFunc drag_compare;
30503 };
30504
30505 struct _GtkCTreeClass
30506 {
30507 GtkCListClass parent_class;
30508
30509 void (*tree_select_row) (GtkCTree *ctree,
30510 GtkCTreeNode *row,
30511 gint column);
30512 void (*tree_unselect_row) (GtkCTree *ctree,
30513 GtkCTreeNode *row,
30514 gint column);
30515 void (*tree_expand) (GtkCTree *ctree,
30516 GtkCTreeNode *node);
30517 void (*tree_collapse) (GtkCTree *ctree,
30518 GtkCTreeNode *node);
30519 void (*tree_move) (GtkCTree *ctree,
30520 GtkCTreeNode *node,
30521 GtkCTreeNode *new_parent,
30522 GtkCTreeNode *new_sibling);
30523 void (*change_focus_row_expansion) (GtkCTree *ctree,
30524 GtkCTreeExpansionType action);
30525 };
30526
30527 struct _GtkCTreeRow
30528 {
30529 GtkCListRow row;
30530
30531 GtkCTreeNode *parent;
30532 GtkCTreeNode *sibling;
30533 GtkCTreeNode *children;
30534
30535 GdkPixmap *pixmap_closed;
30536 GdkBitmap *mask_closed;
30537 GdkPixmap *pixmap_opened;
30538 GdkBitmap *mask_opened;
30539
30540 guint16 level;
30541
30542 guint is_leaf : 1;
30543 guint expanded : 1;
30544 };
30545
30546 struct _GtkCTreeNode {
30547 GList list;
30548 };
30549
30550
30551
30552
30553
30554
30555 GtkType gtk_ctree_get_type (void) __attribute__((__const__));
30556 GtkWidget * gtk_ctree_new_with_titles (gint columns,
30557 gint tree_column,
30558 gchar *titles[]);
30559 GtkWidget * gtk_ctree_new (gint columns,
30560 gint tree_column);
30561 GtkCTreeNode * gtk_ctree_insert_node (GtkCTree *ctree,
30562 GtkCTreeNode *parent,
30563 GtkCTreeNode *sibling,
30564 gchar *text[],
30565 guint8 spacing,
30566 GdkPixmap *pixmap_closed,
30567 GdkBitmap *mask_closed,
30568 GdkPixmap *pixmap_opened,
30569 GdkBitmap *mask_opened,
30570 gboolean is_leaf,
30571 gboolean expanded);
30572 void gtk_ctree_remove_node (GtkCTree *ctree,
30573 GtkCTreeNode *node);
30574 GtkCTreeNode * gtk_ctree_insert_gnode (GtkCTree *ctree,
30575 GtkCTreeNode *parent,
30576 GtkCTreeNode *sibling,
30577 GNode *gnode,
30578 GtkCTreeGNodeFunc func,
30579 gpointer data);
30580 GNode * gtk_ctree_export_to_gnode (GtkCTree *ctree,
30581 GNode *parent,
30582 GNode *sibling,
30583 GtkCTreeNode *node,
30584 GtkCTreeGNodeFunc func,
30585 gpointer data);
30586
30587
30588
30589
30590
30591
30592 void gtk_ctree_post_recursive (GtkCTree *ctree,
30593 GtkCTreeNode *node,
30594 GtkCTreeFunc func,
30595 gpointer data);
30596 void gtk_ctree_post_recursive_to_depth (GtkCTree *ctree,
30597 GtkCTreeNode *node,
30598 gint depth,
30599 GtkCTreeFunc func,
30600 gpointer data);
30601 void gtk_ctree_pre_recursive (GtkCTree *ctree,
30602 GtkCTreeNode *node,
30603 GtkCTreeFunc func,
30604 gpointer data);
30605 void gtk_ctree_pre_recursive_to_depth (GtkCTree *ctree,
30606 GtkCTreeNode *node,
30607 gint depth,
30608 GtkCTreeFunc func,
30609 gpointer data);
30610 gboolean gtk_ctree_is_viewable (GtkCTree *ctree,
30611 GtkCTreeNode *node);
30612 GtkCTreeNode * gtk_ctree_last (GtkCTree *ctree,
30613 GtkCTreeNode *node);
30614 GtkCTreeNode * gtk_ctree_find_node_ptr (GtkCTree *ctree,
30615 GtkCTreeRow *ctree_row);
30616 GtkCTreeNode * gtk_ctree_node_nth (GtkCTree *ctree,
30617 guint row);
30618 gboolean gtk_ctree_find (GtkCTree *ctree,
30619 GtkCTreeNode *node,
30620 GtkCTreeNode *child);
30621 gboolean gtk_ctree_is_ancestor (GtkCTree *ctree,
30622 GtkCTreeNode *node,
30623 GtkCTreeNode *child);
30624 GtkCTreeNode * gtk_ctree_find_by_row_data (GtkCTree *ctree,
30625 GtkCTreeNode *node,
30626 gpointer data);
30627
30628 GList * gtk_ctree_find_all_by_row_data (GtkCTree *ctree,
30629 GtkCTreeNode *node,
30630 gpointer data);
30631 GtkCTreeNode * gtk_ctree_find_by_row_data_custom (GtkCTree *ctree,
30632 GtkCTreeNode *node,
30633 gpointer data,
30634 GCompareFunc func);
30635
30636 GList * gtk_ctree_find_all_by_row_data_custom (GtkCTree *ctree,
30637 GtkCTreeNode *node,
30638 gpointer data,
30639 GCompareFunc func);
30640 gboolean gtk_ctree_is_hot_spot (GtkCTree *ctree,
30641 gint x,
30642 gint y);
30643
30644
30645
30646
30647
30648 void gtk_ctree_move (GtkCTree *ctree,
30649 GtkCTreeNode *node,
30650 GtkCTreeNode *new_parent,
30651 GtkCTreeNode *new_sibling);
30652 void gtk_ctree_expand (GtkCTree *ctree,
30653 GtkCTreeNode *node);
30654 void gtk_ctree_expand_recursive (GtkCTree *ctree,
30655 GtkCTreeNode *node);
30656 void gtk_ctree_expand_to_depth (GtkCTree *ctree,
30657 GtkCTreeNode *node,
30658 gint depth);
30659 void gtk_ctree_collapse (GtkCTree *ctree,
30660 GtkCTreeNode *node);
30661 void gtk_ctree_collapse_recursive (GtkCTree *ctree,
30662 GtkCTreeNode *node);
30663 void gtk_ctree_collapse_to_depth (GtkCTree *ctree,
30664 GtkCTreeNode *node,
30665 gint depth);
30666 void gtk_ctree_toggle_expansion (GtkCTree *ctree,
30667 GtkCTreeNode *node);
30668 void gtk_ctree_toggle_expansion_recursive (GtkCTree *ctree,
30669 GtkCTreeNode *node);
30670 void gtk_ctree_select (GtkCTree *ctree,
30671 GtkCTreeNode *node);
30672 void gtk_ctree_select_recursive (GtkCTree *ctree,
30673 GtkCTreeNode *node);
30674 void gtk_ctree_unselect (GtkCTree *ctree,
30675 GtkCTreeNode *node);
30676 void gtk_ctree_unselect_recursive (GtkCTree *ctree,
30677 GtkCTreeNode *node);
30678 void gtk_ctree_real_select_recursive (GtkCTree *ctree,
30679 GtkCTreeNode *node,
30680 gint state);
30681
30682
30683
30684
30685
30686 void gtk_ctree_node_set_text (GtkCTree *ctree,
30687 GtkCTreeNode *node,
30688 gint column,
30689 const gchar *text);
30690 void gtk_ctree_node_set_pixmap (GtkCTree *ctree,
30691 GtkCTreeNode *node,
30692 gint column,
30693 GdkPixmap *pixmap,
30694 GdkBitmap *mask);
30695 void gtk_ctree_node_set_pixtext (GtkCTree *ctree,
30696 GtkCTreeNode *node,
30697 gint column,
30698 const gchar *text,
30699 guint8 spacing,
30700 GdkPixmap *pixmap,
30701 GdkBitmap *mask);
30702 void gtk_ctree_set_node_info (GtkCTree *ctree,
30703 GtkCTreeNode *node,
30704 const gchar *text,
30705 guint8 spacing,
30706 GdkPixmap *pixmap_closed,
30707 GdkBitmap *mask_closed,
30708 GdkPixmap *pixmap_opened,
30709 GdkBitmap *mask_opened,
30710 gboolean is_leaf,
30711 gboolean expanded);
30712 void gtk_ctree_node_set_shift (GtkCTree *ctree,
30713 GtkCTreeNode *node,
30714 gint column,
30715 gint vertical,
30716 gint horizontal);
30717 void gtk_ctree_node_set_selectable (GtkCTree *ctree,
30718 GtkCTreeNode *node,
30719 gboolean selectable);
30720 gboolean gtk_ctree_node_get_selectable (GtkCTree *ctree,
30721 GtkCTreeNode *node);
30722 GtkCellType gtk_ctree_node_get_cell_type (GtkCTree *ctree,
30723 GtkCTreeNode *node,
30724 gint column);
30725 gboolean gtk_ctree_node_get_text (GtkCTree *ctree,
30726 GtkCTreeNode *node,
30727 gint column,
30728 gchar **text);
30729 gboolean gtk_ctree_node_get_pixmap (GtkCTree *ctree,
30730 GtkCTreeNode *node,
30731 gint column,
30732 GdkPixmap **pixmap,
30733 GdkBitmap **mask);
30734 gboolean gtk_ctree_node_get_pixtext (GtkCTree *ctree,
30735 GtkCTreeNode *node,
30736 gint column,
30737 gchar **text,
30738 guint8 *spacing,
30739 GdkPixmap **pixmap,
30740 GdkBitmap **mask);
30741 gboolean gtk_ctree_get_node_info (GtkCTree *ctree,
30742 GtkCTreeNode *node,
30743 gchar **text,
30744 guint8 *spacing,
30745 GdkPixmap **pixmap_closed,
30746 GdkBitmap **mask_closed,
30747 GdkPixmap **pixmap_opened,
30748 GdkBitmap **mask_opened,
30749 gboolean *is_leaf,
30750 gboolean *expanded);
30751 void gtk_ctree_node_set_row_style (GtkCTree *ctree,
30752 GtkCTreeNode *node,
30753 GtkStyle *style);
30754 GtkStyle * gtk_ctree_node_get_row_style (GtkCTree *ctree,
30755 GtkCTreeNode *node);
30756 void gtk_ctree_node_set_cell_style (GtkCTree *ctree,
30757 GtkCTreeNode *node,
30758 gint column,
30759 GtkStyle *style);
30760 GtkStyle * gtk_ctree_node_get_cell_style (GtkCTree *ctree,
30761 GtkCTreeNode *node,
30762 gint column);
30763 void gtk_ctree_node_set_foreground (GtkCTree *ctree,
30764 GtkCTreeNode *node,
30765 const GdkColor *color);
30766 void gtk_ctree_node_set_background (GtkCTree *ctree,
30767 GtkCTreeNode *node,
30768 const GdkColor *color);
30769 void gtk_ctree_node_set_row_data (GtkCTree *ctree,
30770 GtkCTreeNode *node,
30771 gpointer data);
30772 void gtk_ctree_node_set_row_data_full (GtkCTree *ctree,
30773 GtkCTreeNode *node,
30774 gpointer data,
30775 GtkDestroyNotify destroy);
30776 gpointer gtk_ctree_node_get_row_data (GtkCTree *ctree,
30777 GtkCTreeNode *node);
30778 void gtk_ctree_node_moveto (GtkCTree *ctree,
30779 GtkCTreeNode *node,
30780 gint column,
30781 gfloat row_align,
30782 gfloat col_align);
30783 GtkVisibility gtk_ctree_node_is_visible (GtkCTree *ctree,
30784 GtkCTreeNode *node);
30785
30786
30787
30788
30789
30790 void gtk_ctree_set_indent (GtkCTree *ctree,
30791 gint indent);
30792 void gtk_ctree_set_spacing (GtkCTree *ctree,
30793 gint spacing);
30794 void gtk_ctree_set_show_stub (GtkCTree *ctree,
30795 gboolean show_stub);
30796 void gtk_ctree_set_line_style (GtkCTree *ctree,
30797 GtkCTreeLineStyle line_style);
30798 void gtk_ctree_set_expander_style (GtkCTree *ctree,
30799 GtkCTreeExpanderStyle expander_style);
30800 void gtk_ctree_set_drag_compare_func (GtkCTree *ctree,
30801 GtkCTreeCompareDragFunc cmp_func);
30802
30803
30804
30805
30806
30807 void gtk_ctree_sort_node (GtkCTree *ctree,
30808 GtkCTreeNode *node);
30809 void gtk_ctree_sort_recursive (GtkCTree *ctree,
30810 GtkCTreeNode *node);
30811 # 439 "/usr/include/gtk-2.0/gtk/gtkctree.h"
30812 GType gtk_ctree_node_get_type (void) __attribute__((__const__));
30813 # 69 "/usr/include/gtk-2.0/gtk/gtk.h" 2
30814
30815 # 1 "/usr/include/gtk-2.0/gtk/gtkcurve.h" 1
30816 # 42 "/usr/include/gtk-2.0/gtk/gtkcurve.h"
30817
30818 # 1 "/usr/include/gtk-2.0/gtk/gtkdrawingarea.h" 1
30819 # 35 "/usr/include/gtk-2.0/gtk/gtkdrawingarea.h"
30820 # 45 "/usr/include/gtk-2.0/gtk/gtkdrawingarea.h"
30821 typedef struct _GtkDrawingArea GtkDrawingArea;
30822 typedef struct _GtkDrawingAreaClass GtkDrawingAreaClass;
30823
30824 struct _GtkDrawingArea
30825 {
30826 GtkWidget widget;
30827
30828 gpointer draw_data;
30829 };
30830
30831 struct _GtkDrawingAreaClass
30832 {
30833 GtkWidgetClass parent_class;
30834
30835
30836 void (*_gtk_reserved1) (void);
30837 void (*_gtk_reserved2) (void);
30838 void (*_gtk_reserved3) (void);
30839 void (*_gtk_reserved4) (void);
30840 };
30841
30842
30843 GType gtk_drawing_area_get_type (void) __attribute__((__const__));
30844 GtkWidget* gtk_drawing_area_new (void);
30845
30846
30847 void gtk_drawing_area_size (GtkDrawingArea *darea,
30848 gint width,
30849 gint height);
30850 # 43 "/usr/include/gtk-2.0/gtk/gtkcurve.h" 2
30851 # 54 "/usr/include/gtk-2.0/gtk/gtkcurve.h"
30852 typedef struct _GtkCurve GtkCurve;
30853 typedef struct _GtkCurveClass GtkCurveClass;
30854
30855
30856 struct _GtkCurve
30857 {
30858 GtkDrawingArea graph;
30859
30860 gint cursor_type;
30861 gfloat min_x;
30862 gfloat max_x;
30863 gfloat min_y;
30864 gfloat max_y;
30865 GdkPixmap *pixmap;
30866 GtkCurveType curve_type;
30867 gint height;
30868 gint grab_point;
30869 gint last;
30870
30871
30872 gint num_points;
30873 GdkPoint *point;
30874
30875
30876 gint num_ctlpoints;
30877 gfloat (*ctlpoint)[2];
30878 };
30879
30880 struct _GtkCurveClass
30881 {
30882 GtkDrawingAreaClass parent_class;
30883
30884 void (* curve_type_changed) (GtkCurve *curve);
30885
30886
30887 void (*_gtk_reserved1) (void);
30888 void (*_gtk_reserved2) (void);
30889 void (*_gtk_reserved3) (void);
30890 void (*_gtk_reserved4) (void);
30891 };
30892
30893
30894 GType gtk_curve_get_type (void) __attribute__((__const__));
30895 GtkWidget* gtk_curve_new (void);
30896 void gtk_curve_reset (GtkCurve *curve);
30897 void gtk_curve_set_gamma (GtkCurve *curve, gfloat gamma_);
30898 void gtk_curve_set_range (GtkCurve *curve,
30899 gfloat min_x, gfloat max_x,
30900 gfloat min_y, gfloat max_y);
30901 void gtk_curve_get_vector (GtkCurve *curve,
30902 int veclen, gfloat vector[]);
30903 void gtk_curve_set_vector (GtkCurve *curve,
30904 int veclen, gfloat vector[]);
30905 void gtk_curve_set_curve_type (GtkCurve *curve, GtkCurveType type);
30906 # 70 "/usr/include/gtk-2.0/gtk/gtk.h" 2
30907
30908
30909
30910
30911 # 1 "/usr/include/gtk-2.0/gtk/gtkeditable.h" 1
30912 # 34 "/usr/include/gtk-2.0/gtk/gtkeditable.h"
30913 # 43 "/usr/include/gtk-2.0/gtk/gtkeditable.h"
30914 typedef struct _GtkEditable GtkEditable;
30915 typedef struct _GtkEditableClass GtkEditableClass;
30916
30917 struct _GtkEditableClass
30918 {
30919 GTypeInterface base_iface;
30920
30921
30922 void (* insert_text) (GtkEditable *editable,
30923 const gchar *text,
30924 gint length,
30925 gint *position);
30926 void (* delete_text) (GtkEditable *editable,
30927 gint start_pos,
30928 gint end_pos);
30929 void (* changed) (GtkEditable *editable);
30930
30931
30932 void (* do_insert_text) (GtkEditable *editable,
30933 const gchar *text,
30934 gint length,
30935 gint *position);
30936 void (* do_delete_text) (GtkEditable *editable,
30937 gint start_pos,
30938 gint end_pos);
30939
30940 gchar* (* get_chars) (GtkEditable *editable,
30941 gint start_pos,
30942 gint end_pos);
30943 void (* set_selection_bounds) (GtkEditable *editable,
30944 gint start_pos,
30945 gint end_pos);
30946 gboolean (* get_selection_bounds) (GtkEditable *editable,
30947 gint *start_pos,
30948 gint *end_pos);
30949 void (* set_position) (GtkEditable *editable,
30950 gint position);
30951 gint (* get_position) (GtkEditable *editable);
30952 };
30953
30954 GType gtk_editable_get_type (void) __attribute__((__const__));
30955 void gtk_editable_select_region (GtkEditable *editable,
30956 gint start,
30957 gint end);
30958 gboolean gtk_editable_get_selection_bounds (GtkEditable *editable,
30959 gint *start,
30960 gint *end);
30961 void gtk_editable_insert_text (GtkEditable *editable,
30962 const gchar *new_text,
30963 gint new_text_length,
30964 gint *position);
30965 void gtk_editable_delete_text (GtkEditable *editable,
30966 gint start_pos,
30967 gint end_pos);
30968 gchar* gtk_editable_get_chars (GtkEditable *editable,
30969 gint start_pos,
30970 gint end_pos);
30971 void gtk_editable_cut_clipboard (GtkEditable *editable);
30972 void gtk_editable_copy_clipboard (GtkEditable *editable);
30973 void gtk_editable_paste_clipboard (GtkEditable *editable);
30974 void gtk_editable_delete_selection (GtkEditable *editable);
30975 void gtk_editable_set_position (GtkEditable *editable,
30976 gint position);
30977 gint gtk_editable_get_position (GtkEditable *editable);
30978 void gtk_editable_set_editable (GtkEditable *editable,
30979 gboolean is_editable);
30980 gboolean gtk_editable_get_editable (GtkEditable *editable);
30981 # 74 "/usr/include/gtk-2.0/gtk/gtk.h" 2
30982
30983 # 1 "/usr/include/gtk-2.0/gtk/gtkentry.h" 1
30984 # 33 "/usr/include/gtk-2.0/gtk/gtkentry.h"
30985
30986 # 1 "/usr/include/gtk-2.0/gtk/gtkimcontext.h" 1
30987 # 27 "/usr/include/gtk-2.0/gtk/gtkimcontext.h"
30988 # 37 "/usr/include/gtk-2.0/gtk/gtkimcontext.h"
30989 typedef struct _GtkIMContext GtkIMContext;
30990 typedef struct _GtkIMContextClass GtkIMContextClass;
30991
30992 struct _GtkIMContext
30993 {
30994 GObject parent_instance;
30995 };
30996
30997 struct _GtkIMContextClass
30998 {
30999
31000
31001
31002 GtkObjectClass parent_class;
31003
31004
31005 void (*preedit_start) (GtkIMContext *context);
31006 void (*preedit_end) (GtkIMContext *context);
31007 void (*preedit_changed) (GtkIMContext *context);
31008 void (*commit) (GtkIMContext *context, const gchar *str);
31009 gboolean (*retrieve_surrounding) (GtkIMContext *context);
31010 gboolean (*delete_surrounding) (GtkIMContext *context,
31011 gint offset,
31012 gint n_chars);
31013
31014
31015 void (*set_client_window) (GtkIMContext *context,
31016 GdkWindow *window);
31017 void (*get_preedit_string) (GtkIMContext *context,
31018 gchar **str,
31019 PangoAttrList **attrs,
31020 gint *cursor_pos);
31021 gboolean (*filter_keypress) (GtkIMContext *context,
31022 GdkEventKey *event);
31023 void (*focus_in) (GtkIMContext *context);
31024 void (*focus_out) (GtkIMContext *context);
31025 void (*reset) (GtkIMContext *context);
31026 void (*set_cursor_location) (GtkIMContext *context,
31027 GdkRectangle *area);
31028 void (*set_use_preedit) (GtkIMContext *context,
31029 gboolean use_preedit);
31030 void (*set_surrounding) (GtkIMContext *context,
31031 const gchar *text,
31032 gint len,
31033 gint cursor_index);
31034 gboolean (*get_surrounding) (GtkIMContext *context,
31035 gchar **text,
31036 gint *cursor_index);
31037
31038
31039 void (*_gtk_reserved1) (void);
31040 void (*_gtk_reserved2) (void);
31041 void (*_gtk_reserved3) (void);
31042 void (*_gtk_reserved4) (void);
31043 void (*_gtk_reserved5) (void);
31044 void (*_gtk_reserved6) (void);
31045 };
31046
31047 GType gtk_im_context_get_type (void) __attribute__((__const__));
31048
31049 void gtk_im_context_set_client_window (GtkIMContext *context,
31050 GdkWindow *window);
31051 void gtk_im_context_get_preedit_string (GtkIMContext *context,
31052 gchar **str,
31053 PangoAttrList **attrs,
31054 gint *cursor_pos);
31055 gboolean gtk_im_context_filter_keypress (GtkIMContext *context,
31056 GdkEventKey *event);
31057 void gtk_im_context_focus_in (GtkIMContext *context);
31058 void gtk_im_context_focus_out (GtkIMContext *context);
31059 void gtk_im_context_reset (GtkIMContext *context);
31060 void gtk_im_context_set_cursor_location (GtkIMContext *context,
31061 GdkRectangle *area);
31062 void gtk_im_context_set_use_preedit (GtkIMContext *context,
31063 gboolean use_preedit);
31064 void gtk_im_context_set_surrounding (GtkIMContext *context,
31065 const gchar *text,
31066 gint len,
31067 gint cursor_index);
31068 gboolean gtk_im_context_get_surrounding (GtkIMContext *context,
31069 gchar **text,
31070 gint *cursor_index);
31071 gboolean gtk_im_context_delete_surrounding (GtkIMContext *context,
31072 gint offset,
31073 gint n_chars);
31074 # 34 "/usr/include/gtk-2.0/gtk/gtkentry.h" 2
31075
31076
31077 # 1 "/usr/include/gtk-2.0/gtk/gtkentrycompletion.h" 1
31078 # 26 "/usr/include/gtk-2.0/gtk/gtkentrycompletion.h"
31079
31080 # 1 "/usr/include/gtk-2.0/gtk/gtkliststore.h" 1
31081 # 27 "/usr/include/gtk-2.0/gtk/gtkliststore.h"
31082 # 37 "/usr/include/gtk-2.0/gtk/gtkliststore.h"
31083 typedef struct _GtkListStore GtkListStore;
31084 typedef struct _GtkListStoreClass GtkListStoreClass;
31085
31086 struct _GtkListStore
31087 {
31088 GObject parent;
31089
31090
31091 gint stamp;
31092 gpointer seq;
31093 gpointer _gtk_reserved1;
31094 GList *sort_list;
31095 gint n_columns;
31096 gint sort_column_id;
31097 GtkSortType order;
31098 GType *column_headers;
31099 gint length;
31100 GtkTreeIterCompareFunc default_sort_func;
31101 gpointer default_sort_data;
31102 GtkDestroyNotify default_sort_destroy;
31103 guint columns_dirty : 1;
31104 };
31105
31106 struct _GtkListStoreClass
31107 {
31108 GObjectClass parent_class;
31109
31110
31111 void (*_gtk_reserved1) (void);
31112 void (*_gtk_reserved2) (void);
31113 void (*_gtk_reserved3) (void);
31114 void (*_gtk_reserved4) (void);
31115 };
31116
31117
31118 GType gtk_list_store_get_type (void) __attribute__((__const__));
31119 GtkListStore *gtk_list_store_new (gint n_columns,
31120 ...);
31121 GtkListStore *gtk_list_store_newv (gint n_columns,
31122 GType *types);
31123 void gtk_list_store_set_column_types (GtkListStore *list_store,
31124 gint n_columns,
31125 GType *types);
31126
31127
31128
31129 void gtk_list_store_set_value (GtkListStore *list_store,
31130 GtkTreeIter *iter,
31131 gint column,
31132 GValue *value);
31133 void gtk_list_store_set (GtkListStore *list_store,
31134 GtkTreeIter *iter,
31135 ...);
31136 void gtk_list_store_set_valist (GtkListStore *list_store,
31137 GtkTreeIter *iter,
31138 va_list var_args);
31139 gboolean gtk_list_store_remove (GtkListStore *list_store,
31140 GtkTreeIter *iter);
31141 void gtk_list_store_insert (GtkListStore *list_store,
31142 GtkTreeIter *iter,
31143 gint position);
31144 void gtk_list_store_insert_before (GtkListStore *list_store,
31145 GtkTreeIter *iter,
31146 GtkTreeIter *sibling);
31147 void gtk_list_store_insert_after (GtkListStore *list_store,
31148 GtkTreeIter *iter,
31149 GtkTreeIter *sibling);
31150 void gtk_list_store_insert_with_values (GtkListStore *list_store,
31151 GtkTreeIter *iter,
31152 gint position,
31153 ...);
31154 void gtk_list_store_insert_with_valuesv (GtkListStore *list_store,
31155 GtkTreeIter *iter,
31156 gint position,
31157 gint *columns,
31158 GValue *values,
31159 gint n_values);
31160 void gtk_list_store_prepend (GtkListStore *list_store,
31161 GtkTreeIter *iter);
31162 void gtk_list_store_append (GtkListStore *list_store,
31163 GtkTreeIter *iter);
31164 void gtk_list_store_clear (GtkListStore *list_store);
31165 gboolean gtk_list_store_iter_is_valid (GtkListStore *list_store,
31166 GtkTreeIter *iter);
31167 void gtk_list_store_reorder (GtkListStore *store,
31168 gint *new_order);
31169 void gtk_list_store_swap (GtkListStore *store,
31170 GtkTreeIter *a,
31171 GtkTreeIter *b);
31172 void gtk_list_store_move_after (GtkListStore *store,
31173 GtkTreeIter *iter,
31174 GtkTreeIter *position);
31175 void gtk_list_store_move_before (GtkListStore *store,
31176 GtkTreeIter *iter,
31177 GtkTreeIter *position);
31178 # 27 "/usr/include/gtk-2.0/gtk/gtkentrycompletion.h" 2
31179
31180
31181 # 1 "/usr/include/gtk-2.0/gtk/gtktreemodelfilter.h" 1
31182 # 26 "/usr/include/gtk-2.0/gtk/gtktreemodelfilter.h"
31183 # 35 "/usr/include/gtk-2.0/gtk/gtktreemodelfilter.h"
31184 typedef gboolean (* GtkTreeModelFilterVisibleFunc) (GtkTreeModel *model,
31185 GtkTreeIter *iter,
31186 gpointer data);
31187 typedef void (* GtkTreeModelFilterModifyFunc) (GtkTreeModel *model,
31188 GtkTreeIter *iter,
31189 GValue *value,
31190 gint column,
31191 gpointer data);
31192
31193 typedef struct _GtkTreeModelFilter GtkTreeModelFilter;
31194 typedef struct _GtkTreeModelFilterClass GtkTreeModelFilterClass;
31195 typedef struct _GtkTreeModelFilterPrivate GtkTreeModelFilterPrivate;
31196
31197 struct _GtkTreeModelFilter
31198 {
31199 GObject parent;
31200
31201
31202 GtkTreeModelFilterPrivate *priv;
31203 };
31204
31205 struct _GtkTreeModelFilterClass
31206 {
31207 GObjectClass parent_class;
31208
31209
31210 void (*_gtk_reserved0) (void);
31211 void (*_gtk_reserved1) (void);
31212 void (*_gtk_reserved2) (void);
31213 void (*_gtk_reserved3) (void);
31214 };
31215
31216
31217 GType gtk_tree_model_filter_get_type (void) __attribute__((__const__));
31218 GtkTreeModel *gtk_tree_model_filter_new (GtkTreeModel *child_model,
31219 GtkTreePath *root);
31220 void gtk_tree_model_filter_set_visible_func (GtkTreeModelFilter *filter,
31221 GtkTreeModelFilterVisibleFunc func,
31222 gpointer data,
31223 GtkDestroyNotify destroy);
31224 void gtk_tree_model_filter_set_modify_func (GtkTreeModelFilter *filter,
31225 gint n_columns,
31226 GType *types,
31227 GtkTreeModelFilterModifyFunc func,
31228 gpointer data,
31229 GtkDestroyNotify destroy);
31230 void gtk_tree_model_filter_set_visible_column (GtkTreeModelFilter *filter,
31231 gint column);
31232
31233 GtkTreeModel *gtk_tree_model_filter_get_model (GtkTreeModelFilter *filter);
31234
31235
31236 void gtk_tree_model_filter_convert_child_iter_to_iter (GtkTreeModelFilter *filter,
31237 GtkTreeIter *filter_iter,
31238 GtkTreeIter *child_iter);
31239 void gtk_tree_model_filter_convert_iter_to_child_iter (GtkTreeModelFilter *filter,
31240 GtkTreeIter *child_iter,
31241 GtkTreeIter *filter_iter);
31242 GtkTreePath *gtk_tree_model_filter_convert_child_path_to_path (GtkTreeModelFilter *filter,
31243 GtkTreePath *child_path);
31244 GtkTreePath *gtk_tree_model_filter_convert_path_to_child_path (GtkTreeModelFilter *filter,
31245 GtkTreePath *filter_path);
31246
31247
31248 void gtk_tree_model_filter_refilter (GtkTreeModelFilter *filter);
31249 void gtk_tree_model_filter_clear_cache (GtkTreeModelFilter *filter);
31250 # 29 "/usr/include/gtk-2.0/gtk/gtkentrycompletion.h" 2
31251 # 39 "/usr/include/gtk-2.0/gtk/gtkentrycompletion.h"
31252 typedef struct _GtkEntryCompletion GtkEntryCompletion;
31253 typedef struct _GtkEntryCompletionClass GtkEntryCompletionClass;
31254 typedef struct _GtkEntryCompletionPrivate GtkEntryCompletionPrivate;
31255
31256 typedef gboolean (* GtkEntryCompletionMatchFunc) (GtkEntryCompletion *completion,
31257 const gchar *key,
31258 GtkTreeIter *iter,
31259 gpointer user_data);
31260
31261
31262 struct _GtkEntryCompletion
31263 {
31264 GObject parent_instance;
31265
31266
31267 GtkEntryCompletionPrivate *priv;
31268 };
31269
31270 struct _GtkEntryCompletionClass
31271 {
31272 GObjectClass parent_class;
31273
31274 gboolean (* match_selected) (GtkEntryCompletion *completion,
31275 GtkTreeModel *model,
31276 GtkTreeIter *iter);
31277 void (* action_activated) (GtkEntryCompletion *completion,
31278 gint index_);
31279 gboolean (* insert_prefix) (GtkEntryCompletion *completion,
31280 const gchar *prefix);
31281
31282
31283 void (*_gtk_reserved0) (void);
31284 void (*_gtk_reserved1) (void);
31285 void (*_gtk_reserved2) (void);
31286 };
31287
31288
31289 GType gtk_entry_completion_get_type (void) __attribute__((__const__));
31290 GtkEntryCompletion *gtk_entry_completion_new (void);
31291
31292 GtkWidget *gtk_entry_completion_get_entry (GtkEntryCompletion *completion);
31293
31294 void gtk_entry_completion_set_model (GtkEntryCompletion *completion,
31295 GtkTreeModel *model);
31296 GtkTreeModel *gtk_entry_completion_get_model (GtkEntryCompletion *completion);
31297
31298 void gtk_entry_completion_set_match_func (GtkEntryCompletion *completion,
31299 GtkEntryCompletionMatchFunc func,
31300 gpointer func_data,
31301 GDestroyNotify func_notify);
31302 void gtk_entry_completion_set_minimum_key_length (GtkEntryCompletion *completion,
31303 gint length);
31304 gint gtk_entry_completion_get_minimum_key_length (GtkEntryCompletion *completion);
31305 void gtk_entry_completion_complete (GtkEntryCompletion *completion);
31306 void gtk_entry_completion_insert_prefix (GtkEntryCompletion *completion);
31307
31308 void gtk_entry_completion_insert_action_text (GtkEntryCompletion *completion,
31309 gint index_,
31310 const gchar *text);
31311 void gtk_entry_completion_insert_action_markup (GtkEntryCompletion *completion,
31312 gint index_,
31313 const gchar *markup);
31314 void gtk_entry_completion_delete_action (GtkEntryCompletion *completion,
31315 gint index_);
31316
31317 void gtk_entry_completion_set_inline_completion (GtkEntryCompletion *completion,
31318 gboolean inline_completion);
31319 gboolean gtk_entry_completion_get_inline_completion (GtkEntryCompletion *completion);
31320 void gtk_entry_completion_set_popup_completion (GtkEntryCompletion *completion,
31321 gboolean popup_completion);
31322 gboolean gtk_entry_completion_get_popup_completion (GtkEntryCompletion *completion);
31323 void gtk_entry_completion_set_popup_set_width (GtkEntryCompletion *completion,
31324 gboolean popup_set_width);
31325 gboolean gtk_entry_completion_get_popup_set_width (GtkEntryCompletion *completion);
31326 void gtk_entry_completion_set_popup_single_match (GtkEntryCompletion *completion,
31327 gboolean popup_single_match);
31328 gboolean gtk_entry_completion_get_popup_single_match (GtkEntryCompletion *completion);
31329
31330
31331
31332 void gtk_entry_completion_set_text_column (GtkEntryCompletion *completion,
31333 gint column);
31334 gint gtk_entry_completion_get_text_column (GtkEntryCompletion *completion);
31335 # 36 "/usr/include/gtk-2.0/gtk/gtkentry.h" 2
31336 # 48 "/usr/include/gtk-2.0/gtk/gtkentry.h"
31337 typedef struct _GtkEntry GtkEntry;
31338 typedef struct _GtkEntryClass GtkEntryClass;
31339
31340 struct _GtkEntry
31341 {
31342 GtkWidget widget;
31343
31344 gchar *text;
31345
31346 guint editable : 1;
31347 guint visible : 1;
31348 guint overwrite_mode : 1;
31349 guint in_drag : 1;
31350
31351 guint16 text_length;
31352 guint16 text_max_length;
31353
31354
31355 GdkWindow *text_area;
31356 GtkIMContext *im_context;
31357 GtkWidget *popup_menu;
31358
31359 gint current_pos;
31360 gint selection_bound;
31361
31362 PangoLayout *cached_layout;
31363 guint cache_includes_preedit : 1;
31364
31365 guint need_im_reset : 1;
31366
31367 guint has_frame : 1;
31368
31369 guint activates_default : 1;
31370
31371 guint cursor_visible : 1;
31372
31373 guint in_click : 1;
31374
31375 guint is_cell_renderer : 1;
31376 guint editing_canceled : 1;
31377
31378 guint mouse_cursor_obscured : 1;
31379
31380 guint select_words : 1;
31381 guint select_lines : 1;
31382 guint resolved_dir : 4;
31383 guint button;
31384 guint blink_timeout;
31385 guint recompute_idle;
31386 gint scroll_offset;
31387 gint ascent;
31388 gint descent;
31389
31390 guint16 text_size;
31391 guint16 n_bytes;
31392
31393 guint16 preedit_length;
31394 guint16 preedit_cursor;
31395
31396 gint dnd_position;
31397
31398 gint drag_start_x;
31399 gint drag_start_y;
31400
31401 gunichar invisible_char;
31402
31403 gint width_chars;
31404 };
31405
31406 struct _GtkEntryClass
31407 {
31408 GtkWidgetClass parent_class;
31409
31410
31411 void (* populate_popup) (GtkEntry *entry,
31412 GtkMenu *menu);
31413
31414
31415
31416 void (* activate) (GtkEntry *entry);
31417 void (* move_cursor) (GtkEntry *entry,
31418 GtkMovementStep step,
31419 gint count,
31420 gboolean extend_selection);
31421 void (* insert_at_cursor) (GtkEntry *entry,
31422 const gchar *str);
31423 void (* delete_from_cursor) (GtkEntry *entry,
31424 GtkDeleteType type,
31425 gint count);
31426 void (* backspace) (GtkEntry *entry);
31427 void (* cut_clipboard) (GtkEntry *entry);
31428 void (* copy_clipboard) (GtkEntry *entry);
31429 void (* paste_clipboard) (GtkEntry *entry);
31430 void (* toggle_overwrite) (GtkEntry *entry);
31431
31432
31433 void (*_gtk_reserved1) (void);
31434 void (*_gtk_reserved2) (void);
31435 void (*_gtk_reserved3) (void);
31436 };
31437
31438 GType gtk_entry_get_type (void) __attribute__((__const__));
31439 GtkWidget* gtk_entry_new (void);
31440 void gtk_entry_set_visibility (GtkEntry *entry,
31441 gboolean visible);
31442 gboolean gtk_entry_get_visibility (GtkEntry *entry);
31443 void gtk_entry_set_invisible_char (GtkEntry *entry,
31444 gunichar ch);
31445 gunichar gtk_entry_get_invisible_char (GtkEntry *entry);
31446 void gtk_entry_set_has_frame (GtkEntry *entry,
31447 gboolean setting);
31448 gboolean gtk_entry_get_has_frame (GtkEntry *entry);
31449
31450 void gtk_entry_set_max_length (GtkEntry *entry,
31451 gint max);
31452 gint gtk_entry_get_max_length (GtkEntry *entry);
31453 void gtk_entry_set_activates_default (GtkEntry *entry,
31454 gboolean setting);
31455 gboolean gtk_entry_get_activates_default (GtkEntry *entry);
31456
31457 void gtk_entry_set_width_chars (GtkEntry *entry,
31458 gint n_chars);
31459 gint gtk_entry_get_width_chars (GtkEntry *entry);
31460
31461
31462
31463 void gtk_entry_set_text (GtkEntry *entry,
31464 const gchar *text);
31465
31466 const gchar* gtk_entry_get_text (GtkEntry *entry);
31467
31468 PangoLayout* gtk_entry_get_layout (GtkEntry *entry);
31469 void gtk_entry_get_layout_offsets (GtkEntry *entry,
31470 gint *x,
31471 gint *y);
31472 void gtk_entry_set_alignment (GtkEntry *entry,
31473 gfloat xalign);
31474 gfloat gtk_entry_get_alignment (GtkEntry *entry);
31475
31476 void gtk_entry_set_completion (GtkEntry *entry,
31477 GtkEntryCompletion *completion);
31478 GtkEntryCompletion *gtk_entry_get_completion (GtkEntry *entry);
31479
31480 gint gtk_entry_layout_index_to_text_index (GtkEntry *entry,
31481 gint layout_index);
31482 gint gtk_entry_text_index_to_layout_index (GtkEntry *entry,
31483 gint text_index);
31484
31485
31486
31487
31488
31489
31490 GtkWidget* gtk_entry_new_with_max_length (gint max);
31491 void gtk_entry_append_text (GtkEntry *entry,
31492 const gchar *text);
31493 void gtk_entry_prepend_text (GtkEntry *entry,
31494 const gchar *text);
31495 void gtk_entry_set_position (GtkEntry *entry,
31496 gint position);
31497 void gtk_entry_select_region (GtkEntry *entry,
31498 gint start,
31499 gint end);
31500 void gtk_entry_set_editable (GtkEntry *entry,
31501 gboolean editable);
31502
31503
31504
31505 void _gtk_entry_get_borders (GtkEntry *entry,
31506 gint *xborder,
31507 gint *yborder);
31508 # 75 "/usr/include/gtk-2.0/gtk/gtk.h" 2
31509
31510
31511
31512 # 1 "/usr/include/gtk-2.0/gtk/gtkeventbox.h" 1
31513 # 35 "/usr/include/gtk-2.0/gtk/gtkeventbox.h"
31514 # 44 "/usr/include/gtk-2.0/gtk/gtkeventbox.h"
31515 typedef struct _GtkEventBox GtkEventBox;
31516 typedef struct _GtkEventBoxClass GtkEventBoxClass;
31517
31518 struct _GtkEventBox
31519 {
31520 GtkBin bin;
31521 };
31522
31523 struct _GtkEventBoxClass
31524 {
31525 GtkBinClass parent_class;
31526 };
31527
31528 GType gtk_event_box_get_type (void) __attribute__((__const__));
31529 GtkWidget* gtk_event_box_new (void);
31530 gboolean gtk_event_box_get_visible_window (GtkEventBox *event_box);
31531 void gtk_event_box_set_visible_window (GtkEventBox *event_box,
31532 gboolean visible_window);
31533 gboolean gtk_event_box_get_above_child (GtkEventBox *event_box);
31534 void gtk_event_box_set_above_child (GtkEventBox *event_box,
31535 gboolean above_child);
31536 # 78 "/usr/include/gtk-2.0/gtk/gtk.h" 2
31537
31538 # 1 "/usr/include/gtk-2.0/gtk/gtkexpander.h" 1
31539 # 29 "/usr/include/gtk-2.0/gtk/gtkexpander.h"
31540 # 38 "/usr/include/gtk-2.0/gtk/gtkexpander.h"
31541 typedef struct _GtkExpander GtkExpander;
31542 typedef struct _GtkExpanderClass GtkExpanderClass;
31543 typedef struct _GtkExpanderPrivate GtkExpanderPrivate;
31544
31545 struct _GtkExpander
31546 {
31547 GtkBin bin;
31548
31549 GtkExpanderPrivate *priv;
31550 };
31551
31552 struct _GtkExpanderClass
31553 {
31554 GtkBinClass parent_class;
31555
31556
31557
31558
31559 void (* activate) (GtkExpander *expander);
31560 };
31561
31562 GType gtk_expander_get_type (void) __attribute__((__const__));
31563
31564 GtkWidget *gtk_expander_new (const gchar *label);
31565 GtkWidget *gtk_expander_new_with_mnemonic (const gchar *label);
31566
31567 void gtk_expander_set_expanded (GtkExpander *expander,
31568 gboolean expanded);
31569 gboolean gtk_expander_get_expanded (GtkExpander *expander);
31570
31571
31572 void gtk_expander_set_spacing (GtkExpander *expander,
31573 gint spacing);
31574 gint gtk_expander_get_spacing (GtkExpander *expander);
31575
31576 void gtk_expander_set_label (GtkExpander *expander,
31577 const gchar *label);
31578 const gchar *gtk_expander_get_label (GtkExpander *expander);
31579
31580 void gtk_expander_set_use_underline (GtkExpander *expander,
31581 gboolean use_underline);
31582 gboolean gtk_expander_get_use_underline (GtkExpander *expander);
31583
31584 void gtk_expander_set_use_markup (GtkExpander *expander,
31585 gboolean use_markup);
31586 gboolean gtk_expander_get_use_markup (GtkExpander *expander);
31587
31588 void gtk_expander_set_label_widget (GtkExpander *expander,
31589 GtkWidget *label_widget);
31590 GtkWidget *gtk_expander_get_label_widget (GtkExpander *expander);
31591 # 79 "/usr/include/gtk-2.0/gtk/gtk.h" 2
31592
31593 # 1 "/usr/include/gtk-2.0/gtk/gtkfilesel.h" 1
31594 # 35 "/usr/include/gtk-2.0/gtk/gtkfilesel.h"
31595 # 46 "/usr/include/gtk-2.0/gtk/gtkfilesel.h"
31596 typedef struct _GtkFileSelection GtkFileSelection;
31597 typedef struct _GtkFileSelectionClass GtkFileSelectionClass;
31598
31599 struct _GtkFileSelection
31600 {
31601
31602 GtkDialog parent_instance;
31603
31604
31605 GtkWidget *dir_list;
31606 GtkWidget *file_list;
31607 GtkWidget *selection_entry;
31608 GtkWidget *selection_text;
31609 GtkWidget *main_vbox;
31610 GtkWidget *ok_button;
31611 GtkWidget *cancel_button;
31612 GtkWidget *help_button;
31613 GtkWidget *history_pulldown;
31614 GtkWidget *history_menu;
31615 GList *history_list;
31616 GtkWidget *fileop_dialog;
31617 GtkWidget *fileop_entry;
31618 gchar *fileop_file;
31619 gpointer cmpl_state;
31620
31621 GtkWidget *fileop_c_dir;
31622 GtkWidget *fileop_del_file;
31623 GtkWidget *fileop_ren_file;
31624
31625 GtkWidget *button_area;
31626 GtkWidget *action_area;
31627
31628
31629 GPtrArray *selected_names;
31630 gchar *last_selected;
31631 };
31632
31633 struct _GtkFileSelectionClass
31634 {
31635 GtkDialogClass parent_class;
31636
31637
31638 void (*_gtk_reserved1) (void);
31639 void (*_gtk_reserved2) (void);
31640 void (*_gtk_reserved3) (void);
31641 void (*_gtk_reserved4) (void);
31642 };
31643 # 102 "/usr/include/gtk-2.0/gtk/gtkfilesel.h"
31644 GType gtk_file_selection_get_type (void) __attribute__((__const__));
31645 GtkWidget* gtk_file_selection_new (const gchar *title);
31646 void gtk_file_selection_set_filename (GtkFileSelection *filesel,
31647 const gchar *filename);
31648 const gchar* gtk_file_selection_get_filename (GtkFileSelection *filesel);
31649
31650 void gtk_file_selection_complete (GtkFileSelection *filesel,
31651 const gchar *pattern);
31652 void gtk_file_selection_show_fileop_buttons (GtkFileSelection *filesel);
31653 void gtk_file_selection_hide_fileop_buttons (GtkFileSelection *filesel);
31654
31655 gchar** gtk_file_selection_get_selections (GtkFileSelection *filesel);
31656
31657 void gtk_file_selection_set_select_multiple (GtkFileSelection *filesel,
31658 gboolean select_multiple);
31659 gboolean gtk_file_selection_get_select_multiple (GtkFileSelection *filesel);
31660 # 80 "/usr/include/gtk-2.0/gtk/gtk.h" 2
31661
31662 # 1 "/usr/include/gtk-2.0/gtk/gtkfixed.h" 1
31663 # 35 "/usr/include/gtk-2.0/gtk/gtkfixed.h"
31664 # 45 "/usr/include/gtk-2.0/gtk/gtkfixed.h"
31665 typedef struct _GtkFixed GtkFixed;
31666 typedef struct _GtkFixedClass GtkFixedClass;
31667 typedef struct _GtkFixedChild GtkFixedChild;
31668
31669 struct _GtkFixed
31670 {
31671 GtkContainer container;
31672
31673 GList *children;
31674 };
31675
31676 struct _GtkFixedClass
31677 {
31678 GtkContainerClass parent_class;
31679 };
31680
31681 struct _GtkFixedChild
31682 {
31683 GtkWidget *widget;
31684 gint x;
31685 gint y;
31686 };
31687
31688
31689 GType gtk_fixed_get_type (void) __attribute__((__const__));
31690 GtkWidget* gtk_fixed_new (void);
31691 void gtk_fixed_put (GtkFixed *fixed,
31692 GtkWidget *widget,
31693 gint x,
31694 gint y);
31695 void gtk_fixed_move (GtkFixed *fixed,
31696 GtkWidget *widget,
31697 gint x,
31698 gint y);
31699 void gtk_fixed_set_has_window (GtkFixed *fixed,
31700 gboolean has_window);
31701 gboolean gtk_fixed_get_has_window (GtkFixed *fixed);
31702 # 81 "/usr/include/gtk-2.0/gtk/gtk.h" 2
31703
31704 # 1 "/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h" 1
31705 # 25 "/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h"
31706
31707 # 1 "/usr/include/gtk-2.0/gtk/gtkfilechooser.h" 1
31708 # 24 "/usr/include/gtk-2.0/gtk/gtkfilechooser.h"
31709
31710 # 1 "/usr/include/gtk-2.0/gtk/gtkfilefilter.h" 1
31711 # 26 "/usr/include/gtk-2.0/gtk/gtkfilefilter.h"
31712
31713
31714
31715
31716
31717
31718 typedef struct _GtkFileFilter GtkFileFilter;
31719 typedef struct _GtkFileFilterInfo GtkFileFilterInfo;
31720
31721 typedef enum {
31722 GTK_FILE_FILTER_FILENAME = 1 << 0,
31723 GTK_FILE_FILTER_URI = 1 << 1,
31724 GTK_FILE_FILTER_DISPLAY_NAME = 1 << 2,
31725 GTK_FILE_FILTER_MIME_TYPE = 1 << 3
31726 } GtkFileFilterFlags;
31727
31728 typedef gboolean (*GtkFileFilterFunc) (const GtkFileFilterInfo *filter_info,
31729 gpointer data);
31730
31731 struct _GtkFileFilterInfo
31732 {
31733 GtkFileFilterFlags contains;
31734
31735 const gchar *filename;
31736 const gchar *uri;
31737 const gchar *display_name;
31738 const gchar *mime_type;
31739 };
31740
31741 GType gtk_file_filter_get_type (void) __attribute__((__const__));
31742
31743 GtkFileFilter * gtk_file_filter_new (void);
31744 void gtk_file_filter_set_name (GtkFileFilter *filter,
31745 const gchar *name);
31746 const gchar *gtk_file_filter_get_name (GtkFileFilter *filter);
31747
31748 void gtk_file_filter_add_mime_type (GtkFileFilter *filter,
31749 const gchar *mime_type);
31750 void gtk_file_filter_add_pattern (GtkFileFilter *filter,
31751 const gchar *pattern);
31752 void gtk_file_filter_add_pixbuf_formats (GtkFileFilter *filter);
31753 void gtk_file_filter_add_custom (GtkFileFilter *filter,
31754 GtkFileFilterFlags needed,
31755 GtkFileFilterFunc func,
31756 gpointer data,
31757 GDestroyNotify notify);
31758
31759 GtkFileFilterFlags gtk_file_filter_get_needed (GtkFileFilter *filter);
31760 gboolean gtk_file_filter_filter (GtkFileFilter *filter,
31761 const GtkFileFilterInfo *filter_info);
31762 # 25 "/usr/include/gtk-2.0/gtk/gtkfilechooser.h" 2
31763 # 33 "/usr/include/gtk-2.0/gtk/gtkfilechooser.h"
31764 typedef struct _GtkFileChooser GtkFileChooser;
31765
31766 typedef enum
31767 {
31768 GTK_FILE_CHOOSER_ACTION_OPEN,
31769 GTK_FILE_CHOOSER_ACTION_SAVE,
31770 GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER,
31771 GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER
31772 } GtkFileChooserAction;
31773
31774 typedef enum
31775 {
31776 GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM,
31777 GTK_FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME,
31778 GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN
31779 } GtkFileChooserConfirmation;
31780
31781 GType gtk_file_chooser_get_type (void) __attribute__((__const__));
31782
31783
31784
31785
31786
31787 typedef enum {
31788 GTK_FILE_CHOOSER_ERROR_NONEXISTENT,
31789 GTK_FILE_CHOOSER_ERROR_BAD_FILENAME
31790 } GtkFileChooserError;
31791
31792 GQuark gtk_file_chooser_error_quark (void);
31793
31794
31795
31796 void gtk_file_chooser_set_action (GtkFileChooser *chooser,
31797 GtkFileChooserAction action);
31798 GtkFileChooserAction gtk_file_chooser_get_action (GtkFileChooser *chooser);
31799 void gtk_file_chooser_set_local_only (GtkFileChooser *chooser,
31800 gboolean local_only);
31801 gboolean gtk_file_chooser_get_local_only (GtkFileChooser *chooser);
31802 void gtk_file_chooser_set_select_multiple (GtkFileChooser *chooser,
31803 gboolean select_multiple);
31804 gboolean gtk_file_chooser_get_select_multiple (GtkFileChooser *chooser);
31805 void gtk_file_chooser_set_show_hidden (GtkFileChooser *chooser,
31806 gboolean show_hidden);
31807 gboolean gtk_file_chooser_get_show_hidden (GtkFileChooser *chooser);
31808
31809 void gtk_file_chooser_set_do_overwrite_confirmation (GtkFileChooser *chooser,
31810 gboolean do_overwrite_confirmation);
31811 gboolean gtk_file_chooser_get_do_overwrite_confirmation (GtkFileChooser *chooser);
31812
31813
31814
31815 void gtk_file_chooser_set_current_name (GtkFileChooser *chooser,
31816 const gchar *name);
31817 # 104 "/usr/include/gtk-2.0/gtk/gtkfilechooser.h"
31818 gchar * gtk_file_chooser_get_filename (GtkFileChooser *chooser);
31819 gboolean gtk_file_chooser_set_filename (GtkFileChooser *chooser,
31820 const char *filename);
31821 gboolean gtk_file_chooser_select_filename (GtkFileChooser *chooser,
31822 const char *filename);
31823 void gtk_file_chooser_unselect_filename (GtkFileChooser *chooser,
31824 const char *filename);
31825 void gtk_file_chooser_select_all (GtkFileChooser *chooser);
31826 void gtk_file_chooser_unselect_all (GtkFileChooser *chooser);
31827 GSList * gtk_file_chooser_get_filenames (GtkFileChooser *chooser);
31828 gboolean gtk_file_chooser_set_current_folder (GtkFileChooser *chooser,
31829 const gchar *filename);
31830 gchar * gtk_file_chooser_get_current_folder (GtkFileChooser *chooser);
31831
31832
31833
31834
31835 gchar * gtk_file_chooser_get_uri (GtkFileChooser *chooser);
31836 gboolean gtk_file_chooser_set_uri (GtkFileChooser *chooser,
31837 const char *uri);
31838 gboolean gtk_file_chooser_select_uri (GtkFileChooser *chooser,
31839 const char *uri);
31840 void gtk_file_chooser_unselect_uri (GtkFileChooser *chooser,
31841 const char *uri);
31842 GSList * gtk_file_chooser_get_uris (GtkFileChooser *chooser);
31843 gboolean gtk_file_chooser_set_current_folder_uri (GtkFileChooser *chooser,
31844 const gchar *uri);
31845 gchar * gtk_file_chooser_get_current_folder_uri (GtkFileChooser *chooser);
31846
31847
31848
31849 void gtk_file_chooser_set_preview_widget (GtkFileChooser *chooser,
31850 GtkWidget *preview_widget);
31851 GtkWidget *gtk_file_chooser_get_preview_widget (GtkFileChooser *chooser);
31852 void gtk_file_chooser_set_preview_widget_active (GtkFileChooser *chooser,
31853 gboolean active);
31854 gboolean gtk_file_chooser_get_preview_widget_active (GtkFileChooser *chooser);
31855 void gtk_file_chooser_set_use_preview_label (GtkFileChooser *chooser,
31856 gboolean use_label);
31857 gboolean gtk_file_chooser_get_use_preview_label (GtkFileChooser *chooser);
31858
31859 char *gtk_file_chooser_get_preview_filename (GtkFileChooser *chooser);
31860 char *gtk_file_chooser_get_preview_uri (GtkFileChooser *chooser);
31861
31862
31863
31864 void gtk_file_chooser_set_extra_widget (GtkFileChooser *chooser,
31865 GtkWidget *extra_widget);
31866 GtkWidget *gtk_file_chooser_get_extra_widget (GtkFileChooser *chooser);
31867
31868
31869
31870 void gtk_file_chooser_add_filter (GtkFileChooser *chooser,
31871 GtkFileFilter *filter);
31872 void gtk_file_chooser_remove_filter (GtkFileChooser *chooser,
31873 GtkFileFilter *filter);
31874 GSList *gtk_file_chooser_list_filters (GtkFileChooser *chooser);
31875
31876
31877
31878 void gtk_file_chooser_set_filter (GtkFileChooser *chooser,
31879 GtkFileFilter *filter);
31880 GtkFileFilter *gtk_file_chooser_get_filter (GtkFileChooser *chooser);
31881
31882
31883
31884 gboolean gtk_file_chooser_add_shortcut_folder (GtkFileChooser *chooser,
31885 const char *folder,
31886 GError **error);
31887 gboolean gtk_file_chooser_remove_shortcut_folder (GtkFileChooser *chooser,
31888 const char *folder,
31889 GError **error);
31890 GSList *gtk_file_chooser_list_shortcut_folders (GtkFileChooser *chooser);
31891
31892 gboolean gtk_file_chooser_add_shortcut_folder_uri (GtkFileChooser *chooser,
31893 const char *uri,
31894 GError **error);
31895 gboolean gtk_file_chooser_remove_shortcut_folder_uri (GtkFileChooser *chooser,
31896 const char *uri,
31897 GError **error);
31898 GSList *gtk_file_chooser_list_shortcut_folder_uris (GtkFileChooser *chooser);
31899 # 26 "/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h" 2
31900 # 44 "/usr/include/gtk-2.0/gtk/gtkfilechooserbutton.h"
31901 typedef struct _GtkFileChooserButton GtkFileChooserButton;
31902 typedef struct _GtkFileChooserButtonPrivate GtkFileChooserButtonPrivate;
31903 typedef struct _GtkFileChooserButtonClass GtkFileChooserButtonClass;
31904
31905 struct _GtkFileChooserButton
31906 {
31907
31908 GtkHBox parent;
31909
31910 GtkFileChooserButtonPrivate *priv;
31911 };
31912
31913 struct _GtkFileChooserButtonClass
31914 {
31915
31916 GtkHBoxClass parent_class;
31917
31918 void (*__gtk_reserved1);
31919 void (*__gtk_reserved2);
31920 void (*__gtk_reserved3);
31921 void (*__gtk_reserved4);
31922 void (*__gtk_reserved5);
31923 void (*__gtk_reserved6);
31924 void (*__gtk_reserved7);
31925 void (*__gtk_reserved8);
31926 };
31927
31928
31929 GType gtk_file_chooser_button_get_type (void) __attribute__((__const__));
31930 GtkWidget * gtk_file_chooser_button_new (const gchar *title,
31931 GtkFileChooserAction action);
31932 GtkWidget * gtk_file_chooser_button_new_with_backend (const gchar *title,
31933 GtkFileChooserAction action,
31934 const gchar *backend);
31935 GtkWidget * gtk_file_chooser_button_new_with_dialog (GtkWidget *dialog);
31936 const gchar *gtk_file_chooser_button_get_title (GtkFileChooserButton *button);
31937 void gtk_file_chooser_button_set_title (GtkFileChooserButton *button,
31938 const gchar *title);
31939 gint gtk_file_chooser_button_get_width_chars (GtkFileChooserButton *button);
31940 void gtk_file_chooser_button_set_width_chars (GtkFileChooserButton *button,
31941 gint n_chars);
31942 # 82 "/usr/include/gtk-2.0/gtk/gtk.h" 2
31943
31944 # 1 "/usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h" 1
31945 # 25 "/usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h"
31946
31947 # 1 "/usr/include/gtk-2.0/gtk/gtkfilechooser.h" 1
31948 # 26 "/usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h" 2
31949 # 36 "/usr/include/gtk-2.0/gtk/gtkfilechooserdialog.h"
31950 typedef struct _GtkFileChooserDialog GtkFileChooserDialog;
31951 typedef struct _GtkFileChooserDialogClass GtkFileChooserDialogClass;
31952
31953 typedef struct _GtkFileChooserDialogPrivate GtkFileChooserDialogPrivate;
31954
31955 struct _GtkFileChooserDialogClass
31956 {
31957 GtkDialogClass parent_class;
31958 };
31959
31960 struct _GtkFileChooserDialog
31961 {
31962 GtkDialog parent_instance;
31963
31964 GtkFileChooserDialogPrivate *priv;
31965 };
31966
31967 GType gtk_file_chooser_dialog_get_type (void) __attribute__((__const__));
31968 GtkWidget *gtk_file_chooser_dialog_new (const gchar *title,
31969 GtkWindow *parent,
31970 GtkFileChooserAction action,
31971 const gchar *first_button_text,
31972 ...) __attribute__((__sentinel__));
31973 GtkWidget *gtk_file_chooser_dialog_new_with_backend (const gchar *title,
31974 GtkWindow *parent,
31975 GtkFileChooserAction action,
31976 const gchar *backend,
31977 const gchar *first_button_text,
31978 ...) __attribute__((__sentinel__));
31979 # 83 "/usr/include/gtk-2.0/gtk/gtk.h" 2
31980
31981 # 1 "/usr/include/gtk-2.0/gtk/gtkfilechooserwidget.h" 1
31982 # 27 "/usr/include/gtk-2.0/gtk/gtkfilechooserwidget.h"
31983 # 36 "/usr/include/gtk-2.0/gtk/gtkfilechooserwidget.h"
31984 typedef struct _GtkFileChooserWidget GtkFileChooserWidget;
31985 typedef struct _GtkFileChooserWidgetClass GtkFileChooserWidgetClass;
31986
31987 typedef struct _GtkFileChooserWidgetPrivate GtkFileChooserWidgetPrivate;
31988
31989 struct _GtkFileChooserWidgetClass
31990 {
31991 GtkVBoxClass parent_class;
31992 };
31993
31994 struct _GtkFileChooserWidget
31995 {
31996 GtkVBox parent_instance;
31997
31998 GtkFileChooserWidgetPrivate *priv;
31999 };
32000
32001 GType gtk_file_chooser_widget_get_type (void) __attribute__((__const__));
32002 GtkWidget *gtk_file_chooser_widget_new (GtkFileChooserAction action);
32003 GtkWidget *gtk_file_chooser_widget_new_with_backend (GtkFileChooserAction action,
32004 const gchar *backend);
32005 # 84 "/usr/include/gtk-2.0/gtk/gtk.h" 2
32006
32007 # 1 "/usr/include/gtk-2.0/gtk/gtkfontbutton.h" 1
32008 # 33 "/usr/include/gtk-2.0/gtk/gtkfontbutton.h"
32009 # 45 "/usr/include/gtk-2.0/gtk/gtkfontbutton.h"
32010 typedef struct _GtkFontButton GtkFontButton;
32011 typedef struct _GtkFontButtonClass GtkFontButtonClass;
32012 typedef struct _GtkFontButtonPrivate GtkFontButtonPrivate;
32013
32014 struct _GtkFontButton {
32015 GtkButton button;
32016
32017
32018 GtkFontButtonPrivate *priv;
32019 };
32020
32021 struct _GtkFontButtonClass {
32022 GtkButtonClass parent_class;
32023
32024
32025 void (* font_set) (GtkFontButton *gfp);
32026
32027
32028 void (*_gtk_reserved1) (void);
32029 void (*_gtk_reserved2) (void);
32030 void (*_gtk_reserved3) (void);
32031 void (*_gtk_reserved4) (void);
32032 };
32033
32034
32035 GType gtk_font_button_get_type (void) __attribute__((__const__));
32036 GtkWidget *gtk_font_button_new (void);
32037 GtkWidget *gtk_font_button_new_with_font (const gchar *fontname);
32038
32039 const gchar *gtk_font_button_get_title (GtkFontButton *font_button);
32040 void gtk_font_button_set_title (GtkFontButton *font_button,
32041 const gchar *title);
32042 gboolean gtk_font_button_get_use_font (GtkFontButton *font_button);
32043 void gtk_font_button_set_use_font (GtkFontButton *font_button,
32044 gboolean use_font);
32045 gboolean gtk_font_button_get_use_size (GtkFontButton *font_button);
32046 void gtk_font_button_set_use_size (GtkFontButton *font_button,
32047 gboolean use_size);
32048 const gchar* gtk_font_button_get_font_name (GtkFontButton *font_button);
32049 gboolean gtk_font_button_set_font_name (GtkFontButton *font_button,
32050 const gchar *fontname);
32051 gboolean gtk_font_button_get_show_style (GtkFontButton *font_button);
32052 void gtk_font_button_set_show_style (GtkFontButton *font_button,
32053 gboolean show_style);
32054 gboolean gtk_font_button_get_show_size (GtkFontButton *font_button);
32055 void gtk_font_button_set_show_size (GtkFontButton *font_button,
32056 gboolean show_size);
32057 # 85 "/usr/include/gtk-2.0/gtk/gtk.h" 2
32058
32059 # 1 "/usr/include/gtk-2.0/gtk/gtkfontsel.h" 1
32060 # 39 "/usr/include/gtk-2.0/gtk/gtkfontsel.h"
32061 # 57 "/usr/include/gtk-2.0/gtk/gtkfontsel.h"
32062 typedef struct _GtkFontSelection GtkFontSelection;
32063 typedef struct _GtkFontSelectionClass GtkFontSelectionClass;
32064
32065 typedef struct _GtkFontSelectionDialog GtkFontSelectionDialog;
32066 typedef struct _GtkFontSelectionDialogClass GtkFontSelectionDialogClass;
32067
32068 struct _GtkFontSelection
32069 {
32070 GtkVBox parent_instance;
32071
32072 GtkWidget *font_entry;
32073 GtkWidget *family_list;
32074 GtkWidget *font_style_entry;
32075 GtkWidget *face_list;
32076 GtkWidget *size_entry;
32077 GtkWidget *size_list;
32078 GtkWidget *pixels_button;
32079 GtkWidget *points_button;
32080 GtkWidget *filter_button;
32081 GtkWidget *preview_entry;
32082
32083 PangoFontFamily *family;
32084 PangoFontFace *face;
32085
32086 gint size;
32087
32088 GdkFont *font;
32089
32090
32091 };
32092
32093 struct _GtkFontSelectionClass
32094 {
32095 GtkVBoxClass parent_class;
32096
32097
32098 void (*_gtk_reserved1) (void);
32099 void (*_gtk_reserved2) (void);
32100 void (*_gtk_reserved3) (void);
32101 void (*_gtk_reserved4) (void);
32102 };
32103
32104
32105 struct _GtkFontSelectionDialog
32106 {
32107 GtkDialog parent_instance;
32108
32109
32110 GtkWidget *fontsel;
32111
32112 GtkWidget *main_vbox;
32113 GtkWidget *action_area;
32114
32115 GtkWidget *ok_button;
32116 GtkWidget *apply_button;
32117 GtkWidget *cancel_button;
32118
32119
32120
32121
32122
32123
32124 gint dialog_width;
32125 gboolean auto_resize;
32126 };
32127
32128 struct _GtkFontSelectionDialogClass
32129 {
32130 GtkDialogClass parent_class;
32131
32132
32133 void (*_gtk_reserved1) (void);
32134 void (*_gtk_reserved2) (void);
32135 void (*_gtk_reserved3) (void);
32136 void (*_gtk_reserved4) (void);
32137 };
32138 # 141 "/usr/include/gtk-2.0/gtk/gtkfontsel.h"
32139 GType gtk_font_selection_get_type (void) __attribute__((__const__));
32140 GtkWidget* gtk_font_selection_new (void);
32141 gchar* gtk_font_selection_get_font_name (GtkFontSelection *fontsel);
32142
32143
32144 GdkFont* gtk_font_selection_get_font (GtkFontSelection *fontsel);
32145
32146
32147 gboolean gtk_font_selection_set_font_name (GtkFontSelection *fontsel,
32148 const gchar *fontname);
32149 const gchar* gtk_font_selection_get_preview_text (GtkFontSelection *fontsel);
32150 void gtk_font_selection_set_preview_text (GtkFontSelection *fontsel,
32151 const gchar *text);
32152
32153
32154
32155
32156
32157
32158
32159 GType gtk_font_selection_dialog_get_type (void) __attribute__((__const__));
32160 GtkWidget* gtk_font_selection_dialog_new (const gchar *title);
32161
32162
32163
32164
32165
32166
32167 gchar* gtk_font_selection_dialog_get_font_name (GtkFontSelectionDialog *fsd);
32168
32169
32170
32171
32172
32173 GdkFont* gtk_font_selection_dialog_get_font (GtkFontSelectionDialog *fsd);
32174
32175
32176
32177
32178
32179
32180 gboolean gtk_font_selection_dialog_set_font_name (GtkFontSelectionDialog *fsd,
32181 const gchar *fontname);
32182
32183
32184
32185 const gchar* gtk_font_selection_dialog_get_preview_text (GtkFontSelectionDialog *fsd);
32186
32187
32188
32189 void gtk_font_selection_dialog_set_preview_text (GtkFontSelectionDialog *fsd,
32190 const gchar *text);
32191 # 86 "/usr/include/gtk-2.0/gtk/gtk.h" 2
32192
32193
32194 # 1 "/usr/include/gtk-2.0/gtk/gtkgamma.h" 1
32195 # 45 "/usr/include/gtk-2.0/gtk/gtkgamma.h"
32196 # 54 "/usr/include/gtk-2.0/gtk/gtkgamma.h"
32197 typedef struct _GtkGammaCurve GtkGammaCurve;
32198 typedef struct _GtkGammaCurveClass GtkGammaCurveClass;
32199
32200
32201 struct _GtkGammaCurve
32202 {
32203 GtkVBox vbox;
32204
32205 GtkWidget *table;
32206 GtkWidget *curve;
32207 GtkWidget *button[5];
32208
32209 gfloat gamma;
32210 GtkWidget *gamma_dialog;
32211 GtkWidget *gamma_text;
32212 };
32213
32214 struct _GtkGammaCurveClass
32215 {
32216 GtkVBoxClass parent_class;
32217
32218
32219 void (*_gtk_reserved1) (void);
32220 void (*_gtk_reserved2) (void);
32221 void (*_gtk_reserved3) (void);
32222 void (*_gtk_reserved4) (void);
32223 };
32224
32225
32226 GType gtk_gamma_curve_get_type (void) __attribute__((__const__));
32227 GtkWidget* gtk_gamma_curve_new (void);
32228 # 88 "/usr/include/gtk-2.0/gtk/gtk.h" 2
32229
32230 # 1 "/usr/include/gtk-2.0/gtk/gtkgc.h" 1
32231 # 34 "/usr/include/gtk-2.0/gtk/gtkgc.h"
32232
32233
32234 GdkGC* gtk_gc_get (gint depth,
32235 GdkColormap *colormap,
32236 GdkGCValues *values,
32237 GdkGCValuesMask values_mask);
32238 void gtk_gc_release (GdkGC *gc);
32239 # 89 "/usr/include/gtk-2.0/gtk/gtk.h" 2
32240
32241 # 1 "/usr/include/gtk-2.0/gtk/gtkhandlebox.h" 1
32242 # 41 "/usr/include/gtk-2.0/gtk/gtkhandlebox.h"
32243 # 51 "/usr/include/gtk-2.0/gtk/gtkhandlebox.h"
32244 typedef struct _GtkHandleBox GtkHandleBox;
32245 typedef struct _GtkHandleBoxClass GtkHandleBoxClass;
32246
32247 struct _GtkHandleBox
32248 {
32249 GtkBin bin;
32250
32251 GdkWindow *bin_window;
32252 GdkWindow *float_window;
32253 GtkShadowType shadow_type;
32254 guint handle_position : 2;
32255 guint float_window_mapped : 1;
32256 guint child_detached : 1;
32257 guint in_drag : 1;
32258 guint shrink_on_detach : 1;
32259
32260 signed int snap_edge : 3;
32261
32262
32263
32264 gint deskoff_x, deskoff_y;
32265
32266 GtkAllocation attach_allocation;
32267 GtkAllocation float_allocation;
32268 };
32269
32270 struct _GtkHandleBoxClass
32271 {
32272 GtkBinClass parent_class;
32273
32274 void (*child_attached) (GtkHandleBox *handle_box,
32275 GtkWidget *child);
32276 void (*child_detached) (GtkHandleBox *handle_box,
32277 GtkWidget *child);
32278
32279
32280 void (*_gtk_reserved1) (void);
32281 void (*_gtk_reserved2) (void);
32282 void (*_gtk_reserved3) (void);
32283 void (*_gtk_reserved4) (void);
32284 };
32285
32286
32287 GType gtk_handle_box_get_type (void) __attribute__((__const__));
32288 GtkWidget* gtk_handle_box_new (void);
32289 void gtk_handle_box_set_shadow_type (GtkHandleBox *handle_box,
32290 GtkShadowType type);
32291 GtkShadowType gtk_handle_box_get_shadow_type (GtkHandleBox *handle_box);
32292 void gtk_handle_box_set_handle_position (GtkHandleBox *handle_box,
32293 GtkPositionType position);
32294 GtkPositionType gtk_handle_box_get_handle_position(GtkHandleBox *handle_box);
32295 void gtk_handle_box_set_snap_edge (GtkHandleBox *handle_box,
32296 GtkPositionType edge);
32297 GtkPositionType gtk_handle_box_get_snap_edge (GtkHandleBox *handle_box);
32298 # 90 "/usr/include/gtk-2.0/gtk/gtk.h" 2
32299
32300 # 1 "/usr/include/gtk-2.0/gtk/gtkhbbox.h" 1
32301 # 34 "/usr/include/gtk-2.0/gtk/gtkhbbox.h"
32302 # 44 "/usr/include/gtk-2.0/gtk/gtkhbbox.h"
32303 typedef struct _GtkHButtonBox GtkHButtonBox;
32304 typedef struct _GtkHButtonBoxClass GtkHButtonBoxClass;
32305
32306 struct _GtkHButtonBox
32307 {
32308 GtkButtonBox button_box;
32309 };
32310
32311 struct _GtkHButtonBoxClass
32312 {
32313 GtkButtonBoxClass parent_class;
32314 };
32315
32316
32317 GType gtk_hbutton_box_get_type (void) __attribute__((__const__));
32318 GtkWidget* gtk_hbutton_box_new (void);
32319
32320
32321
32322
32323 gint gtk_hbutton_box_get_spacing_default (void);
32324 GtkButtonBoxStyle gtk_hbutton_box_get_layout_default (void);
32325
32326 void gtk_hbutton_box_set_spacing_default (gint spacing);
32327 void gtk_hbutton_box_set_layout_default (GtkButtonBoxStyle layout);
32328 # 91 "/usr/include/gtk-2.0/gtk/gtk.h" 2
32329
32330
32331 # 1 "/usr/include/gtk-2.0/gtk/gtkhpaned.h" 1
32332 # 30 "/usr/include/gtk-2.0/gtk/gtkhpaned.h"
32333
32334 # 1 "/usr/include/gtk-2.0/gtk/gtkpaned.h" 1
32335 # 33 "/usr/include/gtk-2.0/gtk/gtkpaned.h"
32336 # 43 "/usr/include/gtk-2.0/gtk/gtkpaned.h"
32337 typedef struct _GtkPaned GtkPaned;
32338 typedef struct _GtkPanedClass GtkPanedClass;
32339 typedef struct _GtkPanedPrivate GtkPanedPrivate;
32340
32341 struct _GtkPaned
32342 {
32343 GtkContainer container;
32344
32345 GtkWidget *child1;
32346 GtkWidget *child2;
32347
32348 GdkWindow *handle;
32349 GdkGC *xor_gc;
32350 GdkCursorType cursor_type;
32351
32352
32353 GdkRectangle handle_pos;
32354
32355 gint child1_size;
32356 gint last_allocation;
32357 gint min_position;
32358 gint max_position;
32359
32360 guint position_set : 1;
32361 guint in_drag : 1;
32362 guint child1_shrink : 1;
32363 guint child1_resize : 1;
32364 guint child2_shrink : 1;
32365 guint child2_resize : 1;
32366 guint orientation : 1;
32367 guint in_recursion : 1;
32368 guint handle_prelit : 1;
32369
32370 GtkWidget *last_child1_focus;
32371 GtkWidget *last_child2_focus;
32372 GtkPanedPrivate *priv;
32373
32374 gint drag_pos;
32375 gint original_position;
32376 };
32377
32378 struct _GtkPanedClass
32379 {
32380 GtkContainerClass parent_class;
32381
32382 gboolean (* cycle_child_focus) (GtkPaned *paned,
32383 gboolean reverse);
32384 gboolean (* toggle_handle_focus) (GtkPaned *paned);
32385 gboolean (* move_handle) (GtkPaned *paned,
32386 GtkScrollType scroll);
32387 gboolean (* cycle_handle_focus) (GtkPaned *paned,
32388 gboolean reverse);
32389 gboolean (* accept_position) (GtkPaned *paned);
32390 gboolean (* cancel_position) (GtkPaned *paned);
32391
32392
32393 void (*_gtk_reserved1) (void);
32394 void (*_gtk_reserved2) (void);
32395 void (*_gtk_reserved3) (void);
32396 void (*_gtk_reserved4) (void);
32397 };
32398
32399
32400 GType gtk_paned_get_type (void) __attribute__((__const__));
32401 void gtk_paned_add1 (GtkPaned *paned,
32402 GtkWidget *child);
32403 void gtk_paned_add2 (GtkPaned *paned,
32404 GtkWidget *child);
32405 void gtk_paned_pack1 (GtkPaned *paned,
32406 GtkWidget *child,
32407 gboolean resize,
32408 gboolean shrink);
32409 void gtk_paned_pack2 (GtkPaned *paned,
32410 GtkWidget *child,
32411 gboolean resize,
32412 gboolean shrink);
32413 gint gtk_paned_get_position (GtkPaned *paned);
32414 void gtk_paned_set_position (GtkPaned *paned,
32415 gint position);
32416
32417 GtkWidget *gtk_paned_get_child1 (GtkPaned *paned);
32418 GtkWidget *gtk_paned_get_child2 (GtkPaned *paned);
32419
32420
32421
32422 void gtk_paned_compute_position (GtkPaned *paned,
32423 gint allocation,
32424 gint child1_req,
32425 gint child2_req);
32426 # 31 "/usr/include/gtk-2.0/gtk/gtkhpaned.h" 2
32427 # 42 "/usr/include/gtk-2.0/gtk/gtkhpaned.h"
32428 typedef struct _GtkHPaned GtkHPaned;
32429 typedef struct _GtkHPanedClass GtkHPanedClass;
32430
32431 struct _GtkHPaned
32432 {
32433 GtkPaned paned;
32434 };
32435
32436 struct _GtkHPanedClass
32437 {
32438 GtkPanedClass parent_class;
32439 };
32440
32441 GType gtk_hpaned_get_type (void) __attribute__((__const__));
32442 GtkWidget *gtk_hpaned_new (void);
32443 # 93 "/usr/include/gtk-2.0/gtk/gtk.h" 2
32444
32445 # 1 "/usr/include/gtk-2.0/gtk/gtkhruler.h" 1
32446 # 42 "/usr/include/gtk-2.0/gtk/gtkhruler.h"
32447
32448 # 1 "/usr/include/gtk-2.0/gtk/gtkruler.h" 1
32449 # 45 "/usr/include/gtk-2.0/gtk/gtkruler.h"
32450 # 55 "/usr/include/gtk-2.0/gtk/gtkruler.h"
32451 typedef struct _GtkRuler GtkRuler;
32452 typedef struct _GtkRulerClass GtkRulerClass;
32453 typedef struct _GtkRulerMetric GtkRulerMetric;
32454
32455
32456
32457
32458 struct _GtkRuler
32459 {
32460 GtkWidget widget;
32461
32462 GdkPixmap *backing_store;
32463 GdkGC *non_gr_exp_gc;
32464 GtkRulerMetric *metric;
32465 gint xsrc, ysrc;
32466 gint slider_size;
32467
32468
32469 gdouble lower;
32470
32471 gdouble upper;
32472
32473 gdouble position;
32474
32475 gdouble max_size;
32476 };
32477
32478 struct _GtkRulerClass
32479 {
32480 GtkWidgetClass parent_class;
32481
32482 void (* draw_ticks) (GtkRuler *ruler);
32483 void (* draw_pos) (GtkRuler *ruler);
32484
32485
32486 void (*_gtk_reserved1) (void);
32487 void (*_gtk_reserved2) (void);
32488 void (*_gtk_reserved3) (void);
32489 void (*_gtk_reserved4) (void);
32490 };
32491
32492 struct _GtkRulerMetric
32493 {
32494 gchar *metric_name;
32495 gchar *abbrev;
32496
32497
32498 gdouble pixels_per_unit;
32499 gdouble ruler_scale[10];
32500 gint subdivide[5];
32501 };
32502
32503
32504 GType gtk_ruler_get_type (void) __attribute__((__const__));
32505 void gtk_ruler_set_metric (GtkRuler *ruler,
32506 GtkMetricType metric);
32507 void gtk_ruler_set_range (GtkRuler *ruler,
32508 gdouble lower,
32509 gdouble upper,
32510 gdouble position,
32511 gdouble max_size);
32512 void gtk_ruler_draw_ticks (GtkRuler *ruler);
32513 void gtk_ruler_draw_pos (GtkRuler *ruler);
32514
32515 GtkMetricType gtk_ruler_get_metric (GtkRuler *ruler);
32516 void gtk_ruler_get_range (GtkRuler *ruler,
32517 gdouble *lower,
32518 gdouble *upper,
32519 gdouble *position,
32520 gdouble *max_size);
32521 # 43 "/usr/include/gtk-2.0/gtk/gtkhruler.h" 2
32522 # 56 "/usr/include/gtk-2.0/gtk/gtkhruler.h"
32523 typedef struct _GtkHRuler GtkHRuler;
32524 typedef struct _GtkHRulerClass GtkHRulerClass;
32525
32526 struct _GtkHRuler
32527 {
32528 GtkRuler ruler;
32529 };
32530
32531 struct _GtkHRulerClass
32532 {
32533 GtkRulerClass parent_class;
32534 };
32535
32536
32537 GType gtk_hruler_get_type (void) __attribute__((__const__));
32538 GtkWidget* gtk_hruler_new (void);
32539 # 94 "/usr/include/gtk-2.0/gtk/gtk.h" 2
32540
32541 # 1 "/usr/include/gtk-2.0/gtk/gtkhscale.h" 1
32542 # 32 "/usr/include/gtk-2.0/gtk/gtkhscale.h"
32543
32544 # 1 "/usr/include/gtk-2.0/gtk/gtkscale.h" 1
32545 # 35 "/usr/include/gtk-2.0/gtk/gtkscale.h"
32546 # 45 "/usr/include/gtk-2.0/gtk/gtkscale.h"
32547 typedef struct _GtkScale GtkScale;
32548 typedef struct _GtkScaleClass GtkScaleClass;
32549
32550 struct _GtkScale
32551 {
32552 GtkRange range;
32553
32554 gint digits;
32555 guint draw_value : 1;
32556 guint value_pos : 2;
32557 };
32558
32559 struct _GtkScaleClass
32560 {
32561 GtkRangeClass parent_class;
32562
32563 gchar* (* format_value) (GtkScale *scale,
32564 gdouble value);
32565
32566 void (* draw_value) (GtkScale *scale);
32567
32568 void (* get_layout_offsets) (GtkScale *scale,
32569 gint *x,
32570 gint *y);
32571
32572 void (*_gtk_reserved2) (void);
32573 void (*_gtk_reserved3) (void);
32574 void (*_gtk_reserved4) (void);
32575 };
32576
32577 GType gtk_scale_get_type (void) __attribute__((__const__));
32578
32579 void gtk_scale_set_digits (GtkScale *scale,
32580 gint digits);
32581 gint gtk_scale_get_digits (GtkScale *scale);
32582 void gtk_scale_set_draw_value (GtkScale *scale,
32583 gboolean draw_value);
32584 gboolean gtk_scale_get_draw_value (GtkScale *scale);
32585 void gtk_scale_set_value_pos (GtkScale *scale,
32586 GtkPositionType pos);
32587 GtkPositionType gtk_scale_get_value_pos (GtkScale *scale);
32588
32589 PangoLayout *gtk_scale_get_layout (GtkScale *scale);
32590 void gtk_scale_get_layout_offsets (GtkScale *scale,
32591 gint *x,
32592 gint *y);
32593 void _gtk_scale_clear_layout (GtkScale *scale);
32594
32595 void _gtk_scale_get_value_size (GtkScale *scale,
32596 gint *width,
32597 gint *height);
32598 gchar *_gtk_scale_format_value (GtkScale *scale,
32599 gdouble value);
32600 # 33 "/usr/include/gtk-2.0/gtk/gtkhscale.h" 2
32601 # 45 "/usr/include/gtk-2.0/gtk/gtkhscale.h"
32602 typedef struct _GtkHScale GtkHScale;
32603 typedef struct _GtkHScaleClass GtkHScaleClass;
32604
32605 struct _GtkHScale
32606 {
32607 GtkScale scale;
32608 };
32609
32610 struct _GtkHScaleClass
32611 {
32612 GtkScaleClass parent_class;
32613 };
32614
32615
32616 GType gtk_hscale_get_type (void) __attribute__((__const__));
32617 GtkWidget* gtk_hscale_new (GtkAdjustment *adjustment);
32618 GtkWidget* gtk_hscale_new_with_range (gdouble min,
32619 gdouble max,
32620 gdouble step);
32621 # 95 "/usr/include/gtk-2.0/gtk/gtk.h" 2
32622
32623
32624 # 1 "/usr/include/gtk-2.0/gtk/gtkhseparator.h" 1
32625 # 32 "/usr/include/gtk-2.0/gtk/gtkhseparator.h"
32626
32627 # 1 "/usr/include/gtk-2.0/gtk/gtkseparator.h" 1
32628 # 35 "/usr/include/gtk-2.0/gtk/gtkseparator.h"
32629 # 46 "/usr/include/gtk-2.0/gtk/gtkseparator.h"
32630 typedef struct _GtkSeparator GtkSeparator;
32631 typedef struct _GtkSeparatorClass GtkSeparatorClass;
32632
32633 struct _GtkSeparator
32634 {
32635 GtkWidget widget;
32636 };
32637
32638 struct _GtkSeparatorClass
32639 {
32640 GtkWidgetClass parent_class;
32641 };
32642
32643
32644 GType gtk_separator_get_type (void) __attribute__((__const__));
32645 # 33 "/usr/include/gtk-2.0/gtk/gtkhseparator.h" 2
32646 # 45 "/usr/include/gtk-2.0/gtk/gtkhseparator.h"
32647 typedef struct _GtkHSeparator GtkHSeparator;
32648 typedef struct _GtkHSeparatorClass GtkHSeparatorClass;
32649
32650 struct _GtkHSeparator
32651 {
32652 GtkSeparator separator;
32653 };
32654
32655 struct _GtkHSeparatorClass
32656 {
32657 GtkSeparatorClass parent_class;
32658 };
32659
32660
32661 GType gtk_hseparator_get_type (void) __attribute__((__const__));
32662 GtkWidget* gtk_hseparator_new (void);
32663 # 97 "/usr/include/gtk-2.0/gtk/gtk.h" 2
32664
32665 # 1 "/usr/include/gtk-2.0/gtk/gtkiconfactory.h" 1
32666 # 33 "/usr/include/gtk-2.0/gtk/gtkiconfactory.h"
32667
32668
32669 typedef struct _GtkIconFactoryClass GtkIconFactoryClass;
32670 # 46 "/usr/include/gtk-2.0/gtk/gtkiconfactory.h"
32671 struct _GtkIconFactory
32672 {
32673 GObject parent_instance;
32674
32675 GHashTable *icons;
32676 };
32677
32678 struct _GtkIconFactoryClass
32679 {
32680 GObjectClass parent_class;
32681
32682
32683 void (*_gtk_reserved1) (void);
32684 void (*_gtk_reserved2) (void);
32685 void (*_gtk_reserved3) (void);
32686 void (*_gtk_reserved4) (void);
32687 };
32688
32689
32690
32691
32692
32693
32694
32695 GType gtk_icon_factory_get_type (void) __attribute__((__const__));
32696 GtkIconFactory* gtk_icon_factory_new (void);
32697 void gtk_icon_factory_add (GtkIconFactory *factory,
32698 const gchar *stock_id,
32699 GtkIconSet *icon_set);
32700 GtkIconSet* gtk_icon_factory_lookup (GtkIconFactory *factory,
32701 const gchar *stock_id);
32702
32703
32704
32705 void gtk_icon_factory_add_default (GtkIconFactory *factory);
32706 void gtk_icon_factory_remove_default (GtkIconFactory *factory);
32707 GtkIconSet* gtk_icon_factory_lookup_default (const gchar *stock_id);
32708 # 100 "/usr/include/gtk-2.0/gtk/gtkiconfactory.h"
32709 gboolean gtk_icon_size_lookup_for_settings (GtkSettings *settings,
32710 GtkIconSize size,
32711 gint *width,
32712 gint *height);
32713
32714 GtkIconSize gtk_icon_size_register (const gchar *name,
32715 gint width,
32716 gint height);
32717 void gtk_icon_size_register_alias (const gchar *alias,
32718 GtkIconSize target);
32719 GtkIconSize gtk_icon_size_from_name (const gchar *name);
32720 const gchar* gtk_icon_size_get_name (GtkIconSize size);
32721
32722
32723
32724 GType gtk_icon_set_get_type (void) __attribute__((__const__));
32725 GtkIconSet* gtk_icon_set_new (void);
32726 GtkIconSet* gtk_icon_set_new_from_pixbuf (GdkPixbuf *pixbuf);
32727
32728 GtkIconSet* gtk_icon_set_ref (GtkIconSet *icon_set);
32729 void gtk_icon_set_unref (GtkIconSet *icon_set);
32730 GtkIconSet* gtk_icon_set_copy (GtkIconSet *icon_set);
32731
32732
32733
32734
32735 GdkPixbuf* gtk_icon_set_render_icon (GtkIconSet *icon_set,
32736 GtkStyle *style,
32737 GtkTextDirection direction,
32738 GtkStateType state,
32739 GtkIconSize size,
32740 GtkWidget *widget,
32741 const char *detail);
32742
32743
32744 void gtk_icon_set_add_source (GtkIconSet *icon_set,
32745 const GtkIconSource *source);
32746
32747 void gtk_icon_set_get_sizes (GtkIconSet *icon_set,
32748 GtkIconSize **sizes,
32749 gint *n_sizes);
32750
32751 GType gtk_icon_source_get_type (void) __attribute__((__const__));
32752 GtkIconSource* gtk_icon_source_new (void);
32753 GtkIconSource* gtk_icon_source_copy (const GtkIconSource *source);
32754 void gtk_icon_source_free (GtkIconSource *source);
32755
32756 void gtk_icon_source_set_filename (GtkIconSource *source,
32757 const gchar *filename);
32758 void gtk_icon_source_set_icon_name (GtkIconSource *source,
32759 const gchar *icon_name);
32760 void gtk_icon_source_set_pixbuf (GtkIconSource *source,
32761 GdkPixbuf *pixbuf);
32762
32763 const gchar* gtk_icon_source_get_filename (const GtkIconSource *source);
32764 const gchar* gtk_icon_source_get_icon_name (const GtkIconSource *source);
32765 GdkPixbuf* gtk_icon_source_get_pixbuf (const GtkIconSource *source);
32766
32767 void gtk_icon_source_set_direction_wildcarded (GtkIconSource *source,
32768 gboolean setting);
32769 void gtk_icon_source_set_state_wildcarded (GtkIconSource *source,
32770 gboolean setting);
32771 void gtk_icon_source_set_size_wildcarded (GtkIconSource *source,
32772 gboolean setting);
32773 gboolean gtk_icon_source_get_size_wildcarded (const GtkIconSource *source);
32774 gboolean gtk_icon_source_get_state_wildcarded (const GtkIconSource *source);
32775 gboolean gtk_icon_source_get_direction_wildcarded (const GtkIconSource *source);
32776 void gtk_icon_source_set_direction (GtkIconSource *source,
32777 GtkTextDirection direction);
32778 void gtk_icon_source_set_state (GtkIconSource *source,
32779 GtkStateType state);
32780 void gtk_icon_source_set_size (GtkIconSource *source,
32781 GtkIconSize size);
32782 GtkTextDirection gtk_icon_source_get_direction (const GtkIconSource *source);
32783 GtkStateType gtk_icon_source_get_state (const GtkIconSource *source);
32784 GtkIconSize gtk_icon_source_get_size (const GtkIconSource *source);
32785
32786
32787
32788 void _gtk_icon_set_invalidate_caches (void);
32789 GSList* _gtk_icon_factory_list_ids (void);
32790 void _gtk_icon_factory_ensure_default_icons (void);
32791 # 98 "/usr/include/gtk-2.0/gtk/gtk.h" 2
32792
32793 # 1 "/usr/include/gtk-2.0/gtk/gtkicontheme.h" 1
32794 # 27 "/usr/include/gtk-2.0/gtk/gtkicontheme.h"
32795 # 38 "/usr/include/gtk-2.0/gtk/gtkicontheme.h"
32796 typedef struct _GtkIconInfo GtkIconInfo;
32797 typedef struct _GtkIconTheme GtkIconTheme;
32798 typedef struct _GtkIconThemeClass GtkIconThemeClass;
32799 typedef struct _GtkIconThemePrivate GtkIconThemePrivate;
32800
32801 struct _GtkIconTheme
32802 {
32803
32804 GObject parent_instance;
32805
32806 GtkIconThemePrivate *priv;
32807 };
32808
32809 struct _GtkIconThemeClass
32810 {
32811 GObjectClass parent_class;
32812
32813 void (* changed) (GtkIconTheme *icon_theme);
32814 };
32815 # 72 "/usr/include/gtk-2.0/gtk/gtkicontheme.h"
32816 typedef enum
32817 {
32818 GTK_ICON_LOOKUP_NO_SVG = 1 << 0,
32819 GTK_ICON_LOOKUP_FORCE_SVG = 1 << 1,
32820 GTK_ICON_LOOKUP_USE_BUILTIN = 1 << 2
32821 } GtkIconLookupFlags;
32822 # 88 "/usr/include/gtk-2.0/gtk/gtkicontheme.h"
32823 typedef enum {
32824 GTK_ICON_THEME_NOT_FOUND,
32825 GTK_ICON_THEME_FAILED
32826 } GtkIconThemeError;
32827
32828 GQuark gtk_icon_theme_error_quark (void);
32829 # 104 "/usr/include/gtk-2.0/gtk/gtkicontheme.h"
32830 GType gtk_icon_theme_get_type (void) __attribute__((__const__));
32831
32832 GtkIconTheme *gtk_icon_theme_new (void);
32833 GtkIconTheme *gtk_icon_theme_get_default (void);
32834 GtkIconTheme *gtk_icon_theme_get_for_screen (GdkScreen *screen);
32835 void gtk_icon_theme_set_screen (GtkIconTheme *icon_theme,
32836 GdkScreen *screen);
32837
32838 void gtk_icon_theme_set_search_path (GtkIconTheme *icon_theme,
32839 const gchar *path[],
32840 gint n_elements);
32841 void gtk_icon_theme_get_search_path (GtkIconTheme *icon_theme,
32842 gchar **path[],
32843 gint *n_elements);
32844 void gtk_icon_theme_append_search_path (GtkIconTheme *icon_theme,
32845 const gchar *path);
32846 void gtk_icon_theme_prepend_search_path (GtkIconTheme *icon_theme,
32847 const gchar *path);
32848
32849 void gtk_icon_theme_set_custom_theme (GtkIconTheme *icon_theme,
32850 const gchar *theme_name);
32851
32852 gboolean gtk_icon_theme_has_icon (GtkIconTheme *icon_theme,
32853 const gchar *icon_name);
32854 gint *gtk_icon_theme_get_icon_sizes (GtkIconTheme *icon_theme,
32855 const gchar *icon_name);
32856 GtkIconInfo * gtk_icon_theme_lookup_icon (GtkIconTheme *icon_theme,
32857 const gchar *icon_name,
32858 gint size,
32859 GtkIconLookupFlags flags);
32860 GdkPixbuf * gtk_icon_theme_load_icon (GtkIconTheme *icon_theme,
32861 const gchar *icon_name,
32862 gint size,
32863 GtkIconLookupFlags flags,
32864 GError **error);
32865
32866 GList * gtk_icon_theme_list_icons (GtkIconTheme *icon_theme,
32867 const gchar *context);
32868 char * gtk_icon_theme_get_example_icon_name (GtkIconTheme *icon_theme);
32869
32870 gboolean gtk_icon_theme_rescan_if_needed (GtkIconTheme *icon_theme);
32871
32872 void gtk_icon_theme_add_builtin_icon (const gchar *icon_name,
32873 gint size,
32874 GdkPixbuf *pixbuf);
32875
32876 GType gtk_icon_info_get_type (void) __attribute__((__const__));
32877 GtkIconInfo *gtk_icon_info_copy (GtkIconInfo *icon_info);
32878 void gtk_icon_info_free (GtkIconInfo *icon_info);
32879
32880 gint gtk_icon_info_get_base_size (GtkIconInfo *icon_info);
32881 const gchar *gtk_icon_info_get_filename (GtkIconInfo *icon_info);
32882 GdkPixbuf * gtk_icon_info_get_builtin_pixbuf (GtkIconInfo *icon_info);
32883 GdkPixbuf * gtk_icon_info_load_icon (GtkIconInfo *icon_info,
32884 GError **error);
32885
32886 void gtk_icon_info_set_raw_coordinates (GtkIconInfo *icon_info,
32887 gboolean raw_coordinates);
32888
32889 gboolean gtk_icon_info_get_embedded_rect (GtkIconInfo *icon_info,
32890 GdkRectangle *rectangle);
32891 gboolean gtk_icon_info_get_attach_points (GtkIconInfo *icon_info,
32892 GdkPoint **points,
32893 gint *n_points);
32894 const gchar *gtk_icon_info_get_display_name (GtkIconInfo *icon_info);
32895
32896
32897 void _gtk_icon_theme_check_reload (GdkDisplay *display);
32898 # 99 "/usr/include/gtk-2.0/gtk/gtk.h" 2
32899
32900 # 1 "/usr/include/gtk-2.0/gtk/gtkiconview.h" 1
32901 # 27 "/usr/include/gtk-2.0/gtk/gtkiconview.h"
32902 # 36 "/usr/include/gtk-2.0/gtk/gtkiconview.h"
32903 typedef struct _GtkIconView GtkIconView;
32904 typedef struct _GtkIconViewClass GtkIconViewClass;
32905 typedef struct _GtkIconViewPrivate GtkIconViewPrivate;
32906
32907 typedef void (* GtkIconViewForeachFunc) (GtkIconView *icon_view,
32908 GtkTreePath *path,
32909 gpointer data);
32910
32911 typedef enum
32912 {
32913 GTK_ICON_VIEW_NO_DROP,
32914 GTK_ICON_VIEW_DROP_INTO,
32915 GTK_ICON_VIEW_DROP_LEFT,
32916 GTK_ICON_VIEW_DROP_RIGHT,
32917 GTK_ICON_VIEW_DROP_ABOVE,
32918 GTK_ICON_VIEW_DROP_BELOW
32919 } GtkIconViewDropPosition;
32920
32921 struct _GtkIconView
32922 {
32923 GtkContainer parent;
32924
32925 GtkIconViewPrivate *priv;
32926 };
32927
32928 struct _GtkIconViewClass
32929 {
32930 GtkContainerClass parent_class;
32931
32932 void (* set_scroll_adjustments) (GtkIconView *icon_view,
32933 GtkAdjustment *hadjustment,
32934 GtkAdjustment *vadjustment);
32935
32936 void (* item_activated) (GtkIconView *icon_view,
32937 GtkTreePath *path);
32938 void (* selection_changed) (GtkIconView *icon_view);
32939
32940
32941 void (* select_all) (GtkIconView *icon_view);
32942 void (* unselect_all) (GtkIconView *icon_view);
32943 void (* select_cursor_item) (GtkIconView *icon_view);
32944 void (* toggle_cursor_item) (GtkIconView *icon_view);
32945 gboolean (* move_cursor) (GtkIconView *icon_view,
32946 GtkMovementStep step,
32947 gint count);
32948 gboolean (* activate_cursor_item) (GtkIconView *icon_view);
32949 };
32950
32951 GType gtk_icon_view_get_type (void) __attribute__((__const__));
32952 GtkWidget * gtk_icon_view_new (void);
32953 GtkWidget * gtk_icon_view_new_with_model (GtkTreeModel *model);
32954
32955 void gtk_icon_view_set_model (GtkIconView *icon_view,
32956 GtkTreeModel *model);
32957 GtkTreeModel * gtk_icon_view_get_model (GtkIconView *icon_view);
32958 void gtk_icon_view_set_text_column (GtkIconView *icon_view,
32959 gint column);
32960 gint gtk_icon_view_get_text_column (GtkIconView *icon_view);
32961 void gtk_icon_view_set_markup_column (GtkIconView *icon_view,
32962 gint column);
32963 gint gtk_icon_view_get_markup_column (GtkIconView *icon_view);
32964 void gtk_icon_view_set_pixbuf_column (GtkIconView *icon_view,
32965 gint column);
32966 gint gtk_icon_view_get_pixbuf_column (GtkIconView *icon_view);
32967
32968 void gtk_icon_view_set_orientation (GtkIconView *icon_view,
32969 GtkOrientation orientation);
32970 GtkOrientation gtk_icon_view_get_orientation (GtkIconView *icon_view);
32971 void gtk_icon_view_set_columns (GtkIconView *icon_view,
32972 gint columns);
32973 gint gtk_icon_view_get_columns (GtkIconView *icon_view);
32974 void gtk_icon_view_set_item_width (GtkIconView *icon_view,
32975 gint item_width);
32976 gint gtk_icon_view_get_item_width (GtkIconView *icon_view);
32977 void gtk_icon_view_set_spacing (GtkIconView *icon_view,
32978 gint spacing);
32979 gint gtk_icon_view_get_spacing (GtkIconView *icon_view);
32980 void gtk_icon_view_set_row_spacing (GtkIconView *icon_view,
32981 gint row_spacing);
32982 gint gtk_icon_view_get_row_spacing (GtkIconView *icon_view);
32983 void gtk_icon_view_set_column_spacing (GtkIconView *icon_view,
32984 gint column_spacing);
32985 gint gtk_icon_view_get_column_spacing (GtkIconView *icon_view);
32986 void gtk_icon_view_set_margin (GtkIconView *icon_view,
32987 gint margin);
32988 gint gtk_icon_view_get_margin (GtkIconView *icon_view);
32989
32990
32991 GtkTreePath * gtk_icon_view_get_path_at_pos (GtkIconView *icon_view,
32992 gint x,
32993 gint y);
32994 gboolean gtk_icon_view_get_item_at_pos (GtkIconView *icon_view,
32995 gint x,
32996 gint y,
32997 GtkTreePath **path,
32998 GtkCellRenderer **cell);
32999 gboolean gtk_icon_view_get_visible_range (GtkIconView *icon_view,
33000 GtkTreePath **start_path,
33001 GtkTreePath **end_path);
33002
33003 void gtk_icon_view_selected_foreach (GtkIconView *icon_view,
33004 GtkIconViewForeachFunc func,
33005 gpointer data);
33006 void gtk_icon_view_set_selection_mode (GtkIconView *icon_view,
33007 GtkSelectionMode mode);
33008 GtkSelectionMode gtk_icon_view_get_selection_mode (GtkIconView *icon_view);
33009 void gtk_icon_view_select_path (GtkIconView *icon_view,
33010 GtkTreePath *path);
33011 void gtk_icon_view_unselect_path (GtkIconView *icon_view,
33012 GtkTreePath *path);
33013 gboolean gtk_icon_view_path_is_selected (GtkIconView *icon_view,
33014 GtkTreePath *path);
33015 GList *gtk_icon_view_get_selected_items (GtkIconView *icon_view);
33016 void gtk_icon_view_select_all (GtkIconView *icon_view);
33017 void gtk_icon_view_unselect_all (GtkIconView *icon_view);
33018 void gtk_icon_view_item_activated (GtkIconView *icon_view,
33019 GtkTreePath *path);
33020 void gtk_icon_view_set_cursor (GtkIconView *icon_view,
33021 GtkTreePath *path,
33022 GtkCellRenderer *cell,
33023 gboolean start_editing);
33024 gboolean gtk_icon_view_get_cursor (GtkIconView *icon_view,
33025 GtkTreePath **path,
33026 GtkCellRenderer **cell);
33027 void gtk_icon_view_scroll_to_path (GtkIconView *icon_view,
33028 GtkTreePath *path,
33029 gboolean use_align,
33030 gfloat row_align,
33031 gfloat col_align);
33032
33033
33034 void gtk_icon_view_enable_model_drag_source (GtkIconView *icon_view,
33035 GdkModifierType start_button_mask,
33036 const GtkTargetEntry *targets,
33037 gint n_targets,
33038 GdkDragAction actions);
33039 void gtk_icon_view_enable_model_drag_dest (GtkIconView *icon_view,
33040 const GtkTargetEntry *targets,
33041 gint n_targets,
33042 GdkDragAction actions);
33043 void gtk_icon_view_unset_model_drag_source (GtkIconView *icon_view);
33044 void gtk_icon_view_unset_model_drag_dest (GtkIconView *icon_view);
33045 void gtk_icon_view_set_reorderable (GtkIconView *icon_view,
33046 gboolean reorderable);
33047 gboolean gtk_icon_view_get_reorderable (GtkIconView *icon_view);
33048
33049
33050
33051 void gtk_icon_view_set_drag_dest_item (GtkIconView *icon_view,
33052 GtkTreePath *path,
33053 GtkIconViewDropPosition pos);
33054 void gtk_icon_view_get_drag_dest_item (GtkIconView *icon_view,
33055 GtkTreePath **path,
33056 GtkIconViewDropPosition *pos);
33057 gboolean gtk_icon_view_get_dest_item_at_pos (GtkIconView *icon_view,
33058 gint drag_x,
33059 gint drag_y,
33060 GtkTreePath **path,
33061 GtkIconViewDropPosition *pos);
33062 GdkPixmap *gtk_icon_view_create_drag_icon (GtkIconView *icon_view,
33063 GtkTreePath *path);
33064 # 100 "/usr/include/gtk-2.0/gtk/gtk.h" 2
33065
33066
33067 # 1 "/usr/include/gtk-2.0/gtk/gtkimagemenuitem.h" 1
33068 # 34 "/usr/include/gtk-2.0/gtk/gtkimagemenuitem.h"
33069 # 44 "/usr/include/gtk-2.0/gtk/gtkimagemenuitem.h"
33070 typedef struct _GtkImageMenuItem GtkImageMenuItem;
33071 typedef struct _GtkImageMenuItemClass GtkImageMenuItemClass;
33072
33073 struct _GtkImageMenuItem
33074 {
33075 GtkMenuItem menu_item;
33076
33077
33078 GtkWidget *image;
33079 };
33080
33081 struct _GtkImageMenuItemClass
33082 {
33083 GtkMenuItemClass parent_class;
33084 };
33085
33086
33087 GType gtk_image_menu_item_get_type (void) __attribute__((__const__));
33088 GtkWidget* gtk_image_menu_item_new (void);
33089 GtkWidget* gtk_image_menu_item_new_with_label (const gchar *label);
33090 GtkWidget* gtk_image_menu_item_new_with_mnemonic (const gchar *label);
33091 GtkWidget* gtk_image_menu_item_new_from_stock (const gchar *stock_id,
33092 GtkAccelGroup *accel_group);
33093 void gtk_image_menu_item_set_image (GtkImageMenuItem *image_menu_item,
33094 GtkWidget *image);
33095 GtkWidget* gtk_image_menu_item_get_image (GtkImageMenuItem *image_menu_item);
33096 # 102 "/usr/include/gtk-2.0/gtk/gtk.h" 2
33097
33098
33099 # 1 "/usr/include/gtk-2.0/gtk/gtkimcontextsimple.h" 1
33100 # 26 "/usr/include/gtk-2.0/gtk/gtkimcontextsimple.h"
33101 # 37 "/usr/include/gtk-2.0/gtk/gtkimcontextsimple.h"
33102 typedef struct _GtkIMContextSimple GtkIMContextSimple;
33103 typedef struct _GtkIMContextSimpleClass GtkIMContextSimpleClass;
33104
33105
33106
33107 struct _GtkIMContextSimple
33108 {
33109 GtkIMContext object;
33110
33111 GSList *tables;
33112
33113 guint compose_buffer[7 + 1];
33114 gunichar tentative_match;
33115 gint tentative_match_len;
33116
33117 guint in_hex_sequence : 1;
33118 };
33119
33120 struct _GtkIMContextSimpleClass
33121 {
33122 GtkIMContextClass parent_class;
33123 };
33124
33125 GType gtk_im_context_simple_get_type (void) __attribute__((__const__));
33126 GtkIMContext *gtk_im_context_simple_new (void);
33127
33128 void gtk_im_context_simple_add_table (GtkIMContextSimple *context_simple,
33129 guint16 *data,
33130 gint max_seq_len,
33131 gint n_seqs);
33132 # 104 "/usr/include/gtk-2.0/gtk/gtk.h" 2
33133
33134 # 1 "/usr/include/gtk-2.0/gtk/gtkimmulticontext.h" 1
33135 # 26 "/usr/include/gtk-2.0/gtk/gtkimmulticontext.h"
33136 # 36 "/usr/include/gtk-2.0/gtk/gtkimmulticontext.h"
33137 typedef struct _GtkIMMulticontext GtkIMMulticontext;
33138 typedef struct _GtkIMMulticontextClass GtkIMMulticontextClass;
33139 typedef struct _GtkIMMulticontextPrivate GtkIMMulticontextPrivate;
33140
33141 struct _GtkIMMulticontext
33142 {
33143 GtkIMContext object;
33144
33145 GtkIMContext *slave;
33146
33147 GtkIMMulticontextPrivate *priv;
33148
33149 const gchar *context_id;
33150 };
33151
33152 struct _GtkIMMulticontextClass
33153 {
33154 GtkIMContextClass parent_class;
33155
33156
33157 void (*_gtk_reserved1) (void);
33158 void (*_gtk_reserved2) (void);
33159 void (*_gtk_reserved3) (void);
33160 void (*_gtk_reserved4) (void);
33161 };
33162
33163 GType gtk_im_multicontext_get_type (void) __attribute__((__const__));
33164 GtkIMContext *gtk_im_multicontext_new (void);
33165
33166 void gtk_im_multicontext_append_menuitems (GtkIMMulticontext *context,
33167 GtkMenuShell *menushell);
33168 # 105 "/usr/include/gtk-2.0/gtk/gtk.h" 2
33169
33170 # 1 "/usr/include/gtk-2.0/gtk/gtkinputdialog.h" 1
33171 # 45 "/usr/include/gtk-2.0/gtk/gtkinputdialog.h"
33172 # 55 "/usr/include/gtk-2.0/gtk/gtkinputdialog.h"
33173 typedef struct _GtkInputDialog GtkInputDialog;
33174 typedef struct _GtkInputDialogClass GtkInputDialogClass;
33175
33176 struct _GtkInputDialog
33177 {
33178 GtkDialog dialog;
33179
33180 GtkWidget *axis_list;
33181 GtkWidget *axis_listbox;
33182 GtkWidget *mode_optionmenu;
33183
33184 GtkWidget *close_button;
33185 GtkWidget *save_button;
33186
33187 GtkWidget *axis_items[GDK_AXIS_LAST];
33188 GdkDevice *current_device;
33189
33190 GtkWidget *keys_list;
33191 GtkWidget *keys_listbox;
33192 };
33193
33194 struct _GtkInputDialogClass
33195 {
33196 GtkDialogClass parent_class;
33197
33198 void (* enable_device) (GtkInputDialog *inputd,
33199 GdkDevice *device);
33200 void (* disable_device) (GtkInputDialog *inputd,
33201 GdkDevice *device);
33202
33203
33204 void (*_gtk_reserved1) (void);
33205 void (*_gtk_reserved2) (void);
33206 void (*_gtk_reserved3) (void);
33207 void (*_gtk_reserved4) (void);
33208 };
33209
33210
33211 GType gtk_input_dialog_get_type (void) __attribute__((__const__));
33212 GtkWidget* gtk_input_dialog_new (void);
33213 # 106 "/usr/include/gtk-2.0/gtk/gtk.h" 2
33214
33215 # 1 "/usr/include/gtk-2.0/gtk/gtkinvisible.h" 1
33216 # 32 "/usr/include/gtk-2.0/gtk/gtkinvisible.h"
33217 # 42 "/usr/include/gtk-2.0/gtk/gtkinvisible.h"
33218 typedef struct _GtkInvisible GtkInvisible;
33219 typedef struct _GtkInvisibleClass GtkInvisibleClass;
33220
33221 struct _GtkInvisible
33222 {
33223 GtkWidget widget;
33224 gboolean has_user_ref_count;
33225 GdkScreen *screen;
33226 };
33227
33228 struct _GtkInvisibleClass
33229 {
33230 GtkWidgetClass parent_class;
33231
33232
33233 void (*_gtk_reserved1) (void);
33234 void (*_gtk_reserved2) (void);
33235 void (*_gtk_reserved3) (void);
33236 void (*_gtk_reserved4) (void);
33237 };
33238
33239 GType gtk_invisible_get_type (void) __attribute__((__const__));
33240
33241 GtkWidget* gtk_invisible_new (void);
33242 GtkWidget* gtk_invisible_new_for_screen (GdkScreen *screen);
33243 void gtk_invisible_set_screen (GtkInvisible *invisible,
33244 GdkScreen *screen);
33245 GdkScreen* gtk_invisible_get_screen (GtkInvisible *invisible);
33246 # 107 "/usr/include/gtk-2.0/gtk/gtk.h" 2
33247
33248
33249
33250
33251 # 1 "/usr/include/gtk-2.0/gtk/gtklayout.h" 1
33252 # 38 "/usr/include/gtk-2.0/gtk/gtklayout.h"
33253 # 48 "/usr/include/gtk-2.0/gtk/gtklayout.h"
33254 typedef struct _GtkLayout GtkLayout;
33255 typedef struct _GtkLayoutClass GtkLayoutClass;
33256
33257 struct _GtkLayout
33258 {
33259 GtkContainer container;
33260
33261 GList *children;
33262
33263 guint width;
33264 guint height;
33265
33266 GtkAdjustment *hadjustment;
33267 GtkAdjustment *vadjustment;
33268
33269
33270 GdkWindow *bin_window;
33271
33272
33273 GdkVisibilityState visibility;
33274 gint scroll_x;
33275 gint scroll_y;
33276
33277 guint freeze_count;
33278 };
33279
33280 struct _GtkLayoutClass
33281 {
33282 GtkContainerClass parent_class;
33283
33284 void (*set_scroll_adjustments) (GtkLayout *layout,
33285 GtkAdjustment *hadjustment,
33286 GtkAdjustment *vadjustment);
33287
33288
33289 void (*_gtk_reserved1) (void);
33290 void (*_gtk_reserved2) (void);
33291 void (*_gtk_reserved3) (void);
33292 void (*_gtk_reserved4) (void);
33293 };
33294
33295 GType gtk_layout_get_type (void) __attribute__((__const__));
33296 GtkWidget* gtk_layout_new (GtkAdjustment *hadjustment,
33297 GtkAdjustment *vadjustment);
33298 void gtk_layout_put (GtkLayout *layout,
33299 GtkWidget *child_widget,
33300 gint x,
33301 gint y);
33302
33303 void gtk_layout_move (GtkLayout *layout,
33304 GtkWidget *child_widget,
33305 gint x,
33306 gint y);
33307
33308 void gtk_layout_set_size (GtkLayout *layout,
33309 guint width,
33310 guint height);
33311 void gtk_layout_get_size (GtkLayout *layout,
33312 guint *width,
33313 guint *height);
33314
33315 GtkAdjustment* gtk_layout_get_hadjustment (GtkLayout *layout);
33316 GtkAdjustment* gtk_layout_get_vadjustment (GtkLayout *layout);
33317 void gtk_layout_set_hadjustment (GtkLayout *layout,
33318 GtkAdjustment *adjustment);
33319 void gtk_layout_set_vadjustment (GtkLayout *layout,
33320 GtkAdjustment *adjustment);
33321 # 126 "/usr/include/gtk-2.0/gtk/gtklayout.h"
33322 void gtk_layout_freeze (GtkLayout *layout);
33323 void gtk_layout_thaw (GtkLayout *layout);
33324 # 111 "/usr/include/gtk-2.0/gtk/gtk.h" 2
33325
33326 # 1 "/usr/include/gtk-2.0/gtk/gtklist.h" 1
33327 # 36 "/usr/include/gtk-2.0/gtk/gtklist.h"
33328
33329 # 1 "/usr/include/gtk-2.0/gtk/gtklistitem.h" 1
33330 # 37 "/usr/include/gtk-2.0/gtk/gtklistitem.h"
33331 # 48 "/usr/include/gtk-2.0/gtk/gtklistitem.h"
33332 typedef struct _GtkListItem GtkListItem;
33333 typedef struct _GtkListItemClass GtkListItemClass;
33334
33335 struct _GtkListItem
33336 {
33337 GtkItem item;
33338 };
33339
33340 struct _GtkListItemClass
33341 {
33342 GtkItemClass parent_class;
33343
33344 void (*toggle_focus_row) (GtkListItem *list_item);
33345 void (*select_all) (GtkListItem *list_item);
33346 void (*unselect_all) (GtkListItem *list_item);
33347 void (*undo_selection) (GtkListItem *list_item);
33348 void (*start_selection) (GtkListItem *list_item);
33349 void (*end_selection) (GtkListItem *list_item);
33350 void (*extend_selection) (GtkListItem *list_item,
33351 GtkScrollType scroll_type,
33352 gfloat position,
33353 gboolean auto_start_selection);
33354 void (*scroll_horizontal) (GtkListItem *list_item,
33355 GtkScrollType scroll_type,
33356 gfloat position);
33357 void (*scroll_vertical) (GtkListItem *list_item,
33358 GtkScrollType scroll_type,
33359 gfloat position);
33360 void (*toggle_add_mode) (GtkListItem *list_item);
33361 };
33362
33363
33364 GtkType gtk_list_item_get_type (void) __attribute__((__const__));
33365 GtkWidget* gtk_list_item_new (void);
33366 GtkWidget* gtk_list_item_new_with_label (const gchar *label);
33367 void gtk_list_item_select (GtkListItem *list_item);
33368 void gtk_list_item_deselect (GtkListItem *list_item);
33369 # 37 "/usr/include/gtk-2.0/gtk/gtklist.h" 2
33370 # 48 "/usr/include/gtk-2.0/gtk/gtklist.h"
33371 typedef struct _GtkList GtkList;
33372 typedef struct _GtkListClass GtkListClass;
33373
33374 struct _GtkList
33375 {
33376 GtkContainer container;
33377
33378 GList *children;
33379 GList *selection;
33380
33381 GList *undo_selection;
33382 GList *undo_unselection;
33383
33384 GtkWidget *last_focus_child;
33385 GtkWidget *undo_focus_child;
33386
33387 guint htimer;
33388 guint vtimer;
33389
33390 gint anchor;
33391 gint drag_pos;
33392 GtkStateType anchor_state;
33393
33394 guint selection_mode : 2;
33395 guint drag_selection:1;
33396 guint add_mode:1;
33397 };
33398
33399 struct _GtkListClass
33400 {
33401 GtkContainerClass parent_class;
33402
33403 void (* selection_changed) (GtkList *list);
33404 void (* select_child) (GtkList *list,
33405 GtkWidget *child);
33406 void (* unselect_child) (GtkList *list,
33407 GtkWidget *child);
33408 };
33409
33410
33411 GtkType gtk_list_get_type (void) __attribute__((__const__));
33412 GtkWidget* gtk_list_new (void);
33413 void gtk_list_insert_items (GtkList *list,
33414 GList *items,
33415 gint position);
33416 void gtk_list_append_items (GtkList *list,
33417 GList *items);
33418 void gtk_list_prepend_items (GtkList *list,
33419 GList *items);
33420 void gtk_list_remove_items (GtkList *list,
33421 GList *items);
33422 void gtk_list_remove_items_no_unref (GtkList *list,
33423 GList *items);
33424 void gtk_list_clear_items (GtkList *list,
33425 gint start,
33426 gint end);
33427 void gtk_list_select_item (GtkList *list,
33428 gint item);
33429 void gtk_list_unselect_item (GtkList *list,
33430 gint item);
33431 void gtk_list_select_child (GtkList *list,
33432 GtkWidget *child);
33433 void gtk_list_unselect_child (GtkList *list,
33434 GtkWidget *child);
33435 gint gtk_list_child_position (GtkList *list,
33436 GtkWidget *child);
33437 void gtk_list_set_selection_mode (GtkList *list,
33438 GtkSelectionMode mode);
33439
33440 void gtk_list_extend_selection (GtkList *list,
33441 GtkScrollType scroll_type,
33442 gfloat position,
33443 gboolean auto_start_selection);
33444 void gtk_list_start_selection (GtkList *list);
33445 void gtk_list_end_selection (GtkList *list);
33446 void gtk_list_select_all (GtkList *list);
33447 void gtk_list_unselect_all (GtkList *list);
33448 void gtk_list_scroll_horizontal (GtkList *list,
33449 GtkScrollType scroll_type,
33450 gfloat position);
33451 void gtk_list_scroll_vertical (GtkList *list,
33452 GtkScrollType scroll_type,
33453 gfloat position);
33454 void gtk_list_toggle_add_mode (GtkList *list);
33455 void gtk_list_toggle_focus_row (GtkList *list);
33456 void gtk_list_toggle_row (GtkList *list,
33457 GtkWidget *item);
33458 void gtk_list_undo_selection (GtkList *list);
33459 void gtk_list_end_drag_selection (GtkList *list);
33460 # 112 "/usr/include/gtk-2.0/gtk/gtk.h" 2
33461
33462 # 1 "/usr/include/gtk-2.0/gtk/gtklistitem.h" 1
33463 # 113 "/usr/include/gtk-2.0/gtk/gtk.h" 2
33464
33465
33466 # 1 "/usr/include/gtk-2.0/gtk/gtkmain.h" 1
33467 # 38 "/usr/include/gtk-2.0/gtk/gtkmain.h"
33468 # 58 "/usr/include/gtk-2.0/gtk/gtkmain.h"
33469 typedef gint (*GtkKeySnoopFunc) (GtkWidget *grab_widget,
33470 GdkEventKey *event,
33471 gpointer func_data);
33472 # 74 "/usr/include/gtk-2.0/gtk/gtkmain.h"
33473 extern const guint gtk_major_version;
33474 extern const guint gtk_minor_version;
33475 extern const guint gtk_micro_version;
33476 extern const guint gtk_binary_age;
33477 extern const guint gtk_interface_age;
33478 gchar* gtk_check_version (guint required_major,
33479 guint required_minor,
33480 guint required_micro);
33481
33482
33483
33484
33485
33486 gboolean gtk_parse_args (int *argc,
33487 char ***argv);
33488
33489 void gtk_init (int *argc,
33490 char ***argv);
33491
33492 gboolean gtk_init_check (int *argc,
33493 char ***argv);
33494
33495 gboolean gtk_init_with_args (int *argc,
33496 char ***argv,
33497 char *parameter_string,
33498 GOptionEntry *entries,
33499 char *translation_domain,
33500 GError **error);
33501
33502 GOptionGroup *gtk_get_option_group (gboolean open_default_display);
33503 # 127 "/usr/include/gtk-2.0/gtk/gtkmain.h"
33504 void gtk_exit (gint error_code);
33505
33506
33507 void gtk_disable_setlocale (void);
33508 gchar * gtk_set_locale (void);
33509 PangoLanguage *gtk_get_default_language (void);
33510 gboolean gtk_events_pending (void);
33511
33512
33513
33514
33515
33516 void gtk_main_do_event (GdkEvent *event);
33517
33518 void gtk_main (void);
33519 guint gtk_main_level (void);
33520 void gtk_main_quit (void);
33521 gboolean gtk_main_iteration (void);
33522
33523 gboolean gtk_main_iteration_do (gboolean blocking);
33524
33525 gboolean gtk_true (void) __attribute__((__const__));
33526 gboolean gtk_false (void) __attribute__((__const__));
33527
33528 void gtk_grab_add (GtkWidget *widget);
33529 GtkWidget* gtk_grab_get_current (void);
33530 void gtk_grab_remove (GtkWidget *widget);
33531
33532 void gtk_init_add (GtkFunction function,
33533 gpointer data);
33534 void gtk_quit_add_destroy (guint main_level,
33535 GtkObject *object);
33536 guint gtk_quit_add (guint main_level,
33537 GtkFunction function,
33538 gpointer data);
33539 guint gtk_quit_add_full (guint main_level,
33540 GtkFunction function,
33541 GtkCallbackMarshal marshal,
33542 gpointer data,
33543 GtkDestroyNotify destroy);
33544 void gtk_quit_remove (guint quit_handler_id);
33545 void gtk_quit_remove_by_data (gpointer data);
33546
33547 guint gtk_timeout_add (guint32 interval,
33548 GtkFunction function,
33549 gpointer data);
33550 guint gtk_timeout_add_full (guint32 interval,
33551 GtkFunction function,
33552 GtkCallbackMarshal marshal,
33553 gpointer data,
33554 GtkDestroyNotify destroy);
33555 void gtk_timeout_remove (guint timeout_handler_id);
33556
33557 guint gtk_idle_add (GtkFunction function,
33558 gpointer data);
33559 guint gtk_idle_add_priority (gint priority,
33560 GtkFunction function,
33561 gpointer data);
33562 guint gtk_idle_add_full (gint priority,
33563 GtkFunction function,
33564 GtkCallbackMarshal marshal,
33565 gpointer data,
33566 GtkDestroyNotify destroy);
33567 void gtk_idle_remove (guint idle_handler_id);
33568 void gtk_idle_remove_by_data (gpointer data);
33569 guint gtk_input_add_full (gint source,
33570 GdkInputCondition condition,
33571 GdkInputFunction function,
33572 GtkCallbackMarshal marshal,
33573 gpointer data,
33574 GtkDestroyNotify destroy);
33575 void gtk_input_remove (guint input_handler_id);
33576
33577
33578 guint gtk_key_snooper_install (GtkKeySnoopFunc snooper,
33579 gpointer func_data);
33580 void gtk_key_snooper_remove (guint snooper_handler_id);
33581
33582 GdkEvent* gtk_get_current_event (void);
33583 guint32 gtk_get_current_event_time (void);
33584 gboolean gtk_get_current_event_state (GdkModifierType *state);
33585
33586 GtkWidget* gtk_get_event_widget (GdkEvent *event);
33587
33588
33589
33590
33591 void gtk_propagate_event (GtkWidget *widget,
33592 GdkEvent *event);
33593
33594 gboolean _gtk_boolean_handled_accumulator (GSignalInvocationHint *ihint,
33595 GValue *return_accu,
33596 const GValue *handler_return,
33597 gpointer dummy);
33598
33599 gchar *_gtk_get_lc_ctype (void);
33600 # 115 "/usr/include/gtk-2.0/gtk/gtk.h" 2
33601
33602
33603 # 1 "/usr/include/gtk-2.0/gtk/gtkmenubar.h" 1
33604 # 35 "/usr/include/gtk-2.0/gtk/gtkmenubar.h"
33605 # 45 "/usr/include/gtk-2.0/gtk/gtkmenubar.h"
33606 typedef struct _GtkMenuBar GtkMenuBar;
33607 typedef struct _GtkMenuBarClass GtkMenuBarClass;
33608
33609 struct _GtkMenuBar
33610 {
33611 GtkMenuShell menu_shell;
33612 };
33613
33614 struct _GtkMenuBarClass
33615 {
33616 GtkMenuShellClass parent_class;
33617
33618
33619 void (*_gtk_reserved1) (void);
33620 void (*_gtk_reserved2) (void);
33621 void (*_gtk_reserved3) (void);
33622 void (*_gtk_reserved4) (void);
33623 };
33624
33625
33626 GType gtk_menu_bar_get_type (void) __attribute__((__const__));
33627 GtkWidget* gtk_menu_bar_new (void);
33628
33629 GtkPackDirection gtk_menu_bar_get_pack_direction (GtkMenuBar *menubar);
33630 void gtk_menu_bar_set_pack_direction (GtkMenuBar *menubar,
33631 GtkPackDirection pack_dir);
33632 GtkPackDirection gtk_menu_bar_get_child_pack_direction (GtkMenuBar *menubar);
33633 void gtk_menu_bar_set_child_pack_direction (GtkMenuBar *menubar,
33634 GtkPackDirection child_pack_dir);
33635 # 82 "/usr/include/gtk-2.0/gtk/gtkmenubar.h"
33636 void _gtk_menu_bar_cycle_focus (GtkMenuBar *menubar,
33637 GtkDirectionType dir);
33638 # 117 "/usr/include/gtk-2.0/gtk/gtk.h" 2
33639
33640
33641
33642 # 1 "/usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h" 1
33643 # 25 "/usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h"
33644
33645 # 1 "/usr/include/gtk-2.0/gtk/gtkmenu.h" 1
33646 # 26 "/usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h" 2
33647
33648 # 1 "/usr/include/gtk-2.0/gtk/gtktoolbutton.h" 1
33649 # 26 "/usr/include/gtk-2.0/gtk/gtktoolbutton.h"
33650
33651 # 1 "/usr/include/gtk-2.0/gtk/gtktoolitem.h" 1
33652 # 27 "/usr/include/gtk-2.0/gtk/gtktoolitem.h"
33653
33654 # 1 "/usr/include/gtk-2.0/gtk/gtktooltips.h" 1
33655 # 34 "/usr/include/gtk-2.0/gtk/gtktooltips.h"
33656 # 44 "/usr/include/gtk-2.0/gtk/gtktooltips.h"
33657 typedef struct _GtkTooltips GtkTooltips;
33658 typedef struct _GtkTooltipsClass GtkTooltipsClass;
33659 typedef struct _GtkTooltipsData GtkTooltipsData;
33660
33661 struct _GtkTooltipsData
33662 {
33663 GtkTooltips *tooltips;
33664 GtkWidget *widget;
33665 gchar *tip_text;
33666 gchar *tip_private;
33667 };
33668
33669 struct _GtkTooltips
33670 {
33671 GtkObject parent_instance;
33672
33673 GtkWidget *tip_window;
33674 GtkWidget *tip_label;
33675 GtkTooltipsData *active_tips_data;
33676 GList *tips_data_list;
33677
33678 guint delay : 30;
33679 guint enabled : 1;
33680 guint have_grab : 1;
33681 guint use_sticky_delay : 1;
33682 gint timer_tag;
33683 GTimeVal last_popdown;
33684 };
33685
33686 struct _GtkTooltipsClass
33687 {
33688 GtkObjectClass parent_class;
33689
33690
33691 void (*_gtk_reserved1) (void);
33692 void (*_gtk_reserved2) (void);
33693 void (*_gtk_reserved3) (void);
33694 void (*_gtk_reserved4) (void);
33695 };
33696
33697 GType gtk_tooltips_get_type (void) __attribute__((__const__));
33698 GtkTooltips* gtk_tooltips_new (void);
33699
33700 void gtk_tooltips_enable (GtkTooltips *tooltips);
33701 void gtk_tooltips_disable (GtkTooltips *tooltips);
33702
33703 void gtk_tooltips_set_delay (GtkTooltips *tooltips,
33704 guint delay);
33705
33706 void gtk_tooltips_set_tip (GtkTooltips *tooltips,
33707 GtkWidget *widget,
33708 const gchar *tip_text,
33709 const gchar *tip_private);
33710 GtkTooltipsData* gtk_tooltips_data_get (GtkWidget *widget);
33711 void gtk_tooltips_force_window (GtkTooltips *tooltips);
33712
33713
33714 void _gtk_tooltips_toggle_keyboard_mode (GtkWidget *widget);
33715
33716 gboolean gtk_tooltips_get_info_from_tip_window (GtkWindow *tip_window,
33717 GtkTooltips **tooltips,
33718 GtkWidget **current_widget);
33719 # 28 "/usr/include/gtk-2.0/gtk/gtktoolitem.h" 2
33720 # 39 "/usr/include/gtk-2.0/gtk/gtktoolitem.h"
33721 typedef struct _GtkToolItem GtkToolItem;
33722 typedef struct _GtkToolItemClass GtkToolItemClass;
33723 typedef struct _GtkToolItemPrivate GtkToolItemPrivate;
33724
33725 struct _GtkToolItem
33726 {
33727 GtkBin parent;
33728
33729
33730 GtkToolItemPrivate *priv;
33731 };
33732
33733 struct _GtkToolItemClass
33734 {
33735 GtkBinClass parent_class;
33736
33737
33738 gboolean (* create_menu_proxy) (GtkToolItem *tool_item);
33739 void (* toolbar_reconfigured) (GtkToolItem *tool_item);
33740 gboolean (* set_tooltip) (GtkToolItem *tool_item,
33741 GtkTooltips *tooltips,
33742 const gchar *tip_text,
33743 const gchar *tip_private);
33744
33745
33746 void (* _gtk_reserved1) (void);
33747 void (* _gtk_reserved2) (void);
33748 void (* _gtk_reserved3) (void);
33749 void (* _gtk_reserved4) (void);
33750 };
33751
33752 GType gtk_tool_item_get_type (void) __attribute__((__const__));
33753 GtkToolItem *gtk_tool_item_new (void);
33754
33755 void gtk_tool_item_set_homogeneous (GtkToolItem *tool_item,
33756 gboolean homogeneous);
33757 gboolean gtk_tool_item_get_homogeneous (GtkToolItem *tool_item);
33758
33759 void gtk_tool_item_set_expand (GtkToolItem *tool_item,
33760 gboolean expand);
33761 gboolean gtk_tool_item_get_expand (GtkToolItem *tool_item);
33762
33763 void gtk_tool_item_set_tooltip (GtkToolItem *tool_item,
33764 GtkTooltips *tooltips,
33765 const gchar *tip_text,
33766 const gchar *tip_private);
33767
33768 void gtk_tool_item_set_use_drag_window (GtkToolItem *toolitem,
33769 gboolean use_drag_window);
33770 gboolean gtk_tool_item_get_use_drag_window (GtkToolItem *toolitem);
33771
33772 void gtk_tool_item_set_visible_horizontal (GtkToolItem *toolitem,
33773 gboolean visible_horizontal);
33774 gboolean gtk_tool_item_get_visible_horizontal (GtkToolItem *toolitem);
33775
33776 void gtk_tool_item_set_visible_vertical (GtkToolItem *toolitem,
33777 gboolean visible_vertical);
33778 gboolean gtk_tool_item_get_visible_vertical (GtkToolItem *toolitem);
33779
33780 gboolean gtk_tool_item_get_is_important (GtkToolItem *tool_item);
33781 void gtk_tool_item_set_is_important (GtkToolItem *tool_item,
33782 gboolean is_important);
33783
33784 GtkIconSize gtk_tool_item_get_icon_size (GtkToolItem *tool_item);
33785 GtkOrientation gtk_tool_item_get_orientation (GtkToolItem *tool_item);
33786 GtkToolbarStyle gtk_tool_item_get_toolbar_style (GtkToolItem *tool_item);
33787 GtkReliefStyle gtk_tool_item_get_relief_style (GtkToolItem *tool_item);
33788
33789 GtkWidget * gtk_tool_item_retrieve_proxy_menu_item (GtkToolItem *tool_item);
33790 GtkWidget * gtk_tool_item_get_proxy_menu_item (GtkToolItem *tool_item,
33791 const gchar *menu_item_id);
33792 void gtk_tool_item_set_proxy_menu_item (GtkToolItem *tool_item,
33793 const gchar *menu_item_id,
33794 GtkWidget *menu_item);
33795 void gtk_tool_item_rebuild_menu (GtkToolItem *tool_item);
33796
33797
33798 void _gtk_tool_item_toolbar_reconfigured (GtkToolItem *tool_item);
33799 # 27 "/usr/include/gtk-2.0/gtk/gtktoolbutton.h" 2
33800 # 37 "/usr/include/gtk-2.0/gtk/gtktoolbutton.h"
33801 typedef struct _GtkToolButton GtkToolButton;
33802 typedef struct _GtkToolButtonClass GtkToolButtonClass;
33803 typedef struct _GtkToolButtonPrivate GtkToolButtonPrivate;
33804
33805 struct _GtkToolButton
33806 {
33807 GtkToolItem parent;
33808
33809
33810 GtkToolButtonPrivate *priv;
33811 };
33812
33813 struct _GtkToolButtonClass
33814 {
33815 GtkToolItemClass parent_class;
33816
33817 GType button_type;
33818
33819
33820 void (* clicked) (GtkToolButton *tool_item);
33821
33822
33823 void (* _gtk_reserved1) (void);
33824 void (* _gtk_reserved2) (void);
33825 void (* _gtk_reserved3) (void);
33826 void (* _gtk_reserved4) (void);
33827 };
33828
33829 GType gtk_tool_button_get_type (void) __attribute__((__const__));
33830 GtkToolItem *gtk_tool_button_new (GtkWidget *icon_widget,
33831 const gchar *label);
33832 GtkToolItem *gtk_tool_button_new_from_stock (const gchar *stock_id);
33833
33834 void gtk_tool_button_set_label (GtkToolButton *button,
33835 const gchar *label);
33836 const gchar *gtk_tool_button_get_label (GtkToolButton *button);
33837 void gtk_tool_button_set_use_underline (GtkToolButton *button,
33838 gboolean use_underline);
33839 gboolean gtk_tool_button_get_use_underline (GtkToolButton *button);
33840 void gtk_tool_button_set_stock_id (GtkToolButton *button,
33841 const gchar *stock_id);
33842 const gchar *gtk_tool_button_get_stock_id (GtkToolButton *button);
33843 void gtk_tool_button_set_icon_name (GtkToolButton *button,
33844 const gchar *icon_name);
33845 const gchar *gtk_tool_button_get_icon_name (GtkToolButton *button);
33846 void gtk_tool_button_set_icon_widget (GtkToolButton *button,
33847 GtkWidget *icon_widget);
33848 GtkWidget * gtk_tool_button_get_icon_widget (GtkToolButton *button);
33849 void gtk_tool_button_set_label_widget (GtkToolButton *button,
33850 GtkWidget *label_widget);
33851 GtkWidget * gtk_tool_button_get_label_widget (GtkToolButton *button);
33852
33853
33854
33855 GtkWidget *_gtk_tool_button_get_button (GtkToolButton *button);
33856 # 27 "/usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h" 2
33857 # 37 "/usr/include/gtk-2.0/gtk/gtkmenutoolbutton.h"
33858 typedef struct _GtkMenuToolButtonClass GtkMenuToolButtonClass;
33859 typedef struct _GtkMenuToolButton GtkMenuToolButton;
33860 typedef struct _GtkMenuToolButtonPrivate GtkMenuToolButtonPrivate;
33861
33862 struct _GtkMenuToolButton
33863 {
33864 GtkToolButton parent;
33865
33866
33867 GtkMenuToolButtonPrivate *priv;
33868 };
33869
33870 struct _GtkMenuToolButtonClass
33871 {
33872 GtkToolButtonClass parent_class;
33873
33874 void (*show_menu) (GtkMenuToolButton *button);
33875
33876
33877 void (*_gtk_reserved1) (void);
33878 void (*_gtk_reserved2) (void);
33879 void (*_gtk_reserved3) (void);
33880 void (*_gtk_reserved4) (void);
33881 };
33882
33883 GType gtk_menu_tool_button_get_type (void) __attribute__((__const__));
33884 GtkToolItem *gtk_menu_tool_button_new (GtkWidget *icon_widget,
33885 const gchar *label);
33886 GtkToolItem *gtk_menu_tool_button_new_from_stock (const gchar *stock_id);
33887
33888 void gtk_menu_tool_button_set_menu (GtkMenuToolButton *button,
33889 GtkWidget *menu);
33890 GtkWidget *gtk_menu_tool_button_get_menu (GtkMenuToolButton *button);
33891
33892 void gtk_menu_tool_button_set_arrow_tooltip (GtkMenuToolButton *button,
33893 GtkTooltips *tooltips,
33894 const gchar *tip_text,
33895 const gchar *tip_private);
33896 # 120 "/usr/include/gtk-2.0/gtk/gtk.h" 2
33897
33898 # 1 "/usr/include/gtk-2.0/gtk/gtkmessagedialog.h" 1
33899 # 33 "/usr/include/gtk-2.0/gtk/gtkmessagedialog.h"
33900
33901
33902 typedef enum
33903 {
33904 GTK_MESSAGE_INFO,
33905 GTK_MESSAGE_WARNING,
33906 GTK_MESSAGE_QUESTION,
33907 GTK_MESSAGE_ERROR
33908 } GtkMessageType;
33909
33910 typedef enum
33911 {
33912 GTK_BUTTONS_NONE,
33913 GTK_BUTTONS_OK,
33914 GTK_BUTTONS_CLOSE,
33915 GTK_BUTTONS_CANCEL,
33916 GTK_BUTTONS_YES_NO,
33917 GTK_BUTTONS_OK_CANCEL
33918 } GtkButtonsType;
33919 # 60 "/usr/include/gtk-2.0/gtk/gtkmessagedialog.h"
33920 typedef struct _GtkMessageDialog GtkMessageDialog;
33921 typedef struct _GtkMessageDialogClass GtkMessageDialogClass;
33922
33923 struct _GtkMessageDialog
33924 {
33925
33926
33927 GtkDialog parent_instance;
33928
33929 GtkWidget *image;
33930 GtkWidget *label;
33931 };
33932
33933 struct _GtkMessageDialogClass
33934 {
33935 GtkDialogClass parent_class;
33936
33937
33938 void (*_gtk_reserved1) (void);
33939 void (*_gtk_reserved2) (void);
33940 void (*_gtk_reserved3) (void);
33941 void (*_gtk_reserved4) (void);
33942 };
33943
33944 GType gtk_message_dialog_get_type (void) __attribute__((__const__));
33945
33946 GtkWidget* gtk_message_dialog_new (GtkWindow *parent,
33947 GtkDialogFlags flags,
33948 GtkMessageType type,
33949 GtkButtonsType buttons,
33950 const gchar *message_format,
33951 ...) __attribute__((__format__ (__printf__, 5, 6)));
33952
33953 GtkWidget* gtk_message_dialog_new_with_markup (GtkWindow *parent,
33954 GtkDialogFlags flags,
33955 GtkMessageType type,
33956 GtkButtonsType buttons,
33957 const gchar *message_format,
33958 ...) __attribute__((__format__ (__printf__, 5, 6)));
33959
33960 void gtk_message_dialog_set_markup (GtkMessageDialog *message_dialog,
33961 const gchar *str);
33962
33963 void gtk_message_dialog_format_secondary_text (GtkMessageDialog *message_dialog,
33964 const gchar *message_format,
33965 ...) __attribute__((__format__ (__printf__, 2, 3)));
33966
33967 void gtk_message_dialog_format_secondary_markup (GtkMessageDialog *message_dialog,
33968 const gchar *message_format,
33969 ...) __attribute__((__format__ (__printf__, 2, 3)));
33970 # 121 "/usr/include/gtk-2.0/gtk/gtk.h" 2
33971
33972
33973 # 1 "/usr/include/gtk-2.0/gtk/gtkmodules.h" 1
33974 # 27 "/usr/include/gtk-2.0/gtk/gtkmodules.h"
33975
33976
33977
33978
33979
33980 gchar * _gtk_find_module (const gchar *name,
33981 const gchar *type);
33982 gchar **_gtk_get_module_path (const gchar *type);
33983
33984 void _gtk_modules_init (gint *argc,
33985 gchar ***argv,
33986 const gchar *gtk_modules_args);
33987 void _gtk_modules_settings_changed (GtkSettings *settings,
33988 const gchar *modules);
33989
33990 typedef void (*GtkModuleInitFunc) (gint *argc,
33991 gchar ***argv);
33992 typedef void (*GtkModuleDisplayInitFunc) (GdkDisplay *display);
33993 # 123 "/usr/include/gtk-2.0/gtk/gtk.h" 2
33994
33995 # 1 "/usr/include/gtk-2.0/gtk/gtknotebook.h" 1
33996 # 34 "/usr/include/gtk-2.0/gtk/gtknotebook.h"
33997 # 44 "/usr/include/gtk-2.0/gtk/gtknotebook.h"
33998 typedef enum
33999 {
34000 GTK_NOTEBOOK_TAB_FIRST,
34001 GTK_NOTEBOOK_TAB_LAST
34002 } GtkNotebookTab;
34003
34004 typedef struct _GtkNotebook GtkNotebook;
34005 typedef struct _GtkNotebookClass GtkNotebookClass;
34006 typedef struct _GtkNotebookPage GtkNotebookPage;
34007
34008 struct _GtkNotebook
34009 {
34010 GtkContainer container;
34011
34012 GtkNotebookPage *cur_page;
34013 GList *children;
34014 GList *first_tab;
34015 GList *focus_tab;
34016
34017 GtkWidget *menu;
34018 GdkWindow *event_window;
34019
34020 guint32 timer;
34021
34022 guint16 tab_hborder;
34023 guint16 tab_vborder;
34024
34025 guint show_tabs : 1;
34026 guint homogeneous : 1;
34027 guint show_border : 1;
34028 guint tab_pos : 2;
34029 guint scrollable : 1;
34030 guint in_child : 3;
34031 guint click_child : 3;
34032 guint button : 2;
34033 guint need_timer : 1;
34034 guint child_has_focus : 1;
34035 guint have_visible_child : 1;
34036 guint focus_out : 1;
34037
34038 guint has_before_previous : 1;
34039 guint has_before_next : 1;
34040 guint has_after_previous : 1;
34041 guint has_after_next : 1;
34042 };
34043
34044 struct _GtkNotebookClass
34045 {
34046 GtkContainerClass parent_class;
34047
34048 void (* switch_page) (GtkNotebook *notebook,
34049 GtkNotebookPage *page,
34050 guint page_num);
34051
34052
34053 gboolean (* select_page) (GtkNotebook *notebook,
34054 gboolean move_focus);
34055 gboolean (* focus_tab) (GtkNotebook *notebook,
34056 GtkNotebookTab type);
34057 void (* change_current_page) (GtkNotebook *notebook,
34058 gint offset);
34059 void (* move_focus_out) (GtkNotebook *notebook,
34060 GtkDirectionType direction);
34061
34062
34063 void (*_gtk_reserved1) (void);
34064 void (*_gtk_reserved2) (void);
34065 void (*_gtk_reserved3) (void);
34066 void (*_gtk_reserved4) (void);
34067 };
34068
34069
34070
34071
34072
34073 GType gtk_notebook_get_type (void) __attribute__((__const__));
34074 GtkWidget * gtk_notebook_new (void);
34075 gint gtk_notebook_append_page (GtkNotebook *notebook,
34076 GtkWidget *child,
34077 GtkWidget *tab_label);
34078 gint gtk_notebook_append_page_menu (GtkNotebook *notebook,
34079 GtkWidget *child,
34080 GtkWidget *tab_label,
34081 GtkWidget *menu_label);
34082 gint gtk_notebook_prepend_page (GtkNotebook *notebook,
34083 GtkWidget *child,
34084 GtkWidget *tab_label);
34085 gint gtk_notebook_prepend_page_menu (GtkNotebook *notebook,
34086 GtkWidget *child,
34087 GtkWidget *tab_label,
34088 GtkWidget *menu_label);
34089 gint gtk_notebook_insert_page (GtkNotebook *notebook,
34090 GtkWidget *child,
34091 GtkWidget *tab_label,
34092 gint position);
34093 gint gtk_notebook_insert_page_menu (GtkNotebook *notebook,
34094 GtkWidget *child,
34095 GtkWidget *tab_label,
34096 GtkWidget *menu_label,
34097 gint position);
34098 void gtk_notebook_remove_page (GtkNotebook *notebook,
34099 gint page_num);
34100
34101
34102
34103
34104
34105 gint gtk_notebook_get_current_page (GtkNotebook *notebook);
34106 GtkWidget* gtk_notebook_get_nth_page (GtkNotebook *notebook,
34107 gint page_num);
34108 gint gtk_notebook_get_n_pages (GtkNotebook *notebook);
34109 gint gtk_notebook_page_num (GtkNotebook *notebook,
34110 GtkWidget *child);
34111 void gtk_notebook_set_current_page (GtkNotebook *notebook,
34112 gint page_num);
34113 void gtk_notebook_next_page (GtkNotebook *notebook);
34114 void gtk_notebook_prev_page (GtkNotebook *notebook);
34115
34116
34117
34118
34119
34120 void gtk_notebook_set_show_border (GtkNotebook *notebook,
34121 gboolean show_border);
34122 gboolean gtk_notebook_get_show_border (GtkNotebook *notebook);
34123 void gtk_notebook_set_show_tabs (GtkNotebook *notebook,
34124 gboolean show_tabs);
34125 gboolean gtk_notebook_get_show_tabs (GtkNotebook *notebook);
34126 void gtk_notebook_set_tab_pos (GtkNotebook *notebook,
34127 GtkPositionType pos);
34128 GtkPositionType gtk_notebook_get_tab_pos (GtkNotebook *notebook);
34129
34130
34131 void gtk_notebook_set_homogeneous_tabs (GtkNotebook *notebook,
34132 gboolean homogeneous);
34133 void gtk_notebook_set_tab_border (GtkNotebook *notebook,
34134 guint border_width);
34135 void gtk_notebook_set_tab_hborder (GtkNotebook *notebook,
34136 guint tab_hborder);
34137 void gtk_notebook_set_tab_vborder (GtkNotebook *notebook,
34138 guint tab_vborder);
34139
34140
34141 void gtk_notebook_set_scrollable (GtkNotebook *notebook,
34142 gboolean scrollable);
34143 gboolean gtk_notebook_get_scrollable (GtkNotebook *notebook);
34144
34145
34146
34147
34148
34149 void gtk_notebook_popup_enable (GtkNotebook *notebook);
34150 void gtk_notebook_popup_disable (GtkNotebook *notebook);
34151
34152
34153
34154
34155
34156 GtkWidget * gtk_notebook_get_tab_label (GtkNotebook *notebook,
34157 GtkWidget *child);
34158 void gtk_notebook_set_tab_label (GtkNotebook *notebook,
34159 GtkWidget *child,
34160 GtkWidget *tab_label);
34161 void gtk_notebook_set_tab_label_text (GtkNotebook *notebook,
34162 GtkWidget *child,
34163 const gchar *tab_text);
34164 const gchar *gtk_notebook_get_tab_label_text (GtkNotebook *notebook,
34165 GtkWidget *child);
34166 GtkWidget * gtk_notebook_get_menu_label (GtkNotebook *notebook,
34167 GtkWidget *child);
34168 void gtk_notebook_set_menu_label (GtkNotebook *notebook,
34169 GtkWidget *child,
34170 GtkWidget *menu_label);
34171 void gtk_notebook_set_menu_label_text (GtkNotebook *notebook,
34172 GtkWidget *child,
34173 const gchar *menu_text);
34174 const gchar *gtk_notebook_get_menu_label_text (GtkNotebook *notebook,
34175 GtkWidget *child);
34176 void gtk_notebook_query_tab_label_packing (GtkNotebook *notebook,
34177 GtkWidget *child,
34178 gboolean *expand,
34179 gboolean *fill,
34180 GtkPackType *pack_type);
34181 void gtk_notebook_set_tab_label_packing (GtkNotebook *notebook,
34182 GtkWidget *child,
34183 gboolean expand,
34184 gboolean fill,
34185 GtkPackType pack_type);
34186 void gtk_notebook_reorder_child (GtkNotebook *notebook,
34187 GtkWidget *child,
34188 gint position);
34189 # 124 "/usr/include/gtk-2.0/gtk/gtk.h" 2
34190
34191
34192 # 1 "/usr/include/gtk-2.0/gtk/gtkoldeditable.h" 1
34193 # 37 "/usr/include/gtk-2.0/gtk/gtkoldeditable.h"
34194 # 47 "/usr/include/gtk-2.0/gtk/gtkoldeditable.h"
34195 typedef struct _GtkOldEditable GtkOldEditable;
34196 typedef struct _GtkOldEditableClass GtkOldEditableClass;
34197
34198 typedef void (*GtkTextFunction) (GtkOldEditable *editable, guint32 time_);
34199
34200 struct _GtkOldEditable
34201 {
34202 GtkWidget widget;
34203
34204
34205 guint current_pos;
34206
34207 guint selection_start_pos;
34208 guint selection_end_pos;
34209 guint has_selection : 1;
34210
34211
34212 guint editable : 1;
34213 guint visible : 1;
34214
34215 gchar *clipboard_text;
34216 };
34217
34218 struct _GtkOldEditableClass
34219 {
34220 GtkWidgetClass parent_class;
34221
34222
34223 void (* activate) (GtkOldEditable *editable);
34224 void (* set_editable) (GtkOldEditable *editable,
34225 gboolean is_editable);
34226 void (* move_cursor) (GtkOldEditable *editable,
34227 gint x,
34228 gint y);
34229 void (* move_word) (GtkOldEditable *editable,
34230 gint n);
34231 void (* move_page) (GtkOldEditable *editable,
34232 gint x,
34233 gint y);
34234 void (* move_to_row) (GtkOldEditable *editable,
34235 gint row);
34236 void (* move_to_column) (GtkOldEditable *editable,
34237 gint row);
34238 void (* kill_char) (GtkOldEditable *editable,
34239 gint direction);
34240 void (* kill_word) (GtkOldEditable *editable,
34241 gint direction);
34242 void (* kill_line) (GtkOldEditable *editable,
34243 gint direction);
34244 void (* cut_clipboard) (GtkOldEditable *editable);
34245 void (* copy_clipboard) (GtkOldEditable *editable);
34246 void (* paste_clipboard) (GtkOldEditable *editable);
34247
34248
34249
34250
34251
34252
34253 void (* update_text) (GtkOldEditable *editable,
34254 gint start_pos,
34255 gint end_pos);
34256 gchar* (* get_chars) (GtkOldEditable *editable,
34257 gint start_pos,
34258 gint end_pos);
34259 void (* set_selection)(GtkOldEditable *editable,
34260 gint start_pos,
34261 gint end_pos);
34262 void (* set_position) (GtkOldEditable *editable,
34263 gint position);
34264 };
34265
34266 GtkType gtk_old_editable_get_type (void) __attribute__((__const__));
34267 void gtk_old_editable_claim_selection (GtkOldEditable *old_editable,
34268 gboolean claim,
34269 guint32 time_);
34270 void gtk_old_editable_changed (GtkOldEditable *old_editable);
34271 # 126 "/usr/include/gtk-2.0/gtk/gtk.h" 2
34272
34273 # 1 "/usr/include/gtk-2.0/gtk/gtkoptionmenu.h" 1
34274 # 37 "/usr/include/gtk-2.0/gtk/gtkoptionmenu.h"
34275 # 47 "/usr/include/gtk-2.0/gtk/gtkoptionmenu.h"
34276 typedef struct _GtkOptionMenu GtkOptionMenu;
34277 typedef struct _GtkOptionMenuClass GtkOptionMenuClass;
34278
34279 struct _GtkOptionMenu
34280 {
34281 GtkButton button;
34282
34283 GtkWidget *menu;
34284 GtkWidget *menu_item;
34285
34286 guint16 width;
34287 guint16 height;
34288 };
34289
34290 struct _GtkOptionMenuClass
34291 {
34292 GtkButtonClass parent_class;
34293
34294 void (*changed) (GtkOptionMenu *option_menu);
34295
34296
34297 void (*_gtk_reserved1) (void);
34298 void (*_gtk_reserved2) (void);
34299 void (*_gtk_reserved3) (void);
34300 void (*_gtk_reserved4) (void);
34301 };
34302
34303
34304 GType gtk_option_menu_get_type (void) __attribute__((__const__));
34305 GtkWidget* gtk_option_menu_new (void);
34306 GtkWidget* gtk_option_menu_get_menu (GtkOptionMenu *option_menu);
34307 void gtk_option_menu_set_menu (GtkOptionMenu *option_menu,
34308 GtkWidget *menu);
34309 void gtk_option_menu_remove_menu (GtkOptionMenu *option_menu);
34310 gint gtk_option_menu_get_history (GtkOptionMenu *option_menu);
34311 void gtk_option_menu_set_history (GtkOptionMenu *option_menu,
34312 guint index_);
34313 # 127 "/usr/include/gtk-2.0/gtk/gtk.h" 2
34314
34315
34316 # 1 "/usr/include/gtk-2.0/gtk/gtkpixmap.h" 1
34317 # 37 "/usr/include/gtk-2.0/gtk/gtkpixmap.h"
34318 # 47 "/usr/include/gtk-2.0/gtk/gtkpixmap.h"
34319 typedef struct _GtkPixmap GtkPixmap;
34320 typedef struct _GtkPixmapClass GtkPixmapClass;
34321
34322 struct _GtkPixmap
34323 {
34324 GtkMisc misc;
34325
34326 GdkPixmap *pixmap;
34327 GdkBitmap *mask;
34328
34329 GdkPixmap *pixmap_insensitive;
34330 guint build_insensitive : 1;
34331 };
34332
34333 struct _GtkPixmapClass
34334 {
34335 GtkMiscClass parent_class;
34336 };
34337
34338
34339 GtkType gtk_pixmap_get_type (void) __attribute__((__const__));
34340 GtkWidget* gtk_pixmap_new (GdkPixmap *pixmap,
34341 GdkBitmap *mask);
34342 void gtk_pixmap_set (GtkPixmap *pixmap,
34343 GdkPixmap *val,
34344 GdkBitmap *mask);
34345 void gtk_pixmap_get (GtkPixmap *pixmap,
34346 GdkPixmap **val,
34347 GdkBitmap **mask);
34348
34349 void gtk_pixmap_set_build_insensitive (GtkPixmap *pixmap,
34350 gboolean build);
34351 # 129 "/usr/include/gtk-2.0/gtk/gtk.h" 2
34352
34353 # 1 "/usr/include/gtk-2.0/gtk/gtkplug.h" 1
34354 # 31 "/usr/include/gtk-2.0/gtk/gtkplug.h"
34355
34356 # 1 "/usr/include/gtk-2.0/gtk/gtksocket.h" 1
34357 # 31 "/usr/include/gtk-2.0/gtk/gtksocket.h"
34358 # 41 "/usr/include/gtk-2.0/gtk/gtksocket.h"
34359 typedef struct _GtkSocket GtkSocket;
34360 typedef struct _GtkSocketClass GtkSocketClass;
34361
34362 struct _GtkSocket
34363 {
34364 GtkContainer container;
34365
34366 guint16 request_width;
34367 guint16 request_height;
34368 guint16 current_width;
34369 guint16 current_height;
34370
34371 GdkWindow *plug_window;
34372 GtkWidget *plug_widget;
34373
34374 gshort xembed_version;
34375 guint same_app : 1;
34376 guint focus_in : 1;
34377 guint have_size : 1;
34378 guint need_map : 1;
34379 guint is_mapped : 1;
34380 guint active : 1;
34381
34382 GtkAccelGroup *accel_group;
34383 GtkWidget *toplevel;
34384 };
34385
34386 struct _GtkSocketClass
34387 {
34388 GtkContainerClass parent_class;
34389
34390 void (*plug_added) (GtkSocket *socket_);
34391 gboolean (*plug_removed) (GtkSocket *socket_);
34392
34393
34394 void (*_gtk_reserved1) (void);
34395 void (*_gtk_reserved2) (void);
34396 void (*_gtk_reserved3) (void);
34397 void (*_gtk_reserved4) (void);
34398 };
34399
34400
34401 GType gtk_socket_get_type (void) __attribute__((__const__));
34402 GtkWidget* gtk_socket_new (void);
34403
34404 void gtk_socket_add_id (GtkSocket *socket_,
34405 GdkNativeWindow window_id);
34406 GdkNativeWindow gtk_socket_get_id (GtkSocket *socket_);
34407
34408
34409 void gtk_socket_steal (GtkSocket *socket_,
34410 GdkNativeWindow wid);
34411 # 32 "/usr/include/gtk-2.0/gtk/gtkplug.h" 2
34412 # 45 "/usr/include/gtk-2.0/gtk/gtkplug.h"
34413 typedef struct _GtkPlug GtkPlug;
34414 typedef struct _GtkPlugClass GtkPlugClass;
34415
34416
34417 struct _GtkPlug
34418 {
34419 GtkWindow window;
34420
34421 GdkWindow *socket_window;
34422 GtkWidget *modality_window;
34423 GtkWindowGroup *modality_group;
34424 GHashTable *grabbed_keys;
34425
34426 guint same_app : 1;
34427 };
34428
34429 struct _GtkPlugClass
34430 {
34431 GtkWindowClass parent_class;
34432
34433 void (*embedded) (GtkPlug *plug);
34434
34435
34436 void (*_gtk_reserved1) (void);
34437 void (*_gtk_reserved2) (void);
34438 void (*_gtk_reserved3) (void);
34439 void (*_gtk_reserved4) (void);
34440 };
34441
34442
34443 GType gtk_plug_get_type (void) __attribute__((__const__));
34444
34445
34446
34447
34448
34449
34450
34451 void gtk_plug_construct_for_display (GtkPlug *plug,
34452 GdkDisplay *display,
34453 GdkNativeWindow socket_id);
34454 GtkWidget* gtk_plug_new_for_display (GdkDisplay *display,
34455 GdkNativeWindow socket_id);
34456
34457 GdkNativeWindow gtk_plug_get_id (GtkPlug *plug);
34458
34459 void _gtk_plug_add_to_socket (GtkPlug *plug,
34460 GtkSocket *socket_);
34461 void _gtk_plug_remove_from_socket (GtkPlug *plug,
34462 GtkSocket *socket_);
34463 # 130 "/usr/include/gtk-2.0/gtk/gtk.h" 2
34464
34465 # 1 "/usr/include/gtk-2.0/gtk/gtkpreview.h" 1
34466 # 36 "/usr/include/gtk-2.0/gtk/gtkpreview.h"
34467 # 46 "/usr/include/gtk-2.0/gtk/gtkpreview.h"
34468 typedef struct _GtkPreview GtkPreview;
34469 typedef struct _GtkPreviewInfo GtkPreviewInfo;
34470 typedef union _GtkDitherInfo GtkDitherInfo;
34471 typedef struct _GtkPreviewClass GtkPreviewClass;
34472
34473 struct _GtkPreview
34474 {
34475 GtkWidget widget;
34476
34477 guchar *buffer;
34478 guint16 buffer_width;
34479 guint16 buffer_height;
34480
34481 guint16 bpp;
34482 guint16 rowstride;
34483
34484 GdkRgbDither dither;
34485
34486 guint type : 1;
34487 guint expand : 1;
34488 };
34489
34490 struct _GtkPreviewInfo
34491 {
34492 guchar *lookup;
34493
34494 gdouble gamma;
34495 };
34496
34497 union _GtkDitherInfo
34498 {
34499 gushort s[2];
34500 guchar c[4];
34501 };
34502
34503 struct _GtkPreviewClass
34504 {
34505 GtkWidgetClass parent_class;
34506
34507 GtkPreviewInfo info;
34508
34509 };
34510
34511
34512 GtkType gtk_preview_get_type (void) __attribute__((__const__));
34513 void gtk_preview_uninit (void);
34514 GtkWidget* gtk_preview_new (GtkPreviewType type);
34515 void gtk_preview_size (GtkPreview *preview,
34516 gint width,
34517 gint height);
34518 void gtk_preview_put (GtkPreview *preview,
34519 GdkWindow *window,
34520 GdkGC *gc,
34521 gint srcx,
34522 gint srcy,
34523 gint destx,
34524 gint desty,
34525 gint width,
34526 gint height);
34527 void gtk_preview_draw_row (GtkPreview *preview,
34528 guchar *data,
34529 gint x,
34530 gint y,
34531 gint w);
34532 void gtk_preview_set_expand (GtkPreview *preview,
34533 gboolean expand);
34534
34535 void gtk_preview_set_gamma (double gamma_);
34536 void gtk_preview_set_color_cube (guint nred_shades,
34537 guint ngreen_shades,
34538 guint nblue_shades,
34539 guint ngray_shades);
34540 void gtk_preview_set_install_cmap (gint install_cmap);
34541 void gtk_preview_set_reserved (gint nreserved);
34542 void gtk_preview_set_dither (GtkPreview *preview,
34543 GdkRgbDither dither);
34544
34545 GdkVisual* gtk_preview_get_visual (void);
34546 GdkColormap* gtk_preview_get_cmap (void);
34547
34548 GtkPreviewInfo* gtk_preview_get_info (void);
34549
34550
34551
34552
34553
34554
34555 void gtk_preview_reset (void);
34556 # 131 "/usr/include/gtk-2.0/gtk/gtk.h" 2
34557
34558 # 1 "/usr/include/gtk-2.0/gtk/gtkprogress.h" 1
34559 # 36 "/usr/include/gtk-2.0/gtk/gtkprogress.h"
34560 # 49 "/usr/include/gtk-2.0/gtk/gtkprogress.h"
34561 typedef struct _GtkProgress GtkProgress;
34562 typedef struct _GtkProgressClass GtkProgressClass;
34563
34564
34565 struct _GtkProgress
34566 {
34567 GtkWidget widget;
34568
34569 GtkAdjustment *adjustment;
34570 GdkPixmap *offscreen_pixmap;
34571 gchar *format;
34572 gfloat x_align;
34573 gfloat y_align;
34574
34575 guint show_text : 1;
34576 guint activity_mode : 1;
34577 guint use_text_format : 1;
34578 };
34579
34580 struct _GtkProgressClass
34581 {
34582 GtkWidgetClass parent_class;
34583
34584 void (* paint) (GtkProgress *progress);
34585 void (* update) (GtkProgress *progress);
34586 void (* act_mode_enter) (GtkProgress *progress);
34587
34588
34589 void (*_gtk_reserved1) (void);
34590 void (*_gtk_reserved2) (void);
34591 void (*_gtk_reserved3) (void);
34592 void (*_gtk_reserved4) (void);
34593 };
34594
34595
34596
34597
34598
34599
34600
34601 GType gtk_progress_get_type (void) __attribute__((__const__));
34602 void gtk_progress_set_show_text (GtkProgress *progress,
34603 gboolean show_text);
34604 void gtk_progress_set_text_alignment (GtkProgress *progress,
34605 gfloat x_align,
34606 gfloat y_align);
34607 void gtk_progress_set_format_string (GtkProgress *progress,
34608 const gchar *format);
34609 void gtk_progress_set_adjustment (GtkProgress *progress,
34610 GtkAdjustment *adjustment);
34611 void gtk_progress_configure (GtkProgress *progress,
34612 gdouble value,
34613 gdouble min,
34614 gdouble max);
34615 void gtk_progress_set_percentage (GtkProgress *progress,
34616 gdouble percentage);
34617 void gtk_progress_set_value (GtkProgress *progress,
34618 gdouble value);
34619 gdouble gtk_progress_get_value (GtkProgress *progress);
34620 void gtk_progress_set_activity_mode (GtkProgress *progress,
34621 gboolean activity_mode);
34622 gchar* gtk_progress_get_current_text (GtkProgress *progress);
34623 gchar* gtk_progress_get_text_from_value (GtkProgress *progress,
34624 gdouble value);
34625 gdouble gtk_progress_get_current_percentage (GtkProgress *progress);
34626 gdouble gtk_progress_get_percentage_from_value (GtkProgress *progress,
34627 gdouble value);
34628 # 132 "/usr/include/gtk-2.0/gtk/gtk.h" 2
34629
34630 # 1 "/usr/include/gtk-2.0/gtk/gtkprogressbar.h" 1
34631 # 35 "/usr/include/gtk-2.0/gtk/gtkprogressbar.h"
34632 # 45 "/usr/include/gtk-2.0/gtk/gtkprogressbar.h"
34633 typedef struct _GtkProgressBar GtkProgressBar;
34634 typedef struct _GtkProgressBarClass GtkProgressBarClass;
34635
34636 typedef enum
34637 {
34638 GTK_PROGRESS_CONTINUOUS,
34639 GTK_PROGRESS_DISCRETE
34640 } GtkProgressBarStyle;
34641
34642 typedef enum
34643 {
34644 GTK_PROGRESS_LEFT_TO_RIGHT,
34645 GTK_PROGRESS_RIGHT_TO_LEFT,
34646 GTK_PROGRESS_BOTTOM_TO_TOP,
34647 GTK_PROGRESS_TOP_TO_BOTTOM
34648 } GtkProgressBarOrientation;
34649
34650 struct _GtkProgressBar
34651 {
34652 GtkProgress progress;
34653
34654 GtkProgressBarStyle bar_style;
34655 GtkProgressBarOrientation orientation;
34656
34657 guint blocks;
34658 gint in_block;
34659
34660 gint activity_pos;
34661 guint activity_step;
34662 guint activity_blocks;
34663
34664 gdouble pulse_fraction;
34665
34666 guint activity_dir : 1;
34667 guint ellipsize : 3;
34668 };
34669
34670 struct _GtkProgressBarClass
34671 {
34672 GtkProgressClass parent_class;
34673
34674
34675 void (*_gtk_reserved1) (void);
34676 void (*_gtk_reserved2) (void);
34677 void (*_gtk_reserved3) (void);
34678 void (*_gtk_reserved4) (void);
34679 };
34680
34681
34682 GType gtk_progress_bar_get_type (void) __attribute__((__const__));
34683 GtkWidget* gtk_progress_bar_new (void);
34684 # 124 "/usr/include/gtk-2.0/gtk/gtkprogressbar.h"
34685 void gtk_progress_bar_pulse (GtkProgressBar *pbar);
34686 void gtk_progress_bar_set_text (GtkProgressBar *pbar,
34687 const gchar *text);
34688 void gtk_progress_bar_set_fraction (GtkProgressBar *pbar,
34689 gdouble fraction);
34690
34691 void gtk_progress_bar_set_pulse_step (GtkProgressBar *pbar,
34692 gdouble fraction);
34693 void gtk_progress_bar_set_orientation (GtkProgressBar *pbar,
34694 GtkProgressBarOrientation orientation);
34695
34696 const gchar* gtk_progress_bar_get_text (GtkProgressBar *pbar);
34697 gdouble gtk_progress_bar_get_fraction (GtkProgressBar *pbar);
34698 gdouble gtk_progress_bar_get_pulse_step (GtkProgressBar *pbar);
34699
34700 GtkProgressBarOrientation gtk_progress_bar_get_orientation (GtkProgressBar *pbar);
34701 void gtk_progress_bar_set_ellipsize (GtkProgressBar *pbar,
34702 PangoEllipsizeMode mode);
34703 PangoEllipsizeMode gtk_progress_bar_get_ellipsize (GtkProgressBar *pbar);
34704
34705
34706
34707
34708
34709 GtkWidget* gtk_progress_bar_new_with_adjustment (GtkAdjustment *adjustment);
34710 void gtk_progress_bar_set_bar_style (GtkProgressBar *pbar,
34711 GtkProgressBarStyle style);
34712 void gtk_progress_bar_set_discrete_blocks (GtkProgressBar *pbar,
34713 guint blocks);
34714
34715
34716
34717
34718 void gtk_progress_bar_set_activity_step (GtkProgressBar *pbar,
34719 guint step);
34720 void gtk_progress_bar_set_activity_blocks (GtkProgressBar *pbar,
34721 guint blocks);
34722 void gtk_progress_bar_update (GtkProgressBar *pbar,
34723 gdouble percentage);
34724 # 133 "/usr/include/gtk-2.0/gtk/gtk.h" 2
34725
34726 # 1 "/usr/include/gtk-2.0/gtk/gtkradioaction.h" 1
34727 # 33 "/usr/include/gtk-2.0/gtk/gtkradioaction.h"
34728
34729 # 1 "/usr/include/gtk-2.0/gtk/gtktoggleaction.h" 1
34730 # 35 "/usr/include/gtk-2.0/gtk/gtktoggleaction.h"
34731 # 44 "/usr/include/gtk-2.0/gtk/gtktoggleaction.h"
34732 typedef struct _GtkToggleAction GtkToggleAction;
34733 typedef struct _GtkToggleActionPrivate GtkToggleActionPrivate;
34734 typedef struct _GtkToggleActionClass GtkToggleActionClass;
34735
34736 struct _GtkToggleAction
34737 {
34738 GtkAction parent;
34739
34740
34741
34742 GtkToggleActionPrivate *private_data;
34743 };
34744
34745 struct _GtkToggleActionClass
34746 {
34747 GtkActionClass parent_class;
34748
34749 void (* toggled) (GtkToggleAction *action);
34750
34751
34752 void (*_gtk_reserved1) (void);
34753 void (*_gtk_reserved2) (void);
34754 void (*_gtk_reserved3) (void);
34755 void (*_gtk_reserved4) (void);
34756 };
34757
34758 GType gtk_toggle_action_get_type (void) __attribute__((__const__));
34759 GtkToggleAction *gtk_toggle_action_new (const gchar *name,
34760 const gchar *label,
34761 const gchar *tooltip,
34762 const gchar *stock_id);
34763 void gtk_toggle_action_toggled (GtkToggleAction *action);
34764 void gtk_toggle_action_set_active (GtkToggleAction *action,
34765 gboolean is_active);
34766 gboolean gtk_toggle_action_get_active (GtkToggleAction *action);
34767 void gtk_toggle_action_set_draw_as_radio (GtkToggleAction *action,
34768 gboolean draw_as_radio);
34769 gboolean gtk_toggle_action_get_draw_as_radio (GtkToggleAction *action);
34770 # 34 "/usr/include/gtk-2.0/gtk/gtkradioaction.h" 2
34771 # 44 "/usr/include/gtk-2.0/gtk/gtkradioaction.h"
34772 typedef struct _GtkRadioAction GtkRadioAction;
34773 typedef struct _GtkRadioActionPrivate GtkRadioActionPrivate;
34774 typedef struct _GtkRadioActionClass GtkRadioActionClass;
34775
34776 struct _GtkRadioAction
34777 {
34778 GtkToggleAction parent;
34779
34780
34781
34782 GtkRadioActionPrivate *private_data;
34783 };
34784
34785 struct _GtkRadioActionClass
34786 {
34787 GtkToggleActionClass parent_class;
34788
34789 void (* changed) (GtkRadioAction *action, GtkRadioAction *current);
34790
34791
34792 void (*_gtk_reserved1) (void);
34793 void (*_gtk_reserved2) (void);
34794 void (*_gtk_reserved3) (void);
34795 void (*_gtk_reserved4) (void);
34796 };
34797
34798 GType gtk_radio_action_get_type (void) __attribute__((__const__));
34799 GtkRadioAction *gtk_radio_action_new (const gchar *name,
34800 const gchar *label,
34801 const gchar *tooltip,
34802 const gchar *stock_id,
34803 gint value);
34804 GSList *gtk_radio_action_get_group (GtkRadioAction *action);
34805 void gtk_radio_action_set_group (GtkRadioAction *action,
34806 GSList *group);
34807 gint gtk_radio_action_get_current_value (GtkRadioAction *action);
34808 # 134 "/usr/include/gtk-2.0/gtk/gtk.h" 2
34809
34810 # 1 "/usr/include/gtk-2.0/gtk/gtkradiobutton.h" 1
34811 # 35 "/usr/include/gtk-2.0/gtk/gtkradiobutton.h"
34812 # 45 "/usr/include/gtk-2.0/gtk/gtkradiobutton.h"
34813 typedef struct _GtkRadioButton GtkRadioButton;
34814 typedef struct _GtkRadioButtonClass GtkRadioButtonClass;
34815
34816 struct _GtkRadioButton
34817 {
34818 GtkCheckButton check_button;
34819
34820 GSList *group;
34821 };
34822
34823 struct _GtkRadioButtonClass
34824 {
34825 GtkCheckButtonClass parent_class;
34826
34827
34828 void (*group_changed) (GtkRadioButton *radio_button);
34829
34830
34831 void (*_gtk_reserved2) (void);
34832 void (*_gtk_reserved3) (void);
34833 void (*_gtk_reserved4) (void);
34834 };
34835
34836
34837 GType gtk_radio_button_get_type (void) __attribute__((__const__));
34838
34839 GtkWidget* gtk_radio_button_new (GSList *group);
34840 GtkWidget* gtk_radio_button_new_from_widget (GtkRadioButton *group);
34841 GtkWidget* gtk_radio_button_new_with_label (GSList *group,
34842 const gchar *label);
34843 GtkWidget* gtk_radio_button_new_with_label_from_widget (GtkRadioButton *group,
34844 const gchar *label);
34845 GtkWidget* gtk_radio_button_new_with_mnemonic (GSList *group,
34846 const gchar *label);
34847 GtkWidget* gtk_radio_button_new_with_mnemonic_from_widget (GtkRadioButton *group,
34848 const gchar *label);
34849 GSList* gtk_radio_button_get_group (GtkRadioButton *radio_button);
34850 void gtk_radio_button_set_group (GtkRadioButton *radio_button,
34851 GSList *group);
34852 # 135 "/usr/include/gtk-2.0/gtk/gtk.h" 2
34853
34854 # 1 "/usr/include/gtk-2.0/gtk/gtkradiomenuitem.h" 1
34855 # 34 "/usr/include/gtk-2.0/gtk/gtkradiomenuitem.h"
34856 # 44 "/usr/include/gtk-2.0/gtk/gtkradiomenuitem.h"
34857 typedef struct _GtkRadioMenuItem GtkRadioMenuItem;
34858 typedef struct _GtkRadioMenuItemClass GtkRadioMenuItemClass;
34859
34860 struct _GtkRadioMenuItem
34861 {
34862 GtkCheckMenuItem check_menu_item;
34863
34864 GSList *group;
34865 };
34866
34867 struct _GtkRadioMenuItemClass
34868 {
34869 GtkCheckMenuItemClass parent_class;
34870
34871
34872 void (*group_changed) (GtkRadioMenuItem *radio_menu_item);
34873
34874
34875 void (*_gtk_reserved2) (void);
34876 void (*_gtk_reserved3) (void);
34877 void (*_gtk_reserved4) (void);
34878 };
34879
34880
34881 GType gtk_radio_menu_item_get_type (void) __attribute__((__const__));
34882
34883 GtkWidget* gtk_radio_menu_item_new (GSList *group);
34884 GtkWidget* gtk_radio_menu_item_new_with_label (GSList *group,
34885 const gchar *label);
34886 GtkWidget* gtk_radio_menu_item_new_with_mnemonic (GSList *group,
34887 const gchar *label);
34888 GtkWidget* gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group);
34889 GtkWidget *gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group,
34890 const gchar *label);
34891 GtkWidget *gtk_radio_menu_item_new_with_label_from_widget (GtkRadioMenuItem *group,
34892 const gchar *label);
34893 GSList* gtk_radio_menu_item_get_group (GtkRadioMenuItem *radio_menu_item);
34894 void gtk_radio_menu_item_set_group (GtkRadioMenuItem *radio_menu_item,
34895 GSList *group);
34896 # 136 "/usr/include/gtk-2.0/gtk/gtk.h" 2
34897
34898 # 1 "/usr/include/gtk-2.0/gtk/gtkradiotoolbutton.h" 1
34899 # 26 "/usr/include/gtk-2.0/gtk/gtkradiotoolbutton.h"
34900
34901 # 1 "/usr/include/gtk-2.0/gtk/gtktoggletoolbutton.h" 1
34902 # 26 "/usr/include/gtk-2.0/gtk/gtktoggletoolbutton.h"
34903
34904 # 1 "/usr/include/gtk-2.0/gtk/gtktoolbutton.h" 1
34905 # 27 "/usr/include/gtk-2.0/gtk/gtktoggletoolbutton.h" 2
34906 # 37 "/usr/include/gtk-2.0/gtk/gtktoggletoolbutton.h"
34907 typedef struct _GtkToggleToolButton GtkToggleToolButton;
34908 typedef struct _GtkToggleToolButtonClass GtkToggleToolButtonClass;
34909 typedef struct _GtkToggleToolButtonPrivate GtkToggleToolButtonPrivate;
34910
34911 struct _GtkToggleToolButton
34912 {
34913 GtkToolButton parent;
34914
34915
34916 GtkToggleToolButtonPrivate *priv;
34917 };
34918
34919 struct _GtkToggleToolButtonClass
34920 {
34921 GtkToolButtonClass parent_class;
34922
34923
34924 void (* toggled) (GtkToggleToolButton *button);
34925
34926
34927 void (* _gtk_reserved1) (void);
34928 void (* _gtk_reserved2) (void);
34929 void (* _gtk_reserved3) (void);
34930 void (* _gtk_reserved4) (void);
34931 };
34932
34933 GType gtk_toggle_tool_button_get_type (void) __attribute__((__const__));
34934 GtkToolItem *gtk_toggle_tool_button_new (void);
34935 GtkToolItem *gtk_toggle_tool_button_new_from_stock (const gchar *stock_id);
34936
34937 void gtk_toggle_tool_button_set_active (GtkToggleToolButton *button,
34938 gboolean is_active);
34939 gboolean gtk_toggle_tool_button_get_active (GtkToggleToolButton *button);
34940 # 27 "/usr/include/gtk-2.0/gtk/gtkradiotoolbutton.h" 2
34941 # 37 "/usr/include/gtk-2.0/gtk/gtkradiotoolbutton.h"
34942 typedef struct _GtkRadioToolButton GtkRadioToolButton;
34943 typedef struct _GtkRadioToolButtonClass GtkRadioToolButtonClass;
34944
34945 struct _GtkRadioToolButton
34946 {
34947 GtkToggleToolButton parent;
34948 };
34949
34950 struct _GtkRadioToolButtonClass
34951 {
34952 GtkToggleToolButtonClass parent_class;
34953
34954
34955 void (* _gtk_reserved1) (void);
34956 void (* _gtk_reserved2) (void);
34957 void (* _gtk_reserved3) (void);
34958 void (* _gtk_reserved4) (void);
34959 };
34960
34961 GType gtk_radio_tool_button_get_type (void) __attribute__((__const__));
34962
34963 GtkToolItem *gtk_radio_tool_button_new (GSList *group);
34964 GtkToolItem *gtk_radio_tool_button_new_from_stock (GSList *group,
34965 const gchar *stock_id);
34966 GtkToolItem *gtk_radio_tool_button_new_from_widget (GtkRadioToolButton *group);
34967 GtkToolItem *gtk_radio_tool_button_new_with_stock_from_widget (GtkRadioToolButton *group,
34968 const gchar *stock_id);
34969 GSList * gtk_radio_tool_button_get_group (GtkRadioToolButton *button);
34970 void gtk_radio_tool_button_set_group (GtkRadioToolButton *button,
34971 GSList *group);
34972 # 137 "/usr/include/gtk-2.0/gtk/gtk.h" 2
34973
34974
34975
34976
34977
34978
34979 # 1 "/usr/include/gtk-2.0/gtk/gtkscrolledwindow.h" 1
34980 # 34 "/usr/include/gtk-2.0/gtk/gtkscrolledwindow.h"
34981
34982 # 1 "/usr/include/gtk-2.0/gtk/gtkviewport.h" 1
34983 # 36 "/usr/include/gtk-2.0/gtk/gtkviewport.h"
34984 # 47 "/usr/include/gtk-2.0/gtk/gtkviewport.h"
34985 typedef struct _GtkViewport GtkViewport;
34986 typedef struct _GtkViewportClass GtkViewportClass;
34987
34988 struct _GtkViewport
34989 {
34990 GtkBin bin;
34991
34992 GtkShadowType shadow_type;
34993 GdkWindow *view_window;
34994 GdkWindow *bin_window;
34995 GtkAdjustment *hadjustment;
34996 GtkAdjustment *vadjustment;
34997 };
34998
34999 struct _GtkViewportClass
35000 {
35001 GtkBinClass parent_class;
35002
35003 void (*set_scroll_adjustments) (GtkViewport *viewport,
35004 GtkAdjustment *hadjustment,
35005 GtkAdjustment *vadjustment);
35006 };
35007
35008
35009 GType gtk_viewport_get_type (void) __attribute__((__const__));
35010 GtkWidget* gtk_viewport_new (GtkAdjustment *hadjustment,
35011 GtkAdjustment *vadjustment);
35012 GtkAdjustment* gtk_viewport_get_hadjustment (GtkViewport *viewport);
35013 GtkAdjustment* gtk_viewport_get_vadjustment (GtkViewport *viewport);
35014 void gtk_viewport_set_hadjustment (GtkViewport *viewport,
35015 GtkAdjustment *adjustment);
35016 void gtk_viewport_set_vadjustment (GtkViewport *viewport,
35017 GtkAdjustment *adjustment);
35018 void gtk_viewport_set_shadow_type (GtkViewport *viewport,
35019 GtkShadowType type);
35020 GtkShadowType gtk_viewport_get_shadow_type (GtkViewport *viewport);
35021 # 35 "/usr/include/gtk-2.0/gtk/gtkscrolledwindow.h" 2
35022 # 49 "/usr/include/gtk-2.0/gtk/gtkscrolledwindow.h"
35023 typedef struct _GtkScrolledWindow GtkScrolledWindow;
35024 typedef struct _GtkScrolledWindowClass GtkScrolledWindowClass;
35025
35026 struct _GtkScrolledWindow
35027 {
35028 GtkBin container;
35029
35030
35031 GtkWidget *hscrollbar;
35032 GtkWidget *vscrollbar;
35033
35034
35035 guint hscrollbar_policy : 2;
35036 guint vscrollbar_policy : 2;
35037 guint hscrollbar_visible : 1;
35038 guint vscrollbar_visible : 1;
35039 guint window_placement : 2;
35040 guint focus_out : 1;
35041
35042 guint16 shadow_type;
35043 };
35044
35045 struct _GtkScrolledWindowClass
35046 {
35047 GtkBinClass parent_class;
35048
35049 gint scrollbar_spacing;
35050 # 84 "/usr/include/gtk-2.0/gtk/gtkscrolledwindow.h"
35051 void (*scroll_child) (GtkScrolledWindow *scrolled_window,
35052 GtkScrollType scroll,
35053 gboolean horizontal);
35054
35055 void (* move_focus_out) (GtkScrolledWindow *scrolled_window,
35056 GtkDirectionType direction);
35057
35058
35059 void (*_gtk_reserved1) (void);
35060 void (*_gtk_reserved2) (void);
35061 void (*_gtk_reserved3) (void);
35062 void (*_gtk_reserved4) (void);
35063 };
35064
35065
35066 GType gtk_scrolled_window_get_type (void) __attribute__((__const__));
35067 GtkWidget* gtk_scrolled_window_new (GtkAdjustment *hadjustment,
35068 GtkAdjustment *vadjustment);
35069 void gtk_scrolled_window_set_hadjustment (GtkScrolledWindow *scrolled_window,
35070 GtkAdjustment *hadjustment);
35071 void gtk_scrolled_window_set_vadjustment (GtkScrolledWindow *scrolled_window,
35072 GtkAdjustment *vadjustment);
35073 GtkAdjustment* gtk_scrolled_window_get_hadjustment (GtkScrolledWindow *scrolled_window);
35074 GtkAdjustment* gtk_scrolled_window_get_vadjustment (GtkScrolledWindow *scrolled_window);
35075 GtkWidget* gtk_scrolled_window_get_hscrollbar (GtkScrolledWindow *scrolled_window);
35076 GtkWidget* gtk_scrolled_window_get_vscrollbar (GtkScrolledWindow *scrolled_window);
35077 void gtk_scrolled_window_set_policy (GtkScrolledWindow *scrolled_window,
35078 GtkPolicyType hscrollbar_policy,
35079 GtkPolicyType vscrollbar_policy);
35080 void gtk_scrolled_window_get_policy (GtkScrolledWindow *scrolled_window,
35081 GtkPolicyType *hscrollbar_policy,
35082 GtkPolicyType *vscrollbar_policy);
35083 void gtk_scrolled_window_set_placement (GtkScrolledWindow *scrolled_window,
35084 GtkCornerType window_placement);
35085 GtkCornerType gtk_scrolled_window_get_placement (GtkScrolledWindow *scrolled_window);
35086 void gtk_scrolled_window_set_shadow_type (GtkScrolledWindow *scrolled_window,
35087 GtkShadowType type);
35088 GtkShadowType gtk_scrolled_window_get_shadow_type (GtkScrolledWindow *scrolled_window);
35089 void gtk_scrolled_window_add_with_viewport (GtkScrolledWindow *scrolled_window,
35090 GtkWidget *child);
35091
35092 gint _gtk_scrolled_window_get_scrollbar_spacing (GtkScrolledWindow *scrolled_window);
35093 # 143 "/usr/include/gtk-2.0/gtk/gtk.h" 2
35094
35095
35096
35097 # 1 "/usr/include/gtk-2.0/gtk/gtkseparatormenuitem.h" 1
35098 # 34 "/usr/include/gtk-2.0/gtk/gtkseparatormenuitem.h"
35099 # 44 "/usr/include/gtk-2.0/gtk/gtkseparatormenuitem.h"
35100 typedef struct _GtkSeparatorMenuItem GtkSeparatorMenuItem;
35101 typedef struct _GtkSeparatorMenuItemClass GtkSeparatorMenuItemClass;
35102
35103 struct _GtkSeparatorMenuItem
35104 {
35105 GtkMenuItem menu_item;
35106 };
35107
35108 struct _GtkSeparatorMenuItemClass
35109 {
35110 GtkMenuItemClass parent_class;
35111 };
35112
35113
35114 GType gtk_separator_menu_item_get_type (void) __attribute__((__const__));
35115 GtkWidget* gtk_separator_menu_item_new (void);
35116 # 146 "/usr/include/gtk-2.0/gtk/gtk.h" 2
35117
35118 # 1 "/usr/include/gtk-2.0/gtk/gtkseparatortoolitem.h" 1
35119 # 27 "/usr/include/gtk-2.0/gtk/gtkseparatortoolitem.h"
35120 # 36 "/usr/include/gtk-2.0/gtk/gtkseparatortoolitem.h"
35121 typedef struct _GtkSeparatorToolItem GtkSeparatorToolItem;
35122 typedef struct _GtkSeparatorToolItemClass GtkSeparatorToolItemClass;
35123 typedef struct _GtkSeparatorToolItemPrivate GtkSeparatorToolItemPrivate;
35124
35125 struct _GtkSeparatorToolItem
35126 {
35127 GtkToolItem parent;
35128
35129
35130 GtkSeparatorToolItemPrivate *priv;
35131 };
35132
35133 struct _GtkSeparatorToolItemClass
35134 {
35135 GtkToolItemClass parent_class;
35136
35137
35138 void (* _gtk_reserved1) (void);
35139 void (* _gtk_reserved2) (void);
35140 void (* _gtk_reserved3) (void);
35141 void (* _gtk_reserved4) (void);
35142 };
35143
35144 GType gtk_separator_tool_item_get_type (void) __attribute__((__const__));
35145 GtkToolItem *gtk_separator_tool_item_new (void);
35146
35147 gboolean gtk_separator_tool_item_get_draw (GtkSeparatorToolItem *item);
35148 void gtk_separator_tool_item_set_draw (GtkSeparatorToolItem *item,
35149 gboolean draw);
35150 # 147 "/usr/include/gtk-2.0/gtk/gtk.h" 2
35151
35152
35153
35154 # 1 "/usr/include/gtk-2.0/gtk/gtksizegroup.h" 1
35155 # 26 "/usr/include/gtk-2.0/gtk/gtksizegroup.h"
35156 # 36 "/usr/include/gtk-2.0/gtk/gtksizegroup.h"
35157 typedef struct _GtkSizeGroup GtkSizeGroup;
35158 typedef struct _GtkSizeGroupClass GtkSizeGroupClass;
35159
35160 struct _GtkSizeGroup
35161 {
35162 GObject parent_instance;
35163
35164 GSList *widgets;
35165
35166 guint8 mode;
35167
35168 guint have_width : 1;
35169 guint have_height : 1;
35170 guint ignore_hidden : 1;
35171
35172 GtkRequisition requisition;
35173 };
35174
35175 struct _GtkSizeGroupClass
35176 {
35177 GObjectClass parent_class;
35178
35179
35180 void (*_gtk_reserved1) (void);
35181 void (*_gtk_reserved2) (void);
35182 void (*_gtk_reserved3) (void);
35183 void (*_gtk_reserved4) (void);
35184 };
35185 # 75 "/usr/include/gtk-2.0/gtk/gtksizegroup.h"
35186 typedef enum {
35187 GTK_SIZE_GROUP_NONE,
35188 GTK_SIZE_GROUP_HORIZONTAL,
35189 GTK_SIZE_GROUP_VERTICAL,
35190 GTK_SIZE_GROUP_BOTH
35191 } GtkSizeGroupMode;
35192
35193 GType gtk_size_group_get_type (void) __attribute__((__const__));
35194
35195 GtkSizeGroup * gtk_size_group_new (GtkSizeGroupMode mode);
35196 void gtk_size_group_set_mode (GtkSizeGroup *size_group,
35197 GtkSizeGroupMode mode);
35198 GtkSizeGroupMode gtk_size_group_get_mode (GtkSizeGroup *size_group);
35199 void gtk_size_group_set_ignore_hidden (GtkSizeGroup *size_group,
35200 gboolean ignore_hidden);
35201 gboolean gtk_size_group_get_ignore_hidden (GtkSizeGroup *size_group);
35202 void gtk_size_group_add_widget (GtkSizeGroup *size_group,
35203 GtkWidget *widget);
35204 void gtk_size_group_remove_widget (GtkSizeGroup *size_group,
35205 GtkWidget *widget);
35206
35207
35208 void _gtk_size_group_get_child_requisition (GtkWidget *widget,
35209 GtkRequisition *requisition);
35210 void _gtk_size_group_compute_requisition (GtkWidget *widget,
35211 GtkRequisition *requisition);
35212 void _gtk_size_group_queue_resize (GtkWidget *widget);
35213 # 150 "/usr/include/gtk-2.0/gtk/gtk.h" 2
35214
35215
35216 # 1 "/usr/include/gtk-2.0/gtk/gtkspinbutton.h" 1
35217 # 39 "/usr/include/gtk-2.0/gtk/gtkspinbutton.h"
35218 # 50 "/usr/include/gtk-2.0/gtk/gtkspinbutton.h"
35219 typedef enum
35220 {
35221 GTK_UPDATE_ALWAYS,
35222 GTK_UPDATE_IF_VALID
35223 } GtkSpinButtonUpdatePolicy;
35224
35225 typedef enum
35226 {
35227 GTK_SPIN_STEP_FORWARD,
35228 GTK_SPIN_STEP_BACKWARD,
35229 GTK_SPIN_PAGE_FORWARD,
35230 GTK_SPIN_PAGE_BACKWARD,
35231 GTK_SPIN_HOME,
35232 GTK_SPIN_END,
35233 GTK_SPIN_USER_DEFINED
35234 } GtkSpinType;
35235
35236
35237 typedef struct _GtkSpinButton GtkSpinButton;
35238 typedef struct _GtkSpinButtonClass GtkSpinButtonClass;
35239
35240
35241 struct _GtkSpinButton
35242 {
35243 GtkEntry entry;
35244
35245 GtkAdjustment *adjustment;
35246
35247 GdkWindow *panel;
35248
35249 guint32 timer;
35250
35251 gdouble climb_rate;
35252 gdouble timer_step;
35253
35254 GtkSpinButtonUpdatePolicy update_policy;
35255
35256 guint in_child : 2;
35257 guint click_child : 2;
35258 guint button : 2;
35259 guint need_timer : 1;
35260 guint timer_calls : 3;
35261 guint digits : 10;
35262 guint numeric : 1;
35263 guint wrap : 1;
35264 guint snap_to_ticks : 1;
35265 };
35266
35267 struct _GtkSpinButtonClass
35268 {
35269 GtkEntryClass parent_class;
35270
35271 gint (*input) (GtkSpinButton *spin_button,
35272 gdouble *new_value);
35273 gint (*output) (GtkSpinButton *spin_button);
35274 void (*value_changed) (GtkSpinButton *spin_button);
35275
35276
35277 void (*change_value) (GtkSpinButton *spin_button,
35278 GtkScrollType scroll);
35279
35280
35281 void (*_gtk_reserved1) (void);
35282 void (*_gtk_reserved2) (void);
35283 void (*_gtk_reserved3) (void);
35284 void (*_gtk_reserved4) (void);
35285 };
35286
35287
35288 GType gtk_spin_button_get_type (void) __attribute__((__const__));
35289
35290 void gtk_spin_button_configure (GtkSpinButton *spin_button,
35291 GtkAdjustment *adjustment,
35292 gdouble climb_rate,
35293 guint digits);
35294
35295 GtkWidget* gtk_spin_button_new (GtkAdjustment *adjustment,
35296 gdouble climb_rate,
35297 guint digits);
35298
35299 GtkWidget* gtk_spin_button_new_with_range (gdouble min,
35300 gdouble max,
35301 gdouble step);
35302
35303 void gtk_spin_button_set_adjustment (GtkSpinButton *spin_button,
35304 GtkAdjustment *adjustment);
35305
35306 GtkAdjustment* gtk_spin_button_get_adjustment (GtkSpinButton *spin_button);
35307
35308 void gtk_spin_button_set_digits (GtkSpinButton *spin_button,
35309 guint digits);
35310 guint gtk_spin_button_get_digits (GtkSpinButton *spin_button);
35311
35312 void gtk_spin_button_set_increments (GtkSpinButton *spin_button,
35313 gdouble step,
35314 gdouble page);
35315 void gtk_spin_button_get_increments (GtkSpinButton *spin_button,
35316 gdouble *step,
35317 gdouble *page);
35318
35319 void gtk_spin_button_set_range (GtkSpinButton *spin_button,
35320 gdouble min,
35321 gdouble max);
35322 void gtk_spin_button_get_range (GtkSpinButton *spin_button,
35323 gdouble *min,
35324 gdouble *max);
35325
35326 gdouble gtk_spin_button_get_value (GtkSpinButton *spin_button);
35327
35328 gint gtk_spin_button_get_value_as_int (GtkSpinButton *spin_button);
35329
35330 void gtk_spin_button_set_value (GtkSpinButton *spin_button,
35331 gdouble value);
35332
35333 void gtk_spin_button_set_update_policy (GtkSpinButton *spin_button,
35334 GtkSpinButtonUpdatePolicy policy);
35335 GtkSpinButtonUpdatePolicy gtk_spin_button_get_update_policy (GtkSpinButton *spin_button);
35336
35337 void gtk_spin_button_set_numeric (GtkSpinButton *spin_button,
35338 gboolean numeric);
35339 gboolean gtk_spin_button_get_numeric (GtkSpinButton *spin_button);
35340
35341 void gtk_spin_button_spin (GtkSpinButton *spin_button,
35342 GtkSpinType direction,
35343 gdouble increment);
35344
35345 void gtk_spin_button_set_wrap (GtkSpinButton *spin_button,
35346 gboolean wrap);
35347 gboolean gtk_spin_button_get_wrap (GtkSpinButton *spin_button);
35348
35349 void gtk_spin_button_set_snap_to_ticks (GtkSpinButton *spin_button,
35350 gboolean snap_to_ticks);
35351 gboolean gtk_spin_button_get_snap_to_ticks (GtkSpinButton *spin_button);
35352 void gtk_spin_button_update (GtkSpinButton *spin_button);
35353 # 152 "/usr/include/gtk-2.0/gtk/gtk.h" 2
35354
35355 # 1 "/usr/include/gtk-2.0/gtk/gtkstatusbar.h" 1
35356 # 33 "/usr/include/gtk-2.0/gtk/gtkstatusbar.h"
35357 # 43 "/usr/include/gtk-2.0/gtk/gtkstatusbar.h"
35358 typedef struct _GtkStatusbar GtkStatusbar;
35359 typedef struct _GtkStatusbarClass GtkStatusbarClass;
35360
35361 struct _GtkStatusbar
35362 {
35363 GtkHBox parent_widget;
35364
35365 GtkWidget *frame;
35366 GtkWidget *label;
35367
35368 GSList *messages;
35369 GSList *keys;
35370
35371 guint seq_context_id;
35372 guint seq_message_id;
35373
35374 GdkWindow *grip_window;
35375
35376 guint has_resize_grip : 1;
35377 };
35378
35379 struct _GtkStatusbarClass
35380 {
35381 GtkHBoxClass parent_class;
35382
35383 gpointer messages_mem_chunk;
35384
35385 void (*text_pushed) (GtkStatusbar *statusbar,
35386 guint context_id,
35387 const gchar *text);
35388 void (*text_popped) (GtkStatusbar *statusbar,
35389 guint context_id,
35390 const gchar *text);
35391
35392
35393 void (*_gtk_reserved1) (void);
35394 void (*_gtk_reserved2) (void);
35395 void (*_gtk_reserved3) (void);
35396 void (*_gtk_reserved4) (void);
35397 };
35398
35399
35400 GType gtk_statusbar_get_type (void) __attribute__((__const__));
35401 GtkWidget* gtk_statusbar_new (void);
35402
35403
35404
35405 guint gtk_statusbar_get_context_id (GtkStatusbar *statusbar,
35406 const gchar *context_description);
35407
35408 guint gtk_statusbar_push (GtkStatusbar *statusbar,
35409 guint context_id,
35410 const gchar *text);
35411 void gtk_statusbar_pop (GtkStatusbar *statusbar,
35412 guint context_id);
35413 void gtk_statusbar_remove (GtkStatusbar *statusbar,
35414 guint context_id,
35415 guint message_id);
35416
35417 void gtk_statusbar_set_has_resize_grip (GtkStatusbar *statusbar,
35418 gboolean setting);
35419 gboolean gtk_statusbar_get_has_resize_grip (GtkStatusbar *statusbar);
35420 # 153 "/usr/include/gtk-2.0/gtk/gtk.h" 2
35421
35422 # 1 "/usr/include/gtk-2.0/gtk/gtkstock.h" 1
35423 # 34 "/usr/include/gtk-2.0/gtk/gtkstock.h"
35424
35425
35426 typedef struct _GtkStockItem GtkStockItem;
35427
35428 struct _GtkStockItem
35429 {
35430 gchar *stock_id;
35431 gchar *label;
35432 GdkModifierType modifier;
35433 guint keyval;
35434 gchar *translation_domain;
35435 };
35436
35437 void gtk_stock_add (const GtkStockItem *items,
35438 guint n_items);
35439 void gtk_stock_add_static (const GtkStockItem *items,
35440 guint n_items);
35441 gboolean gtk_stock_lookup (const gchar *stock_id,
35442 GtkStockItem *item);
35443
35444
35445
35446
35447 GSList* gtk_stock_list_ids (void);
35448
35449 GtkStockItem *gtk_stock_item_copy (const GtkStockItem *item);
35450 void gtk_stock_item_free (GtkStockItem *item);
35451
35452 void gtk_stock_set_translate_func (const gchar *domain,
35453 GtkTranslateFunc func,
35454 gpointer data,
35455 GtkDestroyNotify notify);
35456 # 165 "/usr/include/gtk-2.0/gtk/gtkstock.h"
35457 # 154 "/usr/include/gtk-2.0/gtk/gtk.h" 2
35458
35459
35460 # 1 "/usr/include/gtk-2.0/gtk/gtktable.h" 1
35461 # 35 "/usr/include/gtk-2.0/gtk/gtktable.h"
35462 # 45 "/usr/include/gtk-2.0/gtk/gtktable.h"
35463 typedef struct _GtkTable GtkTable;
35464 typedef struct _GtkTableClass GtkTableClass;
35465 typedef struct _GtkTableChild GtkTableChild;
35466 typedef struct _GtkTableRowCol GtkTableRowCol;
35467
35468 struct _GtkTable
35469 {
35470 GtkContainer container;
35471
35472 GList *children;
35473 GtkTableRowCol *rows;
35474 GtkTableRowCol *cols;
35475 guint16 nrows;
35476 guint16 ncols;
35477 guint16 column_spacing;
35478 guint16 row_spacing;
35479 guint homogeneous : 1;
35480 };
35481
35482 struct _GtkTableClass
35483 {
35484 GtkContainerClass parent_class;
35485 };
35486
35487 struct _GtkTableChild
35488 {
35489 GtkWidget *widget;
35490 guint16 left_attach;
35491 guint16 right_attach;
35492 guint16 top_attach;
35493 guint16 bottom_attach;
35494 guint16 xpadding;
35495 guint16 ypadding;
35496 guint xexpand : 1;
35497 guint yexpand : 1;
35498 guint xshrink : 1;
35499 guint yshrink : 1;
35500 guint xfill : 1;
35501 guint yfill : 1;
35502 };
35503
35504 struct _GtkTableRowCol
35505 {
35506 guint16 requisition;
35507 guint16 allocation;
35508 guint16 spacing;
35509 guint need_expand : 1;
35510 guint need_shrink : 1;
35511 guint expand : 1;
35512 guint shrink : 1;
35513 guint empty : 1;
35514 };
35515
35516
35517 GType gtk_table_get_type (void) __attribute__((__const__));
35518 GtkWidget* gtk_table_new (guint rows,
35519 guint columns,
35520 gboolean homogeneous);
35521 void gtk_table_resize (GtkTable *table,
35522 guint rows,
35523 guint columns);
35524 void gtk_table_attach (GtkTable *table,
35525 GtkWidget *child,
35526 guint left_attach,
35527 guint right_attach,
35528 guint top_attach,
35529 guint bottom_attach,
35530 GtkAttachOptions xoptions,
35531 GtkAttachOptions yoptions,
35532 guint xpadding,
35533 guint ypadding);
35534 void gtk_table_attach_defaults (GtkTable *table,
35535 GtkWidget *widget,
35536 guint left_attach,
35537 guint right_attach,
35538 guint top_attach,
35539 guint bottom_attach);
35540 void gtk_table_set_row_spacing (GtkTable *table,
35541 guint row,
35542 guint spacing);
35543 guint gtk_table_get_row_spacing (GtkTable *table,
35544 guint row);
35545 void gtk_table_set_col_spacing (GtkTable *table,
35546 guint column,
35547 guint spacing);
35548 guint gtk_table_get_col_spacing (GtkTable *table,
35549 guint column);
35550 void gtk_table_set_row_spacings (GtkTable *table,
35551 guint spacing);
35552 guint gtk_table_get_default_row_spacing (GtkTable *table);
35553 void gtk_table_set_col_spacings (GtkTable *table,
35554 guint spacing);
35555 guint gtk_table_get_default_col_spacing (GtkTable *table);
35556 void gtk_table_set_homogeneous (GtkTable *table,
35557 gboolean homogeneous);
35558 gboolean gtk_table_get_homogeneous (GtkTable *table);
35559 # 156 "/usr/include/gtk-2.0/gtk/gtk.h" 2
35560
35561 # 1 "/usr/include/gtk-2.0/gtk/gtktearoffmenuitem.h" 1
35562 # 34 "/usr/include/gtk-2.0/gtk/gtktearoffmenuitem.h"
35563 # 44 "/usr/include/gtk-2.0/gtk/gtktearoffmenuitem.h"
35564 typedef struct _GtkTearoffMenuItem GtkTearoffMenuItem;
35565 typedef struct _GtkTearoffMenuItemClass GtkTearoffMenuItemClass;
35566
35567 struct _GtkTearoffMenuItem
35568 {
35569 GtkMenuItem menu_item;
35570
35571 guint torn_off : 1;
35572 };
35573
35574 struct _GtkTearoffMenuItemClass
35575 {
35576 GtkMenuItemClass parent_class;
35577
35578
35579 void (*_gtk_reserved1) (void);
35580 void (*_gtk_reserved2) (void);
35581 void (*_gtk_reserved3) (void);
35582 void (*_gtk_reserved4) (void);
35583 };
35584
35585
35586 GType gtk_tearoff_menu_item_get_type (void) __attribute__((__const__));
35587 GtkWidget* gtk_tearoff_menu_item_new (void);
35588 # 157 "/usr/include/gtk-2.0/gtk/gtk.h" 2
35589
35590 # 1 "/usr/include/gtk-2.0/gtk/gtktext.h" 1
35591 # 158 "/usr/include/gtk-2.0/gtk/gtk.h" 2
35592
35593 # 1 "/usr/include/gtk-2.0/gtk/gtktextbuffer.h" 1
35594 # 32 "/usr/include/gtk-2.0/gtk/gtktextbuffer.h"
35595
35596 # 1 "/usr/include/gtk-2.0/gtk/gtktexttagtable.h" 1
35597 # 30 "/usr/include/gtk-2.0/gtk/gtktexttagtable.h"
35598
35599 # 1 "/usr/include/gtk-2.0/gtk/gtktexttag.h" 1
35600 # 60 "/usr/include/gtk-2.0/gtk/gtktexttag.h"
35601
35602
35603 typedef struct _GtkTextIter GtkTextIter;
35604 typedef struct _GtkTextTagTable GtkTextTagTable;
35605
35606 typedef struct _GtkTextAttributes GtkTextAttributes;
35607 # 76 "/usr/include/gtk-2.0/gtk/gtktexttag.h"
35608 typedef struct _GtkTextTag GtkTextTag;
35609 typedef struct _GtkTextTagClass GtkTextTagClass;
35610
35611 struct _GtkTextTag
35612 {
35613 GObject parent_instance;
35614
35615 GtkTextTagTable *table;
35616
35617 char *name;
35618
35619
35620
35621 int priority;
35622 # 101 "/usr/include/gtk-2.0/gtk/gtktexttag.h"
35623 GtkTextAttributes *values;
35624
35625
35626
35627
35628 guint bg_color_set : 1;
35629 guint bg_stipple_set : 1;
35630 guint fg_color_set : 1;
35631 guint scale_set : 1;
35632 guint fg_stipple_set : 1;
35633 guint justification_set : 1;
35634 guint left_margin_set : 1;
35635 guint indent_set : 1;
35636 guint rise_set : 1;
35637 guint strikethrough_set : 1;
35638 guint right_margin_set : 1;
35639 guint pixels_above_lines_set : 1;
35640 guint pixels_below_lines_set : 1;
35641 guint pixels_inside_wrap_set : 1;
35642 guint tabs_set : 1;
35643 guint underline_set : 1;
35644 guint wrap_mode_set : 1;
35645 guint bg_full_height_set : 1;
35646 guint invisible_set : 1;
35647 guint editable_set : 1;
35648 guint language_set : 1;
35649 guint pg_bg_color_set : 1;
35650 guint pad1 : 1;
35651 guint pad2 : 1;
35652 };
35653
35654 struct _GtkTextTagClass
35655 {
35656 GObjectClass parent_class;
35657
35658 gboolean (* event) (GtkTextTag *tag,
35659 GObject *event_object,
35660 GdkEvent *event,
35661 const GtkTextIter *iter);
35662
35663
35664 void (*_gtk_reserved1) (void);
35665 void (*_gtk_reserved2) (void);
35666 void (*_gtk_reserved3) (void);
35667 void (*_gtk_reserved4) (void);
35668 };
35669
35670 GType gtk_text_tag_get_type (void) __attribute__((__const__));
35671 GtkTextTag *gtk_text_tag_new (const gchar *name);
35672 gint gtk_text_tag_get_priority (GtkTextTag *tag);
35673 void gtk_text_tag_set_priority (GtkTextTag *tag,
35674 gint priority);
35675 gboolean gtk_text_tag_event (GtkTextTag *tag,
35676 GObject *event_object,
35677 GdkEvent *event,
35678 const GtkTextIter *iter);
35679
35680
35681
35682
35683
35684 typedef struct _GtkTextAppearance GtkTextAppearance;
35685
35686 struct _GtkTextAppearance
35687 {
35688
35689 GdkColor bg_color;
35690 GdkColor fg_color;
35691 GdkBitmap *bg_stipple;
35692 GdkBitmap *fg_stipple;
35693
35694
35695 gint rise;
35696
35697
35698
35699
35700
35701 gpointer padding1;
35702
35703
35704 guint underline : 4;
35705 guint strikethrough : 1;
35706
35707
35708
35709
35710
35711
35712 guint draw_bg : 1;
35713
35714
35715
35716
35717
35718 guint inside_selection : 1;
35719 guint is_text : 1;
35720
35721
35722 guint pad1 : 1;
35723 guint pad2 : 1;
35724 guint pad3 : 1;
35725 guint pad4 : 1;
35726 };
35727
35728 struct _GtkTextAttributes
35729 {
35730
35731 guint refcount;
35732
35733
35734 GtkTextAppearance appearance;
35735
35736 GtkJustification justification;
35737 GtkTextDirection direction;
35738
35739
35740 PangoFontDescription *font;
35741
35742 gdouble font_scale;
35743
35744 gint left_margin;
35745
35746 gint indent;
35747
35748 gint right_margin;
35749
35750 gint pixels_above_lines;
35751
35752 gint pixels_below_lines;
35753
35754 gint pixels_inside_wrap;
35755
35756 PangoTabArray *tabs;
35757
35758 GtkWrapMode wrap_mode;
35759
35760
35761
35762
35763 PangoLanguage *language;
35764
35765
35766 GdkColor *pg_bg_color;
35767
35768
35769
35770 guint invisible : 1;
35771
35772
35773
35774
35775 guint bg_full_height : 1;
35776
35777
35778 guint editable : 1;
35779
35780
35781 guint realized : 1;
35782
35783
35784 guint pad1 : 1;
35785 guint pad2 : 1;
35786 guint pad3 : 1;
35787 guint pad4 : 1;
35788 };
35789
35790 GtkTextAttributes* gtk_text_attributes_new (void);
35791 GtkTextAttributes* gtk_text_attributes_copy (GtkTextAttributes *src);
35792 void gtk_text_attributes_copy_values (GtkTextAttributes *src,
35793 GtkTextAttributes *dest);
35794 void gtk_text_attributes_unref (GtkTextAttributes *values);
35795 GtkTextAttributes* gtk_text_attributes_ref (GtkTextAttributes *values);
35796
35797 GType gtk_text_attributes_get_type (void) __attribute__((__const__));
35798 # 31 "/usr/include/gtk-2.0/gtk/gtktexttagtable.h" 2
35799
35800
35801
35802
35803
35804 typedef void (* GtkTextTagTableForeach) (GtkTextTag *tag, gpointer data);
35805 # 45 "/usr/include/gtk-2.0/gtk/gtktexttagtable.h"
35806 typedef struct _GtkTextTagTableClass GtkTextTagTableClass;
35807
35808 struct _GtkTextTagTable
35809 {
35810 GObject parent_instance;
35811
35812 GHashTable *hash;
35813 GSList *anonymous;
35814 gint anon_count;
35815
35816 GSList *buffers;
35817 };
35818
35819 struct _GtkTextTagTableClass
35820 {
35821 GObjectClass parent_class;
35822
35823 void (* tag_changed) (GtkTextTagTable *table, GtkTextTag *tag, gboolean size_changed);
35824 void (* tag_added) (GtkTextTagTable *table, GtkTextTag *tag);
35825 void (* tag_removed) (GtkTextTagTable *table, GtkTextTag *tag);
35826
35827
35828 void (*_gtk_reserved1) (void);
35829 void (*_gtk_reserved2) (void);
35830 void (*_gtk_reserved3) (void);
35831 void (*_gtk_reserved4) (void);
35832 };
35833
35834 GType gtk_text_tag_table_get_type (void) __attribute__((__const__));
35835
35836 GtkTextTagTable *gtk_text_tag_table_new (void);
35837 void gtk_text_tag_table_add (GtkTextTagTable *table,
35838 GtkTextTag *tag);
35839 void gtk_text_tag_table_remove (GtkTextTagTable *table,
35840 GtkTextTag *tag);
35841 GtkTextTag *gtk_text_tag_table_lookup (GtkTextTagTable *table,
35842 const gchar *name);
35843 void gtk_text_tag_table_foreach (GtkTextTagTable *table,
35844 GtkTextTagTableForeach func,
35845 gpointer data);
35846 gint gtk_text_tag_table_get_size (GtkTextTagTable *table);
35847
35848
35849
35850
35851
35852 void _gtk_text_tag_table_add_buffer (GtkTextTagTable *table,
35853 gpointer buffer);
35854 void _gtk_text_tag_table_remove_buffer (GtkTextTagTable *table,
35855 gpointer buffer);
35856 # 33 "/usr/include/gtk-2.0/gtk/gtktextbuffer.h" 2
35857
35858 # 1 "/usr/include/gtk-2.0/gtk/gtktextiter.h" 1
35859 # 31 "/usr/include/gtk-2.0/gtk/gtktextiter.h"
35860
35861 # 1 "/usr/include/gtk-2.0/gtk/gtktextchild.h" 1
35862 # 32 "/usr/include/gtk-2.0/gtk/gtktextchild.h"
35863 # 40 "/usr/include/gtk-2.0/gtk/gtktextchild.h"
35864 typedef struct _GtkTextChildAnchor GtkTextChildAnchor;
35865 typedef struct _GtkTextChildAnchorClass GtkTextChildAnchorClass;
35866 # 50 "/usr/include/gtk-2.0/gtk/gtktextchild.h"
35867 struct _GtkTextChildAnchor
35868 {
35869 GObject parent_instance;
35870
35871 gpointer segment;
35872 };
35873
35874 struct _GtkTextChildAnchorClass
35875 {
35876 GObjectClass parent_class;
35877
35878
35879 void (*_gtk_reserved1) (void);
35880 void (*_gtk_reserved2) (void);
35881 void (*_gtk_reserved3) (void);
35882 void (*_gtk_reserved4) (void);
35883 };
35884
35885 GType gtk_text_child_anchor_get_type (void) __attribute__((__const__));
35886
35887 GtkTextChildAnchor* gtk_text_child_anchor_new (void);
35888
35889 GList* gtk_text_child_anchor_get_widgets (GtkTextChildAnchor *anchor);
35890 gboolean gtk_text_child_anchor_get_deleted (GtkTextChildAnchor *anchor);
35891 # 32 "/usr/include/gtk-2.0/gtk/gtktextiter.h" 2
35892
35893
35894
35895 typedef enum {
35896 GTK_TEXT_SEARCH_VISIBLE_ONLY = 1 << 0,
35897 GTK_TEXT_SEARCH_TEXT_ONLY = 1 << 1
35898
35899 } GtkTextSearchFlags;
35900
35901
35902
35903
35904
35905
35906
35907 typedef struct _GtkTextBuffer GtkTextBuffer;
35908
35909
35910
35911 struct _GtkTextIter {
35912
35913
35914
35915
35916
35917 gpointer dummy1;
35918 gpointer dummy2;
35919 gint dummy3;
35920 gint dummy4;
35921 gint dummy5;
35922 gint dummy6;
35923 gint dummy7;
35924 gint dummy8;
35925 gpointer dummy9;
35926 gpointer dummy10;
35927 gint dummy11;
35928 gint dummy12;
35929
35930 gint dummy13;
35931 gpointer dummy14;
35932 };
35933
35934
35935
35936
35937 GtkTextBuffer *gtk_text_iter_get_buffer (const GtkTextIter *iter);
35938
35939
35940
35941
35942
35943 GtkTextIter *gtk_text_iter_copy (const GtkTextIter *iter);
35944 void gtk_text_iter_free (GtkTextIter *iter);
35945
35946 GType gtk_text_iter_get_type (void) __attribute__((__const__));
35947
35948
35949
35950
35951
35952 gint gtk_text_iter_get_offset (const GtkTextIter *iter);
35953 gint gtk_text_iter_get_line (const GtkTextIter *iter);
35954 gint gtk_text_iter_get_line_offset (const GtkTextIter *iter);
35955 gint gtk_text_iter_get_line_index (const GtkTextIter *iter);
35956
35957 gint gtk_text_iter_get_visible_line_offset (const GtkTextIter *iter);
35958 gint gtk_text_iter_get_visible_line_index (const GtkTextIter *iter);
35959
35960
35961
35962
35963
35964 gunichar gtk_text_iter_get_char (const GtkTextIter *iter);
35965
35966
35967
35968
35969 gchar *gtk_text_iter_get_slice (const GtkTextIter *start,
35970 const GtkTextIter *end);
35971
35972
35973 gchar *gtk_text_iter_get_text (const GtkTextIter *start,
35974 const GtkTextIter *end);
35975
35976 gchar *gtk_text_iter_get_visible_slice (const GtkTextIter *start,
35977 const GtkTextIter *end);
35978 gchar *gtk_text_iter_get_visible_text (const GtkTextIter *start,
35979 const GtkTextIter *end);
35980
35981 GdkPixbuf* gtk_text_iter_get_pixbuf (const GtkTextIter *iter);
35982 GSList * gtk_text_iter_get_marks (const GtkTextIter *iter);
35983
35984 GtkTextChildAnchor* gtk_text_iter_get_child_anchor (const GtkTextIter *iter);
35985
35986
35987
35988
35989 GSList *gtk_text_iter_get_toggled_tags (const GtkTextIter *iter,
35990 gboolean toggled_on);
35991
35992 gboolean gtk_text_iter_begins_tag (const GtkTextIter *iter,
35993 GtkTextTag *tag);
35994
35995 gboolean gtk_text_iter_ends_tag (const GtkTextIter *iter,
35996 GtkTextTag *tag);
35997
35998 gboolean gtk_text_iter_toggles_tag (const GtkTextIter *iter,
35999 GtkTextTag *tag);
36000
36001 gboolean gtk_text_iter_has_tag (const GtkTextIter *iter,
36002 GtkTextTag *tag);
36003 GSList *gtk_text_iter_get_tags (const GtkTextIter *iter);
36004
36005 gboolean gtk_text_iter_editable (const GtkTextIter *iter,
36006 gboolean default_setting);
36007 gboolean gtk_text_iter_can_insert (const GtkTextIter *iter,
36008 gboolean default_editability);
36009
36010 gboolean gtk_text_iter_starts_word (const GtkTextIter *iter);
36011 gboolean gtk_text_iter_ends_word (const GtkTextIter *iter);
36012 gboolean gtk_text_iter_inside_word (const GtkTextIter *iter);
36013 gboolean gtk_text_iter_starts_sentence (const GtkTextIter *iter);
36014 gboolean gtk_text_iter_ends_sentence (const GtkTextIter *iter);
36015 gboolean gtk_text_iter_inside_sentence (const GtkTextIter *iter);
36016 gboolean gtk_text_iter_starts_line (const GtkTextIter *iter);
36017 gboolean gtk_text_iter_ends_line (const GtkTextIter *iter);
36018 gboolean gtk_text_iter_is_cursor_position (const GtkTextIter *iter);
36019
36020 gint gtk_text_iter_get_chars_in_line (const GtkTextIter *iter);
36021 gint gtk_text_iter_get_bytes_in_line (const GtkTextIter *iter);
36022
36023 gboolean gtk_text_iter_get_attributes (const GtkTextIter *iter,
36024 GtkTextAttributes *values);
36025 PangoLanguage* gtk_text_iter_get_language (const GtkTextIter *iter);
36026 gboolean gtk_text_iter_is_end (const GtkTextIter *iter);
36027 gboolean gtk_text_iter_is_start (const GtkTextIter *iter);
36028
36029
36030
36031
36032
36033 gboolean gtk_text_iter_forward_char (GtkTextIter *iter);
36034 gboolean gtk_text_iter_backward_char (GtkTextIter *iter);
36035 gboolean gtk_text_iter_forward_chars (GtkTextIter *iter,
36036 gint count);
36037 gboolean gtk_text_iter_backward_chars (GtkTextIter *iter,
36038 gint count);
36039 gboolean gtk_text_iter_forward_line (GtkTextIter *iter);
36040 gboolean gtk_text_iter_backward_line (GtkTextIter *iter);
36041 gboolean gtk_text_iter_forward_lines (GtkTextIter *iter,
36042 gint count);
36043 gboolean gtk_text_iter_backward_lines (GtkTextIter *iter,
36044 gint count);
36045 gboolean gtk_text_iter_forward_word_end (GtkTextIter *iter);
36046 gboolean gtk_text_iter_backward_word_start (GtkTextIter *iter);
36047 gboolean gtk_text_iter_forward_word_ends (GtkTextIter *iter,
36048 gint count);
36049 gboolean gtk_text_iter_backward_word_starts (GtkTextIter *iter,
36050 gint count);
36051
36052 gboolean gtk_text_iter_forward_visible_line (GtkTextIter *iter);
36053 gboolean gtk_text_iter_backward_visible_line (GtkTextIter *iter);
36054 gboolean gtk_text_iter_forward_visible_lines (GtkTextIter *iter,
36055 gint count);
36056 gboolean gtk_text_iter_backward_visible_lines (GtkTextIter *iter,
36057 gint count);
36058
36059 gboolean gtk_text_iter_forward_visible_word_end (GtkTextIter *iter);
36060 gboolean gtk_text_iter_backward_visible_word_start (GtkTextIter *iter);
36061 gboolean gtk_text_iter_forward_visible_word_ends (GtkTextIter *iter,
36062 gint count);
36063 gboolean gtk_text_iter_backward_visible_word_starts (GtkTextIter *iter,
36064 gint count);
36065
36066 gboolean gtk_text_iter_forward_sentence_end (GtkTextIter *iter);
36067 gboolean gtk_text_iter_backward_sentence_start (GtkTextIter *iter);
36068 gboolean gtk_text_iter_forward_sentence_ends (GtkTextIter *iter,
36069 gint count);
36070 gboolean gtk_text_iter_backward_sentence_starts (GtkTextIter *iter,
36071 gint count);
36072
36073
36074
36075
36076
36077 gboolean gtk_text_iter_forward_cursor_position (GtkTextIter *iter);
36078 gboolean gtk_text_iter_backward_cursor_position (GtkTextIter *iter);
36079 gboolean gtk_text_iter_forward_cursor_positions (GtkTextIter *iter,
36080 gint count);
36081 gboolean gtk_text_iter_backward_cursor_positions (GtkTextIter *iter,
36082 gint count);
36083
36084 gboolean gtk_text_iter_forward_visible_cursor_position (GtkTextIter *iter);
36085 gboolean gtk_text_iter_backward_visible_cursor_position (GtkTextIter *iter);
36086 gboolean gtk_text_iter_forward_visible_cursor_positions (GtkTextIter *iter,
36087 gint count);
36088 gboolean gtk_text_iter_backward_visible_cursor_positions (GtkTextIter *iter,
36089 gint count);
36090
36091
36092 void gtk_text_iter_set_offset (GtkTextIter *iter,
36093 gint char_offset);
36094 void gtk_text_iter_set_line (GtkTextIter *iter,
36095 gint line_number);
36096 void gtk_text_iter_set_line_offset (GtkTextIter *iter,
36097 gint char_on_line);
36098 void gtk_text_iter_set_line_index (GtkTextIter *iter,
36099 gint byte_on_line);
36100 void gtk_text_iter_forward_to_end (GtkTextIter *iter);
36101 gboolean gtk_text_iter_forward_to_line_end (GtkTextIter *iter);
36102
36103 void gtk_text_iter_set_visible_line_offset (GtkTextIter *iter,
36104 gint char_on_line);
36105 void gtk_text_iter_set_visible_line_index (GtkTextIter *iter,
36106 gint byte_on_line);
36107
36108
36109
36110
36111
36112 gboolean gtk_text_iter_forward_to_tag_toggle (GtkTextIter *iter,
36113 GtkTextTag *tag);
36114
36115 gboolean gtk_text_iter_backward_to_tag_toggle (GtkTextIter *iter,
36116 GtkTextTag *tag);
36117
36118 typedef gboolean (* GtkTextCharPredicate) (gunichar ch, gpointer user_data);
36119
36120 gboolean gtk_text_iter_forward_find_char (GtkTextIter *iter,
36121 GtkTextCharPredicate pred,
36122 gpointer user_data,
36123 const GtkTextIter *limit);
36124 gboolean gtk_text_iter_backward_find_char (GtkTextIter *iter,
36125 GtkTextCharPredicate pred,
36126 gpointer user_data,
36127 const GtkTextIter *limit);
36128
36129 gboolean gtk_text_iter_forward_search (const GtkTextIter *iter,
36130 const gchar *str,
36131 GtkTextSearchFlags flags,
36132 GtkTextIter *match_start,
36133 GtkTextIter *match_end,
36134 const GtkTextIter *limit);
36135
36136 gboolean gtk_text_iter_backward_search (const GtkTextIter *iter,
36137 const gchar *str,
36138 GtkTextSearchFlags flags,
36139 GtkTextIter *match_start,
36140 GtkTextIter *match_end,
36141 const GtkTextIter *limit);
36142
36143
36144
36145
36146
36147 gboolean gtk_text_iter_equal (const GtkTextIter *lhs,
36148 const GtkTextIter *rhs);
36149 gint gtk_text_iter_compare (const GtkTextIter *lhs,
36150 const GtkTextIter *rhs);
36151 gboolean gtk_text_iter_in_range (const GtkTextIter *iter,
36152 const GtkTextIter *start,
36153 const GtkTextIter *end);
36154
36155
36156 void gtk_text_iter_order (GtkTextIter *first,
36157 GtkTextIter *second);
36158 # 34 "/usr/include/gtk-2.0/gtk/gtktextbuffer.h" 2
36159
36160 # 1 "/usr/include/gtk-2.0/gtk/gtktextmark.h" 1
36161 # 53 "/usr/include/gtk-2.0/gtk/gtktextmark.h"
36162
36163
36164
36165
36166 typedef struct _GtkTextMark GtkTextMark;
36167 typedef struct _GtkTextMarkClass GtkTextMarkClass;
36168 # 67 "/usr/include/gtk-2.0/gtk/gtktextmark.h"
36169 struct _GtkTextMark
36170 {
36171 GObject parent_instance;
36172
36173 gpointer segment;
36174 };
36175
36176 struct _GtkTextMarkClass
36177 {
36178 GObjectClass parent_class;
36179
36180
36181 void (*_gtk_reserved1) (void);
36182 void (*_gtk_reserved2) (void);
36183 void (*_gtk_reserved3) (void);
36184 void (*_gtk_reserved4) (void);
36185 };
36186
36187 GType gtk_text_mark_get_type (void) __attribute__((__const__));
36188
36189 void gtk_text_mark_set_visible (GtkTextMark *mark,
36190 gboolean setting);
36191 gboolean gtk_text_mark_get_visible (GtkTextMark *mark);
36192
36193 const gchar* gtk_text_mark_get_name (GtkTextMark *mark);
36194 gboolean gtk_text_mark_get_deleted (GtkTextMark *mark);
36195 GtkTextBuffer* gtk_text_mark_get_buffer (GtkTextMark *mark);
36196 gboolean gtk_text_mark_get_left_gravity (GtkTextMark *mark);
36197 # 35 "/usr/include/gtk-2.0/gtk/gtktextbuffer.h" 2
36198 # 44 "/usr/include/gtk-2.0/gtk/gtktextbuffer.h"
36199 typedef struct _GtkTextBTree GtkTextBTree;
36200
36201 typedef struct _GtkTextLogAttrCache GtkTextLogAttrCache;
36202 # 55 "/usr/include/gtk-2.0/gtk/gtktextbuffer.h"
36203 typedef struct _GtkTextBufferClass GtkTextBufferClass;
36204
36205 struct _GtkTextBuffer
36206 {
36207 GObject parent_instance;
36208
36209 GtkTextTagTable *tag_table;
36210 GtkTextBTree *btree;
36211
36212 GSList *clipboard_contents_buffers;
36213 GSList *selection_clipboards;
36214
36215 GtkTextLogAttrCache *log_attr_cache;
36216
36217 guint user_action_count;
36218
36219
36220 guint modified : 1;
36221 };
36222
36223 struct _GtkTextBufferClass
36224 {
36225 GObjectClass parent_class;
36226
36227 void (* insert_text) (GtkTextBuffer *buffer,
36228 GtkTextIter *pos,
36229 const gchar *text,
36230 gint length);
36231
36232 void (* insert_pixbuf) (GtkTextBuffer *buffer,
36233 GtkTextIter *pos,
36234 GdkPixbuf *pixbuf);
36235
36236 void (* insert_child_anchor) (GtkTextBuffer *buffer,
36237 GtkTextIter *pos,
36238 GtkTextChildAnchor *anchor);
36239
36240 void (* delete_range) (GtkTextBuffer *buffer,
36241 GtkTextIter *start,
36242 GtkTextIter *end);
36243
36244
36245
36246
36247 void (* changed) (GtkTextBuffer *buffer);
36248
36249
36250
36251 void (* modified_changed) (GtkTextBuffer *buffer);
36252
36253
36254 void (* mark_set) (GtkTextBuffer *buffer,
36255 const GtkTextIter *location,
36256 GtkTextMark *mark);
36257
36258 void (* mark_deleted) (GtkTextBuffer *buffer,
36259 GtkTextMark *mark);
36260
36261 void (* apply_tag) (GtkTextBuffer *buffer,
36262 GtkTextTag *tag,
36263 const GtkTextIter *start_char,
36264 const GtkTextIter *end_char);
36265
36266 void (* remove_tag) (GtkTextBuffer *buffer,
36267 GtkTextTag *tag,
36268 const GtkTextIter *start_char,
36269 const GtkTextIter *end_char);
36270
36271
36272 void (* begin_user_action) (GtkTextBuffer *buffer);
36273 void (* end_user_action) (GtkTextBuffer *buffer);
36274
36275
36276 void (*_gtk_reserved1) (void);
36277 void (*_gtk_reserved2) (void);
36278 void (*_gtk_reserved3) (void);
36279 void (*_gtk_reserved4) (void);
36280 void (*_gtk_reserved5) (void);
36281 void (*_gtk_reserved6) (void);
36282 };
36283
36284 GType gtk_text_buffer_get_type (void) __attribute__((__const__));
36285
36286
36287
36288
36289 GtkTextBuffer *gtk_text_buffer_new (GtkTextTagTable *table);
36290 gint gtk_text_buffer_get_line_count (GtkTextBuffer *buffer);
36291 gint gtk_text_buffer_get_char_count (GtkTextBuffer *buffer);
36292
36293
36294 GtkTextTagTable* gtk_text_buffer_get_tag_table (GtkTextBuffer *buffer);
36295
36296
36297 void gtk_text_buffer_set_text (GtkTextBuffer *buffer,
36298 const gchar *text,
36299 gint len);
36300
36301
36302 void gtk_text_buffer_insert (GtkTextBuffer *buffer,
36303 GtkTextIter *iter,
36304 const gchar *text,
36305 gint len);
36306 void gtk_text_buffer_insert_at_cursor (GtkTextBuffer *buffer,
36307 const gchar *text,
36308 gint len);
36309
36310 gboolean gtk_text_buffer_insert_interactive (GtkTextBuffer *buffer,
36311 GtkTextIter *iter,
36312 const gchar *text,
36313 gint len,
36314 gboolean default_editable);
36315 gboolean gtk_text_buffer_insert_interactive_at_cursor (GtkTextBuffer *buffer,
36316 const gchar *text,
36317 gint len,
36318 gboolean default_editable);
36319
36320 void gtk_text_buffer_insert_range (GtkTextBuffer *buffer,
36321 GtkTextIter *iter,
36322 const GtkTextIter *start,
36323 const GtkTextIter *end);
36324 gboolean gtk_text_buffer_insert_range_interactive (GtkTextBuffer *buffer,
36325 GtkTextIter *iter,
36326 const GtkTextIter *start,
36327 const GtkTextIter *end,
36328 gboolean default_editable);
36329
36330 void gtk_text_buffer_insert_with_tags (GtkTextBuffer *buffer,
36331 GtkTextIter *iter,
36332 const gchar *text,
36333 gint len,
36334 GtkTextTag *first_tag,
36335 ...) __attribute__((__sentinel__));
36336
36337 void gtk_text_buffer_insert_with_tags_by_name (GtkTextBuffer *buffer,
36338 GtkTextIter *iter,
36339 const gchar *text,
36340 gint len,
36341 const gchar *first_tag_name,
36342 ...) __attribute__((__sentinel__));
36343
36344
36345 void gtk_text_buffer_delete (GtkTextBuffer *buffer,
36346 GtkTextIter *start,
36347 GtkTextIter *end);
36348 gboolean gtk_text_buffer_delete_interactive (GtkTextBuffer *buffer,
36349 GtkTextIter *start_iter,
36350 GtkTextIter *end_iter,
36351 gboolean default_editable);
36352 gboolean gtk_text_buffer_backspace (GtkTextBuffer *buffer,
36353 GtkTextIter *iter,
36354 gboolean interactive,
36355 gboolean default_editable);
36356
36357
36358 gchar *gtk_text_buffer_get_text (GtkTextBuffer *buffer,
36359 const GtkTextIter *start,
36360 const GtkTextIter *end,
36361 gboolean include_hidden_chars);
36362
36363 gchar *gtk_text_buffer_get_slice (GtkTextBuffer *buffer,
36364 const GtkTextIter *start,
36365 const GtkTextIter *end,
36366 gboolean include_hidden_chars);
36367
36368
36369 void gtk_text_buffer_insert_pixbuf (GtkTextBuffer *buffer,
36370 GtkTextIter *iter,
36371 GdkPixbuf *pixbuf);
36372
36373
36374 void gtk_text_buffer_insert_child_anchor (GtkTextBuffer *buffer,
36375 GtkTextIter *iter,
36376 GtkTextChildAnchor *anchor);
36377
36378
36379 GtkTextChildAnchor *gtk_text_buffer_create_child_anchor (GtkTextBuffer *buffer,
36380 GtkTextIter *iter);
36381
36382
36383 GtkTextMark *gtk_text_buffer_create_mark (GtkTextBuffer *buffer,
36384 const gchar *mark_name,
36385 const GtkTextIter *where,
36386 gboolean left_gravity);
36387 void gtk_text_buffer_move_mark (GtkTextBuffer *buffer,
36388 GtkTextMark *mark,
36389 const GtkTextIter *where);
36390 void gtk_text_buffer_delete_mark (GtkTextBuffer *buffer,
36391 GtkTextMark *mark);
36392 GtkTextMark* gtk_text_buffer_get_mark (GtkTextBuffer *buffer,
36393 const gchar *name);
36394
36395 void gtk_text_buffer_move_mark_by_name (GtkTextBuffer *buffer,
36396 const gchar *name,
36397 const GtkTextIter *where);
36398 void gtk_text_buffer_delete_mark_by_name (GtkTextBuffer *buffer,
36399 const gchar *name);
36400
36401 GtkTextMark* gtk_text_buffer_get_insert (GtkTextBuffer *buffer);
36402 GtkTextMark* gtk_text_buffer_get_selection_bound (GtkTextBuffer *buffer);
36403
36404
36405 void gtk_text_buffer_place_cursor (GtkTextBuffer *buffer,
36406 const GtkTextIter *where);
36407 void gtk_text_buffer_select_range (GtkTextBuffer *buffer,
36408 const GtkTextIter *ins,
36409 const GtkTextIter *bound);
36410
36411
36412
36413
36414 void gtk_text_buffer_apply_tag (GtkTextBuffer *buffer,
36415 GtkTextTag *tag,
36416 const GtkTextIter *start,
36417 const GtkTextIter *end);
36418 void gtk_text_buffer_remove_tag (GtkTextBuffer *buffer,
36419 GtkTextTag *tag,
36420 const GtkTextIter *start,
36421 const GtkTextIter *end);
36422 void gtk_text_buffer_apply_tag_by_name (GtkTextBuffer *buffer,
36423 const gchar *name,
36424 const GtkTextIter *start,
36425 const GtkTextIter *end);
36426 void gtk_text_buffer_remove_tag_by_name (GtkTextBuffer *buffer,
36427 const gchar *name,
36428 const GtkTextIter *start,
36429 const GtkTextIter *end);
36430 void gtk_text_buffer_remove_all_tags (GtkTextBuffer *buffer,
36431 const GtkTextIter *start,
36432 const GtkTextIter *end);
36433
36434
36435
36436
36437
36438 GtkTextTag *gtk_text_buffer_create_tag (GtkTextBuffer *buffer,
36439 const gchar *tag_name,
36440 const gchar *first_property_name,
36441 ...);
36442
36443
36444
36445
36446 void gtk_text_buffer_get_iter_at_line_offset (GtkTextBuffer *buffer,
36447 GtkTextIter *iter,
36448 gint line_number,
36449 gint char_offset);
36450 void gtk_text_buffer_get_iter_at_line_index (GtkTextBuffer *buffer,
36451 GtkTextIter *iter,
36452 gint line_number,
36453 gint byte_index);
36454 void gtk_text_buffer_get_iter_at_offset (GtkTextBuffer *buffer,
36455 GtkTextIter *iter,
36456 gint char_offset);
36457 void gtk_text_buffer_get_iter_at_line (GtkTextBuffer *buffer,
36458 GtkTextIter *iter,
36459 gint line_number);
36460 void gtk_text_buffer_get_start_iter (GtkTextBuffer *buffer,
36461 GtkTextIter *iter);
36462 void gtk_text_buffer_get_end_iter (GtkTextBuffer *buffer,
36463 GtkTextIter *iter);
36464 void gtk_text_buffer_get_bounds (GtkTextBuffer *buffer,
36465 GtkTextIter *start,
36466 GtkTextIter *end);
36467 void gtk_text_buffer_get_iter_at_mark (GtkTextBuffer *buffer,
36468 GtkTextIter *iter,
36469 GtkTextMark *mark);
36470
36471 void gtk_text_buffer_get_iter_at_child_anchor (GtkTextBuffer *buffer,
36472 GtkTextIter *iter,
36473 GtkTextChildAnchor *anchor);
36474 # 336 "/usr/include/gtk-2.0/gtk/gtktextbuffer.h"
36475 gboolean gtk_text_buffer_get_modified (GtkTextBuffer *buffer);
36476 void gtk_text_buffer_set_modified (GtkTextBuffer *buffer,
36477 gboolean setting);
36478
36479 void gtk_text_buffer_add_selection_clipboard (GtkTextBuffer *buffer,
36480 GtkClipboard *clipboard);
36481 void gtk_text_buffer_remove_selection_clipboard (GtkTextBuffer *buffer,
36482 GtkClipboard *clipboard);
36483
36484 void gtk_text_buffer_cut_clipboard (GtkTextBuffer *buffer,
36485 GtkClipboard *clipboard,
36486 gboolean default_editable);
36487 void gtk_text_buffer_copy_clipboard (GtkTextBuffer *buffer,
36488 GtkClipboard *clipboard);
36489 void gtk_text_buffer_paste_clipboard (GtkTextBuffer *buffer,
36490 GtkClipboard *clipboard,
36491 GtkTextIter *override_location,
36492 gboolean default_editable);
36493
36494 gboolean gtk_text_buffer_get_selection_bounds (GtkTextBuffer *buffer,
36495 GtkTextIter *start,
36496 GtkTextIter *end);
36497 gboolean gtk_text_buffer_delete_selection (GtkTextBuffer *buffer,
36498 gboolean interactive,
36499 gboolean default_editable);
36500
36501
36502 void gtk_text_buffer_begin_user_action (GtkTextBuffer *buffer);
36503 void gtk_text_buffer_end_user_action (GtkTextBuffer *buffer);
36504
36505
36506 void _gtk_text_buffer_spew (GtkTextBuffer *buffer);
36507
36508 GtkTextBTree* _gtk_text_buffer_get_btree (GtkTextBuffer *buffer);
36509
36510 const PangoLogAttr* _gtk_text_buffer_get_line_log_attrs (GtkTextBuffer *buffer,
36511 const GtkTextIter *anywhere_in_line,
36512 gint *char_len);
36513
36514 void _gtk_text_buffer_notify_will_remove_tag (GtkTextBuffer *buffer,
36515 GtkTextTag *tag);
36516 # 159 "/usr/include/gtk-2.0/gtk/gtk.h" 2
36517
36518 # 1 "/usr/include/gtk-2.0/gtk/gtktextview.h" 1
36519 # 35 "/usr/include/gtk-2.0/gtk/gtktextview.h"
36520 # 44 "/usr/include/gtk-2.0/gtk/gtktextview.h"
36521 typedef enum
36522 {
36523 GTK_TEXT_WINDOW_PRIVATE,
36524 GTK_TEXT_WINDOW_WIDGET,
36525 GTK_TEXT_WINDOW_TEXT,
36526 GTK_TEXT_WINDOW_LEFT,
36527 GTK_TEXT_WINDOW_RIGHT,
36528 GTK_TEXT_WINDOW_TOP,
36529 GTK_TEXT_WINDOW_BOTTOM
36530 } GtkTextWindowType;
36531
36532
36533
36534 typedef struct _GtkTextView GtkTextView;
36535 typedef struct _GtkTextViewClass GtkTextViewClass;
36536
36537
36538 typedef struct _GtkTextWindow GtkTextWindow;
36539 typedef struct _GtkTextPendingScroll GtkTextPendingScroll;
36540
36541 struct _GtkTextView
36542 {
36543 GtkContainer parent_instance;
36544
36545 struct _GtkTextLayout *layout;
36546 GtkTextBuffer *buffer;
36547
36548 guint selection_drag_handler;
36549 guint scroll_timeout;
36550
36551
36552 gint pixels_above_lines;
36553 gint pixels_below_lines;
36554 gint pixels_inside_wrap;
36555 GtkWrapMode wrap_mode;
36556 GtkJustification justify;
36557 gint left_margin;
36558 gint right_margin;
36559 gint indent;
36560 PangoTabArray *tabs;
36561 guint editable : 1;
36562
36563
36564
36565 guint overwrite_mode : 1;
36566 guint cursor_visible : 1;
36567
36568
36569 guint need_im_reset : 1;
36570
36571 guint accepts_tab : 1;
36572
36573 guint width_changed : 1;
36574
36575
36576
36577
36578 guint onscreen_validated : 1;
36579
36580 guint mouse_cursor_obscured : 1;
36581
36582 GtkTextWindow *text_window;
36583 GtkTextWindow *left_window;
36584 GtkTextWindow *right_window;
36585 GtkTextWindow *top_window;
36586 GtkTextWindow *bottom_window;
36587
36588 GtkAdjustment *hadjustment;
36589 GtkAdjustment *vadjustment;
36590
36591 gint xoffset;
36592 gint yoffset;
36593 gint width;
36594 gint height;
36595 # 128 "/usr/include/gtk-2.0/gtk/gtktextview.h"
36596 gint virtual_cursor_x;
36597 gint virtual_cursor_y;
36598
36599 GtkTextMark *first_para_mark;
36600 gint first_para_pixels;
36601
36602 GtkTextMark *dnd_mark;
36603 guint blink_timeout;
36604
36605 guint first_validate_idle;
36606 guint incremental_validate_idle;
36607
36608 GtkIMContext *im_context;
36609 GtkWidget *popup_menu;
36610
36611 gint drag_start_x;
36612 gint drag_start_y;
36613
36614 GSList *children;
36615
36616 GtkTextPendingScroll *pending_scroll;
36617
36618 gint pending_place_cursor_button;
36619 };
36620
36621 struct _GtkTextViewClass
36622 {
36623 GtkContainerClass parent_class;
36624
36625 void (* set_scroll_adjustments) (GtkTextView *text_view,
36626 GtkAdjustment *hadjustment,
36627 GtkAdjustment *vadjustment);
36628
36629 void (* populate_popup) (GtkTextView *text_view,
36630 GtkMenu *menu);
36631
36632
36633
36634
36635 void (* move_cursor) (GtkTextView *text_view,
36636 GtkMovementStep step,
36637 gint count,
36638 gboolean extend_selection);
36639
36640
36641
36642
36643
36644 void (* page_horizontally) (GtkTextView *text_view,
36645 gint count,
36646 gboolean extend_selection);
36647
36648
36649 void (* set_anchor) (GtkTextView *text_view);
36650
36651
36652 void (* insert_at_cursor) (GtkTextView *text_view,
36653 const gchar *str);
36654 void (* delete_from_cursor) (GtkTextView *text_view,
36655 GtkDeleteType type,
36656 gint count);
36657 void (* backspace) (GtkTextView *text_view);
36658
36659
36660 void (* cut_clipboard) (GtkTextView *text_view);
36661 void (* copy_clipboard) (GtkTextView *text_view);
36662 void (* paste_clipboard) (GtkTextView *text_view);
36663
36664 void (* toggle_overwrite) (GtkTextView *text_view);
36665
36666
36667 void (* move_focus) (GtkTextView *text_view,
36668 GtkDirectionType direction);
36669
36670
36671
36672 void (*_gtk_reserved1) (void);
36673 void (*_gtk_reserved2) (void);
36674 void (*_gtk_reserved3) (void);
36675 void (*_gtk_reserved4) (void);
36676 void (*_gtk_reserved5) (void);
36677 void (*_gtk_reserved6) (void);
36678 void (*_gtk_reserved7) (void);
36679 };
36680
36681 GType gtk_text_view_get_type (void) __attribute__((__const__));
36682 GtkWidget * gtk_text_view_new (void);
36683 GtkWidget * gtk_text_view_new_with_buffer (GtkTextBuffer *buffer);
36684 void gtk_text_view_set_buffer (GtkTextView *text_view,
36685 GtkTextBuffer *buffer);
36686 GtkTextBuffer *gtk_text_view_get_buffer (GtkTextView *text_view);
36687 gboolean gtk_text_view_scroll_to_iter (GtkTextView *text_view,
36688 GtkTextIter *iter,
36689 gdouble within_margin,
36690 gboolean use_align,
36691 gdouble xalign,
36692 gdouble yalign);
36693 void gtk_text_view_scroll_to_mark (GtkTextView *text_view,
36694 GtkTextMark *mark,
36695 gdouble within_margin,
36696 gboolean use_align,
36697 gdouble xalign,
36698 gdouble yalign);
36699 void gtk_text_view_scroll_mark_onscreen (GtkTextView *text_view,
36700 GtkTextMark *mark);
36701 gboolean gtk_text_view_move_mark_onscreen (GtkTextView *text_view,
36702 GtkTextMark *mark);
36703 gboolean gtk_text_view_place_cursor_onscreen (GtkTextView *text_view);
36704
36705 void gtk_text_view_get_visible_rect (GtkTextView *text_view,
36706 GdkRectangle *visible_rect);
36707 void gtk_text_view_set_cursor_visible (GtkTextView *text_view,
36708 gboolean setting);
36709 gboolean gtk_text_view_get_cursor_visible (GtkTextView *text_view);
36710
36711 void gtk_text_view_get_iter_location (GtkTextView *text_view,
36712 const GtkTextIter *iter,
36713 GdkRectangle *location);
36714 void gtk_text_view_get_iter_at_location (GtkTextView *text_view,
36715 GtkTextIter *iter,
36716 gint x,
36717 gint y);
36718 void gtk_text_view_get_iter_at_position (GtkTextView *text_view,
36719 GtkTextIter *iter,
36720 gint *trailing,
36721 gint x,
36722 gint y);
36723 void gtk_text_view_get_line_yrange (GtkTextView *text_view,
36724 const GtkTextIter *iter,
36725 gint *y,
36726 gint *height);
36727
36728 void gtk_text_view_get_line_at_y (GtkTextView *text_view,
36729 GtkTextIter *target_iter,
36730 gint y,
36731 gint *line_top);
36732
36733 void gtk_text_view_buffer_to_window_coords (GtkTextView *text_view,
36734 GtkTextWindowType win,
36735 gint buffer_x,
36736 gint buffer_y,
36737 gint *window_x,
36738 gint *window_y);
36739 void gtk_text_view_window_to_buffer_coords (GtkTextView *text_view,
36740 GtkTextWindowType win,
36741 gint window_x,
36742 gint window_y,
36743 gint *buffer_x,
36744 gint *buffer_y);
36745
36746 GdkWindow* gtk_text_view_get_window (GtkTextView *text_view,
36747 GtkTextWindowType win);
36748 GtkTextWindowType gtk_text_view_get_window_type (GtkTextView *text_view,
36749 GdkWindow *window);
36750
36751 void gtk_text_view_set_border_window_size (GtkTextView *text_view,
36752 GtkTextWindowType type,
36753 gint size);
36754 gint gtk_text_view_get_border_window_size (GtkTextView *text_view,
36755 GtkTextWindowType type);
36756
36757 gboolean gtk_text_view_forward_display_line (GtkTextView *text_view,
36758 GtkTextIter *iter);
36759 gboolean gtk_text_view_backward_display_line (GtkTextView *text_view,
36760 GtkTextIter *iter);
36761 gboolean gtk_text_view_forward_display_line_end (GtkTextView *text_view,
36762 GtkTextIter *iter);
36763 gboolean gtk_text_view_backward_display_line_start (GtkTextView *text_view,
36764 GtkTextIter *iter);
36765 gboolean gtk_text_view_starts_display_line (GtkTextView *text_view,
36766 const GtkTextIter *iter);
36767 gboolean gtk_text_view_move_visually (GtkTextView *text_view,
36768 GtkTextIter *iter,
36769 gint count);
36770
36771
36772 void gtk_text_view_add_child_at_anchor (GtkTextView *text_view,
36773 GtkWidget *child,
36774 GtkTextChildAnchor *anchor);
36775
36776 void gtk_text_view_add_child_in_window (GtkTextView *text_view,
36777 GtkWidget *child,
36778 GtkTextWindowType which_window,
36779
36780 gint xpos,
36781 gint ypos);
36782
36783 void gtk_text_view_move_child (GtkTextView *text_view,
36784 GtkWidget *child,
36785
36786 gint xpos,
36787 gint ypos);
36788
36789
36790
36791 void gtk_text_view_set_wrap_mode (GtkTextView *text_view,
36792 GtkWrapMode wrap_mode);
36793 GtkWrapMode gtk_text_view_get_wrap_mode (GtkTextView *text_view);
36794 void gtk_text_view_set_editable (GtkTextView *text_view,
36795 gboolean setting);
36796 gboolean gtk_text_view_get_editable (GtkTextView *text_view);
36797 void gtk_text_view_set_overwrite (GtkTextView *text_view,
36798 gboolean overwrite);
36799 gboolean gtk_text_view_get_overwrite (GtkTextView *text_view);
36800 void gtk_text_view_set_accepts_tab (GtkTextView *text_view,
36801 gboolean accepts_tab);
36802 gboolean gtk_text_view_get_accepts_tab (GtkTextView *text_view);
36803 void gtk_text_view_set_pixels_above_lines (GtkTextView *text_view,
36804 gint pixels_above_lines);
36805 gint gtk_text_view_get_pixels_above_lines (GtkTextView *text_view);
36806 void gtk_text_view_set_pixels_below_lines (GtkTextView *text_view,
36807 gint pixels_below_lines);
36808 gint gtk_text_view_get_pixels_below_lines (GtkTextView *text_view);
36809 void gtk_text_view_set_pixels_inside_wrap (GtkTextView *text_view,
36810 gint pixels_inside_wrap);
36811 gint gtk_text_view_get_pixels_inside_wrap (GtkTextView *text_view);
36812 void gtk_text_view_set_justification (GtkTextView *text_view,
36813 GtkJustification justification);
36814 GtkJustification gtk_text_view_get_justification (GtkTextView *text_view);
36815 void gtk_text_view_set_left_margin (GtkTextView *text_view,
36816 gint left_margin);
36817 gint gtk_text_view_get_left_margin (GtkTextView *text_view);
36818 void gtk_text_view_set_right_margin (GtkTextView *text_view,
36819 gint right_margin);
36820 gint gtk_text_view_get_right_margin (GtkTextView *text_view);
36821 void gtk_text_view_set_indent (GtkTextView *text_view,
36822 gint indent);
36823 gint gtk_text_view_get_indent (GtkTextView *text_view);
36824 void gtk_text_view_set_tabs (GtkTextView *text_view,
36825 PangoTabArray *tabs);
36826 PangoTabArray* gtk_text_view_get_tabs (GtkTextView *text_view);
36827
36828
36829 GtkTextAttributes* gtk_text_view_get_default_attributes (GtkTextView *text_view);
36830 # 160 "/usr/include/gtk-2.0/gtk/gtk.h" 2
36831
36832 # 1 "/usr/include/gtk-2.0/gtk/gtktipsquery.h" 1
36833 # 39 "/usr/include/gtk-2.0/gtk/gtktipsquery.h"
36834 # 51 "/usr/include/gtk-2.0/gtk/gtktipsquery.h"
36835 typedef struct _GtkTipsQuery GtkTipsQuery;
36836 typedef struct _GtkTipsQueryClass GtkTipsQueryClass;
36837
36838
36839
36840 struct _GtkTipsQuery
36841 {
36842 GtkLabel label;
36843
36844 guint emit_always : 1;
36845 guint in_query : 1;
36846 gchar *label_inactive;
36847 gchar *label_no_tip;
36848
36849 GtkWidget *caller;
36850 GtkWidget *last_crossed;
36851
36852 GdkCursor *query_cursor;
36853 };
36854
36855 struct _GtkTipsQueryClass
36856 {
36857 GtkLabelClass parent_class;
36858
36859 void (*start_query) (GtkTipsQuery *tips_query);
36860 void (*stop_query) (GtkTipsQuery *tips_query);
36861 void (*widget_entered) (GtkTipsQuery *tips_query,
36862 GtkWidget *widget,
36863 const gchar *tip_text,
36864 const gchar *tip_private);
36865 gint (*widget_selected) (GtkTipsQuery *tips_query,
36866 GtkWidget *widget,
36867 const gchar *tip_text,
36868 const gchar *tip_private,
36869 GdkEventButton *event);
36870
36871
36872 void (*_gtk_reserved1) (void);
36873 void (*_gtk_reserved2) (void);
36874 void (*_gtk_reserved3) (void);
36875 void (*_gtk_reserved4) (void);
36876 };
36877
36878
36879
36880 GtkType gtk_tips_query_get_type (void) __attribute__((__const__));
36881 GtkWidget* gtk_tips_query_new (void);
36882 void gtk_tips_query_start_query (GtkTipsQuery *tips_query);
36883 void gtk_tips_query_stop_query (GtkTipsQuery *tips_query);
36884 void gtk_tips_query_set_caller (GtkTipsQuery *tips_query,
36885 GtkWidget *caller);
36886 void gtk_tips_query_set_labels (GtkTipsQuery *tips_query,
36887 const gchar *label_inactive,
36888 const gchar *label_no_tip);
36889 # 161 "/usr/include/gtk-2.0/gtk/gtk.h" 2
36890
36891
36892
36893 # 1 "/usr/include/gtk-2.0/gtk/gtktoggletoolbutton.h" 1
36894 # 164 "/usr/include/gtk-2.0/gtk/gtk.h" 2
36895
36896 # 1 "/usr/include/gtk-2.0/gtk/gtktoolbar.h" 1
36897 # 45 "/usr/include/gtk-2.0/gtk/gtktoolbar.h"
36898
36899 # 1 "/usr/include/gtk-2.0/gtk/gtkpixmap.h" 1
36900 # 46 "/usr/include/gtk-2.0/gtk/gtktoolbar.h" 2
36901 # 60 "/usr/include/gtk-2.0/gtk/gtktoolbar.h"
36902 typedef enum
36903 {
36904 GTK_TOOLBAR_CHILD_SPACE,
36905 GTK_TOOLBAR_CHILD_BUTTON,
36906 GTK_TOOLBAR_CHILD_TOGGLEBUTTON,
36907 GTK_TOOLBAR_CHILD_RADIOBUTTON,
36908 GTK_TOOLBAR_CHILD_WIDGET
36909 } GtkToolbarChildType;
36910
36911 typedef struct _GtkToolbarChild GtkToolbarChild;
36912
36913 struct _GtkToolbarChild
36914 {
36915 GtkToolbarChildType type;
36916 GtkWidget *widget;
36917 GtkWidget *icon;
36918 GtkWidget *label;
36919 };
36920
36921
36922
36923 typedef enum
36924 {
36925 GTK_TOOLBAR_SPACE_EMPTY,
36926 GTK_TOOLBAR_SPACE_LINE
36927 } GtkToolbarSpaceStyle;
36928
36929 typedef struct _GtkToolbar GtkToolbar;
36930 typedef struct _GtkToolbarClass GtkToolbarClass;
36931 typedef struct _GtkToolbarPrivate GtkToolbarPrivate;
36932
36933 struct _GtkToolbar
36934 {
36935 GtkContainer container;
36936
36937
36938 gint num_children;
36939 GList *children;
36940 GtkOrientation orientation;
36941 GtkToolbarStyle style;
36942 GtkIconSize icon_size;
36943
36944 GtkTooltips *tooltips;
36945
36946
36947 gint button_maxw;
36948 gint button_maxh;
36949
36950 guint _gtk_reserved1;
36951 guint _gtk_reserved2;
36952
36953 guint style_set : 1;
36954 guint icon_size_set : 1;
36955 };
36956
36957 struct _GtkToolbarClass
36958 {
36959 GtkContainerClass parent_class;
36960
36961
36962 void (* orientation_changed) (GtkToolbar *toolbar,
36963 GtkOrientation orientation);
36964 void (* style_changed) (GtkToolbar *toolbar,
36965 GtkToolbarStyle style);
36966 gboolean (* popup_context_menu) (GtkToolbar *toolbar,
36967 gint x,
36968 gint y,
36969 gint button_number);
36970
36971
36972 void (*_gtk_reserved1) (void);
36973 void (*_gtk_reserved2) (void);
36974 void (*_gtk_reserved3) (void);
36975 };
36976
36977 GType gtk_toolbar_get_type (void) __attribute__((__const__));
36978 GtkWidget* gtk_toolbar_new (void);
36979 void gtk_toolbar_insert (GtkToolbar *toolbar,
36980 GtkToolItem *item,
36981 gint pos);
36982 gint gtk_toolbar_get_item_index (GtkToolbar *toolbar,
36983 GtkToolItem *item);
36984 gint gtk_toolbar_get_n_items (GtkToolbar *toolbar);
36985 GtkToolItem * gtk_toolbar_get_nth_item (GtkToolbar *toolbar,
36986 gint n);
36987 gboolean gtk_toolbar_get_show_arrow (GtkToolbar *toolbar);
36988 void gtk_toolbar_set_show_arrow (GtkToolbar *toolbar,
36989 gboolean show_arrow);
36990 GtkOrientation gtk_toolbar_get_orientation (GtkToolbar *toolbar);
36991 void gtk_toolbar_set_orientation (GtkToolbar *toolbar,
36992 GtkOrientation orientation);
36993 gboolean gtk_toolbar_get_tooltips (GtkToolbar *toolbar);
36994 void gtk_toolbar_set_tooltips (GtkToolbar *toolbar,
36995 gboolean enable);
36996 GtkToolbarStyle gtk_toolbar_get_style (GtkToolbar *toolbar);
36997 void gtk_toolbar_set_style (GtkToolbar *toolbar,
36998 GtkToolbarStyle style);
36999 void gtk_toolbar_unset_style (GtkToolbar *toolbar);
37000 GtkIconSize gtk_toolbar_get_icon_size (GtkToolbar *toolbar);
37001 GtkReliefStyle gtk_toolbar_get_relief_style (GtkToolbar *toolbar);
37002 gint gtk_toolbar_get_drop_index (GtkToolbar *toolbar,
37003 gint x,
37004 gint y);
37005 void gtk_toolbar_set_drop_highlight_item (GtkToolbar *toolbar,
37006 GtkToolItem *tool_item,
37007 gint index_);
37008
37009
37010 gchar * _gtk_toolbar_elide_underscores (const gchar *original);
37011 void _gtk_toolbar_paint_space_line (GtkWidget *widget,
37012 GtkToolbar *toolbar,
37013 GdkRectangle *area,
37014 GtkAllocation *allocation);
37015 gint _gtk_toolbar_get_default_space_size (void);
37016 void _gtk_toolbar_rebuild_menu (GtkToolbar *toolbar);
37017
37018
37019
37020
37021 void gtk_toolbar_set_icon_size (GtkToolbar *toolbar,
37022 GtkIconSize icon_size);
37023 void gtk_toolbar_unset_icon_size (GtkToolbar *toolbar);
37024
37025
37026 GtkWidget* gtk_toolbar_append_item (GtkToolbar *toolbar,
37027 const char *text,
37028 const char *tooltip_text,
37029 const char *tooltip_private_text,
37030 GtkWidget *icon,
37031 GtkSignalFunc callback,
37032 gpointer user_data);
37033 GtkWidget* gtk_toolbar_prepend_item (GtkToolbar *toolbar,
37034 const char *text,
37035 const char *tooltip_text,
37036 const char *tooltip_private_text,
37037 GtkWidget *icon,
37038 GtkSignalFunc callback,
37039 gpointer user_data);
37040 GtkWidget* gtk_toolbar_insert_item (GtkToolbar *toolbar,
37041 const char *text,
37042 const char *tooltip_text,
37043 const char *tooltip_private_text,
37044 GtkWidget *icon,
37045 GtkSignalFunc callback,
37046 gpointer user_data,
37047 gint position);
37048
37049
37050 GtkWidget* gtk_toolbar_insert_stock (GtkToolbar *toolbar,
37051 const gchar *stock_id,
37052 const char *tooltip_text,
37053 const char *tooltip_private_text,
37054 GtkSignalFunc callback,
37055 gpointer user_data,
37056 gint position);
37057
37058
37059 void gtk_toolbar_append_space (GtkToolbar *toolbar);
37060 void gtk_toolbar_prepend_space (GtkToolbar *toolbar);
37061 void gtk_toolbar_insert_space (GtkToolbar *toolbar,
37062 gint position);
37063 void gtk_toolbar_remove_space (GtkToolbar *toolbar,
37064 gint position);
37065
37066 GtkWidget* gtk_toolbar_append_element (GtkToolbar *toolbar,
37067 GtkToolbarChildType type,
37068 GtkWidget *widget,
37069 const char *text,
37070 const char *tooltip_text,
37071 const char *tooltip_private_text,
37072 GtkWidget *icon,
37073 GtkSignalFunc callback,
37074 gpointer user_data);
37075
37076 GtkWidget* gtk_toolbar_prepend_element (GtkToolbar *toolbar,
37077 GtkToolbarChildType type,
37078 GtkWidget *widget,
37079 const char *text,
37080 const char *tooltip_text,
37081 const char *tooltip_private_text,
37082 GtkWidget *icon,
37083 GtkSignalFunc callback,
37084 gpointer user_data);
37085
37086 GtkWidget* gtk_toolbar_insert_element (GtkToolbar *toolbar,
37087 GtkToolbarChildType type,
37088 GtkWidget *widget,
37089 const char *text,
37090 const char *tooltip_text,
37091 const char *tooltip_private_text,
37092 GtkWidget *icon,
37093 GtkSignalFunc callback,
37094 gpointer user_data,
37095 gint position);
37096
37097
37098 void gtk_toolbar_append_widget (GtkToolbar *toolbar,
37099 GtkWidget *widget,
37100 const char *tooltip_text,
37101 const char *tooltip_private_text);
37102 void gtk_toolbar_prepend_widget (GtkToolbar *toolbar,
37103 GtkWidget *widget,
37104 const char *tooltip_text,
37105 const char *tooltip_private_text);
37106 void gtk_toolbar_insert_widget (GtkToolbar *toolbar,
37107 GtkWidget *widget,
37108 const char *tooltip_text,
37109 const char *tooltip_private_text,
37110 gint position);
37111 # 165 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37112
37113 # 1 "/usr/include/gtk-2.0/gtk/gtktoolbutton.h" 1
37114 # 166 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37115
37116 # 1 "/usr/include/gtk-2.0/gtk/gtktoolitem.h" 1
37117 # 167 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37118
37119
37120 # 1 "/usr/include/gtk-2.0/gtk/gtktree.h" 1
37121 # 169 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37122
37123 # 1 "/usr/include/gtk-2.0/gtk/gtktreednd.h" 1
37124 # 26 "/usr/include/gtk-2.0/gtk/gtktreednd.h"
37125
37126
37127
37128
37129
37130
37131
37132 typedef struct _GtkTreeDragSource GtkTreeDragSource;
37133 typedef struct _GtkTreeDragSourceIface GtkTreeDragSourceIface;
37134
37135 struct _GtkTreeDragSourceIface
37136 {
37137 GTypeInterface g_iface;
37138
37139
37140
37141 gboolean (* row_draggable) (GtkTreeDragSource *drag_source,
37142 GtkTreePath *path);
37143
37144 gboolean (* drag_data_get) (GtkTreeDragSource *drag_source,
37145 GtkTreePath *path,
37146 GtkSelectionData *selection_data);
37147
37148 gboolean (* drag_data_delete) (GtkTreeDragSource *drag_source,
37149 GtkTreePath *path);
37150 };
37151
37152 GType gtk_tree_drag_source_get_type (void) __attribute__((__const__));
37153
37154
37155 gboolean gtk_tree_drag_source_row_draggable (GtkTreeDragSource *drag_source,
37156 GtkTreePath *path);
37157
37158
37159 gboolean gtk_tree_drag_source_drag_data_delete (GtkTreeDragSource *drag_source,
37160 GtkTreePath *path);
37161
37162
37163
37164
37165 gboolean gtk_tree_drag_source_drag_data_get (GtkTreeDragSource *drag_source,
37166 GtkTreePath *path,
37167 GtkSelectionData *selection_data);
37168
37169
37170
37171
37172
37173
37174 typedef struct _GtkTreeDragDest GtkTreeDragDest;
37175 typedef struct _GtkTreeDragDestIface GtkTreeDragDestIface;
37176
37177 struct _GtkTreeDragDestIface
37178 {
37179 GTypeInterface g_iface;
37180
37181
37182
37183 gboolean (* drag_data_received) (GtkTreeDragDest *drag_dest,
37184 GtkTreePath *dest,
37185 GtkSelectionData *selection_data);
37186
37187 gboolean (* row_drop_possible) (GtkTreeDragDest *drag_dest,
37188 GtkTreePath *dest_path,
37189 GtkSelectionData *selection_data);
37190 };
37191
37192 GType gtk_tree_drag_dest_get_type (void) __attribute__((__const__));
37193
37194
37195
37196
37197 gboolean gtk_tree_drag_dest_drag_data_received (GtkTreeDragDest *drag_dest,
37198 GtkTreePath *dest,
37199 GtkSelectionData *selection_data);
37200
37201
37202
37203 gboolean gtk_tree_drag_dest_row_drop_possible (GtkTreeDragDest *drag_dest,
37204 GtkTreePath *dest_path,
37205 GtkSelectionData *selection_data);
37206
37207
37208
37209
37210
37211 gboolean gtk_tree_set_row_drag_data (GtkSelectionData *selection_data,
37212 GtkTreeModel *tree_model,
37213 GtkTreePath *path);
37214 gboolean gtk_tree_get_row_drag_data (GtkSelectionData *selection_data,
37215 GtkTreeModel **tree_model,
37216 GtkTreePath **path);
37217 # 170 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37218
37219 # 1 "/usr/include/gtk-2.0/gtk/gtktreeitem.h" 1
37220 # 171 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37221
37222
37223
37224 # 1 "/usr/include/gtk-2.0/gtk/gtktreemodelsort.h" 1
37225 # 26 "/usr/include/gtk-2.0/gtk/gtktreemodelsort.h"
37226 # 35 "/usr/include/gtk-2.0/gtk/gtktreemodelsort.h"
37227 typedef struct _GtkTreeModelSort GtkTreeModelSort;
37228 typedef struct _GtkTreeModelSortClass GtkTreeModelSortClass;
37229
37230 struct _GtkTreeModelSort
37231 {
37232 GObject parent;
37233
37234
37235 gpointer root;
37236 gint stamp;
37237 guint child_flags;
37238 GtkTreeModel *child_model;
37239 gint zero_ref_count;
37240
37241
37242 GList *sort_list;
37243 gint sort_column_id;
37244 GtkSortType order;
37245
37246
37247 GtkTreeIterCompareFunc default_sort_func;
37248 gpointer default_sort_data;
37249 GtkDestroyNotify default_sort_destroy;
37250
37251
37252 guint changed_id;
37253 guint inserted_id;
37254 guint has_child_toggled_id;
37255 guint deleted_id;
37256 guint reordered_id;
37257 };
37258
37259 struct _GtkTreeModelSortClass
37260 {
37261 GObjectClass parent_class;
37262
37263
37264 void (*_gtk_reserved1) (void);
37265 void (*_gtk_reserved2) (void);
37266 void (*_gtk_reserved3) (void);
37267 void (*_gtk_reserved4) (void);
37268 };
37269
37270
37271 GType gtk_tree_model_sort_get_type (void) __attribute__((__const__));
37272 GtkTreeModel *gtk_tree_model_sort_new_with_model (GtkTreeModel *child_model);
37273
37274 GtkTreeModel *gtk_tree_model_sort_get_model (GtkTreeModelSort *tree_model);
37275 GtkTreePath *gtk_tree_model_sort_convert_child_path_to_path (GtkTreeModelSort *tree_model_sort,
37276 GtkTreePath *child_path);
37277 void gtk_tree_model_sort_convert_child_iter_to_iter (GtkTreeModelSort *tree_model_sort,
37278 GtkTreeIter *sort_iter,
37279 GtkTreeIter *child_iter);
37280 GtkTreePath *gtk_tree_model_sort_convert_path_to_child_path (GtkTreeModelSort *tree_model_sort,
37281 GtkTreePath *sorted_path);
37282 void gtk_tree_model_sort_convert_iter_to_child_iter (GtkTreeModelSort *tree_model_sort,
37283 GtkTreeIter *child_iter,
37284 GtkTreeIter *sorted_iter);
37285 void gtk_tree_model_sort_reset_default_sort_func (GtkTreeModelSort *tree_model_sort);
37286 void gtk_tree_model_sort_clear_cache (GtkTreeModelSort *tree_model_sort);
37287 gboolean gtk_tree_model_sort_iter_is_valid (GtkTreeModelSort *tree_model_sort,
37288 GtkTreeIter *iter);
37289 # 174 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37290
37291 # 1 "/usr/include/gtk-2.0/gtk/gtktreeselection.h" 1
37292 # 27 "/usr/include/gtk-2.0/gtk/gtktreeselection.h"
37293 # 37 "/usr/include/gtk-2.0/gtk/gtktreeselection.h"
37294 typedef gboolean (* GtkTreeSelectionFunc) (GtkTreeSelection *selection,
37295 GtkTreeModel *model,
37296 GtkTreePath *path,
37297 gboolean path_currently_selected,
37298 gpointer data);
37299 typedef void (* GtkTreeSelectionForeachFunc) (GtkTreeModel *model,
37300 GtkTreePath *path,
37301 GtkTreeIter *iter,
37302 gpointer data);
37303
37304 struct _GtkTreeSelection
37305 {
37306 GObject parent;
37307
37308
37309
37310 GtkTreeView *tree_view;
37311 GtkSelectionMode type;
37312 GtkTreeSelectionFunc user_func;
37313 gpointer user_data;
37314 GtkDestroyNotify destroy;
37315 };
37316
37317 struct _GtkTreeSelectionClass
37318 {
37319 GObjectClass parent_class;
37320
37321 void (* changed) (GtkTreeSelection *selection);
37322
37323
37324 void (*_gtk_reserved1) (void);
37325 void (*_gtk_reserved2) (void);
37326 void (*_gtk_reserved3) (void);
37327 void (*_gtk_reserved4) (void);
37328 };
37329
37330
37331 GType gtk_tree_selection_get_type (void) __attribute__((__const__));
37332
37333 void gtk_tree_selection_set_mode (GtkTreeSelection *selection,
37334 GtkSelectionMode type);
37335 GtkSelectionMode gtk_tree_selection_get_mode (GtkTreeSelection *selection);
37336 void gtk_tree_selection_set_select_function (GtkTreeSelection *selection,
37337 GtkTreeSelectionFunc func,
37338 gpointer data,
37339 GtkDestroyNotify destroy);
37340 gpointer gtk_tree_selection_get_user_data (GtkTreeSelection *selection);
37341 GtkTreeView* gtk_tree_selection_get_tree_view (GtkTreeSelection *selection);
37342
37343
37344
37345 gboolean gtk_tree_selection_get_selected (GtkTreeSelection *selection,
37346 GtkTreeModel **model,
37347 GtkTreeIter *iter);
37348 GList * gtk_tree_selection_get_selected_rows (GtkTreeSelection *selection,
37349 GtkTreeModel **model);
37350 gint gtk_tree_selection_count_selected_rows (GtkTreeSelection *selection);
37351 void gtk_tree_selection_selected_foreach (GtkTreeSelection *selection,
37352 GtkTreeSelectionForeachFunc func,
37353 gpointer data);
37354 void gtk_tree_selection_select_path (GtkTreeSelection *selection,
37355 GtkTreePath *path);
37356 void gtk_tree_selection_unselect_path (GtkTreeSelection *selection,
37357 GtkTreePath *path);
37358 void gtk_tree_selection_select_iter (GtkTreeSelection *selection,
37359 GtkTreeIter *iter);
37360 void gtk_tree_selection_unselect_iter (GtkTreeSelection *selection,
37361 GtkTreeIter *iter);
37362 gboolean gtk_tree_selection_path_is_selected (GtkTreeSelection *selection,
37363 GtkTreePath *path);
37364 gboolean gtk_tree_selection_iter_is_selected (GtkTreeSelection *selection,
37365 GtkTreeIter *iter);
37366 void gtk_tree_selection_select_all (GtkTreeSelection *selection);
37367 void gtk_tree_selection_unselect_all (GtkTreeSelection *selection);
37368 void gtk_tree_selection_select_range (GtkTreeSelection *selection,
37369 GtkTreePath *start_path,
37370 GtkTreePath *end_path);
37371 void gtk_tree_selection_unselect_range (GtkTreeSelection *selection,
37372 GtkTreePath *start_path,
37373 GtkTreePath *end_path);
37374 # 175 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37375
37376 # 1 "/usr/include/gtk-2.0/gtk/gtktreestore.h" 1
37377 # 28 "/usr/include/gtk-2.0/gtk/gtktreestore.h"
37378 # 38 "/usr/include/gtk-2.0/gtk/gtktreestore.h"
37379 typedef struct _GtkTreeStore GtkTreeStore;
37380 typedef struct _GtkTreeStoreClass GtkTreeStoreClass;
37381
37382 struct _GtkTreeStore
37383 {
37384 GObject parent;
37385
37386 gint stamp;
37387 gpointer root;
37388 gpointer last;
37389 gint n_columns;
37390 gint sort_column_id;
37391 GList *sort_list;
37392 GtkSortType order;
37393 GType *column_headers;
37394 GtkTreeIterCompareFunc default_sort_func;
37395 gpointer default_sort_data;
37396 GtkDestroyNotify default_sort_destroy;
37397 guint columns_dirty : 1;
37398 };
37399
37400 struct _GtkTreeStoreClass
37401 {
37402 GObjectClass parent_class;
37403
37404
37405 void (*_gtk_reserved1) (void);
37406 void (*_gtk_reserved2) (void);
37407 void (*_gtk_reserved3) (void);
37408 void (*_gtk_reserved4) (void);
37409 };
37410
37411
37412 GType gtk_tree_store_get_type (void) __attribute__((__const__));
37413 GtkTreeStore *gtk_tree_store_new (gint n_columns,
37414 ...);
37415 GtkTreeStore *gtk_tree_store_newv (gint n_columns,
37416 GType *types);
37417 void gtk_tree_store_set_column_types (GtkTreeStore *tree_store,
37418 gint n_columns,
37419 GType *types);
37420
37421
37422
37423 void gtk_tree_store_set_value (GtkTreeStore *tree_store,
37424 GtkTreeIter *iter,
37425 gint column,
37426 GValue *value);
37427 void gtk_tree_store_set (GtkTreeStore *tree_store,
37428 GtkTreeIter *iter,
37429 ...);
37430 void gtk_tree_store_set_valist (GtkTreeStore *tree_store,
37431 GtkTreeIter *iter,
37432 va_list var_args);
37433 gboolean gtk_tree_store_remove (GtkTreeStore *tree_store,
37434 GtkTreeIter *iter);
37435 void gtk_tree_store_insert (GtkTreeStore *tree_store,
37436 GtkTreeIter *iter,
37437 GtkTreeIter *parent,
37438 gint position);
37439 void gtk_tree_store_insert_before (GtkTreeStore *tree_store,
37440 GtkTreeIter *iter,
37441 GtkTreeIter *parent,
37442 GtkTreeIter *sibling);
37443 void gtk_tree_store_insert_after (GtkTreeStore *tree_store,
37444 GtkTreeIter *iter,
37445 GtkTreeIter *parent,
37446 GtkTreeIter *sibling);
37447 void gtk_tree_store_prepend (GtkTreeStore *tree_store,
37448 GtkTreeIter *iter,
37449 GtkTreeIter *parent);
37450 void gtk_tree_store_append (GtkTreeStore *tree_store,
37451 GtkTreeIter *iter,
37452 GtkTreeIter *parent);
37453 gboolean gtk_tree_store_is_ancestor (GtkTreeStore *tree_store,
37454 GtkTreeIter *iter,
37455 GtkTreeIter *descendant);
37456 gint gtk_tree_store_iter_depth (GtkTreeStore *tree_store,
37457 GtkTreeIter *iter);
37458 void gtk_tree_store_clear (GtkTreeStore *tree_store);
37459 gboolean gtk_tree_store_iter_is_valid (GtkTreeStore *tree_store,
37460 GtkTreeIter *iter);
37461 void gtk_tree_store_reorder (GtkTreeStore *tree_store,
37462 GtkTreeIter *parent,
37463 gint *new_order);
37464 void gtk_tree_store_swap (GtkTreeStore *tree_store,
37465 GtkTreeIter *a,
37466 GtkTreeIter *b);
37467 void gtk_tree_store_move_before (GtkTreeStore *tree_store,
37468 GtkTreeIter *iter,
37469 GtkTreeIter *position);
37470 void gtk_tree_store_move_after (GtkTreeStore *tree_store,
37471 GtkTreeIter *iter,
37472 GtkTreeIter *position);
37473 # 176 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37474
37475
37476
37477
37478 # 1 "/usr/include/gtk-2.0/gtk/gtkuimanager.h" 1
37479 # 41 "/usr/include/gtk-2.0/gtk/gtkuimanager.h"
37480 # 50 "/usr/include/gtk-2.0/gtk/gtkuimanager.h"
37481 typedef struct _GtkUIManager GtkUIManager;
37482 typedef struct _GtkUIManagerClass GtkUIManagerClass;
37483 typedef struct _GtkUIManagerPrivate GtkUIManagerPrivate;
37484
37485
37486 struct _GtkUIManager {
37487 GObject parent;
37488
37489
37490
37491 GtkUIManagerPrivate *private_data;
37492 };
37493
37494 struct _GtkUIManagerClass {
37495 GObjectClass parent_class;
37496
37497
37498 void (* add_widget) (GtkUIManager *merge,
37499 GtkWidget *widget);
37500 void (* actions_changed) (GtkUIManager *merge);
37501 void (* connect_proxy) (GtkUIManager *merge,
37502 GtkAction *action,
37503 GtkWidget *proxy);
37504 void (* disconnect_proxy) (GtkUIManager *merge,
37505 GtkAction *action,
37506 GtkWidget *proxy);
37507 void (* pre_activate) (GtkUIManager *merge,
37508 GtkAction *action);
37509 void (* post_activate) (GtkUIManager *merge,
37510 GtkAction *action);
37511
37512
37513 GtkWidget * (* get_widget) (GtkUIManager *manager,
37514 const gchar *path);
37515 GtkAction * (* get_action) (GtkUIManager *manager,
37516 const gchar *path);
37517
37518
37519 void (*_gtk_reserved1) (void);
37520 void (*_gtk_reserved2) (void);
37521 };
37522
37523 typedef enum {
37524 GTK_UI_MANAGER_AUTO = 0,
37525 GTK_UI_MANAGER_MENUBAR = 1 << 0,
37526 GTK_UI_MANAGER_MENU = 1 << 1,
37527 GTK_UI_MANAGER_TOOLBAR = 1 << 2,
37528 GTK_UI_MANAGER_PLACEHOLDER = 1 << 3,
37529 GTK_UI_MANAGER_POPUP = 1 << 4,
37530 GTK_UI_MANAGER_MENUITEM = 1 << 5,
37531 GTK_UI_MANAGER_TOOLITEM = 1 << 6,
37532 GTK_UI_MANAGER_SEPARATOR = 1 << 7,
37533 GTK_UI_MANAGER_ACCELERATOR = 1 << 8
37534 } GtkUIManagerItemType;
37535
37536
37537
37538
37539
37540
37541 GType gtk_ui_manager_get_type (void) __attribute__((__const__));
37542 GtkUIManager *gtk_ui_manager_new (void);
37543 void gtk_ui_manager_set_add_tearoffs (GtkUIManager *self,
37544 gboolean add_tearoffs);
37545 gboolean gtk_ui_manager_get_add_tearoffs (GtkUIManager *self);
37546 void gtk_ui_manager_insert_action_group (GtkUIManager *self,
37547 GtkActionGroup *action_group,
37548 gint pos);
37549 void gtk_ui_manager_remove_action_group (GtkUIManager *self,
37550 GtkActionGroup *action_group);
37551 GList *gtk_ui_manager_get_action_groups (GtkUIManager *self);
37552 GtkAccelGroup *gtk_ui_manager_get_accel_group (GtkUIManager *self);
37553 GtkWidget *gtk_ui_manager_get_widget (GtkUIManager *self,
37554 const gchar *path);
37555 GSList *gtk_ui_manager_get_toplevels (GtkUIManager *self,
37556 GtkUIManagerItemType types);
37557 GtkAction *gtk_ui_manager_get_action (GtkUIManager *self,
37558 const gchar *path);
37559 guint gtk_ui_manager_add_ui_from_string (GtkUIManager *self,
37560 const gchar *buffer,
37561 gssize length,
37562 GError **error);
37563 guint gtk_ui_manager_add_ui_from_file (GtkUIManager *self,
37564 const gchar *filename,
37565 GError **error);
37566 void gtk_ui_manager_add_ui (GtkUIManager *self,
37567 guint merge_id,
37568 const gchar *path,
37569 const gchar *name,
37570 const gchar *action,
37571 GtkUIManagerItemType type,
37572 gboolean top);
37573 void gtk_ui_manager_remove_ui (GtkUIManager *self,
37574 guint merge_id);
37575 gchar *gtk_ui_manager_get_ui (GtkUIManager *self);
37576 void gtk_ui_manager_ensure_update (GtkUIManager *self);
37577 guint gtk_ui_manager_new_merge_id (GtkUIManager *self);
37578 # 180 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37579
37580 # 1 "/usr/include/gtk-2.0/gtk/gtkvbbox.h" 1
37581 # 34 "/usr/include/gtk-2.0/gtk/gtkvbbox.h"
37582 # 45 "/usr/include/gtk-2.0/gtk/gtkvbbox.h"
37583 typedef struct _GtkVButtonBox GtkVButtonBox;
37584 typedef struct _GtkVButtonBoxClass GtkVButtonBoxClass;
37585
37586 struct _GtkVButtonBox
37587 {
37588 GtkButtonBox button_box;
37589 };
37590
37591 struct _GtkVButtonBoxClass
37592 {
37593 GtkButtonBoxClass parent_class;
37594 };
37595
37596
37597 GType gtk_vbutton_box_get_type (void) __attribute__((__const__));
37598 GtkWidget *gtk_vbutton_box_new (void);
37599
37600
37601
37602
37603 gint gtk_vbutton_box_get_spacing_default (void);
37604 void gtk_vbutton_box_set_spacing_default (gint spacing);
37605
37606 GtkButtonBoxStyle gtk_vbutton_box_get_layout_default (void);
37607 void gtk_vbutton_box_set_layout_default (GtkButtonBoxStyle layout);
37608 # 181 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37609
37610
37611 # 1 "/usr/include/gtk-2.0/gtk/gtkversion.h" 1
37612 # 183 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37613
37614
37615 # 1 "/usr/include/gtk-2.0/gtk/gtkvpaned.h" 1
37616 # 33 "/usr/include/gtk-2.0/gtk/gtkvpaned.h"
37617 # 44 "/usr/include/gtk-2.0/gtk/gtkvpaned.h"
37618 typedef struct _GtkVPaned GtkVPaned;
37619 typedef struct _GtkVPanedClass GtkVPanedClass;
37620
37621 struct _GtkVPaned
37622 {
37623 GtkPaned paned;
37624 };
37625
37626 struct _GtkVPanedClass
37627 {
37628 GtkPanedClass parent_class;
37629 };
37630
37631 GType gtk_vpaned_get_type (void) __attribute__((__const__));
37632 GtkWidget *gtk_vpaned_new (void);
37633 # 185 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37634
37635 # 1 "/usr/include/gtk-2.0/gtk/gtkvruler.h" 1
37636 # 45 "/usr/include/gtk-2.0/gtk/gtkvruler.h"
37637 # 56 "/usr/include/gtk-2.0/gtk/gtkvruler.h"
37638 typedef struct _GtkVRuler GtkVRuler;
37639 typedef struct _GtkVRulerClass GtkVRulerClass;
37640
37641 struct _GtkVRuler
37642 {
37643 GtkRuler ruler;
37644 };
37645
37646 struct _GtkVRulerClass
37647 {
37648 GtkRulerClass parent_class;
37649 };
37650
37651
37652 GType gtk_vruler_get_type (void) __attribute__((__const__));
37653 GtkWidget* gtk_vruler_new (void);
37654 # 186 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37655
37656 # 1 "/usr/include/gtk-2.0/gtk/gtkvscale.h" 1
37657 # 35 "/usr/include/gtk-2.0/gtk/gtkvscale.h"
37658 # 46 "/usr/include/gtk-2.0/gtk/gtkvscale.h"
37659 typedef struct _GtkVScale GtkVScale;
37660 typedef struct _GtkVScaleClass GtkVScaleClass;
37661
37662 struct _GtkVScale
37663 {
37664 GtkScale scale;
37665 };
37666
37667 struct _GtkVScaleClass
37668 {
37669 GtkScaleClass parent_class;
37670 };
37671
37672
37673 GType gtk_vscale_get_type (void) __attribute__((__const__));
37674 GtkWidget* gtk_vscale_new (GtkAdjustment *adjustment);
37675 GtkWidget* gtk_vscale_new_with_range (gdouble min,
37676 gdouble max,
37677 gdouble step);
37678 # 187 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37679
37680
37681 # 1 "/usr/include/gtk-2.0/gtk/gtkvseparator.h" 1
37682 # 35 "/usr/include/gtk-2.0/gtk/gtkvseparator.h"
37683 # 46 "/usr/include/gtk-2.0/gtk/gtkvseparator.h"
37684 typedef struct _GtkVSeparator GtkVSeparator;
37685 typedef struct _GtkVSeparatorClass GtkVSeparatorClass;
37686
37687 struct _GtkVSeparator
37688 {
37689 GtkSeparator separator;
37690 };
37691
37692 struct _GtkVSeparatorClass
37693 {
37694 GtkSeparatorClass parent_class;
37695 };
37696
37697
37698 GType gtk_vseparator_get_type (void) __attribute__((__const__));
37699 GtkWidget* gtk_vseparator_new (void);
37700 # 189 "/usr/include/gtk-2.0/gtk/gtk.h" 2
37701 # 24 "../../libgimp/gimpui.h" 2
37702
37703
37704 # 1 "../../libgimpwidgets/gimpwidgets.h" 1
37705 # 27 "../../libgimpwidgets/gimpwidgets.h"
37706
37707 # 1 "../../libgimpwidgets/gimpwidgetstypes.h" 1
37708 # 27 "../../libgimpwidgets/gimpwidgetstypes.h"
37709
37710
37711
37712
37713
37714 typedef enum
37715 {
37716 GIMP_COLOR_AREA_FLAT = 0,
37717 GIMP_COLOR_AREA_SMALL_CHECKS,
37718 GIMP_COLOR_AREA_LARGE_CHECKS
37719 } GimpColorAreaType;
37720
37721 typedef enum
37722 {
37723 GIMP_COLOR_SELECTOR_HUE,
37724 GIMP_COLOR_SELECTOR_SATURATION,
37725 GIMP_COLOR_SELECTOR_VALUE,
37726 GIMP_COLOR_SELECTOR_RED,
37727 GIMP_COLOR_SELECTOR_GREEN,
37728 GIMP_COLOR_SELECTOR_BLUE,
37729 GIMP_COLOR_SELECTOR_ALPHA
37730 } GimpColorSelectorChannel;
37731
37732 typedef enum
37733 {
37734 GIMP_SIZE_ENTRY_UPDATE_NONE = 0,
37735 GIMP_SIZE_ENTRY_UPDATE_SIZE = 1,
37736 GIMP_SIZE_ENTRY_UPDATE_RESOLUTION = 2
37737 } GimpSizeEntryUpdatePolicy;
37738
37739
37740 typedef struct _GimpButton GimpButton;
37741 typedef struct _GimpCellRendererColor GimpCellRendererColor;
37742 typedef struct _GimpCellRendererToggle GimpCellRendererToggle;
37743 typedef struct _GimpChainButton GimpChainButton;
37744 typedef struct _GimpColorArea GimpColorArea;
37745 typedef struct _GimpColorButton GimpColorButton;
37746 typedef struct _GimpColorDisplay GimpColorDisplay;
37747 typedef struct _GimpColorDisplayStack GimpColorDisplayStack;
37748 typedef struct _GimpColorHexEntry GimpColorHexEntry;
37749 typedef struct _GimpColorNotebook GimpColorNotebook;
37750 typedef struct _GimpColorScale GimpColorScale;
37751 typedef struct _GimpColorScales GimpColorScales;
37752 typedef struct _GimpColorSelector GimpColorSelector;
37753 typedef struct _GimpColorSelect GimpColorSelect;
37754 typedef struct _GimpColorSelection GimpColorSelection;
37755 typedef struct _GimpController GimpController;
37756 typedef struct _GimpDialog GimpDialog;
37757 typedef struct _GimpFileEntry GimpFileEntry;
37758 typedef struct _GimpFrame GimpFrame;
37759 typedef struct _GimpIntComboBox GimpIntComboBox;
37760 typedef struct _GimpIntStore GimpIntStore;
37761 typedef struct _GimpMemsizeEntry GimpMemsizeEntry;
37762 typedef struct _GimpOffsetArea GimpOffsetArea;
37763 typedef struct _GimpPathEditor GimpPathEditor;
37764 typedef struct _GimpPickButton GimpPickButton;
37765 typedef struct _GimpPreview GimpPreview;
37766 typedef struct _GimpPreviewArea GimpPreviewArea;
37767 typedef struct _GimpPixmap GimpPixmap;
37768 typedef struct _GimpScrolledPreview GimpScrolledPreview;
37769 typedef struct _GimpSizeEntry GimpSizeEntry;
37770 typedef struct _GimpUnitMenu GimpUnitMenu;
37771
37772
37773 typedef void (* GimpHelpFunc) (const gchar *help_id,
37774 gpointer help_data);
37775 # 28 "../../libgimpwidgets/gimpwidgets.h" 2
37776
37777
37778 # 1 "../../libgimpwidgets/gimpbutton.h" 1
37779 # 28 "../../libgimpwidgets/gimpbutton.h"
37780 # 41 "../../libgimpwidgets/gimpbutton.h"
37781 typedef struct _GimpButtonClass GimpButtonClass;
37782
37783 struct _GimpButton
37784 {
37785 GtkButton parent_instance;
37786
37787
37788 GdkModifierType press_state;
37789 };
37790
37791 struct _GimpButtonClass
37792 {
37793 GtkButtonClass parent_class;
37794
37795 void (* extended_clicked) (GimpButton *preview,
37796 GdkModifierType modifier_state);
37797
37798
37799 void (* _gimp_reserved1) (void);
37800 void (* _gimp_reserved2) (void);
37801 void (* _gimp_reserved3) (void);
37802 void (* _gimp_reserved4) (void);
37803 };
37804
37805
37806 GType gimp_button_get_type (void) __attribute__((__const__));
37807
37808 GtkWidget * gimp_button_new (void);
37809
37810 void gimp_button_extended_clicked (GimpButton *button,
37811 GdkModifierType state);
37812 # 30 "../../libgimpwidgets/gimpwidgets.h" 2
37813
37814 # 1 "../../libgimpwidgets/gimpcellrenderercolor.h" 1
37815 # 26 "../../libgimpwidgets/gimpcellrenderercolor.h"
37816 # 37 "../../libgimpwidgets/gimpcellrenderercolor.h"
37817 typedef struct _GimpCellRendererColorClass GimpCellRendererColorClass;
37818
37819 struct _GimpCellRendererColor
37820 {
37821 GtkCellRenderer parent_instance;
37822
37823 GimpRGB color;
37824 gboolean opaque;
37825 GtkIconSize size;
37826 gint border;
37827 };
37828
37829 struct _GimpCellRendererColorClass
37830 {
37831 GtkCellRendererClass parent_class;
37832
37833
37834 void (* _gimp_reserved1) (void);
37835 void (* _gimp_reserved2) (void);
37836 void (* _gimp_reserved3) (void);
37837 void (* _gimp_reserved4) (void);
37838 };
37839
37840
37841 GType gimp_cell_renderer_color_get_type (void) __attribute__((__const__));
37842
37843 GtkCellRenderer * gimp_cell_renderer_color_new (void);
37844 # 31 "../../libgimpwidgets/gimpwidgets.h" 2
37845
37846 # 1 "../../libgimpwidgets/gimpcellrenderertoggle.h" 1
37847 # 26 "../../libgimpwidgets/gimpcellrenderertoggle.h"
37848 # 37 "../../libgimpwidgets/gimpcellrenderertoggle.h"
37849 typedef struct _GimpCellRendererToggleClass GimpCellRendererToggleClass;
37850
37851 struct _GimpCellRendererToggle
37852 {
37853 GtkCellRendererToggle parent_instance;
37854
37855 gchar *stock_id;
37856 GtkIconSize stock_size;
37857 GdkPixbuf *pixbuf;
37858 };
37859
37860 struct _GimpCellRendererToggleClass
37861 {
37862 GtkCellRendererToggleClass parent_class;
37863
37864 void (* clicked) (GimpCellRendererToggle *cell,
37865 const gchar *path,
37866 GdkModifierType state);
37867
37868
37869 void (* _gimp_reserved1) (void);
37870 void (* _gimp_reserved2) (void);
37871 void (* _gimp_reserved3) (void);
37872 void (* _gimp_reserved4) (void);
37873 };
37874
37875
37876 GType gimp_cell_renderer_toggle_get_type (void) __attribute__((__const__));
37877
37878 GtkCellRenderer * gimp_cell_renderer_toggle_new (const gchar *stock_id);
37879
37880 void gimp_cell_renderer_toggle_clicked (GimpCellRendererToggle *cell,
37881 const gchar *path,
37882 GdkModifierType state);
37883 # 32 "../../libgimpwidgets/gimpwidgets.h" 2
37884
37885 # 1 "../../libgimpwidgets/gimpchainbutton.h" 1
37886 # 36 "../../libgimpwidgets/gimpchainbutton.h"
37887
37888
37889
37890 typedef enum
37891 {
37892 GIMP_CHAIN_TOP,
37893 GIMP_CHAIN_LEFT,
37894 GIMP_CHAIN_BOTTOM,
37895 GIMP_CHAIN_RIGHT
37896 } GimpChainPosition;
37897 # 56 "../../libgimpwidgets/gimpchainbutton.h"
37898 typedef struct _GimpChainButtonClass GimpChainButtonClass;
37899
37900 struct _GimpChainButton
37901 {
37902 GtkTable parent_instance;
37903
37904 GimpChainPosition position;
37905 gboolean active;
37906
37907 GtkWidget *button;
37908 GtkWidget *line1;
37909 GtkWidget *line2;
37910 GtkWidget *image;
37911 };
37912
37913 struct _GimpChainButtonClass
37914 {
37915 GtkTableClass parent_class;
37916
37917 void (* toggled) (GimpChainButton *button);
37918
37919
37920 void (* _gimp_reserved1) (void);
37921 void (* _gimp_reserved2) (void);
37922 void (* _gimp_reserved3) (void);
37923 void (* _gimp_reserved4) (void);
37924 };
37925
37926
37927 GType gimp_chain_button_get_type (void) __attribute__((__const__));
37928
37929 GtkWidget * gimp_chain_button_new (GimpChainPosition position);
37930
37931 void gimp_chain_button_set_active (GimpChainButton *button,
37932 gboolean active);
37933 gboolean gimp_chain_button_get_active (GimpChainButton *button);
37934 # 33 "../../libgimpwidgets/gimpwidgets.h" 2
37935
37936 # 1 "../../libgimpwidgets/gimpcolorarea.h" 1
37937 # 33 "../../libgimpwidgets/gimpcolorarea.h"
37938 # 44 "../../libgimpwidgets/gimpcolorarea.h"
37939 typedef struct _GimpColorAreaClass GimpColorAreaClass;
37940
37941 struct _GimpColorArea
37942 {
37943 GtkDrawingArea parent_instance;
37944
37945
37946 guchar *buf;
37947 guint width;
37948 guint height;
37949 guint rowstride;
37950
37951 GimpColorAreaType type;
37952 GimpRGB color;
37953 guint draw_border : 1;
37954 guint needs_render : 1;
37955 };
37956
37957 struct _GimpColorAreaClass
37958 {
37959 GtkDrawingAreaClass parent_class;
37960
37961 void (* color_changed) (GimpColorArea *area);
37962
37963
37964 void (* _gimp_reserved1) (void);
37965 void (* _gimp_reserved2) (void);
37966 void (* _gimp_reserved3) (void);
37967 void (* _gimp_reserved4) (void);
37968 };
37969
37970
37971 GType gimp_color_area_get_type (void) __attribute__((__const__));
37972
37973 GtkWidget * gimp_color_area_new (const GimpRGB *color,
37974 GimpColorAreaType type,
37975 GdkModifierType drag_mask);
37976
37977 void gimp_color_area_set_color (GimpColorArea *area,
37978 const GimpRGB *color);
37979 void gimp_color_area_get_color (GimpColorArea *area,
37980 GimpRGB *color);
37981 gboolean gimp_color_area_has_alpha (GimpColorArea *area);
37982 void gimp_color_area_set_type (GimpColorArea *area,
37983 GimpColorAreaType type);
37984 void gimp_color_area_set_draw_border (GimpColorArea *area,
37985 gboolean draw_border);
37986
37987
37988 void _gimp_color_area_render_buf (GimpColorAreaType type,
37989 guchar *buf,
37990 guint width,
37991 guint height,
37992 guint rowstride,
37993 GimpRGB *color);
37994 # 34 "../../libgimpwidgets/gimpwidgets.h" 2
37995
37996 # 1 "../../libgimpwidgets/gimpcolorbutton.h" 1
37997 # 34 "../../libgimpwidgets/gimpcolorbutton.h"
37998 # 45 "../../libgimpwidgets/gimpcolorbutton.h"
37999 typedef struct _GimpColorButtonClass GimpColorButtonClass;
38000
38001 struct _GimpColorButton
38002 {
38003 GimpButton parent_instance;
38004
38005 gchar *title;
38006 gboolean continuous_update;
38007
38008 GtkWidget *color_area;
38009 GtkWidget *dialog;
38010
38011
38012 gpointer popup_menu;
38013 };
38014
38015 struct _GimpColorButtonClass
38016 {
38017 GimpButtonClass parent_class;
38018
38019
38020 void (* color_changed) (GimpColorButton *button);
38021
38022
38023 GType (* get_action_type) (GimpColorButton *button);
38024
38025
38026 void (* _gimp_reserved2) (void);
38027 void (* _gimp_reserved3) (void);
38028 void (* _gimp_reserved4) (void);
38029 };
38030
38031
38032 GType gimp_color_button_get_type (void) __attribute__((__const__));
38033
38034 GtkWidget * gimp_color_button_new (const gchar *title,
38035 gint width,
38036 gint height,
38037 const GimpRGB *color,
38038 GimpColorAreaType type);
38039
38040 void gimp_color_button_set_color (GimpColorButton *button,
38041 const GimpRGB *color);
38042 void gimp_color_button_get_color (GimpColorButton *button,
38043 GimpRGB *color);
38044
38045 gboolean gimp_color_button_has_alpha (GimpColorButton *button);
38046 void gimp_color_button_set_type (GimpColorButton *button,
38047 GimpColorAreaType type);
38048
38049 gboolean gimp_color_button_get_update (GimpColorButton *button);
38050 void gimp_color_button_set_update (GimpColorButton *button,
38051 gboolean continuous);
38052 # 35 "../../libgimpwidgets/gimpwidgets.h" 2
38053
38054 # 1 "../../libgimpwidgets/gimpcolordisplay.h" 1
38055 # 26 "../../libgimpwidgets/gimpcolordisplay.h"
38056 # 39 "../../libgimpwidgets/gimpcolordisplay.h"
38057 typedef struct _GimpColorDisplayClass GimpColorDisplayClass;
38058
38059 struct _GimpColorDisplay
38060 {
38061 GObject parent_instance;
38062
38063 gboolean enabled;
38064 };
38065
38066 struct _GimpColorDisplayClass
38067 {
38068 GObjectClass parent_class;
38069
38070 const gchar *name;
38071 const gchar *help_id;
38072
38073
38074 GimpColorDisplay * (* clone) (GimpColorDisplay *display);
38075 void (* convert) (GimpColorDisplay *display,
38076 guchar *buf,
38077 gint width,
38078 gint height,
38079 gint bpp,
38080 gint bpl);
38081 void (* load_state) (GimpColorDisplay *display,
38082 GimpParasite *state);
38083 GimpParasite * (* save_state) (GimpColorDisplay *display);
38084 GtkWidget * (* configure) (GimpColorDisplay *display);
38085 void (* configure_reset) (GimpColorDisplay *display);
38086
38087
38088 void (* changed) (GimpColorDisplay *display);
38089
38090
38091 void (* _gimp_reserved1) (void);
38092 void (* _gimp_reserved2) (void);
38093 void (* _gimp_reserved3) (void);
38094 void (* _gimp_reserved4) (void);
38095 };
38096
38097
38098 GType gimp_color_display_get_type (void) __attribute__((__const__));
38099 GimpColorDisplay * gimp_color_display_new (GType display_type);
38100 GimpColorDisplay * gimp_color_display_clone (GimpColorDisplay *display);
38101
38102 void gimp_color_display_convert (GimpColorDisplay *display,
38103 guchar *buf,
38104 gint width,
38105 gint height,
38106 gint bpp,
38107 gint bpl);
38108 void gimp_color_display_load_state (GimpColorDisplay *display,
38109 GimpParasite *state);
38110 GimpParasite * gimp_color_display_save_state (GimpColorDisplay *display);
38111 GtkWidget * gimp_color_display_configure (GimpColorDisplay *display);
38112 void gimp_color_display_configure_reset (GimpColorDisplay *display);
38113
38114 void gimp_color_display_changed (GimpColorDisplay *display);
38115
38116 void gimp_color_display_set_enabled (GimpColorDisplay *display,
38117 gboolean enabled);
38118 gboolean gimp_color_display_get_enabled (GimpColorDisplay *display);
38119 # 36 "../../libgimpwidgets/gimpwidgets.h" 2
38120
38121 # 1 "../../libgimpwidgets/gimpcolordisplaystack.h" 1
38122 # 26 "../../libgimpwidgets/gimpcolordisplaystack.h"
38123 # 39 "../../libgimpwidgets/gimpcolordisplaystack.h"
38124 typedef struct _GimpColorDisplayStackClass GimpColorDisplayStackClass;
38125
38126 struct _GimpColorDisplayStack
38127 {
38128 GObject parent_instance;
38129
38130 GList *filters;
38131 };
38132
38133 struct _GimpColorDisplayStackClass
38134 {
38135 GObjectClass parent_class;
38136
38137 void (* changed) (GimpColorDisplayStack *stack);
38138
38139 void (* added) (GimpColorDisplayStack *stack,
38140 GimpColorDisplay *display,
38141 gint position);
38142 void (* removed) (GimpColorDisplayStack *stack,
38143 GimpColorDisplay *display);
38144 void (* reordered) (GimpColorDisplayStack *stack,
38145 GimpColorDisplay *display,
38146 gint position);
38147
38148
38149 void (* _gimp_reserved1) (void);
38150 void (* _gimp_reserved2) (void);
38151 void (* _gimp_reserved3) (void);
38152 void (* _gimp_reserved4) (void);
38153 };
38154
38155
38156 GType gimp_color_display_stack_get_type (void) __attribute__((__const__));
38157 GimpColorDisplayStack * gimp_color_display_stack_new (void);
38158 GimpColorDisplayStack * gimp_color_display_stack_clone (GimpColorDisplayStack *stack);
38159
38160 void gimp_color_display_stack_changed (GimpColorDisplayStack *stack);
38161
38162 void gimp_color_display_stack_add (GimpColorDisplayStack *stack,
38163 GimpColorDisplay *display);
38164 void gimp_color_display_stack_remove (GimpColorDisplayStack *stack,
38165 GimpColorDisplay *display);
38166 void gimp_color_display_stack_reorder_up (GimpColorDisplayStack *stack,
38167 GimpColorDisplay *display);
38168 void gimp_color_display_stack_reorder_down (GimpColorDisplayStack *stack,
38169 GimpColorDisplay *display);
38170
38171 void gimp_color_display_stack_convert (GimpColorDisplayStack *stack,
38172 guchar *buf,
38173 gint width,
38174 gint height,
38175 gint bpp,
38176 gint bpl);
38177 # 37 "../../libgimpwidgets/gimpwidgets.h" 2
38178
38179 # 1 "../../libgimpwidgets/gimpcolorhexentry.h" 1
38180 # 26 "../../libgimpwidgets/gimpcolorhexentry.h"
38181 # 37 "../../libgimpwidgets/gimpcolorhexentry.h"
38182 typedef struct _GimpColorHexEntryClass GimpColorHexEntryClass;
38183
38184 struct _GimpColorHexEntry
38185 {
38186 GtkEntry parent_instance;
38187
38188 GimpRGB color;
38189 };
38190
38191 struct _GimpColorHexEntryClass
38192 {
38193 GtkEntryClass parent_class;
38194
38195 void (* color_changed) (GimpColorHexEntry *entry);
38196
38197
38198 void (* _gimp_reserved1) (void);
38199 void (* _gimp_reserved2) (void);
38200 void (* _gimp_reserved3) (void);
38201 void (* _gimp_reserved4) (void);
38202 };
38203
38204
38205 GType gimp_color_hex_entry_get_type (void) __attribute__((__const__));
38206
38207 GtkWidget * gimp_color_hex_entry_new (void);
38208
38209 void gimp_color_hex_entry_set_color (GimpColorHexEntry *entry,
38210 const GimpRGB *color);
38211 void gimp_color_hex_entry_get_color (GimpColorHexEntry *entry,
38212 GimpRGB *color);
38213 # 38 "../../libgimpwidgets/gimpwidgets.h" 2
38214
38215 # 1 "../../libgimpwidgets/gimpcolornotebook.h" 1
38216 # 29 "../../libgimpwidgets/gimpcolornotebook.h"
38217
38218 # 1 "../../libgimpwidgets/gimpcolorselector.h" 1
38219 # 30 "../../libgimpwidgets/gimpcolorselector.h"
38220 # 47 "../../libgimpwidgets/gimpcolorselector.h"
38221 typedef struct _GimpColorSelectorClass GimpColorSelectorClass;
38222
38223 struct _GimpColorSelector
38224 {
38225 GtkVBox parent_instance;
38226
38227 gboolean toggles_visible;
38228 gboolean toggles_sensitive;
38229 gboolean show_alpha;
38230
38231 GimpRGB rgb;
38232 GimpHSV hsv;
38233
38234 GimpColorSelectorChannel channel;
38235 };
38236
38237 struct _GimpColorSelectorClass
38238 {
38239 GtkVBoxClass parent_class;
38240
38241 const gchar *name;
38242 const gchar *help_id;
38243 const gchar *stock_id;
38244
38245
38246 void (* set_toggles_visible) (GimpColorSelector *selector,
38247 gboolean visible);
38248 void (* set_toggles_sensitive) (GimpColorSelector *selector,
38249 gboolean sensitive);
38250 void (* set_show_alpha) (GimpColorSelector *selector,
38251 gboolean show_alpha);
38252 void (* set_color) (GimpColorSelector *selector,
38253 const GimpRGB *rgb,
38254 const GimpHSV *hsv);
38255 void (* set_channel) (GimpColorSelector *selector,
38256 GimpColorSelectorChannel channel);
38257
38258
38259 void (* color_changed) (GimpColorSelector *selector,
38260 const GimpRGB *rgb,
38261 const GimpHSV *hsv);
38262 void (* channel_changed) (GimpColorSelector *selector,
38263 GimpColorSelectorChannel channel);
38264
38265
38266 void (* _gimp_reserved1) (void);
38267 void (* _gimp_reserved2) (void);
38268 void (* _gimp_reserved3) (void);
38269 void (* _gimp_reserved4) (void);
38270 };
38271
38272
38273 GType gimp_color_selector_get_type (void) __attribute__((__const__));
38274 GtkWidget * gimp_color_selector_new (GType selector_type,
38275 const GimpRGB *rgb,
38276 const GimpHSV *hsv,
38277 GimpColorSelectorChannel channel);
38278
38279 void gimp_color_selector_set_toggles_visible (GimpColorSelector *selector,
38280 gboolean visible);
38281 void gimp_color_selector_set_toggles_sensitive (GimpColorSelector *selector,
38282 gboolean sensitive);
38283 void gimp_color_selector_set_show_alpha (GimpColorSelector *selector,
38284 gboolean show_alpha);
38285 void gimp_color_selector_set_color (GimpColorSelector *selector,
38286 const GimpRGB *rgb,
38287 const GimpHSV *hsv);
38288 void gimp_color_selector_set_channel (GimpColorSelector *selector,
38289 GimpColorSelectorChannel channel);
38290
38291 void gimp_color_selector_color_changed (GimpColorSelector *selector);
38292 void gimp_color_selector_channel_changed (GimpColorSelector *selector);
38293 # 30 "../../libgimpwidgets/gimpcolornotebook.h" 2
38294 # 42 "../../libgimpwidgets/gimpcolornotebook.h"
38295 typedef struct _GimpColorNotebookClass GimpColorNotebookClass;
38296
38297 struct _GimpColorNotebook
38298 {
38299 GimpColorSelector parent_instance;
38300
38301 GtkWidget *notebook;
38302
38303 GList *selectors;
38304 GimpColorSelector *cur_page;
38305 };
38306
38307 struct _GimpColorNotebookClass
38308 {
38309 GimpColorSelectorClass parent_class;
38310
38311
38312 void (* _gimp_reserved1) (void);
38313 void (* _gimp_reserved2) (void);
38314 void (* _gimp_reserved3) (void);
38315 void (* _gimp_reserved4) (void);
38316 };
38317
38318
38319 GType gimp_color_notebook_get_type (void) __attribute__((__const__));
38320
38321 GtkWidget * gimp_color_notebook_set_has_page (GimpColorNotebook *notebook,
38322 GType page_type,
38323 gboolean has_page);
38324 # 39 "../../libgimpwidgets/gimpwidgets.h" 2
38325
38326 # 1 "../../libgimpwidgets/gimpcolorscale.h" 1
38327 # 34 "../../libgimpwidgets/gimpcolorscale.h"
38328 # 45 "../../libgimpwidgets/gimpcolorscale.h"
38329 typedef struct _GimpColorScaleClass GimpColorScaleClass;
38330
38331 struct _GimpColorScale
38332 {
38333 GtkScale parent_instance;
38334
38335
38336 GimpColorSelectorChannel channel;
38337 GimpRGB rgb;
38338 GimpHSV hsv;
38339
38340 guchar *buf;
38341 guint width;
38342 guint height;
38343 guint rowstride;
38344
38345 gboolean needs_render;
38346 };
38347
38348 struct _GimpColorScaleClass
38349 {
38350 GtkScaleClass parent_class;
38351
38352
38353 void (* _gimp_reserved1) (void);
38354 void (* _gimp_reserved2) (void);
38355 void (* _gimp_reserved3) (void);
38356 void (* _gimp_reserved4) (void);
38357 };
38358
38359
38360 GType gimp_color_scale_get_type (void) __attribute__((__const__));
38361 GtkWidget * gimp_color_scale_new (GtkOrientation orientation,
38362 GimpColorSelectorChannel channel);
38363
38364 void gimp_color_scale_set_channel (GimpColorScale *scale,
38365 GimpColorSelectorChannel channel);
38366 void gimp_color_scale_set_color (GimpColorScale *scale,
38367 const GimpRGB *rgb,
38368 const GimpHSV *hsv);
38369 # 40 "../../libgimpwidgets/gimpwidgets.h" 2
38370
38371 # 1 "../../libgimpwidgets/gimpcolorscales.h" 1
38372 # 29 "../../libgimpwidgets/gimpcolorscales.h"
38373 # 37 "../../libgimpwidgets/gimpcolorscales.h"
38374 GType gimp_color_scales_get_type (void) __attribute__((__const__));
38375 # 41 "../../libgimpwidgets/gimpwidgets.h" 2
38376
38377
38378 # 1 "../../libgimpwidgets/gimpcolorselect.h" 1
38379 # 29 "../../libgimpwidgets/gimpcolorselect.h"
38380 # 37 "../../libgimpwidgets/gimpcolorselect.h"
38381 GType gimp_color_select_get_type (void) __attribute__((__const__));
38382 # 43 "../../libgimpwidgets/gimpwidgets.h" 2
38383
38384 # 1 "../../libgimpwidgets/gimpcolorselection.h" 1
38385 # 26 "../../libgimpwidgets/gimpcolorselection.h"
38386 # 39 "../../libgimpwidgets/gimpcolorselection.h"
38387 typedef struct _GimpColorSelectionClass GimpColorSelectionClass;
38388
38389 struct _GimpColorSelection
38390 {
38391 GtkVBox parent_instance;
38392
38393 gboolean show_alpha;
38394
38395 GimpHSV hsv;
38396 GimpRGB rgb;
38397 GimpColorSelectorChannel channel;
38398
38399 GtkWidget *left_vbox;
38400 GtkWidget *right_vbox;
38401
38402 GtkWidget *notebook;
38403 GtkWidget *scales;
38404
38405 GtkWidget *new_color;
38406 GtkWidget *old_color;
38407 };
38408
38409 struct _GimpColorSelectionClass
38410 {
38411 GtkVBoxClass parent_class;
38412
38413 void (* color_changed) (GimpColorSelection *selection);
38414
38415
38416 void (* _gimp_reserved1) (void);
38417 void (* _gimp_reserved2) (void);
38418 void (* _gimp_reserved3) (void);
38419 void (* _gimp_reserved4) (void);
38420 };
38421
38422
38423 GType gimp_color_selection_get_type (void) __attribute__((__const__));
38424
38425 GtkWidget * gimp_color_selection_new (void);
38426
38427 void gimp_color_selection_set_show_alpha (GimpColorSelection *selection,
38428 gboolean show_alpha);
38429 gboolean gimp_color_selection_get_show_alpha (GimpColorSelection *selection);
38430
38431 void gimp_color_selection_set_color (GimpColorSelection *selection,
38432 const GimpRGB *color);
38433 void gimp_color_selection_get_color (GimpColorSelection *selection,
38434 GimpRGB *color);
38435
38436 void gimp_color_selection_set_old_color (GimpColorSelection *selection,
38437 const GimpRGB *color);
38438 void gimp_color_selection_get_old_color (GimpColorSelection *selection,
38439 GimpRGB *color);
38440
38441 void gimp_color_selection_reset (GimpColorSelection *selection);
38442
38443 void gimp_color_selection_color_changed (GimpColorSelection *selection);
38444 # 44 "../../libgimpwidgets/gimpwidgets.h" 2
38445
38446 # 1 "../../libgimpwidgets/gimpdialog.h" 1
38447 # 28 "../../libgimpwidgets/gimpdialog.h"
38448 # 41 "../../libgimpwidgets/gimpdialog.h"
38449 typedef struct _GimpDialogClass GimpDialogClass;
38450
38451 struct _GimpDialog
38452 {
38453 GtkDialog parent_instance;
38454 };
38455
38456 struct _GimpDialogClass
38457 {
38458 GtkDialogClass parent_class;
38459
38460
38461 void (* _gimp_reserved1) (void);
38462 void (* _gimp_reserved2) (void);
38463 void (* _gimp_reserved3) (void);
38464 void (* _gimp_reserved4) (void);
38465 };
38466
38467
38468 GType gimp_dialog_get_type (void) __attribute__((__const__));
38469
38470 GtkWidget * gimp_dialog_new (const gchar *title,
38471 const gchar *role,
38472 GtkWidget *parent,
38473 GtkDialogFlags flags,
38474 GimpHelpFunc help_func,
38475 const gchar *help_id,
38476 ...);
38477
38478 GtkWidget * gimp_dialog_new_valist (const gchar *title,
38479 const gchar *role,
38480 GtkWidget *parent,
38481 GtkDialogFlags flags,
38482 GimpHelpFunc help_func,
38483 const gchar *help_id,
38484 va_list args);
38485
38486 void gimp_dialog_add_buttons_valist (GimpDialog *dialog,
38487 va_list args);
38488
38489 gint gimp_dialog_run (GimpDialog *dialog);
38490
38491
38492 void gimp_dialogs_show_help_button (gboolean show);
38493 # 45 "../../libgimpwidgets/gimpwidgets.h" 2
38494
38495 # 1 "../../libgimpwidgets/gimpfileentry.h" 1
38496 # 26 "../../libgimpwidgets/gimpfileentry.h"
38497 # 39 "../../libgimpwidgets/gimpfileentry.h"
38498 typedef struct _GimpFileEntryClass GimpFileEntryClass;
38499
38500 struct _GimpFileEntry
38501 {
38502 GtkHBox parent_instance;
38503
38504 GtkWidget *file_exists;
38505 GtkWidget *entry;
38506 GtkWidget *browse_button;
38507
38508 GtkWidget *file_dialog;
38509
38510 gchar *title;
38511 gboolean dir_only;
38512 gboolean check_valid;
38513 };
38514
38515 struct _GimpFileEntryClass
38516 {
38517 GtkHBoxClass parent_class;
38518
38519 void (* filename_changed) (GimpFileEntry *entry);
38520
38521
38522 void (* _gimp_reserved1) (void);
38523 void (* _gimp_reserved2) (void);
38524 void (* _gimp_reserved3) (void);
38525 void (* _gimp_reserved4) (void);
38526 };
38527
38528
38529 GType gimp_file_entry_get_type (void) __attribute__((__const__));
38530
38531 GtkWidget * gimp_file_entry_new (const gchar *title,
38532 const gchar *filename,
38533 gboolean dir_only,
38534 gboolean check_valid);
38535
38536 gchar * gimp_file_entry_get_filename (GimpFileEntry *entry);
38537 void gimp_file_entry_set_filename (GimpFileEntry *entry,
38538 const gchar *filename);
38539 # 46 "../../libgimpwidgets/gimpwidgets.h" 2
38540
38541 # 1 "../../libgimpwidgets/gimpframe.h" 1
38542 # 28 "../../libgimpwidgets/gimpframe.h"
38543 # 41 "../../libgimpwidgets/gimpframe.h"
38544 typedef struct _GimpFrameClass GimpFrameClass;
38545
38546 struct _GimpFrame
38547 {
38548 GtkFrame parent_instance;
38549 };
38550
38551 struct _GimpFrameClass
38552 {
38553 GtkFrameClass parent_class;
38554
38555
38556 void (* _gimp_reserved1) (void);
38557 void (* _gimp_reserved2) (void);
38558 void (* _gimp_reserved3) (void);
38559 void (* _gimp_reserved4) (void);
38560 };
38561
38562
38563 GType gimp_frame_get_type (void) __attribute__((__const__));
38564 GtkWidget * gimp_frame_new (const gchar *label);
38565 # 47 "../../libgimpwidgets/gimpwidgets.h" 2
38566
38567 # 1 "../../libgimpwidgets/gimphelpui.h" 1
38568 # 26 "../../libgimpwidgets/gimphelpui.h"
38569
38570
38571
38572
38573
38574 void _gimp_help_init (void);
38575
38576 void gimp_help_enable_tooltips (void);
38577 void gimp_help_disable_tooltips (void);
38578
38579
38580
38581 void gimp_standard_help_func (const gchar *help_id,
38582 gpointer help_data);
38583
38584
38585 void gimp_help_connect (GtkWidget *widget,
38586 GimpHelpFunc help_func,
38587 const gchar *help_id,
38588 gpointer help_data);
38589
38590
38591 void gimp_help_set_help_data (GtkWidget *widget,
38592 const gchar *tooltip,
38593 const gchar *help_id);
38594
38595
38596 void gimp_context_help (GtkWidget *widget);
38597
38598
38599
38600
38601 GQuark gimp_help_id_quark (void) __attribute__((__const__));
38602 # 48 "../../libgimpwidgets/gimpwidgets.h" 2
38603
38604 # 1 "../../libgimpwidgets/gimpintcombobox.h" 1
38605 # 28 "../../libgimpwidgets/gimpintcombobox.h"
38606 # 39 "../../libgimpwidgets/gimpintcombobox.h"
38607 typedef struct _GimpIntComboBoxClass GimpIntComboBoxClass;
38608
38609 struct _GimpIntComboBoxClass
38610 {
38611 GtkComboBoxClass parent_instance;
38612 };
38613
38614 struct _GimpIntComboBox
38615 {
38616 GtkComboBox parent_instance;
38617
38618
38619 void (* _gimp_reserved1) (void);
38620 void (* _gimp_reserved2) (void);
38621 void (* _gimp_reserved3) (void);
38622 void (* _gimp_reserved4) (void);
38623 };
38624
38625
38626 GType gimp_int_combo_box_get_type (void) __attribute__((__const__));
38627
38628 GtkWidget * gimp_int_combo_box_new (const gchar *first_label,
38629 gint first_value,
38630 ...);
38631 GtkWidget * gimp_int_combo_box_new_valist (const gchar *first_label,
38632 gint first_value,
38633 va_list values);
38634
38635 GtkWidget * gimp_int_combo_box_new_array (gint n_values,
38636 const gchar *labels[]);
38637
38638 void gimp_int_combo_box_prepend (GimpIntComboBox *combo_box,
38639 ...);
38640 void gimp_int_combo_box_append (GimpIntComboBox *combo_box,
38641 ...);
38642
38643 gboolean gimp_int_combo_box_set_active (GimpIntComboBox *combo_box,
38644 gint value);
38645 gboolean gimp_int_combo_box_get_active (GimpIntComboBox *combo_box,
38646 gint *value);
38647
38648 gulong gimp_int_combo_box_connect (GimpIntComboBox *combo_box,
38649 gint value,
38650 GCallback callback,
38651 gpointer data);
38652 # 49 "../../libgimpwidgets/gimpwidgets.h" 2
38653
38654 # 1 "../../libgimpwidgets/gimpintstore.h" 1
38655 # 28 "../../libgimpwidgets/gimpintstore.h"
38656
38657
38658 typedef enum
38659 {
38660 GIMP_INT_STORE_VALUE,
38661 GIMP_INT_STORE_LABEL,
38662 GIMP_INT_STORE_STOCK_ID,
38663 GIMP_INT_STORE_PIXBUF,
38664 GIMP_INT_STORE_USER_DATA,
38665 GIMP_INT_STORE_NUM_COLUMNS
38666 } GimpIntStoreColumns;
38667 # 49 "../../libgimpwidgets/gimpintstore.h"
38668 typedef struct _GimpIntStoreClass GimpIntStoreClass;
38669
38670 struct _GimpIntStore
38671 {
38672 GtkListStore parent_instance;
38673
38674
38675 GtkTreeIter *empty_iter;
38676 };
38677
38678 struct _GimpIntStoreClass
38679 {
38680 GtkListStoreClass parent_instance;
38681
38682
38683 void (* _gimp_reserved1) (void);
38684 void (* _gimp_reserved2) (void);
38685 void (* _gimp_reserved3) (void);
38686 void (* _gimp_reserved4) (void);
38687 };
38688
38689
38690 GType gimp_int_store_get_type (void) __attribute__((__const__));
38691
38692 GtkListStore * gimp_int_store_new (void);
38693
38694 gboolean gimp_int_store_lookup_by_value (GtkTreeModel *model,
38695 gint value,
38696 GtkTreeIter *iter);
38697 # 50 "../../libgimpwidgets/gimpwidgets.h" 2
38698
38699 # 1 "../../libgimpwidgets/gimpmemsizeentry.h" 1
38700 # 28 "../../libgimpwidgets/gimpmemsizeentry.h"
38701 # 39 "../../libgimpwidgets/gimpmemsizeentry.h"
38702 typedef struct _GimpMemsizeEntryClass GimpMemsizeEntryClass;
38703
38704 struct _GimpMemsizeEntry
38705 {
38706 GtkHBox parent_instance;
38707
38708 guint64 value;
38709 guint64 lower;
38710 guint64 upper;
38711
38712 guint shift;
38713
38714 GtkAdjustment *adjustment;
38715 GtkWidget *spinbutton;
38716 GtkWidget *menu;
38717 };
38718
38719 struct _GimpMemsizeEntryClass
38720 {
38721 GtkHBoxClass parent_class;
38722
38723 void (* value_changed) (GimpMemsizeEntry *entry);
38724
38725
38726 void (* _gimp_reserved1) (void);
38727 void (* _gimp_reserved2) (void);
38728 void (* _gimp_reserved3) (void);
38729 void (* _gimp_reserved4) (void);
38730 };
38731
38732
38733 GType gimp_memsize_entry_get_type (void) __attribute__((__const__));
38734
38735 GtkWidget * gimp_memsize_entry_new (guint64 value,
38736 guint64 lower,
38737 guint64 upper);
38738 void gimp_memsize_entry_set_value (GimpMemsizeEntry *entry,
38739 guint64 value);
38740 guint64 gimp_memsize_entry_get_value (GimpMemsizeEntry *entry);
38741 # 51 "../../libgimpwidgets/gimpwidgets.h" 2
38742
38743 # 1 "../../libgimpwidgets/gimpoffsetarea.h" 1
38744 # 26 "../../libgimpwidgets/gimpoffsetarea.h"
38745 # 39 "../../libgimpwidgets/gimpoffsetarea.h"
38746 typedef struct _GimpOffsetAreaClass GimpOffsetAreaClass;
38747
38748 struct _GimpOffsetArea
38749 {
38750 GtkDrawingArea parent_instance;
38751
38752 gint orig_width;
38753 gint orig_height;
38754 gint width;
38755 gint height;
38756 gint offset_x;
38757 gint offset_y;
38758 gdouble display_ratio_x;
38759 gdouble display_ratio_y;
38760 };
38761
38762 struct _GimpOffsetAreaClass
38763 {
38764 GtkDrawingAreaClass parent_class;
38765
38766 void (* offsets_changed) (GimpOffsetArea *offset_area,
38767 gint offset_x,
38768 gint offset_y);
38769
38770
38771 void (* _gimp_reserved1) (void);
38772 void (* _gimp_reserved2) (void);
38773 void (* _gimp_reserved3) (void);
38774 void (* _gimp_reserved4) (void);
38775 };
38776
38777
38778 GType gimp_offset_area_get_type (void) __attribute__((__const__));
38779
38780 GtkWidget * gimp_offset_area_new (gint orig_width,
38781 gint orig_height);
38782 void gimp_offset_area_set_pixbuf (GimpOffsetArea *offset_area,
38783 GdkPixbuf *pixbuf);
38784
38785 void gimp_offset_area_set_size (GimpOffsetArea *offset_area,
38786 gint width,
38787 gint height);
38788 void gimp_offset_area_set_offsets (GimpOffsetArea *offset_area,
38789 gint offset_x,
38790 gint offset_y);
38791 # 52 "../../libgimpwidgets/gimpwidgets.h" 2
38792
38793 # 1 "../../libgimpwidgets/gimppatheditor.h" 1
38794 # 26 "../../libgimpwidgets/gimppatheditor.h"
38795 # 39 "../../libgimpwidgets/gimppatheditor.h"
38796 typedef struct _GimpPathEditorClass GimpPathEditorClass;
38797
38798 struct _GimpPathEditor
38799 {
38800 GtkVBox parent_instance;
38801
38802 GtkWidget *upper_hbox;
38803
38804 GtkWidget *new_button;
38805 GtkWidget *up_button;
38806 GtkWidget *down_button;
38807 GtkWidget *delete_button;
38808
38809 GtkWidget *file_entry;
38810
38811 GtkListStore *dir_list;
38812
38813 GtkTreeSelection *sel;
38814 GtkTreePath *sel_path;
38815
38816 GtkTreeViewColumn *writable_column;
38817
38818 gint num_items;
38819 };
38820
38821 struct _GimpPathEditorClass
38822 {
38823 GtkVBoxClass parent_class;
38824
38825 void (* path_changed) (GimpPathEditor *editor);
38826 void (* writable_changed) (GimpPathEditor *editor);
38827
38828
38829 void (* _gimp_reserved1) (void);
38830 void (* _gimp_reserved2) (void);
38831 void (* _gimp_reserved3) (void);
38832 void (* _gimp_reserved4) (void);
38833 };
38834
38835
38836
38837
38838 GType gimp_path_editor_get_type (void) __attribute__((__const__));
38839
38840 GtkWidget * gimp_path_editor_new (const gchar *filesel_title,
38841 const gchar *path);
38842
38843 gchar * gimp_path_editor_get_path (GimpPathEditor *editor);
38844 void gimp_path_editor_set_path (GimpPathEditor *editor,
38845 const gchar *path);
38846
38847 gchar * gimp_path_editor_get_writable_path (GimpPathEditor *editor);
38848 void gimp_path_editor_set_writable_path (GimpPathEditor *editor,
38849 const gchar *path);
38850
38851 gboolean gimp_path_editor_get_dir_writable (GimpPathEditor *editor,
38852 const gchar *directory);
38853 void gimp_path_editor_set_dir_writable (GimpPathEditor *editor,
38854 const gchar *directory,
38855 gboolean writable);
38856 # 53 "../../libgimpwidgets/gimpwidgets.h" 2
38857
38858 # 1 "../../libgimpwidgets/gimppickbutton.h" 1
38859 # 25 "../../libgimpwidgets/gimppickbutton.h"
38860 # 36 "../../libgimpwidgets/gimppickbutton.h"
38861 typedef struct _GimpPickButtonClass GimpPickButtonClass;
38862
38863 struct _GimpPickButton
38864 {
38865 GtkButton parent_instance;
38866
38867
38868 GdkCursor *cursor;
38869 GtkWidget *grab_widget;
38870 };
38871
38872 struct _GimpPickButtonClass
38873 {
38874 GtkButtonClass parent_class;
38875
38876 void (* color_picked) (GimpPickButton *button,
38877 const GimpRGB *color);
38878
38879
38880 void (* _gimp_reserved1) (void);
38881 void (* _gimp_reserved2) (void);
38882 void (* _gimp_reserved3) (void);
38883 void (* _gimp_reserved4) (void);
38884 };
38885
38886
38887 GType gimp_pick_button_get_type (void) __attribute__((__const__));
38888 GtkWidget * gimp_pick_button_new (void);
38889 # 54 "../../libgimpwidgets/gimpwidgets.h" 2
38890
38891 # 1 "../../libgimpwidgets/gimppixmap.h" 1
38892 # 55 "../../libgimpwidgets/gimpwidgets.h" 2
38893
38894 # 1 "../../libgimpwidgets/gimppreview.h" 1
38895 # 27 "../../libgimpwidgets/gimppreview.h"
38896 # 41 "../../libgimpwidgets/gimppreview.h"
38897 typedef struct _GimpPreviewClass GimpPreviewClass;
38898
38899 struct _GimpPreview
38900 {
38901 GtkVBox parent_instance;
38902
38903 gboolean update_preview;
38904
38905
38906 GtkWidget *area;
38907 GtkWidget *table;
38908 GtkWidget *frame;
38909 GtkWidget *toggle;
38910 GdkCursor *cursor_busy;
38911 GdkCursor *default_cursor;
38912
38913
38914 gint xoff, yoff;
38915 gint xmin, xmax, ymin, ymax;
38916 gint width, height;
38917
38918 guint timeout_id;
38919 };
38920
38921 struct _GimpPreviewClass
38922 {
38923 GtkVBoxClass parent_class;
38924
38925
38926 void (* draw) (GimpPreview *preview);
38927 void (* draw_thumb) (GimpPreview *preview,
38928 GimpPreviewArea *area,
38929 gint width,
38930 gint height);
38931 void (* draw_buffer) (GimpPreview *preview,
38932 const guchar *buffer,
38933 gint rowstride);
38934 void (* set_cursor) (GimpPreview *preview);
38935
38936
38937 void (* invalidated) (GimpPreview *preview);
38938
38939
38940 void (* _gimp_reserved1) (void);
38941 void (* _gimp_reserved2) (void);
38942 void (* _gimp_reserved3) (void);
38943 void (* _gimp_reserved4) (void);
38944 };
38945
38946
38947 GType gimp_preview_get_type (void) __attribute__((__const__));
38948
38949 void gimp_preview_set_update (GimpPreview *preview,
38950 gboolean update);
38951 gboolean gimp_preview_get_update (GimpPreview *preview);
38952
38953 void gimp_preview_set_bounds (GimpPreview *preview,
38954 gint xmin,
38955 gint ymin,
38956 gint xmax,
38957 gint ymax);
38958
38959 void gimp_preview_get_position (GimpPreview *preview,
38960 gint *x,
38961 gint *y);
38962 void gimp_preview_get_size (GimpPreview *preview,
38963 gint *width,
38964 gint *height);
38965
38966 void gimp_preview_draw (GimpPreview *preview);
38967 void gimp_preview_draw_buffer (GimpPreview *preview,
38968 const guchar *buffer,
38969 gint rowstride);
38970
38971 void gimp_preview_invalidate (GimpPreview *preview);
38972
38973 void gimp_preview_set_default_cursor (GimpPreview *preview,
38974 GdkCursor *cursor);
38975 # 56 "../../libgimpwidgets/gimpwidgets.h" 2
38976
38977 # 1 "../../libgimpwidgets/gimppreviewarea.h" 1
38978 # 25 "../../libgimpwidgets/gimppreviewarea.h"
38979 # 36 "../../libgimpwidgets/gimppreviewarea.h"
38980 typedef struct _GimpPreviewAreaClass GimpPreviewAreaClass;
38981
38982 struct _GimpPreviewArea
38983 {
38984 GtkDrawingArea parent_instance;
38985
38986 GimpCheckSize check_size;
38987 GimpCheckType check_type;
38988 gint width;
38989 gint height;
38990 gint rowstride;
38991 gint offset_x;
38992 gint offset_y;
38993 gint max_width;
38994 gint max_height;
38995 guchar *buf;
38996 guchar *colormap;
38997 };
38998
38999 struct _GimpPreviewAreaClass
39000 {
39001 GtkDrawingAreaClass parent_class;
39002
39003
39004 void (* _gimp_reserved1) (void);
39005 void (* _gimp_reserved2) (void);
39006 void (* _gimp_reserved3) (void);
39007 void (* _gimp_reserved4) (void);
39008 };
39009
39010
39011 GType gimp_preview_area_get_type (void) __attribute__((__const__));
39012
39013 GtkWidget * gimp_preview_area_new (void);
39014
39015 void gimp_preview_area_draw (GimpPreviewArea *area,
39016 gint x,
39017 gint y,
39018 gint width,
39019 gint height,
39020 GimpImageType type,
39021 const guchar *buf,
39022 gint rowstride);
39023 void gimp_preview_area_blend (GimpPreviewArea *area,
39024 gint x,
39025 gint y,
39026 gint width,
39027 gint height,
39028 GimpImageType type,
39029 const guchar *buf1,
39030 gint rowstride1,
39031 const guchar *buf2,
39032 gint rowstride2,
39033 guchar opacity);
39034 void gimp_preview_area_mask (GimpPreviewArea *area,
39035 gint x,
39036 gint y,
39037 gint width,
39038 gint height,
39039 GimpImageType type,
39040 const guchar *buf1,
39041 gint rowstride1,
39042 const guchar *buf2,
39043 gint rowstride2,
39044 const guchar *mask,
39045 gint rowstride_mask);
39046 void gimp_preview_area_fill (GimpPreviewArea *area,
39047 gint x,
39048 gint y,
39049 gint width,
39050 gint height,
39051 guchar red,
39052 guchar green,
39053 guchar blue);
39054
39055 void gimp_preview_area_set_offsets (GimpPreviewArea *area,
39056 gint x,
39057 gint y);
39058
39059 void gimp_preview_area_set_colormap (GimpPreviewArea *area,
39060 const guchar *colormap,
39061 gint num_colors);
39062
39063 void gimp_preview_area_set_max_size (GimpPreviewArea *area,
39064 gint width,
39065 gint height);
39066
39067 void gimp_preview_area_menu_popup (GimpPreviewArea *area,
39068 GdkEventButton *event);
39069 # 57 "../../libgimpwidgets/gimpwidgets.h" 2
39070
39071 # 1 "../../libgimpwidgets/gimpquerybox.h" 1
39072 # 26 "../../libgimpwidgets/gimpquerybox.h"
39073
39074
39075
39076
39077
39078
39079 typedef void (* GimpQueryStringCallback) (GtkWidget *query_box,
39080 const gchar *string,
39081 gpointer data);
39082
39083 typedef void (* GimpQueryIntCallback) (GtkWidget *query_box,
39084 gint value,
39085 gpointer data);
39086
39087 typedef void (* GimpQueryDoubleCallback) (GtkWidget *query_box,
39088 gdouble value,
39089 gpointer data);
39090
39091 typedef void (* GimpQuerySizeCallback) (GtkWidget *query_box,
39092 gdouble size,
39093 GimpUnit unit,
39094 gpointer data);
39095
39096 typedef void (* GimpQueryBooleanCallback) (GtkWidget *query_box,
39097 gboolean value,
39098 gpointer data);
39099
39100
39101
39102
39103
39104
39105
39106 GtkWidget * gimp_query_string_box (const gchar *title,
39107 GtkWidget *parent,
39108 GimpHelpFunc help_func,
39109 const gchar *help_id,
39110 const gchar *message,
39111 const gchar *initial,
39112 GObject *object,
39113 const gchar *signal,
39114 GimpQueryStringCallback callback,
39115 gpointer data);
39116
39117 GtkWidget * gimp_query_int_box (const gchar *title,
39118 GtkWidget *parent,
39119 GimpHelpFunc help_func,
39120 const gchar *help_id,
39121 const gchar *message,
39122 gint initial,
39123 gint lower,
39124 gint upper,
39125 GObject *object,
39126 const gchar *signal,
39127 GimpQueryIntCallback callback,
39128 gpointer data);
39129
39130 GtkWidget * gimp_query_double_box (const gchar *title,
39131 GtkWidget *parent,
39132 GimpHelpFunc help_func,
39133 const gchar *help_id,
39134 const gchar *message,
39135 gdouble initial,
39136 gdouble lower,
39137 gdouble upper,
39138 gint digits,
39139 GObject *object,
39140 const gchar *signal,
39141 GimpQueryDoubleCallback callback,
39142 gpointer data);
39143
39144 GtkWidget * gimp_query_size_box (const gchar *title,
39145 GtkWidget *parent,
39146 GimpHelpFunc help_func,
39147 const gchar *help_id,
39148 const gchar *message,
39149 gdouble initial,
39150 gdouble lower,
39151 gdouble upper,
39152 gint digits,
39153 GimpUnit unit,
39154 gdouble resolution,
39155 gboolean dot_for_dot,
39156 GObject *object,
39157 const gchar *signal,
39158 GimpQuerySizeCallback callback,
39159 gpointer data);
39160
39161 GtkWidget * gimp_query_boolean_box (const gchar *title,
39162 GtkWidget *parent,
39163 GimpHelpFunc help_func,
39164 const gchar *help_id,
39165 const gchar *stock_id,
39166 const gchar *message,
39167 const gchar *true_button,
39168 const gchar *false_button,
39169 GObject *object,
39170 const gchar *signal,
39171 GimpQueryBooleanCallback callback,
39172 gpointer data);
39173 # 58 "../../libgimpwidgets/gimpwidgets.h" 2
39174
39175 # 1 "../../libgimpwidgets/gimpsizeentry.h" 1
39176 # 27 "../../libgimpwidgets/gimpsizeentry.h"
39177 # 40 "../../libgimpwidgets/gimpsizeentry.h"
39178 typedef struct _GimpSizeEntryClass GimpSizeEntryClass;
39179
39180 typedef struct _GimpSizeEntryField GimpSizeEntryField;
39181
39182 struct _GimpSizeEntry
39183 {
39184 GtkTable parent_instance;
39185
39186 GSList *fields;
39187 gint number_of_fields;
39188
39189 GtkWidget *unitmenu;
39190 GimpUnit unit;
39191 gboolean menu_show_pixels;
39192 gboolean menu_show_percent;
39193
39194 gboolean show_refval;
39195 GimpSizeEntryUpdatePolicy update_policy;
39196 };
39197
39198 struct _GimpSizeEntryClass
39199 {
39200 GtkTableClass parent_class;
39201
39202 void (* value_changed) (GimpSizeEntry *gse);
39203 void (* refval_changed) (GimpSizeEntry *gse);
39204 void (* unit_changed) (GimpSizeEntry *gse);
39205
39206
39207 void (* _gimp_reserved1) (void);
39208 void (* _gimp_reserved2) (void);
39209 void (* _gimp_reserved3) (void);
39210 void (* _gimp_reserved4) (void);
39211 };
39212
39213
39214
39215
39216 GType gimp_size_entry_get_type (void) __attribute__((__const__));
39217
39218 GtkWidget * gimp_size_entry_new (gint number_of_fields,
39219 GimpUnit unit,
39220 const gchar *unit_format,
39221 gboolean menu_show_pixels,
39222 gboolean menu_show_percent,
39223 gboolean show_refval,
39224 gint spinbutton_width,
39225 GimpSizeEntryUpdatePolicy update_policy);
39226
39227 void gimp_size_entry_add_field (GimpSizeEntry *gse,
39228 GtkSpinButton *value_spinbutton,
39229 GtkSpinButton *refval_spinbutton);
39230
39231 GtkWidget * gimp_size_entry_attach_label (GimpSizeEntry *gse,
39232 const gchar *text,
39233 gint row,
39234 gint column,
39235 gfloat alignment);
39236
39237 void gimp_size_entry_set_resolution (GimpSizeEntry *gse,
39238 gint field,
39239 gdouble resolution,
39240 gboolean keep_size);
39241
39242 void gimp_size_entry_set_size (GimpSizeEntry *gse,
39243 gint field,
39244 gdouble lower,
39245 gdouble upper);
39246
39247 void gimp_size_entry_set_value_boundaries (GimpSizeEntry *gse,
39248 gint field,
39249 gdouble lower,
39250 gdouble upper);
39251
39252 gdouble gimp_size_entry_get_value (GimpSizeEntry *gse,
39253 gint field);
39254 void gimp_size_entry_set_value (GimpSizeEntry *gse,
39255 gint field,
39256 gdouble value);
39257
39258 void gimp_size_entry_set_refval_boundaries (GimpSizeEntry *gse,
39259 gint field,
39260 gdouble lower,
39261 gdouble upper);
39262 void gimp_size_entry_set_refval_digits (GimpSizeEntry *gse,
39263 gint field,
39264 gint digits);
39265
39266 gdouble gimp_size_entry_get_refval (GimpSizeEntry *gse,
39267 gint field);
39268 void gimp_size_entry_set_refval (GimpSizeEntry *gse,
39269 gint field,
39270 gdouble refval);
39271
39272 GimpUnit gimp_size_entry_get_unit (GimpSizeEntry *gse);
39273 void gimp_size_entry_set_unit (GimpSizeEntry *gse,
39274 GimpUnit unit);
39275
39276 void gimp_size_entry_set_pixel_digits (GimpSizeEntry *gse,
39277 gint digits);
39278
39279 void gimp_size_entry_grab_focus (GimpSizeEntry *gse);
39280 GtkWidget * gimp_size_entry_get_help_widget (GimpSizeEntry *gse,
39281 gint field);
39282 # 59 "../../libgimpwidgets/gimpwidgets.h" 2
39283
39284 # 1 "../../libgimpwidgets/gimpstock.h" 1
39285 # 26 "../../libgimpwidgets/gimpstock.h"
39286 # 245 "../../libgimpwidgets/gimpstock.h"
39287 void gimp_stock_init (void);
39288 # 60 "../../libgimpwidgets/gimpwidgets.h" 2
39289
39290 # 1 "../../libgimpwidgets/gimpunitmenu.h" 1
39291 # 31 "../../libgimpwidgets/gimpunitmenu.h"
39292
39293 # 1 "/usr/include/gtk-2.0/gtk/gtkoptionmenu.h" 1
39294 # 32 "../../libgimpwidgets/gimpunitmenu.h" 2
39295 # 47 "../../libgimpwidgets/gimpunitmenu.h"
39296 typedef struct _GimpUnitMenuClass GimpUnitMenuClass;
39297
39298 struct _GimpUnitMenu
39299 {
39300 GtkOptionMenu parent_instance;
39301
39302
39303 gchar *format;
39304 GimpUnit unit;
39305 gint pixel_digits;
39306
39307 gboolean show_pixels;
39308 gboolean show_percent;
39309
39310
39311 GtkWidget *selection;
39312 GtkWidget *tv;
39313 };
39314
39315 struct _GimpUnitMenuClass
39316 {
39317 GtkOptionMenuClass parent_class;
39318
39319 void (* unit_changed) (GimpUnitMenu *menu);
39320
39321
39322 void (* _gimp_reserved1) (void);
39323 void (* _gimp_reserved2) (void);
39324 void (* _gimp_reserved3) (void);
39325 void (* _gimp_reserved4) (void);
39326 };
39327
39328
39329 GType gimp_unit_menu_get_type (void) __attribute__((__const__));
39330
39331 GtkWidget * gimp_unit_menu_new (const gchar *format,
39332 GimpUnit unit,
39333 gboolean show_pixels,
39334 gboolean show_percent,
39335 gboolean show_custom);
39336
39337 void gimp_unit_menu_set_unit (GimpUnitMenu *menu,
39338 GimpUnit unit);
39339
39340 GimpUnit gimp_unit_menu_get_unit (GimpUnitMenu *menu);
39341
39342 void gimp_unit_menu_set_pixel_digits (GimpUnitMenu *menu,
39343 gint digits);
39344 gint gimp_unit_menu_get_pixel_digits (GimpUnitMenu *menu);
39345 # 61 "../../libgimpwidgets/gimpwidgets.h" 2
39346
39347
39348 # 1 "../../libgimpwidgets/gimpoldwidgets.h" 1
39349 # 63 "../../libgimpwidgets/gimpwidgets.h" 2
39350 # 74 "../../libgimpwidgets/gimpwidgets.h"
39351 GtkWidget * gimp_int_radio_group_new (gboolean in_frame,
39352 const gchar *frame_title,
39353 GCallback radio_button_callback,
39354 gpointer radio_button_callback_data,
39355 gint initial,
39356
39357
39358
39359
39360
39361
39362
39363 ...);
39364
39365 void gimp_int_radio_group_set_active (GtkRadioButton *radio_button,
39366 gint item_data);
39367
39368
39369 GtkWidget * gimp_radio_group_new (gboolean in_frame,
39370 const gchar *frame_title,
39371 # 104 "../../libgimpwidgets/gimpwidgets.h"
39372 ...);
39373 GtkWidget * gimp_radio_group_new2 (gboolean in_frame,
39374 const gchar *frame_title,
39375 GCallback radio_button_callback,
39376 gpointer radio_button_callback_data,
39377 gpointer initial,
39378
39379
39380
39381
39382
39383
39384
39385 ...);
39386
39387 void gimp_radio_group_set_active (GtkRadioButton *radio_button,
39388 gpointer item_data);
39389
39390
39391 GtkWidget * gimp_spin_button_new (
39392 GtkObject **adjustment,
39393
39394 gdouble value,
39395 gdouble lower,
39396 gdouble upper,
39397 gdouble step_increment,
39398 gdouble page_increment,
39399 gdouble page_size,
39400 gdouble climb_rate,
39401 guint digits);
39402 # 150 "../../libgimpwidgets/gimpwidgets.h"
39403 GtkObject * gimp_scale_entry_new (GtkTable *table,
39404 gint column,
39405 gint row,
39406 const gchar *text,
39407 gint scale_width,
39408 gint spinbutton_width,
39409 gdouble value,
39410 gdouble lower,
39411 gdouble upper,
39412 gdouble step_increment,
39413 gdouble page_increment,
39414 guint digits,
39415 gboolean constrain,
39416 gdouble unconstrained_lower,
39417 gdouble unconstrained_upper,
39418 const gchar *tooltip,
39419 const gchar *help_id);
39420
39421
39422 GtkObject * gimp_color_scale_entry_new (GtkTable *table,
39423 gint column,
39424 gint row,
39425 const gchar *text,
39426 gint scale_width,
39427 gint spinbutton_width,
39428 gdouble value,
39429 gdouble lower,
39430 gdouble upper,
39431 gdouble step_increment,
39432 gdouble page_increment,
39433 guint digits,
39434 const gchar *tooltip,
39435 const gchar *help_id);
39436
39437 void gimp_scale_entry_set_sensitive (GtkObject *adjustment,
39438 gboolean sensitive);
39439
39440 void gimp_scale_entry_set_logarithmic (GtkObject *adjustment,
39441 gboolean logarithmic);
39442 gboolean gimp_scale_entry_get_logarithmic (GtkObject *adjustment);
39443 # 200 "../../libgimpwidgets/gimpwidgets.h"
39444 GtkWidget * gimp_random_seed_new (guint32 *seed,
39445 gboolean *random_seed);
39446
39447
39448
39449
39450 GtkWidget * gimp_coordinates_new (GimpUnit unit,
39451 const gchar *unit_format,
39452 gboolean menu_show_pixels,
39453 gboolean menu_show_percent,
39454 gint spinbutton_width,
39455 GimpSizeEntryUpdatePolicy update_policy,
39456
39457 gboolean chainbutton_active,
39458 gboolean chain_constrains_ratio,
39459
39460 const gchar *xlabel,
39461 gdouble x,
39462 gdouble xres,
39463 gdouble lower_boundary_x,
39464 gdouble upper_boundary_x,
39465 gdouble xsize_0,
39466 gdouble xsize_100,
39467
39468 const gchar *ylabel,
39469 gdouble y,
39470 gdouble yres,
39471 gdouble lower_boundary_y,
39472 gdouble upper_boundary_y,
39473 gdouble ysize_0,
39474 gdouble ysize_100 );
39475 # 245 "../../libgimpwidgets/gimpwidgets.h"
39476 void gimp_toggle_button_sensitive_update (GtkToggleButton *toggle_button);
39477
39478 void gimp_toggle_button_update (GtkWidget *widget,
39479 gpointer data);
39480
39481 void gimp_radio_button_update (GtkWidget *widget,
39482 gpointer data);
39483
39484 void gimp_int_adjustment_update (GtkAdjustment *adjustment,
39485 gpointer data);
39486
39487 void gimp_uint_adjustment_update (GtkAdjustment *adjustment,
39488 gpointer data);
39489
39490 void gimp_float_adjustment_update (GtkAdjustment *adjustment,
39491 gpointer data);
39492
39493 void gimp_double_adjustment_update (GtkAdjustment *adjustment,
39494 gpointer data);
39495
39496 void gimp_unit_menu_update (GtkWidget *widget,
39497 gpointer data);
39498
39499
39500
39501
39502
39503
39504 GtkWidget * gimp_table_attach_aligned (GtkTable *table,
39505 gint column,
39506 gint row,
39507 const gchar *label_text,
39508 gfloat xalign,
39509 gfloat yalign,
39510 GtkWidget *widget,
39511 gint colspan,
39512 gboolean left_align);
39513
39514
39515 void gimp_label_set_attributes (GtkLabel *label,
39516 ...);
39517 # 26 "../../libgimp/gimpui.h" 2
39518
39519
39520 # 1 "../../libgimp/gimpuitypes.h" 1
39521 # 27 "../../libgimp/gimpuitypes.h"
39522
39523
39524
39525
39526
39527 typedef struct _GimpAspectPreview GimpAspectPreview;
39528 typedef struct _GimpDrawablePreview GimpDrawablePreview;
39529 typedef struct _GimpProgressBar GimpProgressBar;
39530 # 28 "../../libgimp/gimpui.h" 2
39531
39532
39533 # 1 "../../libgimp/gimpexport.h" 1
39534 # 26 "../../libgimp/gimpexport.h"
39535
39536
39537
39538
39539
39540 typedef enum
39541 {
39542 GIMP_EXPORT_CAN_HANDLE_RGB = 1 << 0,
39543 GIMP_EXPORT_CAN_HANDLE_GRAY = 1 << 1,
39544 GIMP_EXPORT_CAN_HANDLE_INDEXED = 1 << 2,
39545 GIMP_EXPORT_CAN_HANDLE_BITMAP = 1 << 3,
39546 GIMP_EXPORT_CAN_HANDLE_ALPHA = 1 << 4,
39547 GIMP_EXPORT_CAN_HANDLE_LAYERS = 1 << 5,
39548 GIMP_EXPORT_CAN_HANDLE_LAYERS_AS_ANIMATION = 1 << 6,
39549 GIMP_EXPORT_CAN_HANDLE_LAYER_MASKS = 1 << 7,
39550 GIMP_EXPORT_NEEDS_ALPHA = 1 << 8
39551 } GimpExportCapabilities;
39552
39553 typedef enum
39554 {
39555 GIMP_EXPORT_CANCEL,
39556 GIMP_EXPORT_IGNORE,
39557 GIMP_EXPORT_EXPORT
39558 } GimpExportReturn;
39559
39560 GimpExportReturn gimp_export_image (gint32 *image_ID,
39561 gint32 *drawable_ID,
39562 const gchar *format_name,
39563 GimpExportCapabilities capabilities);
39564 # 30 "../../libgimp/gimpui.h" 2
39565
39566 # 1 "../../libgimp/gimpmenu.h" 1
39567 # 31 "../../libgimp/gimpui.h" 2
39568
39569 # 1 "../../libgimp/gimpaspectpreview.h" 1
39570 # 27 "../../libgimp/gimpaspectpreview.h"
39571 # 41 "../../libgimp/gimpaspectpreview.h"
39572 typedef struct _GimpAspectPreviewClass GimpAspectPreviewClass;
39573
39574 struct _GimpAspectPreview
39575 {
39576 GimpPreview parent_instance;
39577
39578
39579 GimpDrawable *drawable;
39580 };
39581
39582 struct _GimpAspectPreviewClass
39583 {
39584 GimpPreviewClass parent_class;
39585
39586
39587 void (* _gimp_reserved1) (void);
39588 void (* _gimp_reserved2) (void);
39589 void (* _gimp_reserved3) (void);
39590 void (* _gimp_reserved4) (void);
39591 };
39592
39593
39594 GType gimp_aspect_preview_get_type (void) __attribute__((__const__));
39595
39596 GtkWidget * gimp_aspect_preview_new (GimpDrawable *drawable,
39597 gboolean *toggle);
39598 # 32 "../../libgimp/gimpui.h" 2
39599
39600 # 1 "../../libgimp/gimpbrushmenu.h" 1
39601 # 25 "../../libgimp/gimpbrushmenu.h"
39602
39603
39604
39605 GtkWidget * gimp_brush_select_widget_new (const gchar *title,
39606 const gchar *brush_name,
39607 gdouble opacity,
39608 gint spacing,
39609 GimpLayerModeEffects paint_mode,
39610 GimpRunBrushCallback callback,
39611 gpointer data);
39612
39613 void gimp_brush_select_widget_close (GtkWidget *widget);
39614 void gimp_brush_select_widget_set (GtkWidget *widget,
39615 const gchar *brush_name,
39616 gdouble opacity,
39617 gint spacing,
39618 GimpLayerModeEffects paint_mode);
39619 # 33 "../../libgimp/gimpui.h" 2
39620
39621 # 1 "../../libgimp/gimpdrawablepreview.h" 1
39622 # 25 "../../libgimp/gimpdrawablepreview.h"
39623
39624 # 1 "../../libgimpwidgets/gimpscrolledpreview.h" 1
39625 # 25 "../../libgimpwidgets/gimpscrolledpreview.h"
39626
39627 # 1 "../../libgimpwidgets/gimppreview.h" 1
39628 # 26 "../../libgimpwidgets/gimpscrolledpreview.h" 2
39629 # 41 "../../libgimpwidgets/gimpscrolledpreview.h"
39630 typedef struct _GimpScrolledPreviewClass GimpScrolledPreviewClass;
39631
39632 struct _GimpScrolledPreview
39633 {
39634 GimpPreview parent_instance;
39635
39636
39637 GtkWidget *hscr;
39638 GtkWidget *vscr;
39639 GtkWidget *nav_icon;
39640 GtkWidget *nav_popup;
39641 GdkCursor *cursor_move;
39642 GdkGC *nav_gc;
39643
39644
39645 gint drag_x, drag_y;
39646 gint drag_xoff, drag_yoff;
39647
39648 gboolean in_drag;
39649 };
39650
39651 struct _GimpScrolledPreviewClass
39652 {
39653 GimpPreviewClass parent_class;
39654
39655
39656 void (* _gimp_reserved1) (void);
39657 void (* _gimp_reserved2) (void);
39658 void (* _gimp_reserved3) (void);
39659 void (* _gimp_reserved4) (void);
39660 };
39661
39662
39663 GType gimp_scrolled_preview_get_type (void) __attribute__((__const__));
39664 # 26 "../../libgimp/gimpdrawablepreview.h" 2
39665 # 41 "../../libgimp/gimpdrawablepreview.h"
39666 typedef struct _GimpDrawablePreviewClass GimpDrawablePreviewClass;
39667
39668 struct _GimpDrawablePreview
39669 {
39670 GimpScrolledPreview parent_instance;
39671
39672 GimpDrawable *drawable;
39673 };
39674
39675 struct _GimpDrawablePreviewClass
39676 {
39677 GimpScrolledPreviewClass parent_class;
39678
39679
39680 void (* _gimp_reserved1) (void);
39681 void (* _gimp_reserved2) (void);
39682 void (* _gimp_reserved3) (void);
39683 void (* _gimp_reserved4) (void);
39684 };
39685
39686
39687 GType gimp_drawable_preview_get_type (void) __attribute__((__const__));
39688
39689 GtkWidget * gimp_drawable_preview_new (GimpDrawable *drawable,
39690 gboolean *toggle);
39691 GimpDrawable * gimp_drawable_preview_get_drawable (GimpDrawablePreview *preview);
39692
39693 void gimp_drawable_preview_draw_region (GimpDrawablePreview *preview,
39694 const GimpPixelRgn *region);
39695 # 34 "../../libgimp/gimpui.h" 2
39696
39697 # 1 "../../libgimp/gimpfontmenu.h" 1
39698 # 25 "../../libgimp/gimpfontmenu.h"
39699
39700
39701
39702 GtkWidget * gimp_font_select_widget_new (const gchar *title,
39703 const gchar *font_name,
39704 GimpRunFontCallback callback,
39705 gpointer data);
39706
39707 void gimp_font_select_widget_close (GtkWidget *widget);
39708 void gimp_font_select_widget_set (GtkWidget *widget,
39709 const gchar *font_name);
39710 # 35 "../../libgimp/gimpui.h" 2
39711
39712 # 1 "../../libgimp/gimpgradientmenu.h" 1
39713 # 25 "../../libgimp/gimpgradientmenu.h"
39714
39715
39716
39717 GtkWidget * gimp_gradient_select_widget_new (const gchar *title,
39718 const gchar *gradient_name,
39719 GimpRunGradientCallback callback,
39720 gpointer data);
39721
39722 void gimp_gradient_select_widget_close (GtkWidget *widget);
39723 void gimp_gradient_select_widget_set (GtkWidget *widget,
39724 const gchar *gradient_name);
39725 # 36 "../../libgimp/gimpui.h" 2
39726
39727 # 1 "../../libgimp/gimppalettemenu.h" 1
39728 # 25 "../../libgimp/gimppalettemenu.h"
39729
39730
39731
39732 GtkWidget * gimp_palette_select_widget_new (const gchar *title,
39733 const gchar *palette_name,
39734 GimpRunPaletteCallback callback,
39735 gpointer data);
39736
39737 void gimp_palette_select_widget_close (GtkWidget *widget);
39738 void gimp_palette_select_widget_set (GtkWidget *widget,
39739 const gchar *palette_name);
39740 # 37 "../../libgimp/gimpui.h" 2
39741
39742 # 1 "../../libgimp/gimppatternmenu.h" 1
39743 # 25 "../../libgimp/gimppatternmenu.h"
39744
39745
39746
39747 GtkWidget * gimp_pattern_select_widget_new (const gchar *title,
39748 const gchar *pattern_name,
39749 GimpRunPatternCallback callback,
39750 gpointer data);
39751
39752 void gimp_pattern_select_widget_close (GtkWidget *widget);
39753 void gimp_pattern_select_widget_set (GtkWidget *widget,
39754 const gchar *pattern_name);
39755 # 38 "../../libgimp/gimpui.h" 2
39756
39757 # 1 "../../libgimp/gimppixbuf.h" 1
39758 # 27 "../../libgimp/gimppixbuf.h"
39759
39760
39761
39762
39763
39764 typedef enum
39765 {
39766 GIMP_PIXBUF_KEEP_ALPHA,
39767 GIMP_PIXBUF_SMALL_CHECKS,
39768 GIMP_PIXBUF_LARGE_CHECKS
39769 } GimpPixbufTransparency;
39770
39771
39772 GdkPixbuf * gimp_image_get_thumbnail (gint32 image_ID,
39773 gint width,
39774 gint height,
39775 GimpPixbufTransparency alpha);
39776 GdkPixbuf * gimp_drawable_get_thumbnail (gint32 drawable_ID,
39777 gint width,
39778 gint height,
39779 GimpPixbufTransparency alpha);
39780 GdkPixbuf * gimp_drawable_get_sub_thumbnail (gint32 drawable_ID,
39781 gint src_x,
39782 gint src_y,
39783 gint src_width,
39784 gint src_height,
39785 gint dest_width,
39786 gint dest_height,
39787 GimpPixbufTransparency alpha);
39788 # 39 "../../libgimp/gimpui.h" 2
39789
39790 # 1 "../../libgimp/gimpprogressbar.h" 1
39791 # 28 "../../libgimp/gimpprogressbar.h"
39792 # 39 "../../libgimp/gimpprogressbar.h"
39793 typedef struct _GimpProgressBarClass GimpProgressBarClass;
39794
39795 struct _GimpProgressBar
39796 {
39797 GtkProgressBar parent_instance;
39798
39799 const gchar *progress_callback;
39800 gboolean cancelable;
39801 };
39802
39803 struct _GimpProgressBarClass
39804 {
39805 GtkProgressBarClass parent_class;
39806
39807
39808 void (* _gimp_reserved1) (void);
39809 void (* _gimp_reserved2) (void);
39810 void (* _gimp_reserved3) (void);
39811 void (* _gimp_reserved4) (void);
39812 };
39813
39814
39815 GType gimp_progress_bar_get_type (void) __attribute__((__const__));
39816
39817 GtkWidget * gimp_progress_bar_new (void);
39818 # 40 "../../libgimp/gimpui.h" 2
39819
39820 # 1 "../../libgimp/gimpdrawablecombobox.h" 1
39821 # 27 "../../libgimp/gimpdrawablecombobox.h"
39822
39823
39824
39825
39826
39827 typedef gboolean (* GimpDrawableConstraintFunc) (gint32 image_id,
39828 gint32 drawable_id,
39829 gpointer data);
39830
39831
39832 GtkWidget * gimp_drawable_combo_box_new (GimpDrawableConstraintFunc constraint,
39833 gpointer data);
39834 GtkWidget * gimp_channel_combo_box_new (GimpDrawableConstraintFunc constraint,
39835 gpointer data);
39836 GtkWidget * gimp_layer_combo_box_new (GimpDrawableConstraintFunc constraint,
39837 gpointer data);
39838 # 41 "../../libgimp/gimpui.h" 2
39839
39840 # 1 "../../libgimp/gimpimagecombobox.h" 1
39841 # 27 "../../libgimp/gimpimagecombobox.h"
39842
39843
39844
39845
39846
39847 typedef gboolean (* GimpImageConstraintFunc) (gint32 image_id,
39848 gpointer data);
39849
39850
39851 GtkWidget * gimp_image_combo_box_new (GimpImageConstraintFunc constraint,
39852 gpointer data);
39853 # 42 "../../libgimp/gimpui.h" 2
39854
39855
39856
39857
39858
39859
39860
39861 void gimp_ui_init (const gchar *prog_name,
39862 gboolean preview);
39863 # 47 "maze.c" 2
39864
39865
39866 # 1 "maze.h" 1
39867 # 21 "maze.h"
39868 typedef enum {
39869 DEPTH_FIRST,
39870 PRIMS_ALGORITHM
39871 } MazeAlgoType;
39872
39873 typedef struct {
39874 gint width;
39875 gint height;
39876 guint32 seed;
39877 gboolean tile;
39878 gint multiple;
39879 gint offset;
39880 MazeAlgoType algorithm;
39881 gboolean random_seed;
39882
39883 } MazeValues;
39884
39885 enum CellTypes {
39886 OUT,
39887 IN,
39888 FRONTIER,
39889 MASKED
39890 };
39891 # 49 "maze.c" 2
39892
39893
39894 # 1 "../../libgimp/stdplugins-intl.h" 1
39895 # 29 "../../libgimp/stdplugins-intl.h"
39896
39897 # 1 "/usr/include/libintl.h" 1 3 4
39898 # 35 "/usr/include/libintl.h" 3 4
39899
39900
39901
39902
39903
39904 extern char *gettext (__const char *__msgid)
39905 __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (1)));
39906
39907
39908
39909 extern char *dgettext (__const char *__domainname, __const char *__msgid)
39910 __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2)));
39911 extern char *__dgettext (__const char *__domainname, __const char *__msgid)
39912 __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2)));
39913
39914
39915
39916 extern char *dcgettext (__const char *__domainname,
39917 __const char *__msgid, int __category)
39918 __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2)));
39919 extern char *__dcgettext (__const char *__domainname,
39920 __const char *__msgid, int __category)
39921 __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2)));
39922
39923
39924
39925
39926 extern char *ngettext (__const char *__msgid1, __const char *__msgid2,
39927 unsigned long int __n)
39928 __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (1))) __attribute__ ((__format_arg__ (2)));
39929
39930
39931
39932 extern char *dngettext (__const char *__domainname, __const char *__msgid1,
39933 __const char *__msgid2, unsigned long int __n)
39934 __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3)));
39935
39936
39937
39938 extern char *dcngettext (__const char *__domainname, __const char *__msgid1,
39939 __const char *__msgid2, unsigned long int __n,
39940 int __category)
39941 __attribute__ ((__nothrow__)) __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3)));
39942
39943
39944
39945
39946
39947 extern char *textdomain (__const char *__domainname) __attribute__ ((__nothrow__));
39948
39949
39950
39951 extern char *bindtextdomain (__const char *__domainname,
39952 __const char *__dirname) __attribute__ ((__nothrow__));
39953
39954
39955
39956 extern char *bind_textdomain_codeset (__const char *__domainname,
39957 __const char *__codeset) __attribute__ ((__nothrow__));
39958 # 102 "/usr/include/libintl.h" 3 4
39959 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
39960 # 102 "/usr/include/libintl.h" 2 3 4
39961
39962
39963
39964 # 1 "/usr/include/locale.h" 1 3 4
39965 # 29 "/usr/include/locale.h" 3 4
39966
39967 # 1 "/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/stddef.h" 1 3 4
39968 # 30 "/usr/include/locale.h" 2 3 4
39969
39970 # 1 "/usr/include/bits/locale.h" 1 3 4
39971 # 27 "/usr/include/bits/locale.h" 3 4
39972 enum
39973 {
39974 __LC_CTYPE = 0,
39975 __LC_NUMERIC = 1,
39976 __LC_TIME = 2,
39977 __LC_COLLATE = 3,
39978 __LC_MONETARY = 4,
39979 __LC_MESSAGES = 5,
39980 __LC_ALL = 6,
39981 __LC_PAPER = 7,
39982 __LC_NAME = 8,
39983 __LC_ADDRESS = 9,
39984 __LC_TELEPHONE = 10,
39985 __LC_MEASUREMENT = 11,
39986 __LC_IDENTIFICATION = 12
39987 };
39988 # 31 "/usr/include/locale.h" 2 3 4
39989 # 52 "/usr/include/locale.h" 3 4
39990 struct lconv
39991 {
39992
39993
39994 char *decimal_point;
39995 char *thousands_sep;
39996
39997
39998
39999
40000
40001 char *grouping;
40002
40003
40004
40005
40006
40007 char *int_curr_symbol;
40008 char *currency_symbol;
40009 char *mon_decimal_point;
40010 char *mon_thousands_sep;
40011 char *mon_grouping;
40012 char *positive_sign;
40013 char *negative_sign;
40014 char int_frac_digits;
40015 char frac_digits;
40016
40017 char p_cs_precedes;
40018
40019 char p_sep_by_space;
40020
40021 char n_cs_precedes;
40022
40023 char n_sep_by_space;
40024
40025
40026
40027
40028
40029
40030 char p_sign_posn;
40031 char n_sign_posn;
40032 # 112 "/usr/include/locale.h" 3 4
40033 char __int_p_cs_precedes;
40034 char __int_p_sep_by_space;
40035 char __int_n_cs_precedes;
40036 char __int_n_sep_by_space;
40037 char __int_p_sign_posn;
40038 char __int_n_sign_posn;
40039
40040 };
40041
40042
40043
40044
40045
40046 extern char *setlocale (int __category, __const char *__locale) __attribute__ ((__nothrow__));
40047
40048
40049 extern struct lconv *localeconv (void) __attribute__ ((__nothrow__));
40050 # 208 "/usr/include/locale.h" 3 4
40051 # 105 "/usr/include/libintl.h" 2 3 4
40052 # 122 "/usr/include/libintl.h" 3 4
40053 # 30 "../../libgimp/stdplugins-intl.h" 2
40054 # 51 "maze.c" 2
40055
40056
40057 static void query (void);
40058 static void run (const gchar *name,
40059 gint nparams,
40060 const GimpParam *param,
40061 gint *nreturn_vals,
40062 GimpParam **return_vals);
40063
40064 static void maze (GimpDrawable *drawable);
40065
40066 static void mask_maze (gint32 selection_ID,
40067 guchar *maz,
40068 guint mw,
40069 guint mh,
40070 gint x1,
40071 gint x2,
40072 gint y1,
40073 gint y2,
40074 gint deadx,
40075 gint deady);
40076
40077
40078 extern gint maze_dialog (void);
40079
40080
40081 extern void mazegen (gint pos,
40082 guchar *maz,
40083 gint x,
40084 gint y,
40085 gint rnd);
40086 extern void mazegen_tileable (gint pos,
40087 guchar *maz,
40088 gint x,
40089 gint y,
40090 gint rnd);
40091 extern void prim (guint pos,
40092 guchar *maz,
40093 guint x,
40094 guint y);
40095 extern void prim_tileable (guchar *maz,
40096 guint x,
40097 guint y);
40098
40099
40100 extern void get_colors (GimpDrawable *drawable,
40101 guint8 *fg,
40102 guint8 *bg);
40103
40104 extern void drawbox (GimpPixelRgn *dest_rgn,
40105 guint x,
40106 guint y,
40107 guint w,
40108 guint h,
40109 guint8 clr[4]);
40110
40111
40112 GimpPlugInInfo PLUG_IN_INFO =
40113 {
40114 ((void *)0),
40115 ((void *)0),
40116 query,
40117 run,
40118 };
40119
40120 MazeValues mvals =
40121 {
40122 5,
40123 5,
40124 0,
40125 (0),
40126 57,
40127 1,
40128 DEPTH_FIRST,
40129 (!(0)),
40130 };
40131
40132 GRand *gr;
40133
40134 guint sel_w, sel_h;
40135
40136
40137 int main (int argc, char *argv[]) { return gimp_main (&PLUG_IN_INFO, argc, argv); }
40138
40139
40140 static void
40141 query (void)
40142 {
40143 static GimpParamDef args[] =
40144 {
40145 { GIMP_PDB_INT32, "run_mode", "Interactive, non-interactive" },
40146 { GIMP_PDB_IMAGE, "image_ID", "(unused)" },
40147 { GIMP_PDB_DRAWABLE, "drawable_ID", "ID of drawable" },
40148
40149 { GIMP_PDB_INT16, "width", "Width of the passages" },
40150 { GIMP_PDB_INT16, "height", "Height of the passages"},
40151 { GIMP_PDB_INT8, "tileable", "Tileable maze?"},
40152 { GIMP_PDB_INT8, "algorithm", "Generation algorithm"
40153 "(0=DEPTH FIRST, 1=PRIM'S ALGORITHM)" },
40154 { GIMP_PDB_INT32, "seed", "Random Seed"},
40155 { GIMP_PDB_INT16, "multiple", "Multiple (use 57)" },
40156 { GIMP_PDB_INT16, "offset", "Offset (use 1)" }
40157 };
40158
40159 gimp_install_procedure ("plug_in_maze",
40160 "Draws a maze.",
40161 "Generates a maze using either the depth-first "
40162 "search method or Prim's algorithm. Can make "
40163 "tileable mazes too.",
40164 "Kevin Turner <kevint@poboxes.com>",
40165 "Kevin Turner",
40166 "1997, 1998",
40167 ("_Maze..."),
40168 "RGB*, GRAY*, INDEXED*",
40169 GIMP_PLUGIN,
40170 (sizeof (args) / sizeof ((args)[0])), 0,
40171 args, ((void *)0));
40172
40173 gimp_plugin_menu_register ("plug_in_maze",
40174 "<Image>/Filters/Render/Pattern");
40175 }
40176
40177 static void
40178 run (const gchar *name,
40179 gint nparams,
40180 const GimpParam *param,
40181 gint *nreturn_vals,
40182 GimpParam **return_vals)
40183 {
40184 static GimpParam values[1];
40185 GimpDrawable *drawable;
40186 GimpRunMode run_mode;
40187 GimpPDBStatusType status = GIMP_PDB_SUCCESS;
40188 gint x1, y1, x2, y2;
40189
40190
40191
40192
40193 run_mode = param[0].data.d_int32;
40194
40195 *nreturn_vals = 1;
40196 *return_vals = values;
40197
40198 (void) __extension__ ({ bindtextdomain ("gimp20""-std-plug-ins", gimp_locale_directory ()); bind_textdomain_codeset ("gimp20""-std-plug-ins", "UTF-8"); textdomain ("gimp20""-std-plug-ins"); });
40199
40200 gr = g_rand_new ();
40201
40202 values[0].type = GIMP_PDB_STATUS;
40203 values[0].data.d_status = status;
40204
40205 drawable = gimp_drawable_get (param[2].data.d_drawable);
40206
40207 switch (run_mode)
40208 {
40209 case GIMP_RUN_INTERACTIVE:
40210
40211 gimp_procedural_db_get_data ("plug_in_maze", &mvals);
40212
40213
40214 gimp_drawable_mask_bounds (drawable->drawable_id, &x1, &y1, &x2, &y2);
40215 sel_w = x2 - x1;
40216 sel_h = y2 - y1;
40217
40218
40219 if (! maze_dialog ())
40220 {
40221 gimp_drawable_detach (drawable);
40222 return;
40223 }
40224 break;
40225
40226 case GIMP_RUN_NONINTERACTIVE:
40227 if (nparams != 10)
40228 status = GIMP_PDB_CALLING_ERROR;
40229
40230 if (status == GIMP_PDB_SUCCESS)
40231 {
40232 mvals.width = (gint16) param[3].data.d_int16;
40233 mvals.height = (gint16) param[4].data.d_int16;
40234 mvals.tile = (gint8) param[5].data.d_int8;
40235 mvals.algorithm = (gint8) param[6].data.d_int8;
40236 mvals.seed = (guint32) param[7].data.d_int32;
40237 mvals.multiple = (gint16) param[8].data.d_int16;
40238 mvals.offset = (gint16) param[9].data.d_int16;
40239
40240 if (mvals.random_seed)
40241 mvals.seed = g_random_int ();
40242 }
40243 break;
40244
40245 case GIMP_RUN_WITH_LAST_VALS:
40246
40247 gimp_procedural_db_get_data ("plug_in_maze", &mvals);
40248
40249 if (mvals.random_seed)
40250 mvals.seed = g_random_int ();
40251 break;
40252
40253 default:
40254 break;
40255 }
40256
40257
40258 if (gimp_drawable_is_rgb (drawable->drawable_id) ||
40259 gimp_drawable_is_gray (drawable->drawable_id) ||
40260 gimp_drawable_is_indexed (drawable->drawable_id))
40261 {
40262 maze (drawable);
40263
40264 if (run_mode != GIMP_RUN_NONINTERACTIVE)
40265 gimp_displays_flush ();
40266
40267 if (run_mode == GIMP_RUN_INTERACTIVE ||
40268 (run_mode == GIMP_RUN_WITH_LAST_VALS))
40269 gimp_procedural_db_set_data ("plug_in_maze", &mvals, sizeof (MazeValues));
40270 }
40271 else
40272 {
40273 status = GIMP_PDB_EXECUTION_ERROR;
40274 }
40275
40276 values[0].data.d_status = status;
40277
40278 g_rand_free (gr);
40279 gimp_drawable_detach (drawable);
40280 }
40281 # 308 "maze.c"
40282 static void
40283 maze (GimpDrawable * drawable)
40284 {
40285 GimpPixelRgn dest_rgn;
40286 guint mw, mh;
40287 gint deadx, deady;
40288 guint progress, max_progress;
40289 gint x1, y1, x2, y2, x, y;
40290 gint dx, dy, xx, yy;
40291 gint maz_x, maz_xx, maz_row, maz_yy;
40292 guint8 fg[4], bg[4];
40293 gpointer pr;
40294 gboolean active_selection;
40295
40296 guchar *maz;
40297 guint pos;
40298
40299
40300 active_selection = gimp_drawable_mask_bounds (drawable->drawable_id,
40301 &x1, &y1, &x2, &y2);
40302
40303
40304
40305 mw = (x2-x1) / mvals.width;
40306 mh = (y2-y1) / mvals.height;
40307
40308 if (!mvals.tile)
40309 {
40310 mw -= !(mw & 1);
40311 mh -= !(mh & 1);
40312 }
40313 else
40314 {
40315
40316 mw -= (mw & 1);
40317 mh -= (mh & 1);
40318 };
40319
40320
40321
40322 deadx = ((x2-x1) - mw * mvals.width) / 2;
40323 deady = ((y2-y1) - mh * mvals.height) / 2;
40324
40325 maz = ((guchar *) g_malloc0 (((gsize) sizeof (guchar)) * ((gsize) (mw * mh))));
40326
40327
40328
40329
40330
40331
40332
40333 switch (mvals.algorithm)
40334 {
40335 case DEPTH_FIRST:
40336 case PRIMS_ALGORITHM:
40337 break;
40338 default:
40339 g_log (((gchar*) 0), G_LOG_LEVEL_WARNING, "maze: Invalid algorithm choice %d", mvals.algorithm);
40340 }
40341
40342 if (mvals.tile)
40343 {
40344 switch (mvals.algorithm)
40345 {
40346 case DEPTH_FIRST:
40347 mazegen_tileable (0, maz, mw, mh, mvals.seed);
40348 break;
40349
40350 case PRIMS_ALGORITHM:
40351 prim_tileable (maz, mw, mh);
40352 break;
40353
40354 default:
40355 break;
40356 }
40357 }
40358 else
40359 {
40360
40361 if (active_selection)
40362 {
40363
40364
40365 mask_maze (drawable->drawable_id,
40366 maz, mw, mh, x1, x2, y1, y2, deadx, deady);
40367
40368 for (maz_yy = mw; maz_yy < (mh * mw); maz_yy += 2 * mw)
40369 {
40370 for (maz_xx = 1; maz_xx < mw; maz_xx += 2)
40371 {
40372 if (maz[maz_yy + maz_xx] == 0)
40373 {
40374 switch (mvals.algorithm)
40375 {
40376 case DEPTH_FIRST:
40377 mazegen (maz_yy+maz_xx, maz, mw, mh, mvals.seed);
40378 break;
40379
40380 case PRIMS_ALGORITHM:
40381 prim (maz_yy+maz_xx, maz, mw, mh);
40382 break;
40383
40384 default:
40385 break;
40386 }
40387 }
40388 }
40389 }
40390 }
40391 else
40392 {
40393
40394 pos = mw + 1;
40395
40396 switch (mvals.algorithm)
40397 {
40398 case DEPTH_FIRST:
40399 mazegen (pos, maz, mw, mh, mvals.seed);
40400 break;
40401
40402 case PRIMS_ALGORITHM:
40403 prim (pos, maz, mw, mh);
40404 break;
40405
40406 default:
40407 break;
40408 }
40409 }
40410 }
40411
40412
40413
40414
40415 gimp_pixel_rgn_init (&dest_rgn, drawable, x1, y1, (x2 - x1), (y2 - y1),
40416 (!(0)), (!(0)));
40417
40418 progress = 0;
40419 max_progress = (x2 - x1) * (y2 - y1);
40420
40421
40422 get_colors (drawable, fg, bg);
40423
40424 gimp_progress_init (dcgettext (((void *)0), "Drawing Maze...", __LC_MESSAGES));
40425
40426 for (pr = gimp_pixel_rgns_register (1, &dest_rgn);
40427 pr != ((void *)0);
40428 pr = gimp_pixel_rgns_process (pr))
40429 {
40430 x = dest_rgn.x - x1 - deadx;
40431 y = dest_rgn.y - y1 - deady;
40432
40433
40434
40435
40436
40437 dx = mvals.width - (x % mvals.width);
40438 dy = mvals.height - (y % mvals.height);
40439 maz_x = x/mvals.width;
40440 maz_row = mw * (y/mvals.height);
40441
40442
40443 drawbox (&dest_rgn, 0, 0, dx, dy,
40444 (maz[maz_row + maz_x] == IN) ? fg : bg);
40445
40446 maz_xx=maz_x + 1;
40447
40448 for (xx=dx; xx < dest_rgn.w; xx+=mvals.width)
40449 {
40450 drawbox (&dest_rgn, xx, 0, mvals.width, dy,
40451 (maz[maz_row + maz_xx++] == IN) ? fg : bg);
40452 }
40453
40454 maz_yy = maz_row + mw;
40455
40456 for (yy = dy; yy < dest_rgn.h; yy += mvals.height)
40457 {
40458 drawbox (&dest_rgn, 0, yy, dx, mvals.height,
40459 (maz[maz_yy + maz_x] == IN) ? fg : bg);
40460 maz_yy += mw;
40461 }
40462
40463 maz_x++;
40464
40465 for (yy = dy; yy < dest_rgn.h; yy += mvals.height)
40466 {
40467 maz_xx = maz_x; maz_row+=mw;
40468
40469 for (xx = dx; xx < dest_rgn.w; xx += mvals.width)
40470 {
40471 drawbox (&dest_rgn, xx, yy, mvals.width, mvals.height,
40472 (maz[maz_row + maz_xx++] == IN) ? fg : bg);
40473 }
40474 }
40475
40476 progress += dest_rgn.w * dest_rgn.h;
40477 gimp_progress_update ((double) progress / (double) max_progress);
40478
40479 }
40480
40481 gimp_drawable_flush (drawable);
40482 gimp_drawable_merge_shadow (drawable->drawable_id, (!(0)));
40483 gimp_drawable_update (drawable->drawable_id, x1, y1, (x2 - x1), (y2 - y1));
40484 }
40485 # 560 "maze.c"
40486 static void
40487 mask_maze (gint32 drawable_ID, guchar *maz, guint mw, guint mh,
40488 gint x1, gint x2, gint y1, gint y2, gint deadx, gint deady)
40489 {
40490 gint32 selection_ID;
40491 GimpPixelRgn sel_rgn;
40492 gint xx0=0, yy0=0, xoff, yoff;
40493 guint xx=0, yy=0;
40494 guint foo=0;
40495
40496 gint cur_row, cur_col;
40497 gint x1half, x2half, y1half, y2half;
40498 guchar *linebuf;
40499
40500 if ((selection_ID =
40501 gimp_image_get_selection (gimp_drawable_get_image (drawable_ID))) == -1)
40502 return;
40503
40504 gimp_pixel_rgn_init (&sel_rgn, gimp_drawable_get (selection_ID),
40505 x1, y1, (x2-x1), (y2-y1),
40506 (0), (0));
40507 gimp_drawable_offsets (drawable_ID, &xoff, &yoff);
40508
40509
40510
40511
40512
40513
40514 linebuf = ((guchar *) g_malloc (((gsize) sizeof (guchar)) * ((gsize) (sel_rgn.w * sel_rgn.bpp))));
40515
40516 xx0 = x1 + deadx + mvals.width + xoff;
40517 yy0 = y1 + deady + mvals.height + yoff;
40518
40519 x1half = mvals.width / 2;
40520 x2half = mvals.width - 1;
40521
40522 y1half = mvals.height / 2;
40523 y2half = mvals.height - 1;
40524
40525
40526
40527
40528 yy = yy0 + y1half;
40529
40530 for (cur_row=1; cur_row < mh; cur_row += 2)
40531 {
40532 gimp_pixel_rgn_get_row (&sel_rgn, linebuf, x1+xoff, yy, (x2 - x1));
40533
40534 cur_col = 1; xx = mvals.width;
40535
40536 while (cur_col < mw)
40537 {
40538
40539 maz[cur_row * mw + cur_col] =
40540 (linebuf[xx] + linebuf[xx + x1half] + linebuf[xx+x2half]) / 5;
40541
40542 cur_col += 1;
40543 xx += mvals.width;
40544
40545
40546 if (cur_col < mw)
40547 maz[cur_row * mw + cur_col] =
40548 (linebuf[xx] + linebuf[xx + x1half] + linebuf[xx+x2half]) / 3;
40549
40550 cur_col += 1;
40551 xx += mvals.width;
40552
40553 }
40554
40555 yy += 2 * mvals.height;
40556
40557 }
40558
40559
40560
40561 g_free (linebuf);
40562 linebuf = ((guchar *) g_malloc (((gsize) sizeof (guchar)) * ((gsize) (sel_rgn.h * sel_rgn.bpp))));
40563
40564
40565
40566
40567 xx=xx0 + x1half;
40568 for (cur_col = 1; cur_col < mw; cur_col += 2)
40569 {
40570 gimp_pixel_rgn_get_col (&sel_rgn, linebuf, xx, y1, (y2-y1));
40571
40572 cur_row = 1; yy = mvals.height;
40573
40574 while (cur_row < mh)
40575 {
40576
40577 maz[cur_row * mw + cur_col] +=
40578 (linebuf[yy] + linebuf[yy+y2half]) / 5;
40579
40580 cur_row += 1;
40581 yy += mvals.height;
40582
40583
40584 if (cur_row < mh)
40585 maz[cur_row * mw + cur_col] =
40586 (linebuf[yy] + linebuf[yy + y1half] + linebuf[yy+y2half]) / 3;
40587
40588 cur_row += 1;
40589 yy += mvals.height;
40590 }
40591
40592 xx += 2 * mvals.width;
40593
40594 }
40595
40596 g_free (linebuf);
40597
40598
40599
40600 for (yy = 0; yy < mh; yy++)
40601 {
40602 for (xx = 0; xx < mw; xx++)
40603 {
40604 maz[foo] = ( maz[foo] < 127 ) ? MASKED : OUT;
40605 foo++;
40606 }
40607 }
40608 }