1#![allow(deprecated)]
6#![cfg_attr(feature = "cargo-clippy", allow(cast_ptr_alignment))]
7#![cfg_attr(feature = "cargo-clippy", allow(transmute_int_to_char))]
8#![cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ptr))]
9#![cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
10
11extern crate gdk_pixbuf;
12extern crate gdk_sys;
13extern crate gio;
14extern crate gio_sys;
15extern crate glib_sys;
16#[macro_use]
17extern crate glib;
18extern crate cairo;
19extern crate cairo_sys;
20extern crate gobject_sys;
21extern crate libc;
22extern crate pango;
23#[macro_use]
24extern crate bitflags;
25
26#[macro_use]
27mod rt;
28#[macro_use]
29mod event;
30
31#[cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
32#[cfg_attr(feature = "cargo-clippy", allow(type_complexity))]
33#[cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))]
34mod auto;
35
36pub mod prelude;
37
38pub use self::auto::functions::*;
39pub use auto::*;
40pub use prelude::*;
41
42pub mod enums;
43
44mod atom;
45mod cairo_interaction;
46mod change_data;
47mod device;
48mod device_manager;
49mod drag_context;
50mod event_button;
51mod event_configure;
52mod event_crossing;
53mod event_dnd;
54mod event_expose;
55mod event_focus;
56mod event_grab_broken;
57mod event_key;
58mod event_motion;
59mod event_owner_change;
60#[cfg(any(feature = "v3_22", feature = "dox"))]
61mod event_pad_axis;
62#[cfg(any(feature = "v3_22", feature = "dox"))]
63mod event_pad_button;
64#[cfg(any(feature = "v3_22", feature = "dox"))]
65mod event_pad_group_mode;
66mod event_property;
67mod event_proximity;
68mod event_scroll;
69mod event_selection;
70mod event_setting;
71mod event_touch;
72#[cfg(any(feature = "v3_18", feature = "dox"))]
73mod event_touchpad_pinch;
74#[cfg(any(feature = "v3_18", feature = "dox"))]
75mod event_touchpad_swipe;
76mod event_visibility;
77mod event_window_state;
78mod frame_clock;
79mod frame_timings;
80mod functions;
81mod geometry;
82mod keys;
83mod rectangle;
84mod rgba;
85mod screen;
86mod visual;
87mod window;
88
89pub use gdk_sys::GdkColor as Color;
90pub use glib::Error;
91
92pub use self::rt::{init, set_initialized};
93
94pub use atom::Atom;
95pub use atom::NONE as ATOM_NONE;
96pub use atom::SELECTION_CLIPBOARD;
97pub use atom::SELECTION_PRIMARY;
98pub use atom::SELECTION_SECONDARY;
99pub use atom::SELECTION_TYPE_ATOM;
100pub use atom::SELECTION_TYPE_BITMAP;
101pub use atom::SELECTION_TYPE_COLORMAP;
102pub use atom::SELECTION_TYPE_DRAWABLE;
103pub use atom::SELECTION_TYPE_INTEGER;
104pub use atom::SELECTION_TYPE_PIXMAP;
105pub use atom::SELECTION_TYPE_STRING;
106pub use atom::SELECTION_TYPE_WINDOW;
107pub use atom::TARGET_BITMAP;
108pub use atom::TARGET_COLORMAP;
109pub use atom::TARGET_DRAWABLE;
110pub use atom::TARGET_PIXMAP;
111pub use atom::TARGET_STRING;
112pub use change_data::ChangeData;
113pub use event::Event;
114pub use event_button::EventButton;
115pub use event_configure::EventConfigure;
116pub use event_crossing::EventCrossing;
117pub use event_dnd::EventDND;
118pub use event_expose::EventExpose;
119pub use event_focus::EventFocus;
120pub use event_grab_broken::EventGrabBroken;
121pub use event_key::EventKey;
122pub use event_motion::EventMotion;
123pub use event_owner_change::EventOwnerChange;
124#[cfg(any(feature = "v3_22", feature = "dox"))]
125pub use event_pad_axis::EventPadAxis;
126#[cfg(any(feature = "v3_22", feature = "dox"))]
127pub use event_pad_button::EventPadButton;
128#[cfg(any(feature = "v3_22", feature = "dox"))]
129pub use event_pad_group_mode::EventPadGroupMode;
130pub use event_property::EventProperty;
131pub use event_proximity::EventProximity;
132pub use event_scroll::EventScroll;
133pub use event_selection::EventSelection;
134pub use event_setting::EventSetting;
135pub use event_touch::EventTouch;
136#[cfg(any(feature = "v3_18", feature = "dox"))]
137pub use event_touchpad_pinch::EventTouchpadPinch;
138#[cfg(any(feature = "v3_18", feature = "dox"))]
139pub use event_touchpad_swipe::EventTouchpadSwipe;
140pub use event_visibility::EventVisibility;
141pub use event_window_state::EventWindowState;
142pub use functions::*;
143pub use geometry::Geometry;
144pub use rectangle::Rectangle;
145pub use rgba::{RgbaParseError, RGBA};
146pub use window::WindowAttr;
147
148#[allow(non_camel_case_types)]
149pub type key = i32;
150
151pub use self::keys::{keyval_name, keyval_to_unicode};