pub enum PopupAlignment {
Start,
Center,
End,
}Expand description
Cross-axis alignment of a popup relative to its anchor.
Start and End are logical leading and trailing edges. The current
left-to-right geometry resolver maps them to left and right; a future
direction-aware host can preserve this public contract while changing that
mapping at the provider boundary.
§Examples
use ailloli_ui_runtime::popup::PopupAlignment;
assert_eq!(PopupAlignment::default(), PopupAlignment::Center);
assert_ne!(PopupAlignment::Start, PopupAlignment::End);Variants§
Start
Align logical leading edges (currently left edges).
Center
Center the popup on the anchor’s cross axis.
End
Align logical trailing edges (currently right edges).
Trait Implementations§
Source§impl Clone for PopupAlignment
impl Clone for PopupAlignment
Source§fn clone(&self) -> PopupAlignment
fn clone(&self) -> PopupAlignment
Returns a copy 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 PopupAlignment
impl Debug for PopupAlignment
Source§impl Default for PopupAlignment
impl Default for PopupAlignment
Source§fn default() -> PopupAlignment
fn default() -> PopupAlignment
Returns the “default value” for a type. Read more
Source§impl PartialEq for PopupAlignment
impl PartialEq for PopupAlignment
impl Copy for PopupAlignment
impl Eq for PopupAlignment
impl StructuralPartialEq for PopupAlignment
Auto Trait Implementations§
impl Freeze for PopupAlignment
impl RefUnwindSafe for PopupAlignment
impl Send for PopupAlignment
impl Sync for PopupAlignment
impl Unpin for PopupAlignment
impl UnwindSafe for PopupAlignment
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.