MCPcopy Create free account
hub / github.com/GCWing/BitFun / selected_item

Method selected_item

src/apps/cli/src/ui/theme_selector.rs:91–97  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

89 }
90
91 pub fn selected_item(&self) -> Option<&ThemeItem> {
92 if !self.visible {
93 return None;
94 }
95 let idx = self.list_state.selected().unwrap_or(0);
96 self.items.get(idx)
97 }
98
99 pub fn confirm_selection(&self) -> Option<ThemeItem> {
100 self.selected_item().cloned()

Callers 6

confirm_selectionMethod · 0.45
handle_non_key_eventMethod · 0.45
handle_keyMethod · 0.45
show_theme_selectorMethod · 0.45
handle_mouse_eventMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected