44 void SetItems(
const std::vector<std::string>& items);
60 std::function<
void(
const char*,
bool)> on_value_changed);
64 std::unique_ptr<Impl> impl_;
DrawResult Draw(const DrawContext &context) override
Definition: ListView.cpp:98
void SetItems(const std::vector< std::string > &items)
Definition: ListView.cpp:59
Definition: ListView.cpp:44
void SetOnValueChanged(std::function< void(const char *, bool)> on_value_changed)
Definition: ListView.cpp:79
const char * GetSelectedValue() const
Returns the value of the currently selected item in the list.
Definition: ListView.cpp:66
ListView()
Definition: ListView.cpp:51
Definition: ListView.h:37
void SetSelectedIndex(int index)
Selects the indicated row of the list. Does not call onValueChanged.
Definition: ListView.cpp:75
virtual ~ListView()
Definition: ListView.cpp:57
Definition: Open3DViewer.h:29
Size CalcPreferredSize(const Theme &theme) const override
Definition: ListView.cpp:84
int GetSelectedIndex() const
Returns the currently selected item in the list.
Definition: ListView.cpp:64