Files
iris/examples/minimal.rs
T
2026-09-11 00:55:33 -04:00

22 lines
401 B
Rust

use iris::prelude::*;
fn main() {
DesktopApp::<State>::run();
}
#[derive(DesktopUiState)]
struct State {
ui_state: DesktopUiState,
}
impl DesktopAppState for State {
fn new(
mut ui_state: DesktopUiState,
rsc: &mut DesktopRsc<Self>,
_: Proxy<Self::Event>,
) -> Self {
rect(PaintId::RED).set_root(rsc, &mut ui_state);
Self { ui_state }
}
}