codegen: Use get_local_cvalue to unref local variables
[vala-lang.git] / vapi / gdk-3.0.vapi
blobe5e79e087a56e0cd8d047be876c176b346849a61
1 /* gdk-3.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gdk", lower_case_cprefix = "gdk_", gir_namespace = "Gdk", gir_version = "3.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, 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                 protected AppLaunchContext ();
28                 public void set_desktop (int desktop);
29                 public void set_icon (GLib.Icon icon);
30                 public void set_icon_name (string icon_name);
31                 public void set_screen (Gdk.Screen screen);
32                 public void set_timestamp (uint32 timestamp);
33                 [NoAccessorMethod]
34                 public Gdk.Display display { owned get; construct; }
35         }
36         [CCode (ref_function = "g_object_ref", unref_function = "g_object_unref", cheader_filename = "gdk/gdk.h")]
37         public class Bitmap {
38         }
39         [CCode (cheader_filename = "gdk/gdk.h")]
40         public class Cursor : GLib.Object {
41                 [CCode (has_construct_function = false)]
42                 public Cursor (Gdk.CursorType cursor_type);
43                 [CCode (has_construct_function = false)]
44                 public Cursor.for_display (Gdk.Display display, Gdk.CursorType cursor_type);
45                 [CCode (has_construct_function = false)]
46                 public Cursor.from_name (Gdk.Display display, string name);
47                 [CCode (has_construct_function = false)]
48                 public Cursor.from_pixbuf (Gdk.Display display, Gdk.Pixbuf pixbuf, int x, int y);
49                 public Gdk.CursorType get_cursor_type ();
50                 public unowned Gdk.Display get_display ();
51                 public unowned Gdk.Pixbuf get_image ();
52                 public Gdk.CursorType cursor_type { get; construct; }
53                 public Gdk.Display display { get; construct; }
54         }
55         [CCode (cheader_filename = "gdk/gdk.h")]
56         public class Device : GLib.Object {
57                 [CCode (has_construct_function = false)]
58                 protected Device ();
59                 public static void free_history (Gdk.TimeCoord[] events);
60                 public unowned Gdk.Device get_associated_device ();
61                 public bool get_axis ([CCode (array_length = false)] double[] axes, Gdk.AxisUse use, out double value);
62                 public Gdk.AxisUse get_axis_use (uint index_);
63                 public bool get_axis_value (double axes, Gdk.Atom axis_label, double value);
64                 public Gdk.DeviceType get_device_type ();
65                 public unowned Gdk.Display get_display ();
66                 public bool get_has_cursor ();
67                 public bool get_history (Gdk.Window window, uint32 start, uint32 stop, Gdk.TimeCoord[] events);
68                 public bool get_key (uint index_, uint keyval, Gdk.ModifierType modifiers);
69                 public Gdk.InputMode get_mode ();
70                 public int get_n_axes ();
71                 public int get_n_keys ();
72                 public unowned string get_name ();
73                 public void get_position (out unowned Gdk.Screen screen, int x, int y);
74                 public Gdk.InputSource get_source ();
75                 public void get_state (Gdk.Window window, double axes, Gdk.ModifierType mask);
76                 public unowned Gdk.Window get_window_at_position (int win_x, int win_y);
77                 public Gdk.GrabStatus grab (Gdk.Window window, Gdk.GrabOwnership grab_ownership, bool owner_events, Gdk.EventMask event_mask, Gdk.Cursor cursor, uint32 time_);
78                 public static bool grab_info_libgtk_only (Gdk.Display display, Gdk.Device device, out unowned Gdk.Window grab_window, bool owner_events);
79                 public unowned GLib.List list_axes ();
80                 public unowned GLib.List list_slave_devices ();
81                 public void set_axis_use (uint index_, Gdk.AxisUse use);
82                 public void set_key (uint index_, uint keyval, Gdk.ModifierType modifiers);
83                 public bool set_mode (Gdk.InputMode mode);
84                 public void ungrab (uint32 time_);
85                 public void warp (Gdk.Screen screen, int x, int y);
86                 public Gdk.Device associated_device { get; }
87                 [NoAccessorMethod]
88                 public Gdk.DeviceManager device_manager { owned get; construct; }
89                 public Gdk.Display display { get; construct; }
90                 public bool has_cursor { get; construct; }
91                 [NoAccessorMethod]
92                 public Gdk.InputMode input_mode { get; set; }
93                 [NoAccessorMethod]
94                 public Gdk.InputSource input_source { get; construct; }
95                 public uint n_axes { get; }
96                 public string name { get; construct; }
97                 [NoAccessorMethod]
98                 public Gdk.DeviceType type { get; construct; }
99                 public virtual signal void changed ();
100         }
101         [CCode (cheader_filename = "gdk/gdk.h")]
102         public class DeviceManager : GLib.Object {
103                 [CCode (has_construct_function = false)]
104                 protected DeviceManager ();
105                 public unowned Gdk.Device get_client_pointer ();
106                 public unowned Gdk.Display get_display ();
107                 public unowned GLib.List list_devices (Gdk.DeviceType type);
108                 public Gdk.Display display { get; construct; }
109                 public virtual signal void device_added (Gdk.Device p0);
110                 public virtual signal void device_changed (Gdk.Device p0);
111                 public virtual signal void device_removed (Gdk.Device p0);
112         }
113         [CCode (cheader_filename = "gdk/gdk.h")]
114         public class Display : GLib.Object {
115                 [CCode (has_construct_function = false)]
116                 protected Display ();
117                 public void add_client_message_filter (Gdk.Atom message_type, Gdk.FilterFunc func);
118                 public void beep ();
119                 public void close ();
120                 public bool device_is_grabbed (Gdk.Device device);
121                 public void flush ();
122                 public unowned Gdk.AppLaunchContext get_app_launch_context ();
123                 public static unowned Gdk.Display get_default ();
124                 public uint get_default_cursor_size ();
125                 public unowned Gdk.Window get_default_group ();
126                 public unowned Gdk.Screen get_default_screen ();
127                 public unowned Gdk.DeviceManager get_device_manager ();
128                 public Gdk.Event get_event ();
129                 public void get_maximal_cursor_size (out uint width, out uint height);
130                 public int get_n_screens ();
131                 public unowned string get_name ();
132                 public unowned Gdk.Screen get_screen (int screen_num);
133                 public bool has_pending ();
134                 public bool is_closed ();
135                 public void notify_startup_complete (string startup_id);
136                 public static unowned Gdk.Display open (string display_name);
137                 public static unowned Gdk.Display open_default_libgtk_only ();
138                 public Gdk.Event peek_event ();
139                 public void put_event (Gdk.Event event);
140                 public bool request_selection_notification (Gdk.Atom selection);
141                 public void set_double_click_distance (uint distance);
142                 public void set_double_click_time (uint msec);
143                 public void store_clipboard (Gdk.Window clipboard_window, uint32 time_, Gdk.Atom[] targets);
144                 public bool supports_clipboard_persistence ();
145                 public bool supports_composite ();
146                 public bool supports_cursor_alpha ();
147                 public bool supports_cursor_color ();
148                 public bool supports_input_shapes ();
149                 public bool supports_selection_notification ();
150                 public bool supports_shapes ();
151                 public void sync ();
152                 public virtual signal void closed (bool p0);
153                 public virtual signal void opened ();
154         }
155         [CCode (cheader_filename = "gdk/gdk.h")]
156         public class DisplayManager : GLib.Object {
157                 [CCode (has_construct_function = false)]
158                 protected DisplayManager ();
159                 public static unowned Gdk.DisplayManager @get ();
160                 public unowned Gdk.Display get_default_display ();
161                 public GLib.SList<weak Gdk.Display> list_displays ();
162                 public unowned Gdk.Display open_display (string name);
163                 public void set_default_display (Gdk.Display display);
164                 public Gdk.Display default_display { get; set; }
165                 public virtual signal void display_opened (Gdk.Display p0);
166         }
167         [CCode (cheader_filename = "gdk/gdk.h")]
168         public class DragContext : GLib.Object {
169                 [CCode (has_construct_function = false)]
170                 protected DragContext ();
171                 public Gdk.DragAction get_actions ();
172                 public unowned Gdk.Window get_dest_window ();
173                 public unowned Gdk.Device get_device ();
174                 public Gdk.DragProtocol get_protocol ();
175                 public Gdk.DragAction get_selected_action ();
176                 public unowned Gdk.Window get_source_window ();
177                 public Gdk.DragAction get_suggested_action ();
178                 public unowned GLib.List list_targets ();
179                 public void set_device (Gdk.Device device);
180         }
181         [Compact]
182         [CCode (copy_function = "gdk_event_copy", type_id = "GDK_TYPE_EVENT", cheader_filename = "gdk/gdk.h")]
183         public class Event {
184                 public Gdk.EventAny any;
185                 public Gdk.EventButton button;
186                 public Gdk.EventClient client;
187                 public Gdk.EventConfigure configure;
188                 public Gdk.EventCrossing crossing;
189                 public Gdk.EventDND dnd;
190                 public Gdk.EventExpose expose;
191                 public Gdk.EventFocus focus_change;
192                 public Gdk.EventGrabBroken grab_broken;
193                 public Gdk.EventKey key;
194                 public Gdk.EventMotion motion;
195                 public Gdk.EventOwnerChange owner_change;
196                 public Gdk.EventProperty property;
197                 public Gdk.EventProximity proximity;
198                 public Gdk.EventScroll scroll;
199                 public Gdk.EventSelection selection;
200                 public Gdk.EventSetting setting;
201                 public Gdk.EventType type;
202                 public Gdk.EventVisibility visibility;
203                 public Gdk.EventWindowState window_state;
204                 [CCode (has_construct_function = false)]
205                 public Event (Gdk.EventType type);
206                 public Gdk.Event copy ();
207                 public static unowned Gdk.Event @get ();
208                 public bool get_axis (Gdk.AxisUse axis_use, out double value);
209                 public bool get_coords (out double x_win, out double y_win);
210                 public unowned Gdk.Device get_device ();
211                 public bool get_root_coords (out double x_root, out double y_root);
212                 public unowned Gdk.Screen get_screen ();
213                 public unowned Gdk.Device get_source_device ();
214                 public bool get_state (out Gdk.ModifierType state);
215                 public uint32 get_time ();
216                 public static void handler_set (owned Gdk.EventFunc func);
217                 public static unowned Gdk.Event peek ();
218                 public void put ();
219                 public static void request_motions (Gdk.EventMotion event);
220                 public bool send_client_message (Gdk.NativeWindow winid);
221                 public static bool send_client_message_for_display (Gdk.Display display, Gdk.Event event, Gdk.NativeWindow winid);
222                 public void send_clientmessage_toall ();
223                 public void set_device (Gdk.Device device);
224                 public void set_screen (Gdk.Screen screen);
225                 public void set_source_device (Gdk.Device device);
226         }
227         [CCode (cheader_filename = "gdk/gdk.h")]
228         public class Keymap : GLib.Object {
229                 [CCode (has_construct_function = false)]
230                 protected Keymap ();
231                 public void add_virtual_modifiers (Gdk.ModifierType state);
232                 public bool get_caps_lock_state ();
233                 public static unowned Gdk.Keymap get_default ();
234                 public Pango.Direction get_direction ();
235                 public bool get_entries_for_keycode (uint hardware_keycode, out unowned Gdk.KeymapKey[] keys, out unowned uint[] keyvals, int n_entries);
236                 public bool get_entries_for_keyval (uint keyval, out unowned Gdk.KeymapKey[] keys);
237                 public static unowned Gdk.Keymap get_for_display (Gdk.Display display);
238                 public bool get_num_lock_state ();
239                 public bool have_bidi_layouts ();
240                 public uint lookup_key (Gdk.KeymapKey key);
241                 public bool map_virtual_modifiers (Gdk.ModifierType state);
242                 public bool translate_keyboard_state (uint hardware_keycode, Gdk.ModifierType state, int group, uint keyval, int effective_group, int level, Gdk.ModifierType consumed_modifiers);
243                 public virtual signal void direction_changed ();
244                 public virtual signal void keys_changed ();
245                 public virtual signal void state_changed ();
246         }
247         [CCode (cheader_filename = "gdk/gdk.h")]
248         public class Screen : GLib.Object {
249                 [CCode (has_construct_function = false)]
250                 protected Screen ();
251                 public void broadcast_client_message (Gdk.Event event);
252                 public unowned Gdk.Window get_active_window ();
253                 public static unowned Gdk.Screen get_default ();
254                 public unowned Gdk.Display get_display ();
255                 public unowned Cairo.FontOptions get_font_options ();
256                 public int get_height ();
257                 public int get_height_mm ();
258                 public int get_monitor_at_point (int x, int y);
259                 public int get_monitor_at_window (Gdk.Window window);
260                 public void get_monitor_geometry (int monitor_num, out Gdk.Rectangle dest);
261                 public int get_monitor_height_mm (int monitor_num);
262                 public unowned string get_monitor_plug_name (int monitor_num);
263                 public int get_monitor_width_mm (int monitor_num);
264                 public int get_n_monitors ();
265                 public int get_number ();
266                 public int get_primary_monitor ();
267                 public double get_resolution ();
268                 public unowned Gdk.Visual get_rgba_visual ();
269                 public unowned Gdk.Window get_root_window ();
270                 public bool get_setting (string name, GLib.Value value);
271                 public unowned Gdk.Visual get_system_visual ();
272                 public GLib.List<weak Gdk.Window> get_toplevel_windows ();
273                 public int get_width ();
274                 public int get_width_mm ();
275                 public GLib.List<Gdk.Window>? get_window_stack ();
276                 public static int height ();
277                 public static int height_mm ();
278                 public bool is_composited ();
279                 public GLib.List<weak Gdk.Visual> list_visuals ();
280                 public unowned string make_display_name ();
281                 public void set_font_options (Cairo.FontOptions options);
282                 public void set_resolution (double dpi);
283                 public static int width ();
284                 public static int width_mm ();
285                 public void* font_options { get; set; }
286                 public double resolution { get; set; }
287                 public virtual signal void composited_changed ();
288                 public virtual signal void monitors_changed ();
289                 public virtual signal void size_changed ();
290         }
291         [CCode (cheader_filename = "gdk/gdk.h")]
292         public class Visual : GLib.Object {
293                 [CCode (has_construct_function = false)]
294                 protected Visual ();
295                 public static unowned Gdk.Visual get_best ();
296                 public static int get_best_depth ();
297                 public static Gdk.VisualType get_best_type ();
298                 public static unowned Gdk.Visual get_best_with_both (int depth, Gdk.VisualType visual_type);
299                 public static unowned Gdk.Visual get_best_with_depth (int depth);
300                 public static unowned Gdk.Visual get_best_with_type (Gdk.VisualType visual_type);
301                 public int get_bits_per_rgb ();
302                 public void get_blue_pixel_details (uint32 mask, int shift, int precision);
303                 public Gdk.ByteOrder get_byte_order ();
304                 public int get_colormap_size ();
305                 public int get_depth ();
306                 public void get_green_pixel_details (uint32 mask, int shift, int precision);
307                 public void get_red_pixel_details (uint32 mask, int shift, int precision);
308                 public unowned Gdk.Screen get_screen ();
309                 public static unowned Gdk.Visual get_system ();
310                 public Gdk.VisualType get_visual_type ();
311         }
312         [CCode (cheader_filename = "gdk/gdk.h")]
313         public class Window : GLib.Object {
314                 [CCode (has_construct_function = false)]
315                 public Window (Gdk.Window? parent, Gdk.WindowAttr attributes, int attributes_mask);
316                 public void add_filter (Gdk.FilterFunc function);
317                 public static unowned Gdk.Window at_pointer (out int win_x, out int win_y);
318                 public void beep ();
319                 public void begin_move_drag (int button, int root_x, int root_y, uint32 timestamp);
320                 public void begin_paint_rect (Gdk.Rectangle rectangle);
321                 public void begin_paint_region (Cairo.Region region);
322                 public void begin_resize_drag (Gdk.WindowEdge edge, int button, int root_x, int root_y, uint32 timestamp);
323                 public void configure_finished ();
324                 public static void constrain_size (Gdk.Geometry geometry, uint flags, int width, int height, out int new_width, out int new_height);
325                 public void coords_from_parent (double parent_x, double parent_y, double x, double y);
326                 public void coords_to_parent (double x, double y, double parent_x, double parent_y);
327                 public unowned Cairo.Surface create_similar_surface (Cairo.Content content, int width, int height);
328                 public void deiconify ();
329                 public void destroy ();
330                 public void enable_synchronized_configure ();
331                 public void end_paint ();
332                 public bool ensure_native ();
333                 public void flush ();
334                 public void focus (uint32 timestamp);
335                 public void freeze_toplevel_updates_libgtk_only ();
336                 public void freeze_updates ();
337                 public void fullscreen ();
338                 public void geometry_changed ();
339                 public bool get_accept_focus ();
340                 public unowned Cairo.Pattern get_background_pattern ();
341                 public GLib.List<weak Gdk.Window> get_children ();
342                 public unowned Cairo.Region get_clip_region ();
343                 public bool get_composited ();
344                 public unowned Gdk.Cursor? get_cursor ();
345                 public bool get_decorations (out Gdk.WMDecoration decorations);
346                 public unowned Gdk.Cursor get_device_cursor (Gdk.Device device);
347                 public Gdk.EventMask get_device_events (Gdk.Device device);
348                 public unowned Gdk.Window get_device_position (Gdk.Device device, int x, int y, Gdk.ModifierType mask);
349                 public unowned Gdk.Display get_display ();
350                 public unowned Gdk.Window get_effective_parent ();
351                 public unowned Gdk.Window get_effective_toplevel ();
352                 public Gdk.EventMask get_events ();
353                 public bool get_focus_on_map ();
354                 public void get_frame_extents (out Gdk.Rectangle rect);
355                 public void get_geometry (out int x, out int y, out int width, out int height);
356                 public unowned Gdk.Window get_group ();
357                 public int get_height ();
358                 public bool get_modal_hint ();
359                 public int get_origin (out int x, out int y);
360                 public unowned Gdk.Window get_parent ();
361                 public unowned Gdk.Window get_pointer (out int x, out int y, out Gdk.ModifierType mask);
362                 public void get_position (out int x, out int y);
363                 public void get_root_coords (int x, int y, int root_x, int root_y);
364                 public void get_root_origin (out int x, out int y);
365                 public unowned Gdk.Screen get_screen ();
366                 public Gdk.EventMask get_source_events (Gdk.InputSource source);
367                 public Gdk.WindowState get_state ();
368                 public bool get_support_multidevice ();
369                 public unowned Gdk.Window get_toplevel ();
370                 public Gdk.WindowTypeHint get_type_hint ();
371                 public unowned Cairo.Region get_update_area ();
372                 public void get_user_data (void* data);
373                 public unowned Cairo.Region get_visible_region ();
374                 public unowned Gdk.Visual get_visual ();
375                 public int get_width ();
376                 public Gdk.WindowType get_window_type ();
377                 public bool has_native ();
378                 public void hide ();
379                 public void iconify ();
380                 public void input_shape_combine_region (Cairo.Region shape_region, int offset_x, int offset_y);
381                 public void invalidate_maybe_recurse (Cairo.Region region, Gdk.WindowChildFunc child_func);
382                 public void invalidate_rect (Gdk.Rectangle? rect, bool invalidate_children);
383                 public void invalidate_region (Cairo.Region region, bool invalidate_children);
384                 public bool is_destroyed ();
385                 public bool is_input_only ();
386                 public bool is_shaped ();
387                 public bool is_viewable ();
388                 public bool is_visible ();
389                 public void lower ();
390                 public void maximize ();
391                 public void merge_child_input_shapes ();
392                 public void merge_child_shapes ();
393                 public void move (int x, int y);
394                 public void move_region (Cairo.Region region, int dx, int dy);
395                 public void move_resize (int x, int y, int width, int height);
396                 public unowned GLib.List<Gdk.Window> peek_children ();
397                 public static void process_all_updates ();
398                 public void process_updates (bool update_children);
399                 public void raise ();
400                 public void register_dnd ();
401                 public void remove_filter (Gdk.FilterFunc function);
402                 public void reparent (Gdk.Window new_parent, int x, int y);
403                 public void resize (int width, int height);
404                 public void restack (Gdk.Window sibling, bool above);
405                 public void scroll (int dx, int dy);
406                 public void set_accept_focus (bool accept_focus);
407                 public void set_background (Gdk.Color color);
408                 public void set_background_pattern (Cairo.Pattern pattern);
409                 public void set_background_rgba (Gdk.RGBA rgba);
410                 public void set_child_input_shapes ();
411                 public void set_child_shapes ();
412                 public void set_composited (bool composited);
413                 public void set_cursor (Gdk.Cursor? cursor);
414                 public static void set_debug_updates (bool setting);
415                 public void set_decorations (Gdk.WMDecoration decorations);
416                 public void set_device_cursor (Gdk.Device device, Gdk.Cursor cursor);
417                 public void set_device_events (Gdk.Device device, Gdk.EventMask event_mask);
418                 public void set_events (Gdk.EventMask event_mask);
419                 public void set_focus_on_map (bool focus_on_map);
420                 public void set_functions (Gdk.WMFunction functions);
421                 public void set_geometry_hints (Gdk.Geometry geometry, Gdk.WindowHints geom_mask);
422                 public void set_group (Gdk.Window leader);
423                 public void set_icon_list (GLib.List<Gdk.Pixbuf> pixbufs);
424                 public void set_icon_name (string name);
425                 public void set_keep_above (bool setting);
426                 public void set_keep_below (bool setting);
427                 public void set_modal_hint (bool modal);
428                 public void set_opacity (double opacity);
429                 public void set_override_redirect (bool override_redirect);
430                 public void set_role (string role);
431                 public void set_skip_pager_hint (bool skips_pager);
432                 public void set_skip_taskbar_hint (bool skips_taskbar);
433                 public void set_source_events (Gdk.InputSource source, Gdk.EventMask event_mask);
434                 public void set_startup_id (string startup_id);
435                 public bool set_static_gravities (bool use_static);
436                 public void set_support_multidevice (bool support_multidevice);
437                 public void set_title (string title);
438                 public void set_transient_for (Gdk.Window parent);
439                 public void set_type_hint (Gdk.WindowTypeHint hint);
440                 public void set_urgency_hint (bool urgent);
441                 public void set_user_data (void* user_data);
442                 public void shape_combine_region (Cairo.Region shape_region, int offset_x, int offset_y);
443                 public void show ();
444                 public void show_unraised ();
445                 public void stick ();
446                 public void thaw_toplevel_updates_libgtk_only ();
447                 public void thaw_updates ();
448                 public void unfullscreen ();
449                 public void unmaximize ();
450                 public void unstick ();
451                 public void withdraw ();
452                 public Gdk.Cursor cursor { get; set; }
453                 public virtual signal Cairo.Surface create_surface (int width, int height);
454                 public virtual signal void from_embedder (double embedder_x, double embedder_y, void* offscreen_x, void* offscreen_y);
455                 public virtual signal unowned Gdk.Window pick_embedded_child (double x, double y);
456                 public virtual signal void to_embedder (double offscreen_x, double offscreen_y, void* embedder_x, void* embedder_y);
457         }
458         [CCode (cheader_filename = "gdk/gdk.h")]
459         [SimpleType]
460         public struct Atom {
461                 public static Gdk.Atom intern (string atom_name, bool only_if_exists);
462                 public static Gdk.Atom intern_static_string (string atom_name);
463                 public unowned string name ();
464         }
465         [CCode (type_id = "GDK_TYPE_COLOR", cheader_filename = "gdk/gdk.h")]
466         public struct Color {
467                 public uint32 pixel;
468                 public uint16 red;
469                 public uint16 green;
470                 public uint16 blue;
471                 public Gdk.Color copy ();
472                 public bool equal (Gdk.Color colorb);
473                 public void free ();
474                 public uint hash ();
475                 public static bool parse (string spec, out Gdk.Color color);
476                 public string to_string ();
477         }
478         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
479         public struct EventAny {
480                 public Gdk.EventType type;
481                 public weak Gdk.Window window;
482                 public char send_event;
483         }
484         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
485         public struct EventButton {
486                 public Gdk.EventType type;
487                 public weak Gdk.Window window;
488                 public char send_event;
489                 public uint32 time;
490                 public double x;
491                 public double y;
492                 [CCode (array_length = false)]
493                 public weak double[] axes;
494                 public Gdk.ModifierType state;
495                 public uint button;
496                 public weak Gdk.Device device;
497                 public double x_root;
498                 public double y_root;
499         }
500         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
501         public struct EventClient {
502                 public Gdk.EventType type;
503                 public weak Gdk.Window window;
504                 public char send_event;
505                 public Gdk.Atom message_type;
506                 public ushort data_format;
507                 public void* data;
508         }
509         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
510         public struct EventConfigure {
511                 public Gdk.EventType type;
512                 public weak Gdk.Window window;
513                 public char send_event;
514                 public int x;
515                 public int y;
516                 public int width;
517                 public int height;
518         }
519         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
520         public struct EventCrossing {
521                 public Gdk.EventType type;
522                 public weak Gdk.Window window;
523                 public char send_event;
524                 public weak Gdk.Window subwindow;
525                 public uint32 time;
526                 public double x;
527                 public double y;
528                 public double x_root;
529                 public double y_root;
530                 public Gdk.CrossingMode mode;
531                 public Gdk.NotifyType detail;
532                 public bool focus;
533                 public Gdk.ModifierType state;
534         }
535         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
536         public struct EventDND {
537                 public Gdk.EventType type;
538                 public weak Gdk.Window window;
539                 public char send_event;
540                 public weak Gdk.DragContext context;
541                 public uint32 time;
542                 public short x_root;
543                 public short y_root;
544         }
545         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
546         public struct EventExpose {
547                 public Gdk.EventType type;
548                 public weak Gdk.Window window;
549                 public char send_event;
550                 public Gdk.Rectangle area;
551                 public weak Cairo.Region region;
552                 public int count;
553         }
554         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
555         public struct EventFocus {
556                 public Gdk.EventType type;
557                 public weak Gdk.Window window;
558                 public char send_event;
559                 public int16 @in;
560         }
561         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
562         public struct EventGrabBroken {
563                 public Gdk.EventType type;
564                 public weak Gdk.Window window;
565                 public char send_event;
566                 public bool keyboard;
567                 public bool implicit;
568                 public weak Gdk.Window grab_window;
569         }
570         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
571         public struct EventKey {
572                 public Gdk.EventType type;
573                 public weak Gdk.Window window;
574                 public char send_event;
575                 public uint32 time;
576                 public Gdk.ModifierType state;
577                 public uint keyval;
578                 public int length;
579                 [CCode (cname = "string")]
580                 public weak string str;
581                 public uint16 hardware_keycode;
582                 public uchar group;
583                 public uint is_modifier;
584         }
585         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
586         public struct EventMotion {
587                 public Gdk.EventType type;
588                 public weak Gdk.Window window;
589                 public char send_event;
590                 public uint32 time;
591                 public double x;
592                 public double y;
593                 [CCode (array_length = false)]
594                 public weak double[] axes;
595                 public Gdk.ModifierType state;
596                 public bool is_hint;
597                 public weak Gdk.Device device;
598                 public double x_root;
599                 public double y_root;
600         }
601         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
602         public struct EventOwnerChange {
603                 public Gdk.EventType type;
604                 public weak Gdk.Window window;
605                 public char send_event;
606                 public Gdk.NativeWindow owner;
607                 public Gdk.OwnerChange reason;
608                 public Gdk.Atom selection;
609                 public uint32 time;
610                 public uint32 selection_time;
611         }
612         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
613         public struct EventProperty {
614                 public Gdk.EventType type;
615                 public weak Gdk.Window window;
616                 public char send_event;
617                 public Gdk.Atom atom;
618                 public uint32 time;
619                 public Gdk.PropertyState state;
620         }
621         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
622         public struct EventProximity {
623                 public Gdk.EventType type;
624                 public weak Gdk.Window window;
625                 public char send_event;
626                 public uint32 time;
627                 public weak Gdk.Device device;
628         }
629         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
630         public struct EventScroll {
631                 public Gdk.EventType type;
632                 public weak Gdk.Window window;
633                 public char send_event;
634                 public uint32 time;
635                 public double x;
636                 public double y;
637                 public Gdk.ModifierType state;
638                 public Gdk.ScrollDirection direction;
639                 public weak Gdk.Device device;
640                 public double x_root;
641                 public double y_root;
642         }
643         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
644         public struct EventSelection {
645                 public Gdk.EventType type;
646                 public weak Gdk.Window window;
647                 public char send_event;
648                 public Gdk.Atom selection;
649                 public Gdk.Atom target;
650                 public Gdk.Atom property;
651                 public uint32 time;
652                 public Gdk.NativeWindow requestor;
653         }
654         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
655         public struct EventSetting {
656                 public Gdk.EventType type;
657                 public weak Gdk.Window window;
658                 public char send_event;
659                 public Gdk.SettingAction action;
660                 public weak string name;
661         }
662         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
663         public struct EventVisibility {
664                 public Gdk.EventType type;
665                 public weak Gdk.Window window;
666                 public char send_event;
667                 public Gdk.VisibilityState state;
668         }
669         [CCode (has_type_id = false, cheader_filename = "gdk/gdk.h")]
670         public struct EventWindowState {
671                 public Gdk.EventType type;
672                 public weak Gdk.Window window;
673                 public char send_event;
674                 public Gdk.WindowState changed_mask;
675                 public Gdk.WindowState new_window_state;
676         }
677         [CCode (type_id = "GDK_TYPE_GEOMETRY", cheader_filename = "gdk/gdk.h")]
678         public struct Geometry {
679                 public int min_width;
680                 public int min_height;
681                 public int max_width;
682                 public int max_height;
683                 public int base_width;
684                 public int base_height;
685                 public int width_inc;
686                 public int height_inc;
687                 public double min_aspect;
688                 public double max_aspect;
689                 public Gdk.Gravity win_gravity;
690         }
691         [CCode (type_id = "GDK_TYPE_KEYMAP_KEY", cheader_filename = "gdk/gdk.h")]
692         public struct KeymapKey {
693                 public uint keycode;
694                 public int group;
695                 public int level;
696         }
697         [CCode (cheader_filename = "gdk/gdk.h")]
698         [SimpleType]
699         public struct NativeWindow {
700         }
701         [CCode (type_id = "GDK_TYPE_POINT", cheader_filename = "gdk/gdk.h")]
702         public struct Point {
703                 public int x;
704                 public int y;
705         }
706         [CCode (type_id = "GDK_TYPE_RGBA", cheader_filename = "gdk/gdk.h")]
707         public struct RGBA {
708                 public double red;
709                 public double green;
710                 public double blue;
711                 public double alpha;
712                 public Gdk.RGBA copy ();
713                 public static bool equal (void* p1, void* p2);
714                 public void free ();
715                 public static uint hash (void* p);
716                 public bool parse (string spec);
717                 public unowned string to_string ();
718         }
719         [CCode (type_id = "GDK_TYPE_RECTANGLE", cheader_filename = "gdk/gdk.h")]
720         public struct Rectangle {
721                 public bool intersect (Gdk.Rectangle src2, Gdk.Rectangle dest);
722                 public void union (Gdk.Rectangle src2, out Gdk.Rectangle dest);
723         }
724         [CCode (type_id = "GDK_TYPE_TIME_COORD", cheader_filename = "gdk/gdk.h")]
725         public struct TimeCoord {
726                 public uint32 time;
727                 [CCode (array_length = false)]
728                 public weak double[] axes;
729         }
730         [CCode (type_id = "GDK_TYPE_WINDOW_ATTR", cheader_filename = "gdk/gdk.h")]
731         public struct WindowAttr {
732                 public weak string title;
733                 public int event_mask;
734                 public int x;
735                 public int y;
736                 public int width;
737                 public int height;
738                 public Gdk.WindowWindowClass wclass;
739                 public weak Gdk.Visual visual;
740                 public Gdk.WindowType window_type;
741                 public weak Gdk.Cursor cursor;
742                 public weak string wmclass_name;
743                 public weak string wmclass_class;
744                 public bool override_redirect;
745                 public Gdk.WindowTypeHint type_hint;
746         }
747         [CCode (type_id = "GDK_TYPE_WINDOW_REDIRECT", cheader_filename = "gdk/gdk.h")]
748         public struct WindowRedirect {
749         }
750         [CCode (type_id = "GDK_TYPE_XEVENT", cheader_filename = "gdk/gdk.h")]
751         public struct XEvent {
752         }
753         [CCode (cprefix = "GDK_AXIS_", cheader_filename = "gdk/gdk.h")]
754         public enum AxisUse {
755                 IGNORE,
756                 X,
757                 Y,
758                 PRESSURE,
759                 XTILT,
760                 YTILT,
761                 WHEEL,
762                 LAST
763         }
764         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
765         public enum ByteOrder {
766                 LSB_FIRST,
767                 MSB_FIRST
768         }
769         [CCode (cprefix = "GDK_CROSSING_", cheader_filename = "gdk/gdk.h")]
770         public enum CrossingMode {
771                 NORMAL,
772                 GRAB,
773                 UNGRAB,
774                 GTK_GRAB,
775                 GTK_UNGRAB,
776                 STATE_CHANGED
777         }
778         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
779         public enum CursorType {
780                 X_CURSOR,
781                 ARROW,
782                 BASED_ARROW_DOWN,
783                 BASED_ARROW_UP,
784                 BOAT,
785                 BOGOSITY,
786                 BOTTOM_LEFT_CORNER,
787                 BOTTOM_RIGHT_CORNER,
788                 BOTTOM_SIDE,
789                 BOTTOM_TEE,
790                 BOX_SPIRAL,
791                 CENTER_PTR,
792                 CIRCLE,
793                 CLOCK,
794                 COFFEE_MUG,
795                 CROSS,
796                 CROSS_REVERSE,
797                 CROSSHAIR,
798                 DIAMOND_CROSS,
799                 DOT,
800                 DOTBOX,
801                 DOUBLE_ARROW,
802                 DRAFT_LARGE,
803                 DRAFT_SMALL,
804                 DRAPED_BOX,
805                 EXCHANGE,
806                 FLEUR,
807                 GOBBLER,
808                 GUMBY,
809                 HAND1,
810                 HAND2,
811                 HEART,
812                 ICON,
813                 IRON_CROSS,
814                 LEFT_PTR,
815                 LEFT_SIDE,
816                 LEFT_TEE,
817                 LEFTBUTTON,
818                 LL_ANGLE,
819                 LR_ANGLE,
820                 MAN,
821                 MIDDLEBUTTON,
822                 MOUSE,
823                 PENCIL,
824                 PIRATE,
825                 PLUS,
826                 QUESTION_ARROW,
827                 RIGHT_PTR,
828                 RIGHT_SIDE,
829                 RIGHT_TEE,
830                 RIGHTBUTTON,
831                 RTL_LOGO,
832                 SAILBOAT,
833                 SB_DOWN_ARROW,
834                 SB_H_DOUBLE_ARROW,
835                 SB_LEFT_ARROW,
836                 SB_RIGHT_ARROW,
837                 SB_UP_ARROW,
838                 SB_V_DOUBLE_ARROW,
839                 SHUTTLE,
840                 SIZING,
841                 SPIDER,
842                 SPRAYCAN,
843                 STAR,
844                 TARGET,
845                 TCROSS,
846                 TOP_LEFT_ARROW,
847                 TOP_LEFT_CORNER,
848                 TOP_RIGHT_CORNER,
849                 TOP_SIDE,
850                 TOP_TEE,
851                 TREK,
852                 UL_ANGLE,
853                 UMBRELLA,
854                 UR_ANGLE,
855                 WATCH,
856                 XTERM,
857                 LAST_CURSOR,
858                 BLANK_CURSOR,
859                 CURSOR_IS_PIXMAP
860         }
861         [CCode (cprefix = "GDK_DEVICE_TYPE_", cheader_filename = "gdk/gdk.h")]
862         public enum DeviceType {
863                 MASTER,
864                 SLAVE,
865                 FLOATING
866         }
867         [CCode (cprefix = "GDK_ACTION_", cheader_filename = "gdk/gdk.h")]
868         [Flags]
869         public enum DragAction {
870                 DEFAULT,
871                 COPY,
872                 MOVE,
873                 LINK,
874                 PRIVATE,
875                 ASK
876         }
877         [CCode (cprefix = "GDK_DRAG_PROTO_", cheader_filename = "gdk/gdk.h")]
878         public enum DragProtocol {
879                 MOTIF,
880                 XDND,
881                 ROOTWIN,
882                 NONE,
883                 WIN32_DROPFILES,
884                 OLE2,
885                 LOCAL
886         }
887         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
888         [Flags]
889         public enum EventMask {
890                 EXPOSURE_MASK,
891                 POINTER_MOTION_MASK,
892                 POINTER_MOTION_HINT_MASK,
893                 BUTTON_MOTION_MASK,
894                 BUTTON1_MOTION_MASK,
895                 BUTTON2_MOTION_MASK,
896                 BUTTON3_MOTION_MASK,
897                 BUTTON_PRESS_MASK,
898                 BUTTON_RELEASE_MASK,
899                 KEY_PRESS_MASK,
900                 KEY_RELEASE_MASK,
901                 ENTER_NOTIFY_MASK,
902                 LEAVE_NOTIFY_MASK,
903                 FOCUS_CHANGE_MASK,
904                 STRUCTURE_MASK,
905                 PROPERTY_CHANGE_MASK,
906                 VISIBILITY_NOTIFY_MASK,
907                 PROXIMITY_IN_MASK,
908                 PROXIMITY_OUT_MASK,
909                 SUBSTRUCTURE_MASK,
910                 SCROLL_MASK,
911                 ALL_EVENTS_MASK
912         }
913         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
914         public enum EventType {
915                 NOTHING,
916                 DELETE,
917                 DESTROY,
918                 EXPOSE,
919                 MOTION_NOTIFY,
920                 BUTTON_PRESS,
921                 @2BUTTON_PRESS,
922                 @3BUTTON_PRESS,
923                 BUTTON_RELEASE,
924                 KEY_PRESS,
925                 KEY_RELEASE,
926                 ENTER_NOTIFY,
927                 LEAVE_NOTIFY,
928                 FOCUS_CHANGE,
929                 CONFIGURE,
930                 MAP,
931                 UNMAP,
932                 PROPERTY_NOTIFY,
933                 SELECTION_CLEAR,
934                 SELECTION_REQUEST,
935                 SELECTION_NOTIFY,
936                 PROXIMITY_IN,
937                 PROXIMITY_OUT,
938                 DRAG_ENTER,
939                 DRAG_LEAVE,
940                 DRAG_MOTION,
941                 DRAG_STATUS,
942                 DROP_START,
943                 DROP_FINISHED,
944                 CLIENT_EVENT,
945                 VISIBILITY_NOTIFY,
946                 SCROLL,
947                 WINDOW_STATE,
948                 SETTING,
949                 OWNER_CHANGE,
950                 GRAB_BROKEN,
951                 DAMAGE,
952                 EVENT_LAST
953         }
954         [CCode (cprefix = "GDK_EXTENSION_EVENTS_", cheader_filename = "gdk/gdk.h")]
955         public enum ExtensionMode {
956                 NONE,
957                 ALL,
958                 CURSOR
959         }
960         [CCode (cprefix = "GDK_FILTER_", cheader_filename = "gdk/gdk.h")]
961         public enum FilterReturn {
962                 CONTINUE,
963                 TRANSLATE,
964                 REMOVE
965         }
966         [CCode (cprefix = "GDK_OWNERSHIP_", cheader_filename = "gdk/gdk.h")]
967         public enum GrabOwnership {
968                 NONE,
969                 WINDOW,
970                 APPLICATION
971         }
972         [CCode (cprefix = "GDK_GRAB_", cheader_filename = "gdk/gdk.h")]
973         public enum GrabStatus {
974                 SUCCESS,
975                 ALREADY_GRABBED,
976                 INVALID_TIME,
977                 NOT_VIEWABLE,
978                 FROZEN
979         }
980         [CCode (cprefix = "GDK_GRAVITY_", cheader_filename = "gdk/gdk.h")]
981         public enum Gravity {
982                 NORTH_WEST,
983                 NORTH,
984                 NORTH_EAST,
985                 WEST,
986                 CENTER,
987                 EAST,
988                 SOUTH_WEST,
989                 SOUTH,
990                 SOUTH_EAST,
991                 STATIC
992         }
993         [CCode (cprefix = "GDK_MODE_", cheader_filename = "gdk/gdk.h")]
994         public enum InputMode {
995                 DISABLED,
996                 SCREEN,
997                 WINDOW
998         }
999         [CCode (cprefix = "GDK_SOURCE_", cheader_filename = "gdk/gdk.h")]
1000         public enum InputSource {
1001                 MOUSE,
1002                 PEN,
1003                 ERASER,
1004                 CURSOR,
1005                 KEYBOARD
1006         }
1007         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1008         [Flags]
1009         public enum ModifierType {
1010                 SHIFT_MASK,
1011                 LOCK_MASK,
1012                 CONTROL_MASK,
1013                 MOD1_MASK,
1014                 MOD2_MASK,
1015                 MOD3_MASK,
1016                 MOD4_MASK,
1017                 MOD5_MASK,
1018                 BUTTON1_MASK,
1019                 BUTTON2_MASK,
1020                 BUTTON3_MASK,
1021                 BUTTON4_MASK,
1022                 BUTTON5_MASK,
1023                 SUPER_MASK,
1024                 HYPER_MASK,
1025                 META_MASK,
1026                 RELEASE_MASK,
1027                 MODIFIER_MASK
1028         }
1029         [CCode (cprefix = "GDK_NOTIFY_", cheader_filename = "gdk/gdk.h")]
1030         public enum NotifyType {
1031                 ANCESTOR,
1032                 VIRTUAL,
1033                 INFERIOR,
1034                 NONLINEAR,
1035                 NONLINEAR_VIRTUAL,
1036                 UNKNOWN
1037         }
1038         [CCode (cprefix = "GDK_OWNER_CHANGE_", cheader_filename = "gdk/gdk.h")]
1039         public enum OwnerChange {
1040                 NEW_OWNER,
1041                 DESTROY,
1042                 CLOSE
1043         }
1044         [CCode (cprefix = "GDK_PROP_MODE_", cheader_filename = "gdk/gdk.h")]
1045         public enum PropMode {
1046                 REPLACE,
1047                 PREPEND,
1048                 APPEND
1049         }
1050         [CCode (cprefix = "GDK_PROPERTY_", cheader_filename = "gdk/gdk.h")]
1051         public enum PropertyState {
1052                 NEW_VALUE,
1053                 DELETE
1054         }
1055         [CCode (cprefix = "GDK_SCROLL_", cheader_filename = "gdk/gdk.h")]
1056         public enum ScrollDirection {
1057                 UP,
1058                 DOWN,
1059                 LEFT,
1060                 RIGHT
1061         }
1062         [CCode (cprefix = "GDK_SETTING_ACTION_", cheader_filename = "gdk/gdk.h")]
1063         public enum SettingAction {
1064                 NEW,
1065                 CHANGED,
1066                 DELETED
1067         }
1068         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1069         public enum Status {
1070                 OK,
1071                 ERROR,
1072                 ERROR_PARAM,
1073                 ERROR_FILE,
1074                 ERROR_MEM
1075         }
1076         [CCode (cprefix = "GDK_VISIBILITY_", cheader_filename = "gdk/gdk.h")]
1077         public enum VisibilityState {
1078                 UNOBSCURED,
1079                 PARTIAL,
1080                 FULLY_OBSCURED
1081         }
1082         [CCode (cprefix = "GDK_VISUAL_", cheader_filename = "gdk/gdk.h")]
1083         public enum VisualType {
1084                 STATIC_GRAY,
1085                 GRAYSCALE,
1086                 STATIC_COLOR,
1087                 PSEUDO_COLOR,
1088                 TRUE_COLOR,
1089                 DIRECT_COLOR
1090         }
1091         [CCode (cprefix = "GDK_DECOR_", cheader_filename = "gdk/gdk.h")]
1092         [Flags]
1093         public enum WMDecoration {
1094                 ALL,
1095                 BORDER,
1096                 RESIZEH,
1097                 TITLE,
1098                 MENU,
1099                 MINIMIZE,
1100                 MAXIMIZE
1101         }
1102         [CCode (cprefix = "GDK_FUNC_", cheader_filename = "gdk/gdk.h")]
1103         [Flags]
1104         public enum WMFunction {
1105                 ALL,
1106                 RESIZE,
1107                 MOVE,
1108                 MINIMIZE,
1109                 MAXIMIZE,
1110                 CLOSE
1111         }
1112         [CCode (cprefix = "GDK_WA_", cheader_filename = "gdk/gdk.h")]
1113         [Flags]
1114         public enum WindowAttributesType {
1115                 TITLE,
1116                 X,
1117                 Y,
1118                 CURSOR,
1119                 VISUAL,
1120                 WMCLASS,
1121                 NOREDIR,
1122                 TYPE_HINT
1123         }
1124         [CCode (cprefix = "GDK_WINDOW_EDGE_", cheader_filename = "gdk/gdk.h")]
1125         public enum WindowEdge {
1126                 NORTH_WEST,
1127                 NORTH,
1128                 NORTH_EAST,
1129                 WEST,
1130                 EAST,
1131                 SOUTH_WEST,
1132                 SOUTH,
1133                 SOUTH_EAST
1134         }
1135         [CCode (cprefix = "GDK_HINT_", cheader_filename = "gdk/gdk.h")]
1136         [Flags]
1137         public enum WindowHints {
1138                 POS,
1139                 MIN_SIZE,
1140                 MAX_SIZE,
1141                 BASE_SIZE,
1142                 ASPECT,
1143                 RESIZE_INC,
1144                 WIN_GRAVITY,
1145                 USER_POS,
1146                 USER_SIZE
1147         }
1148         [CCode (cprefix = "GDK_WINDOW_STATE_", cheader_filename = "gdk/gdk.h")]
1149         [Flags]
1150         public enum WindowState {
1151                 WITHDRAWN,
1152                 ICONIFIED,
1153                 MAXIMIZED,
1154                 STICKY,
1155                 FULLSCREEN,
1156                 ABOVE,
1157                 BELOW
1158         }
1159         [CCode (cprefix = "GDK_WINDOW_", cheader_filename = "gdk/gdk.h")]
1160         public enum WindowType {
1161                 ROOT,
1162                 TOPLEVEL,
1163                 CHILD,
1164                 TEMP,
1165                 FOREIGN,
1166                 OFFSCREEN
1167         }
1168         [CCode (cprefix = "GDK_WINDOW_TYPE_HINT_", cheader_filename = "gdk/gdk.h")]
1169         public enum WindowTypeHint {
1170                 NORMAL,
1171                 DIALOG,
1172                 MENU,
1173                 TOOLBAR,
1174                 SPLASHSCREEN,
1175                 UTILITY,
1176                 DOCK,
1177                 DESKTOP,
1178                 DROPDOWN_MENU,
1179                 POPUP_MENU,
1180                 TOOLTIP,
1181                 NOTIFICATION,
1182                 COMBO,
1183                 DND
1184         }
1185         [CCode (cprefix = "GDK_INPUT_", cheader_filename = "gdk/gdk.h")]
1186         public enum WindowWindowClass {
1187                 OUTPUT,
1188                 ONLY
1189         }
1190         [CCode (cheader_filename = "gdk/gdk.h")]
1191         public delegate void EventFunc (Gdk.Event event);
1192         [CCode (cheader_filename = "gdk/gdk.h")]
1193         public delegate Gdk.FilterReturn FilterFunc (Gdk.XEvent xevent, Gdk.Event event);
1194         [CCode (cheader_filename = "gdk/gdk.h")]
1195         public delegate bool WindowChildFunc (Gdk.Window window);
1196         [CCode (cheader_filename = "gdk/gdk.h")]
1197         public const int CURRENT_TIME;
1198         [CCode (cheader_filename = "gdk/gdk.h")]
1199         public const int MAX_TIMECOORD_AXES;
1200         [CCode (cheader_filename = "gdk/gdk.h")]
1201         public const int PARENT_RELATIVE;
1202         [CCode (cheader_filename = "gdk/gdk.h")]
1203         public const int PRIORITY_REDRAW;
1204         [CCode (cheader_filename = "gdk/gdk.h")]
1205         public const Gdk.Atom SELECTION_CLIPBOARD;
1206         [CCode (cheader_filename = "gdk/gdk.h")]
1207         public const Gdk.Atom SELECTION_PRIMARY;
1208         [CCode (cheader_filename = "gdk/gdk.h")]
1209         public const Gdk.Atom SELECTION_SECONDARY;
1210         [CCode (cheader_filename = "gdk/gdk.h")]
1211         public static void add_client_message_filter (Gdk.Atom message_type, Gdk.FilterFunc func);
1212         [CCode (cheader_filename = "gdk/gdk.h")]
1213         public static void add_option_entries_libgtk_only (GLib.OptionGroup group);
1214         [CCode (cheader_filename = "gdk/gdk.h")]
1215         public static void beep ();
1216         [CCode (cheader_filename = "gdk/gdk.h")]
1217         public static Cairo.Context cairo_create (Gdk.Window window);
1218         [CCode (cheader_filename = "gdk/gdk.h")]
1219         public static bool cairo_get_clip_rectangle (Cairo.Context cr, Gdk.Rectangle rect);
1220         [CCode (cheader_filename = "gdk/gdk.h")]
1221         public static void cairo_rectangle (Cairo.Context cr, Gdk.Rectangle rectangle);
1222         [CCode (cheader_filename = "gdk/gdk.h")]
1223         public static void cairo_region (Cairo.Context cr, Cairo.Region region);
1224         [CCode (cheader_filename = "gdk/gdk.h")]
1225         public static unowned Cairo.Region cairo_region_create_from_surface (Cairo.Surface surface);
1226         [CCode (cheader_filename = "gdk/gdk.h")]
1227         public static void cairo_set_source_color (Cairo.Context cr, Gdk.Color color);
1228         [CCode (cheader_filename = "gdk/gdk.h")]
1229         public static void cairo_set_source_pixbuf (Cairo.Context cr, Gdk.Pixbuf pixbuf, double pixbuf_x, double pixbuf_y);
1230         [CCode (cheader_filename = "gdk/gdk.h")]
1231         public static void cairo_set_source_rgba (Cairo.Context cr, Gdk.RGBA rgba);
1232         [CCode (cheader_filename = "gdk/gdk.h")]
1233         public static void cairo_set_source_window (Cairo.Context cr, Gdk.Window window, double x, double y);
1234         [CCode (cheader_filename = "gdk/gdk.h")]
1235         public static void disable_multidevice ();
1236         [CCode (cheader_filename = "gdk/gdk.h")]
1237         public static void drag_abort (Gdk.DragContext context, uint32 time_);
1238         [CCode (cheader_filename = "gdk/gdk.h")]
1239         public static unowned Gdk.DragContext drag_begin (Gdk.Window window, GLib.List targets);
1240         [CCode (cheader_filename = "gdk/gdk.h")]
1241         public static unowned Gdk.DragContext drag_begin_for_device (Gdk.Window window, Gdk.Device device, GLib.List targets);
1242         [CCode (cheader_filename = "gdk/gdk.h")]
1243         public static void drag_drop (Gdk.DragContext context, uint32 time_);
1244         [CCode (cheader_filename = "gdk/gdk.h")]
1245         public static bool drag_drop_succeeded (Gdk.DragContext context);
1246         [CCode (cheader_filename = "gdk/gdk.h")]
1247         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);
1248         [CCode (cheader_filename = "gdk/gdk.h")]
1249         public static Gdk.NativeWindow drag_get_protocol_for_display (Gdk.Display display, Gdk.NativeWindow xid, Gdk.DragProtocol protocol);
1250         [CCode (cheader_filename = "gdk/gdk.h")]
1251         public static Gdk.Atom drag_get_selection (Gdk.DragContext context);
1252         [CCode (cheader_filename = "gdk/gdk.h")]
1253         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_);
1254         [CCode (cheader_filename = "gdk/gdk.h")]
1255         public static void drag_status (Gdk.DragContext context, Gdk.DragAction action, uint32 time_);
1256         [CCode (cheader_filename = "gdk/gdk.h")]
1257         public static void drop_finish (Gdk.DragContext context, bool success, uint32 time_);
1258         [CCode (cheader_filename = "gdk/gdk.h")]
1259         public static void drop_reply (Gdk.DragContext context, bool accepted, uint32 time_);
1260         [CCode (cheader_filename = "gdk/gdk.h")]
1261         public static int error_trap_pop ();
1262         [CCode (cheader_filename = "gdk/gdk.h")]
1263         public static void error_trap_pop_ignored ();
1264         [CCode (cheader_filename = "gdk/gdk.h")]
1265         public static void error_trap_push ();
1266         [CCode (cheader_filename = "gdk/gdk.h")]
1267         public static bool events_get_angle (Gdk.Event event1, Gdk.Event event2, double angle);
1268         [CCode (cheader_filename = "gdk/gdk.h")]
1269         public static bool events_get_center (Gdk.Event event1, Gdk.Event event2, double x, double y);
1270         [CCode (cheader_filename = "gdk/gdk.h")]
1271         public static bool events_get_distance (Gdk.Event event1, Gdk.Event event2, double distance);
1272         [CCode (cheader_filename = "gdk/gdk.h")]
1273         public static bool events_pending ();
1274         [CCode (cheader_filename = "gdk/gdk.h")]
1275         public static void flush ();
1276         [CCode (cheader_filename = "gdk/gdk.h")]
1277         public static unowned Gdk.Window get_default_root_window ();
1278         [CCode (cheader_filename = "gdk/gdk.h")]
1279         public static unowned string get_display ();
1280         [CCode (cheader_filename = "gdk/gdk.h")]
1281         public static unowned string get_display_arg_name ();
1282         [CCode (cheader_filename = "gdk/gdk.h")]
1283         public static unowned string get_program_class ();
1284         [CCode (cheader_filename = "gdk/gdk.h")]
1285         public static bool get_show_events ();
1286         [CCode (cheader_filename = "gdk/gdk.h")]
1287         public static void init ([CCode (array_length_pos = 0.9)] ref unowned string[] argv);
1288         [CCode (cheader_filename = "gdk/gdk.h")]
1289         public static bool init_check ([CCode (array_length_pos = 0.9)] ref unowned string[] argv);
1290         [CCode (cheader_filename = "gdk/gdk.h")]
1291         public static void keyval_convert_case (uint symbol, uint lower, uint upper);
1292         [CCode (cheader_filename = "gdk/gdk.h")]
1293         public static uint keyval_from_name (string keyval_name);
1294         [CCode (cheader_filename = "gdk/gdk.h")]
1295         public static bool keyval_is_lower (uint keyval);
1296         [CCode (cheader_filename = "gdk/gdk.h")]
1297         public static bool keyval_is_upper (uint keyval);
1298         [CCode (cheader_filename = "gdk/gdk.h")]
1299         public static unowned string keyval_name (uint keyval);
1300         [CCode (cheader_filename = "gdk/gdk.h")]
1301         public static uint keyval_to_lower (uint keyval);
1302         [CCode (cheader_filename = "gdk/gdk.h")]
1303         public static uint32 keyval_to_unicode (uint keyval);
1304         [CCode (cheader_filename = "gdk/gdk.h")]
1305         public static uint keyval_to_upper (uint keyval);
1306         [CCode (cheader_filename = "gdk/gdk.h")]
1307         public static GLib.List<weak Gdk.Visual> list_visuals ();
1308         [CCode (cheader_filename = "gdk/gdk.h")]
1309         public static void notify_startup_complete ();
1310         [CCode (cheader_filename = "gdk/gdk.h")]
1311         public static void notify_startup_complete_with_id (string startup_id);
1312         [CCode (cheader_filename = "gdk/gdk.h")]
1313         public static unowned Gdk.Window? offscreen_window_get_embedder (Gdk.Window window);
1314         [CCode (cheader_filename = "gdk/gdk.h")]
1315         public static unowned Cairo.Surface offscreen_window_get_surface (Gdk.Window window);
1316         [CCode (cheader_filename = "gdk/gdk.h")]
1317         public static void offscreen_window_set_embedder (Gdk.Window window, Gdk.Window embedder);
1318         [CCode (cheader_filename = "gdk/gdk.h")]
1319         public static unowned Pango.Context pango_context_get ();
1320         [CCode (cheader_filename = "gdk/gdk.h")]
1321         public static unowned Pango.Context pango_context_get_for_screen (Gdk.Screen screen);
1322         [CCode (cheader_filename = "gdk/gdk.h")]
1323         public static unowned Cairo.Region pango_layout_get_clip_region (Pango.Layout layout, int x_origin, int y_origin, int index_ranges, int n_ranges);
1324         [CCode (cheader_filename = "gdk/gdk.h")]
1325         public static unowned Cairo.Region pango_layout_line_get_clip_region (Pango.LayoutLine line, int x_origin, int y_origin, int index_ranges, int n_ranges);
1326         [CCode (cheader_filename = "gdk/gdk.h")]
1327         public static void parse_args (int argc, string argv);
1328         [CCode (cheader_filename = "gdk/gdk.h")]
1329         public static unowned Gdk.Pixbuf pixbuf_get_from_surface (Cairo.Surface surface, int src_x, int src_y, int width, int height);
1330         [CCode (cheader_filename = "gdk/gdk.h")]
1331         public static unowned Gdk.Pixbuf pixbuf_get_from_window (Gdk.Window window, int src_x, int src_y, int width, int height);
1332         [CCode (cheader_filename = "gdk/gdk.h")]
1333         public static void pre_parse_libgtk_only ();
1334         [CCode (cheader_filename = "gdk/gdk.h")]
1335         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);
1336         [CCode (cheader_filename = "gdk/gdk.h")]
1337         public static void property_delete (Gdk.Window window, Gdk.Atom property);
1338         [CCode (cheader_filename = "gdk/gdk.h")]
1339         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);
1340         [CCode (cheader_filename = "gdk/gdk.h")]
1341         public static void query_depths (int depths, int count);
1342         [CCode (cheader_filename = "gdk/gdk.h")]
1343         public static void query_visual_types (out Gdk.VisualType visual_types, int count);
1344         [Deprecated (since = "vala-0.12", replacement = "Selection.convert")]
1345         [CCode (cheader_filename = "gdk/gdk.h")]
1346         public static void selection_convert (Gdk.Window requestor, Gdk.Atom selection, Gdk.Atom target, uint32 time_);
1347         [Deprecated (since = "vala-0.12", replacement = "Selection.owner_get")]
1348         [CCode (cheader_filename = "gdk/gdk.h")]
1349         public static unowned Gdk.Window selection_owner_get (Gdk.Atom selection);
1350         [Deprecated (since = "vala-0.12", replacement = "Selection.owner_get_for_display")]
1351         [CCode (cheader_filename = "gdk/gdk.h")]
1352         public static unowned Gdk.Window selection_owner_get_for_display (Gdk.Display display, Gdk.Atom selection);
1353         [Deprecated (since = "vala-0.12", replacement = "Selection.owner_set")]
1354         [CCode (cheader_filename = "gdk/gdk.h")]
1355         public static bool selection_owner_set (Gdk.Window owner, Gdk.Atom selection, uint32 time_, bool send_event);
1356         [Deprecated (since = "vala-0.12", replacement = "Selection.owner_set_for_display")]
1357         [CCode (cheader_filename = "gdk/gdk.h")]
1358         public static bool selection_owner_set_for_display (Gdk.Display display, Gdk.Window owner, Gdk.Atom selection, uint32 time_, bool send_event);
1359         [Deprecated (since = "vala-0.12", replacement = "Selection.property_get")]
1360         [CCode (cheader_filename = "gdk/gdk.h")]
1361         public static int selection_property_get (Gdk.Window requestor, uchar[] data, out Gdk.Atom prop_type, int prop_format);
1362         [Deprecated (since = "vala-0.12", replacement = "Selection.send_notify")]
1363         [CCode (cheader_filename = "gdk/gdk.h")]
1364         public static void selection_send_notify (Gdk.NativeWindow requestor, Gdk.Atom selection, Gdk.Atom target, Gdk.Atom property, uint32 time_);
1365         [Deprecated (since = "vala-0.12", replacement = "Selection.send_notify_for_display")]
1366         [CCode (cheader_filename = "gdk/gdk.h")]
1367         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_);
1368         [CCode (cheader_filename = "gdk/gdk.h")]
1369         public static void set_double_click_time (uint msec);
1370         [CCode (cheader_filename = "gdk/gdk.h")]
1371         public static void set_program_class (string program_class);
1372         [CCode (cheader_filename = "gdk/gdk.h")]
1373         public static void set_show_events (bool show_events);
1374         [CCode (cheader_filename = "gdk/gdk.h")]
1375         public static bool setting_get (string name, GLib.Value value);
1376         [CCode (cheader_filename = "gdk/gdk.h")]
1377         public static void test_render_sync (Gdk.Window window);
1378         [CCode (cheader_filename = "gdk/gdk.h")]
1379         public static bool test_simulate_button (Gdk.Window window, int x, int y, uint button, Gdk.ModifierType modifiers, Gdk.EventType button_pressrelease);
1380         [CCode (cheader_filename = "gdk/gdk.h")]
1381         public static bool test_simulate_key (Gdk.Window window, int x, int y, uint keyval, Gdk.ModifierType modifiers, Gdk.EventType key_pressrelease);
1382         [CCode (cheader_filename = "gdk/gdk.h")]
1383         public static int text_property_to_utf8_list_for_display (Gdk.Display display, Gdk.Atom encoding, int format, uchar[] text, int length, string list);
1384         [CCode (cheader_filename = "gdk/gdk.h")]
1385         public static uint threads_add_idle (GLib.SourceFunc function);
1386         [CCode (cheader_filename = "gdk/gdk.h")]
1387         public static uint threads_add_idle_full (int priority, GLib.SourceFunc function, void* data, GLib.DestroyNotify notify);
1388         [CCode (cheader_filename = "gdk/gdk.h")]
1389         public static uint threads_add_timeout (uint interval, GLib.SourceFunc function, void* data);
1390         [CCode (cheader_filename = "gdk/gdk.h")]
1391         public static uint threads_add_timeout_full (int priority, uint interval, GLib.SourceFunc function, void* data, GLib.DestroyNotify notify);
1392         [CCode (cheader_filename = "gdk/gdk.h")]
1393         public static uint threads_add_timeout_seconds (uint interval, GLib.SourceFunc function, void* data);
1394         [CCode (cheader_filename = "gdk/gdk.h")]
1395         public static uint threads_add_timeout_seconds_full (int priority, uint interval, GLib.SourceFunc function, void* data, GLib.DestroyNotify notify);
1396         [CCode (cheader_filename = "gdk/gdk.h")]
1397         public static void threads_enter ();
1398         [CCode (cheader_filename = "gdk/gdk.h")]
1399         public static void threads_init ();
1400         [CCode (cheader_filename = "gdk/gdk.h")]
1401         public static void threads_leave ();
1402         [CCode (cheader_filename = "gdk/gdk.h")]
1403         public static void threads_set_lock_functions (GLib.Callback enter_fn, GLib.Callback leave_fn);
1404         [CCode (cheader_filename = "gdk/gdk.h")]
1405         public static uint unicode_to_keyval (uint32 wc);
1406         [CCode (cheader_filename = "gdk/gdk.h")]
1407         public static unowned string utf8_to_string_target (string str);