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.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ManagedFileChooserOverwritePrompt>
Returns a strong reference to this object.
file_name_property
fn file_name_property() -> &'static DirectProperty<ManagedFileChooserOverwritePrompt, String>
Defines the FileName property.
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
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.
file_name
fn file_name(self: &Self) -> String
The name of the file that exists.
set_file_name
fn set_file_name(self: &Self, value: String)
confirm
fn confirm(self: &Self)
Answers that the file is to be replaced.
cancel
fn cancel(self: &Self)
Answers that the file is to be kept.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherTemplatedControlImplExtControlImplExtDerefUpcast<T>Upcast<ManagedFileChooserOverwritePrompt>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplDefaultConstructible
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.