[][src]Struct leftwm::Manager

pub struct Manager {
    pub screens: Vec<Screen>,
    pub windows: Vec<Window>,
    pub workspaces: Vec<Workspace>,
    pub mode: Mode,
    pub theme_setting: ThemeSetting,
    pub tags: Vec<String>,
    pub focused_workspace_history: VecDeque<usize>,
    pub focused_window_history: VecDeque<WindowHandle>,
    pub focused_tag_history: VecDeque<String>,
    pub actions: VecDeque<DisplayAction>,
    pub reload_requested: bool,
}

Fields

screens: Vec<Screen>windows: Vec<Window>workspaces: Vec<Workspace>mode: Modetheme_setting: ThemeSettingtags: Vec<String>focused_workspace_history: VecDeque<usize>focused_window_history: VecDeque<WindowHandle>focused_tag_history: VecDeque<String>actions: VecDeque<DisplayAction>reload_requested: bool

Implementations

impl Manager[src]

pub fn focused_workspace(&self) -> Option<&Workspace>[src]

Return the currently focused workspace.

pub fn focused_workspace_mut(&mut self) -> Option<&mut Workspace>[src]

Return the currently focused workspace.

pub fn focused_tag(&self) -> Option<String>[src]

Return the currently focused tag.

pub fn focused_window(&self) -> Option<&Window>[src]

Return the currently focused window.

pub fn focused_window_mut(&mut self) -> Option<&mut Window>[src]

Return the currently focused window.

pub fn tags_display(&self) -> String[src]

pub fn workspaces_display(&self) -> String[src]

pub fn windows_display(&self) -> String[src]

pub fn soft_reload(&mut self)[src]

Soft reload the worker.

First write current state to a file and then exit current process.

pub fn hard_reload(&mut self)[src]

Reload the worker without saving state.

Trait Implementations

impl Clone for Manager[src]

impl Debug for Manager[src]

impl Default for Manager[src]

impl<'de> Deserialize<'de> for Manager[src]

impl<'_> From<&'_ Manager> for ManagerState[src]

impl Serialize for Manager[src]

Auto Trait Implementations

impl RefUnwindSafe for Manager

impl Send for Manager

impl Sync for Manager

impl Unpin for Manager

impl UnwindSafe for Manager

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,