6 #include "sdl_button.hpp"
19 bool populate(SDL_Renderer* renderer,
const std::vector<std::string>& labels,
20 const std::vector<int>& ids, Sint32 total_width, Sint32 offsetY, Sint32 width,
23 bool update(SDL_Renderer* renderer);
24 SdlButton* get_selected(
const SDL_MouseButtonEvent& button);
25 SdlButton* get_selected(
float x,
float y);
27 bool set_highlight_next(
bool reset =
false);
28 bool set_highlight(
size_t index);
29 bool set_mouseover(
float x,
float y);
34 std::vector<SdlButton> _list;
36 size_t _highlight_index = 0;