PopupPositionRequest
struct · ferroui-controls · v0.5.0
struct PopupPositionRequest
A request to position a popup relative to a target.
Members
target
fn target(self: &Self) -> Ref<Visual>
The placement target.
placement
fn placement(self: &Self) -> PlacementMode
The placement mode.
offset
fn offset(self: &Self) -> Point
The offset of the popup from the computed position.
anchor
fn anchor(self: &Self) -> PopupAnchor
The anchor point on the anchor rectangle.
gravity
fn gravity(self: &Self) -> PopupGravity
The direction in which the popup opens.
constraint_adjustment
fn constraint_adjustment(self: &Self) -> PopupPositionerConstraintAdjustment
How the position is adjusted when the popup is constrained.
anchor_rect
fn anchor_rect(self: &Self) -> Option<Rect>
The anchor rectangle within the target, if one is set.
placement_callback
fn placement_callback(self: &Self) -> Option<CustomPopupPlacementCallback>
The custom placement callback, if one is set.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherClone
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.