FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IPopupHost

    trait · ferroui-controls · v0.5.0

    trait IPopupHost: IDisposable + IFocusScope
    

    Represents the top-level control opened by a Popup.

    A popup host can be either be a popup window created by the operating system (PopupRoot) or an OverlayPopupHost which is created on a popup overlay layer.

    Both hosts convert to Rc<dyn IPopupHost> with to_popup_host() (internal upstream).

    View source

    Members

    width

    fn width(self: &Self) -> f64
    

    Gets the fixed width of the popup.

    Source

    set_width

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

    Sets the fixed width of the popup.

    Source

    min_width

    fn min_width(self: &Self) -> f64
    

    Gets the minimum width of the popup.

    Source

    set_min_width

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

    Sets the minimum width of the popup.

    Source

    max_width

    fn max_width(self: &Self) -> f64
    

    Gets the maximum width of the popup.

    Source

    set_max_width

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

    Sets the maximum width of the popup.

    Source

    height

    fn height(self: &Self) -> f64
    

    Gets the fixed height of the popup.

    Source

    set_height

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

    Sets the fixed height of the popup.

    Source

    min_height

    fn min_height(self: &Self) -> f64
    

    Gets the minimum height of the popup.

    Source

    set_min_height

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

    Sets the minimum height of the popup.

    Source

    max_height

    fn max_height(self: &Self) -> f64
    

    Gets the maximum height of the popup.

    Source

    set_max_height

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

    Sets the maximum height of the popup.

    Source

    presenter

    fn presenter(self: &Self) -> Option<Ref<ContentPresenter>>
    

    Gets the presenter from the control's template.

    Source

    topmost

    fn topmost(self: &Self) -> bool
    

    Gets whether the popup appears on top of all other windows.

    Source

    set_topmost

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

    Sets whether the popup appears on top of all other windows.

    Source

    is_hit_test_visible

    fn is_hit_test_visible(self: &Self) -> bool
    

    Gets whether the popup takes part in pointer hit testing.

    Source

    set_is_hit_test_visible

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

    Sets whether the popup takes part in pointer hit testing.

    Source

    transform

    fn transform(self: &Self) -> Option<Ref<Transform>>
    

    Gets a transform that will be applied to the popup.

    Source

    set_transform

    fn set_transform(self: &Self, value: Option<Ref<Transform>>)
    

    Sets a transform that will be applied to the popup.

    Source

    hosted_visual_tree_root

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

    Gets the root of the visual tree in the case where the popup is presented using a separate visual tree.

    Source

    template_applied

    fn template_applied(self: &Self, handler: Rc<dyn Fn(&TemplateAppliedEventArgs) -> ()>) -> Rc<dyn IDisposable>
    

    Raised when the control's template is applied. Disposing the returned handle unsubscribes.

    Source

    configure_position

    fn configure_position(self: &Self, position_request: PopupPositionRequest)
    

    Configures the position of the popup according to a target control and a set of placement parameters.

    Source

    set_child

    fn set_child(self: &Self, control: Option<Ref<Control>>)
    

    Sets the control to display in the popup.

    Source

    show

    fn show(self: &Self)
    

    Shows the popup.

    Source

    hide

    fn hide(self: &Self)
    

    Hides the popup.

    Source

    take_focus

    fn take_focus(self: &Self)
    

    Takes focus from any currently focused native control.

    Source

    as_control

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

    The control that is the host (the host cast to a control).

    Source

    as_popup_root

    fn as_popup_root(self: &Self) -> Option<Ref<PopupRoot>>
    

    The host as a popup root, if it is one.

    Source

    as_overlay_popup_host

    fn as_overlay_popup_host(self: &Self) -> Option<Ref<OverlayPopupHost>>
    

    The host as an overlay popup host, if it is one.

    Source

    Availability

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