CodeWriter: Write [Diagnostics] attribute
[vala-lang.git] / vapi / gdk-2.0.vapi
blob5e70fa2b55990ab4942ccd48560eb14fe65c27c7
1 /* gdk-2.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gdk", lower_case_cprefix = "gdk_", gir_namespace = "Gdk", gir_version = "2.0")]
4 namespace Gdk {
5         [CCode (cprefix = "GdkSelection", lower_case_cprefix = "gdk_selection_")]
6         namespace Selection {
7                 [CCode (cheader_filename = "gdk/gdk.h")]
8                 public static void convert (Gdk.Window requestor, Gdk.Atom selection, Gdk.Atom target, uint32 time_);
9                 [CCode (cheader_filename = "gdk/gdk.h")]
10                 public static unowned Gdk.Window owner_get (Gdk.Atom selection);
11                 [CCode (cheader_filename = "gdk/gdk.h")]
12                 public static unowned Gdk.Window owner_get_for_display (Gdk.Display display, Gdk.Atom selection);
13                 [CCode (cheader_filename = "gdk/gdk.h")]
14                 public static bool owner_set (Gdk.Window owner, Gdk.Atom selection, uint32 time_, bool send_event);
15                 [CCode (cheader_filename = "gdk/gdk.h")]
16                 public static bool owner_set_for_display (Gdk.Display display, Gdk.Window owner, Gdk.Atom selection, uint32 time_, bool send_event);
17                 [CCode (cheader_filename = "gdk/gdk.h")]
18                 public static int property_get (Gdk.Window requestor, uchar[] data, out Gdk.Atom prop_type, int prop_format);
19                 [CCode (cheader_filename = "gdk/gdk.h")]
20                 public static void send_notify (Gdk.NativeWindow requestor, Gdk.Atom selection, Gdk.Atom target, Gdk.Atom property, uint32 time_);
21                 [CCode (cheader_filename = "gdk/gdk.h")]
22                 public static void send_notify_for_display (Gdk.Display display, Gdk.NativeWindow requestor, Gdk.Atom selection, Gdk.Atom target, Gdk.Atom property, uint32 time_);
23         }
24         [CCode (cheader_filename = "gdk/gdk.h")]
25         public class AppLaunchContext : GLib.AppLaunchContext {
26                 [CCode (has_construct_function = false)]
27                 public AppLaunchContext ();
28                 public void set_desktop (int desktop);
29                 public void set_display (Gdk.Display display);
30                 public void set_icon (GLib.Icon icon);
31                 public void set_icon_name (string icon_name);
32                 public void set_screen (Gdk.Screen screen);
33                 public void set_timestamp (uint32 timestamp);
34         }
35         [CCode (ref_function = "g_object_ref", unref_function = "g_object_unref", cheader_filename = "gdk/gdk.h")]
36         public class Bitmap {
37                 public weak GLib.Object parent_instance;
38                 public static Gdk.Bitmap create_from_data (Gdk.Drawable drawable, string data, int width, int height);
39         }
40         [CCode (cheader_filename = "gdk/gdk.h")]
41         public class Colormap : GLib.Object {
42                 public Gdk.Color colors;
43                 public int size;
44                 public weak Gdk.Visual visual;
45                 public void* windowing_data;
46                 [CCode (has_construct_function = false)]
47                 public Colormap (Gdk.Visual visual, bool allocate);
48                 public bool alloc_color (Gdk.Color color, bool writeable, bool best_match);
49                 public int alloc_colors (Gdk.Color[] colors, bool writeable, bool best_match, bool success);
50                 public void change (int ncolors);
51                 public void free_colors (Gdk.Color[] colors);
52                 public unowned Gdk.Screen get_screen ();
53                 public static unowned Gdk.Colormap get_system ();
54                 public unowned Gdk.Visual get_visual ();
55                 public void query_color (ulong pixel, out Gdk.Color _result);
56         }
57         [Compact]
58         [CCode (ref_function = "gdk_cursor_ref", unref_function = "gdk_cursor_unref", type_id = "GDK_TYPE_CURSOR", cheader_filename = "gdk/gdk.h")]
59         public class Cursor {
60                 public uint ref_count;
61                 public Gdk.CursorType type;
62                 [CCode (has_construct_function = false)]
63                 public Cursor (Gdk.CursorType cursor_type);
64                 [CCode (has_construct_function = false)]
65                 public Cursor.for_display (Gdk.Display display, Gdk.CursorType cursor_type);
66                 [CCode (has_construct_function = false)]
67                 public Cursor.from_name (Gdk.Display display, string name);
68                 [CCode (has_construct_function = false)]
69                 public Cursor.from_pixbuf (Gdk.Display display, Gdk.Pixbuf pixbuf, int x, int y);
70                 [CCode (has_construct_function = false)]
71                 public Cursor.from_pixmap (Gdk.Pixmap source, Gdk.Pixmap mask, Gdk.Color fg, Gdk.Color bg, int x, int y);
72                 public Gdk.CursorType get_cursor_type ();
73                 public unowned Gdk.Display get_display ();
74                 public unowned Gdk.Pixbuf get_image ();
75         }
76         [CCode (cheader_filename = "gdk/gdk.h")]
77         public class Device : GLib.Object {
78                 [CCode (array_length = false)]
79                 public weak Gdk.DeviceAxis[] axes;
80                 public bool has_cursor;
81                 [CCode (array_length = false)]
82                 public weak Gdk.DeviceKey[] keys;
83                 public Gdk.InputMode mode;
84                 public weak string name;
85                 public int num_axes;
86                 public int num_keys;
87                 public Gdk.InputSource source;
88                 [CCode (has_construct_function = false)]
89                 protected Device ();
90                 public static void free_history (Gdk.TimeCoord[] events);
91                 public bool get_axis ([CCode (array_length = false)] double[] axes, Gdk.AxisUse use, out double value);
92                 public Gdk.AxisUse get_axis_use (uint index);
93                 public static unowned Gdk.Device get_core_pointer ();
94                 public bool get_has_cursor ();
95                 public bool get_history (Gdk.Window window, uint32 start, uint32 stop, Gdk.TimeCoord[] events);
96                 public void get_key (uint index, uint keyval, Gdk.ModifierType modifiers);
97                 public Gdk.InputMode get_mode ();
98                 public int get_n_axes ();
99                 public unowned string get_name ();
100                 public Gdk.InputSource get_source ();
101                 public void get_state (Gdk.Window window, double axes, Gdk.ModifierType mask);
102                 public void set_axis_use (uint index_, Gdk.AxisUse use);
103                 public void set_key (uint index_, uint keyval, Gdk.ModifierType modifiers);
104                 public bool set_mode (Gdk.InputMode mode);
105                 public void set_source (Gdk.InputSource source);
106         }
107         [CCode (cheader_filename = "gdk/gdk.h")]
108         public class Display : GLib.Object {
109                 [CCode (array_length = false)]
110                 public weak uint32[] button_click_time;
111                 [CCode (array_length = false)]
112                 public weak int[] button_number;
113                 [CCode (array_length = false)]
114                 public weak Gdk.Window[] button_window;
115                 [CCode (array_length = false)]
116                 public weak int[] button_x;
117                 [CCode (array_length = false)]
118                 public weak int[] button_y;
119                 public weak Gdk.Device core_pointer;
120                 public uint double_click_distance;
121                 public uint double_click_time;
122                 public uint ignore_core_events;
123                 public weak Gdk.KeyboardGrabInfo keyboard_grab;
124                 public uint32 last_event_time;
125                 public weak GLib.List pointer_grabs;
126                 public weak Gdk.DisplayPointerHooks pointer_hooks;
127                 public weak Gdk.PointerWindowInfo pointer_info;
128                 public weak GLib.List queued_events;
129                 public weak GLib.List queued_tail;
130                 [CCode (has_construct_function = false)]
131                 protected Display ();
132                 public void add_client_message_filter (Gdk.Atom message_type, Gdk.FilterFunc func);
133                 public void beep ();
134                 public void close ();
135                 public void flush ();
136                 public unowned Gdk.Device get_core_pointer ();
137                 public static unowned Gdk.Display get_default ();
138                 public uint get_default_cursor_size ();
139                 public unowned Gdk.Window get_default_group ();
140                 public virtual unowned Gdk.Screen get_default_screen ();
141                 [NoWrapper]
142                 public virtual unowned string get_display_name ();
143                 public Gdk.Event get_event ();
144                 public void get_maximal_cursor_size (out uint width, out uint height);
145                 public virtual int get_n_screens ();
146                 public unowned string get_name ();
147                 public void get_pointer (out unowned Gdk.Screen screen, out int x, out int y, out Gdk.ModifierType mask);
148                 public virtual unowned Gdk.Screen get_screen (int screen_num);
149                 public unowned Gdk.Window get_window_at_pointer (int win_x, int win_y);
150                 public bool is_closed ();
151                 public void keyboard_ungrab (uint32 time_);
152                 public unowned GLib.List<Gdk.Device> list_devices ();
153                 public static unowned Gdk.Display open (string display_name);
154                 public static unowned Gdk.Display open_default_libgtk_only ();
155                 public Gdk.Event peek_event ();
156                 public bool pointer_is_grabbed ();
157                 public void pointer_ungrab (uint32 time_);
158                 public void put_event (Gdk.Event event);
159                 public bool request_selection_notification (Gdk.Atom selection);
160                 public void set_double_click_distance (uint distance);
161                 public void set_double_click_time (uint msec);
162                 public unowned Gdk.DisplayPointerHooks set_pointer_hooks (Gdk.DisplayPointerHooks new_hooks);
163                 public void store_clipboard (Gdk.Window clipboard_window, uint32 time_, Gdk.Atom[] targets);
164                 public bool supports_clipboard_persistence ();
165                 public bool supports_composite ();
166                 public bool supports_cursor_alpha ();
167                 public bool supports_cursor_color ();
168                 public bool supports_input_shapes ();
169                 public bool supports_selection_notification ();
170                 public bool supports_shapes ();
171                 public void sync ();
172                 public void warp_pointer (Gdk.Screen screen, int x, int y);
173                 public virtual signal void closed (bool is_error);
174         }
175         [CCode (cheader_filename = "gdk/gdk.h")]
176         public class DisplayManager : GLib.Object {
177                 [CCode (has_construct_function = false)]
178                 protected DisplayManager ();
179                 public static unowned Gdk.DisplayManager @get ();
180                 public unowned Gdk.Display get_default_display ();
181                 public GLib.SList<weak Gdk.Display> list_displays ();
182                 public void set_default_display (Gdk.Display display);
183                 public Gdk.Display default_display { get; set; }
184                 public virtual signal void display_opened (Gdk.Display display);
185         }
186         [Compact]
187         [CCode (cheader_filename = "gdk/gdk.h")]
188         public class DisplayPointerHooks {
189                 public weak GLib.Callback get_pointer;
190                 public weak GLib.Callback window_at_pointer;
191                 public weak GLib.Callback window_get_pointer;
192         }
193         [CCode (cheader_filename = "gdk/gdk.h")]
194         public class DragContext : GLib.Object {
195                 public Gdk.DragAction action;
196                 public Gdk.DragAction actions;
197                 public weak Gdk.Window dest_window;
198                 public bool is_source;
199                 public Gdk.DragProtocol protocol;
200                 public weak Gdk.Window source_window;
201                 public uint32 start_time;
202                 public Gdk.DragAction suggested_action;
203                 public weak GLib.List<Gdk.Atom> targets;
204                 public void* windowing_data;
205                 [CCode (has_construct_function = false)]
206                 public DragContext ();
207                 public Gdk.DragAction get_actions ();
208                 public Gdk.DragAction get_selected_action ();
209                 public unowned Gdk.Window get_source_window ();
210                 public Gdk.DragAction get_suggested_action ();
211                 public unowned GLib.List list_targets ();
212         }
213         [CCode (cheader_filename = "gdk/gdk.h")]
214         public class Drawable : GLib.Object {
215                 [CCode (has_construct_function = false)]
216                 protected Drawable ();
217                 [Deprecated (since = "2.22")]
218                 public unowned Gdk.Image copy_to_image (Gdk.Image image, int src_x, int src_y, int dest_x, int dest_y, int width, int height);
219                 [NoWrapper]
220                 public virtual unowned Cairo.Surface create_cairo_surface (int width, int height);
221                 [NoWrapper]
222                 public virtual unowned Gdk.GC create_gc (Gdk.GCValues values, Gdk.GCValuesMask mask);
223                 [CCode (cname = "gdk_draw_arc")]
224                 public virtual void draw_arc (Gdk.GC gc, bool filled, int x, int y, int width, int height, int angle1, int angle2);
225                 [CCode (cname = "gdk_draw_drawable")]
226                 public virtual void draw_drawable (Gdk.GC gc, Gdk.Drawable src, int xsrc, int ysrc, int xdest, int ydest, int width, int height);
227                 [CCode (cname = "gdk_draw_glyphs")]
228                 public virtual void draw_glyphs (Gdk.GC gc, Pango.Font font, int x, int y, Pango.GlyphString glyphs);
229                 [CCode (cname = "gdk_draw_glyphs_transformed")]
230                 public virtual void draw_glyphs_transformed (Gdk.GC gc, Pango.Matrix matrix, Pango.Font font, int x, int y, Pango.GlyphString glyphs);
231                 [CCode (cname = "gdk_draw_image")]
232                 public virtual void draw_image (Gdk.GC gc, Gdk.Image image, int xsrc, int ysrc, int xdest, int ydest, int width, int height);
233                 [CCode (cname = "gdk_draw_lines")]
234                 public virtual void draw_lines (Gdk.GC gc, Gdk.Point[] points);
235                 [CCode (cname = "gdk_draw_pixbuf")]
236                 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);
237                 [CCode (cname = "gdk_draw_points")]
238                 public virtual void draw_points (Gdk.GC gc, Gdk.Point[] points);
239                 [CCode (cname = "gdk_draw_polygon")]
240                 public virtual void draw_polygon (Gdk.GC gc, bool filled, Gdk.Point[] points);
241                 [CCode (cname = "gdk_draw_rectangle")]
242                 public virtual void draw_rectangle (Gdk.GC gc, bool filled, int x, int y, int width, int height);
243                 [CCode (cname = "gdk_draw_segments")]
244                 public virtual void draw_segments (Gdk.GC gc, Gdk.Segment[] segs);
245                 [CCode (cname = "gdk_draw_text")]
246                 public virtual void draw_text (Gdk.Font font, Gdk.GC gc, int x, int y, string text, int text_length);
247                 [CCode (cname = "gdk_draw_text_wc")]
248                 public virtual void draw_text_wc (Gdk.Font font, Gdk.GC gc, int x, int y, Gdk.WChar text, int text_length);
249                 [CCode (cname = "gdk_draw_trapezoids")]
250                 public virtual void draw_trapezoids (Gdk.GC gc, Gdk.Trapezoid[] trapezoids);
251                 public virtual unowned Gdk.Region get_clip_region ();
252                 public virtual unowned Gdk.Colormap get_colormap ();
253                 [NoWrapper]
254                 public virtual unowned Gdk.Drawable get_composite_drawable (int x, int y, int width, int height, int composite_x_offset, int composite_y_offset);
255                 public virtual int get_depth ();
256                 public unowned Gdk.Display get_display ();
257                 public virtual unowned Gdk.Image get_image (int x, int y, int width, int height);
258                 public virtual unowned Gdk.Screen get_screen ();
259                 public virtual void get_size (out int width, out int height);
260                 [NoWrapper]
261                 public virtual unowned Gdk.Drawable get_source_drawable ();
262                 public virtual unowned Gdk.Region get_visible_region ();
263                 public virtual unowned Gdk.Visual get_visual ();
264                 [NoWrapper]
265                 public virtual unowned Cairo.Surface ref_cairo_surface ();
266                 [NoWrapper]
267                 public virtual void set_cairo_clip (Cairo.Context cr);
268                 public virtual void set_colormap (Gdk.Colormap colormap);
269         }
270         [Compact]
271         [CCode (copy_function = "gdk_event_copy", type_id = "GDK_TYPE_EVENT", cheader_filename = "gdk/gdk.h")]
272         public class Event {
273                 public Gdk.EventAny any;
274                 public Gdk.EventButton button;
275                 public Gdk.EventClient client;
276                 public Gdk.EventConfigure configure;
277                 public Gdk.EventCrossing crossing;
278                 public Gdk.EventDND dnd;
279                 public Gdk.EventExpose expose;
280                 public Gdk.EventFocus focus_change;
281                 public Gdk.EventGrabBroken grab_broken;
282                 public Gdk.EventKey key;
283                 public Gdk.EventMotion motion;
284                 public Gdk.EventNoExpose no_expose;
285                 public Gdk.EventOwnerChange owner_change;
286                 public Gdk.EventProperty property;
287                 public Gdk.EventProximity proximity;
288                 public Gdk.EventScroll scroll;
289                 public Gdk.EventSelection selection;
290                 public Gdk.EventSetting setting;
291                 public Gdk.EventType type;
292                 public Gdk.EventVisibility visibility;
293                 public Gdk.EventWindowState window_state;
294                 [CCode (has_construct_function = false)]
295                 public Event (Gdk.EventType type);
296                 public Gdk.Event copy ();
297                 public static unowned Gdk.Event @get ();
298                 public bool get_axis (Gdk.AxisUse axis_use, out double value);
299                 public bool get_coords (out double x_win, out double y_win);
300                 public bool get_root_coords (out double x_root, out double y_root);
301                 public unowned Gdk.Screen get_screen ();
302                 public bool get_state (out Gdk.ModifierType state);
303                 public uint32 get_time ();
304                 public static void handler_set (owned Gdk.EventFunc func);
305                 public static unowned Gdk.Event peek ();
306                 public void put ();
307                 public static void request_motions (Gdk.EventMotion event);
308                 public bool send_client_message (Gdk.NativeWindow winid);
309                 public static bool send_client_message_for_display (Gdk.Display display, Gdk.Event event, Gdk.NativeWindow winid);
310                 public void send_clientmessage_toall ();
311                 public void set_screen (Gdk.Screen screen);
312         }
313         [Compact]
314         [CCode (ref_function = "gdk_font_ref", unref_function = "gdk_font_unref", type_id = "GDK_TYPE_FONT", cheader_filename = "gdk/gdk.h")]
315         public class Font {
316                 public int ascent;
317                 public int descent;
318                 public Gdk.FontType type;
319                 public bool equal (Gdk.Font fontb);
320                 public static unowned Gdk.Font from_description_for_display (Gdk.Display display, Pango.FontDescription font_desc);
321                 public int id ();
322                 public static unowned Gdk.Font load_for_display (Gdk.Display display, string font_name);
323         }
324         [Deprecated (since = "2.22")]
325         [CCode (cheader_filename = "gdk/gdk.h")]
326         public class GC : GLib.Object {
327                 public int clip_x_origin;
328                 public int clip_y_origin;
329                 public weak Gdk.Colormap colormap;
330                 public int ts_x_origin;
331                 public int ts_y_origin;
332                 [CCode (has_construct_function = false)]
333                 public GC (Gdk.Drawable drawable);
334                 public void copy (Gdk.GC src_gc);
335                 public unowned Gdk.Colormap get_colormap ();
336                 public unowned Gdk.Screen get_screen ();
337                 public virtual void get_values (out Gdk.GCValues values);
338                 public void offset (int x_offset, int y_offset);
339                 public void set_background (Gdk.Color color);
340                 public void set_clip_mask (Gdk.Bitmap mask);
341                 public void set_clip_origin (int x, int y);
342                 public void set_clip_rectangle (Gdk.Rectangle rectangle);
343                 public void set_clip_region (Gdk.Region region);
344                 public void set_colormap (Gdk.Colormap colormap);
345                 public virtual void set_dashes (int dash_offset, char[] dash_list, int n);
346                 public void set_exposures (bool exposures);
347                 public void set_fill (Gdk.Fill fill);
348                 public void set_foreground (Gdk.Color color);
349                 public void set_function (Gdk.Function function);
350                 public void set_line_attributes (int line_width, Gdk.LineStyle line_style, Gdk.CapStyle cap_style, Gdk.JoinStyle join_style);
351                 public void set_rgb_bg_color (Gdk.Color color);
352                 public void set_rgb_fg_color (Gdk.Color color);
353                 public void set_stipple (Gdk.Pixmap stipple);
354                 public void set_subwindow (Gdk.SubwindowMode mode);
355                 public void set_tile (Gdk.Pixmap tile);
356                 public void set_ts_origin (int x, int y);
357                 public virtual void set_values (Gdk.GCValues values, Gdk.GCValuesMask values_mask);
358                 [CCode (has_construct_function = false)]
359                 public GC.with_values (Gdk.Drawable drawable, Gdk.GCValues values, Gdk.GCValuesMask values_mask);
360         }
361         [Deprecated (since = "2.22")]
362         [CCode (cheader_filename = "gdk/gdk.h")]
363         public class Image : GLib.Object {
364                 public uint16 bits_per_pixel;
365                 public uint16 bpl;
366                 public uint16 bpp;
367                 public Gdk.ByteOrder byte_order;
368                 public weak Gdk.Colormap colormap;
369                 public uint16 depth;
370                 public int height;
371                 public void* mem;
372                 public Gdk.ImageType type;
373                 public weak Gdk.Visual visual;
374                 public int width;
375                 public void* windowing_data;
376                 [CCode (has_construct_function = false)]
377                 public Image (Gdk.ImageType type, Gdk.Visual visual, int width, int height);
378                 public uint16 get_bits_per_pixel ();
379                 public Gdk.ByteOrder get_byte_order ();
380                 public uint16 get_bytes_per_line ();
381                 public uint16 get_bytes_per_pixel ();
382                 public unowned Gdk.Colormap get_colormap ();
383                 public uint16 get_depth ();
384                 public int get_height ();
385                 public Gdk.ImageType get_image_type ();
386                 public uint32 get_pixel (int x, int y);
387                 public unowned Gdk.Visual get_visual ();
388                 public int get_width ();
389                 public void put_pixel (int x, int y, uint32 pixel);
390                 public void set_colormap (Gdk.Colormap colormap);
391         }
392         [Compact]
393         [CCode (cheader_filename = "gdk/gdk.h")]
394         public class KeyboardGrabInfo {
395                 public weak Gdk.Window native_window;
396                 public bool owner_events;
397                 public ulong serial;
398                 public uint32 time;
399                 public weak Gdk.Window window;
400                 public static bool libgtk_only (Gdk.Display display, out unowned Gdk.Window grab_window, bool owner_events);
401         }
402         [CCode (cheader_filename = "gdk/gdk.h")]
403         public class Keymap : GLib.Object {
404                 public weak Gdk.Display display;
405                 [CCode (has_construct_function = false)]
406                 protected Keymap ();
407                 public void add_virtual_modifiers (Gdk.ModifierType state);
408                 public bool get_caps_lock_state ();
409                 public static unowned Gdk.Keymap get_default ();
410                 public Pango.Direction get_direction ();
411                 public bool get_entries_for_keycode (uint hardware_keycode, out unowned Gdk.KeymapKey[] keys, out unowned uint[] keyvals, int n_entries);
412                 public bool get_entries_for_keyval (uint keyval, out unowned Gdk.KeymapKey[] keys);
413                 public static unowned Gdk.Keymap get_for_display (Gdk.Display display);
414                 public bool have_bidi_layouts ();
415                 public uint lookup_key (Gdk.KeymapKey key);
416                 public bool map_virtual_modifiers (Gdk.ModifierType state);
417                 public bool translate_keyboard_state (uint hardware_keycode, Gdk.ModifierType state, int group, uint keyval, int effective_group, int level, Gdk.ModifierType consumed_modifiers);
418                 public virtual signal void direction_changed ();
419                 public virtual signal void keys_changed ();
420                 public virtual signal void state_changed ();
421         }
422         [CCode (cheader_filename = "gdk/gdk.h")]
423         public class PangoRenderer : Pango.Renderer {
424                 [CCode (type = "PangoRenderer*", has_construct_function = false)]
425                 public PangoRenderer (Gdk.Screen screen);
426                 public static unowned Pango.Renderer get_default (Gdk.Screen screen);
427                 public void set_drawable (Gdk.Drawable drawable);
428                 public void set_gc (Gdk.GC gc);
429                 public void set_override_color (Pango.RenderPart part, Gdk.Color color);
430                 public void set_stipple (Pango.RenderPart part, Gdk.Bitmap stipple);
431                 [NoAccessorMethod]
432                 public Gdk.Screen screen { owned get; construct; }
433         }
434         [CCode (cheader_filename = "gdk/gdk.h")]
435         public class Pixmap : Gdk.Drawable {
436                 [CCode (has_construct_function = false)]
437                 public Pixmap (Gdk.Drawable? drawable, int width, int height, int depth);
438                 [Deprecated (since = "2.22")]
439                 public static unowned Gdk.Pixmap colormap_create_from_xpm (Gdk.Drawable drawable, Gdk.Colormap colormap, out unowned Gdk.Bitmap mask, Gdk.Color transparent_color, string filename);
440                 [Deprecated (since = "2.22")]
441                 public static unowned Gdk.Pixmap colormap_create_from_xpm_d (Gdk.Drawable drawable, Gdk.Colormap colormap, out unowned Gdk.Bitmap mask, Gdk.Color transparent_color, string data);
442                 [Deprecated (since = "2.22")]
443                 public static unowned Gdk.Pixmap create_from_data (Gdk.Drawable drawable, string data, int width, int height, int depth, Gdk.Color fg, Gdk.Color bg);
444                 [Deprecated (since = "2.22")]
445                 public static unowned Gdk.Pixmap create_from_xpm (Gdk.Drawable drawable, out unowned Gdk.Bitmap mask, Gdk.Color transparent_color, string filename);
446                 [Deprecated (since = "2.22")]
447                 public static unowned Gdk.Pixmap create_from_xpm_d (Gdk.Drawable drawable, out unowned Gdk.Bitmap mask, Gdk.Color transparent_color, string data);
448                 public static unowned Gdk.Pixmap foreign_new (Gdk.NativeWindow anid);
449                 public static unowned Gdk.Pixmap foreign_new_for_display (Gdk.Display display, Gdk.NativeWindow anid);
450                 public static unowned Gdk.Pixmap foreign_new_for_screen (Gdk.Screen screen, Gdk.NativeWindow anid, int width, int height, int depth);
451                 public static unowned Gdk.Pixmap lookup (Gdk.NativeWindow anid);
452                 public static unowned Gdk.Pixmap lookup_for_display (Gdk.Display display, Gdk.NativeWindow anid);
453         }
454         [Compact]
455         [CCode (cheader_filename = "gdk/gdk.h")]
456         public class PointerHooks {
457                 public weak GLib.Callback get_pointer;
458                 public weak GLib.Callback window_at_pointer;
459         }
460         [Compact]
461         [CCode (cheader_filename = "gdk/gdk.h")]
462         public class PointerWindowInfo {
463                 public uint32 button;
464                 public ulong motion_hint_serial;
465                 public uint32 state;
466                 public weak Gdk.Window toplevel_under_pointer;
467                 public double toplevel_x;
468                 public double toplevel_y;
469                 public weak Gdk.Window window_under_pointer;
470         }
471         [Compact]
472         [CCode (copy_function = "gdk_region_copy", free_function = "gdk_region_destroy", cheader_filename = "gdk/gdk.h")]
473         public class Region {
474                 [CCode (has_construct_function = false)]
475                 public Region ();
476                 public Gdk.Region copy ();
477                 public bool empty ();
478                 public bool equal (Gdk.Region region2);
479                 public void get_clipbox (out Gdk.Rectangle rectangle);
480                 public void get_rectangles (out Gdk.Rectangle[] rectangles);
481                 public void intersect (Gdk.Region source2);
482                 public void offset (int dx, int dy);
483                 public bool point_in (int x, int y);
484                 public static Gdk.Region polygon (Gdk.Point[] points, Gdk.FillRule fill_rule);
485                 public bool rect_equal (Gdk.Rectangle rectangle);
486                 public Gdk.OverlapType rect_in (Gdk.Rectangle rectangle);
487                 public static Gdk.Region rectangle (Gdk.Rectangle rectangle);
488                 public void shrink (int dx, int dy);
489                 public void spans_intersect_foreach (Gdk.Span[] spans, bool sorted, Gdk.SpanFunc function, void* data);
490                 public void subtract (Gdk.Region source2);
491                 public void union (Gdk.Region source2);
492                 public void union_with_rect (Gdk.Rectangle rect);
493                 public void xor (Gdk.Region source2);
494         }
495         [CCode (cheader_filename = "gdk/gdk.h")]
496         public class Screen : GLib.Object {
497                 public uint closed;
498                 [CCode (array_length = false)]
499                 public weak Gdk.GC[] exposure_gcs;
500                 [CCode (array_length = false)]
501                 public weak Gdk.GC[] normal_gcs;
502                 [CCode (array_length = false)]
503                 public weak Gdk.GC[] subwindow_gcs;
504                 [CCode (has_construct_function = false)]
505                 protected Screen ();
506                 public void broadcast_client_message (Gdk.Event event);
507                 public unowned Gdk.Window get_active_window ();
508                 public static unowned Gdk.Screen get_default ();
509                 public unowned Gdk.Colormap get_default_colormap ();
510                 public unowned Gdk.Display get_display ();
511                 public unowned Cairo.FontOptions get_font_options ();
512                 public int get_height ();
513                 public int get_height_mm ();
514                 public int get_monitor_at_point (int x, int y);
515                 public int get_monitor_at_window (Gdk.Window window);
516                 public void get_monitor_geometry (int monitor_num, out Gdk.Rectangle dest);
517                 public int get_monitor_height_mm (int monitor_num);
518                 public unowned string get_monitor_plug_name (int monitor_num);
519                 public int get_monitor_width_mm (int monitor_num);
520                 public int get_n_monitors ();
521                 public int get_number ();
522                 public int get_primary_monitor ();
523                 public double get_resolution ();
524                 public unowned Gdk.Colormap get_rgb_colormap ();
525                 public unowned Gdk.Visual get_rgb_visual ();
526                 public unowned Gdk.Colormap get_rgba_colormap ();
527                 public unowned Gdk.Visual get_rgba_visual ();
528                 public unowned Gdk.Window get_root_window ();
529                 public bool get_setting (string name, GLib.Value value);
530                 public unowned Gdk.Colormap get_system_colormap ();
531                 public unowned Gdk.Visual get_system_visual ();
532                 public GLib.List<weak Gdk.Window> get_toplevel_windows ();
533                 public int get_width ();
534                 public int get_width_mm ();
535                 public GLib.List<Gdk.Window>? get_window_stack ();
536                 public static int height ();
537                 public static int height_mm ();
538                 public bool is_composited ();
539                 public GLib.List<weak Gdk.Visual> list_visuals ();
540                 public unowned string make_display_name ();
541                 public void set_default_colormap (Gdk.Colormap colormap);
542                 public void set_font_options (Cairo.FontOptions options);
543                 public void set_resolution (double dpi);
544                 public static int width ();
545                 public static int width_mm ();
546                 public void* font_options { get; set; }
547                 public double resolution { get; set; }
548                 public virtual signal void composited_changed ();
549                 public virtual signal void monitors_changed ();
550                 public virtual signal void size_changed ();
551         }
552         [CCode (cheader_filename = "gdk/gdk.h")]
553         public class Visual : GLib.Object {
554                 public int bits_per_rgb;
555                 public uint32 blue_mask;
556                 public int blue_prec;
557                 public int blue_shift;
558                 public Gdk.ByteOrder byte_order;
559                 public int colormap_size;
560                 public int depth;
561                 public uint32 green_mask;
562                 public int green_prec;
563                 public int green_shift;
564                 public uint32 red_mask;
565                 public int red_prec;
566                 public int red_shift;
567                 public Gdk.VisualType type;
568                 [CCode (has_construct_function = false)]
569                 protected Visual ();
570                 public static unowned Gdk.Visual get_best ();
571                 public static int get_best_depth ();
572                 public static Gdk.VisualType get_best_type ();
573                 public static unowned Gdk.Visual get_best_with_both (int depth, Gdk.VisualType visual_type);
574                 public static unowned Gdk.Visual get_best_with_depth (int depth);
575                 public static unowned Gdk.Visual get_best_with_type (Gdk.VisualType visual_type);
576                 public int get_bits_per_rgb ();
577                 public void get_blue_pixel_details (uint32 mask, int shift, int precision);
578                 public Gdk.ByteOrder get_byte_order ();
579                 public int get_colormap_size ();
580                 public int get_depth ();
581                 public void get_green_pixel_details (uint32 mask, int shift, int precision);
582                 public void get_red_pixel_details (uint32 mask, int shift, int precision);
583                 public unowned Gdk.Screen get_screen ();
584                 public static unowned Gdk.Visual get_system ();
585                 public Gdk.VisualType get_visual_type ();
586         }
587         [CCode (cheader_filename = "gdk/gdk.h")]
588         public class Window : Gdk.Drawable {
589                 [CCode (has_construct_function = false)]
590                 public Window (Gdk.Window? parent, Gdk.WindowAttr attributes, int attributes_mask);
591                 public void add_filter (Gdk.FilterFunc function);
592                 public static unowned Gdk.Window at_pointer (out int win_x, out int win_y);
593                 public void beep ();
594                 public void begin_move_drag (int button, int root_x, int root_y, uint32 timestamp);
595                 public void begin_paint_rect (Gdk.Rectangle rectangle);
596                 public void begin_paint_region (Gdk.Region region);
597                 public void begin_resize_drag (Gdk.WindowEdge edge, int button, int root_x, int root_y, uint32 timestamp);
598                 public void clear ();
599                 public void clear_area (int x, int y, int width, int height);
600                 public void clear_area_e (int x, int y, int width, int height);
601                 public void configure_finished ();
602                 public static void constrain_size (Gdk.Geometry geometry, uint flags, int width, int height, out int new_width, out int new_height);
603                 public void coords_from_parent (double parent_x, double parent_y, double x, double y);
604                 public void coords_to_parent (double x, double y, double parent_x, double parent_y);
605                 public Cairo.Surface create_similar_surface (Cairo.Content content, int width, int height);
606                 public void deiconify ();
607                 public void destroy ();
608                 public void enable_synchronized_configure ();
609                 public void end_paint ();
610                 public bool ensure_native ();
611                 public void flush ();
612                 public void focus (uint32 timestamp);
613                 public static unowned Gdk.Window foreign_new (Gdk.NativeWindow anid);
614                 public static unowned Gdk.Window foreign_new_for_display (Gdk.Display display, Gdk.NativeWindow anid);
615                 public void freeze_toplevel_updates_libgtk_only ();
616                 public void freeze_updates ();
617                 public void fullscreen ();
618                 public void geometry_changed ();
619                 public bool get_accept_focus ();
620                 public unowned Cairo.Pattern get_background_pattern ();
621                 public GLib.List<weak Gdk.Window> get_children ();
622                 public bool get_composited ();
623                 public unowned Gdk.Cursor? get_cursor ();
624                 public bool get_decorations (out Gdk.WMDecoration decorations);
625                 public bool get_deskrelative_origin (out int x, out int y);
626                 public unowned Gdk.Window get_effective_parent ();
627                 public unowned Gdk.Window get_effective_toplevel ();
628                 public Gdk.EventMask get_events ();
629                 public bool get_focus_on_map ();
630                 public void get_frame_extents (out Gdk.Rectangle rect);
631                 public void get_geometry (out int x, out int y, out int width, out int height, out int depth);
632                 public unowned Gdk.Window get_group ();
633                 public void get_internal_paint_info (out unowned Gdk.Drawable real_drawable, out int x_offset, out int y_offset);
634                 public bool get_modal_hint ();
635                 public int get_origin (out int x, out int y);
636                 public unowned Gdk.Window get_parent ();
637                 public unowned Gdk.Window get_pointer (out int x, out int y, out Gdk.ModifierType mask);
638                 public void get_position (out int x, out int y);
639                 public void get_root_coords (int x, int y, int root_x, int root_y);
640                 public void get_root_origin (out int x, out int y);
641                 public Gdk.WindowState get_state ();
642                 public unowned Gdk.Window get_toplevel ();
643                 public Gdk.WindowTypeHint get_type_hint ();
644                 public unowned Gdk.Region get_update_area ();
645                 public void get_user_data (void* data);
646                 public Gdk.WindowType get_window_type ();
647                 public bool has_native ();
648                 public void hide ();
649                 public void iconify ();
650                 public void input_shape_combine_mask (Gdk.Bitmap? mask, int x, int y);
651                 public void input_shape_combine_region (Gdk.Region shape_region, int offset_x, int offset_y);
652                 public void invalidate_maybe_recurse (Gdk.Region region, GLib.Callback child_func);
653                 public void invalidate_rect (Gdk.Rectangle? rect, bool invalidate_children);
654                 public void invalidate_region (Gdk.Region region, bool invalidate_children);
655                 public bool is_destroyed ();
656                 public bool is_input_only ();
657                 public bool is_shaped ();
658                 public bool is_viewable ();
659                 public bool is_visible ();
660                 public static unowned Gdk.Window lookup (Gdk.NativeWindow anid);
661                 public static unowned Gdk.Window lookup_for_display (Gdk.Display display, Gdk.NativeWindow anid);
662                 public void lower ();
663                 public void maximize ();
664                 public void merge_child_input_shapes ();
665                 public void merge_child_shapes ();
666                 public void move (int x, int y);
667                 public void move_region (Gdk.Region region, int dx, int dy);
668                 public void move_resize (int x, int y, int width, int height);
669                 public unowned GLib.List<Gdk.Window> peek_children ();
670                 public static void process_all_updates ();
671                 public void process_updates (bool update_children);
672                 public void raise ();
673                 public void register_dnd ();
674                 public void remove_filter (Gdk.FilterFunc function);
675                 public void remove_redirection ();
676                 public void reparent (Gdk.Window new_parent, int x, int y);
677                 public void resize (int width, int height);
678                 public void restack (Gdk.Window sibling, bool above);
679                 public void scroll (int dx, int dy);
680                 public void set_accept_focus (bool accept_focus);
681                 public void set_back_pixmap (Gdk.Pixmap? pixmap, bool parent_relative);
682                 public void set_background (Gdk.Color color);
683                 public void set_child_input_shapes ();
684                 public void set_child_shapes ();
685                 public void set_composited (bool composited);
686                 public void set_cursor (Gdk.Cursor? cursor);
687                 public static void set_debug_updates (bool setting);
688                 public void set_decorations (Gdk.WMDecoration decorations);
689                 public void set_events (Gdk.EventMask event_mask);
690                 public void set_focus_on_map (bool focus_on_map);
691                 public void set_functions (Gdk.WMFunction functions);
692                 public void set_geometry_hints (Gdk.Geometry geometry, Gdk.WindowHints geom_mask);
693                 public void set_group (Gdk.Window leader);
694                 public void set_icon (Gdk.Window icon_window, Gdk.Pixmap pixmap, Gdk.Bitmap mask);
695                 public void set_icon_list (GLib.List<Gdk.Pixbuf> pixbufs);
696                 public void set_icon_name (string name);
697                 public void set_keep_above (bool setting);
698                 public void set_keep_below (bool setting);
699                 public void set_modal_hint (bool modal);
700                 public void set_opacity (double opacity);
701                 public void set_override_redirect (bool override_redirect);
702                 public void set_role (string role);
703                 public void set_skip_pager_hint (bool skips_pager);
704                 public void set_skip_taskbar_hint (bool skips_taskbar);
705                 public void set_startup_id (string startup_id);
706                 public bool set_static_gravities (bool use_static);
707                 public void set_title (string title);
708                 public void set_transient_for (Gdk.Window parent);
709                 public void set_type_hint (Gdk.WindowTypeHint hint);
710                 public void set_urgency_hint (bool urgent);
711                 public void set_user_data (void* user_data);
712                 public void shape_combine_mask (Gdk.Bitmap mask, int x, int y);
713                 public void shape_combine_region (Gdk.Region shape_region, int offset_x, int offset_y);
714                 public void show ();
715                 public void show_unraised ();
716                 public void stick ();
717                 public void thaw_toplevel_updates_libgtk_only ();
718                 public void thaw_updates ();
719                 public void unfullscreen ();
720                 public void unmaximize ();
721                 public void unstick ();
722                 public void withdraw ();
723                 public Gdk.Cursor cursor { get; set; }
724                 public virtual signal void from_embedder (double p0, double p1, void* p2, void* p3);
725                 public virtual signal unowned Gdk.Window pick_embedded_child (double p0, double p1);
726                 public virtual signal void to_embedder (double p0, double p1, void* p2, void* p3);
727         }
728         [CCode (cheader_filename = "gdk/gdk.h")]
729         [SimpleType]
730         public struct Atom {
731                 [CCode (cname = "GDK_NONE")]
732                 public static Gdk.Atom NONE;
733                 public static Gdk.Atom intern (string atom_name, bool only_if_exists);
734                 public static Gdk.Atom intern_static_string (string atom_name);
735                 public unowned string name ();
736         }
737         [CCode (type_id = "GDK_TYPE_COLOR", cheader_filename = "gdk/gdk.h")]
738         public struct Color {
739                 public uint32 pixel;
740                 public uint16 red;
741                 public uint16 green;
742                 public uint16 blue;
743                 public Gdk.Color copy ();
744                 public bool equal (Gdk.Color colorb);
745                 public void free ();
746                 public uint hash ();
747                 public static bool parse (string spec, out Gdk.Color color);
748                 public string to_string ();
749         }
750         [CCode (type_id = "GDK_TYPE_DEVICE_AXIS", cheader_filename = "gdk/gdk.h")]
751         public struct DeviceAxis {
752                 public Gdk.AxisUse use;
753                 public double min;
754                 public double max;
755         }
756         [CCode (type_id = "GDK_TYPE_DEVICE_KEY", cheader_filename = "gdk/gdk.h")]
757         public struct DeviceKey {
758                 public uint keyval;
759                 public Gdk.ModifierType modifiers;
760         }
761         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
762         public struct EventAny {
763                 public Gdk.EventType type;
764                 public weak Gdk.Window window;
765                 public char send_event;
766         }
767         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
768         public struct EventButton {
769                 public Gdk.EventType type;
770                 public weak Gdk.Window window;
771                 public char send_event;
772                 public uint32 time;
773                 public double x;
774                 public double y;
775                 [CCode (array_length = false)]
776                 public weak double[] axes;
777                 public Gdk.ModifierType state;
778                 public uint button;
779                 public weak Gdk.Device device;
780                 public double x_root;
781                 public double y_root;
782         }
783         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
784         public struct EventClient {
785                 public Gdk.EventType type;
786                 public weak Gdk.Window window;
787                 public char send_event;
788                 public Gdk.Atom message_type;
789                 public ushort data_format;
790                 public void* data;
791         }
792         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
793         public struct EventConfigure {
794                 public Gdk.EventType type;
795                 public weak Gdk.Window window;
796                 public char send_event;
797                 public int x;
798                 public int y;
799                 public int width;
800                 public int height;
801         }
802         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
803         public struct EventCrossing {
804                 public Gdk.EventType type;
805                 public weak Gdk.Window window;
806                 public char send_event;
807                 public weak Gdk.Window subwindow;
808                 public uint32 time;
809                 public double x;
810                 public double y;
811                 public double x_root;
812                 public double y_root;
813                 public Gdk.CrossingMode mode;
814                 public Gdk.NotifyType detail;
815                 public bool focus;
816                 public Gdk.ModifierType state;
817         }
818         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
819         public struct EventDND {
820                 public Gdk.EventType type;
821                 public weak Gdk.Window window;
822                 public char send_event;
823                 public weak Gdk.DragContext context;
824                 public uint32 time;
825                 public short x_root;
826                 public short y_root;
827         }
828         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
829         public struct EventExpose {
830                 public Gdk.EventType type;
831                 public weak Gdk.Window window;
832                 public char send_event;
833                 public Gdk.Rectangle area;
834                 public weak Gdk.Region region;
835                 public int count;
836         }
837         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
838         public struct EventFocus {
839                 public Gdk.EventType type;
840                 public weak Gdk.Window window;
841                 public char send_event;
842                 public int16 @in;
843         }
844         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
845         public struct EventGrabBroken {
846                 public Gdk.EventType type;
847                 public weak Gdk.Window window;
848                 public char send_event;
849                 public bool keyboard;
850                 public bool implicit;
851                 public weak Gdk.Window grab_window;
852         }
853         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
854         public struct EventKey {
855                 public Gdk.EventType type;
856                 public weak Gdk.Window window;
857                 public char send_event;
858                 public uint32 time;
859                 public Gdk.ModifierType state;
860                 public uint keyval;
861                 public int length;
862                 [CCode (cname = "string")]
863                 public weak string str;
864                 public uint16 hardware_keycode;
865                 public uchar group;
866                 public uint is_modifier;
867         }
868         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
869         public struct EventMotion {
870                 public Gdk.EventType type;
871                 public weak Gdk.Window window;
872                 public char send_event;
873                 public uint32 time;
874                 public double x;
875                 public double y;
876                 [CCode (array_length = false)]
877                 public weak double[] axes;
878                 public Gdk.ModifierType state;
879                 public bool is_hint;
880                 public weak Gdk.Device device;
881                 public double x_root;
882                 public double y_root;
883         }
884         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
885         public struct EventNoExpose {
886                 public Gdk.EventType type;
887                 public weak Gdk.Window window;
888                 public char send_event;
889         }
890         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
891         public struct EventOwnerChange {
892                 public Gdk.EventType type;
893                 public weak Gdk.Window window;
894                 public char send_event;
895                 public Gdk.NativeWindow owner;
896                 public Gdk.OwnerChange reason;
897                 public Gdk.Atom selection;
898                 public uint32 time;
899                 public uint32 selection_time;
900         }
901         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
902         public struct EventProperty {
903                 public Gdk.EventType type;
904                 public weak Gdk.Window window;
905                 public char send_event;
906                 public Gdk.Atom atom;
907                 public uint32 time;
908                 public Gdk.PropertyState state;
909         }
910         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
911         public struct EventProximity {
912                 public Gdk.EventType type;
913                 public weak Gdk.Window window;
914                 public char send_event;
915                 public uint32 time;
916                 public weak Gdk.Device device;
917         }
918         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
919         public struct EventScroll {
920                 public Gdk.EventType type;
921                 public weak Gdk.Window window;
922                 public char send_event;
923                 public uint32 time;
924                 public double x;
925                 public double y;
926                 public Gdk.ModifierType state;
927                 public Gdk.ScrollDirection direction;
928                 public weak Gdk.Device device;
929                 public double x_root;
930                 public double y_root;
931         }
932         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
933         public struct EventSelection {
934                 public Gdk.EventType type;
935                 public weak Gdk.Window window;
936                 public char send_event;
937                 public Gdk.Atom selection;
938                 public Gdk.Atom target;
939                 public Gdk.Atom property;
940                 public uint32 time;
941                 public Gdk.NativeWindow requestor;
942         }
943         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
944         public struct EventSetting {
945                 public Gdk.EventType type;
946                 public weak Gdk.Window window;
947                 public char send_event;
948                 public Gdk.SettingAction action;
949                 public weak string name;
950         }
951         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
952         public struct EventVisibility {
953                 public Gdk.EventType type;
954                 public weak Gdk.Window window;
955                 public char send_event;
956                 public Gdk.VisibilityState state;
957         }
958         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
959         public struct EventWindowState {
960                 public Gdk.EventType type;
961                 public weak Gdk.Window window;
962                 public char send_event;
963                 public Gdk.WindowState changed_mask;
964                 public Gdk.WindowState new_window_state;
965         }
966         [CCode (type_id = "GDK_TYPE_GC_VALUES", cheader_filename = "gdk/gdk.h")]
967         public struct GCValues {
968                 public Gdk.Color foreground;
969                 public Gdk.Color background;
970                 public weak Gdk.Font font;
971                 public Gdk.Function function;
972                 public Gdk.Fill fill;
973                 public weak Gdk.Pixmap tile;
974                 public weak Gdk.Pixmap stipple;
975                 public weak Gdk.Pixmap clip_mask;
976                 public Gdk.SubwindowMode subwindow_mode;
977                 public int ts_x_origin;
978                 public int ts_y_origin;
979                 public int clip_x_origin;
980                 public int clip_y_origin;
981                 public int graphics_exposures;
982                 public int line_width;
983                 public Gdk.LineStyle line_style;
984                 public Gdk.CapStyle cap_style;
985                 public Gdk.JoinStyle join_style;
986         }
987         [CCode (type_id = "GDK_TYPE_GEOMETRY", cheader_filename = "gdk/gdk.h")]
988         public struct Geometry {
989                 public int min_width;
990                 public int min_height;
991                 public int max_width;
992                 public int max_height;
993                 public int base_width;
994                 public int base_height;
995                 public int width_inc;
996                 public int height_inc;
997                 public double min_aspect;
998                 public double max_aspect;
999                 public Gdk.Gravity win_gravity;
1000         }
1001         [CCode (type_id = "GDK_TYPE_KEYMAP_KEY", cheader_filename = "gdk/gdk.h")]
1002         public struct KeymapKey {
1003                 public uint keycode;
1004                 public int group;
1005                 public int level;
1006         }
1007         [CCode (cheader_filename = "gdk/gdk.h")]
1008         [SimpleType]
1009         public struct NativeWindow {
1010         }
1011         [CCode (type_id = "GDK_TYPE_PANGO_ATTR_EMBOSS_COLOR", cheader_filename = "gdk/gdk.h")]
1012         public struct PangoAttrEmbossColor {
1013                 public weak Pango.Attribute attr;
1014                 public Pango.Color color;
1015                 [CCode (cname = "gdk_pango_attr_emboss_color_new", has_construct_function = false)]
1016                 public PangoAttrEmbossColor (Gdk.Color color);
1017         }
1018         [CCode (type_id = "GDK_TYPE_PANGO_ATTR_EMBOSSED", cheader_filename = "gdk/gdk.h")]
1019         public struct PangoAttrEmbossed {
1020                 public weak Pango.Attribute attr;
1021                 public bool embossed;
1022                 [CCode (cname = "gdk_pango_attr_embossed_new", has_construct_function = false)]
1023                 public PangoAttrEmbossed (bool embossed);
1024         }
1025         [CCode (type_id = "GDK_TYPE_PANGO_ATTR_STIPPLE", cheader_filename = "gdk/gdk.h")]
1026         public struct PangoAttrStipple {
1027                 public weak Pango.Attribute attr;
1028                 public weak Gdk.Bitmap stipple;
1029                 [CCode (cname = "gdk_pango_attr_stipple_new", has_construct_function = false)]
1030                 public PangoAttrStipple (Gdk.Bitmap stipple);
1031         }
1032         [CCode (type_id = "GDK_TYPE_POINT", cheader_filename = "gdk/gdk.h")]
1033         public struct Point {
1034                 public int x;
1035                 public int y;
1036         }
1037         [CCode (type_id = "GDK_TYPE_RECTANGLE", cheader_filename = "gdk/gdk.h")]
1038         public struct Rectangle {
1039                 public int x;
1040                 public int y;
1041                 public int width;
1042                 public int height;
1043                 public bool intersect (Gdk.Rectangle src2, out Gdk.Rectangle dest);
1044                 public void union (Gdk.Rectangle src2, out Gdk.Rectangle dest);
1045         }
1046         [Deprecated (since = "2.22")]
1047         [CCode (type_id = "GDK_TYPE_RGB_CMAP", cheader_filename = "gdk/gdk.h")]
1048         public struct RgbCmap {
1049                 [CCode (array_length = false)]
1050                 public weak uint32[] colors;
1051                 public int n_colors;
1052                 public weak GLib.SList info_list;
1053                 [Deprecated (since = "2.22")]
1054                 [CCode (cname = "gdk_rgb_cmap_new", has_construct_function = false)]
1055                 public RgbCmap (uint32[] colors);
1056                 [Deprecated (since = "2.22")]
1057                 public void free ();
1058         }
1059         [CCode (type_id = "GDK_TYPE_SEGMENT", cheader_filename = "gdk/gdk.h")]
1060         public struct Segment {
1061                 public int x1;
1062                 public int y1;
1063                 public int x2;
1064                 public int y2;
1065         }
1066         [CCode (type_id = "GDK_TYPE_SPAN", cheader_filename = "gdk/gdk.h")]
1067         public struct Span {
1068                 public int x;
1069                 public int y;
1070                 public int width;
1071         }
1072         [CCode (type_id = "GDK_TYPE_TIME_COORD", cheader_filename = "gdk/gdk.h")]
1073         public struct TimeCoord {
1074                 public uint32 time;
1075                 [CCode (array_length = false)]
1076                 public weak double[] axes;
1077         }
1078         [CCode (type_id = "GDK_TYPE_TRAPEZOID", cheader_filename = "gdk/gdk.h")]
1079         public struct Trapezoid {
1080                 public double y1;
1081                 public double x11;
1082                 public double x21;
1083                 public double y2;
1084                 public double x12;
1085                 public double x22;
1086         }
1087         [CCode (type_id = "GDK_TYPE_WCHAR", cheader_filename = "gdk/gdk.h")]
1088         public struct WChar {
1089         }
1090         [CCode (type_id = "GDK_TYPE_WINDOW_ATTR", cheader_filename = "gdk/gdk.h")]
1091         public struct WindowAttr {
1092                 public weak string title;
1093                 public int event_mask;
1094                 public int x;
1095                 public int y;
1096                 public int width;
1097                 public int height;
1098                 public Gdk.WindowClass wclass;
1099                 public weak Gdk.Visual visual;
1100                 public weak Gdk.Colormap colormap;
1101                 public Gdk.WindowType window_type;
1102                 public weak Gdk.Cursor cursor;
1103                 public weak string wmclass_name;
1104                 public weak string wmclass_class;
1105                 public bool override_redirect;
1106                 public Gdk.WindowTypeHint type_hint;
1107         }
1108         [CCode (type_id = "GDK_TYPE_WINDOW_REDIRECT", cheader_filename = "gdk/gdk.h")]
1109         public struct WindowRedirect {
1110                 public static void to_drawable (Gdk.Window window, Gdk.Drawable drawable, int src_x, int src_y, int dest_x, int dest_y, int width, int height);
1111         }
1112         [CCode (type_id = "GDK_TYPE_XEVENT", cheader_filename = "gdk/gdk.h")]
1113         public struct XEvent {
1114         }
1115         [CCode (cprefix = "GDK_AXIS_", cheader_filename = "gdk/gdk.h")]
1116         public enum AxisUse {
1117                 IGNORE,
1118                 X,
1119                 Y,
1120                 PRESSURE,
1121                 XTILT,
1122                 YTILT,
1123                 WHEEL,
1124                 LAST
1125         }
1126         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1127         public enum ByteOrder {
1128                 LSB_FIRST,
1129                 MSB_FIRST
1130         }
1131         [CCode (cprefix = "GDK_CAP_", cheader_filename = "gdk/gdk.h")]
1132         public enum CapStyle {
1133                 NOT_LAST,
1134                 BUTT,
1135                 ROUND,
1136                 PROJECTING
1137         }
1138         [CCode (cprefix = "GDK_CROSSING_", cheader_filename = "gdk/gdk.h")]
1139         public enum CrossingMode {
1140                 NORMAL,
1141                 GRAB,
1142                 UNGRAB,
1143                 GTK_GRAB,
1144                 GTK_UNGRAB,
1145                 STATE_CHANGED
1146         }
1147         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1148         public enum CursorType {
1149                 X_CURSOR,
1150                 ARROW,
1151                 BASED_ARROW_DOWN,
1152                 BASED_ARROW_UP,
1153                 BOAT,
1154                 BOGOSITY,
1155                 BOTTOM_LEFT_CORNER,
1156                 BOTTOM_RIGHT_CORNER,
1157                 BOTTOM_SIDE,
1158                 BOTTOM_TEE,
1159                 BOX_SPIRAL,
1160                 CENTER_PTR,
1161                 CIRCLE,
1162                 CLOCK,
1163                 COFFEE_MUG,
1164                 CROSS,
1165                 CROSS_REVERSE,
1166                 CROSSHAIR,
1167                 DIAMOND_CROSS,
1168                 DOT,
1169                 DOTBOX,
1170                 DOUBLE_ARROW,
1171                 DRAFT_LARGE,
1172                 DRAFT_SMALL,
1173                 DRAPED_BOX,
1174                 EXCHANGE,
1175                 FLEUR,
1176                 GOBBLER,
1177                 GUMBY,
1178                 HAND1,
1179                 HAND2,
1180                 HEART,
1181                 ICON,
1182                 IRON_CROSS,
1183                 LEFT_PTR,
1184                 LEFT_SIDE,
1185                 LEFT_TEE,
1186                 LEFTBUTTON,
1187                 LL_ANGLE,
1188                 LR_ANGLE,
1189                 MAN,
1190                 MIDDLEBUTTON,
1191                 MOUSE,
1192                 PENCIL,
1193                 PIRATE,
1194                 PLUS,
1195                 QUESTION_ARROW,
1196                 RIGHT_PTR,
1197                 RIGHT_SIDE,
1198                 RIGHT_TEE,
1199                 RIGHTBUTTON,
1200                 RTL_LOGO,
1201                 SAILBOAT,
1202                 SB_DOWN_ARROW,
1203                 SB_H_DOUBLE_ARROW,
1204                 SB_LEFT_ARROW,
1205                 SB_RIGHT_ARROW,
1206                 SB_UP_ARROW,
1207                 SB_V_DOUBLE_ARROW,
1208                 SHUTTLE,
1209                 SIZING,
1210                 SPIDER,
1211                 SPRAYCAN,
1212                 STAR,
1213                 TARGET,
1214                 TCROSS,
1215                 TOP_LEFT_ARROW,
1216                 TOP_LEFT_CORNER,
1217                 TOP_RIGHT_CORNER,
1218                 TOP_SIDE,
1219                 TOP_TEE,
1220                 TREK,
1221                 UL_ANGLE,
1222                 UMBRELLA,
1223                 UR_ANGLE,
1224                 WATCH,
1225                 XTERM,
1226                 LAST_CURSOR,
1227                 BLANK_CURSOR,
1228                 CURSOR_IS_PIXMAP
1229         }
1230         [CCode (cprefix = "GDK_ACTION_", cheader_filename = "gdk/gdk.h")]
1231         [Flags]
1232         public enum DragAction {
1233                 DEFAULT,
1234                 COPY,
1235                 MOVE,
1236                 LINK,
1237                 PRIVATE,
1238                 ASK
1239         }
1240         [CCode (cprefix = "GDK_DRAG_PROTO_", cheader_filename = "gdk/gdk.h")]
1241         public enum DragProtocol {
1242                 MOTIF,
1243                 XDND,
1244                 ROOTWIN,
1245                 NONE,
1246                 WIN32_DROPFILES,
1247                 OLE2,
1248                 LOCAL
1249         }
1250         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1251         [Flags]
1252         public enum EventMask {
1253                 EXPOSURE_MASK,
1254                 POINTER_MOTION_MASK,
1255                 POINTER_MOTION_HINT_MASK,
1256                 BUTTON_MOTION_MASK,
1257                 BUTTON1_MOTION_MASK,
1258                 BUTTON2_MOTION_MASK,
1259                 BUTTON3_MOTION_MASK,
1260                 BUTTON_PRESS_MASK,
1261                 BUTTON_RELEASE_MASK,
1262                 KEY_PRESS_MASK,
1263                 KEY_RELEASE_MASK,
1264                 ENTER_NOTIFY_MASK,
1265                 LEAVE_NOTIFY_MASK,
1266                 FOCUS_CHANGE_MASK,
1267                 STRUCTURE_MASK,
1268                 PROPERTY_CHANGE_MASK,
1269                 VISIBILITY_NOTIFY_MASK,
1270                 PROXIMITY_IN_MASK,
1271                 PROXIMITY_OUT_MASK,
1272                 SUBSTRUCTURE_MASK,
1273                 SCROLL_MASK,
1274                 ALL_EVENTS_MASK
1275         }
1276         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1277         public enum EventType {
1278                 NOTHING,
1279                 DELETE,
1280                 DESTROY,
1281                 EXPOSE,
1282                 MOTION_NOTIFY,
1283                 BUTTON_PRESS,
1284                 @2BUTTON_PRESS,
1285                 @3BUTTON_PRESS,
1286                 BUTTON_RELEASE,
1287                 KEY_PRESS,
1288                 KEY_RELEASE,
1289                 ENTER_NOTIFY,
1290                 LEAVE_NOTIFY,
1291                 FOCUS_CHANGE,
1292                 CONFIGURE,
1293                 MAP,
1294                 UNMAP,
1295                 PROPERTY_NOTIFY,
1296                 SELECTION_CLEAR,
1297                 SELECTION_REQUEST,
1298                 SELECTION_NOTIFY,
1299                 PROXIMITY_IN,
1300                 PROXIMITY_OUT,
1301                 DRAG_ENTER,
1302                 DRAG_LEAVE,
1303                 DRAG_MOTION,
1304                 DRAG_STATUS,
1305                 DROP_START,
1306                 DROP_FINISHED,
1307                 CLIENT_EVENT,
1308                 VISIBILITY_NOTIFY,
1309                 NO_EXPOSE,
1310                 SCROLL,
1311                 WINDOW_STATE,
1312                 SETTING,
1313                 OWNER_CHANGE,
1314                 GRAB_BROKEN,
1315                 DAMAGE,
1316                 EVENT_LAST
1317         }
1318         [CCode (cprefix = "GDK_EXTENSION_EVENTS_", cheader_filename = "gdk/gdk.h")]
1319         public enum ExtensionMode {
1320                 NONE,
1321                 ALL,
1322                 CURSOR
1323         }
1324         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1325         public enum Fill {
1326                 SOLID,
1327                 TILED,
1328                 STIPPLED,
1329                 OPAQUE_STIPPLED
1330         }
1331         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1332         public enum FillRule {
1333                 EVEN_ODD_RULE,
1334                 WINDING_RULE
1335         }
1336         [CCode (cprefix = "GDK_FILTER_", cheader_filename = "gdk/gdk.h")]
1337         public enum FilterReturn {
1338                 CONTINUE,
1339                 TRANSLATE,
1340                 REMOVE
1341         }
1342         [CCode (cprefix = "GDK_FONT_", cheader_filename = "gdk/gdk.h")]
1343         public enum FontType {
1344                 FONT,
1345                 FONTSET
1346         }
1347         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1348         public enum Function {
1349                 COPY,
1350                 INVERT,
1351                 XOR,
1352                 CLEAR,
1353                 AND,
1354                 AND_REVERSE,
1355                 AND_INVERT,
1356                 NOOP,
1357                 OR,
1358                 EQUIV,
1359                 OR_REVERSE,
1360                 COPY_INVERT,
1361                 OR_INVERT,
1362                 NAND,
1363                 NOR,
1364                 SET
1365         }
1366         [CCode (cprefix = "GDK_GC_", cheader_filename = "gdk/gdk.h")]
1367         [Flags]
1368         public enum GCValuesMask {
1369                 FOREGROUND,
1370                 BACKGROUND,
1371                 FONT,
1372                 FUNCTION,
1373                 FILL,
1374                 TILE,
1375                 STIPPLE,
1376                 CLIP_MASK,
1377                 SUBWINDOW,
1378                 TS_X_ORIGIN,
1379                 TS_Y_ORIGIN,
1380                 CLIP_X_ORIGIN,
1381                 CLIP_Y_ORIGIN,
1382                 EXPOSURES,
1383                 LINE_WIDTH,
1384                 LINE_STYLE,
1385                 CAP_STYLE,
1386                 JOIN_STYLE
1387         }
1388         [CCode (cprefix = "GDK_GRAB_", cheader_filename = "gdk/gdk.h")]
1389         public enum GrabStatus {
1390                 SUCCESS,
1391                 ALREADY_GRABBED,
1392                 INVALID_TIME,
1393                 NOT_VIEWABLE,
1394                 FROZEN
1395         }
1396         [CCode (cprefix = "GDK_GRAVITY_", cheader_filename = "gdk/gdk.h")]
1397         public enum Gravity {
1398                 NORTH_WEST,
1399                 NORTH,
1400                 NORTH_EAST,
1401                 WEST,
1402                 CENTER,
1403                 EAST,
1404                 SOUTH_WEST,
1405                 SOUTH,
1406                 SOUTH_EAST,
1407                 STATIC
1408         }
1409         [CCode (cprefix = "GDK_IMAGE_", cheader_filename = "gdk/gdk.h")]
1410         public enum ImageType {
1411                 NORMAL,
1412                 SHARED,
1413                 FASTEST
1414         }
1415         [CCode (cprefix = "GDK_INPUT_", cheader_filename = "gdk/gdk.h")]
1416         [Flags]
1417         public enum InputCondition {
1418                 READ,
1419                 WRITE,
1420                 EXCEPTION
1421         }
1422         [CCode (cprefix = "GDK_MODE_", cheader_filename = "gdk/gdk.h")]
1423         public enum InputMode {
1424                 DISABLED,
1425                 SCREEN,
1426                 WINDOW
1427         }
1428         [CCode (cprefix = "GDK_SOURCE_", cheader_filename = "gdk/gdk.h")]
1429         public enum InputSource {
1430                 MOUSE,
1431                 PEN,
1432                 ERASER,
1433                 CURSOR
1434         }
1435         [CCode (cprefix = "GDK_JOIN_", cheader_filename = "gdk/gdk.h")]
1436         public enum JoinStyle {
1437                 MITER,
1438                 ROUND,
1439                 BEVEL
1440         }
1441         [CCode (cprefix = "GDK_LINE_", cheader_filename = "gdk/gdk.h")]
1442         public enum LineStyle {
1443                 SOLID,
1444                 ON_OFF_DASH,
1445                 DOUBLE_DASH
1446         }
1447         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1448         [Flags]
1449         public enum ModifierType {
1450                 SHIFT_MASK,
1451                 LOCK_MASK,
1452                 CONTROL_MASK,
1453                 MOD1_MASK,
1454                 MOD2_MASK,
1455                 MOD3_MASK,
1456                 MOD4_MASK,
1457                 MOD5_MASK,
1458                 BUTTON1_MASK,
1459                 BUTTON2_MASK,
1460                 BUTTON3_MASK,
1461                 BUTTON4_MASK,
1462                 BUTTON5_MASK,
1463                 SUPER_MASK,
1464                 HYPER_MASK,
1465                 META_MASK,
1466                 RELEASE_MASK,
1467                 MODIFIER_MASK
1468         }
1469         [CCode (cprefix = "GDK_NOTIFY_", cheader_filename = "gdk/gdk.h")]
1470         public enum NotifyType {
1471                 ANCESTOR,
1472                 VIRTUAL,
1473                 INFERIOR,
1474                 NONLINEAR,
1475                 NONLINEAR_VIRTUAL,
1476                 UNKNOWN
1477         }
1478         [CCode (cprefix = "GDK_OVERLAP_RECTANGLE_", cheader_filename = "gdk/gdk.h")]
1479         public enum OverlapType {
1480                 IN,
1481                 OUT,
1482                 PART
1483         }
1484         [CCode (cprefix = "GDK_OWNER_CHANGE_", cheader_filename = "gdk/gdk.h")]
1485         public enum OwnerChange {
1486                 NEW_OWNER,
1487                 DESTROY,
1488                 CLOSE
1489         }
1490         [CCode (cprefix = "GDK_PROP_MODE_", cheader_filename = "gdk/gdk.h")]
1491         public enum PropMode {
1492                 REPLACE,
1493                 PREPEND,
1494                 APPEND
1495         }
1496         [CCode (cprefix = "GDK_PROPERTY_", cheader_filename = "gdk/gdk.h")]
1497         public enum PropertyState {
1498                 NEW_VALUE,
1499                 DELETE
1500         }
1501         [CCode (cprefix = "GDK_RGB_DITHER_", cheader_filename = "gdk/gdk.h")]
1502         public enum RgbDither {
1503                 NONE,
1504                 NORMAL,
1505                 MAX
1506         }
1507         [CCode (cprefix = "GDK_SCROLL_", cheader_filename = "gdk/gdk.h")]
1508         public enum ScrollDirection {
1509                 UP,
1510                 DOWN,
1511                 LEFT,
1512                 RIGHT
1513         }
1514         [CCode (cprefix = "GDK_SETTING_ACTION_", cheader_filename = "gdk/gdk.h")]
1515         public enum SettingAction {
1516                 NEW,
1517                 CHANGED,
1518                 DELETED
1519         }
1520         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1521         public enum Status {
1522                 OK,
1523                 ERROR,
1524                 ERROR_PARAM,
1525                 ERROR_FILE,
1526                 ERROR_MEM
1527         }
1528         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1529         public enum SubwindowMode {
1530                 CLIP_BY_CHILDREN,
1531                 INCLUDE_INFERIORS
1532         }
1533         [CCode (cprefix = "GDK_VISIBILITY_", cheader_filename = "gdk/gdk.h")]
1534         public enum VisibilityState {
1535                 UNOBSCURED,
1536                 PARTIAL,
1537                 FULLY_OBSCURED
1538         }
1539         [CCode (cprefix = "GDK_VISUAL_", cheader_filename = "gdk/gdk.h")]
1540         public enum VisualType {
1541                 STATIC_GRAY,
1542                 GRAYSCALE,
1543                 STATIC_COLOR,
1544                 PSEUDO_COLOR,
1545                 TRUE_COLOR,
1546                 DIRECT_COLOR
1547         }
1548         [CCode (cprefix = "GDK_DECOR_", cheader_filename = "gdk/gdk.h")]
1549         [Flags]
1550         public enum WMDecoration {
1551                 ALL,
1552                 BORDER,
1553                 RESIZEH,
1554                 TITLE,
1555                 MENU,
1556                 MINIMIZE,
1557                 MAXIMIZE
1558         }
1559         [CCode (cprefix = "GDK_FUNC_", cheader_filename = "gdk/gdk.h")]
1560         [Flags]
1561         public enum WMFunction {
1562                 ALL,
1563                 RESIZE,
1564                 MOVE,
1565                 MINIMIZE,
1566                 MAXIMIZE,
1567                 CLOSE
1568         }
1569         [CCode (cprefix = "GDK_WA_", cheader_filename = "gdk/gdk.h")]
1570         [Flags]
1571         public enum WindowAttributesType {
1572                 TITLE,
1573                 X,
1574                 Y,
1575                 CURSOR,
1576                 COLORMAP,
1577                 VISUAL,
1578                 WMCLASS,
1579                 NOREDIR,
1580                 TYPE_HINT
1581         }
1582         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1583         public enum WindowClass {
1584                 INPUT_OUTPUT,
1585                 INPUT_ONLY
1586         }
1587         [CCode (cprefix = "GDK_WINDOW_EDGE_", cheader_filename = "gdk/gdk.h")]
1588         public enum WindowEdge {
1589                 NORTH_WEST,
1590                 NORTH,
1591                 NORTH_EAST,
1592                 WEST,
1593                 EAST,
1594                 SOUTH_WEST,
1595                 SOUTH,
1596                 SOUTH_EAST
1597         }
1598         [CCode (cprefix = "GDK_HINT_", cheader_filename = "gdk/gdk.h")]
1599         [Flags]
1600         public enum WindowHints {
1601                 POS,
1602                 MIN_SIZE,
1603                 MAX_SIZE,
1604                 BASE_SIZE,
1605                 ASPECT,
1606                 RESIZE_INC,
1607                 WIN_GRAVITY,
1608                 USER_POS,
1609                 USER_SIZE
1610         }
1611         [CCode (cprefix = "GDK_WINDOW_STATE_", cheader_filename = "gdk/gdk.h")]
1612         [Flags]
1613         public enum WindowState {
1614                 WITHDRAWN,
1615                 ICONIFIED,
1616                 MAXIMIZED,
1617                 STICKY,
1618                 FULLSCREEN,
1619                 ABOVE,
1620                 BELOW
1621         }
1622         [CCode (cprefix = "GDK_WINDOW_", cheader_filename = "gdk/gdk.h")]
1623         public enum WindowType {
1624                 ROOT,
1625                 TOPLEVEL,
1626                 CHILD,
1627                 DIALOG,
1628                 TEMP,
1629                 FOREIGN,
1630                 OFFSCREEN
1631         }
1632         [CCode (cprefix = "GDK_WINDOW_TYPE_HINT_", cheader_filename = "gdk/gdk.h")]
1633         public enum WindowTypeHint {
1634                 NORMAL,
1635                 DIALOG,
1636                 MENU,
1637                 TOOLBAR,
1638                 SPLASHSCREEN,
1639                 UTILITY,
1640                 DOCK,
1641                 DESKTOP,
1642                 DROPDOWN_MENU,
1643                 POPUP_MENU,
1644                 TOOLTIP,
1645                 NOTIFICATION,
1646                 COMBO,
1647                 DND
1648         }
1649         [CCode (cheader_filename = "gdk/gdk.h")]
1650         public delegate void EventFunc (Gdk.Event event);
1651         [CCode (cheader_filename = "gdk/gdk.h")]
1652         public delegate Gdk.FilterReturn FilterFunc (Gdk.XEvent xevent, Gdk.Event event);
1653         [CCode (cheader_filename = "gdk/gdk.h", has_target = false)]
1654         public delegate void InputFunction (void* data, int source, Gdk.InputCondition condition);
1655         [Deprecated (since = "2.22")]
1656         [CCode (cheader_filename = "gdk/gdk.h")]
1657         public delegate void SpanFunc (Gdk.Span span);
1658         [CCode (cheader_filename = "gdk/gdk.h")]
1659         public const int CURRENT_TIME;
1660         [CCode (cheader_filename = "gdk/gdk.h")]
1661         public const int MAX_TIMECOORD_AXES;
1662         [CCode (cheader_filename = "gdk/gdk.h")]
1663         public const int PARENT_RELATIVE;
1664         [CCode (cheader_filename = "gdk/gdk.h")]
1665         public const int PRIORITY_REDRAW;
1666         [CCode (cheader_filename = "gdk/gdk.h")]
1667         public const Gdk.Atom SELECTION_CLIPBOARD;
1668         [CCode (cheader_filename = "gdk/gdk.h")]
1669         public const Gdk.Atom SELECTION_PRIMARY;
1670         [CCode (cheader_filename = "gdk/gdk.h")]
1671         public const Gdk.Atom SELECTION_SECONDARY;
1672         [CCode (cheader_filename = "gdk/gdk.h")]
1673         public static void add_client_message_filter (Gdk.Atom message_type, Gdk.FilterFunc func);
1674         [CCode (cheader_filename = "gdk/gdk.h")]
1675         public static void add_option_entries_libgtk_only (GLib.OptionGroup group);
1676         [CCode (cheader_filename = "gdk/gdk.h")]
1677         public static void beep ();
1678         [CCode (cheader_filename = "gdk/gdk.h")]
1679         public static Cairo.Context cairo_create (Gdk.Drawable drawable);
1680         [CCode (cheader_filename = "gdk/gdk.h")]
1681         public static void cairo_rectangle (Cairo.Context cr, Gdk.Rectangle rectangle);
1682         [CCode (cheader_filename = "gdk/gdk.h")]
1683         public static void cairo_region (Cairo.Context cr, Gdk.Region region);
1684         [CCode (cheader_filename = "gdk/gdk.h")]
1685         public static void cairo_reset_clip (Cairo.Context cr, Gdk.Drawable drawable);
1686         [CCode (cheader_filename = "gdk/gdk.h")]
1687         public static void cairo_set_source_color (Cairo.Context cr, Gdk.Color color);
1688         [CCode (cheader_filename = "gdk/gdk.h")]
1689         public static void cairo_set_source_pixbuf (Cairo.Context cr, Gdk.Pixbuf pixbuf, double pixbuf_x, double pixbuf_y);
1690         [CCode (cheader_filename = "gdk/gdk.h")]
1691         public static void cairo_set_source_pixmap (Cairo.Context cr, Gdk.Pixmap pixmap, double pixmap_x, double pixmap_y);
1692         [CCode (cheader_filename = "gdk/gdk.h")]
1693         public static int colors_alloc (Gdk.Colormap colormap, bool contiguous, ulong planes, int nplanes, ulong pixels, int npixels);
1694         [CCode (cheader_filename = "gdk/gdk.h")]
1695         public static void colors_free (Gdk.Colormap colormap, ulong pixels, int npixels, ulong planes);
1696         [CCode (cheader_filename = "gdk/gdk.h")]
1697         public static unowned GLib.List<Gdk.Device> devices_list ();
1698         [CCode (cheader_filename = "gdk/gdk.h")]
1699         public static void drag_abort (Gdk.DragContext context, uint32 time_);
1700         [CCode (cheader_filename = "gdk/gdk.h")]
1701         public static unowned Gdk.DragContext drag_begin (Gdk.Window window, GLib.List<Gdk.Atom> targets);
1702         [CCode (cheader_filename = "gdk/gdk.h")]
1703         public static void drag_drop (Gdk.DragContext context, uint32 time_);
1704         [CCode (cheader_filename = "gdk/gdk.h")]
1705         public static bool drag_drop_succeeded (Gdk.DragContext context);
1706         [CCode (cheader_filename = "gdk/gdk.h")]
1707         public static void drag_find_window (Gdk.DragContext context, Gdk.Window drag_window, int x_root, int y_root, out unowned Gdk.Window dest_window, Gdk.DragProtocol protocol);
1708         [CCode (cheader_filename = "gdk/gdk.h")]
1709         public static void drag_find_window_for_screen (Gdk.DragContext context, Gdk.Window drag_window, Gdk.Screen screen, int x_root, int y_root, out unowned Gdk.Window dest_window, Gdk.DragProtocol protocol);
1710         [CCode (cheader_filename = "gdk/gdk.h")]
1711         public static Gdk.NativeWindow drag_get_protocol (Gdk.NativeWindow xid, Gdk.DragProtocol protocol);
1712         [CCode (cheader_filename = "gdk/gdk.h")]
1713         public static Gdk.NativeWindow drag_get_protocol_for_display (Gdk.Display display, Gdk.NativeWindow xid, Gdk.DragProtocol protocol);
1714         [CCode (cheader_filename = "gdk/gdk.h")]
1715         public static Gdk.Atom drag_get_selection (Gdk.DragContext context);
1716         [CCode (cheader_filename = "gdk/gdk.h")]
1717         public static bool drag_motion (Gdk.DragContext context, Gdk.Window dest_window, Gdk.DragProtocol protocol, int x_root, int y_root, Gdk.DragAction suggested_action, Gdk.DragAction possible_actions, uint32 time_);
1718         [CCode (cheader_filename = "gdk/gdk.h")]
1719         public static void drag_status (Gdk.DragContext context, Gdk.DragAction action, uint32 time_);
1720         [Deprecated (since = "2.22")]
1721         [CCode (cheader_filename = "gdk/gdk.h")]
1722         public static void draw_arc (Gdk.Drawable drawable, Gdk.GC gc, bool filled, int x, int y, int width, int height, int angle1, int angle2);
1723         [Deprecated (since = "2.22")]
1724         [CCode (cheader_filename = "gdk/gdk.h")]
1725         public static void draw_drawable (Gdk.Drawable drawable, Gdk.GC gc, Gdk.Drawable src, int xsrc, int ysrc, int xdest, int ydest, int width, int height);
1726         [Deprecated (since = "2.22")]
1727         [CCode (cheader_filename = "gdk/gdk.h")]
1728         public static void draw_glyphs (Gdk.Drawable drawable, Gdk.GC gc, Pango.Font font, int x, int y, Pango.GlyphString glyphs);
1729         [Deprecated (since = "2.22")]
1730         [CCode (cheader_filename = "gdk/gdk.h")]
1731         public static void draw_glyphs_transformed (Gdk.Drawable drawable, Gdk.GC gc, Pango.Matrix matrix, Pango.Font font, int x, int y, Pango.GlyphString glyphs);
1732         [Deprecated (since = "2.22")]
1733         [CCode (cheader_filename = "gdk/gdk.h")]
1734         public static void draw_gray_image (Gdk.Drawable drawable, Gdk.GC gc, int x, int y, int width, int height, Gdk.RgbDither dith, [CCode (array_length = false)] uchar[] buf, int rowstride);
1735         [Deprecated (since = "2.22")]
1736         [CCode (cheader_filename = "gdk/gdk.h")]
1737         public static void draw_image (Gdk.Drawable drawable, Gdk.GC gc, Gdk.Image image, int xsrc, int ysrc, int xdest, int ydest, int width, int height);
1738         [Deprecated (since = "2.22")]
1739         [CCode (cheader_filename = "gdk/gdk.h")]
1740         public static void draw_indexed_image (Gdk.Drawable drawable, Gdk.GC gc, int x, int y, int width, int height, Gdk.RgbDither dith, [CCode (array_length = false)] uchar[] buf, int rowstride, Gdk.RgbCmap cmap);
1741         [Deprecated (since = "2.22")]
1742         [CCode (cheader_filename = "gdk/gdk.h")]
1743         public static void draw_layout (Gdk.Drawable drawable, Gdk.GC gc, int x, int y, Pango.Layout layout);
1744         [Deprecated (since = "2.22")]
1745         [CCode (cheader_filename = "gdk/gdk.h")]
1746         public static void draw_layout_line (Gdk.Drawable drawable, Gdk.GC gc, int x, int y, Pango.LayoutLine line);
1747         [Deprecated (since = "2.22")]
1748         [CCode (cheader_filename = "gdk/gdk.h")]
1749         public static void draw_layout_line_with_colors (Gdk.Drawable drawable, Gdk.GC gc, int x, int y, Pango.LayoutLine line, Gdk.Color foreground, Gdk.Color background);
1750         [Deprecated (since = "2.22")]
1751         [CCode (cheader_filename = "gdk/gdk.h")]
1752         public static void draw_layout_with_colors (Gdk.Drawable drawable, Gdk.GC gc, int x, int y, Pango.Layout layout, Gdk.Color foreground, Gdk.Color background);
1753         [Deprecated (since = "2.22")]
1754         [CCode (cheader_filename = "gdk/gdk.h")]
1755         public static void draw_line (Gdk.Drawable drawable, Gdk.GC gc, int x1_, int y1_, int x2_, int y2_);
1756         [Deprecated (since = "2.22")]
1757         [CCode (cheader_filename = "gdk/gdk.h")]
1758         public static void draw_lines (Gdk.Drawable drawable, Gdk.GC gc, Gdk.Point[] points);
1759         [Deprecated (since = "2.22")]
1760         [CCode (cheader_filename = "gdk/gdk.h")]
1761         public static void draw_pixbuf (Gdk.Drawable drawable, 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);
1762         [Deprecated (since = "2.22")]
1763         [CCode (cheader_filename = "gdk/gdk.h")]
1764         public static void draw_point (Gdk.Drawable drawable, Gdk.GC gc, int x, int y);
1765         [Deprecated (since = "2.22")]
1766         [CCode (cheader_filename = "gdk/gdk.h")]
1767         public static void draw_points (Gdk.Drawable drawable, Gdk.GC gc, Gdk.Point[] points);
1768         [Deprecated (since = "2.22")]
1769         [CCode (cheader_filename = "gdk/gdk.h")]
1770         public static void draw_polygon (Gdk.Drawable drawable, Gdk.GC gc, bool filled, Gdk.Point[] points);
1771         [Deprecated (since = "2.22")]
1772         [CCode (cheader_filename = "gdk/gdk.h")]
1773         public static void draw_rectangle (Gdk.Drawable drawable, Gdk.GC gc, bool filled, int x, int y, int width, int height);
1774         [Deprecated (since = "2.22")]
1775         [CCode (cheader_filename = "gdk/gdk.h")]
1776         public static void draw_rgb_32_image (Gdk.Drawable drawable, Gdk.GC gc, int x, int y, int width, int height, Gdk.RgbDither dith, [CCode (array_length = false)] uchar[] buf, int rowstride);
1777         [Deprecated (since = "2.22")]
1778         [CCode (cheader_filename = "gdk/gdk.h")]
1779         public static void draw_rgb_32_image_dithalign (Gdk.Drawable drawable, Gdk.GC gc, int x, int y, int width, int height, Gdk.RgbDither dith, [CCode (array_length = false)] uchar[] buf, int rowstride, int xdith, int ydith);
1780         [Deprecated (since = "2.22")]
1781         [CCode (cheader_filename = "gdk/gdk.h")]
1782         public static void draw_rgb_image (Gdk.Drawable drawable, Gdk.GC gc, int x, int y, int width, int height, Gdk.RgbDither dith, [CCode (array_length = false)] uchar[] rgb_buf, int rowstride);
1783         [Deprecated (since = "2.22")]
1784         [CCode (cheader_filename = "gdk/gdk.h")]
1785         public static void draw_rgb_image_dithalign (Gdk.Drawable drawable, Gdk.GC gc, int x, int y, int width, int height, Gdk.RgbDither dith, [CCode (array_length = false)] uchar[] rgb_buf, int rowstride, int xdith, int ydith);
1786         [Deprecated (since = "2.22")]
1787         [CCode (cheader_filename = "gdk/gdk.h")]
1788         public static void draw_segments (Gdk.Drawable drawable, Gdk.GC gc, Gdk.Segment[] segs);
1789         [Deprecated (since = "2.22")]
1790         [CCode (cheader_filename = "gdk/gdk.h")]
1791         public static void draw_text (Gdk.Drawable drawable, Gdk.Font font, Gdk.GC gc, int x, int y, string text, int text_length);
1792         [Deprecated (since = "2.22")]
1793         [CCode (cheader_filename = "gdk/gdk.h")]
1794         public static void draw_text_wc (Gdk.Drawable drawable, Gdk.Font font, Gdk.GC gc, int x, int y, Gdk.WChar text, int text_length);
1795         [Deprecated (since = "2.22")]
1796         [CCode (cheader_filename = "gdk/gdk.h")]
1797         public static void draw_trapezoids (Gdk.Drawable drawable, Gdk.GC gc, Gdk.Trapezoid[] trapezoids);
1798         [CCode (cheader_filename = "gdk/gdk.h")]
1799         public static void drop_finish (Gdk.DragContext context, bool success, uint32 time_);
1800         [CCode (cheader_filename = "gdk/gdk.h")]
1801         public static void drop_reply (Gdk.DragContext context, bool ok, uint32 time_);
1802         [CCode (cheader_filename = "gdk/gdk.h")]
1803         public static int error_trap_pop ();
1804         [CCode (cheader_filename = "gdk/gdk.h")]
1805         public static void error_trap_push ();
1806         [CCode (cheader_filename = "gdk/gdk.h")]
1807         public static bool events_pending ();
1808         [CCode (cheader_filename = "gdk/gdk.h")]
1809         public static void flush ();
1810         [CCode (cheader_filename = "gdk/gdk.h")]
1811         public static unowned Gdk.Font fontset_load_for_display (Gdk.Display display, string fontset_name);
1812         [CCode (cheader_filename = "gdk/gdk.h")]
1813         public static void free_compound_text (uchar[] ctext);
1814         [CCode (cheader_filename = "gdk/gdk.h")]
1815         public static void free_text_list (string list);
1816         [CCode (cheader_filename = "gdk/gdk.h")]
1817         public static unowned Gdk.Window get_default_root_window ();
1818         [CCode (cheader_filename = "gdk/gdk.h")]
1819         public static unowned string get_display ();
1820         [CCode (cheader_filename = "gdk/gdk.h")]
1821         public static unowned string get_display_arg_name ();
1822         [CCode (cheader_filename = "gdk/gdk.h")]
1823         public static unowned string get_program_class ();
1824         [CCode (cheader_filename = "gdk/gdk.h")]
1825         public static bool get_show_events ();
1826         [CCode (cheader_filename = "gdk/gdk.h")]
1827         public static void init ([CCode (array_length_pos = 0.9)] ref unowned string[] argv);
1828         [CCode (cheader_filename = "gdk/gdk.h")]
1829         public static bool init_check ([CCode (array_length_pos = 0.9)] ref unowned string[] argv);
1830         [CCode (cheader_filename = "gdk/gdk.h")]
1831         public static void input_set_extension_events (Gdk.Window window, int mask, Gdk.ExtensionMode mode);
1832         [CCode (cheader_filename = "gdk/gdk.h")]
1833         public static Gdk.GrabStatus keyboard_grab (Gdk.Window window, bool owner_events, uint32 time_);
1834         [CCode (cheader_filename = "gdk/gdk.h")]
1835         public static void keyboard_ungrab (uint32 time_);
1836         [CCode (cheader_filename = "gdk/gdk.h")]
1837         public static void keyval_convert_case (uint symbol, uint lower, uint upper);
1838         [CCode (cheader_filename = "gdk/gdk.h")]
1839         public static uint keyval_from_name (string keyval_name);
1840         [CCode (cheader_filename = "gdk/gdk.h")]
1841         public static bool keyval_is_lower (uint keyval);
1842         [CCode (cheader_filename = "gdk/gdk.h")]
1843         public static bool keyval_is_upper (uint keyval);
1844         [CCode (cheader_filename = "gdk/gdk.h")]
1845         public static unowned string keyval_name (uint keyval);
1846         [CCode (cheader_filename = "gdk/gdk.h")]
1847         public static uint keyval_to_lower (uint keyval);
1848         [CCode (cheader_filename = "gdk/gdk.h")]
1849         public static uint32 keyval_to_unicode (uint keyval);
1850         [CCode (cheader_filename = "gdk/gdk.h")]
1851         public static uint keyval_to_upper (uint keyval);
1852         [CCode (cheader_filename = "gdk/gdk.h")]
1853         public static GLib.List<weak Gdk.Visual> list_visuals ();
1854         [CCode (cheader_filename = "gdk/gdk.h")]
1855         public static void notify_startup_complete ();
1856         [CCode (cheader_filename = "gdk/gdk.h")]
1857         public static void notify_startup_complete_with_id (string startup_id);
1858         [CCode (cheader_filename = "gdk/gdk.h")]
1859         public static unowned Gdk.Window? offscreen_window_get_embedder (Gdk.Window window);
1860         [CCode (cheader_filename = "gdk/gdk.h")]
1861         public static unowned Gdk.Pixmap? offscreen_window_get_pixmap (Gdk.Window window);
1862         [CCode (cheader_filename = "gdk/gdk.h")]
1863         public static void offscreen_window_set_embedder (Gdk.Window window, Gdk.Window embedder);
1864         [CCode (cheader_filename = "gdk/gdk.h")]
1865         public static unowned Pango.Context pango_context_get ();
1866         [CCode (cheader_filename = "gdk/gdk.h")]
1867         public static unowned Pango.Context pango_context_get_for_screen (Gdk.Screen screen);
1868         [CCode (cheader_filename = "gdk/gdk.h")]
1869         public static unowned Gdk.Region pango_layout_get_clip_region (Pango.Layout layout, int x_origin, int y_origin, int index_ranges, int n_ranges);
1870         [CCode (cheader_filename = "gdk/gdk.h")]
1871         public static unowned Gdk.Region pango_layout_line_get_clip_region (Pango.LayoutLine line, int x_origin, int y_origin, int index_ranges, int n_ranges);
1872         [CCode (cheader_filename = "gdk/gdk.h")]
1873         public static void parse_args (int argc, string argv);
1874         [CCode (cheader_filename = "gdk/gdk.h")]
1875         public static unowned Gdk.Pixbuf pixbuf_get_from_drawable (Gdk.Pixbuf? dest, Gdk.Drawable src, Gdk.Colormap? cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height);
1876         [CCode (cheader_filename = "gdk/gdk.h")]
1877         public static unowned Gdk.Pixbuf pixbuf_get_from_image (Gdk.Pixbuf? dest, Gdk.Image src, Gdk.Colormap? cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height);
1878         [CCode (cheader_filename = "gdk/gdk.h")]
1879         public static void pixbuf_render_pixmap_and_mask (Gdk.Pixbuf pixbuf, out unowned Gdk.Pixmap pixmap_return, out unowned Gdk.Bitmap mask_return, int alpha_threshold);
1880         [CCode (cheader_filename = "gdk/gdk.h")]
1881         public static void pixbuf_render_pixmap_and_mask_for_colormap (Gdk.Pixbuf pixbuf, Gdk.Colormap colormap, out unowned Gdk.Pixmap pixmap_return, out unowned Gdk.Bitmap mask_return, int alpha_threshold);
1882         [CCode (cheader_filename = "gdk/gdk.h")]
1883         public static void pixbuf_render_threshold_alpha (Gdk.Pixbuf pixbuf, Gdk.Bitmap bitmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_threshold);
1884         [CCode (cheader_filename = "gdk/gdk.h")]
1885         public static Gdk.GrabStatus pointer_grab (Gdk.Window window, bool owner_events, Gdk.EventMask event_mask, Gdk.Window? confine_to, Gdk.Cursor? cursor, uint32 time_);
1886         [CCode (cheader_filename = "gdk/gdk.h")]
1887         public static bool pointer_grab_info_libgtk_only (Gdk.Display display, out unowned Gdk.Window grab_window, bool owner_events);
1888         [CCode (cheader_filename = "gdk/gdk.h")]
1889         public static bool pointer_is_grabbed ();
1890         [CCode (cheader_filename = "gdk/gdk.h")]
1891         public static void pointer_ungrab (uint32 time_);
1892         [CCode (cheader_filename = "gdk/gdk.h")]
1893         public static void pre_parse_libgtk_only ();
1894         [CCode (cheader_filename = "gdk/gdk.h")]
1895         public static void property_change (Gdk.Window window, Gdk.Atom property, Gdk.Atom type, int format, Gdk.PropMode mode, [CCode (array_length = false)] uchar[] data, int nelements);
1896         [CCode (cheader_filename = "gdk/gdk.h")]
1897         public static void property_delete (Gdk.Window window, Gdk.Atom property);
1898         [CCode (cheader_filename = "gdk/gdk.h")]
1899         public static bool property_get (Gdk.Window window, Gdk.Atom property, Gdk.Atom type, ulong offset, ulong length, int pdelete, out Gdk.Atom actual_property_type, out int actual_format, [CCode (array_length_pos = 8.9)] out uchar[] data);
1900         [CCode (cheader_filename = "gdk/gdk.h")]
1901         public static void query_depths (int depths, int count);
1902         [CCode (cheader_filename = "gdk/gdk.h")]
1903         public static void query_visual_types (out Gdk.VisualType visual_types, int count);
1904         [Deprecated (since = "2.22")]
1905         [CCode (cheader_filename = "gdk/gdk.h")]
1906         public static bool rgb_colormap_ditherable (Gdk.Colormap cmap);
1907         [Deprecated (since = "2.22")]
1908         [CCode (cheader_filename = "gdk/gdk.h")]
1909         public static bool rgb_ditherable ();
1910         [Deprecated (since = "2.22")]
1911         [CCode (cheader_filename = "gdk/gdk.h")]
1912         public static void rgb_find_color (Gdk.Colormap colormap, ref Gdk.Color color);
1913         [Deprecated (since = "2.22")]
1914         [CCode (cheader_filename = "gdk/gdk.h")]
1915         public static unowned Gdk.Colormap rgb_get_colormap ();
1916         [Deprecated (since = "2.22")]
1917         [CCode (cheader_filename = "gdk/gdk.h")]
1918         public static unowned Gdk.Visual rgb_get_visual ();
1919         [Deprecated (since = "2.22")]
1920         [CCode (cheader_filename = "gdk/gdk.h")]
1921         public static void rgb_set_install (bool install);
1922         [Deprecated (since = "2.22")]
1923         [CCode (cheader_filename = "gdk/gdk.h")]
1924         public static void rgb_set_min_colors (int min_colors);
1925         [Deprecated (since = "2.22")]
1926         [CCode (cheader_filename = "gdk/gdk.h")]
1927         public static void rgb_set_verbose (bool verbose);
1928         [Deprecated (since = "vala-0.12", replacement = "Selection.convert")]
1929         [CCode (cheader_filename = "gdk/gdk.h")]
1930         public static void selection_convert (Gdk.Window requestor, Gdk.Atom selection, Gdk.Atom target, uint32 time_);
1931         [Deprecated (since = "vala-0.12", replacement = "Selection.owner_get")]
1932         [CCode (cheader_filename = "gdk/gdk.h")]
1933         public static unowned Gdk.Window selection_owner_get (Gdk.Atom selection);
1934         [Deprecated (since = "vala-0.12", replacement = "Selection.owner_get_for_display")]
1935         [CCode (cheader_filename = "gdk/gdk.h")]
1936         public static unowned Gdk.Window selection_owner_get_for_display (Gdk.Display display, Gdk.Atom selection);
1937         [Deprecated (since = "vala-0.12", replacement = "Selection.owner_set")]
1938         [CCode (cheader_filename = "gdk/gdk.h")]
1939         public static bool selection_owner_set (Gdk.Window owner, Gdk.Atom selection, uint32 time_, bool send_event);
1940         [Deprecated (since = "vala-0.12", replacement = "Selection.owner_set_for_display")]
1941         [CCode (cheader_filename = "gdk/gdk.h")]
1942         public static bool selection_owner_set_for_display (Gdk.Display display, Gdk.Window owner, Gdk.Atom selection, uint32 time_, bool send_event);
1943         [Deprecated (since = "vala-0.12", replacement = "Selection.property_get")]
1944         [CCode (cheader_filename = "gdk/gdk.h")]
1945         public static int selection_property_get (Gdk.Window requestor, uchar[] data, out Gdk.Atom prop_type, int prop_format);
1946         [Deprecated (since = "vala-0.12", replacement = "Selection.send_notify")]
1947         [CCode (cheader_filename = "gdk/gdk.h")]
1948         public static void selection_send_notify (Gdk.NativeWindow requestor, Gdk.Atom selection, Gdk.Atom target, Gdk.Atom property, uint32 time_);
1949         [Deprecated (since = "vala-0.12", replacement = "Selection.send_notify_for_display")]
1950         [CCode (cheader_filename = "gdk/gdk.h")]
1951         public static void selection_send_notify_for_display (Gdk.Display display, Gdk.NativeWindow requestor, Gdk.Atom selection, Gdk.Atom target, Gdk.Atom property, uint32 time_);
1952         [CCode (cheader_filename = "gdk/gdk.h")]
1953         public static void set_double_click_time (uint msec);
1954         [CCode (cheader_filename = "gdk/gdk.h")]
1955         public static unowned string set_locale ();
1956         [CCode (cheader_filename = "gdk/gdk.h")]
1957         public static unowned Gdk.PointerHooks set_pointer_hooks (Gdk.PointerHooks new_hooks);
1958         [CCode (cheader_filename = "gdk/gdk.h")]
1959         public static void set_program_class (string program_class);
1960         [CCode (cheader_filename = "gdk/gdk.h")]
1961         public static void set_show_events (bool show_events);
1962         [CCode (cheader_filename = "gdk/gdk.h")]
1963         public static void set_sm_client_id (string sm_client_id);
1964         [CCode (cheader_filename = "gdk/gdk.h")]
1965         public static bool setting_get (string name, GLib.Value value);
1966         [CCode (cheader_filename = "gdk/gdk.h")]
1967         public static bool spawn_command_line_on_screen (Gdk.Screen screen, string command_line) throws GLib.Error;
1968         [CCode (cheader_filename = "gdk/gdk.h")]
1969         public static bool spawn_on_screen (Gdk.Screen screen, string? working_directory, [CCode (array_length = false)] string[] argv, [CCode (array_length = false)] string[]? envp, GLib.SpawnFlags flags, GLib.SpawnChildSetupFunc? child_setup, out int child_pid) throws GLib.Error;
1970         [CCode (cheader_filename = "gdk/gdk.h")]
1971         public static bool spawn_on_screen_with_pipes (Gdk.Screen screen, string? working_directory, [CCode (array_length = false)] string[] argv, [CCode (array_length = false)] string[] envp, GLib.SpawnFlags flags, GLib.SpawnChildSetupFunc? child_setup, out int child_pid, out int standard_input, out int standard_output, out int standard_error) throws GLib.Error;
1972         [CCode (cheader_filename = "gdk/gdk.h")]
1973         public static int string_to_compound_text (string str, out Gdk.Atom encoding, int format, uchar[] ctext, int length);
1974         [CCode (cheader_filename = "gdk/gdk.h")]
1975         public static int string_to_compound_text_for_display (Gdk.Display display, string str, out Gdk.Atom encoding, int format, uchar[] ctext, int length);
1976         [CCode (cheader_filename = "gdk/gdk.h")]
1977         public static void test_render_sync (Gdk.Window window);
1978         [CCode (cheader_filename = "gdk/gdk.h")]
1979         public static bool test_simulate_button (Gdk.Window window, int x, int y, uint button, Gdk.ModifierType modifiers, Gdk.EventType button_pressrelease);
1980         [CCode (cheader_filename = "gdk/gdk.h")]
1981         public static bool test_simulate_key (Gdk.Window window, int x, int y, uint keyval, Gdk.ModifierType modifiers, Gdk.EventType key_pressrelease);
1982         [CCode (cheader_filename = "gdk/gdk.h")]
1983         public static int text_property_to_text_list (Gdk.Atom encoding, int format, uchar[] text, int length, string list);
1984         [CCode (cheader_filename = "gdk/gdk.h")]
1985         public static int text_property_to_text_list_for_display (Gdk.Display display, Gdk.Atom encoding, int format, uchar[] text, int length, string list);
1986         [CCode (cheader_filename = "gdk/gdk.h")]
1987         public static int text_property_to_utf8_list (Gdk.Atom encoding, int format, uchar[] text, int length, string list);
1988         [CCode (cheader_filename = "gdk/gdk.h")]
1989         public static int text_property_to_utf8_list_for_display (Gdk.Display display, Gdk.Atom encoding, int format, uchar[] text, int length, string list);
1990         [CCode (cheader_filename = "gdk/gdk.h")]
1991         public static uint threads_add_idle (GLib.SourceFunc function);
1992         [CCode (cheader_filename = "gdk/gdk.h")]
1993         public static uint threads_add_idle_full (int priority, owned GLib.SourceFunc function);
1994         [CCode (cheader_filename = "gdk/gdk.h")]
1995         public static uint threads_add_timeout (uint interval, GLib.SourceFunc function);
1996         [CCode (cheader_filename = "gdk/gdk.h")]
1997         public static uint threads_add_timeout_full (int priority, uint interval, owned GLib.SourceFunc function);
1998         [CCode (cheader_filename = "gdk/gdk.h")]
1999         public static uint threads_add_timeout_seconds (uint interval, GLib.SourceFunc function);
2000         [CCode (cheader_filename = "gdk/gdk.h")]
2001         public static uint threads_add_timeout_seconds_full (int priority, uint interval, owned GLib.SourceFunc function);
2002         [CCode (cheader_filename = "gdk/gdk.h")]
2003         public static void threads_enter ();
2004         [CCode (cheader_filename = "gdk/gdk.h")]
2005         public static void threads_init ();
2006         [CCode (cheader_filename = "gdk/gdk.h")]
2007         public static void threads_leave ();
2008         [CCode (cheader_filename = "gdk/gdk.h")]
2009         public static void threads_set_lock_functions (GLib.Callback enter_fn, GLib.Callback leave_fn);
2010         [CCode (cheader_filename = "gdk/gdk.h")]
2011         public static uint unicode_to_keyval (uint32 wc);
2012         [CCode (cheader_filename = "gdk/gdk.h")]
2013         public static bool utf8_to_compound_text (string str, out Gdk.Atom encoding, int format, uchar[] ctext, int length);
2014         [CCode (cheader_filename = "gdk/gdk.h")]
2015         public static bool utf8_to_compound_text_for_display (Gdk.Display display, string str, out Gdk.Atom encoding, int format, uchar[] ctext, int length);
2016         [CCode (cheader_filename = "gdk/gdk.h")]
2017         public static unowned string utf8_to_string_target (string str);