PlacementMode
enum · ferroui-controls · v0.5.0
enum PlacementMode
Defines the placement for a popup control.
Members
PointerBottomRightLeftTopCenterAnchorAndGravityTopEdgeAlignedLeftTopEdgeAlignedRightBottomEdgeAlignedLeftBottomEdgeAlignedRightLeftEdgeAlignedTopLeftEdgeAlignedBottomRightEdgeAlignedTopRightEdgeAlignedBottomCustom
Pointer
Pointer = 0
The popup is placed at the pointer position.
Bottom
Bottom = 1
Preferred location is below the target element.
Right
Right = 2
Preferred location is to the right of the target element.
Left
Left = 3
Preferred location is to the left of the target element.
Top
Top = 4
Preferred location is above the target element.
Center
Center = 5
Preferred location is centered over the target element.
AnchorAndGravity
AnchorAndGravity = 6
The popup is placed according to the popup's placement anchor and placement gravity rules.
TopEdgeAlignedLeft
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
TopEdgeAlignedRight = 8
Preferred location is above the target element, with the right edge of popup aligned with right edge of the target element.
BottomEdgeAlignedLeft
BottomEdgeAlignedLeft = 9
Preferred location is below the target element, with the left edge of popup aligned with left edge of the target element.
BottomEdgeAlignedRight
BottomEdgeAlignedRight = 10
Preferred location is below the target element, with the right edge of popup aligned with right edge of the target element.
LeftEdgeAlignedTop
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
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
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
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
Custom = 15
A position and repositioning behavior that is defined by the popup's custom popup placement callback.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedResourceKeyObjectPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherMarkupTypedValueTypeRegistrationCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHash
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.