FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    EventsPageViewModel

    struct · ferroui-diagnostics · v0.5.0

    struct EventsPageViewModel
    

    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.

    View source

    Members

    new

    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.

    Source

    name

    fn name(self: &Self) -> String
    

    The title of the page.

    Source

    nodes

    fn nodes(self: &Self) -> FerroList<Rc<EventTreeNodeBase>>
    

    The nodes of the types that own routed events, ordered by the names of the types.

    Source

    recorded_events

    fn recorded_events(self: &Self) -> FerroList<Rc<FiredEvent>>
    

    The recorded events, the oldest first.

    Source

    selected_event

    fn selected_event(self: &Self) -> Option<Rc<FiredEvent>>
    

    Source

    set_selected_event

    fn set_selected_event(self: &Self, value: Option<Rc<FiredEvent>>)
    

    Source

    selected_node

    fn selected_node(self: &Self) -> Option<Rc<EventTreeNodeBase>>
    

    Source

    set_selected_node

    fn set_selected_node(self: &Self, value: Option<Rc<EventTreeNodeBase>>)
    

    Source

    nodes_source

    fn nodes_source(self: &Self) -> Rc<HierarchicalTreeDataGridSource<EventTreeNodeBase>>
    

    The source of the TreeDataGrid of the page: the rows of the visible nodes.

    Source

    nodes_source_ref

    fn nodes_source_ref(self: &Self) -> TreeDataGridSourceRef
    

    The source of the TreeDataGrid of the page, as the grid takes it.

    Source

    visible_nodes

    fn visible_nodes(self: &Self) -> Rc<FerroList<Rc<EventTreeNodeBase>>>
    

    The visible nodes of the owners of events: the root rows of the TreeDataGrid of the page.

    Source

    index_path_of

    fn index_path_of(self: &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.

    Source

    selected_row_index

    fn selected_row_index(self: &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.

    Source

    events_filter

    fn events_filter(self: &Self) -> Rc<FilterViewModel>
    

    The filter of the tree of the events.

    Source

    clear

    fn clear(self: &Self)
    

    Removes the recorded events.

    Source

    disable_all

    fn disable_all(self: &Self)
    

    Stops recording every event.

    Source

    enable_default

    fn enable_default(self: &Self)
    

    Records the default events and no other.

    Source

    request_tree_navigate_to

    fn request_tree_navigate_to(self: &Self, nav_target: &EventChainLink)
    

    Shows the element of a link of the chain of an event in the visual tree page.

    Source

    select_event_by_type

    fn select_event_by_type(self: &Self, evt: RoutedEvent)
    

    Selects the node of evt in the tree, if it is visible.

    Source

    main_view

    fn main_view(self: &Self) -> Option<Rc<MainViewModel>>
    

    The main view model the page belongs to.

    Source

    Trait implementations

    Availability

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