pub struct WindowMatcher(pub u64);Expand description
A window matcher.
Tuple Fields§
§0: u64Implementations§
Source§impl WindowMatcher
impl WindowMatcher
Sourcepub fn bind<F: FnMut(MatchedWindow) + 'static>(self, cb: F)
pub fn bind<F: FnMut(MatchedWindow) + 'static>(self, cb: F)
Sets a function to execute when the criterion matches a window.
Replaces any already bound callback.
Sourcepub fn set_auto_focus(self, auto_focus: bool)
pub fn set_auto_focus(self, auto_focus: bool)
Sets whether newly mapped windows that match this matcher get the keyboard focus.
If a window matches any matcher for which this is false, the window will not be automatically focused.
Sourcepub fn set_initial_tile_state(self, tile_state: TileState)
pub fn set_initial_tile_state(self, tile_state: TileState)
Sets whether newly mapped windows that match this matcher are mapped tiling or floating.
If multiple such window matchers match a window, the used tile state is unspecified.
Trait Implementations§
Source§impl Clone for WindowMatcher
impl Clone for WindowMatcher
Source§fn clone(&self) -> WindowMatcher
fn clone(&self) -> WindowMatcher
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 WindowMatcher
impl Debug for WindowMatcher
Source§impl<'de> Deserialize<'de> for WindowMatcher
impl<'de> Deserialize<'de> for WindowMatcher
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for WindowMatcher
impl Hash for WindowMatcher
Source§impl PartialEq for WindowMatcher
impl PartialEq for WindowMatcher
Source§impl Serialize for WindowMatcher
impl Serialize for WindowMatcher
impl Copy for WindowMatcher
impl Eq for WindowMatcher
impl StructuralPartialEq for WindowMatcher
Auto Trait Implementations§
impl Freeze for WindowMatcher
impl RefUnwindSafe for WindowMatcher
impl Send for WindowMatcher
impl Sync for WindowMatcher
impl Unpin for WindowMatcher
impl UnwindSafe for WindowMatcher
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