pub struct TreeNode { /* private fields */ }Expand description
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.
Implementations§
Source§impl TreeNode
impl TreeNode
Sourcepub fn font_weight(&self) -> FontWeight
pub fn font_weight(&self) -> FontWeight
The weight of the font of the node in the tree: bold for a root.
Sourcepub fn children(&self) -> Rc<TreeNodeCollection>
pub fn children(&self) -> Rc<TreeNodeCollection>
The children of the node.
Sourcepub fn classes(&self) -> String
pub fn classes(&self) -> String
The classes of the element, in parentheses, or empty when it has none.
Sourcepub fn element_name(&self) -> Option<String>
pub fn element_name(&self) -> Option<String>
The name of the element.
Sourcepub fn visual(&self) -> Ref<FerroObject>
pub fn visual(&self) -> Ref<FerroObject>
The object of the node.
pub fn is_expanded(&self) -> bool
pub fn set_is_expanded(&self, value: bool)
Sourcepub fn parent(&self) -> Option<Rc<TreeNode>>
pub fn parent(&self) -> Option<Rc<TreeNode>>
The parent node; None for a root, and once the parent is gone (the
nodes hold their parents weakly).
Sourcepub fn type_(&self) -> String
pub fn type_(&self) -> String
The Type property: the name of the type of the object, or the name
the node was created with.
Sourcepub fn kind(&self) -> TreeNodeKind
pub fn kind(&self) -> TreeNodeKind
The class of the node: LogicalTreeNode or
VisualTreeNode.
Sourcepub fn is_in_template(&self) -> bool
pub fn is_in_template(&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.
Sourcepub fn is_visual_only(&self) -> bool
pub fn is_visual_only(&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).
Trait Implementations§
Source§impl INotifyPropertyChanged for TreeNode
impl INotifyPropertyChanged for TreeNode
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 TreeNode
impl MarkupTyped for TreeNode
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
Source§impl ModelCollection<TreeNode> for TreeNodeCollection
impl ModelCollection<TreeNode> for TreeNodeCollection
Source§fn index_of(&self, model: &Rc<TreeNode>) -> Option<usize>
fn index_of(&self, model: &Rc<TreeNode>) -> Option<usize>
model, compared by identity (the reference’s IList.IndexOf of a reference
type that does not override Equals).Source§fn add_collection_changed(
&self,
handler: Rc<ModelsChangedHandler<TreeNode>>,
) -> Option<u64>
fn add_collection_changed( &self, handler: Rc<ModelsChangedHandler<TreeNode>>, ) -> Option<u64>
None when it does not raise any (a
collection that is not INotifyCollectionChanged).Source§fn remove_collection_changed(&self, token: u64)
fn remove_collection_changed(&self, token: u64)
add_collection_changed.Source§fn is_notifying(&self) -> bool
fn is_notifying(&self) -> bool
Source§fn as_mutable(&self) -> Option<&dyn MutableModelCollection<M>>
fn as_mutable(&self) -> Option<&dyn MutableModelCollection<M>>
IList that is not read only), for the moves of
drag and drop.Auto Trait Implementations§
impl !Freeze for TreeNode
impl !RefUnwindSafe for TreeNode
impl !Send for TreeNode
impl !Sync for TreeNode
impl !UnwindSafe for TreeNode
impl Unpin for TreeNode
impl UnsafeUnpin for TreeNode
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