39 explicit Combobox(
const std::vector<const char*>& items);
46 const char*
GetItem(
int index)
const;
65 std::function<
void(
const char*,
int)> on_value_changed);
69 std::unique_ptr<Impl> impl_;
~Combobox() override
Definition: Combobox.cpp:69
Combobox()
Definition: Combobox.cpp:57
DrawResult Draw(const DrawContext &context) override
Definition: Combobox.cpp:126
void ClearItems()
Definition: Combobox.cpp:71
void SetOnValueChanged(std::function< void(const char *, int)> on_value_changed)
Definition: Combobox.cpp:109
Definition: Combobox.cpp:50
void SetSelectedIndex(int index)
Definition: Combobox.cpp:93
Definition: Combobox.h:36
Size CalcPreferredSize(const Theme &theme) const override
Definition: Combobox.cpp:114
void AddItem(const char *name)
Definition: Combobox.cpp:76
Definition: Open3DViewer.h:29
const char * GetItem(int index) const
Definition: Combobox.cpp:78
std::string name
Definition: FilePCD.cpp:56
void SetSelectedValue(const char *value)
Definition: Combobox.cpp:99
int GetSelectedIndex() const
Definition: Combobox.cpp:82
const char * GetSelectedValue() const
Returns the text of the selected value, or "" if nothing is selected.
Definition: Combobox.cpp:84