This commit is contained in:
Chris Cochrun 2023-10-08 13:57:57 -05:00
commit 1af939a901
8 changed files with 3559 additions and 0 deletions

31
src/main.rs Normal file
View file

@ -0,0 +1,31 @@
use iced::executor;
use iced::{Application, Command, Element, Settings, Theme};
fn main() -> iced::Result {
App::run(Settings::default())
}
struct App;
impl Application for App {
type Executor = executor::Default;
type Flags = ();
type Message = ();
type Theme = Theme;
fn new(_flags: ()) -> (App, Command<Self::Message>) {
(App, Command::none())
}
fn title(&self) -> String {
String::from("A cool application")
}
fn update(&mut self, _message: Self::Message) -> Command<Self::Message> {
Command::none()
}
fn view(&self) -> Element<Self::Message> {
"Hello, world!".into()
}
}