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_;
ImGuiContext * context
Definition: Window.cpp:76
Definition: ListView.h:19
DrawResult Draw(const DrawContext &context) override
Definition: ListView.cpp:104
void SetOnValueChanged(std::function< void(const char *, bool)> on_value_changed)
Definition: ListView.cpp:70
const char * GetSelectedValue() const
Returns the value of the currently selected item in the list.
Definition: ListView.cpp:49
int GetSelectedIndex() const
Returns the currently selected item in the list.
Definition: ListView.cpp:47
Size CalcMinimumSize(const LayoutContext &context) const override
Definition: ListView.cpp:100
void SetSelectedIndex(int index)
Selects the indicated row of the list. Does not call onValueChanged.
Definition: ListView.cpp:66
virtual ~ListView()
Definition: ListView.cpp:40
void SetMaxVisibleItems(int num)
Definition: ListView.cpp:58
ListView()
Definition: ListView.cpp:36
void SetItems(const std::vector< std::string > &items)
Definition: ListView.cpp:42
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
Definition: ListView.cpp:75
Definition: PinholeCameraIntrinsic.cpp:16
Definition: ListView.cpp:28