6#include "Container.hpp"
8#include "ListElement.hpp"
28 std::vector<std::pair<std::string, std::string>> choices,
29 std::function<
void(std::string)> onSelect,
31 std::string defaultChoice =
"",
32 bool isDarkMode =
false
34 std::vector<std::pair<std::string, std::string>> choices;
35 std::function<void(std::string)> onSelect;
36 std::string selectedChoice;
47 std::vector<std::pair<std::string, std::string>> choices,
48 std::function<
void(std::string)> onSelect,
50 std::string header =
""
56 int curHighlighted = -1;
61 std::vector<std::pair<std::string, std::string>> choices;
62 std::function<void(std::string)> onSelectCallback;
void rebuildUI() override
bool process(InputEvents *event) override
process any input that is received for this element
void render(Element *parent) override
display the current state of the display
void rebuildUI() override
bool process(InputEvents *event)
process any input that is received for this element
Element * parent
the parent element (reference only, not owned)