ControlDetailsViewModel
struct · ferroui-diagnostics · v0.5.0
struct ControlDetailsViewModel
The details of an object: its properties, the frames of its values with their setters, its pseudo-classes and its layout.
Members
newcan_navigate_to_parent_propertytree_pageproperties_viewapplied_framespseudo_classesselected_entityset_selected_entityselected_entity_nameset_selected_entity_nameselected_entity_typeset_selected_entity_typeselected_propertyset_selected_propertysnapshot_framesset_snapshot_framesshow_inactive_framesset_show_inactive_framesframes_statusset_frames_statuslayoutupdate_style_filtersdisposenavigate_to_selected_propertynavigate_to_parent_propertynavigate_to_propertyselect_propertyupdate_properties_viewtoggle_pinned_property
new
fn new(tree_page: &Rc<TreePageViewModel>, ferro_object: &FerroObject, pinned_properties: PinnedProperties) -> Rc<Self>
can_navigate_to_parent_property
fn can_navigate_to_parent_property(self: &Self) -> bool
tree_page
fn tree_page(self: &Self) -> Option<Rc<TreePageViewModel>>
The tree page the details belong to (held weakly: the page holds the details).
properties_view
fn properties_view(self: &Self) -> Option<Rc<PropertiesView>>
The properties of the selected entity, grouped, sorted and filtered (the
DataGridCollectionView of the managed original).
applied_frames
fn applied_frames(self: &Self) -> FerroList<Rc<ValueFrameViewModel>>
pseudo_classes
fn pseudo_classes(self: &Self) -> FerroList<Rc<PseudoClassViewModel>>
selected_entity
fn selected_entity(self: &Self) -> Option<BoxedValue>
set_selected_entity
fn set_selected_entity(self: &Self, value: Option<BoxedValue>)
selected_entity_name
fn selected_entity_name(self: &Self) -> Option<String>
set_selected_entity_name
fn set_selected_entity_name(self: &Self, value: Option<String>)
selected_entity_type
fn selected_entity_type(self: &Self) -> Option<String>
set_selected_entity_type
fn set_selected_entity_type(self: &Self, value: Option<String>)
selected_property
fn selected_property(self: &Self) -> Option<PropertyViewModelRef>
set_selected_property
fn set_selected_property(self: &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).
snapshot_frames
fn snapshot_frames(self: &Self) -> bool
set_snapshot_frames
fn set_snapshot_frames(self: &Self, value: bool)
show_inactive_frames
fn show_inactive_frames(self: &Self) -> bool
set_show_inactive_frames
fn set_show_inactive_frames(self: &Self, value: bool)
frames_status
fn frames_status(self: &Self) -> Option<String>
set_frames_status
fn set_frames_status(self: &Self, value: Option<String>)
layout
fn layout(self: &Self) -> Option<Rc<ControlLayoutViewModel>>
update_style_filters
fn update_style_filters(self: &Self)
dispose
fn dispose(self: &Self)
navigate_to_selected_property
fn navigate_to_selected_property(self: &Self)
navigate_to_parent_property
fn navigate_to_parent_property(self: &Self)
navigate_to_property
fn navigate_to_property(self: &Self, o: BoxedValue, entity_name: Option<String>)
select_property
fn select_property(self: &Self, property: &'static FerroProperty)
Selects the property property of the object of the details, navigating back to the
object first.
update_properties_view
fn update_properties_view(self: &Self, show_implemented_interfaces: bool)
toggle_pinned_property
fn toggle_pinned_property(self: &Self, parameter: Option<BoxedValue>)
Pins or unpins the property parameter (a property view model, or the row of one).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelPartialEqINotifyPropertyChangedMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.