lib.rs 1005 Bytes
Newer Older
Jeremy Soller's avatar
Format    
Jeremy Soller committed
1
2
3
#![crate_name = "orbclient"]
#![crate_type = "lib"]
#![cfg_attr(feature = "no_std", no_std)]
4

Jeremy Soller's avatar
Format    
Jeremy Soller committed
5
#[cfg(feature = "no_std")]
Jeremy Soller's avatar
Jeremy Soller committed
6
extern crate alloc;
Jeremy Soller's avatar
Format    
Jeremy Soller committed
7
#[cfg(not(feature = "no_std"))]
8
extern crate core;
9

Jeremy Soller's avatar
Jeremy Soller committed
10
11
pub static FONT: &'static [u8] = include_bytes!("../res/unifont.font");

Jeremy Soller's avatar
Jeremy Soller committed
12
pub use color::Color;
13
pub use event::*;
14
pub use graphicspath::GraphicsPath;
15
pub use renderer::Renderer;
Jeremy Soller's avatar
Format    
Jeremy Soller committed
16
17
#[cfg(not(feature = "no_std"))]
pub use sys::{get_display_size, EventIter, Window};
18

Jeremy Soller's avatar
Format    
Jeremy Soller committed
19
20
#[cfg(not(feature = "no_std"))]
mod blur;
Jeremy Soller's avatar
Jeremy Soller committed
21
pub mod color;
22
pub mod event;
23
pub mod graphicspath;
24
pub mod renderer;
Jeremy Soller's avatar
Jeremy Soller committed
25

26
27
28
#[derive(Clone, Copy, Debug)]
pub enum WindowFlag {
    Async,
29
30
    Back,
    Front,
31
    Borderless,
32
    Resizable,
33
    Transparent,
Jeremy Soller's avatar
Format    
Jeremy Soller committed
34
    Unclosable,
35
36
}

robbycerantola's avatar
robbycerantola committed
37
38
#[derive(Clone, Copy, Debug)]
pub enum Mode {
Jeremy Soller's avatar
Format    
Jeremy Soller committed
39
40
    Blend,     //Composite
    Overwrite, //Replace
robbycerantola's avatar
robbycerantola committed
41
42
}

Jeremy Soller's avatar
Format    
Jeremy Soller committed
43
44
#[cfg(all(not(feature = "no_std"), target_os = "redox"))]
#[path = "sys/orbital.rs"]
Jeremy Soller's avatar
Jeremy Soller committed
45
mod sys;
Jeremy Soller's avatar
Jeremy Soller committed
46

47
#[cfg(all(not(feature = "no_std"), any(unix, windows)))]
Jeremy Soller's avatar
Format    
Jeremy Soller committed
48
#[path = "sys/sdl2.rs"]
Jeremy Soller's avatar
Jeremy Soller committed
49
mod sys;