FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PopupFlyoutBase

    struct · ferroui-controls · v0.5.0

    struct PopupFlyoutBase
    

    The base class of flyouts that are shown in a Popup.

    This class is abstract: only its subclasses can be created.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<PopupFlyoutBase>
    

    Returns a strong reference to this object.

    Source

    hide_core

    fn hide_core(self: &Self, can_cancel: bool) -> bool
    

    Hides the flyout; can_cancel tells whether the Closing event is raised and may cancel. Returns true if the action was handled.

    Source

    show_at_core

    fn show_at_core(self: &Self, placement_target: &Control, show_at_pointer: bool) -> bool
    

    Shows the flyout at the given control, at the pointer location when show_at_pointer. Returns true if the action was handled.

    Source

    show_at_rect_core

    fn show_at_rect_core(self: &Self, placement_target: &Control, placement_rect: Rect) -> bool
    

    Shows the flyout below an explicit rectangle in the target's coordinates. The popup positioner applies RTL and screen constraints. This request does not modify the flyout's placement properties.

    Source

    on_opening

    fn on_opening(self: &Self, args: &CancelEventArgs)
    

    Raises the Opening event.

    Source

    on_closing

    fn on_closing(self: &Self, args: &CancelEventArgs)
    

    Raises the Closing event.

    Source

    create_presenter

    fn create_presenter(self: &Self) -> Ref<Control>
    

    Used to create the content the flyout displays.

    Source

    placement_property

    fn placement_property() -> &'static StyledProperty<PlacementMode>
    

    Defines the Placement property.

    Source

    horizontal_offset_property

    fn horizontal_offset_property() -> &'static StyledProperty<f64>
    

    Defines the HorizontalOffset property.

    Source

    vertical_offset_property

    fn vertical_offset_property() -> &'static StyledProperty<f64>
    

    Defines the VerticalOffset property.

    Source

    placement_anchor_property

    fn placement_anchor_property() -> &'static StyledProperty<PopupAnchor>
    

    Defines the PlacementAnchor property.

    Source

    placement_gravity_property

    fn placement_gravity_property() -> &'static StyledProperty<PopupGravity>
    

    Defines the PlacementGravity property.

    Source

    custom_popup_placement_callback_property

    fn custom_popup_placement_callback_property() -> &'static StyledProperty<Option<CustomPopupPlacementCallbackValue>>
    

    Defines the CustomPopupPlacementCallback property.

    Source

    show_mode_property

    fn show_mode_property() -> &'static StyledProperty<FlyoutShowMode>
    

    Defines the ShowMode property.

    Source

    overlay_dismiss_event_pass_through_property

    fn overlay_dismiss_event_pass_through_property() -> &'static StyledProperty<bool>
    

    Defines the OverlayDismissEventPassThrough property.

    Source

    overlay_input_pass_through_element_property

    fn overlay_input_pass_through_element_property() -> &'static StyledProperty<Option<ferroui_base::ElementRef<InputElement>>>
    

    Defines the OverlayInputPassThroughElement property.

    Source

    placement_constraint_adjustment_property

    fn placement_constraint_adjustment_property() -> &'static StyledProperty<PopupPositionerConstraintAdjustment>
    

    Defines the PlacementConstraintAdjustment property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    popup

    fn popup(self: &Self) -> Ref<Popup>
    

    The popup the flyout is shown in, created on first use. For derived classes.

    Source

    placement

    fn placement(self: &Self) -> PlacementMode
    

    The desired placement of the flyout in relation to its target.

    Source

    set_placement

    fn set_placement(self: &Self, value: PlacementMode)
    

    Source

    placement_gravity

    fn placement_gravity(self: &Self) -> PopupGravity
    

    Defines in what direction the flyout should open when the placement is PlacementMode::AnchorAndGravity.

    Source

    set_placement_gravity

    fn set_placement_gravity(self: &Self, value: PopupGravity)
    

    Source

    placement_anchor

    fn placement_anchor(self: &Self) -> PopupAnchor
    

    The anchor point on the placement rect when the placement is PlacementMode::AnchorAndGravity.

    Source

    set_placement_anchor

    fn set_placement_anchor(self: &Self, value: PopupAnchor)
    

    Source

    horizontal_offset

    fn horizontal_offset(self: &Self) -> f64
    

    The horizontal offset of the flyout in relation to its target.

    Source

    set_horizontal_offset

    fn set_horizontal_offset(self: &Self, value: f64)
    

    Source

    vertical_offset

    fn vertical_offset(self: &Self) -> f64
    

    The vertical offset of the flyout in relation to its target.

    Source

    set_vertical_offset

    fn set_vertical_offset(self: &Self, value: f64)
    

    Source

    custom_popup_placement_callback

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

    The callback that positions the flyout when the placement is PlacementMode::Custom.

    Source

    set_custom_popup_placement_callback

    fn set_custom_popup_placement_callback(self: &Self, value: Option<CustomPopupPlacementCallback>)
    

    Source

    show_mode

    fn show_mode(self: &Self) -> FlyoutShowMode
    

    The desired show mode.

    Source

    set_show_mode

    fn set_show_mode(self: &Self, value: FlyoutShowMode)
    

    Source

    overlay_dismiss_event_pass_through

    fn overlay_dismiss_event_pass_through(self: &Self) -> bool
    

    Whether the event that closes the flyout is passed through to the parent window.

    Clicks outside the popup cause the popup to close. When this is false, these clicks will be handled by the popup and not be registered by the parent window. When true, the events will be passed through to the parent window.

    Source

    set_overlay_dismiss_event_pass_through

    fn set_overlay_dismiss_event_pass_through(self: &Self, value: bool)
    

    Source

    overlay_input_pass_through_element

    fn overlay_input_pass_through_element(self: &Self) -> Option<Ref<InputElement>>
    

    An element that should receive pointer input events even when underneath the flyout's overlay.

    Source

    set_overlay_input_pass_through_element

    fn set_overlay_input_pass_through_element(self: &Self, value: impl Into<Nullable<InputElement>>)
    

    Source

    placement_constraint_adjustment

    fn placement_constraint_adjustment(self: &Self) -> PopupPositionerConstraintAdjustment
    

    Describes how the flyout position will be adjusted if the unadjusted position would result in the flyout being partly constrained.

    Source

    set_placement_constraint_adjustment

    fn set_placement_constraint_adjustment(self: &Self, value: PopupPositionerConstraintAdjustment)
    

    Source

    to_popup_host_provider

    fn to_popup_host_provider(self: &Self) -> Rc<dyn IPopupHostProvider>
    

    The flyout as a popup host provider (the diagnostics contract it implements in the reference).

    Source

    closing

    fn closing(self: &Self, handler: impl Fn(&CancelEventArgs) -> () + 'static) -> Subscription
    

    Raised before the flyout closes; the close can be cancelled. Dropping the returned guard removes the handler; Subscription::detach keeps it for the life of the flyout.

    Source

    opening

    fn opening(self: &Self, handler: impl Fn(&CancelEventArgs) -> () + 'static) -> Subscription
    

    Raised before the flyout opens; the opening can be cancelled. Dropping the returned guard removes the handler; Subscription::detach keeps it for the life of the flyout.

    Source

    show_at_with

    fn show_at_with(self: &Self, placement_target: &Control, show_at_pointer: bool)
    

    Shows the flyout for the given control at the current pointer location when show_at_pointer, as in a context flyout.

    Source

    Trait implementations

    Availability

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