pub struct Window {
pub id: u64,
pub title: Option<String>,
pub app_id: Option<String>,
pub workspace_id: Option<u64>,
pub is_focused: bool,
}
Expand description
Toplevel window.
Fields§
§id: u64
Unique id of this window.
This id remains constant while this window is open.
Do not assume that window ids will always increase without wrapping, or start at 1. That is an implementation detail subject to change. For example, ids may change to be randomly generated for each new window.
title: Option<String>
Title, if set.
app_id: Option<String>
Application ID, if set.
workspace_id: Option<u64>
Id of the workspace this window is on, if any.
is_focused: bool
Whether this window is currently focused.
There can be either one focused window or zero (e.g. when a layer-shell surface has focus).
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
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§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)