pub struct Window {Show 15 fields
pub id: WindowId,
pub x: i32,
pub y: i32,
pub width: u32,
pub height: u32,
pub title: [u8; 64],
pub title_len: usize,
pub state: WindowState,
pub visible: bool,
pub focused: bool,
pub owner_pid: u64,
pub opacity: u8,
pub saved_geometry: Option<(i32, i32, u32, u32)>,
pub snap_zone: SnapZone,
pub workspace: WorkspaceId,
}Expand description
Window structure
Fields§
§id: WindowId§x: i32§y: i32§width: u32§height: u32§title: [u8; 64]§title_len: usize§state: WindowState§visible: bool§focused: bool§owner_pid: u64§opacity: u8Window opacity (0 = transparent, 255 = fully opaque)
saved_geometry: Option<(i32, i32, u32, u32)>Saved geometry before snap/maximize (x, y, w, h)
snap_zone: SnapZoneCurrent snap zone
workspace: WorkspaceIdWorkspace this window belongs to
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnwindSafe for Window
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)