TreeNode
struct · ferroui-diagnostics · v0.5.0
struct TreeNode
A node of a tree of the developer tools: an object of the inspected application, its type, name and classes, whether it is expanded in the tree view, and its children.
Members
font_weightchildrenclasseselement_namevisualis_expandedset_is_expandedparenttype_kindis_in_templateis_visual_onlydispose
font_weight
fn font_weight(self: &Self) -> FontWeight
The weight of the font of the node in the tree: bold for a root.
children
fn children(self: &Self) -> Rc<TreeNodeCollection>
The children of the node.
classes
fn classes(self: &Self) -> String
The classes of the element, in parentheses, or empty when it has none.
element_name
fn element_name(self: &Self) -> Option<String>
The name of the element.
visual
fn visual(self: &Self) -> Ref<FerroObject>
The object of the node.
is_expanded
fn is_expanded(self: &Self) -> bool
set_is_expanded
fn set_is_expanded(self: &Self, value: bool)
parent
fn parent(self: &Self) -> Option<Rc<TreeNode>>
The parent node; None for a root, and once the parent is gone (the
nodes hold their parents weakly).
type_
fn type_(self: &Self) -> String
The Type property: the name of the type of the object, or the name
the node was created with.
kind
fn kind(self: &Self) -> TreeNodeKind
The class of the node: LogicalTreeNode or
VisualTreeNode.
is_in_template
fn is_in_template(self: &Self) -> bool
VisualTreeNode.IsInTemplate: whether the element is part of a
template (it has a templated parent). false for a node of the
logical tree.
is_visual_only
fn is_visual_only(self: &Self) -> bool
Whether the node is a part of a template in the combined tree, which the tree shows greyed out (an addition of the port).
dispose
fn dispose(self: &Self)
Dispose(): ends the subscription to the classes and disposes the
children.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelPartialEqINotifyPropertyChangedMarkupTypedModelCollection<TreeNode>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.