FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ManagedFileChooserOverwritePrompt

    struct · ferroui-dialogs · v0.5.0

    struct ManagedFileChooserOverwritePrompt
    

    Asks whether to replace an existing file: the content of the flyout the managed storage provider shows when the user saves to a file that exists.

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

    Returns a strong reference to this object.

    Source

    file_name_property

    fn file_name_property() -> &'static DirectProperty<ManagedFileChooserOverwritePrompt, String>
    

    Defines the FileName property.

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    result

    fn result(self: &Self, handler: impl Fn(bool) -> () + 'static) -> Rc<dyn IDisposable>
    

    Raised with the answer of the user: true to replace the file.

    Source

    file_name

    fn file_name(self: &Self) -> String
    

    The name of the file that exists.

    Source

    set_file_name

    fn set_file_name(self: &Self, value: String)
    

    Source

    confirm

    fn confirm(self: &Self)
    

    Answers that the file is to be replaced.

    Source

    cancel

    fn cancel(self: &Self)
    

    Answers that the file is to be kept.

    Source

    Trait implementations

    Availability

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