FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PopupAction

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct PopupAction
    

    Opens a popup at the pointer with child as its content (the content of the action in markup). The popup is created on the first execution, as a logical child of the sender, and follows the data context of the sender.

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

    Returns a strong reference to this object.

    Source

    child_property

    fn child_property() -> &'static StyledProperty<Option<Ref<Control>>>
    

    Identifies the Child property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates an action.

    Source

    child

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

    Gets or sets the content of the popup. This is a property of the object model.

    Source

    set_child

    fn set_child(self: &Self, value: impl Into<Nullable<Control>>)
    

    Source

    Trait implementations

    Availability

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