pub enum WindowSelector {
Index(u32),
Id(u32),
Title(String),
}Expand description
How the caller named a window.
A bare number is a z-order index, with 0 in front. A window id uses the
id: prefix so it is not confused with that index. Any other string is a title.
Variants§
Index(u32)
Index in the listed z-order. 0 is front.
Id(u32)
kCGWindowNumber.
Title(String)
Window title.
Trait Implementations§
Source§impl Clone for WindowSelector
impl Clone for WindowSelector
Source§impl Debug for WindowSelector
impl Debug for WindowSelector
impl Eq for WindowSelector
Source§impl PartialEq for WindowSelector
impl PartialEq for WindowSelector
impl StructuralPartialEq for WindowSelector
Auto Trait Implementations§
impl Freeze for WindowSelector
impl RefUnwindSafe for WindowSelector
impl Send for WindowSelector
impl Sync for WindowSelector
impl Unpin for WindowSelector
impl UnsafeUnpin for WindowSelector
impl UnwindSafe for WindowSelector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.