Merge branch 'master' into feature/test-recorder
This commit is contained in:
commit
a052ce58b0
69 changed files with 1555 additions and 833 deletions
13
src/lib.rs
13
src/lib.rs
|
|
@ -589,11 +589,12 @@ pub mod mouse {
|
|||
};
|
||||
}
|
||||
|
||||
#[cfg(feature = "system")]
|
||||
pub mod system {
|
||||
//! Retrieve system information.
|
||||
pub use crate::runtime::system::Information;
|
||||
pub use crate::shell::system::*;
|
||||
pub use crate::runtime::system::{theme, theme_changes};
|
||||
|
||||
#[cfg(feature = "sysinfo")]
|
||||
pub use crate::runtime::system::{Information, information};
|
||||
}
|
||||
|
||||
pub mod overlay {
|
||||
|
|
@ -691,14 +692,14 @@ pub type Result = std::result::Result<(), Error>;
|
|||
/// }
|
||||
/// ```
|
||||
pub fn run<State, Message, Theme, Renderer>(
|
||||
update: impl application::Update<State, Message> + 'static,
|
||||
view: impl for<'a> application::View<'a, State, Message, Theme, Renderer>
|
||||
update: impl application::UpdateFn<State, Message> + 'static,
|
||||
view: impl for<'a> application::ViewFn<'a, State, Message, Theme, Renderer>
|
||||
+ 'static,
|
||||
) -> Result
|
||||
where
|
||||
State: Default + 'static,
|
||||
Message: Send + message::MaybeDebug + message::MaybeClone + 'static,
|
||||
Theme: Default + theme::Base + 'static,
|
||||
Theme: theme::Base + 'static,
|
||||
Renderer: program::Renderer + 'static,
|
||||
{
|
||||
application(State::default, update, view).run()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue