Release 0.41.92
[vala-gnome.git] / vapi / gdk-x11-3.0.vapi
blob6bcf1c8688fe8ec5ca5194bc8805eb065f446e7e
1 /* gdk-x11-3.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gdk", gir_namespace = "GdkX11", gir_version = "3.0", lower_case_cprefix = "gdk_")]
4 namespace Gdk {
5         namespace X11 {
6                 [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_app_launch_context_get_type ()")]
7                 [GIR (name = "X11AppLaunchContext")]
8                 public class AppLaunchContext : Gdk.AppLaunchContext {
9                         [CCode (has_construct_function = false)]
10                         protected AppLaunchContext ();
11                 }
12                 [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_cursor_get_type ()")]
13                 [GIR (name = "X11Cursor")]
14                 public class Cursor : Gdk.Cursor {
15                         [CCode (has_construct_function = false)]
16                         protected Cursor ();
17                         public X.Cursor get_xcursor ();
18                         public unowned X.Display get_xdisplay ();
19                 }
20                 [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_device_core_get_type ()")]
21                 [GIR (name = "X11DeviceCore")]
22                 public class DeviceCore : Gdk.Device {
23                         [CCode (has_construct_function = false)]
24                         protected DeviceCore ();
25                         [CCode (cname = "gdk_x11_device_manager_lookup")]
26                         [Version (since = "3.2")]
27                         public static unowned Gdk.X11.DeviceCore? lookup_for_device_manager (Gdk.X11.DeviceManagerCore device_manager, int device_id);
28                 }
29                 [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_device_manager_core_get_type ()")]
30                 [GIR (name = "X11DeviceManagerCore")]
31                 public class DeviceManagerCore : Gdk.DeviceManager {
32                         [CCode (has_construct_function = false)]
33                         protected DeviceManagerCore ();
34                 }
35                 [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_device_manager_xi2_get_type ()")]
36                 [GIR (name = "X11DeviceManagerXI2")]
37                 public class DeviceManagerXI2 : Gdk.X11.DeviceManagerCore {
38                         [CCode (has_construct_function = false)]
39                         protected DeviceManagerXI2 ();
40                         [NoAccessorMethod]
41                         public int major { get; construct; }
42                         [NoAccessorMethod]
43                         public int minor { get; construct; }
44                         [NoAccessorMethod]
45                         public int opcode { get; construct; }
46                 }
47                 [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_device_xi2_get_type ()")]
48                 [GIR (name = "X11DeviceXI2")]
49                 public class DeviceXI2 : Gdk.Device {
50                         [CCode (has_construct_function = false)]
51                         protected DeviceXI2 ();
52                         [NoAccessorMethod]
53                         public int device_id { get; construct; }
54                 }
55                 [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_display_get_type ()")]
56                 [GIR (name = "X11Display")]
57                 public class Display : Gdk.Display {
58                         [CCode (has_construct_function = false)]
59                         protected Display ();
60                         [Version (since = "2.12")]
61                         public void broadcast_startup_message (string message_type, ...);
62                         [Version (since = "3.0")]
63                         public int error_trap_pop ();
64                         [Version (since = "3.0")]
65                         public void error_trap_pop_ignored ();
66                         [Version (since = "3.0")]
67                         public void error_trap_push ();
68                         [Version (since = "2.12")]
69                         public unowned string get_startup_notification_id ();
70                         [Version (since = "2.8")]
71                         public uint32 get_user_time ();
72                         [Version (since = "2.2")]
73                         public unowned X.Display get_xdisplay ();
74                         [Version (since = "2.2")]
75                         public void grab ();
76                         [CCode (cname = "gdk_x11_lookup_xdisplay")]
77                         [Version (since = "2.2")]
78                         public static unowned Gdk.X11.Display lookup_for_xdisplay (X.Display xdisplay);
79                         [Version (since = "2.8")]
80                         public void set_cursor_theme (string theme, int size);
81                         [Version (since = "3.0")]
82                         public void set_startup_notification_id (string startup_id);
83                         [Version (since = "3.10")]
84                         public void set_window_scale (int scale);
85                         [Version (since = "2.24")]
86                         public int string_to_compound_text (string str, out Gdk.Atom encoding, out int format, [CCode (array_length_cname = "length", array_length_pos = 4.1)] out uint8[] ctext);
87                         [Version (since = "2.24")]
88                         public int text_property_to_text_list (Gdk.Atom encoding, int format, uint8 text, int length, string list);
89                         [Version (since = "2.2")]
90                         public void ungrab ();
91                         [Version (since = "2.24")]
92                         public bool utf8_to_compound_text (string str, out Gdk.Atom encoding, out int format, [CCode (array_length_cname = "length", array_length_pos = 4.1)] out uint8[] ctext);
93                 }
94                 [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_display_manager_get_type ()")]
95                 [GIR (name = "X11DisplayManager")]
96                 public class DisplayManager : Gdk.DisplayManager {
97                         [CCode (has_construct_function = false)]
98                         protected DisplayManager ();
99                 }
100                 [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_drag_context_get_type ()")]
101                 [GIR (name = "X11DragContext")]
102                 public class DragContext : Gdk.DragContext {
103                         [CCode (has_construct_function = false)]
104                         protected DragContext ();
105                 }
106                 [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_keymap_get_type ()")]
107                 [GIR (name = "X11Keymap")]
108                 public class Keymap : Gdk.Keymap {
109                         [CCode (has_construct_function = false)]
110                         protected Keymap ();
111                         [Version (since = "3.6")]
112                         public int get_group_for_state (uint state);
113                         [Version (since = "3.6")]
114                         public bool key_is_modifier (uint keycode);
115                 }
116                 [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_screen_get_type ()")]
117                 [GIR (name = "X11Screen")]
118                 public class Screen : Gdk.Screen {
119                         [CCode (has_construct_function = false)]
120                         protected Screen ();
121                         [Version (since = "3.10")]
122                         public uint32 get_current_desktop ();
123                         [Version (since = "2.14")]
124                         public X.ID get_monitor_output (int monitor_num);
125                         [Version (since = "3.10")]
126                         public uint32 get_number_of_desktops ();
127                         [Version (since = "2.2")]
128                         public int get_screen_number ();
129                         [Version (since = "2.2")]
130                         public unowned string get_window_manager_name ();
131                         [Version (since = "2.2")]
132                         public unowned X.Screen get_xscreen ();
133                         [Version (since = "2.2")]
134                         public unowned Gdk.X11.Visual lookup_visual (X.VisualID xvisualid);
135                         [Version (since = "2.2")]
136                         public bool supports_net_wm_hint (Gdk.Atom property);
137                         public signal void window_manager_changed ();
138                 }
139                 [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_visual_get_type ()")]
140                 [GIR (name = "X11Visual")]
141                 public class Visual : Gdk.Visual {
142                         [CCode (has_construct_function = false)]
143                         protected Visual ();
144                         public unowned X.Visual get_xvisual ();
145                 }
146                 [CCode (cheader_filename = "gdk/gdkx.h", type_id = "gdk_x11_window_get_type ()")]
147                 [GIR (name = "X11Window")]
148                 public class Window : Gdk.Window {
149                         [CCode (has_construct_function = false)]
150                         protected Window ();
151                         [CCode (cname = "gdk_x11_window_foreign_new_for_display", has_construct_function = false, type = "GdkWindow*")]
152                         [Version (since = "2.24")]
153                         public Window.foreign_for_display (Gdk.X11.Display display, X.Window window);
154                         [Version (since = "3.10")]
155                         public uint32 get_desktop ();
156                         public X.Window get_xid ();
157                         [Version (since = "2.24")]
158                         public static unowned Gdk.X11.Window lookup_for_display (Gdk.X11.Display display, X.Window window);
159                         [Version (since = "2.8")]
160                         public void move_to_current_desktop ();
161                         [Version (since = "3.10")]
162                         public void move_to_desktop (uint32 desktop);
163                         [Version (deprecated = true, deprecated_since = "3.12", since = "3.10")]
164                         public void set_frame_extents (int left, int right, int top, int bottom);
165                         [Version (since = "3.8")]
166                         public void set_frame_sync_enabled (bool frame_sync_enabled);
167                         [Version (since = "3.4")]
168                         public void set_hide_titlebar_when_maximized (bool hide_titlebar_when_maximized);
169                         [Version (since = "3.2")]
170                         public void set_theme_variant (string variant);
171                         [Version (since = "2.6")]
172                         public void set_user_time (uint32 timestamp);
173                         [Version (since = "3.4")]
174                         public void set_utf8_property (string name, string? value);
175                 }
176                 [CCode (cheader_filename = "gdk/gdkx.h")]
177                 public static X.Atom atom_to_xatom (Gdk.Atom atom);
178                 [CCode (cheader_filename = "gdk/gdkx.h")]
179                 [Version (since = "2.2")]
180                 public static X.Atom atom_to_xatom_for_display (Gdk.X11.Display display, Gdk.Atom atom);
181                 [CCode (cheader_filename = "gdk/gdkx.h")]
182                 [Version (since = "3.2")]
183                 public static int device_get_id (Gdk.X11.DeviceCore device);
184                 [CCode (cheader_filename = "gdk/gdkx.h")]
185                 [Version (since = "2.24")]
186                 public static void free_compound_text ([CCode (array_length = false, type = "guchar*")] uint8[] ctext);
187                 [CCode (cheader_filename = "gdk/gdkx.h")]
188                 [Version (since = "2.24")]
189                 public static void free_text_list (string list);
190                 [CCode (cheader_filename = "gdk/gdkx.h")]
191                 public static X.Window get_default_root_xwindow ();
192                 [CCode (cheader_filename = "gdk/gdkx.h")]
193                 public static int get_default_screen ();
194                 [CCode (cheader_filename = "gdk/gdkx.h")]
195                 public static unowned X.Display get_default_xdisplay ();
196                 [CCode (cheader_filename = "gdk/gdkx.h")]
197                 public static uint32 get_server_time (Gdk.X11.Window window);
198                 [CCode (cheader_filename = "gdk/gdkx.h")]
199                 public static X.Atom get_xatom_by_name (string atom_name);
200                 [CCode (cheader_filename = "gdk/gdkx.h")]
201                 [Version (since = "2.2")]
202                 public static X.Atom get_xatom_by_name_for_display (Gdk.X11.Display display, string atom_name);
203                 [CCode (cheader_filename = "gdk/gdkx.h")]
204                 public static unowned string get_xatom_name (X.Atom xatom);
205                 [CCode (cheader_filename = "gdk/gdkx.h")]
206                 [Version (since = "2.2")]
207                 public static unowned string get_xatom_name_for_display (Gdk.X11.Display display, X.Atom xatom);
208                 [CCode (cheader_filename = "gdk/gdkx.h")]
209                 public static void grab_server ();
210                 [CCode (cheader_filename = "gdk/gdkx.h")]
211                 [Version (since = "2.4")]
212                 public static void register_standard_event_type (Gdk.X11.Display display, int event_base, int n_events);
213                 [CCode (cheader_filename = "gdk/gdkx.h")]
214                 [Version (since = "2.24")]
215                 public static void set_sm_client_id (string sm_client_id);
216                 [CCode (cheader_filename = "gdk/gdkx.h")]
217                 public static void ungrab_server ();
218                 [CCode (cheader_filename = "gdk/gdkx.h")]
219                 public static Gdk.Atom xatom_to_atom (X.Atom xatom);
220                 [CCode (cheader_filename = "gdk/gdkx.h")]
221                 [Version (since = "2.2")]
222                 public static Gdk.Atom xatom_to_atom_for_display (Gdk.X11.Display display, X.Atom xatom);
223         }
224         [CCode (cheader_filename = "gdk/gdkx.h")]
225         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.AppLaunchContext")]
226         public class X11AppLaunchContext : Gdk.AppLaunchContext {
227                 [CCode (has_construct_function = false)]
228                 protected X11AppLaunchContext ();
229         }
230         [CCode (cheader_filename = "gdk/gdkx.h")]
231         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.Cursor")]
232         public class X11Cursor : Gdk.Cursor {
233                 [CCode (has_construct_function = false)]
234                 protected X11Cursor ();
235                 public static X.Cursor get_xcursor (Gdk.Cursor cursor);
236                 public static unowned X.Display get_xdisplay (Gdk.Cursor cursor);
237         }
238         [CCode (cheader_filename = "gdk/gdkx.h")]
239         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.Display")]
240         public class X11Display : Gdk.Display {
241                 [CCode (has_construct_function = false)]
242                 protected X11Display ();
243                 public static void broadcast_startup_message (Gdk.Display display, string message_type, ...);
244                 public static int error_trap_pop (Gdk.Display display);
245                 public static void error_trap_pop_ignored (Gdk.Display display);
246                 public static void error_trap_push (Gdk.Display display);
247                 public static unowned string get_startup_notification_id (Gdk.Display display);
248                 public static uint32 get_user_time (Gdk.Display display);
249                 public static unowned X.Display get_xdisplay (Gdk.Display display);
250                 public static void grab (Gdk.Display display);
251                 public static void set_cursor_theme (Gdk.Display display, string theme, int size);
252                 public static void set_startup_notification_id (Gdk.Display display, string startup_id);
253                 public static void set_window_scale (Gdk.Display display, int scale);
254                 public static int string_to_compound_text (Gdk.Display display, string str, out Gdk.Atom encoding, int format, uchar[] ctext, int length);
255                 public static int text_property_to_text_list (Gdk.Display display, Gdk.Atom encoding, int format, uchar[] text, int length, string list);
256                 public static void ungrab (Gdk.Display display);
257                 public static bool utf8_to_compound_text (Gdk.Display display, string str, out Gdk.Atom encoding, int format, uchar[] ctext, int length);
258         }
259         [CCode (cheader_filename = "gdk/gdkx.h")]
260         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.DisplayManager")]
261         public class X11DisplayManager : Gdk.DisplayManager {
262                 [CCode (has_construct_function = false)]
263                 protected X11DisplayManager ();
264         }
265         [CCode (cheader_filename = "gdk/gdkx.h")]
266         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.DragContext")]
267         public class X11DragContext : Gdk.DragContext {
268                 [CCode (has_construct_function = false)]
269                 protected X11DragContext ();
270         }
271         [CCode (cheader_filename = "gdk/gdkx.h")]
272         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.Keymap")]
273         public class X11Keymap : Gdk.Keymap {
274                 [CCode (has_construct_function = false)]
275                 protected X11Keymap ();
276                 public static int get_group_for_state (Gdk.Keymap keymap, uint state);
277                 public static bool key_is_modifier (Gdk.Keymap keymap, uint keycode);
278         }
279         [CCode (cheader_filename = "gdk/gdkx.h")]
280         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.Screen")]
281         public class X11Screen : Gdk.Screen {
282                 [CCode (has_construct_function = false)]
283                 protected X11Screen ();
284                 public static uint32 get_current_desktop (Gdk.Screen screen);
285                 public static X.ID get_monitor_output (Gdk.Screen screen, int monitor_num);
286                 public static uint32 get_number_of_desktops (Gdk.Screen screen);
287                 public static int get_screen_number (Gdk.Screen screen);
288                 public static unowned string get_window_manager_name (Gdk.Screen screen);
289                 public static unowned X.Screen get_xscreen (Gdk.Screen screen);
290                 public static unowned Gdk.Visual lookup_visual (Gdk.Screen screen, X.VisualID xvisualid);
291                 public static bool supports_net_wm_hint (Gdk.Screen screen, Gdk.Atom property);
292                 public virtual signal void window_manager_changed ();
293         }
294         [CCode (cheader_filename = "gdk/gdkx.h")]
295         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.Visual")]
296         public class X11Visual : Gdk.Visual {
297                 [CCode (has_construct_function = false)]
298                 protected X11Visual ();
299                 public static unowned X.Visual get_xvisual (Gdk.Visual visual);
300         }
301         [CCode (cheader_filename = "gdk/gdkx.h")]
302         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.Window")]
303         public class X11Window : Gdk.Window {
304                 [CCode (has_construct_function = false)]
305                 protected X11Window ();
306                 public static unowned Gdk.Window foreign_new_for_display (Gdk.Display display, X.Window window);
307                 public static uint32 get_desktop (Gdk.Window window);
308                 public static X.Window get_xid (Gdk.Window window);
309                 public static unowned Gdk.Window lookup_for_display (Gdk.Display display, X.Window window);
310                 public static void move_to_current_desktop (Gdk.Window window);
311                 public static void move_to_desktop (Gdk.Window window, uint32 desktop);
312                 public static void set_frame_extents (Gdk.Window window, int left, int right, int top, int bottom);
313                 public static void set_frame_sync_enabled (Gdk.Window window, bool frame_sync_enabled);
314                 public static void set_hide_titlebar_when_maximized (Gdk.Window window, bool hide_titlebar_when_maximized);
315                 public static void set_theme_variant (Gdk.Window window, string variant);
316                 public static void set_user_time (Gdk.Window window, uint32 timestamp);
317                 public static void set_utf8_property (Gdk.Window window, string name, string value);
318         }
319         [CCode (cheader_filename = "gdk/gdkx.h")]
320         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.atom_to_xatom")]
321         public static X.Atom x11_atom_to_xatom (Gdk.Atom atom);
322         [CCode (cheader_filename = "gdk/gdkx.h")]
323         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.atom_to_xatom_for_display")]
324         public static X.Atom x11_atom_to_xatom_for_display (Gdk.Display display, Gdk.Atom atom);
325         [CCode (cheader_filename = "gdk/gdkx.h")]
326         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.free_compound_text")]
327         public static void x11_free_compound_text (uchar[] ctext);
328         [CCode (cheader_filename = "gdk/gdkx.h")]
329         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.free_text_list")]
330         public static void x11_free_text_list (string list);
331         [CCode (cheader_filename = "gdk/gdkx.h")]
332         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.get_default_root_xwindow")]
333         public static X.Window x11_get_default_root_xwindow ();
334         [CCode (cheader_filename = "gdk/gdkx.h")]
335         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.get_default_scree")]
336         public static int x11_get_default_screen ();
337         [CCode (cheader_filename = "gdk/gdkx.h")]
338         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.get_default_xdisplay")]
339         public static unowned X.Display x11_get_default_xdisplay ();
340         [CCode (cheader_filename = "gdk/gdkx.h")]
341         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.get_server_time")]
342         public static uint32 x11_get_server_time (Gdk.Window window);
343         [CCode (cheader_filename = "gdk/gdkx.h")]
344         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.get_xatom_by_name")]
345         public static X.Atom x11_get_xatom_by_name (string atom_name);
346         [CCode (cheader_filename = "gdk/gdkx.h")]
347         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.get_xatom_by_name_for_display")]
348         public static X.Atom x11_get_xatom_by_name_for_display (Gdk.Display display, string atom_name);
349         [CCode (cheader_filename = "gdk/gdkx.h")]
350         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.get_xatom_nam")]
351         public static unowned string x11_get_xatom_name (X.Atom xatom);
352         [CCode (cheader_filename = "gdk/gdkx.h")]
353         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.get_xatom_name_for_display")]
354         public static unowned string x11_get_xatom_name_for_display (Gdk.Display display, X.Atom xatom);
355         [CCode (cheader_filename = "gdk/gdkx.h")]
356         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.grab_server")]
357         public static void x11_grab_server ();
358         [CCode (cheader_filename = "gdk/gdkx.h")]
359         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.Display.lookup_for_xdisplay")]
360         public static unowned Gdk.Display x11_lookup_xdisplay (X.Display xdisplay);
361         [CCode (cheader_filename = "gdk/gdkx.h")]
362         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.register_standard_event_type")]
363         public static void x11_register_standard_event_type (Gdk.Display display, int event_base, int n_events);
364         [CCode (cheader_filename = "gdk/gdkx.h")]
365         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.set_sm_client_id")]
366         public static void x11_set_sm_client_id (string sm_client_id);
367         [CCode (cheader_filename = "gdk/gdkx.h")]
368         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.ungrab_server")]
369         public static void x11_ungrab_server ();
370         [CCode (cheader_filename = "gdk/gdkx.h")]
371         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.xatom_to_atom")]
372         public static Gdk.Atom x11_xatom_to_atom (X.Atom xatom);
373         [CCode (cheader_filename = "gdk/gdkx.h")]
374         [Version (deprecated_since = "vala-0.24", replacement = "Gdk.X11.xatom_to_atom_for_display")]
375         public static Gdk.Atom x11_xatom_to_atom_for_display (Gdk.Display display, X.Atom xatom);