pub enum OverlayPosition {
Center,
At(Position),
Anchored {
anchor: Rect,
placement: Placement,
},
}Expand description
Position strategy for an overlay.
Variants§
Center
Centered on the screen.
At(Position)
At a fixed position.
Anchored
Anchored relative to a rectangle.
Trait Implementations§
Source§impl Clone for OverlayPosition
impl Clone for OverlayPosition
Source§fn clone(&self) -> OverlayPosition
fn clone(&self) -> OverlayPosition
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 OverlayPosition
impl Debug for OverlayPosition
Source§impl PartialEq for OverlayPosition
impl PartialEq for OverlayPosition
impl StructuralPartialEq for OverlayPosition
Auto Trait Implementations§
impl Freeze for OverlayPosition
impl RefUnwindSafe for OverlayPosition
impl Send for OverlayPosition
impl Sync for OverlayPosition
impl Unpin for OverlayPosition
impl UnwindSafe for OverlayPosition
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