Unify Program definition in iced_program subcrate
This commit is contained in:
parent
ebfcb65841
commit
fd1101bd5f
66 changed files with 1862 additions and 1935 deletions
|
|
@ -10,11 +10,12 @@ use iced::{
|
|||
use std::collections::BTreeMap;
|
||||
|
||||
fn main() -> iced::Result {
|
||||
iced::daemon(Example::title, Example::update, Example::view)
|
||||
iced::daemon(Example::new, Example::update, Example::view)
|
||||
.subscription(Example::subscription)
|
||||
.title(Example::title)
|
||||
.theme(Example::theme)
|
||||
.scale_factor(Example::scale_factor)
|
||||
.run_with(Example::new)
|
||||
.run()
|
||||
}
|
||||
|
||||
struct Example {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue