Skip to main content

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 that is
8  /// a Frame widget. If the menu parent is focused, this sibling should also be
9  /// focused.
10  pub current : Option <NodeId>
11}
12impl_kind!(Selection);