27 lines
582 B
Rust
27 lines
582 B
Rust
use iris::prelude::*;
|
|
use winit::{dpi::LogicalSize, window::WindowAttributes};
|
|
|
|
#[path = "lib.rs"]
|
|
mod app;
|
|
use app::*;
|
|
|
|
#[derive(DesktopUiState)]
|
|
struct State {
|
|
ui_state: DesktopUiState,
|
|
}
|
|
|
|
impl DesktopAppState for State {
|
|
fn window_attributes() -> WindowAttributes {
|
|
WindowAttributes::default().with_inner_size(LogicalSize::new(420.0, 900.0))
|
|
}
|
|
|
|
fn new(mut ui_state: DesktopUiState, rsc: &mut StdRsc<Self>, _: Proxy<Self::Event>) -> Self {
|
|
build(rsc, &mut ui_state);
|
|
Self { ui_state }
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
DesktopApp::<State>::run();
|
|
}
|