orbclient/
lib.rs

1// SPDX-License-Identifier: MIT
2
3#![cfg_attr(not(feature = "std"), no_std)]
4#![deny(unreachable_pub)]
5
6#[cfg(not(feature = "std"))]
7extern crate alloc;
8
9#[cfg(all(feature = "std", not(target_os = "redox")))]
10#[path = "sys/sdl2.rs"]
11mod sys;
12
13#[cfg(all(feature = "std", target_os = "redox"))]
14#[path = "sys/orbital.rs"]
15mod sys;
16
17#[cfg(feature = "std")]
18pub use sys::{get_display_size, EventIter, Window};
19#[cfg(all(feature = "std", target_os = "redox"))]
20pub use sys::Surface;
21
22#[cfg(feature = "unifont")]
23pub static FONT: &[u8] = include_bytes!("../res/unifont.font");
24
25pub use color::Color;
26pub use event::*;
27pub use graphicspath::GraphicsPath;
28pub use renderer::Renderer;
29
30#[cfg(feature = "std")]
31mod blur;
32pub mod color;
33pub mod event;
34pub mod graphicspath;
35pub mod renderer;
36
37#[derive(Clone, Copy, Debug)]
38pub enum WindowFlag {
39    Async,
40    Back,
41    Front,
42    Borderless,
43    Resizable,
44    Transparent,
45    Unclosable,
46}
47
48#[derive(Clone, Copy, Debug)]
49pub enum SurfaceFlag {}
50
51#[derive(Clone, Copy, Debug)]
52pub enum Mode {
53    Blend,     //Composite
54    Overwrite, //Replace
55}