FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PopupRoot

    struct · ferroui-controls · v0.5.0

    struct PopupRoot
    

    The root window of a Popup.

    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<PopupRoot>
    

    Returns a strong reference to this object.

    Source

    transform_property

    fn transform_property() -> &'static StyledProperty<Option<Ref<Transform>>>
    

    Defines the Transform property.

    Source

    window_manager_add_shadow_hint_property

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

    Defines the WindowManagerAddShadowHint property.

    Source

    transform

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

    A transform that will be applied to the popup.

    Source

    set_transform

    fn set_transform(self: &Self, value: impl Into<Nullable<Transform>>)
    

    Source

    window_manager_add_shadow_hint

    fn window_manager_add_shadow_hint(self: &Self) -> bool
    

    A hint to the window manager that a shadow should be added to the popup.

    Source

    set_window_manager_add_shadow_hint

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

    Source

    parent_top_level

    fn parent_top_level(self: &Self) -> Option<Ref<TopLevel>>
    

    The top-level the popup belongs to; None once that top-level is gone (the popup root does not keep its parent alive).

    Source

    dispose

    fn dispose(self: &Self)
    

    Releases the platform implementation and closes the popup root.

    Source

    configure_position

    fn configure_position(self: &Self, 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: impl Into<Nullable<Control>>)
    

    Sets the control to display in the popup.

    Source

    take_focus

    fn take_focus(self: &Self)
    

    Takes focus from any currently focused native control.

    Source

    to_popup_host

    fn to_popup_host(self: &Self) -> Rc<dyn IPopupHost>
    

    The popup root as a popup host (the popup host contract it implements upstream).

    Source

    Trait implementations

    Availability

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