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
pub mod extui;
pub struct Orz{
    pub event:OEvent,
    pub msg:Option<String>,
}
pub enum OEvent{
    Buttom(String),
    Checkbox(String),
    Combobox(String),
    Toasts(Infotype),
    Char(Chartype),
    DragValue(String),
}
pub enum Chartype{
    Byte(&'static str),
    Str(String),
}
pub enum Infotype{
    Success,
    Error,
    Info,
}
impl Orz {
    pub fn from(evt:OEvent,msg:Option<String>)->Self{
        Self { event: evt, msg: msg }
    }
}