15 namespace visualization {
21 explicit Combobox(
const std::vector<const char*>& items);
35 void ChangeItem(
const char* orig_name,
const char* new_name);
46 const char*
GetItem(
int index)
const;
66 std::function<
void(
const char*,
int)> on_value_changed);
70 std::unique_ptr<Impl> impl_;
ImGuiContext * context
Definition: Window.cpp:76
Definition: Combobox.h:18
Combobox()
Definition: Combobox.cpp:39
~Combobox() override
Definition: Combobox.cpp:49
DrawResult Draw(const DrawContext &context) override
Definition: Combobox.cpp:148
int AddItem(const char *name)
Definition: Combobox.cpp:56
void RemoveItem(const char *name)
Removes the first item matching the given text.
Definition: Combobox.cpp:74
void ClearItems()
Definition: Combobox.cpp:51
void ChangeItem(int index, const char *name)
Definition: Combobox.cpp:61
const char * GetSelectedValue() const
Returns the text of the selected value, or "" if nothing is selected.
Definition: Combobox.cpp:102
const char * GetItem(int index) const
Definition: Combobox.cpp:96
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
Definition: Combobox.cpp:133
bool SetSelectedValue(const char *value)
Definition: Combobox.cpp:117
void SetSelectedIndex(int index)
Definition: Combobox.cpp:111
int GetSelectedIndex() const
Definition: Combobox.cpp:100
void SetOnValueChanged(std::function< void(const char *, int)> on_value_changed)
Definition: Combobox.cpp:128
int GetNumberOfItems() const
Definition: Combobox.cpp:92
Definition: PinholeCameraIntrinsic.cpp:16
Definition: Combobox.cpp:32