pub enum WindowAnchor {
TopLeft,
TopRight,
BottomLeft,
BottomRight,
Center,
}Expand description
Monitor workarea placement and sticky docking anchor for a platform window.
Variants§
Implementations§
Source§impl WindowAnchor
impl WindowAnchor
Sourcepub const fn is_sticky_dock(self) -> bool
pub const fn is_sticky_dock(self) -> bool
Returns true if this anchor pins (“sticks”) the window to a monitor workarea corner.
Trait Implementations§
Source§impl Clone for WindowAnchor
impl Clone for WindowAnchor
impl Copy for WindowAnchor
Source§impl Debug for WindowAnchor
impl Debug for WindowAnchor
impl Eq for WindowAnchor
Source§impl Hash for WindowAnchor
impl Hash for WindowAnchor
Source§impl PartialEq for WindowAnchor
impl PartialEq for WindowAnchor
impl StructuralPartialEq for WindowAnchor
Auto Trait Implementations§
impl Forget for WindowAnchor
impl Freeze for WindowAnchor
impl Move for WindowAnchor
impl RefUnwindSafe for WindowAnchor
impl Send for WindowAnchor
impl Sync for WindowAnchor
impl Unpin for WindowAnchor
impl UnsafeUnpin for WindowAnchor
impl UnwindSafe for WindowAnchor
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.