pub enum ResizeAnchor {
TopLeft,
Top,
TopRight,
Left,
Center,
Right,
BottomLeft,
Bottom,
BottomRight,
}Expand description
The window corner or edge that stays fixed on screen when the window is
resized via PlatformWindow::resize_anchored / crate::Window::resize_anchored.
Named from the viewer’s perspective: TopLeft pins the visually top-left
corner, so a tray popup below the menu bar grows down and to the right.
Variants§
TopLeft
Keep the visually top-left corner fixed; the window grows down-right.
Top
Keep the top edge’s midpoint fixed; the window grows downward.
TopRight
Keep the visually top-right corner fixed; the window grows down-left.
Left
Keep the left edge’s midpoint fixed; the window grows rightward.
Center
Keep the center fixed; the window grows outward.
Right
Keep the right edge’s midpoint fixed; the window grows leftward.
BottomLeft
Keep the visually bottom-left corner fixed; the window grows up-right.
Bottom
Keep the bottom edge’s midpoint fixed; the window grows upward.
BottomRight
Keep the visually bottom-right corner fixed; the window grows up-left.
Trait Implementations§
Source§impl Clone for ResizeAnchor
impl Clone for ResizeAnchor
impl Copy for ResizeAnchor
Source§impl Debug for ResizeAnchor
impl Debug for ResizeAnchor
impl Eq for ResizeAnchor
Source§impl Hash for ResizeAnchor
impl Hash for ResizeAnchor
Source§impl PartialEq for ResizeAnchor
impl PartialEq for ResizeAnchor
impl StructuralPartialEq for ResizeAnchor
Auto Trait Implementations§
impl Freeze for ResizeAnchor
impl RefUnwindSafe for ResizeAnchor
impl Send for ResizeAnchor
impl Sync for ResizeAnchor
impl Unpin for ResizeAnchor
impl UnsafeUnpin for ResizeAnchor
impl UnwindSafe for ResizeAnchor
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
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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more