Make basic iced window

This commit is contained in:
Jarrod Doyle 2024-01-21 15:41:41 +00:00
parent 8d511bb894
commit f5e12466ac
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 29 additions and 2 deletions

View File

@ -1,3 +1,30 @@
fn main() { use iced::{widget::text, Element, Result, Sandbox, Settings};
println!("Hello, world!");
#[derive(Debug)]
enum Message {}
struct Application;
impl Sandbox for Application {
type Message = Message;
fn new() -> Self {
Self
}
fn title(&self) -> String {
String::from("Thief Book Manager")
}
fn update(&mut self, message: Message) {
match message {}
}
fn view(&self) -> Element<'_, Message> {
text("Hello, world!").into()
}
}
fn main() -> Result {
Application::run(Settings::default())
} }