pub struct ControlDetailsViewModel { /* private fields */ }Expand description
The details of an object: its properties, the frames of its values with their setters, its pseudo-classes and its layout.
Implementations§
Source§impl ControlDetailsViewModel
impl ControlDetailsViewModel
pub fn new( tree_page: &Rc<TreePageViewModel>, ferro_object: &FerroObject, pinned_properties: PinnedProperties, ) -> Rc<Self>
Sourcepub fn tree_page(&self) -> Option<Rc<TreePageViewModel>>
pub fn tree_page(&self) -> Option<Rc<TreePageViewModel>>
The tree page the details belong to (held weakly: the page holds the details).
Sourcepub fn properties_view(&self) -> Option<Rc<PropertiesView>>
pub fn properties_view(&self) -> Option<Rc<PropertiesView>>
The properties of the selected entity, grouped, sorted and filtered (the
DataGridCollectionView of the managed original).
pub fn applied_frames(&self) -> FerroList<Rc<ValueFrameViewModel>>
pub fn pseudo_classes(&self) -> FerroList<Rc<PseudoClassViewModel>>
pub fn selected_entity(&self) -> Option<BoxedValue>
pub fn set_selected_entity(&self, value: Option<BoxedValue>)
pub fn selected_entity_name(&self) -> Option<String>
pub fn set_selected_entity_name(&self, value: Option<String>)
pub fn selected_entity_type(&self) -> Option<String>
pub fn set_selected_entity_type(&self, value: Option<String>)
pub fn selected_property(&self) -> Option<PropertyViewModelRef>
Sourcepub fn set_selected_property(&self, value: Option<PropertyViewModelRef>)
pub fn set_selected_property(&self, value: Option<PropertyViewModelRef>)
Sets the selected property, and selects its row in the grid (the two-way binding of
SelectedItem of the managed original).
pub fn snapshot_frames(&self) -> bool
pub fn set_snapshot_frames(&self, value: bool)
pub fn show_inactive_frames(&self) -> bool
pub fn set_show_inactive_frames(&self, value: bool)
pub fn frames_status(&self) -> Option<String>
pub fn set_frames_status(&self, value: Option<String>)
pub fn layout(&self) -> Option<Rc<ControlLayoutViewModel>>
pub fn update_style_filters(&self)
pub fn dispose(&self)
Sourcepub fn select_property(&self, property: &'static FerroProperty)
pub fn select_property(&self, property: &'static FerroProperty)
Selects the property property of the object of the details, navigating back to the
object first.
pub fn update_properties_view(&self, show_implemented_interfaces: bool)
Sourcepub fn toggle_pinned_property(&self, parameter: Option<BoxedValue>)
pub fn toggle_pinned_property(&self, parameter: Option<BoxedValue>)
Pins or unpins the property parameter (a property view model, or the row of one).
Trait Implementations§
Source§impl INotifyPropertyChanged for ControlDetailsViewModel
impl INotifyPropertyChanged for ControlDetailsViewModel
Source§fn property_changed(&self) -> &Event<str>
fn property_changed(&self) -> &Event<str>
The event raised when a property value changes.
Source§fn as_notify_property_changing(&self) -> Option<&dyn INotifyPropertyChanging>
fn as_notify_property_changing(&self) -> Option<&dyn INotifyPropertyChanging>
The object as
INotifyPropertyChanging, when it also raises the event of a property
that is about to change; None by default. Read moreSource§impl MarkupTyped for ControlDetailsViewModel
impl MarkupTyped for ControlDetailsViewModel
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl !Freeze for ControlDetailsViewModel
impl !RefUnwindSafe for ControlDetailsViewModel
impl !Send for ControlDetailsViewModel
impl !Sync for ControlDetailsViewModel
impl !UnwindSafe for ControlDetailsViewModel
impl Unpin for ControlDetailsViewModel
impl UnsafeUnpin for ControlDetailsViewModel
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