mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-03-10 22:51:12 +01:00
31 lines
520 B
Rust
31 lines
520 B
Rust
use iced::{widget::column, Sandbox, Settings};
|
|
|
|
#[derive(Clone, Copy, Debug)]
|
|
enum Message {}
|
|
|
|
struct App {}
|
|
|
|
impl Sandbox for App {
|
|
type Message = Message;
|
|
|
|
fn new() -> Self {
|
|
Self {}
|
|
}
|
|
|
|
fn title(&self) -> String {
|
|
"TODO change name".into()
|
|
}
|
|
|
|
fn update(&mut self, message: Self::Message) {
|
|
match message {}
|
|
}
|
|
|
|
fn view(&self) -> iced::Element<'_, Self::Message> {
|
|
column![].into()
|
|
}
|
|
}
|
|
|
|
fn main() -> iced::Result {
|
|
App::run(Settings::default())
|
|
}
|
|
|