FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FilesPreviewBehavior

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

    struct FilesPreviewBehavior
    

    Behavior that collects the files dragged over the associated control: the preview_files hold them while the drag is over the control.

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

    Returns a strong reference to this object.

    Source

    preview_files_property

    fn preview_files_property() -> &'static DirectProperty<FilesPreviewBehavior, FerroList<Rc<dyn IStorageItem>>>
    

    Identifies the PreviewFiles property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates the behavior.

    Source

    preview_files

    fn preview_files(self: &Self) -> FerroList<Rc<dyn IStorageItem>>
    

    Gets the collection of files currently previewed (created on first use).

    Source

    Trait implementations

    Availability

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