Struct lazybar_core::panels::XWindow
source · pub struct XWindow { /* private fields */ }
Expand description
Displays the title (_NET_WM_NAME) of the focused window (_NET_ACTIVE_WINDOW)
Requires an EWMH-compliant window manager
Trait Implementations§
source§impl PanelConfig for XWindow
impl PanelConfig for XWindow
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>
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.)
-
format
: the format string- type: String
- default:
%name%
- formatting options:
%name%
-
attrs
: SeeAttrs::parse
for parsing options
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(
self: Box<Self>,
cr: Rc<Context>,
global_attrs: Attrs,
height: i32,
) -> Result<(PanelStream, Option<ChannelEndpoint<Event, EventResponse>>)>
fn run( self: Box<Self>, cr: Rc<Context>, global_attrs: Attrs, height: i32, ) -> Result<(PanelStream, Option<ChannelEndpoint<Event, EventResponse>>)>
Performs any necessary setup, then returns a
PanelStream
representing the provided PanelConfig
. Read moreAuto Trait Implementations§
impl Freeze for XWindow
impl RefUnwindSafe for XWindow
impl Send for XWindow
impl Sync for XWindow
impl Unpin for XWindow
impl UnwindSafe for XWindow
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