pub struct TreeViewSettings {
pub override_indent: Option<f32>,
pub override_striped: Option<bool>,
pub indent_hint_style: IndentHintStyle,
pub row_layout: RowLayout,
pub min_width: f32,
pub min_height: f32,
pub allow_multi_select: bool,
pub range_selection_modifier: Modifiers,
pub set_selection_modifier: Modifiers,
pub allow_drag_and_drop: bool,
pub default_node_height: Option<f32>,
}Expand description
The global settings the tree view will use.
Fields§
§override_indent: Option<f32>Override the indent value for the tree view.
By default, this value is ‘None’ which means that the indent value from the current UI is used. If this value is set, this value will be used as the indent value without affecting the ui’s indent value.
override_striped: Option<bool>Override whether or not the background of the nodes should striped.
By default, this value is ‘None’ which means that the striped setting from the current UI style is used. If this value is set, it will be used without affecting the ui’s value.
indent_hint_style: IndentHintStyleThe style of the indent hint to show the indentation level.
row_layout: RowLayoutThe row layout for this tree.
min_width: f32The minimum width the tree can have.
min_height: f32The minimum height the tree can have.
allow_multi_select: boolIf the tree view is allowed to select multiple nodes at once. Default is true.
range_selection_modifier: ModifiersSpecifies the modifier that the user is require to press for a range based multi selection.
A range based selection selects all nodes between the selected node and a previously selected pivot node.
Default is egui::Modifiers::SHIFT
set_selection_modifier: ModifiersSpecified the modifier that the user is required to press for a set based multi selection.
A set based selection adds/removes the selected node to/from the multi selection.
Default is egui::Modifiers::COMMAND
allow_drag_and_drop: boolIf the nodes in the tree view are allowed to be dragged and dropped. Default is true.
default_node_height: Option<f32>The default height of a node.
If none is set the default height will be interact_size.y from egui::style::Spacing.
Trait Implementations§
Source§impl Clone for TreeViewSettings
impl Clone for TreeViewSettings
Source§fn clone(&self) -> TreeViewSettings
fn clone(&self) -> TreeViewSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more