Struct imgui::TreeNode [−][src]
pub struct TreeNode<T, L = &'static str> { /* fields omitted */ }
Expand description
Builder for a tree node widget
Implementations
Sets the tree node label
Sets the opened state of the tree node, which is applied based on the given condition value
Replaces all current settings with the given flags.
Enables/disables drawing the tree node in selected state.
Disabled by default.
Enables/disables full-colored frame.
Disabled by default.
Enables/disables allowing the tree node to overlap subsequent widgets.
Disabled by default.
Enables/disables automatic tree push when the tree node is open (= adds extra indentation and pushes to the ID stack).
Enabled by default.
Enables/disables automatic opening of the tree node when logging is active.
By default, logging will automatically open all tree nodes.
Enabled by default.
Sets the default open state for the tree node.
Tree nodes are closed by default.
Only open when the tree node is double-clicked.
Disabled by default.
Only open when clicking the arrow part of the tree node.
Disabled by default.
Enable/disables leaf mode (no collapsing, no arrow).
Disabled by default.
Display a bullet instead of arrow.
Disabled by default.
Use frame_padding
to vertically align text baseline to regular widget height.
Disabled by default.
Left direction may move to this tree node from any of its child.
Disabled by default.
Pushes a tree node and starts appending to it.
Returns Some(TreeNodeToken)
if the tree node is open. After content has been
rendered, the token can be popped by calling .pop()
.
Returns None
if the tree node is not open and no content should be rendered.
Trait Implementations
Auto Trait Implementations
impl<T, L> RefUnwindSafe for TreeNode<T, L> where
L: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, L> UnwindSafe for TreeNode<T, L> where
L: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more