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
pub mod theapp;
pub mod thecolor;
pub mod thecontext;
pub mod thedraw2d;
pub mod thetrait;

#[cfg(feature = "ui")]
pub mod theui;

#[cfg(feature = "code")]
pub mod thecode;

pub use crate::theapp::TheApp;
pub use crate::thecontext::TheContext;
pub use crate::thetrait::TheTrait;

#[cfg(feature = "ui")]
pub use crate::theui::TheUI;

use rust_embed::RustEmbed;
#[derive(RustEmbed)]
#[folder = "embedded/"]
#[exclude = "*.txt"]
#[exclude = "*.DS_Store"]
pub struct Embedded;
pub use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
pub enum TheKeyCode {
    Escape,
    Return,
    Delete,
    Up,
    Right,
    Down,
    Left,
    Space,
    Tab,
}

pub mod prelude {

    pub use serde::{Deserialize, Serialize};

    pub use maths_rs::prelude::*;
    pub use rustc_hash::*;
    pub use uuid::Uuid;

    pub use crate::theapp::TheApp;
    pub use crate::thecolor::TheColor;
    pub use crate::thecontext::TheContext;
    pub use crate::thedraw2d::TheDraw2D;
    pub use crate::thedraw2d::TheHorizontalAlign;
    pub use crate::thedraw2d::TheVerticalAlign;

    pub use crate::thetrait::TheTrait;
    pub use crate::TheKeyCode;

    #[cfg(feature = "renderer")]
    pub use therenderer::prelude::*;

    #[cfg(feature = "ui")]
    pub use crate::theui::prelude::*;

    #[cfg(feature = "code")]
    pub use crate::thecode::prelude::*;
}