FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    font_weight

    fn font_weight(self: &Self) -> FontWeight
    

    The weight of the font of the node in the tree: bold for a root.

    Source

    children

    fn children(self: &Self) -> Rc<TreeNodeCollection>
    

    The children of the node.

    Source

    classes

    fn classes(self: &Self) -> String
    

    The classes of the element, in parentheses, or empty when it has none.

    Source

    element_name

    fn element_name(self: &Self) -> Option<String>
    

    The name of the element.

    Source

    visual

    fn visual(self: &Self) -> Ref<FerroObject>
    

    The object of the node.

    Source

    is_expanded

    fn is_expanded(self: &Self) -> bool
    

    Source

    set_is_expanded

    fn set_is_expanded(self: &Self, value: bool)
    

    Source

    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).

    Source

    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.

    Source

    kind

    fn kind(self: &Self) -> TreeNodeKind
    

    The class of the node: LogicalTreeNode or VisualTreeNode.

    Source

    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.

    Source

    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).

    Source

    dispose

    fn dispose(self: &Self)
    

    Dispose(): ends the subscription to the classes and disposes the children.

    Source

    Trait implementations

    Availability

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