1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Take a look at the license at the top of the repository in the LICENSE file.

#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub use ffi;
pub use gdk;
pub use gio;
pub use glib;
#[cfg(all(feature = "v4_4", feature = "egl"))]
#[cfg_attr(docsrs, doc(cfg(all(feature = "v4_4", feature = "egl"))))]
pub use khronos_egl;
#[cfg(feature = "xlib")]
#[cfg_attr(docsrs, doc(cfg(feature = "xlib")))]
pub use x11;
#[macro_use]
mod rt;

#[allow(clippy::upper_case_acronyms)]
#[allow(unused_imports)]
mod auto;

pub mod builders;
pub mod prelude;

mod functions;
mod x11_display;
mod x11_monitor;
mod x11_screen;
mod x11_surface;

pub use auto::*;
pub use functions::*;

#[cfg(not(feature = "xlib"))]
pub type XID = libc::c_ulong;
#[cfg(not(feature = "xlib"))]
pub type XWindow = XID;
#[cfg(not(feature = "xlib"))]
pub type XCursor = XID;
#[cfg(not(feature = "xlib"))]
pub type XAtom = XID;