35 namespace visualization {
45 void SetItems(
const std::vector<std::string>& items);
61 std::function<
void(
const char*,
bool)> on_value_changed);
65 std::unique_ptr<Impl> impl_;
void SetItems(const std::vector< std::string > &items)
Definition: ListView.cpp:62
void SetSelectedIndex(int index)
Selects the indicated row of the list. Does not call onValueChanged.
Definition: ListView.cpp:78
ListView()
Definition: ListView.cpp:54
int GetSelectedIndex() const
Returns the currently selected item in the list.
Definition: ListView.cpp:67
void SetOnValueChanged(std::function< void(const char *, bool)> on_value_changed)
Definition: ListView.cpp:82
Definition: ListView.cpp:47
Size CalcPreferredSize(const Theme &theme) const override
Definition: ListView.cpp:87
Definition: PinholeCameraIntrinsic.cpp:35
DrawResult Draw(const DrawContext &context) override
Definition: ListView.cpp:101
virtual ~ListView()
Definition: ListView.cpp:60
const char * GetSelectedValue() const
Returns the value of the currently selected item in the list.
Definition: ListView.cpp:69
Definition: ListView.h:38