pub enum PopupPlacement {
Top,
Bottom,
}Expand description
Preferred vertical side of an anchored popup.
The selected side can differ from this preference when placement resolution is allowed to flip the popup to keep more of it in the viewport.
§Examples
use ailloli_ui_runtime::popup::PopupPlacement;
assert_eq!(PopupPlacement::default(), PopupPlacement::Bottom);Variants§
Top
Place the popup above its anchor before viewport correction.
Bottom
Place the popup below its anchor before viewport correction.
Trait Implementations§
Source§impl Clone for PopupPlacement
impl Clone for PopupPlacement
Source§fn clone(&self) -> PopupPlacement
fn clone(&self) -> PopupPlacement
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 PopupPlacement
impl Debug for PopupPlacement
Source§impl Default for PopupPlacement
impl Default for PopupPlacement
Source§fn default() -> PopupPlacement
fn default() -> PopupPlacement
Returns the “default value” for a type. Read more
Source§impl PartialEq for PopupPlacement
impl PartialEq for PopupPlacement
impl Copy for PopupPlacement
impl Eq for PopupPlacement
impl StructuralPartialEq for PopupPlacement
Auto Trait Implementations§
impl Freeze for PopupPlacement
impl RefUnwindSafe for PopupPlacement
impl Send for PopupPlacement
impl Sync for PopupPlacement
impl Unpin for PopupPlacement
impl UnwindSafe for PopupPlacement
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.