pub struct EventsPageViewModel { /* private fields */ }Expand description
The view model of the events page: the tree of the registered routed events grouped by the type that owns them, whose check boxes choose the events to record, and the recorded events.
Implementations§
Source§impl EventsPageViewModel
impl EventsPageViewModel
Sourcepub fn new(main_view_model: Weak<MainViewModel>) -> Rc<Self>
pub fn new(main_view_model: Weak<MainViewModel>) -> Rc<Self>
C# new EventsPageViewModel(MainViewModel mainViewModel): the tree of
the routed events registered on this thread, with the default events
enabled.
The main view model is held weakly: it holds the page.
Sourcepub fn nodes(&self) -> FerroList<Rc<EventTreeNodeBase>>
pub fn nodes(&self) -> FerroList<Rc<EventTreeNodeBase>>
The nodes of the types that own routed events, ordered by the names of the types.
Sourcepub fn recorded_events(&self) -> FerroList<Rc<FiredEvent>>
pub fn recorded_events(&self) -> FerroList<Rc<FiredEvent>>
The recorded events, the oldest first.
pub fn selected_event(&self) -> Option<Rc<FiredEvent>>
pub fn set_selected_event(&self, value: Option<Rc<FiredEvent>>)
pub fn selected_node(&self) -> Option<Rc<EventTreeNodeBase>>
pub fn set_selected_node(&self, value: Option<Rc<EventTreeNodeBase>>)
Sourcepub fn nodes_source(
&self,
) -> Rc<HierarchicalTreeDataGridSource<EventTreeNodeBase>>
pub fn nodes_source( &self, ) -> Rc<HierarchicalTreeDataGridSource<EventTreeNodeBase>>
The source of the TreeDataGrid of the page: the rows of the visible nodes.
Sourcepub fn nodes_source_ref(&self) -> TreeDataGridSourceRef
pub fn nodes_source_ref(&self) -> TreeDataGridSourceRef
The source of the TreeDataGrid of the page, as the grid takes it.
Sourcepub fn visible_nodes(&self) -> Rc<FerroList<Rc<EventTreeNodeBase>>>
pub fn visible_nodes(&self) -> Rc<FerroList<Rc<EventTreeNodeBase>>>
The visible nodes of the owners of events: the root rows of the TreeDataGrid of the page.
Sourcepub fn index_path_of(&self, node: &Rc<EventTreeNodeBase>) -> Option<IndexPath>
pub fn index_path_of(&self, node: &Rc<EventTreeNodeBase>) -> Option<IndexPath>
The index path of the row of a node in the source; None when the node is not visible.
Sourcepub fn selected_row_index(&self) -> i32
pub fn selected_row_index(&self) -> i32
The index of the row of the selected node among the rows the TreeDataGrid shows; -1
when no node is selected or its row is not shown.
Sourcepub fn events_filter(&self) -> Rc<FilterViewModel>
pub fn events_filter(&self) -> Rc<FilterViewModel>
The filter of the tree of the events.
Sourcepub fn disable_all(&self)
pub fn disable_all(&self)
Stops recording every event.
Sourcepub fn enable_default(&self)
pub fn enable_default(&self)
Records the default events and no other.
Shows the element of a link of the chain of an event in the visual tree page.
Sourcepub fn select_event_by_type(&self, evt: RoutedEvent)
pub fn select_event_by_type(&self, evt: RoutedEvent)
Selects the node of evt in the tree, if it is visible.
Sourcepub fn main_view(&self) -> Option<Rc<MainViewModel>>
pub fn main_view(&self) -> Option<Rc<MainViewModel>>
The main view model the page belongs to.
Trait Implementations§
Source§impl INotifyPropertyChanged for EventsPageViewModel
impl INotifyPropertyChanged for EventsPageViewModel
Source§fn property_changed(&self) -> &Event<str>
fn property_changed(&self) -> &Event<str>
Source§fn as_notify_property_changing(&self) -> Option<&dyn INotifyPropertyChanging>
fn as_notify_property_changing(&self) -> Option<&dyn INotifyPropertyChanging>
INotifyPropertyChanging, when it also raises the event of a property
that is about to change; None by default. Read moreSource§impl MarkupTyped for EventsPageViewModel
impl MarkupTyped for EventsPageViewModel
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
Auto Trait Implementations§
impl !Freeze for EventsPageViewModel
impl !RefUnwindSafe for EventsPageViewModel
impl !Send for EventsPageViewModel
impl !Sync for EventsPageViewModel
impl !UnwindSafe for EventsPageViewModel
impl Unpin for EventsPageViewModel
impl UnsafeUnpin for EventsPageViewModel
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more