CustomPopupPlacement
struct · ferroui-controls · v0.5.0
struct CustomPopupPlacement
Defines custom placement parameters for a
CustomPopupPlacementCallback
callback.
Members
anchor_rectangleconstraint_adjustmentoffsetpopup_sizedeflatetargetanchorset_anchorgravityset_gravity
anchor_rectangle
anchor_rectangle: ferroui_base::Rect
See PopupPositionerParameters::anchor_rectangle.
constraint_adjustment
constraint_adjustment: super::PopupPositionerConstraintAdjustment
See PopupPositionerParameters::constraint_adjustment.
offset
offset: ferroui_base::Point
See PopupPositionerParameters::offset.
popup_size
fn popup_size(self: &Self) -> Size
The Size of the popup control.
deflate
fn deflate(self: &Self) -> Thickness
Gets how far to deflate popup_size when
positioning the popup.
This is normally set to the margin of the popup's child. This allows out-of-bounds effects like drop shadows to be drawn without affecting the final position of the child.
target
fn target(self: &Self) -> Ref<Visual>
Placement target of the popup.
anchor
fn anchor(self: &Self) -> PopupAnchor
See PopupPositionerParameters::anchor.
set_anchor
fn set_anchor(self: &mut Self, value: PopupAnchor)
See PopupPositionerParameters::set_anchor.
Panics
Panics when opposite edges are specified.
gravity
fn gravity(self: &Self) -> PopupGravity
See PopupPositionerParameters::gravity.
set_gravity
fn set_gravity(self: &mut Self, value: PopupGravity)
See PopupPositionerParameters::set_gravity.
Panics
Panics when opposite edges are specified.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherCloneDebugStructuralPartialEqPartialEqMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.