FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ShowDialogAction

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

    struct ShowDialogAction
    

    Shows a Window as a dialog: owned by owner, or else by the window of the sender, or as a plain window when there is no owner.

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

    Returns a strong reference to this object.

    Source

    dialog_property

    fn dialog_property() -> &'static StyledProperty<Option<ElementRef<Window>>>
    

    Identifies the Dialog property.

    Deviation (DEVIATIONS.md, Behaviors): the action does not own the windows it names, so the values of Dialog and Owner are element references.

    Source

    owner_property

    fn owner_property() -> &'static StyledProperty<Option<ElementRef<Window>>>
    

    Identifies the Owner 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

    dialog

    fn dialog(self: &Self) -> Option<Ref<Window>>
    

    Gets or sets the dialog window instance. This is a property of the object model. Markup resolves a name given for it to the named element.

    Source

    set_dialog

    fn set_dialog(self: &Self, value: impl Into<Nullable<Window>>)
    

    Source

    owner

    fn owner(self: &Self) -> Option<Ref<Window>>
    

    Gets or sets the owner window for the dialog. This is a property of the object model. Markup resolves a name given for it to the named element.

    Source

    set_owner

    fn set_owner(self: &Self, value: impl Into<Nullable<Window>>)
    

    Source

    Trait implementations

    Availability

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