CodeWriter: Write [Diagnostics] attribute
[vala-lang.git] / vapi / gdk-3.0.vapi
blob92ee6cbb86436596096939818828e72cb796604c
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 int x;
722                 public int y;
723                 public int width;
724                 public int height;
725                 public bool intersect (Gdk.Rectangle src2, out Gdk.Rectangle dest);
726                 public void union (Gdk.Rectangle src2, out Gdk.Rectangle dest);
727         }
728         [CCode (type_id = "GDK_TYPE_TIME_COORD", cheader_filename = "gdk/gdk.h")]
729         public struct TimeCoord {
730                 public uint32 time;
731                 [CCode (array_length = false)]
732                 public weak double[] axes;
733         }
734         [CCode (type_id = "GDK_TYPE_WINDOW_ATTR", cheader_filename = "gdk/gdk.h")]
735         public struct WindowAttr {
736                 public weak string title;
737                 public int event_mask;
738                 public int x;
739                 public int y;
740                 public int width;
741                 public int height;
742                 public Gdk.WindowWindowClass wclass;
743                 public weak Gdk.Visual visual;
744                 public Gdk.WindowType window_type;
745                 public weak Gdk.Cursor cursor;
746                 public weak string wmclass_name;
747                 public weak string wmclass_class;
748                 public bool override_redirect;
749                 public Gdk.WindowTypeHint type_hint;
750         }
751         [CCode (type_id = "GDK_TYPE_WINDOW_REDIRECT", cheader_filename = "gdk/gdk.h")]
752         public struct WindowRedirect {
753         }
754         [CCode (type_id = "GDK_TYPE_XEVENT", cheader_filename = "gdk/gdk.h")]
755         public struct XEvent {
756         }
757         [CCode (cprefix = "GDK_AXIS_", cheader_filename = "gdk/gdk.h")]
758         public enum AxisUse {
759                 IGNORE,
760                 X,
761                 Y,
762                 PRESSURE,
763                 XTILT,
764                 YTILT,
765                 WHEEL,
766                 LAST
767         }
768         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
769         public enum ByteOrder {
770                 LSB_FIRST,
771                 MSB_FIRST
772         }
773         [CCode (cprefix = "GDK_CROSSING_", cheader_filename = "gdk/gdk.h")]
774         public enum CrossingMode {
775                 NORMAL,
776                 GRAB,
777                 UNGRAB,
778                 GTK_GRAB,
779                 GTK_UNGRAB,
780                 STATE_CHANGED
781         }
782         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
783         public enum CursorType {
784                 X_CURSOR,
785                 ARROW,
786                 BASED_ARROW_DOWN,
787                 BASED_ARROW_UP,
788                 BOAT,
789                 BOGOSITY,
790                 BOTTOM_LEFT_CORNER,
791                 BOTTOM_RIGHT_CORNER,
792                 BOTTOM_SIDE,
793                 BOTTOM_TEE,
794                 BOX_SPIRAL,
795                 CENTER_PTR,
796                 CIRCLE,
797                 CLOCK,
798                 COFFEE_MUG,
799                 CROSS,
800                 CROSS_REVERSE,
801                 CROSSHAIR,
802                 DIAMOND_CROSS,
803                 DOT,
804                 DOTBOX,
805                 DOUBLE_ARROW,
806                 DRAFT_LARGE,
807                 DRAFT_SMALL,
808                 DRAPED_BOX,
809                 EXCHANGE,
810                 FLEUR,
811                 GOBBLER,
812                 GUMBY,
813                 HAND1,
814                 HAND2,
815                 HEART,
816                 ICON,
817                 IRON_CROSS,
818                 LEFT_PTR,
819                 LEFT_SIDE,
820                 LEFT_TEE,
821                 LEFTBUTTON,
822                 LL_ANGLE,
823                 LR_ANGLE,
824                 MAN,
825                 MIDDLEBUTTON,
826                 MOUSE,
827                 PENCIL,
828                 PIRATE,
829                 PLUS,
830                 QUESTION_ARROW,
831                 RIGHT_PTR,
832                 RIGHT_SIDE,
833                 RIGHT_TEE,
834                 RIGHTBUTTON,
835                 RTL_LOGO,
836                 SAILBOAT,
837                 SB_DOWN_ARROW,
838                 SB_H_DOUBLE_ARROW,
839                 SB_LEFT_ARROW,
840                 SB_RIGHT_ARROW,
841                 SB_UP_ARROW,
842                 SB_V_DOUBLE_ARROW,
843                 SHUTTLE,
844                 SIZING,
845                 SPIDER,
846                 SPRAYCAN,
847                 STAR,
848                 TARGET,
849                 TCROSS,
850                 TOP_LEFT_ARROW,
851                 TOP_LEFT_CORNER,
852                 TOP_RIGHT_CORNER,
853                 TOP_SIDE,
854                 TOP_TEE,
855                 TREK,
856                 UL_ANGLE,
857                 UMBRELLA,
858                 UR_ANGLE,
859                 WATCH,
860                 XTERM,
861                 LAST_CURSOR,
862                 BLANK_CURSOR,
863                 CURSOR_IS_PIXMAP
864         }
865         [CCode (cprefix = "GDK_DEVICE_TYPE_", cheader_filename = "gdk/gdk.h")]
866         public enum DeviceType {
867                 MASTER,
868                 SLAVE,
869                 FLOATING
870         }
871         [CCode (cprefix = "GDK_ACTION_", cheader_filename = "gdk/gdk.h")]
872         [Flags]
873         public enum DragAction {
874                 DEFAULT,
875                 COPY,
876                 MOVE,
877                 LINK,
878                 PRIVATE,
879                 ASK
880         }
881         [CCode (cprefix = "GDK_DRAG_PROTO_", cheader_filename = "gdk/gdk.h")]
882         public enum DragProtocol {
883                 MOTIF,
884                 XDND,
885                 ROOTWIN,
886                 NONE,
887                 WIN32_DROPFILES,
888                 OLE2,
889                 LOCAL
890         }
891         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
892         [Flags]
893         public enum EventMask {
894                 EXPOSURE_MASK,
895                 POINTER_MOTION_MASK,
896                 POINTER_MOTION_HINT_MASK,
897                 BUTTON_MOTION_MASK,
898                 BUTTON1_MOTION_MASK,
899                 BUTTON2_MOTION_MASK,
900                 BUTTON3_MOTION_MASK,
901                 BUTTON_PRESS_MASK,
902                 BUTTON_RELEASE_MASK,
903                 KEY_PRESS_MASK,
904                 KEY_RELEASE_MASK,
905                 ENTER_NOTIFY_MASK,
906                 LEAVE_NOTIFY_MASK,
907                 FOCUS_CHANGE_MASK,
908                 STRUCTURE_MASK,
909                 PROPERTY_CHANGE_MASK,
910                 VISIBILITY_NOTIFY_MASK,
911                 PROXIMITY_IN_MASK,
912                 PROXIMITY_OUT_MASK,
913                 SUBSTRUCTURE_MASK,
914                 SCROLL_MASK,
915                 ALL_EVENTS_MASK
916         }
917         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
918         public enum EventType {
919                 NOTHING,
920                 DELETE,
921                 DESTROY,
922                 EXPOSE,
923                 MOTION_NOTIFY,
924                 BUTTON_PRESS,
925                 @2BUTTON_PRESS,
926                 @3BUTTON_PRESS,
927                 BUTTON_RELEASE,
928                 KEY_PRESS,
929                 KEY_RELEASE,
930                 ENTER_NOTIFY,
931                 LEAVE_NOTIFY,
932                 FOCUS_CHANGE,
933                 CONFIGURE,
934                 MAP,
935                 UNMAP,
936                 PROPERTY_NOTIFY,
937                 SELECTION_CLEAR,
938                 SELECTION_REQUEST,
939                 SELECTION_NOTIFY,
940                 PROXIMITY_IN,
941                 PROXIMITY_OUT,
942                 DRAG_ENTER,
943                 DRAG_LEAVE,
944                 DRAG_MOTION,
945                 DRAG_STATUS,
946                 DROP_START,
947                 DROP_FINISHED,
948                 CLIENT_EVENT,
949                 VISIBILITY_NOTIFY,
950                 SCROLL,
951                 WINDOW_STATE,
952                 SETTING,
953                 OWNER_CHANGE,
954                 GRAB_BROKEN,
955                 DAMAGE,
956                 EVENT_LAST
957         }
958         [CCode (cprefix = "GDK_EXTENSION_EVENTS_", cheader_filename = "gdk/gdk.h")]
959         public enum ExtensionMode {
960                 NONE,
961                 ALL,
962                 CURSOR
963         }
964         [CCode (cprefix = "GDK_FILTER_", cheader_filename = "gdk/gdk.h")]
965         public enum FilterReturn {
966                 CONTINUE,
967                 TRANSLATE,
968                 REMOVE
969         }
970         [CCode (cprefix = "GDK_OWNERSHIP_", cheader_filename = "gdk/gdk.h")]
971         public enum GrabOwnership {
972                 NONE,
973                 WINDOW,
974                 APPLICATION
975         }
976         [CCode (cprefix = "GDK_GRAB_", cheader_filename = "gdk/gdk.h")]
977         public enum GrabStatus {
978                 SUCCESS,
979                 ALREADY_GRABBED,
980                 INVALID_TIME,
981                 NOT_VIEWABLE,
982                 FROZEN
983         }
984         [CCode (cprefix = "GDK_GRAVITY_", cheader_filename = "gdk/gdk.h")]
985         public enum Gravity {
986                 NORTH_WEST,
987                 NORTH,
988                 NORTH_EAST,
989                 WEST,
990                 CENTER,
991                 EAST,
992                 SOUTH_WEST,
993                 SOUTH,
994                 SOUTH_EAST,
995                 STATIC
996         }
997         [CCode (cprefix = "GDK_MODE_", cheader_filename = "gdk/gdk.h")]
998         public enum InputMode {
999                 DISABLED,
1000                 SCREEN,
1001                 WINDOW
1002         }
1003         [CCode (cprefix = "GDK_SOURCE_", cheader_filename = "gdk/gdk.h")]
1004         public enum InputSource {
1005                 MOUSE,
1006                 PEN,
1007                 ERASER,
1008                 CURSOR,
1009                 KEYBOARD
1010         }
1011         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1012         [Flags]
1013         public enum ModifierType {
1014                 SHIFT_MASK,
1015                 LOCK_MASK,
1016                 CONTROL_MASK,
1017                 MOD1_MASK,
1018                 MOD2_MASK,
1019                 MOD3_MASK,
1020                 MOD4_MASK,
1021                 MOD5_MASK,
1022                 BUTTON1_MASK,
1023                 BUTTON2_MASK,
1024                 BUTTON3_MASK,
1025                 BUTTON4_MASK,
1026                 BUTTON5_MASK,
1027                 SUPER_MASK,
1028                 HYPER_MASK,
1029                 META_MASK,
1030                 RELEASE_MASK,
1031                 MODIFIER_MASK
1032         }
1033         [CCode (cprefix = "GDK_NOTIFY_", cheader_filename = "gdk/gdk.h")]
1034         public enum NotifyType {
1035                 ANCESTOR,
1036                 VIRTUAL,
1037                 INFERIOR,
1038                 NONLINEAR,
1039                 NONLINEAR_VIRTUAL,
1040                 UNKNOWN
1041         }
1042         [CCode (cprefix = "GDK_OWNER_CHANGE_", cheader_filename = "gdk/gdk.h")]
1043         public enum OwnerChange {
1044                 NEW_OWNER,
1045                 DESTROY,
1046                 CLOSE
1047         }
1048         [CCode (cprefix = "GDK_PROP_MODE_", cheader_filename = "gdk/gdk.h")]
1049         public enum PropMode {
1050                 REPLACE,
1051                 PREPEND,
1052                 APPEND
1053         }
1054         [CCode (cprefix = "GDK_PROPERTY_", cheader_filename = "gdk/gdk.h")]
1055         public enum PropertyState {
1056                 NEW_VALUE,
1057                 DELETE
1058         }
1059         [CCode (cprefix = "GDK_SCROLL_", cheader_filename = "gdk/gdk.h")]
1060         public enum ScrollDirection {
1061                 UP,
1062                 DOWN,
1063                 LEFT,
1064                 RIGHT
1065         }
1066         [CCode (cprefix = "GDK_SETTING_ACTION_", cheader_filename = "gdk/gdk.h")]
1067         public enum SettingAction {
1068                 NEW,
1069                 CHANGED,
1070                 DELETED
1071         }
1072         [CCode (cprefix = "GDK_", cheader_filename = "gdk/gdk.h")]
1073         public enum Status {
1074                 OK,
1075                 ERROR,
1076                 ERROR_PARAM,
1077                 ERROR_FILE,
1078                 ERROR_MEM
1079         }
1080         [CCode (cprefix = "GDK_VISIBILITY_", cheader_filename = "gdk/gdk.h")]
1081         public enum VisibilityState {
1082                 UNOBSCURED,
1083                 PARTIAL,
1084                 FULLY_OBSCURED
1085         }
1086         [CCode (cprefix = "GDK_VISUAL_", cheader_filename = "gdk/gdk.h")]
1087         public enum VisualType {
1088                 STATIC_GRAY,
1089                 GRAYSCALE,
1090                 STATIC_COLOR,
1091                 PSEUDO_COLOR,
1092                 TRUE_COLOR,
1093                 DIRECT_COLOR
1094         }
1095         [CCode (cprefix = "GDK_DECOR_", cheader_filename = "gdk/gdk.h")]
1096         [Flags]
1097         public enum WMDecoration {
1098                 ALL,
1099                 BORDER,
1100                 RESIZEH,
1101                 TITLE,
1102                 MENU,
1103                 MINIMIZE,
1104                 MAXIMIZE
1105         }
1106         [CCode (cprefix = "GDK_FUNC_", cheader_filename = "gdk/gdk.h")]
1107         [Flags]
1108         public enum WMFunction {
1109                 ALL,
1110                 RESIZE,
1111                 MOVE,
1112                 MINIMIZE,
1113                 MAXIMIZE,
1114                 CLOSE
1115         }
1116         [CCode (cprefix = "GDK_WA_", cheader_filename = "gdk/gdk.h")]
1117         [Flags]
1118         public enum WindowAttributesType {
1119                 TITLE,
1120                 X,
1121                 Y,
1122                 CURSOR,
1123                 VISUAL,
1124                 WMCLASS,
1125                 NOREDIR,
1126                 TYPE_HINT
1127         }
1128         [CCode (cprefix = "GDK_WINDOW_EDGE_", cheader_filename = "gdk/gdk.h")]
1129         public enum WindowEdge {
1130                 NORTH_WEST,
1131                 NORTH,
1132                 NORTH_EAST,
1133                 WEST,
1134                 EAST,
1135                 SOUTH_WEST,
1136                 SOUTH,
1137                 SOUTH_EAST
1138         }
1139         [CCode (cprefix = "GDK_HINT_", cheader_filename = "gdk/gdk.h")]
1140         [Flags]
1141         public enum WindowHints {
1142                 POS,
1143                 MIN_SIZE,
1144                 MAX_SIZE,
1145                 BASE_SIZE,
1146                 ASPECT,
1147                 RESIZE_INC,
1148                 WIN_GRAVITY,
1149                 USER_POS,
1150                 USER_SIZE
1151         }
1152         [CCode (cprefix = "GDK_WINDOW_STATE_", cheader_filename = "gdk/gdk.h")]
1153         [Flags]
1154         public enum WindowState {
1155                 WITHDRAWN,
1156                 ICONIFIED,
1157                 MAXIMIZED,
1158                 STICKY,
1159                 FULLSCREEN,
1160                 ABOVE,
1161                 BELOW
1162         }
1163         [CCode (cprefix = "GDK_WINDOW_", cheader_filename = "gdk/gdk.h")]
1164         public enum WindowType {
1165                 ROOT,
1166                 TOPLEVEL,
1167                 CHILD,
1168                 TEMP,
1169                 FOREIGN,
1170                 OFFSCREEN
1171         }
1172         [CCode (cprefix = "GDK_WINDOW_TYPE_HINT_", cheader_filename = "gdk/gdk.h")]
1173         public enum WindowTypeHint {
1174                 NORMAL,
1175                 DIALOG,
1176                 MENU,
1177                 TOOLBAR,
1178                 SPLASHSCREEN,
1179                 UTILITY,
1180                 DOCK,
1181                 DESKTOP,
1182                 DROPDOWN_MENU,
1183                 POPUP_MENU,
1184                 TOOLTIP,
1185                 NOTIFICATION,
1186                 COMBO,
1187                 DND
1188         }
1189         [CCode (cprefix = "GDK_INPUT_", cheader_filename = "gdk/gdk.h")]
1190         public enum WindowWindowClass {
1191                 OUTPUT,
1192                 ONLY
1193         }
1194         [CCode (cheader_filename = "gdk/gdk.h")]
1195         public delegate void EventFunc (Gdk.Event event);
1196         [CCode (cheader_filename = "gdk/gdk.h")]
1197         public delegate Gdk.FilterReturn FilterFunc (Gdk.XEvent xevent, Gdk.Event event);
1198         [CCode (cheader_filename = "gdk/gdk.h")]
1199         public delegate bool WindowChildFunc (Gdk.Window window);
1200         [CCode (cheader_filename = "gdk/gdk.h")]
1201         public const int CURRENT_TIME;
1202         [CCode (cheader_filename = "gdk/gdk.h")]
1203         public const int MAX_TIMECOORD_AXES;
1204         [CCode (cheader_filename = "gdk/gdk.h")]
1205         public const int PARENT_RELATIVE;
1206         [CCode (cheader_filename = "gdk/gdk.h")]
1207         public const int PRIORITY_REDRAW;
1208         [CCode (cheader_filename = "gdk/gdk.h")]
1209         public const Gdk.Atom SELECTION_CLIPBOARD;
1210         [CCode (cheader_filename = "gdk/gdk.h")]
1211         public const Gdk.Atom SELECTION_PRIMARY;
1212         [CCode (cheader_filename = "gdk/gdk.h")]
1213         public const Gdk.Atom SELECTION_SECONDARY;
1214         [CCode (cheader_filename = "gdk/gdk.h")]
1215         public static void add_client_message_filter (Gdk.Atom message_type, Gdk.FilterFunc func);
1216         [CCode (cheader_filename = "gdk/gdk.h")]
1217         public static void add_option_entries_libgtk_only (GLib.OptionGroup group);
1218         [CCode (cheader_filename = "gdk/gdk.h")]
1219         public static void beep ();
1220         [CCode (cheader_filename = "gdk/gdk.h")]
1221         public static Cairo.Context cairo_create (Gdk.Window window);
1222         [CCode (cheader_filename = "gdk/gdk.h")]
1223         public static bool cairo_get_clip_rectangle (Cairo.Context cr, Gdk.Rectangle rect);
1224         [CCode (cheader_filename = "gdk/gdk.h")]
1225         public static void cairo_rectangle (Cairo.Context cr, Gdk.Rectangle rectangle);
1226         [CCode (cheader_filename = "gdk/gdk.h")]
1227         public static void cairo_region (Cairo.Context cr, Cairo.Region region);
1228         [CCode (cheader_filename = "gdk/gdk.h")]
1229         public static unowned Cairo.Region cairo_region_create_from_surface (Cairo.Surface surface);
1230         [CCode (cheader_filename = "gdk/gdk.h")]
1231         public static void cairo_set_source_color (Cairo.Context cr, Gdk.Color color);
1232         [CCode (cheader_filename = "gdk/gdk.h")]
1233         public static void cairo_set_source_pixbuf (Cairo.Context cr, Gdk.Pixbuf pixbuf, double pixbuf_x, double pixbuf_y);
1234         [CCode (cheader_filename = "gdk/gdk.h")]
1235         public static void cairo_set_source_rgba (Cairo.Context cr, Gdk.RGBA rgba);
1236         [CCode (cheader_filename = "gdk/gdk.h")]
1237         public static void cairo_set_source_window (Cairo.Context cr, Gdk.Window window, double x, double y);
1238         [CCode (cheader_filename = "gdk/gdk.h")]
1239         public static void disable_multidevice ();
1240         [CCode (cheader_filename = "gdk/gdk.h")]
1241         public static void drag_abort (Gdk.DragContext context, uint32 time_);
1242         [CCode (cheader_filename = "gdk/gdk.h")]
1243         public static unowned Gdk.DragContext drag_begin (Gdk.Window window, GLib.List targets);
1244         [CCode (cheader_filename = "gdk/gdk.h")]
1245         public static unowned Gdk.DragContext drag_begin_for_device (Gdk.Window window, Gdk.Device device, GLib.List targets);
1246         [CCode (cheader_filename = "gdk/gdk.h")]
1247         public static void drag_drop (Gdk.DragContext context, uint32 time_);
1248         [CCode (cheader_filename = "gdk/gdk.h")]
1249         public static bool drag_drop_succeeded (Gdk.DragContext context);
1250         [CCode (cheader_filename = "gdk/gdk.h")]
1251         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);
1252         [CCode (cheader_filename = "gdk/gdk.h")]
1253         public static Gdk.NativeWindow drag_get_protocol_for_display (Gdk.Display display, Gdk.NativeWindow xid, Gdk.DragProtocol protocol);
1254         [CCode (cheader_filename = "gdk/gdk.h")]
1255         public static Gdk.Atom drag_get_selection (Gdk.DragContext context);
1256         [CCode (cheader_filename = "gdk/gdk.h")]
1257         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_);
1258         [CCode (cheader_filename = "gdk/gdk.h")]
1259         public static void drag_status (Gdk.DragContext context, Gdk.DragAction action, uint32 time_);
1260         [CCode (cheader_filename = "gdk/gdk.h")]
1261         public static void drop_finish (Gdk.DragContext context, bool success, uint32 time_);
1262         [CCode (cheader_filename = "gdk/gdk.h")]
1263         public static void drop_reply (Gdk.DragContext context, bool accepted, uint32 time_);
1264         [CCode (cheader_filename = "gdk/gdk.h")]
1265         public static int error_trap_pop ();
1266         [CCode (cheader_filename = "gdk/gdk.h")]
1267         public static void error_trap_pop_ignored ();
1268         [CCode (cheader_filename = "gdk/gdk.h")]
1269         public static void error_trap_push ();
1270         [CCode (cheader_filename = "gdk/gdk.h")]
1271         public static bool events_get_angle (Gdk.Event event1, Gdk.Event event2, double angle);
1272         [CCode (cheader_filename = "gdk/gdk.h")]
1273         public static bool events_get_center (Gdk.Event event1, Gdk.Event event2, double x, double y);
1274         [CCode (cheader_filename = "gdk/gdk.h")]
1275         public static bool events_get_distance (Gdk.Event event1, Gdk.Event event2, double distance);
1276         [CCode (cheader_filename = "gdk/gdk.h")]
1277         public static bool events_pending ();
1278         [CCode (cheader_filename = "gdk/gdk.h")]
1279         public static void flush ();
1280         [CCode (cheader_filename = "gdk/gdk.h")]
1281         public static unowned Gdk.Window get_default_root_window ();
1282         [CCode (cheader_filename = "gdk/gdk.h")]
1283         public static unowned string get_display ();
1284         [CCode (cheader_filename = "gdk/gdk.h")]
1285         public static unowned string get_display_arg_name ();
1286         [CCode (cheader_filename = "gdk/gdk.h")]
1287         public static unowned string get_program_class ();
1288         [CCode (cheader_filename = "gdk/gdk.h")]
1289         public static bool get_show_events ();
1290         [CCode (cheader_filename = "gdk/gdk.h")]
1291         public static void init ([CCode (array_length_pos = 0.9)] ref unowned string[] argv);
1292         [CCode (cheader_filename = "gdk/gdk.h")]
1293         public static bool init_check ([CCode (array_length_pos = 0.9)] ref unowned string[] argv);
1294         [CCode (cheader_filename = "gdk/gdk.h")]
1295         public static void keyval_convert_case (uint symbol, uint lower, uint upper);
1296         [CCode (cheader_filename = "gdk/gdk.h")]
1297         public static uint keyval_from_name (string keyval_name);
1298         [CCode (cheader_filename = "gdk/gdk.h")]
1299         public static bool keyval_is_lower (uint keyval);
1300         [CCode (cheader_filename = "gdk/gdk.h")]
1301         public static bool keyval_is_upper (uint keyval);
1302         [CCode (cheader_filename = "gdk/gdk.h")]
1303         public static unowned string keyval_name (uint keyval);
1304         [CCode (cheader_filename = "gdk/gdk.h")]
1305         public static uint keyval_to_lower (uint keyval);
1306         [CCode (cheader_filename = "gdk/gdk.h")]
1307         public static uint32 keyval_to_unicode (uint keyval);
1308         [CCode (cheader_filename = "gdk/gdk.h")]
1309         public static uint keyval_to_upper (uint keyval);
1310         [CCode (cheader_filename = "gdk/gdk.h")]
1311         public static GLib.List<weak Gdk.Visual> list_visuals ();
1312         [CCode (cheader_filename = "gdk/gdk.h")]
1313         public static void notify_startup_complete ();
1314         [CCode (cheader_filename = "gdk/gdk.h")]
1315         public static void notify_startup_complete_with_id (string startup_id);
1316         [CCode (cheader_filename = "gdk/gdk.h")]
1317         public static unowned Gdk.Window? offscreen_window_get_embedder (Gdk.Window window);
1318         [CCode (cheader_filename = "gdk/gdk.h")]
1319         public static unowned Cairo.Surface offscreen_window_get_surface (Gdk.Window window);
1320         [CCode (cheader_filename = "gdk/gdk.h")]
1321         public static void offscreen_window_set_embedder (Gdk.Window window, Gdk.Window embedder);
1322         [CCode (cheader_filename = "gdk/gdk.h")]
1323         public static unowned Pango.Context pango_context_get ();
1324         [CCode (cheader_filename = "gdk/gdk.h")]
1325         public static unowned Pango.Context pango_context_get_for_screen (Gdk.Screen screen);
1326         [CCode (cheader_filename = "gdk/gdk.h")]
1327         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);
1328         [CCode (cheader_filename = "gdk/gdk.h")]
1329         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);
1330         [CCode (cheader_filename = "gdk/gdk.h")]
1331         public static void parse_args (int argc, string argv);
1332         [CCode (cheader_filename = "gdk/gdk.h")]
1333         public static unowned Gdk.Pixbuf pixbuf_get_from_surface (Cairo.Surface surface, int src_x, int src_y, int width, int height);
1334         [CCode (cheader_filename = "gdk/gdk.h")]
1335         public static unowned Gdk.Pixbuf pixbuf_get_from_window (Gdk.Window window, int src_x, int src_y, int width, int height);
1336         [CCode (cheader_filename = "gdk/gdk.h")]
1337         public static void pre_parse_libgtk_only ();
1338         [CCode (cheader_filename = "gdk/gdk.h")]
1339         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);
1340         [CCode (cheader_filename = "gdk/gdk.h")]
1341         public static void property_delete (Gdk.Window window, Gdk.Atom property);
1342         [CCode (cheader_filename = "gdk/gdk.h")]
1343         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);
1344         [CCode (cheader_filename = "gdk/gdk.h")]
1345         public static void query_depths (int depths, int count);
1346         [CCode (cheader_filename = "gdk/gdk.h")]
1347         public static void query_visual_types (out Gdk.VisualType visual_types, int count);
1348         [Deprecated (since = "vala-0.12", replacement = "Selection.convert")]
1349         [CCode (cheader_filename = "gdk/gdk.h")]
1350         public static void selection_convert (Gdk.Window requestor, Gdk.Atom selection, Gdk.Atom target, uint32 time_);
1351         [Deprecated (since = "vala-0.12", replacement = "Selection.owner_get")]
1352         [CCode (cheader_filename = "gdk/gdk.h")]
1353         public static unowned Gdk.Window selection_owner_get (Gdk.Atom selection);
1354         [Deprecated (since = "vala-0.12", replacement = "Selection.owner_get_for_display")]
1355         [CCode (cheader_filename = "gdk/gdk.h")]
1356         public static unowned Gdk.Window selection_owner_get_for_display (Gdk.Display display, Gdk.Atom selection);
1357         [Deprecated (since = "vala-0.12", replacement = "Selection.owner_set")]
1358         [CCode (cheader_filename = "gdk/gdk.h")]
1359         public static bool selection_owner_set (Gdk.Window owner, Gdk.Atom selection, uint32 time_, bool send_event);
1360         [Deprecated (since = "vala-0.12", replacement = "Selection.owner_set_for_display")]
1361         [CCode (cheader_filename = "gdk/gdk.h")]
1362         public static bool selection_owner_set_for_display (Gdk.Display display, Gdk.Window owner, Gdk.Atom selection, uint32 time_, bool send_event);
1363         [Deprecated (since = "vala-0.12", replacement = "Selection.property_get")]
1364         [CCode (cheader_filename = "gdk/gdk.h")]
1365         public static int selection_property_get (Gdk.Window requestor, uchar[] data, out Gdk.Atom prop_type, int prop_format);
1366         [Deprecated (since = "vala-0.12", replacement = "Selection.send_notify")]
1367         [CCode (cheader_filename = "gdk/gdk.h")]
1368         public static void selection_send_notify (Gdk.NativeWindow requestor, Gdk.Atom selection, Gdk.Atom target, Gdk.Atom property, uint32 time_);
1369         [Deprecated (since = "vala-0.12", replacement = "Selection.send_notify_for_display")]
1370         [CCode (cheader_filename = "gdk/gdk.h")]
1371         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_);
1372         [CCode (cheader_filename = "gdk/gdk.h")]
1373         public static void set_double_click_time (uint msec);
1374         [CCode (cheader_filename = "gdk/gdk.h")]
1375         public static void set_program_class (string program_class);
1376         [CCode (cheader_filename = "gdk/gdk.h")]
1377         public static void set_show_events (bool show_events);
1378         [CCode (cheader_filename = "gdk/gdk.h")]
1379         public static bool setting_get (string name, GLib.Value value);
1380         [CCode (cheader_filename = "gdk/gdk.h")]
1381         public static void test_render_sync (Gdk.Window window);
1382         [CCode (cheader_filename = "gdk/gdk.h")]
1383         public static bool test_simulate_button (Gdk.Window window, int x, int y, uint button, Gdk.ModifierType modifiers, Gdk.EventType button_pressrelease);
1384         [CCode (cheader_filename = "gdk/gdk.h")]
1385         public static bool test_simulate_key (Gdk.Window window, int x, int y, uint keyval, Gdk.ModifierType modifiers, Gdk.EventType key_pressrelease);
1386         [CCode (cheader_filename = "gdk/gdk.h")]
1387         public static int text_property_to_utf8_list_for_display (Gdk.Display display, Gdk.Atom encoding, int format, uchar[] text, int length, string list);
1388         [CCode (cheader_filename = "gdk/gdk.h")]
1389         public static uint threads_add_idle (GLib.SourceFunc function);
1390         [CCode (cheader_filename = "gdk/gdk.h")]
1391         public static uint threads_add_idle_full (int priority, GLib.SourceFunc function, void* data, GLib.DestroyNotify notify);
1392         [CCode (cheader_filename = "gdk/gdk.h")]
1393         public static uint threads_add_timeout (uint interval, GLib.SourceFunc function, void* data);
1394         [CCode (cheader_filename = "gdk/gdk.h")]
1395         public static uint threads_add_timeout_full (int priority, uint interval, GLib.SourceFunc function, void* data, GLib.DestroyNotify notify);
1396         [CCode (cheader_filename = "gdk/gdk.h")]
1397         public static uint threads_add_timeout_seconds (uint interval, GLib.SourceFunc function, void* data);
1398         [CCode (cheader_filename = "gdk/gdk.h")]
1399         public static uint threads_add_timeout_seconds_full (int priority, uint interval, GLib.SourceFunc function, void* data, GLib.DestroyNotify notify);
1400         [CCode (cheader_filename = "gdk/gdk.h")]
1401         public static void threads_enter ();
1402         [CCode (cheader_filename = "gdk/gdk.h")]
1403         public static void threads_init ();
1404         [CCode (cheader_filename = "gdk/gdk.h")]
1405         public static void threads_leave ();
1406         [CCode (cheader_filename = "gdk/gdk.h")]
1407         public static void threads_set_lock_functions (GLib.Callback enter_fn, GLib.Callback leave_fn);
1408         [CCode (cheader_filename = "gdk/gdk.h")]
1409         public static uint unicode_to_keyval (uint32 wc);
1410         [CCode (cheader_filename = "gdk/gdk.h")]
1411         public static unowned string utf8_to_string_target (string str);