Skip to main content

gdk_x11_sys/
lib.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// DO NOT EDIT
4
5#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
6#![allow(
7    clippy::approx_constant,
8    clippy::type_complexity,
9    clippy::unreadable_literal,
10    clippy::upper_case_acronyms
11)]
12#![cfg_attr(docsrs, feature(doc_cfg))]
13
14use cairo_sys as cairo;
15use gdk_sys as gdk;
16use glib_sys as glib;
17
18mod manual;
19
20pub use manual::*;
21
22#[allow(unused_imports)]
23use libc::{FILE, intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t};
24#[cfg(unix)]
25#[allow(unused_imports)]
26use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t};
27#[allow(unused_imports)]
28use std::ffi::{
29    c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
30};
31
32#[allow(unused_imports)]
33use glib::{GType, gboolean, gconstpointer, gpointer};
34
35// Records
36#[repr(C)]
37#[allow(dead_code)]
38pub struct _GdkX11AppLaunchContextClass {
39    _data: [u8; 0],
40    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
41}
42
43pub type GdkX11AppLaunchContextClass = _GdkX11AppLaunchContextClass;
44
45#[repr(C)]
46#[allow(dead_code)]
47pub struct _GdkX11CursorClass {
48    _data: [u8; 0],
49    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
50}
51
52pub type GdkX11CursorClass = _GdkX11CursorClass;
53
54#[repr(C)]
55#[allow(dead_code)]
56pub struct _GdkX11DeviceCoreClass {
57    _data: [u8; 0],
58    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
59}
60
61pub type GdkX11DeviceCoreClass = _GdkX11DeviceCoreClass;
62
63#[repr(C)]
64#[allow(dead_code)]
65pub struct _GdkX11DeviceManagerCoreClass {
66    _data: [u8; 0],
67    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
68}
69
70pub type GdkX11DeviceManagerCoreClass = _GdkX11DeviceManagerCoreClass;
71
72#[repr(C)]
73#[allow(dead_code)]
74pub struct _GdkX11DeviceManagerXI2Class {
75    _data: [u8; 0],
76    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
77}
78
79pub type GdkX11DeviceManagerXI2Class = _GdkX11DeviceManagerXI2Class;
80
81#[repr(C)]
82#[allow(dead_code)]
83pub struct _GdkX11DeviceXI2Class {
84    _data: [u8; 0],
85    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
86}
87
88pub type GdkX11DeviceXI2Class = _GdkX11DeviceXI2Class;
89
90#[repr(C)]
91#[allow(dead_code)]
92pub struct _GdkX11DisplayClass {
93    _data: [u8; 0],
94    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
95}
96
97pub type GdkX11DisplayClass = _GdkX11DisplayClass;
98
99#[repr(C)]
100#[allow(dead_code)]
101pub struct _GdkX11DisplayManagerClass {
102    _data: [u8; 0],
103    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
104}
105
106pub type GdkX11DisplayManagerClass = _GdkX11DisplayManagerClass;
107
108#[repr(C)]
109#[allow(dead_code)]
110pub struct _GdkX11DragContextClass {
111    _data: [u8; 0],
112    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
113}
114
115pub type GdkX11DragContextClass = _GdkX11DragContextClass;
116
117#[repr(C)]
118#[allow(dead_code)]
119pub struct _GdkX11GLContextClass {
120    _data: [u8; 0],
121    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
122}
123
124pub type GdkX11GLContextClass = _GdkX11GLContextClass;
125
126#[repr(C)]
127#[allow(dead_code)]
128pub struct _GdkX11KeymapClass {
129    _data: [u8; 0],
130    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
131}
132
133pub type GdkX11KeymapClass = _GdkX11KeymapClass;
134
135#[repr(C)]
136#[allow(dead_code)]
137pub struct _GdkX11MonitorClass {
138    _data: [u8; 0],
139    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
140}
141
142pub type GdkX11MonitorClass = _GdkX11MonitorClass;
143
144#[repr(C)]
145#[allow(dead_code)]
146pub struct _GdkX11ScreenClass {
147    _data: [u8; 0],
148    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
149}
150
151pub type GdkX11ScreenClass = _GdkX11ScreenClass;
152
153#[repr(C)]
154#[allow(dead_code)]
155pub struct _GdkX11VisualClass {
156    _data: [u8; 0],
157    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
158}
159
160pub type GdkX11VisualClass = _GdkX11VisualClass;
161
162#[repr(C)]
163#[allow(dead_code)]
164pub struct _GdkX11WindowClass {
165    _data: [u8; 0],
166    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
167}
168
169pub type GdkX11WindowClass = _GdkX11WindowClass;
170
171// Classes
172#[repr(C)]
173#[allow(dead_code)]
174pub struct GdkX11AppLaunchContext {
175    _data: [u8; 0],
176    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
177}
178
179impl ::std::fmt::Debug for GdkX11AppLaunchContext {
180    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
181        f.debug_struct(&format!("GdkX11AppLaunchContext @ {self:p}"))
182            .finish()
183    }
184}
185
186#[repr(C)]
187#[allow(dead_code)]
188pub struct GdkX11Cursor {
189    _data: [u8; 0],
190    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
191}
192
193impl ::std::fmt::Debug for GdkX11Cursor {
194    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
195        f.debug_struct(&format!("GdkX11Cursor @ {self:p}")).finish()
196    }
197}
198
199#[repr(C)]
200#[allow(dead_code)]
201pub struct GdkX11DeviceCore {
202    _data: [u8; 0],
203    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
204}
205
206impl ::std::fmt::Debug for GdkX11DeviceCore {
207    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
208        f.debug_struct(&format!("GdkX11DeviceCore @ {self:p}"))
209            .finish()
210    }
211}
212
213#[repr(C)]
214#[allow(dead_code)]
215pub struct GdkX11DeviceManagerCore {
216    _data: [u8; 0],
217    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
218}
219
220impl ::std::fmt::Debug for GdkX11DeviceManagerCore {
221    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
222        f.debug_struct(&format!("GdkX11DeviceManagerCore @ {self:p}"))
223            .finish()
224    }
225}
226
227#[repr(C)]
228#[allow(dead_code)]
229pub struct GdkX11DeviceManagerXI2 {
230    _data: [u8; 0],
231    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
232}
233
234impl ::std::fmt::Debug for GdkX11DeviceManagerXI2 {
235    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
236        f.debug_struct(&format!("GdkX11DeviceManagerXI2 @ {self:p}"))
237            .finish()
238    }
239}
240
241#[repr(C)]
242#[allow(dead_code)]
243pub struct GdkX11DeviceXI2 {
244    _data: [u8; 0],
245    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
246}
247
248impl ::std::fmt::Debug for GdkX11DeviceXI2 {
249    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
250        f.debug_struct(&format!("GdkX11DeviceXI2 @ {self:p}"))
251            .finish()
252    }
253}
254
255#[repr(C)]
256#[allow(dead_code)]
257pub struct GdkX11Display {
258    _data: [u8; 0],
259    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
260}
261
262impl ::std::fmt::Debug for GdkX11Display {
263    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
264        f.debug_struct(&format!("GdkX11Display @ {self:p}"))
265            .finish()
266    }
267}
268
269#[repr(C)]
270#[allow(dead_code)]
271pub struct GdkX11DisplayManager {
272    _data: [u8; 0],
273    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
274}
275
276impl ::std::fmt::Debug for GdkX11DisplayManager {
277    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
278        f.debug_struct(&format!("GdkX11DisplayManager @ {self:p}"))
279            .finish()
280    }
281}
282
283#[repr(C)]
284#[allow(dead_code)]
285pub struct GdkX11DragContext {
286    _data: [u8; 0],
287    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
288}
289
290impl ::std::fmt::Debug for GdkX11DragContext {
291    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
292        f.debug_struct(&format!("GdkX11DragContext @ {self:p}"))
293            .finish()
294    }
295}
296
297#[repr(C)]
298#[allow(dead_code)]
299pub struct GdkX11GLContext {
300    _data: [u8; 0],
301    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
302}
303
304impl ::std::fmt::Debug for GdkX11GLContext {
305    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
306        f.debug_struct(&format!("GdkX11GLContext @ {self:p}"))
307            .finish()
308    }
309}
310
311#[repr(C)]
312#[allow(dead_code)]
313pub struct GdkX11Keymap {
314    _data: [u8; 0],
315    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
316}
317
318impl ::std::fmt::Debug for GdkX11Keymap {
319    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
320        f.debug_struct(&format!("GdkX11Keymap @ {self:p}")).finish()
321    }
322}
323
324#[repr(C)]
325#[allow(dead_code)]
326pub struct GdkX11Monitor {
327    _data: [u8; 0],
328    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
329}
330
331impl ::std::fmt::Debug for GdkX11Monitor {
332    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
333        f.debug_struct(&format!("GdkX11Monitor @ {self:p}"))
334            .finish()
335    }
336}
337
338#[repr(C)]
339#[allow(dead_code)]
340pub struct GdkX11Screen {
341    _data: [u8; 0],
342    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
343}
344
345impl ::std::fmt::Debug for GdkX11Screen {
346    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
347        f.debug_struct(&format!("GdkX11Screen @ {self:p}")).finish()
348    }
349}
350
351#[repr(C)]
352#[allow(dead_code)]
353pub struct GdkX11Visual {
354    _data: [u8; 0],
355    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
356}
357
358impl ::std::fmt::Debug for GdkX11Visual {
359    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
360        f.debug_struct(&format!("GdkX11Visual @ {self:p}")).finish()
361    }
362}
363
364#[repr(C)]
365#[allow(dead_code)]
366pub struct GdkX11Window {
367    _data: [u8; 0],
368    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
369}
370
371impl ::std::fmt::Debug for GdkX11Window {
372    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
373        f.debug_struct(&format!("GdkX11Window @ {self:p}")).finish()
374    }
375}
376
377unsafe extern "C" {
378
379    //=========================================================================
380    // GdkX11AppLaunchContext
381    //=========================================================================
382    pub fn gdk_x11_app_launch_context_get_type() -> GType;
383
384    //=========================================================================
385    // GdkX11Cursor
386    //=========================================================================
387    pub fn gdk_x11_cursor_get_type() -> GType;
388    pub fn gdk_x11_cursor_get_xcursor(cursor: *mut GdkX11Cursor) -> xlib::Cursor;
389    pub fn gdk_x11_cursor_get_xdisplay(cursor: *mut GdkX11Cursor) -> *mut xlib::Display;
390
391    //=========================================================================
392    // GdkX11DeviceCore
393    //=========================================================================
394    pub fn gdk_x11_device_core_get_type() -> GType;
395
396    //=========================================================================
397    // GdkX11DeviceManagerCore
398    //=========================================================================
399    pub fn gdk_x11_device_manager_core_get_type() -> GType;
400
401    //=========================================================================
402    // GdkX11DeviceManagerXI2
403    //=========================================================================
404    pub fn gdk_x11_device_manager_xi2_get_type() -> GType;
405
406    //=========================================================================
407    // GdkX11DeviceXI2
408    //=========================================================================
409    pub fn gdk_x11_device_xi2_get_type() -> GType;
410
411    //=========================================================================
412    // GdkX11Display
413    //=========================================================================
414    pub fn gdk_x11_display_get_type() -> GType;
415    pub fn gdk_x11_display_get_glx_version(
416        display: *mut gdk::GdkDisplay,
417        major: *mut c_int,
418        minor: *mut c_int,
419    ) -> gboolean;
420    pub fn gdk_x11_display_broadcast_startup_message(
421        display: *mut GdkX11Display,
422        message_type: *const c_char,
423        ...
424    );
425    pub fn gdk_x11_display_error_trap_pop(display: *mut GdkX11Display) -> c_int;
426    pub fn gdk_x11_display_error_trap_pop_ignored(display: *mut GdkX11Display);
427    pub fn gdk_x11_display_error_trap_push(display: *mut GdkX11Display);
428    pub fn gdk_x11_display_get_startup_notification_id(
429        display: *mut GdkX11Display,
430    ) -> *const c_char;
431    pub fn gdk_x11_display_get_user_time(display: *mut GdkX11Display) -> u32;
432    pub fn gdk_x11_display_get_xdisplay(display: *mut GdkX11Display) -> *mut xlib::Display;
433    pub fn gdk_x11_display_grab(display: *mut GdkX11Display);
434    pub fn gdk_x11_display_set_cursor_theme(
435        display: *mut GdkX11Display,
436        theme: *const c_char,
437        size: c_int,
438    );
439    pub fn gdk_x11_display_set_startup_notification_id(
440        display: *mut GdkX11Display,
441        startup_id: *const c_char,
442    );
443    pub fn gdk_x11_display_set_window_scale(display: *mut GdkX11Display, scale: c_int);
444    pub fn gdk_x11_display_string_to_compound_text(
445        display: *mut GdkX11Display,
446        str: *const c_char,
447        encoding: *mut gdk::GdkAtom,
448        format: *mut c_int,
449        ctext: *mut *mut u8,
450        length: *mut c_int,
451    ) -> c_int;
452    pub fn gdk_x11_display_text_property_to_text_list(
453        display: *mut GdkX11Display,
454        encoding: gdk::GdkAtom,
455        format: c_int,
456        text: *const u8,
457        length: c_int,
458        list: *mut *mut *mut c_char,
459    ) -> c_int;
460    pub fn gdk_x11_display_ungrab(display: *mut GdkX11Display);
461    pub fn gdk_x11_display_utf8_to_compound_text(
462        display: *mut GdkX11Display,
463        str: *const c_char,
464        encoding: *mut gdk::GdkAtom,
465        format: *mut c_int,
466        ctext: *mut *mut u8,
467        length: *mut c_int,
468    ) -> gboolean;
469
470    //=========================================================================
471    // GdkX11DisplayManager
472    //=========================================================================
473    pub fn gdk_x11_display_manager_get_type() -> GType;
474
475    //=========================================================================
476    // GdkX11DragContext
477    //=========================================================================
478    pub fn gdk_x11_drag_context_get_type() -> GType;
479
480    //=========================================================================
481    // GdkX11GLContext
482    //=========================================================================
483    pub fn gdk_x11_gl_context_get_type() -> GType;
484
485    //=========================================================================
486    // GdkX11Keymap
487    //=========================================================================
488    pub fn gdk_x11_keymap_get_type() -> GType;
489    pub fn gdk_x11_keymap_get_group_for_state(keymap: *mut GdkX11Keymap, state: c_uint) -> c_int;
490    pub fn gdk_x11_keymap_key_is_modifier(keymap: *mut GdkX11Keymap, keycode: c_uint) -> gboolean;
491
492    //=========================================================================
493    // GdkX11Monitor
494    //=========================================================================
495    pub fn gdk_x11_monitor_get_type() -> GType;
496    pub fn gdk_x11_monitor_get_output(monitor: *mut gdk::GdkMonitor) -> xlib::XID;
497
498    //=========================================================================
499    // GdkX11Screen
500    //=========================================================================
501    pub fn gdk_x11_screen_get_type() -> GType;
502    pub fn gdk_x11_screen_get_current_desktop(screen: *mut GdkX11Screen) -> u32;
503    pub fn gdk_x11_screen_get_monitor_output(
504        screen: *mut GdkX11Screen,
505        monitor_num: c_int,
506    ) -> xlib::XID;
507    pub fn gdk_x11_screen_get_number_of_desktops(screen: *mut GdkX11Screen) -> u32;
508    pub fn gdk_x11_screen_get_screen_number(screen: *mut GdkX11Screen) -> c_int;
509    pub fn gdk_x11_screen_get_window_manager_name(screen: *mut GdkX11Screen) -> *const c_char;
510    pub fn gdk_x11_screen_get_xscreen(screen: *mut GdkX11Screen) -> *mut xlib::Screen;
511    pub fn gdk_x11_screen_lookup_visual(
512        screen: *mut GdkX11Screen,
513        xvisualid: xlib::VisualID,
514    ) -> *mut GdkX11Visual;
515    pub fn gdk_x11_screen_supports_net_wm_hint(
516        screen: *mut GdkX11Screen,
517        property: gdk::GdkAtom,
518    ) -> gboolean;
519
520    //=========================================================================
521    // GdkX11Visual
522    //=========================================================================
523    pub fn gdk_x11_visual_get_type() -> GType;
524    pub fn gdk_x11_visual_get_xvisual(visual: *mut GdkX11Visual) -> *mut xlib::Visual;
525
526    //=========================================================================
527    // GdkX11Window
528    //=========================================================================
529    pub fn gdk_x11_window_get_type() -> GType;
530    pub fn gdk_x11_window_foreign_new_for_display(
531        display: *mut GdkX11Display,
532        window: xlib::Window,
533    ) -> *mut gdk::GdkWindow;
534    pub fn gdk_x11_window_lookup_for_display(
535        display: *mut GdkX11Display,
536        window: xlib::Window,
537    ) -> *mut GdkX11Window;
538    pub fn gdk_x11_window_get_desktop(window: *mut GdkX11Window) -> u32;
539    pub fn gdk_x11_window_get_xid(window: *mut GdkX11Window) -> xlib::Window;
540    pub fn gdk_x11_window_move_to_current_desktop(window: *mut GdkX11Window);
541    pub fn gdk_x11_window_move_to_desktop(window: *mut GdkX11Window, desktop: u32);
542    pub fn gdk_x11_window_set_frame_extents(
543        window: *mut GdkX11Window,
544        left: c_int,
545        right: c_int,
546        top: c_int,
547        bottom: c_int,
548    );
549    pub fn gdk_x11_window_set_frame_sync_enabled(
550        window: *mut GdkX11Window,
551        frame_sync_enabled: gboolean,
552    );
553    pub fn gdk_x11_window_set_hide_titlebar_when_maximized(
554        window: *mut GdkX11Window,
555        hide_titlebar_when_maximized: gboolean,
556    );
557    pub fn gdk_x11_window_set_theme_variant(window: *mut GdkX11Window, variant: *mut c_char);
558    pub fn gdk_x11_window_set_user_time(window: *mut GdkX11Window, timestamp: u32);
559    pub fn gdk_x11_window_set_utf8_property(
560        window: *mut GdkX11Window,
561        name: *const c_char,
562        value: *const c_char,
563    );
564
565    //=========================================================================
566    // Other functions
567    //=========================================================================
568    pub fn gdk_x11_atom_to_xatom(atom: gdk::GdkAtom) -> xlib::Atom;
569    pub fn gdk_x11_atom_to_xatom_for_display(
570        display: *mut GdkX11Display,
571        atom: gdk::GdkAtom,
572    ) -> xlib::Atom;
573    pub fn gdk_x11_device_get_id(device: *mut GdkX11DeviceCore) -> c_int;
574    pub fn gdk_x11_device_manager_lookup(
575        device_manager: *mut GdkX11DeviceManagerCore,
576        device_id: c_int,
577    ) -> *mut GdkX11DeviceCore;
578    pub fn gdk_x11_free_compound_text(ctext: *mut u8);
579    pub fn gdk_x11_free_text_list(list: *mut *mut c_char);
580    pub fn gdk_x11_get_default_root_xwindow() -> xlib::Window;
581    pub fn gdk_x11_get_default_screen() -> c_int;
582    pub fn gdk_x11_get_default_xdisplay() -> *mut xlib::Display;
583    #[cfg(feature = "v3_24_2")]
584    #[cfg_attr(docsrs, doc(cfg(feature = "v3_24_2")))]
585    pub fn gdk_x11_get_parent_relative_pattern() -> *mut cairo::cairo_pattern_t;
586    pub fn gdk_x11_get_server_time(window: *mut GdkX11Window) -> u32;
587    pub fn gdk_x11_get_xatom_by_name(atom_name: *const c_char) -> xlib::Atom;
588    pub fn gdk_x11_get_xatom_by_name_for_display(
589        display: *mut GdkX11Display,
590        atom_name: *const c_char,
591    ) -> xlib::Atom;
592    pub fn gdk_x11_get_xatom_name(xatom: xlib::Atom) -> *const c_char;
593    pub fn gdk_x11_get_xatom_name_for_display(
594        display: *mut GdkX11Display,
595        xatom: xlib::Atom,
596    ) -> *const c_char;
597    pub fn gdk_x11_grab_server();
598    pub fn gdk_x11_lookup_xdisplay(xdisplay: *mut xlib::Display) -> *mut GdkX11Display;
599    pub fn gdk_x11_register_standard_event_type(
600        display: *mut GdkX11Display,
601        event_base: c_int,
602        n_events: c_int,
603    );
604    pub fn gdk_x11_set_sm_client_id(sm_client_id: *const c_char);
605    pub fn gdk_x11_ungrab_server();
606    pub fn gdk_x11_xatom_to_atom(xatom: xlib::Atom) -> gdk::GdkAtom;
607    pub fn gdk_x11_xatom_to_atom_for_display(
608        display: *mut GdkX11Display,
609        xatom: xlib::Atom,
610    ) -> gdk::GdkAtom;
611
612}