Export new system module
This commit is contained in:
parent
0b36a55196
commit
c8ed318e17
2 changed files with 4 additions and 3 deletions
|
|
@ -224,6 +224,7 @@ pub use settings::Settings;
|
|||
|
||||
pub use runtime::alignment;
|
||||
pub use runtime::futures;
|
||||
pub use runtime::system;
|
||||
pub use runtime::{
|
||||
Alignment, Background, Color, Command, ContentFit, Font, Length, Point,
|
||||
Rectangle, Size, Subscription, Vector,
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
//! Access the native system.
|
||||
use crate::command::{self, Command};
|
||||
use iced_native::system;
|
||||
pub use iced_native::system::*;
|
||||
|
||||
/// Query for available system information.
|
||||
///
|
||||
/// Returns `None` if not using the `sysinfo` feature flag.
|
||||
pub fn information<Message>(
|
||||
f: impl Fn(Option<system::Information>) -> Message + 'static,
|
||||
f: impl Fn(Option<Information>) -> Message + 'static,
|
||||
) -> Command<Message> {
|
||||
Command::single(command::Action::System(system::Action::QueryInformation(
|
||||
Command::single(command::Action::System(Action::QueryInformation(
|
||||
Box::new(f),
|
||||
)))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue