Enum PopupPlacement
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.
Implementations§
impl PopupPlacement
This impl block contains no items.
Private side-flipping helper used by placement resolution.
Trait Implementations§
§impl Clone for PopupPlacement
impl Clone for PopupPlacement
§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 more§impl Debug for PopupPlacement
impl Debug for PopupPlacement
§impl Default for PopupPlacement
impl Default for PopupPlacement
§fn default() -> PopupPlacement
fn default() -> PopupPlacement
Returns the “default value” for a type. Read more
§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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.