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
59
60
61
62
63
64
65
66
67
//! # carbide
//!
//! An easy-to-use, immediate-mode, 2D GUI library featuring a range of useful widgets.
//!
//! If you are new to carbide, we recommend checking out [The Guide](./guide/index.html).

#![deny(unsafe_code)] //Todo deny when unsafe code removed from foreach
//#![feature(associated_type_bounds)]
//#![warn(missing_copy_implementations)]
//#![warn(missing_docs)]

#[macro_use]
extern crate bitflags;
#[macro_use]
extern crate bytemuck;
#[macro_use]
extern crate carbide_derive;
extern crate copypasta;
extern crate core;
extern crate dyn_clone;
extern crate fnv;
extern crate input as piston_input;
extern crate instant;
extern crate num;
extern crate ron;
extern crate rusttype;
extern crate serde;
extern crate uuid;
extern crate wgpu;
extern crate lyon;

extern crate self as carbide_core;

pub use ron::from_str as from_ron;
pub use ron::to_string as to_ron;

pub use bincode::deserialize as from_bin;
pub use bincode::serialize as to_bin;

pub use carbide_derive::*;

pub use crate::color::{Color, Colorable};
pub use crate::label::{FontSize, Labelable};
pub use crate::position::{Point, Range, Rect, Scalar};
pub use crate::ui::{Ui, UiBuilder, UiCell};

pub mod color;
pub mod event;
pub mod guide;
pub mod image_map;
pub mod input;
mod label;
pub mod mesh;
pub mod position;
pub mod render;
pub mod text;
mod ui;
pub mod utils;
pub mod widget;
pub mod cursor;
pub mod layout;
pub mod event_handler;
pub mod state;
pub mod flags;
pub mod draw;
pub mod window;
pub mod prelude;