| 61 | |
| 62 | #[derive(Clone, Debug, PartialEq)] |
| 63 | pub struct UiTreeList { |
| 64 | pub base: UiNode, |
| 65 | pub items: Vec<UiTreeListItem>, |
| 66 | pub selected_index: Option<usize>, |
| 67 | pub indent: f32, |
| 68 | pub row_height: f32, |
| 69 | pub v_spacing: f32, |
| 70 | pub icon_size: f32, |
| 71 | pub toggle_size: f32, |
| 72 | pub line_width: f32, |
| 73 | pub line_color: Color, |
| 74 | pub triangle_color: Color, |
| 75 | pub text_color: Color, |
| 76 | pub row_style: UiStyle, |
| 77 | pub row_hover_style: UiStyle, |
| 78 | pub row_pressed_style: UiStyle, |
| 79 | pub selected_style: UiStyle, |
| 80 | pub internal_rows: Vec<NodeID>, |
| 81 | pub internal_toggles: Vec<NodeID>, |
| 82 | pub internal_icons: Vec<NodeID>, |
| 83 | pub internal_labels: Vec<NodeID>, |
| 84 | pub internal_lines: Vec<[NodeID; 2]>, |
| 85 | pub selected_signals: Vec<SignalID>, |
| 86 | pub toggled_signals: Vec<SignalID>, |
| 87 | } |
| 88 | |
| 89 | impl UiTreeList { |
| 90 | pub fn new() -> Self { |
no outgoing calls