FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    storage_provider_property

    fn storage_provider_property() -> &'static StyledProperty<Option<StorageProviderRef>>
    

    Identifies the StorageProvider property.

    Source

    title_property

    fn title_property() -> &'static StyledProperty<Option<String>>
    

    Identifies the Title property.

    Source

    suggested_start_location_property

    fn suggested_start_location_property() -> &'static StyledProperty<Option<StorageFolderRef>>
    

    Identifies the SuggestedStartLocation property.

    Source

    suggested_start_location_path_property

    fn suggested_start_location_path_property() -> &'static StyledProperty<Option<String>>
    

    Identifies the SuggestedStartLocationPath property.

    Source

    suggested_file_name_property

    fn suggested_file_name_property() -> &'static StyledProperty<Option<String>>
    

    Identifies the SuggestedFileName property.

    Source

    create_suggested_start_location_directory_property

    fn create_suggested_start_location_directory_property() -> &'static StyledProperty<bool>
    

    Identifies the CreateSuggestedStartLocationDirectory property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    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.

    Source

    set_storage_provider

    fn set_storage_provider(self: &Self, value: Option<StorageProviderRef>)
    

    Source

    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.

    Source

    set_title

    fn set_title(self: &Self, value: Option<String>)
    

    Source

    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.

    Source

    set_suggested_start_location

    fn set_suggested_start_location(self: &Self, value: Option<StorageFolderRef>)
    

    Source

    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.

    Source

    set_suggested_start_location_path

    fn set_suggested_start_location_path(self: &Self, value: Option<String>)
    

    Source

    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.

    Source

    set_suggested_file_name

    fn set_suggested_file_name(self: &Self, value: Option<String>)
    

    Source

    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.

    Source

    set_create_suggested_start_location_directory

    fn set_create_suggested_start_location_directory(self: &Self, value: bool)
    

    Source

    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).

    Source

    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.

    Source

    Trait implementations

    Availability

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