26#include "sdl_widget_list.hpp"
27#include "sdl_input.hpp"
28#include "sdl_buttons.hpp"
34 const std::vector<std::string>& initial,
const std::vector<Uint32>& flags);
43 int run(std::vector<std::string>& result);
46 bool update(std::shared_ptr<SDL_Renderer>& renderer);
47 ssize_t get_index(
const SDL_MouseButtonEvent& button);
52 INPUT_BUTTON_ACCEPT = 1,
53 INPUT_BUTTON_CANCEL = -2
56 ssize_t next(ssize_t current);
57 [[nodiscard]]
bool valid(ssize_t current)
const;
58 std::shared_ptr<SdlInputWidget> get(ssize_t index);
60 std::vector<std::shared_ptr<SdlInputWidget>> _list;