Struct ComboBox

Struct Documentation

struct ComboBox

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.

Public Members

std::string label
std::vector<std::string> items
int initial_index = 0
std::function<void(int)> on_change