Struct imgui::TreeNode[][src]

pub struct TreeNode<T, L = &'static str> { /* fields omitted */ }
Expand description

Builder for a tree node widget

Implementations

Constructs a new tree node builder

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.

Creates a tree node and runs a closure to construct the contents. Returns the result of the closure, if it is called.

Note: the closure is not called if the tree node is not open.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.