pub enum OverlayAlign {
Start,
Center,
End,
}Expand description
The overlay-portal authoring surface: the slot a widget that floats its own surface holds, what that surface is anchored to, and the placement geometry every anchored pattern needs.
Promoted here rather than left to each design system because all three of
them had derived the same geometry independently: a design system’s popover,
menu, tooltip and context menu place a surface through place and host it
through OverlaySlot, reaching both through frust::authoring alone.
The overlay-portal authoring surface: the slot a widget that floats its own
surface holds, what that surface is anchored to, and the placement geometry
every anchored pattern needs.
Promoted here rather than left to each design system because all three of
them had derived the same geometry independently: a design system’s popover,
menu, tooltip and context menu place a surface through place and host it
through OverlaySlot, reaching both through frust::authoring alone.
The overlay-portal authoring surface: the slot a widget that floats its own
surface holds, what that surface is anchored to, and the placement geometry
every anchored pattern needs.
Promoted here rather than left to each design system because all three of
them had derived the same geometry independently: a design system’s popover,
menu, tooltip and context menu place a surface through place and host it
through OverlaySlot, reaching both through frust::authoring alone.
How a floated surface lines up with its anchor on the cross axis.
Variants§
Start
Leading edges flush (left edges for a Top/Bottom side, top edges for
a Left/Right one).
Center
Centres flush — the default.
End
Trailing edges flush.
Trait Implementations§
Source§impl Clone for OverlayAlign
impl Clone for OverlayAlign
impl Copy for OverlayAlign
Source§impl Debug for OverlayAlign
impl Debug for OverlayAlign
Source§impl Default for OverlayAlign
impl Default for OverlayAlign
impl Eq for OverlayAlign
Source§impl PartialEq for OverlayAlign
impl PartialEq for OverlayAlign
impl StructuralPartialEq for OverlayAlign
Auto Trait Implementations§
impl Freeze for OverlayAlign
impl RefUnwindSafe for OverlayAlign
impl Send for OverlayAlign
impl Sync for OverlayAlign
impl Unpin for OverlayAlign
impl UnsafeUnpin for OverlayAlign
impl UnwindSafe for OverlayAlign
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
impl<T> Brush for 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.