pub struct Window {
pub id: u64,
pub kind: WindowKind,
pub app: String,
pub title: String,
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
pub focused: bool,
}Expand description
Metadata for one desktop window. Its pixels live in the desktop HTML.
Fields§
§id: u64Same id as the element’s data-window and the window tools.
kind: WindowKind§app: StringWM_CLASS for X11 apps (‘xmessage’), else the kind.
title: String§x: f64§y: f64§width: f64§height: f64§focused: boolImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Window
impl<'de> Deserialize<'de> for Window
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl Forget for Window
impl Freeze for Window
impl Move for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnsafeUnpin for Window
impl UnwindSafe for Window
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