FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PopupPositionRequest

    struct · ferroui-controls · v0.5.0

    struct PopupPositionRequest
    

    A request to position a popup relative to a target.

    View source

    Members

    target

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

    The placement target.

    Source

    placement

    fn placement(self: &Self) -> PlacementMode
    

    The placement mode.

    Source

    offset

    fn offset(self: &Self) -> Point
    

    The offset of the popup from the computed position.

    Source

    anchor

    fn anchor(self: &Self) -> PopupAnchor
    

    The anchor point on the anchor rectangle.

    Source

    gravity

    fn gravity(self: &Self) -> PopupGravity
    

    The direction in which the popup opens.

    Source

    constraint_adjustment

    fn constraint_adjustment(self: &Self) -> PopupPositionerConstraintAdjustment
    

    How the position is adjusted when the popup is constrained.

    Source

    anchor_rect

    fn anchor_rect(self: &Self) -> Option<Rect>
    

    The anchor rectangle within the target, if one is set.

    Source

    placement_callback

    fn placement_callback(self: &Self) -> Option<CustomPopupPlacementCallback>
    

    The custom placement callback, if one is set.

    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
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone

    Availability

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