struct mola::gui::ComboBox
Overview
A drop-down / combo-box (“pick one of N”).
items - display strings shown in the list. initial_index - zero-based index of the initially selected item. on_change - called with the new index from the GUI thread.
nanogui : nanogui::ComboBox. ImGui : ImGui::Combo.
#include <GuiWidgetDescription.h> struct ComboBox { // fields std::string label; std::vector<std::string> items; int initial_index = 0; std::function<void(int)> on_change; };