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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Copyright (c) 2017, Marty Mills <daggerbot@gmail.com>
// This software is available under the terms of the zlib license.
// See COPYING.md for more information.

#![cfg(any(windows, unix))]

extern crate dcolor;
extern crate dinput;
extern crate dnum;
extern crate dvec;
#[macro_use]
extern crate lazy_static;
#[allow(unused_imports)]
#[macro_use]
extern crate log;
extern crate try_from;
#[cfg(windows)]
mod winapi {
    extern crate gdi32;
    extern crate kernel32;
    extern crate user32;
    extern crate winapi;

    pub use self::gdi32::*;
    pub use self::kernel32::*;
    pub use self::user32::*;
    pub use self::winapi::*;
}
#[cfg(all(unix, not(target_os = "macos")))]
extern crate x11_dl as x11;

#[macro_use]
mod error;

/// Event types.
pub mod event;
/// Platform-specific traits.
pub mod sys;

mod display;
mod id;
mod provider;
mod signal;
#[allow(dead_code)]
mod util;
mod visual;
mod window;

pub use display::{CallbackArgs, Display, EventQueue, RunMode};
pub use error::{Error, ErrorKind, Result};
pub use event::{Event};
pub use id::{Id};
pub use signal::{Signal};
pub use visual::{Visual};
pub use window::{Window, WindowBuilder};

/// Integer coordinate type.
pub type Coord = i32;