pub struct NiriWindow {
pub id: u64,
pub title: Option<String>,
pub app_id: Option<String>,
pub workspace_id: Option<u64>,
pub is_focused: bool,
pub is_urgent: bool,
}Expand description
One of niri’s windows, as its IPC describes it.
Fields§
§id: u64niri’s id for it, which stays while it is open: the key to give
children_keyed, and what Niri::focus_window takes.
title: Option<String>Its title, if it set one.
app_id: Option<String>Its app id, if it set one.
workspace_id: Option<u64>The id of the workspace it is on, if any.
is_focused: boolWhether it has the keyboard focus.
is_urgent: boolWhether it asks for attention.
Trait Implementations§
Source§impl Clone for NiriWindow
impl Clone for NiriWindow
Source§impl Debug for NiriWindow
impl Debug for NiriWindow
Source§impl<'de> Deserialize<'de> for NiriWindow
impl<'de> Deserialize<'de> for NiriWindow
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 Eq for NiriWindow
Source§impl PartialEq for NiriWindow
impl PartialEq for NiriWindow
impl StructuralPartialEq for NiriWindow
Auto Trait Implementations§
impl Forget for NiriWindow
impl Freeze for NiriWindow
impl Move for NiriWindow
impl RefUnwindSafe for NiriWindow
impl Send for NiriWindow
impl Sync for NiriWindow
impl Unpin for NiriWindow
impl UnsafeUnpin for NiriWindow
impl UnwindSafe for NiriWindow
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