pub struct ManagedFileChooserItemViewModel { /* private fields */ }Expand description
An entry of the managed file chooser: a file, a folder or a volume.
Implementations§
Source§impl ManagedFileChooserItemViewModel
impl ManagedFileChooserItemViewModel
pub fn new() -> Rc<Self>
pub fn display_name(&self) -> Option<String>
pub fn set_display_name(&self, value: Option<String>)
pub fn path(&self) -> Option<String>
pub fn set_path(&self, value: Option<String>)
pub fn modified(&self) -> DateTime
pub fn set_modified(&self, value: DateTime)
Sourcepub fn type_(&self) -> Option<String>
pub fn type_(&self) -> Option<String>
The Type property: the extension of a file, or the kind of a
folder.
pub fn set_type(&self, value: Option<String>)
pub fn size(&self) -> i64
pub fn set_size(&self, value: i64)
pub fn item_type(&self) -> ManagedFileChooserItemType
pub fn set_item_type(&self, value: ManagedFileChooserItemType)
Trait Implementations§
Source§impl INotifyPropertyChanged for ManagedFileChooserItemViewModel
impl INotifyPropertyChanged for ManagedFileChooserItemViewModel
Source§fn property_changed(&self) -> &Event<str>
fn property_changed(&self) -> &Event<str>
The event raised when a property value changes.
Source§impl MarkupTyped for ManagedFileChooserItemViewModel
impl MarkupTyped for ManagedFileChooserItemViewModel
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !Freeze for ManagedFileChooserItemViewModel
impl !RefUnwindSafe for ManagedFileChooserItemViewModel
impl !Send for ManagedFileChooserItemViewModel
impl !Sync for ManagedFileChooserItemViewModel
impl !UnwindSafe for ManagedFileChooserItemViewModel
impl Unpin for ManagedFileChooserItemViewModel
impl UnsafeUnpin for ManagedFileChooserItemViewModel
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more