Move tester to a new iced_tester subcrate
This commit is contained in:
parent
9e81c2b9e8
commit
4f7444bddf
28 changed files with 392 additions and 355 deletions
|
|
@ -29,7 +29,7 @@ pub fn timed<State, Message, Theme, Renderer>(
|
|||
>
|
||||
where
|
||||
State: 'static,
|
||||
Message: program::Message + 'static,
|
||||
Message: Send + 'static,
|
||||
Theme: Default + theme::Base + 'static,
|
||||
Renderer: program::Renderer + 'static,
|
||||
{
|
||||
|
|
@ -68,7 +68,7 @@ where
|
|||
View,
|
||||
>
|
||||
where
|
||||
Message: program::Message + 'static,
|
||||
Message: Send + 'static,
|
||||
Theme: Default + theme::Base + 'static,
|
||||
Renderer: program::Renderer + 'static,
|
||||
Boot: self::Boot<State, Message>,
|
||||
|
|
@ -92,6 +92,10 @@ where
|
|||
Settings::default()
|
||||
}
|
||||
|
||||
fn window(&self) -> Option<iced_core::window::Settings> {
|
||||
Some(window::Settings::default())
|
||||
}
|
||||
|
||||
fn boot(&self) -> (State, Task<Self::Message>) {
|
||||
let (state, task) = self.boot.boot();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue