pub struct ActiveWindowName { /* private fields */ }
Expand description
A text widget that is set via updating the root window name a la dwm
Implementations§
Trait Implementations§
Source§impl Clone for ActiveWindowName
impl Clone for ActiveWindowName
Source§fn clone(&self) -> ActiveWindowName
fn clone(&self) -> ActiveWindowName
Returns a duplicate 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 ActiveWindowName
impl Debug for ActiveWindowName
Source§impl<X> Hook<X> for ActiveWindowNamewhere
X: XConn,
impl<X> Hook<X> for ActiveWindowNamewhere
X: XConn,
Source§fn remove_client(&mut self, wm: &mut WindowManager<X>, _: Xid) -> Result<()>
fn remove_client(&mut self, wm: &mut WindowManager<X>, _: Xid) -> Result<()>
Trigger Point Read more
Source§fn focus_change(&mut self, wm: &mut WindowManager<X>, id: Xid) -> Result<()>
fn focus_change(&mut self, wm: &mut WindowManager<X>, id: Xid) -> Result<()>
Trigger Point Read more
Source§fn client_name_updated(
&mut self,
wm: &mut WindowManager<X>,
id: Xid,
name: &str,
root: bool,
) -> Result<()>
fn client_name_updated( &mut self, wm: &mut WindowManager<X>, id: Xid, name: &str, root: bool, ) -> Result<()>
Trigger Point Read more
Source§fn screen_change(&mut self, _: &mut WindowManager<X>, _: usize) -> Result<()>
fn screen_change(&mut self, _: &mut WindowManager<X>, _: usize) -> Result<()>
Trigger Point Read more
Source§fn new_client(&mut self, wm: &mut WindowManager<X>, id: Xid) -> Result<()>
fn new_client(&mut self, wm: &mut WindowManager<X>, id: Xid) -> Result<()>
Trigger Point Read more
Source§fn client_added_to_workspace(
&mut self,
wm: &mut WindowManager<X>,
id: Xid,
wix: usize,
) -> Result<()>
fn client_added_to_workspace( &mut self, wm: &mut WindowManager<X>, id: Xid, wix: usize, ) -> Result<()>
Trigger Point Read more
Source§fn layout_applied(
&mut self,
wm: &mut WindowManager<X>,
workspace_index: usize,
screen_index: usize,
) -> Result<()>
fn layout_applied( &mut self, wm: &mut WindowManager<X>, workspace_index: usize, screen_index: usize, ) -> Result<()>
Trigger Point Read more
Source§fn layout_change(
&mut self,
wm: &mut WindowManager<X>,
workspace_index: usize,
screen_index: usize,
) -> Result<()>
fn layout_change( &mut self, wm: &mut WindowManager<X>, workspace_index: usize, screen_index: usize, ) -> Result<()>
Trigger Point Read more
Source§fn workspace_change(
&mut self,
wm: &mut WindowManager<X>,
previous_workspace: usize,
new_workspace: usize,
) -> Result<()>
fn workspace_change( &mut self, wm: &mut WindowManager<X>, previous_workspace: usize, new_workspace: usize, ) -> Result<()>
Trigger Point Read more
Source§fn workspaces_updated(
&mut self,
wm: &mut WindowManager<X>,
names: &[&str],
active: usize,
) -> Result<()>
fn workspaces_updated( &mut self, wm: &mut WindowManager<X>, names: &[&str], active: usize, ) -> Result<()>
Trigger Point Read more
Source§fn screens_updated(
&mut self,
wm: &mut WindowManager<X>,
dimensions: &[Region],
) -> Result<()>
fn screens_updated( &mut self, wm: &mut WindowManager<X>, dimensions: &[Region], ) -> Result<()>
Trigger Point Read more
Source§fn randr_notify(&mut self, wm: &mut WindowManager<X>) -> Result<()>
fn randr_notify(&mut self, wm: &mut WindowManager<X>) -> Result<()>
Trigger Point Read more
Source§fn event_handled(&mut self, wm: &mut WindowManager<X>) -> Result<()>
fn event_handled(&mut self, wm: &mut WindowManager<X>) -> Result<()>
Trigger Point Read more
Source§impl PartialEq for ActiveWindowName
impl PartialEq for ActiveWindowName
Source§impl Widget for ActiveWindowName
impl Widget for ActiveWindowName
Source§fn draw(
&mut self,
ctx: &mut dyn DrawContext,
screen: usize,
screen_has_focus: bool,
w: f64,
h: f64,
) -> Result<()>
fn draw( &mut self, ctx: &mut dyn DrawContext, screen: usize, screen_has_focus: bool, w: f64, h: f64, ) -> Result<()>
Render the current state of the widget to the status bar window.
Source§fn current_extent(
&mut self,
ctx: &mut dyn DrawContext,
h: f64,
) -> Result<(f64, f64)>
fn current_extent( &mut self, ctx: &mut dyn DrawContext, h: f64, ) -> Result<(f64, f64)>
Current required width and height for this widget due to its content
Source§fn require_draw(&self) -> bool
fn require_draw(&self) -> bool
Does this widget currently require re-rendering? (should be updated when ‘draw’ is called)
impl StructuralPartialEq for ActiveWindowName
Auto Trait Implementations§
impl Freeze for ActiveWindowName
impl RefUnwindSafe for ActiveWindowName
impl Send for ActiveWindowName
impl Sync for ActiveWindowName
impl Unpin for ActiveWindowName
impl UnwindSafe for ActiveWindowName
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