EventTreeNodeBase
struct · ferroui-diagnostics · v0.5.0
struct EventTreeNodeBase
A node of the tree of routed events of the events page: the owner of a group of events or one event, with the check box that enables the recording of the events below it.
Members
kindas_event_tree_nodeas_event_owner_tree_nodechildrenvisible_childrenis_expandedset_is_expandedis_enabledset_is_enabledis_visibleset_is_visibleparenttext
kind
fn kind(self: &Self) -> &EventTreeNodeKind
The part of the deriving class.
as_event_tree_node
fn as_event_tree_node(self: &Self) -> Option<&EventTreeNode>
The node as an EventTreeNode (C# node as EventTreeNode).
as_event_owner_tree_node
fn as_event_owner_tree_node(self: &Self) -> Option<&EventOwnerTreeNode>
The node as an EventOwnerTreeNode (C# node as EventOwnerTreeNode).
children
fn children(self: &Self) -> Option<FerroList<Rc<EventTreeNodeBase>>>
The child nodes; None for a node without children.
visible_children
fn visible_children(self: &Self) -> Option<Rc<FerroList<Rc<EventTreeNodeBase>>>>
The visible children, in their order: the child rows of the node in the TreeDataGrid of the
events page, which follow the filter of the page (sync_visible_nodes); None for a node
without children. The same list every time, so that the rows of the children are kept
while the node notifies other changes.
Deviation (DEVIATIONS.md, Developer tools): upstream's tree view hides the items of the nodes that are not visible; the rows of a TreeDataGrid are the nodes of its source.
is_expanded
fn is_expanded(self: &Self) -> bool
set_is_expanded
fn set_is_expanded(self: &Self, value: bool)
is_enabled
fn is_enabled(self: &Self) -> Option<bool>
Whether the events of the node are recorded: None when some of the
events below the node are and some are not.
set_is_enabled
fn set_is_enabled(self: &Self, value: Option<bool>)
The virtual setter of IsEnabled: the override of the deriving class
(EventOwnerTreeNode or EventTreeNode).
is_visible
fn is_visible(self: &Self) -> bool
set_is_visible
fn set_is_visible(self: &Self, value: bool)
parent
fn parent(self: &Self) -> Option<Rc<EventTreeNodeBase>>
text
fn text(self: &Self) -> &str
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.