pub struct Window {
Show 33 fields pub active: Option<bool>, pub active_clients: Option<usize>, pub active_clients_list: Option<String>, pub active_sessions: Option<usize>, pub active_sessions_list: Option<String>, pub activity: Option<usize>, pub activity_flag: Option<bool>, pub bell_flag: Option<bool>, pub bigger: Option<bool>, pub cell_height: Option<usize>, pub cell_width: Option<usize>, pub end_flag: Option<bool>, pub flags: Option<WindowFlags>, pub format: Option<bool>, pub height: Option<usize>, pub id: Option<usize>, pub index: Option<usize>, pub last_flag: Option<bool>, pub layout: Option<Layout>, pub linked: Option<bool>, pub linked_sessions: Option<usize>, pub linked_sessions_list: Option<String>, pub marked_flag: Option<bool>, pub name: Option<String>, pub offset_x: Option<usize>, pub offset_y: Option<usize>, pub panes: Option<usize>, pub silence_flag: Option<bool>, pub stack_index: Option<usize>, pub start_flag: Option<bool>, pub visible_layout: Option<Layout>, pub width: Option<usize>, pub zoomed_flag: Option<bool>,
}

Fields§

§active: Option<bool>

window_active - 1 if window active

§active_clients: Option<usize>

window_active_clients - Number of clients viewing this window

§active_clients_list: Option<String>

window_active_clients_list - List of clients viewing this window

§active_sessions: Option<usize>

window_active_sessions - Number of sessions on which this window is active

§active_sessions_list: Option<String>

window_active_sessions_list - List of sessions on which this window is active

§activity: Option<usize>

window_activity - Time of window last activity

§activity_flag: Option<bool>

window_activity_flag - 1 if window has activity

§bell_flag: Option<bool>

window_bell_flag - 1 if window has bell

§bigger: Option<bool>

1 if window is larger than client

§cell_height: Option<usize>

window_cell_height - Height of each cell in pixels

§cell_width: Option<usize>

window_cell_width - Width of each cell in pixels

§end_flag: Option<bool>

1 if window has the highest index

§flags: Option<WindowFlags>

window_flags - #F Window flags

§format: Option<bool>

1 if format is for a window

§height: Option<usize>

window_height - Height of window

§id: Option<usize>

window_id - Unique window ID

§index: Option<usize>

window_index - #I Index of window

§last_flag: Option<bool>

window_last_flag - 1 if window is the last used

§layout: Option<Layout>

window_layout - Window layout description, ignoring zoomed window panes

§linked: Option<bool>

window_linked - 1 if window is linked across sessions

§linked_sessions: Option<usize>

window_linked_sessions - Number of sessions this window is linked to

§linked_sessions_list: Option<String>

window_linked_sessions_list - List of sessions this window is linked to

§marked_flag: Option<bool>

window_marked_flag - 1 if window contains the marked pane

§name: Option<String>

window_name - #W Name of window

§offset_x: Option<usize>

X offset into window if larger than client

§offset_y: Option<usize>

Y offset into window if larger than client

§panes: Option<usize>

window_panes - Number of panes in window

§silence_flag: Option<bool>

window_silence_flag - 1 if window has silence alert

§stack_index: Option<usize>

Index in session most recent stack

§start_flag: Option<bool>

1 if window has the lowest index

§visible_layout: Option<Layout>

Window layout description, respecting zoomed window panes

§width: Option<usize>

window_width - Width of window

§zoomed_flag: Option<bool>

window_zoomed_flag - 1 if window is zoomed

Implementations§

source§

impl Window

source

pub fn new() -> Self

Trait Implementations§

source§

impl Clone for Window

source§

fn clone(&self) -> Window

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Window

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Window

source§

fn default() -> Window

Returns the “default value” for a type. Read more
source§

impl FromStr for Window

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Error>

Parses a string s to return a value of this type. Read more
source§

impl PartialEq<Window> for Window

source§

fn eq(&self, other: &Window) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Window

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.