pub struct SpaceScreen {
pub index: u32,
pub name: String,
pub x: i32,
pub y: i32,
pub width: u32,
pub height: u32,
pub is_primary: bool,
pub windows: Vec<WindowInfo>,
}Expand description
One screen with its on-screen windows.
Fields§
§index: u32Screen index in display order. 0 is the primary screen on most
desktops but the field is not a guarantee of primacy.
name: StringLogical name when the platform provides one (NSScreen localized name). Empty when unknown.
x: i32Left edge in the virtual desktop.
y: i32Top edge in the virtual desktop.
width: u32Logical width in screen points.
height: u32Logical height in screen points.
is_primary: boolWhether this is the primary display.
windows: Vec<WindowInfo>Windows whose center lies inside this screen, ordered by id ascending.
Trait Implementations§
Source§impl Clone for SpaceScreen
impl Clone for SpaceScreen
Source§impl Debug for SpaceScreen
impl Debug for SpaceScreen
Source§impl PartialEq for SpaceScreen
impl PartialEq for SpaceScreen
Source§impl Serialize for SpaceScreen
impl Serialize for SpaceScreen
impl StructuralPartialEq for SpaceScreen
Auto Trait Implementations§
impl Freeze for SpaceScreen
impl RefUnwindSafe for SpaceScreen
impl Send for SpaceScreen
impl Sync for SpaceScreen
impl Unpin for SpaceScreen
impl UnsafeUnpin for SpaceScreen
impl UnwindSafe for SpaceScreen
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more