pub struct XWorkspaces { /* private fields */ }
Expand description
Display information about workspaces
Requires an EWMH-compliant window manager
Trait Implementations§
Source§impl Clone for XWorkspaces
impl Clone for XWorkspaces
Source§fn clone(&self) -> XWorkspaces
fn clone(&self) -> XWorkspaces
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for XWorkspaces
impl Debug for XWorkspaces
Source§impl PanelConfig for XWorkspaces
impl PanelConfig for XWorkspaces
Source§fn parse(
name: &'static str,
table: &mut HashMap<String, Value>,
_global: &Config,
) -> Result<Self>
fn parse( name: &'static str, table: &mut HashMap<String, Value>, _global: &Config, ) -> Result<Self>
Parses an instance of the panel from the global Config
Configuration options:
screen
: the name of the X screen to monitor- type: String
- default: None (This will tell X to choose the default screen, which is probably what you want.)
attrs_active
: A string specifying the attrs for the active workspace. SeeAttrs::parse
for details.attrs_nonempty
: A string specifying the attrs for the nonempty workspaces. SeeAttrs::parse
for details.attrs_inactive
: A string specifying the attrs for the inactive workspaces. SeeAttrs::parse
for details.highlight_active
: The highlight to be used for the active workspace. SeeHighlight::parse
for more details.highlight_nonempty
: The highlight to be used for the nonempty workspaces. SeeHighlight::parse
for more details.highlight_inactive
: The highlight to be used for the inactive workspaces. SeeHighlight::parse
for more details.- See
PanelCommon::parse_common
. The supported events are each the name of a current workspace.
Source§fn props(&self) -> (&'static str, bool)
fn props(&self) -> (&'static str, bool)
Returns the name of the panel. If the panel supports events, each
instance must return a unique name.
Source§fn run<'async_trait>(
self: Box<Self>,
cr: Rc<Context>,
global_attrs: Attrs,
height: i32,
) -> Pin<Box<dyn Future<Output = PanelRunResult> + 'async_trait>>where
Self: 'async_trait,
fn run<'async_trait>(
self: Box<Self>,
cr: Rc<Context>,
global_attrs: Attrs,
height: i32,
) -> Pin<Box<dyn Future<Output = PanelRunResult> + 'async_trait>>where
Self: 'async_trait,
Performs any necessary setup, then returns a
PanelStream
representing the provided PanelConfig
. Read moreAuto Trait Implementations§
impl Freeze for XWorkspaces
impl RefUnwindSafe for XWorkspaces
impl !Send for XWorkspaces
impl !Sync for XWorkspaces
impl Unpin for XWorkspaces
impl UnwindSafe for XWorkspaces
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