Move compositor module access from window to crate
This commit is contained in:
parent
5be1ac18fe
commit
984d1f375e
8 changed files with 27 additions and 22 deletions
|
|
@ -2,7 +2,7 @@
|
|||
use crate::command::{self, Command};
|
||||
pub use iced_native::system::*;
|
||||
|
||||
use iced_graphics::window;
|
||||
use iced_graphics::compositor;
|
||||
|
||||
/// Query for available system information.
|
||||
///
|
||||
|
|
@ -17,7 +17,7 @@ pub fn information<Message>(
|
|||
|
||||
#[cfg(feature = "sysinfo")]
|
||||
pub(crate) fn get_information(
|
||||
graphics_info: &window::Information,
|
||||
graphics_info: &compositor::Information,
|
||||
) -> Option<Information> {
|
||||
use sysinfo::{ProcessExt, ProcessorExt, System, SystemExt};
|
||||
let mut system = System::new_all();
|
||||
|
|
@ -47,7 +47,7 @@ pub(crate) fn get_information(
|
|||
|
||||
#[cfg(not(feature = "sysinfo"))]
|
||||
pub(crate) fn get_information(
|
||||
_graphics_info: &window::Information,
|
||||
_graphics_info: &compositor::Information,
|
||||
) -> Option<Information> {
|
||||
None
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue