diff options
Diffstat (limited to 'resource-viewer/src')
-rw-r--r-- | resource-viewer/src/main.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/resource-viewer/src/main.rs b/resource-viewer/src/main.rs new file mode 100644 index 0000000..4fa6b9f --- /dev/null +++ b/resource-viewer/src/main.rs @@ -0,0 +1,13 @@ +slint::include_modules!(); + +fn main() -> Result<(), slint::PlatformError> { + let ui = AppWindow::new()?; + + let ui_handle = ui.as_weak(); + ui.on_request_increase_value(move || { + let ui = ui_handle.unwrap(); + ui.set_counter(ui.get_counter() + 1); + }); + + ui.run() +} |