16 namespace visualization {
26 void SetItems(
const std::vector<std::string>& items);
50 std::function<
void(
const char*,
bool)> on_value_changed);
54 std::unique_ptr<Impl> impl_;
DrawResult Draw(const DrawContext &context) override
void SetOnValueChanged(std::function< void(const char *, bool)> on_value_changed)
const char * GetSelectedValue() const
Returns the value of the currently selected item in the list.
int GetSelectedIndex() const
Returns the currently selected item in the list.
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
void SetMaxVisibleItems(int num)
Size CalcMinimumSize(const LayoutContext &context) const override
void SetItems(const std::vector< std::string > &items)
void SetSelectedIndex(int index)
Selects the indicated row of the list. Does not call onValueChanged.
Generic file read and write utility for python interface.