FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CustomPopupPlacement

    struct · ferroui-controls · v0.5.0

    struct CustomPopupPlacement
    

    Defines custom placement parameters for a CustomPopupPlacementCallback callback.

    View source

    Members

    anchor_rectangle

    anchor_rectangle: ferroui_base::Rect
    

    See PopupPositionerParameters::anchor_rectangle.

    Source

    constraint_adjustment

    constraint_adjustment: super::PopupPositionerConstraintAdjustment
    

    See PopupPositionerParameters::constraint_adjustment.

    Source

    offset

    offset: ferroui_base::Point
    

    See PopupPositionerParameters::offset.

    Source

    popup_size

    fn popup_size(self: &Self) -> Size
    

    The Size of the popup control.

    Source

    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.

    Source

    target

    fn target(self: &Self) -> Ref<Visual>
    

    Placement target of the popup.

    Source

    anchor

    fn anchor(self: &Self) -> PopupAnchor
    

    See PopupPositionerParameters::anchor.

    Source

    set_anchor

    fn set_anchor(self: &mut Self, value: PopupAnchor)
    

    See PopupPositionerParameters::set_anchor.

    Panics

    Panics when opposite edges are specified.

    Source

    gravity

    fn gravity(self: &Self) -> PopupGravity
    

    See PopupPositionerParameters::gravity.

    Source

    set_gravity

    fn set_gravity(self: &mut Self, value: PopupGravity)
    

    See PopupPositionerParameters::set_gravity.

    Panics

    Panics when opposite edges are specified.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • MarkupTyped

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.