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
use crate::natives_and_messaging::WINDOWSTYLE_NORMAL;
use crate::window::{Attributes, Frame};
use crate::window::dialog::Dialog;

pub struct DemoDialog {

}

impl DemoDialog {
    pub fn new() -> Self {
        Self {

        }
    }
}

impl Dialog for DemoDialog {
    fn attributes(&self) -> Attributes {
        Attributes::new(WINDOWSTYLE_NORMAL, "Demo Dialog".to_string(), 320, 250, 50, 50)
    }

    fn frame(&self) -> Frame {
        Frame::default()
    }

    fn ui(&self, frame: Frame) {
        frame.show();
    }
}