#[repr(i32)]pub enum PlacementMode {
Show 16 variants
Pointer = 0,
Bottom = 1,
Right = 2,
Left = 3,
Top = 4,
Center = 5,
AnchorAndGravity = 6,
TopEdgeAlignedLeft = 7,
TopEdgeAlignedRight = 8,
BottomEdgeAlignedLeft = 9,
BottomEdgeAlignedRight = 10,
LeftEdgeAlignedTop = 11,
LeftEdgeAlignedBottom = 12,
RightEdgeAlignedTop = 13,
RightEdgeAlignedBottom = 14,
Custom = 15,
}Expand description
Defines the placement for a popup control.
Variants§
Pointer = 0
The popup is placed at the pointer position.
Bottom = 1
Preferred location is below the target element.
Right = 2
Preferred location is to the right of the target element.
Left = 3
Preferred location is to the left of the target element.
Top = 4
Preferred location is above the target element.
Center = 5
Preferred location is centered over the target element.
AnchorAndGravity = 6
The popup is placed according to the popup’s placement anchor and placement gravity rules.
TopEdgeAlignedLeft = 7
Preferred location is above the target element, with the left edge of the popup aligned with the left edge of the target element.
TopEdgeAlignedRight = 8
Preferred location is above the target element, with the right edge of popup aligned with right edge of the target element.
BottomEdgeAlignedLeft = 9
Preferred location is below the target element, with the left edge of popup aligned with left edge of the target element.
BottomEdgeAlignedRight = 10
Preferred location is below the target element, with the right edge of popup aligned with right edge of the target element.
LeftEdgeAlignedTop = 11
Preferred location is to the left of the target element, with the top edge of popup aligned with top edge of the target element.
LeftEdgeAlignedBottom = 12
Preferred location is to the left of the target element, with the bottom edge of popup aligned with bottom edge of the target element.
RightEdgeAlignedTop = 13
Preferred location is to the right of the target element, with the top edge of popup aligned with top edge of the target element.
RightEdgeAlignedBottom = 14
Preferred location is to the right of the target element, with the bottom edge of popup aligned with bottom edge of the target element.
Custom = 15
A position and repositioning behavior that is defined by the popup’s custom popup placement callback.
Trait Implementations§
Source§impl Clone for PlacementMode
impl Clone for PlacementMode
impl Copy for PlacementMode
Source§impl Debug for PlacementMode
impl Debug for PlacementMode
Source§impl Default for PlacementMode
impl Default for PlacementMode
impl Eq for PlacementMode
Source§impl Hash for PlacementMode
impl Hash for PlacementMode
Source§impl MarkupTyped for PlacementMode
impl MarkupTyped for PlacementMode
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
Source§impl PartialEq for PlacementMode
impl PartialEq for PlacementMode
impl StructuralPartialEq for PlacementMode
Auto Trait Implementations§
impl Freeze for PlacementMode
impl RefUnwindSafe for PlacementMode
impl Send for PlacementMode
impl Sync for PlacementMode
impl Unpin for PlacementMode
impl UnsafeUnpin for PlacementMode
impl UnwindSafe for PlacementMode
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more