gdk-2.0.vala 67.5 KB
Newer Older
1
[CCode (cprefix = "Gdk", lower_case_cprefix = "gdk_")]
2
namespace Gdk {
3
	[CCode (cprefix = "GDK_AXIS_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
4
5
6
7
8
9
10
11
12
	public enum AxisUse {
		IGNORE,
		X,
		Y,
		PRESSURE,
		XTILT,
		YTILT,
		WHEEL,
		LAST,
13
	}
14
	[CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
15
16
17
	public enum ByteOrder {
		LSB_FIRST,
		MSB_FIRST,
18
	}
19
	[CCode (cprefix = "GDK_CAP_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
20
21
22
23
24
	public enum CapStyle {
		NOT_LAST,
		BUTT,
		ROUND,
		PROJECTING,
25
	}
26
	[CCode (cprefix = "GDK_COLORSPACE_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
27
28
	public enum Colorspace {
		RGB,
29
	}
30
	[CCode (cprefix = "GDK_CROSSING_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
31
32
33
34
	public enum CrossingMode {
		NORMAL,
		GRAB,
		UNGRAB,
35
	}
36
	[CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
	public enum CursorType {
		X_CURSOR,
		ARROW,
		BASED_ARROW_DOWN,
		BASED_ARROW_UP,
		BOAT,
		BOGOSITY,
		BOTTOM_LEFT_CORNER,
		BOTTOM_RIGHT_CORNER,
		BOTTOM_SIDE,
		BOTTOM_TEE,
		BOX_SPIRAL,
		CENTER_PTR,
		CIRCLE,
		CLOCK,
		COFFEE_MUG,
		CROSS,
		CROSS_REVERSE,
		CROSSHAIR,
		DIAMOND_CROSS,
		DOT,
		DOTBOX,
		DOUBLE_ARROW,
		DRAFT_LARGE,
		DRAFT_SMALL,
		DRAPED_BOX,
		EXCHANGE,
		FLEUR,
		GOBBLER,
		GUMBY,
		HAND1,
		HAND2,
		HEART,
		ICON,
		IRON_CROSS,
		LEFT_PTR,
		LEFT_SIDE,
		LEFT_TEE,
		LEFTBUTTON,
		LL_ANGLE,
		LR_ANGLE,
		MAN,
		MIDDLEBUTTON,
		MOUSE,
		PENCIL,
		PIRATE,
		PLUS,
		QUESTION_ARROW,
		RIGHT_PTR,
		RIGHT_SIDE,
		RIGHT_TEE,
		RIGHTBUTTON,
		RTL_LOGO,
		SAILBOAT,
		SB_DOWN_ARROW,
		SB_H_DOUBLE_ARROW,
		SB_LEFT_ARROW,
		SB_RIGHT_ARROW,
		SB_UP_ARROW,
		SB_V_DOUBLE_ARROW,
		SHUTTLE,
		SIZING,
		SPIDER,
		SPRAYCAN,
		STAR,
		TARGET,
		TCROSS,
		TOP_LEFT_ARROW,
		TOP_LEFT_CORNER,
		TOP_RIGHT_CORNER,
		TOP_SIDE,
		TOP_TEE,
		TREK,
		UL_ANGLE,
		UMBRELLA,
		UR_ANGLE,
		WATCH,
		XTERM,
		LAST_CURSOR,
		CURSOR_IS_PIXMAP,
	}
118
	[CCode (cprefix = "GDK_ACTION_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
119
120
121
122
123
124
125
126
	public enum DragAction {
		DEFAULT,
		COPY,
		MOVE,
		LINK,
		PRIVATE,
		ASK,
	}
127
	[CCode (cprefix = "GDK_DRAG_PROTO_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
128
129
130
131
132
133
134
135
136
	public enum DragProtocol {
		MOTIF,
		XDND,
		ROOTWIN,
		NONE,
		WIN32_DROPFILES,
		OLE2,
		LOCAL,
	}
137
	[CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
	public enum EventMask {
		EXPOSURE_MASK,
		POINTER_MOTION_MASK,
		POINTER_MOTION_HINT_MASK,
		BUTTON_MOTION_MASK,
		BUTTON1_MOTION_MASK,
		BUTTON2_MOTION_MASK,
		BUTTON3_MOTION_MASK,
		BUTTON_PRESS_MASK,
		BUTTON_RELEASE_MASK,
		KEY_PRESS_MASK,
		KEY_RELEASE_MASK,
		ENTER_NOTIFY_MASK,
		LEAVE_NOTIFY_MASK,
		FOCUS_CHANGE_MASK,
		STRUCTURE_MASK,
		PROPERTY_CHANGE_MASK,
		VISIBILITY_NOTIFY_MASK,
		PROXIMITY_IN_MASK,
		PROXIMITY_OUT_MASK,
		SUBSTRUCTURE_MASK,
		SCROLL_MASK,
		ALL_EVENTS_MASK,
	}
162
	[CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
	public enum EventType {
		NOTHING,
		DELETE,
		DESTROY,
		EXPOSE,
		MOTION_NOTIFY,
		BUTTON_PRESS,
		2BUTTON_PRESS,
		3BUTTON_PRESS,
		BUTTON_RELEASE,
		KEY_PRESS,
		KEY_RELEASE,
		ENTER_NOTIFY,
		LEAVE_NOTIFY,
		FOCUS_CHANGE,
		CONFIGURE,
		MAP,
		UNMAP,
		PROPERTY_NOTIFY,
		SELECTION_CLEAR,
		SELECTION_REQUEST,
		SELECTION_NOTIFY,
		PROXIMITY_IN,
		PROXIMITY_OUT,
		DRAG_ENTER,
		DRAG_LEAVE,
		DRAG_MOTION,
		DRAG_STATUS,
		DROP_START,
		DROP_FINISHED,
		CLIENT_EVENT,
		VISIBILITY_NOTIFY,
		NO_EXPOSE,
		SCROLL,
		WINDOW_STATE,
		SETTING,
		OWNER_CHANGE,
		GRAB_BROKEN,
	}
202
	[CCode (cprefix = "GDK_EXTENSION_EVENTS_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
203
204
205
206
207
	public enum ExtensionMode {
		NONE,
		ALL,
		CURSOR,
	}
208
	[CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
209
210
211
212
213
214
	public enum Fill {
		SOLID,
		TILED,
		STIPPLED,
		OPAQUE_STIPPLED,
	}
215
	[CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
216
217
218
219
	public enum FillRule {
		EVEN_ODD_RULE,
		WINDING_RULE,
	}
220
	[CCode (cprefix = "GDK_FILTER_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
221
222
223
224
225
	public enum FilterReturn {
		CONTINUE,
		TRANSLATE,
		REMOVE,
	}
226
	[CCode (cprefix = "GDK_FONT_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
227
228
229
230
	public enum FontType {
		FONT,
		FONTSET,
	}
231
	[CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
	public enum Function {
		COPY,
		INVERT,
		XOR,
		CLEAR,
		AND,
		AND_REVERSE,
		AND_INVERT,
		NOOP,
		OR,
		EQUIV,
		OR_REVERSE,
		COPY_INVERT,
		OR_INVERT,
		NAND,
		NOR,
		SET,
	}
250
	[CCode (cprefix = "GDK_GC_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
	public enum GCValuesMask {
		FOREGROUND,
		BACKGROUND,
		FONT,
		FUNCTION,
		FILL,
		TILE,
		STIPPLE,
		CLIP_MASK,
		SUBWINDOW,
		TS_X_ORIGIN,
		TS_Y_ORIGIN,
		CLIP_X_ORIGIN,
		CLIP_Y_ORIGIN,
		EXPOSURES,
		LINE_WIDTH,
		LINE_STYLE,
		CAP_STYLE,
		JOIN_STYLE,
	}
271
	[CCode (cprefix = "GDK_GRAB_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
272
273
274
275
276
277
278
	public enum GrabStatus {
		SUCCESS,
		ALREADY_GRABBED,
		INVALID_TIME,
		NOT_VIEWABLE,
		FROZEN,
	}
279
	[CCode (cprefix = "GDK_GRAVITY_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
280
281
282
283
284
285
286
287
288
289
290
291
	public enum Gravity {
		NORTH_WEST,
		NORTH,
		NORTH_EAST,
		WEST,
		CENTER,
		EAST,
		SOUTH_WEST,
		SOUTH,
		SOUTH_EAST,
		STATIC,
	}
292
	[CCode (cprefix = "GDK_IMAGE_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
293
294
295
296
297
	public enum ImageType {
		NORMAL,
		SHARED,
		FASTEST,
	}
298
	[CCode (cprefix = "GDK_INPUT_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
299
300
301
302
303
	public enum InputCondition {
		READ,
		WRITE,
		EXCEPTION,
	}
304
	[CCode (cprefix = "GDK_MODE_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
305
306
307
308
309
	public enum InputMode {
		DISABLED,
		SCREEN,
		WINDOW,
	}
310
	[CCode (cprefix = "GDK_SOURCE_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
311
312
313
314
315
316
	public enum InputSource {
		MOUSE,
		PEN,
		ERASER,
		CURSOR,
	}
317
	[CCode (cprefix = "GDK_INTERP_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
318
319
320
321
322
323
	public enum InterpType {
		NEAREST,
		TILES,
		BILINEAR,
		HYPER,
	}
324
	[CCode (cprefix = "GDK_JOIN_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
325
326
327
328
329
	public enum JoinStyle {
		MITER,
		ROUND,
		BEVEL,
	}
330
	[CCode (cprefix = "GDK_LINE_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
331
332
333
334
335
	public enum LineStyle {
		SOLID,
		ON_OFF_DASH,
		DOUBLE_DASH,
	}
336
	[CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
	public enum ModifierType {
		SHIFT_MASK,
		LOCK_MASK,
		CONTROL_MASK,
		MOD1_MASK,
		MOD2_MASK,
		MOD3_MASK,
		MOD4_MASK,
		MOD5_MASK,
		BUTTON1_MASK,
		BUTTON2_MASK,
		BUTTON3_MASK,
		BUTTON4_MASK,
		BUTTON5_MASK,
		SUPER_MASK,
		HYPER_MASK,
		META_MASK,
		RELEASE_MASK,
		MODIFIER_MASK,
	}
357
	[CCode (cprefix = "GDK_NOTIFY_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
358
359
360
361
362
363
364
365
	public enum NotifyType {
		ANCESTOR,
		VIRTUAL,
		INFERIOR,
		NONLINEAR,
		NONLINEAR_VIRTUAL,
		UNKNOWN,
	}
366
	[CCode (cprefix = "GDK_OVERLAP_RECTANGLE_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
367
368
369
370
371
	public enum OverlapType {
		IN,
		OUT,
		PART,
	}
372
	[CCode (cprefix = "GDK_OWNER_CHANGE_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
373
374
375
376
377
	public enum OwnerChange {
		NEW_OWNER,
		DESTROY,
		CLOSE,
	}
378
	[CCode (cprefix = "GDK_PIXBUF_ALPHA_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
379
380
381
382
	public enum PixbufAlphaMode {
		BILEVEL,
		FULL,
	}
383
	[CCode (cprefix = "GDK_PIXBUF_ERROR_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
384
385
386
387
388
389
390
391
	public enum PixbufError {
		CORRUPT_IMAGE,
		INSUFFICIENT_MEMORY,
		BAD_OPTION,
		UNKNOWN_TYPE,
		UNSUPPORTED_OPERATION,
		FAILED,
	}
392
	[CCode (cprefix = "GDK_PIXBUF_FRAME_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
393
394
395
396
397
	public enum PixbufFrameAction {
		RETAIN,
		DISPOSE,
		REVERT,
	}
398
	[CCode (cprefix = "GDK_PIXBUF_ROTATE_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
399
400
401
402
403
404
	public enum PixbufRotation {
		NONE,
		COUNTERCLOCKWISE,
		UPSIDEDOWN,
		CLOCKWISE,
	}
405
	[CCode (cprefix = "GDK_PIXDATA_DUMP_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
406
407
408
409
410
411
412
413
414
415
	public enum PixdataDumpType {
		PIXDATA_STREAM,
		PIXDATA_STRUCT,
		MACROS,
		GTYPES,
		CTYPES,
		STATIC,
		CONST,
		RLE_DECODER,
	}
416
	[CCode (cprefix = "GDK_PIXDATA_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
417
418
419
420
421
422
423
424
425
	public enum PixdataType {
		COLOR_TYPE_RGB,
		COLOR_TYPE_RGBA,
		COLOR_TYPE_MASK,
		SAMPLE_WIDTH_8,
		SAMPLE_WIDTH_MASK,
		ENCODING_RAW,
		ENCODING_RLE,
		ENCODING_MASK,
426
	}
427
	[CCode (cprefix = "GDK_PROP_MODE_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
428
429
430
431
	public enum PropMode {
		REPLACE,
		PREPEND,
		APPEND,
432
	}
433
	[CCode (cprefix = "GDK_PROPERTY_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
434
435
436
	public enum PropertyState {
		NEW_VALUE,
		DELETE,
437
	}
438
	[CCode (cprefix = "GDK_RGB_DITHER_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
439
440
441
442
	public enum RgbDither {
		NONE,
		NORMAL,
		MAX,
443
	}
444
	[CCode (cprefix = "GDK_SCROLL_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
445
446
447
448
449
	public enum ScrollDirection {
		UP,
		DOWN,
		LEFT,
		RIGHT,
450
	}
451
	[CCode (cprefix = "GDK_SETTING_ACTION_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
452
453
454
455
456
	public enum SettingAction {
		NEW,
		CHANGED,
		DELETED,
	}
457
	[CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
458
459
460
461
462
463
464
	public enum Status {
		OK,
		ERROR,
		ERROR_PARAM,
		ERROR_FILE,
		ERROR_MEM,
	}
465
	[CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
466
467
468
469
	public enum SubwindowMode {
		CLIP_BY_CHILDREN,
		INCLUDE_INFERIORS,
	}
470
	[CCode (cprefix = "GDK_VISIBILITY_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
471
472
473
474
475
	public enum VisibilityState {
		UNOBSCURED,
		PARTIAL,
		FULLY_OBSCURED,
	}
476
	[CCode (cprefix = "GDK_VISUAL_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
477
478
479
480
481
482
483
484
	public enum VisualType {
		STATIC_GRAY,
		GRAYSCALE,
		STATIC_COLOR,
		PSEUDO_COLOR,
		TRUE_COLOR,
		DIRECT_COLOR,
	}
485
	[CCode (cprefix = "GDK_DECOR_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
486
487
488
489
490
491
492
493
494
	public enum WMDecoration {
		ALL,
		BORDER,
		RESIZEH,
		TITLE,
		MENU,
		MINIMIZE,
		MAXIMIZE,
	}
495
	[CCode (cprefix = "GDK_FUNC_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
496
497
498
499
500
501
502
	public enum WMFunction {
		ALL,
		RESIZE,
		MOVE,
		MINIMIZE,
		MAXIMIZE,
		CLOSE,
503
	}
504
	[CCode (cprefix = "GDK_WA_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
505
506
507
508
509
510
511
512
513
	public enum WindowAttributesType {
		TITLE,
		X,
		Y,
		CURSOR,
		COLORMAP,
		VISUAL,
		WMCLASS,
		NOREDIR,
514
		TYPE_HINT,
515
	}
516
	[CCode (cprefix = "GDK_INPUT_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
517
518
519
	public enum WindowClass {
		OUTPUT,
		ONLY,
520
	}
521
	[CCode (cprefix = "GDK_WINDOW_EDGE_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
522
523
524
525
526
527
528
529
530
	public enum WindowEdge {
		NORTH_WEST,
		NORTH,
		NORTH_EAST,
		WEST,
		EAST,
		SOUTH_WEST,
		SOUTH,
		SOUTH_EAST,
531
	}
532
	[CCode (cprefix = "GDK_HINT_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
533
534
535
536
537
538
539
540
541
542
	public enum WindowHints {
		POS,
		MIN_SIZE,
		MAX_SIZE,
		BASE_SIZE,
		ASPECT,
		RESIZE_INC,
		WIN_GRAVITY,
		USER_POS,
		USER_SIZE,
543
	}
544
	[CCode (cprefix = "GDK_WINDOW_STATE_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
545
546
547
548
549
550
551
552
	public enum WindowState {
		WITHDRAWN,
		ICONIFIED,
		MAXIMIZED,
		STICKY,
		FULLSCREEN,
		ABOVE,
		BELOW,
553
	}
554
	[CCode (cprefix = "GDK_WINDOW_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
555
556
557
558
559
560
561
	public enum WindowType {
		ROOT,
		TOPLEVEL,
		CHILD,
		DIALOG,
		TEMP,
		FOREIGN,
562
	}
563
	[CCode (cprefix = "GDK_WINDOW_TYPE_HINT_", cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
	public enum WindowTypeHint {
		NORMAL,
		DIALOG,
		MENU,
		TOOLBAR,
		SPLASHSCREEN,
		UTILITY,
		DOCK,
		DESKTOP,
		DROPDOWN_MENU,
		POPUP_MENU,
		TOOLTIP,
		NOTIFICATION,
		COMBO,
		DND,
579
	}
Jürg Billeter's avatar
Jürg Billeter committed
580
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
581
	public class Colormap : GLib.Object {
582
583
		public int size;
		public Gdk.Color colors;
584
585
586
		public bool alloc_color (out Gdk.Color color, bool writeable, bool best_match);
		public int alloc_colors (out Gdk.Color colors, int ncolors, bool writeable, bool best_match, bool success);
		public void free_colors (out Gdk.Color colors, int ncolors);
587
588
		public weak Gdk.Screen get_screen ();
		public static weak Gdk.Colormap get_system ();
589
		public static GLib.Type get_type ();
590
		public weak Gdk.Visual get_visual ();
591
		public Colormap (Gdk.Visual visual, bool allocate);
592
		public void query_color (ulong pixel, out Gdk.Color result);
593
	}
Jürg Billeter's avatar
Jürg Billeter committed
594
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
595
	public class Device : GLib.Object {
596
597
		[NoArrayLength]
		public static void free_history (Gdk.TimeCoord[] events, int n_events);
Jürg Billeter's avatar
Jürg Billeter committed
598
		public bool get_axis (double axes, Gdk.AxisUse use, double value);
599
		public static weak Gdk.Device get_core_pointer ();
600
601
		[NoArrayLength]
		public bool get_history (Gdk.Window window, uint start, uint stop, Gdk.TimeCoord[] events, int n_events);
Jürg Billeter's avatar
Jürg Billeter committed
602
603
604
605
606
607
608
		public void get_state (Gdk.Window window, double axes, Gdk.ModifierType mask);
		public static GLib.Type get_type ();
		public void set_axis_use (uint index_, Gdk.AxisUse use);
		public void set_key (uint index_, uint keyval, Gdk.ModifierType modifiers);
		public bool set_mode (Gdk.InputMode mode);
		public void set_source (Gdk.InputSource source);
	}
Jürg Billeter's avatar
Jürg Billeter committed
609
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
610
611
612
613
614
	public class Display : GLib.Object {
		public void add_client_message_filter (Gdk.Atom message_type, Gdk.FilterFunc func, pointer data);
		public void beep ();
		public void close ();
		public void flush ();
615
616
		public weak Gdk.Device get_core_pointer ();
		public static weak Gdk.Display get_default ();
Jürg Billeter's avatar
Jürg Billeter committed
617
		public uint get_default_cursor_size ();
618
619
620
		public weak Gdk.Window get_default_group ();
		public virtual weak Gdk.Screen get_default_screen ();
		public weak Gdk.Event get_event ();
Jürg Billeter's avatar
Jürg Billeter committed
621
622
		public void get_maximal_cursor_size (uint width, uint height);
		public virtual int get_n_screens ();
623
		public weak string get_name ();
Jürg Billeter's avatar
Jürg Billeter committed
624
		public void get_pointer (Gdk.Screen screen, int x, int y, Gdk.ModifierType mask);
625
		public virtual weak Gdk.Screen get_screen (int screen_num);
Jürg Billeter's avatar
Jürg Billeter committed
626
		public static GLib.Type get_type ();
627
		public weak Gdk.Window get_window_at_pointer (int win_x, int win_y);
Jürg Billeter's avatar
Jürg Billeter committed
628
		public void keyboard_ungrab (uint time_);
629
630
631
632
		public weak GLib.List list_devices ();
		public static weak Gdk.Display open (string display_name);
		public static weak Gdk.Display open_default_libgtk_only ();
		public weak Gdk.Event peek_event ();
Jürg Billeter's avatar
Jürg Billeter committed
633
634
635
636
637
638
		public bool pointer_is_grabbed ();
		public void pointer_ungrab (uint time_);
		public void put_event (Gdk.Event event);
		public bool request_selection_notification (Gdk.Atom selection);
		public void set_double_click_distance (uint distance);
		public void set_double_click_time (uint msec);
639
		public weak Gdk.DisplayPointerHooks set_pointer_hooks (Gdk.DisplayPointerHooks new_hooks);
640
641
		[NoArrayLength]
		public void store_clipboard (Gdk.Window clipboard_window, uint time_, Gdk.Atom[] targets, int n_targets);
Jürg Billeter's avatar
Jürg Billeter committed
642
		public bool supports_clipboard_persistence ();
643
		public bool supports_composite ();
Jürg Billeter's avatar
Jürg Billeter committed
644
645
646
647
648
649
650
651
652
		public bool supports_cursor_alpha ();
		public bool supports_cursor_color ();
		public bool supports_input_shapes ();
		public bool supports_selection_notification ();
		public bool supports_shapes ();
		public void sync ();
		public void warp_pointer (Gdk.Screen screen, int x, int y);
		public signal void closed (bool is_error);
	}
Jürg Billeter's avatar
Jürg Billeter committed
653
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
654
	public class DisplayManager : GLib.Object {
655
		public static weak Gdk.DisplayManager get ();
656
		public weak Gdk.Display get_default_display ();
Jürg Billeter's avatar
Jürg Billeter committed
657
		public static GLib.Type get_type ();
658
		public weak GLib.SList list_displays ();
Jürg Billeter's avatar
Jürg Billeter committed
659
660
661
662
		public void set_default_display (Gdk.Display display);
		public weak Gdk.Display default_display { get; set; }
		public signal void display_opened (Gdk.Display display);
	}
Jürg Billeter's avatar
Jürg Billeter committed
663
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
664
	public class DragContext : GLib.Object {
665
666
		public Gdk.DragProtocol protocol;
		public bool is_source;
Jürg Billeter's avatar
Jürg Billeter committed
667
668
669
		public weak Gdk.Window source_window;
		public weak Gdk.Window dest_window;
		public weak GLib.List targets;
670
671
672
673
		public Gdk.DragAction actions;
		public Gdk.DragAction suggested_action;
		public Gdk.DragAction action;
		public uint start_time;
Jürg Billeter's avatar
Jürg Billeter committed
674
		public static GLib.Type get_type ();
675
		public DragContext ();
Jürg Billeter's avatar
Jürg Billeter committed
676
	}
Jürg Billeter's avatar
Jürg Billeter committed
677
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
678
	public class Drawable : GLib.Object {
679
		[CCode (cname = "gdk_draw_arc")]
Jürg Billeter's avatar
Jürg Billeter committed
680
		public virtual void draw_arc (Gdk.GC gc, bool filled, int x, int y, int width, int height, int angle1, int angle2);
681
		[CCode (cname = "gdk_draw_drawable")]
Jürg Billeter's avatar
Jürg Billeter committed
682
		public virtual void draw_drawable (Gdk.GC gc, Gdk.Drawable src, int xsrc, int ysrc, int xdest, int ydest, int width, int height);
683
		[CCode (cname = "gdk_draw_glyphs")]
Jürg Billeter's avatar
Jürg Billeter committed
684
		public virtual void draw_glyphs (Gdk.GC gc, Pango.Font font, int x, int y, Pango.GlyphString glyphs);
685
		[CCode (cname = "gdk_draw_glyphs_transformed")]
Jürg Billeter's avatar
Jürg Billeter committed
686
		public virtual void draw_glyphs_transformed (Gdk.GC gc, Pango.Matrix matrix, Pango.Font font, int x, int y, Pango.GlyphString glyphs);
687
		[NoArrayLength]
688
		[CCode (cname = "gdk_draw_gray_image")]
Jürg Billeter's avatar
Jürg Billeter committed
689
		public void draw_gray_image (Gdk.GC gc, int x, int y, int width, int height, Gdk.RgbDither dith, uchar[] buf, int rowstride);
690
		[CCode (cname = "gdk_draw_image")]
Jürg Billeter's avatar
Jürg Billeter committed
691
		public virtual void draw_image (Gdk.GC gc, Gdk.Image image, int xsrc, int ysrc, int xdest, int ydest, int width, int height);
692
		[NoArrayLength]
693
		[CCode (cname = "gdk_draw_indexed_image")]
Jürg Billeter's avatar
Jürg Billeter committed
694
		public void draw_indexed_image (Gdk.GC gc, int x, int y, int width, int height, Gdk.RgbDither dith, uchar[] buf, int rowstride, Gdk.RgbCmap cmap);
695
		[CCode (cname = "gdk_draw_layout")]
Jürg Billeter's avatar
Jürg Billeter committed
696
		public void draw_layout (Gdk.GC gc, int x, int y, Pango.Layout layout);
697
		[CCode (cname = "gdk_draw_layout_line")]
Jürg Billeter's avatar
Jürg Billeter committed
698
		public void draw_layout_line (Gdk.GC gc, int x, int y, Pango.LayoutLine line);
699
		[CCode (cname = "gdk_draw_layout_line_with_colors")]
700
		public void draw_layout_line_with_colors (Gdk.GC gc, int x, int y, Pango.LayoutLine line, out Gdk.Color foreground, out Gdk.Color background);
701
		[CCode (cname = "gdk_draw_layout_with_colors")]
702
		public void draw_layout_with_colors (Gdk.GC gc, int x, int y, Pango.Layout layout, out Gdk.Color foreground, out Gdk.Color background);
703
		[CCode (cname = "gdk_draw_line")]
Jürg Billeter's avatar
Jürg Billeter committed
704
		public void draw_line (Gdk.GC gc, int x1_, int y1_, int x2_, int y2_);
705
		[CCode (cname = "gdk_draw_lines")]
Jürg Billeter's avatar
Jürg Billeter committed
706
		public virtual void draw_lines (Gdk.GC gc, Gdk.Point points, int npoints);
707
		[CCode (cname = "gdk_draw_pixbuf")]
Jürg Billeter's avatar
Jürg Billeter committed
708
		public virtual void draw_pixbuf (Gdk.GC gc, Gdk.Pixbuf pixbuf, int src_x, int src_y, int dest_x, int dest_y, int width, int height, Gdk.RgbDither dither, int x_dither, int y_dither);
709
		[CCode (cname = "gdk_draw_point")]
Jürg Billeter's avatar
Jürg Billeter committed
710
		public void draw_point (Gdk.GC gc, int x, int y);
711
		[CCode (cname = "gdk_draw_points")]
Jürg Billeter's avatar
Jürg Billeter committed
712
		public virtual void draw_points (Gdk.GC gc, Gdk.Point points, int npoints);
713
		[CCode (cname = "gdk_draw_polygon")]
Jürg Billeter's avatar
Jürg Billeter committed
714
		public virtual void draw_polygon (Gdk.GC gc, bool filled, Gdk.Point points, int npoints);
715
		[CCode (cname = "gdk_draw_rectangle")]
Jürg Billeter's avatar
Jürg Billeter committed
716
		public virtual void draw_rectangle (Gdk.GC gc, bool filled, int x, int y, int width, int height);
717
		[NoArrayLength]
718
		[CCode (cname = "gdk_draw_rgb_32_image")]
Jürg Billeter's avatar
Jürg Billeter committed
719
		public void draw_rgb_32_image (Gdk.GC gc, int x, int y, int width, int height, Gdk.RgbDither dith, uchar[] buf, int rowstride);
720
		[NoArrayLength]
721
		[CCode (cname = "gdk_draw_rgb_32_image_dithalign")]
Jürg Billeter's avatar
Jürg Billeter committed
722
		public void draw_rgb_32_image_dithalign (Gdk.GC gc, int x, int y, int width, int height, Gdk.RgbDither dith, uchar[] buf, int rowstride, int xdith, int ydith);
723
		[NoArrayLength]
724
		[CCode (cname = "gdk_draw_rgb_image")]
Jürg Billeter's avatar
Jürg Billeter committed
725
		public void draw_rgb_image (Gdk.GC gc, int x, int y, int width, int height, Gdk.RgbDither dith, uchar[] rgb_buf, int rowstride);
726
		[NoArrayLength]
727
		[CCode (cname = "gdk_draw_rgb_image_dithalign")]
Jürg Billeter's avatar
Jürg Billeter committed
728
		public void draw_rgb_image_dithalign (Gdk.GC gc, int x, int y, int width, int height, Gdk.RgbDither dith, uchar[] rgb_buf, int rowstride, int xdith, int ydith);
729
		[CCode (cname = "gdk_draw_segments")]
Jürg Billeter's avatar
Jürg Billeter committed
730
		public virtual void draw_segments (Gdk.GC gc, Gdk.Segment segs, int nsegs);
731
		[NoArrayLength]
732
		[CCode (cname = "gdk_draw_trapezoids")]
733
		public virtual void draw_trapezoids (Gdk.GC gc, Gdk.Trapezoid[] trapezoids, int n_trapezoids);
734
735
736
		public weak Gdk.Image copy_to_image (Gdk.Image image, int src_x, int src_y, int dest_x, int dest_y, int width, int height);
		public virtual weak Gdk.Region get_clip_region ();
		public virtual weak Gdk.Colormap get_colormap ();
Jürg Billeter's avatar
Jürg Billeter committed
737
		public virtual int get_depth ();
738
739
740
		public weak Gdk.Display get_display ();
		public virtual weak Gdk.Image get_image (int x, int y, int width, int height);
		public virtual weak Gdk.Screen get_screen ();
Jürg Billeter's avatar
Jürg Billeter committed
741
742
		public virtual void get_size (int width, int height);
		public static GLib.Type get_type ();
743
744
		public virtual weak Gdk.Region get_visible_region ();
		public virtual weak Gdk.Visual get_visual ();
Jürg Billeter's avatar
Jürg Billeter committed
745
746
		public virtual void set_colormap (Gdk.Colormap colormap);
	}
Jürg Billeter's avatar
Jürg Billeter committed
747
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
748
749
	public class GC : GLib.Object {
		public void copy (Gdk.GC src_gc);
750
751
		public weak Gdk.Colormap get_colormap ();
		public weak Gdk.Screen get_screen ();
Jürg Billeter's avatar
Jürg Billeter committed
752
753
		public static GLib.Type get_type ();
		public virtual void get_values (Gdk.GCValues values);
754
755
		public GC (Gdk.Drawable drawable);
		public GC.with_values (Gdk.Drawable drawable, Gdk.GCValues values, Gdk.GCValuesMask values_mask);
Jürg Billeter's avatar
Jürg Billeter committed
756
		public void offset (int x_offset, int y_offset);
757
		public void set_background (out Gdk.Color color);
Jürg Billeter's avatar
Jürg Billeter committed
758
759
		public void set_clip_mask (Gdk.Bitmap mask);
		public void set_clip_origin (int x, int y);
760
		public void set_clip_rectangle (out Gdk.Rectangle rectangle);
Jürg Billeter's avatar
Jürg Billeter committed
761
762
		public void set_clip_region (Gdk.Region region);
		public void set_colormap (Gdk.Colormap colormap);
763
		[NoArrayLength]
Jürg Billeter's avatar
Jürg Billeter committed
764
765
766
		public virtual void set_dashes (int dash_offset, char[] dash_list, int n);
		public void set_exposures (bool exposures);
		public void set_fill (Gdk.Fill fill);
767
		public void set_foreground (out Gdk.Color color);
Jürg Billeter's avatar
Jürg Billeter committed
768
769
		public void set_function (Gdk.Function function);
		public void set_line_attributes (int line_width, Gdk.LineStyle line_style, Gdk.CapStyle cap_style, Gdk.JoinStyle join_style);
770
771
		public void set_rgb_bg_color (out Gdk.Color color);
		public void set_rgb_fg_color (out Gdk.Color color);
Jürg Billeter's avatar
Jürg Billeter committed
772
773
774
775
776
777
		public void set_stipple (Gdk.Pixmap stipple);
		public void set_subwindow (Gdk.SubwindowMode mode);
		public void set_tile (Gdk.Pixmap tile);
		public void set_ts_origin (int x, int y);
		public virtual void set_values (Gdk.GCValues values, Gdk.GCValuesMask values_mask);
	}
Jürg Billeter's avatar
Jürg Billeter committed
778
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
779
	public class Image : GLib.Object {
780
		public Gdk.ImageType type;
Jürg Billeter's avatar
Jürg Billeter committed
781
		public weak Gdk.Visual visual;
782
783
784
785
786
787
788
789
		public Gdk.ByteOrder byte_order;
		public int width;
		public int height;
		public ushort depth;
		public ushort bpp;
		public ushort bpl;
		public ushort bits_per_pixel;
		public pointer mem;
Jürg Billeter's avatar
Jürg Billeter committed
790
		public weak Gdk.Colormap colormap;
791
		public weak Gdk.Colormap get_colormap ();
Jürg Billeter's avatar
Jürg Billeter committed
792
793
		public uint get_pixel (int x, int y);
		public static GLib.Type get_type ();
794
		public Image (Gdk.ImageType type, Gdk.Visual visual, int width, int height);
Jürg Billeter's avatar
Jürg Billeter committed
795
796
797
		public void put_pixel (int x, int y, uint pixel);
		public void set_colormap (Gdk.Colormap colormap);
	}
Jürg Billeter's avatar
Jürg Billeter committed
798
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
799
	public class Keymap : GLib.Object {
800
		public static weak Gdk.Keymap get_default ();
Jürg Billeter's avatar
Jürg Billeter committed
801
802
		public Pango.Direction get_direction ();
		public bool get_entries_for_keycode (uint hardware_keycode, Gdk.KeymapKey keys, uint keyvals, int n_entries);
803
804
		[NoArrayLength]
		public bool get_entries_for_keyval (uint keyval, Gdk.KeymapKey[] keys, int n_keys);
805
		public static weak Gdk.Keymap get_for_display (Gdk.Display display);
Jürg Billeter's avatar
Jürg Billeter committed
806
807
808
809
810
811
		public static GLib.Type get_type ();
		public uint lookup_key (Gdk.KeymapKey key);
		public bool translate_keyboard_state (uint hardware_keycode, Gdk.ModifierType state, int group, uint keyval, int effective_group, int level, Gdk.ModifierType consumed_modifiers);
		public signal void direction_changed ();
		public signal void keys_changed ();
	}
Jürg Billeter's avatar
Jürg Billeter committed
812
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
813
	public class PangoRenderer : Pango.Renderer {
814
		public static weak Pango.Renderer get_default (Gdk.Screen screen);
Jürg Billeter's avatar
Jürg Billeter committed
815
		public static GLib.Type get_type ();
816
		public PangoRenderer (Gdk.Screen screen);
Jürg Billeter's avatar
Jürg Billeter committed
817
818
		public void set_drawable (Gdk.Drawable drawable);
		public void set_gc (Gdk.GC gc);
819
		public void set_override_color (Pango.RenderPart part, out Gdk.Color color);
Jürg Billeter's avatar
Jürg Billeter committed
820
		public void set_stipple (Pango.RenderPart part, Gdk.Bitmap stipple);
821
		[NoAccessorMethod]
Jürg Billeter's avatar
Jürg Billeter committed
822
823
		public weak Gdk.Screen screen { get; construct; }
	}
Jürg Billeter's avatar
Jürg Billeter committed
824
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
825
	public class Pixbuf : GLib.Object {
826
		public weak Gdk.Pixbuf add_alpha (bool substitute_color, uchar r, uchar g, uchar b);
Jürg Billeter's avatar
Jürg Billeter committed
827
828
		public void composite (Gdk.Pixbuf dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, Gdk.InterpType interp_type, int overall_alpha);
		public void composite_color (Gdk.Pixbuf dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, Gdk.InterpType interp_type, int overall_alpha, int check_x, int check_y, int check_size, uint color1, uint color2);
829
830
		public weak Gdk.Pixbuf composite_color_simple (int dest_width, int dest_height, Gdk.InterpType interp_type, int overall_alpha, int check_size, uint color1, uint color2);
		public weak Gdk.Pixbuf copy ();
Jürg Billeter's avatar
Jürg Billeter committed
831
832
833
		public void copy_area (int src_x, int src_y, int width, int height, Gdk.Pixbuf dest_pixbuf, int dest_x, int dest_y);
		public static GLib.Quark error_quark ();
		public void fill (uint pixel);
834
835
		public weak Gdk.Pixbuf flip (bool horizontal);
		public static weak Gdk.Pixbuf from_pixdata (Gdk.Pixdata pixdata, bool copy_pixels, GLib.Error error);
Jürg Billeter's avatar
Jürg Billeter committed
836
837
		public int get_bits_per_sample ();
		public Gdk.Colorspace get_colorspace ();
838
839
840
841
		public static weak Gdk.PixbufFormat get_file_info (string filename, int width, int height);
		public static weak GLib.SList get_formats ();
		public weak Gdk.Pixbuf get_from_drawable (Gdk.Drawable src, Gdk.Colormap cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height);
		public weak Gdk.Pixbuf get_from_image (Gdk.Image src, Gdk.Colormap cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height);
Jürg Billeter's avatar
Jürg Billeter committed
842
843
844
		public bool get_has_alpha ();
		public int get_height ();
		public int get_n_channels ();
845
		public weak string get_option (string key);
846
		[NoArrayLength]
847
		public weak uchar[] get_pixels ();
Jürg Billeter's avatar
Jürg Billeter committed
848
849
850
		public int get_rowstride ();
		public static GLib.Type get_type ();
		public int get_width ();
851
		public Pixbuf (Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height);
852
		[NoArrayLength]
853
854
855
856
		public Pixbuf.from_data (uchar[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, Gdk.PixbufDestroyNotify destroy_fn, pointer destroy_fn_data);
		public Pixbuf.from_file (string filename, GLib.Error error);
		public Pixbuf.from_file_at_scale (string filename, int width, int height, bool preserve_aspect_ratio, GLib.Error error);
		public Pixbuf.from_file_at_size (string filename, int width, int height, GLib.Error error);
857
		[NoArrayLength]
858
859
860
		public Pixbuf.from_inline (int data_length, uchar[] data, bool copy_pixels, GLib.Error error);
		public Pixbuf.from_xpm_data (string data);
		public Pixbuf.subpixbuf (int src_x, int src_y, int width, int height);
Jürg Billeter's avatar
Jürg Billeter committed
861
862
863
		public void render_pixmap_and_mask (Gdk.Pixmap pixmap_return, Gdk.Bitmap mask_return, int alpha_threshold);
		public void render_pixmap_and_mask_for_colormap (Gdk.Colormap colormap, Gdk.Pixmap pixmap_return, Gdk.Bitmap mask_return, int alpha_threshold);
		public void render_threshold_alpha (Gdk.Bitmap bitmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_threshold);
864
		public weak Gdk.Pixbuf rotate_simple (Gdk.PixbufRotation angle);
Jürg Billeter's avatar
Jürg Billeter committed
865
866
867
868
869
870
871
872
		public void saturate_and_pixelate (Gdk.Pixbuf dest, float saturation, bool pixelate);
		public bool save (string filename, string type, GLib.Error error);
		public bool save_to_buffer (string buffer, ulong buffer_size, string type, GLib.Error error);
		public bool save_to_bufferv (string buffer, ulong buffer_size, string type, string option_keys, string option_values, GLib.Error error);
		public bool save_to_callback (Gdk.PixbufSaveFunc save_func, pointer user_data, string type, GLib.Error error);
		public bool save_to_callbackv (Gdk.PixbufSaveFunc save_func, pointer user_data, string type, string option_keys, string option_values, GLib.Error error);
		public bool savev (string filename, string type, string option_keys, string option_values, GLib.Error error);
		public void scale (Gdk.Pixbuf dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, Gdk.InterpType interp_type);
873
		public weak Gdk.Pixbuf scale_simple (int dest_width, int dest_height, Gdk.InterpType interp_type);
874
		[NoAccessorMethod]
Jürg Billeter's avatar
Jürg Billeter committed
875
		public weak int n_channels { get; set; }
876
		[NoAccessorMethod]
Jürg Billeter's avatar
Jürg Billeter committed
877
		public weak Gdk.Colorspace colorspace { get; set; }
878
		[NoAccessorMethod]
Jürg Billeter's avatar
Jürg Billeter committed
879
		public weak bool has_alpha { get; set; }
880
		[NoAccessorMethod]
Jürg Billeter's avatar
Jürg Billeter committed
881
		public weak int bits_per_sample { get; set; }
882
		[NoAccessorMethod]
Jürg Billeter's avatar
Jürg Billeter committed
883
		public weak int width { get; set; }
884
		[NoAccessorMethod]
Jürg Billeter's avatar
Jürg Billeter committed
885
		public weak int height { get; set; }
886
		[NoAccessorMethod]
Jürg Billeter's avatar
Jürg Billeter committed
887
		public weak int rowstride { get; set; }
888
		[NoAccessorMethod]
Jürg Billeter's avatar
Jürg Billeter committed
889
		public weak pointer pixels { get; set; }
890
	}
Jürg Billeter's avatar
Jürg Billeter committed
891
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
892
893
	public class PixbufAnimation : GLib.Object {
		public int get_height ();
894
895
		public weak Gdk.PixbufAnimationIter get_iter (GLib.TimeVal start_time);
		public weak Gdk.Pixbuf get_static_image ();
Jürg Billeter's avatar
Jürg Billeter committed
896
897
898
		public static GLib.Type get_type ();
		public int get_width ();
		public bool is_static_image ();
899
		public PixbufAnimation.from_file (string filename, GLib.Error error);
900
	}
Jürg Billeter's avatar
Jürg Billeter committed
901
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
902
903
904
	public class PixbufAnimationIter : GLib.Object {
		public bool advance (GLib.TimeVal current_time);
		public int get_delay_time ();
905
		public weak Gdk.Pixbuf get_pixbuf ();
Jürg Billeter's avatar
Jürg Billeter committed
906
907
		public static GLib.Type get_type ();
		public bool on_currently_loading_frame ();
908
	}
Jürg Billeter's avatar
Jürg Billeter committed
909
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
910
911
	public class PixbufAniAnim : Gdk.PixbufAnimation {
		public static GLib.Type get_type ();
912
	}
Jürg Billeter's avatar
Jürg Billeter committed
913
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
914
915
	public class PixbufAniAnimIter : Gdk.PixbufAnimationIter {
		public static GLib.Type get_type ();
916
	}
Jürg Billeter's avatar
Jürg Billeter committed
917
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
918
919
920
	public class PixbufGifAnim : Gdk.PixbufAnimation {
		public void frame_composite (Gdk.PixbufFrame frame);
		public static GLib.Type get_type ();
921
	}
Jürg Billeter's avatar
Jürg Billeter committed
922
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
923
924
	public class PixbufGifAnimIter : Gdk.PixbufAnimationIter {
		public static GLib.Type get_type ();
925
	}
Jürg Billeter's avatar
Jürg Billeter committed
926
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
927
928
	public class PixbufLoader : GLib.Object {
		public bool close (GLib.Error error);
929
930
931
		public weak Gdk.PixbufAnimation get_animation ();
		public weak Gdk.PixbufFormat get_format ();
		public weak Gdk.Pixbuf get_pixbuf ();
Jürg Billeter's avatar
Jürg Billeter committed
932
		public static GLib.Type get_type ();
933
934
935
		public PixbufLoader ();
		public PixbufLoader.with_mime_type (string mime_type, GLib.Error error);
		public PixbufLoader.with_type (string image_type, GLib.Error error);
Jürg Billeter's avatar
Jürg Billeter committed
936
		public void set_size (int width, int height);
937
		[NoArrayLength]
Jürg Billeter's avatar
Jürg Billeter committed
938
		public bool write (uchar[] buf, ulong count, GLib.Error error);
Jürg Billeter's avatar
Jürg Billeter committed
939
940
941
942
		public signal void size_prepared (int width, int height);
		public signal void area_prepared ();
		public signal void area_updated (int x, int y, int width, int height);
		public signal void closed ();
943
	}
Jürg Billeter's avatar
Jürg Billeter committed
944
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
945
946
947
948
	public class PixbufSimpleAnim : Gdk.PixbufAnimation {
		public void add_frame (Gdk.Pixbuf pixbuf);
		public static GLib.Type get_type ();
		public static GLib.Type iter_get_type ();
949
		public PixbufSimpleAnim (int width, int height, float rate);
950
	}
Jürg Billeter's avatar
Jürg Billeter committed
951
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
952
	public class Pixmap : GLib.Object {
953
954
955
956
957
		public static weak Gdk.Pixmap colormap_create_from_xpm (Gdk.Drawable drawable, Gdk.Colormap colormap, Gdk.Bitmap mask, out Gdk.Color transparent_color, string filename);
		public static weak Gdk.Pixmap colormap_create_from_xpm_d (Gdk.Drawable drawable, Gdk.Colormap colormap, Gdk.Bitmap mask, out Gdk.Color transparent_color, string data);
		public static weak Gdk.Pixmap create_from_data (Gdk.Drawable drawable, string data, int width, int height, int depth, out Gdk.Color fg, out Gdk.Color bg);
		public static weak Gdk.Pixmap create_from_xpm (Gdk.Drawable drawable, Gdk.Bitmap mask, out Gdk.Color transparent_color, string filename);
		public static weak Gdk.Pixmap create_from_xpm_d (Gdk.Drawable drawable, Gdk.Bitmap mask, out Gdk.Color transparent_color, string data);
958
959
960
		public static weak Gdk.Pixmap foreign_new (pointer anid);
		public static weak Gdk.Pixmap foreign_new_for_display (Gdk.Display display, pointer anid);
		public static weak Gdk.Pixmap foreign_new_for_screen (Gdk.Screen screen, pointer anid, int width, int height, int depth);
Jürg Billeter's avatar
Jürg Billeter committed
961
		public static GLib.Type get_type ();
962
963
		public static weak Gdk.Pixmap lookup (pointer anid);
		public static weak Gdk.Pixmap lookup_for_display (Gdk.Display display, pointer anid);
964
		public Pixmap (Gdk.Drawable drawable, int width, int height, int depth);
965
	}
Jürg Billeter's avatar
Jürg Billeter committed
966
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
967
968
	public class Screen : GLib.Object {
		public void broadcast_client_message (Gdk.Event event);
969
970
971
972
		public weak Gdk.Window get_active_window ();
		public static weak Gdk.Screen get_default ();
		public weak Gdk.Colormap get_default_colormap ();
		public weak Gdk.Display get_display ();
973
		public weak Cairo.FontOptions get_font_options ();
Jürg Billeter's avatar
Jürg Billeter committed
974
975
976
977
		public int get_height ();
		public int get_height_mm ();
		public int get_monitor_at_point (int x, int y);
		public int get_monitor_at_window (Gdk.Window window);
978
		public void get_monitor_geometry (int monitor_num, out Gdk.Rectangle dest);
Jürg Billeter's avatar
Jürg Billeter committed
979
980
981
		public int get_n_monitors ();
		public int get_number ();
		public double get_resolution ();
982
983
984
985
986
		public weak Gdk.Colormap get_rgb_colormap ();
		public weak Gdk.Visual get_rgb_visual ();
		public weak Gdk.Colormap get_rgba_colormap ();
		public weak Gdk.Visual get_rgba_visual ();
		public weak Gdk.Window get_root_window ();
Jürg Billeter's avatar
Jürg Billeter committed
987
		public bool get_setting (string name, GLib.Value value);
988
989
990
		public weak Gdk.Colormap get_system_colormap ();
		public weak Gdk.Visual get_system_visual ();
		public weak GLib.List get_toplevel_windows ();
991
		public static GLib.Type get_type ();
Jürg Billeter's avatar
Jürg Billeter committed
992
993
		public int get_width ();
		public int get_width_mm ();
994
		public weak GLib.List get_window_stack ();
Jürg Billeter's avatar
Jürg Billeter committed
995
996
997
		public static int height ();
		public static int height_mm ();
		public bool is_composited ();
998
999
		public weak GLib.List list_visuals ();
		public weak string make_display_name ();
Jürg Billeter's avatar
Jürg Billeter committed
1000
		public void set_default_colormap (Gdk.Colormap colormap);
1001
		public void set_font_options (Cairo.FontOptions options);
Jürg Billeter's avatar
Jürg Billeter committed
1002
1003
1004
1005
1006
1007
1008
1009
		public void set_resolution (double dpi);
		public static int width ();
		public static int width_mm ();
		public weak pointer font_options { get; set; }
		public weak double resolution { get; set; }
		public signal void size_changed ();
		public signal void composited_changed ();
	}
Jürg Billeter's avatar
Jürg Billeter committed
1010
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
1011
	public class Visual : GLib.Object {
1012
		public static weak Gdk.Visual get_best ();
Jürg Billeter's avatar
Jürg Billeter committed
1013
1014
		public static int get_best_depth ();
		public static Gdk.VisualType get_best_type ();
1015
1016
1017
1018
1019
		public static weak Gdk.Visual get_best_with_both (int depth, Gdk.VisualType visual_type);
		public static weak Gdk.Visual get_best_with_depth (int depth);
		public static weak Gdk.Visual get_best_with_type (Gdk.VisualType visual_type);
		public weak Gdk.Screen get_screen ();
		public static weak Gdk.Visual get_system ();
Jürg Billeter's avatar
Jürg Billeter committed
1020
		public static GLib.Type get_type ();
1021
	}
Jürg Billeter's avatar
Jürg Billeter committed
1022
	[CCode (cheader_filename = "gdk/gdk.h")]
Jürg Billeter's avatar
Jürg Billeter committed
1023
1024
	public class Window : Gdk.Drawable {
		public void add_filter (Gdk.FilterFunc function, pointer data);
1025
		public static weak Gdk.Window at_pointer (int win_x, int win_y);
1026
		public void beep ();
Jürg Billeter's avatar
Jürg Billeter committed
1027
		public void begin_move_drag (int button, int root_x, int root_y, uint timestamp);
1028
		public void begin_paint_rect (out Gdk.Rectangle rectangle);
Jürg Billeter's avatar
Jürg Billeter committed
1029
1030
1031
1032
1033
1034
		public void begin_paint_region (Gdk.Region region);
		public void begin_resize_drag (Gdk.WindowEdge edge, int button, int root_x, int root_y, uint timestamp);
		public void clear ();
		public void clear_area (int x, int y, int width, int height);
		public void clear_area_e (int x, int y, int width, int height);
		public void configure_finished ();
1035
		public static void constrain_size (Gdk.Geometry geometry, uint flags, int width, int height, int new_width, int new_height);
Jürg Billeter's avatar
Jürg Billeter committed
1036
1037
1038
1039
1040
		public void deiconify ();
		public void destroy ();
		public void enable_synchronized_configure ();
		public void end_paint ();
		public void focus (uint timestamp);
1041
1042
		public static weak Gdk.Window foreign_new (pointer anid);
		public static weak Gdk.Window foreign_new_for_display (Gdk.Display display, pointer anid);
Jürg Billeter's avatar
Jürg Billeter committed
1043
1044
		public void freeze_updates ();
		public void fullscreen ();
1045
		public weak GLib.List get_children ();
Jürg Billeter's avatar
Jürg Billeter committed
1046
1047
		public bool get_decorations (Gdk.WMDecoration decorations);
		public Gdk.EventMask get_events ();
1048
		public void get_frame_extents (out Gdk.Rectangle rect);
Jürg Billeter's avatar