Move compositor module access from window to crate

This commit is contained in:
Richard 2022-04-26 19:18:18 -03:00
parent 5be1ac18fe
commit 984d1f375e
8 changed files with 27 additions and 22 deletions

View file

@ -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
}