PickerBehaviorBase
struct · ferroui-xaml-interactions · v0.5.0
struct PickerBehaviorBase
Base class for picker behaviors: the storage provider, the title and the suggested start location of the picker.
The class is abstract.
Members
TYPEto_refstorage_provider_propertytitle_propertysuggested_start_location_propertysuggested_start_location_path_propertysuggested_file_name_propertycreate_suggested_start_location_directory_propertyconstructstorage_providerset_storage_providertitleset_titlesuggested_start_locationset_suggested_start_locationsuggested_start_location_pathset_suggested_start_location_pathsuggested_file_nameset_suggested_file_namecreate_suggested_start_location_directoryset_create_suggested_start_location_directoryresolve_storage_providerresolve_suggested_start_location
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<PickerBehaviorBase>
Returns a strong reference to this object.
storage_provider_property
fn storage_provider_property() -> &'static StyledProperty<Option<StorageProviderRef>>
Identifies the StorageProvider property.
title_property
fn title_property() -> &'static StyledProperty<Option<String>>
Identifies the Title property.
suggested_start_location_property
fn suggested_start_location_property() -> &'static StyledProperty<Option<StorageFolderRef>>
Identifies the SuggestedStartLocation property.
suggested_start_location_path_property
fn suggested_start_location_path_property() -> &'static StyledProperty<Option<String>>
Identifies the SuggestedStartLocationPath property.
suggested_file_name_property
fn suggested_file_name_property() -> &'static StyledProperty<Option<String>>
Identifies the SuggestedFileName property.
create_suggested_start_location_directory_property
fn create_suggested_start_location_directory_property() -> &'static StyledProperty<bool>
Identifies the CreateSuggestedStartLocationDirectory property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
storage_provider
fn storage_provider(self: &Self) -> Option<StorageProviderRef>
Gets or sets the storage provider that the picker uses to access the file system. This is a property of the object model.
set_storage_provider
fn set_storage_provider(self: &Self, value: Option<StorageProviderRef>)
title
fn title(self: &Self) -> Option<String>
Gets or sets the text that appears in the title bar of a picker. This is a property of the object model.
set_title
fn set_title(self: &Self, value: Option<String>)
suggested_start_location
fn suggested_start_location(self: &Self) -> Option<StorageFolderRef>
Gets or sets the initial location where the picker looks for files to present to the user. This is a property of the object model.
set_suggested_start_location
fn set_suggested_start_location(self: &Self, value: Option<StorageFolderRef>)
suggested_start_location_path
fn suggested_start_location_path(self: &Self) -> Option<String>
Gets or sets a fallback path that is used to resolve the suggested start location when no folder is provided.
set_suggested_start_location_path
fn set_suggested_start_location_path(self: &Self, value: Option<String>)
suggested_file_name
fn suggested_file_name(self: &Self) -> Option<String>
Gets or sets the file name that the file picker suggests to the user. This is a property of the object model.
set_suggested_file_name
fn set_suggested_file_name(self: &Self, value: Option<String>)
create_suggested_start_location_directory
fn create_suggested_start_location_directory(self: &Self) -> bool
Gets or sets a value indicating whether to create the suggested start location directory if it doesn't exist. This is a property of the object model.
set_create_suggested_start_location_directory
fn set_create_suggested_start_location_directory(self: &Self, value: bool)
resolve_storage_provider
fn resolve_storage_provider(self: &Self, fallback_visual: Option<&Visual>) -> Option<Rc<dyn IStorageProvider>>
Resolves the storage provider using the configured value or the provided fallback visual (then the associated object, then the behavior itself).
resolve_suggested_start_location
async fn resolve_suggested_start_location(self: &Self, provider: Option<Rc<dyn IStorageProvider>>) -> Option<Rc<dyn IStorageFolder>>
Resolves the suggested start folder using the configured value or the configured path,
translated by provider.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<PickerBehaviorBase>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.