gooey/interface/controller/component/
selection.rs

1use crate::tree::NodeId;
2use super::impl_kind;
3
4#[derive(Clone, Debug, Default, Eq, PartialEq)]
5pub struct Selection {
6  pub loop_   : bool,
7  /// Saves the currently selected item in the menu. An "item" is a sibling node
8  /// that is a Frame widget. If the menu parent is focused, this sibling should
9  /// also be focused.
10  pub current : Option <NodeId>
11}
12impl_kind!(Selection);