#include <sdl_buttons.hpp>
|
| SdlButtonList ()=default |
|
virtual | ~SdlButtonList ()=default |
|
bool | populate (SDL_Renderer *renderer, const std::vector< std::string > &labels, const std::vector< int > &ids, Sint32 total_width, Sint32 offsetY, Sint32 width, Sint32 heigth) |
|
bool | update (SDL_Renderer *renderer) |
|
SdlButton * | get_selected (const SDL_MouseButtonEvent &button) |
|
SdlButton * | get_selected (Sint32 x, Sint32 y) |
|
bool | set_highlight_next (bool reset=false) |
|
bool | set_highlight (size_t index) |
|
bool | set_mouseover (Sint32 x, Sint32 y) |
|
void | clear () |
|
| SdlButtonList ()=default |
|
virtual | ~SdlButtonList ()=default |
|
bool | populate (SDL_Renderer *renderer, const std::vector< std::string > &labels, const std::vector< int > &ids, Sint32 total_width, Sint32 offsetY, Sint32 width, Sint32 heigth) |
|
bool | update (SDL_Renderer *renderer) |
|
SdlButton * | get_selected (const SDL_MouseButtonEvent &button) |
|
SdlButton * | get_selected (Sint32 x, Sint32 y) |
|
bool | set_highlight_next (bool reset=false) |
|
bool | set_highlight (size_t index) |
|
bool | set_mouseover (Sint32 x, Sint32 y) |
|
void | clear () |
|
◆ SdlButtonList() [1/2]
SdlButtonList::SdlButtonList |
( |
| ) |
|
|
default |
◆ ~SdlButtonList() [1/2]
virtual SdlButtonList::~SdlButtonList |
( |
| ) |
|
|
virtualdefault |
◆ SdlButtonList() [2/2]
SdlButtonList::SdlButtonList |
( |
| ) |
|
|
default |
◆ ~SdlButtonList() [2/2]
virtual SdlButtonList::~SdlButtonList |
( |
| ) |
|
|
virtualdefault |
◆ clear() [1/2]
void SdlButtonList::clear |
( |
| ) |
|
◆ clear() [2/2]
void SdlButtonList::clear |
( |
| ) |
|
◆ get_selected() [1/4]
SdlButton * SdlButtonList::get_selected |
( |
const SDL_MouseButtonEvent & |
button | ) |
|
◆ get_selected() [2/4]
SdlButton* SdlButtonList::get_selected |
( |
const SDL_MouseButtonEvent & |
button | ) |
|
◆ get_selected() [3/4]
SdlButton * SdlButtonList::get_selected |
( |
Sint32 |
x, |
|
|
Sint32 |
y |
|
) |
| |
◆ get_selected() [4/4]
SdlButton* SdlButtonList::get_selected |
( |
Sint32 |
x, |
|
|
Sint32 |
y |
|
) |
| |
◆ populate() [1/2]
bool SdlButtonList::populate |
( |
SDL_Renderer * |
renderer, |
|
|
const std::vector< std::string > & |
labels, |
|
|
const std::vector< int > & |
ids, |
|
|
Sint32 |
total_width, |
|
|
Sint32 |
offsetY, |
|
|
Sint32 |
width, |
|
|
Sint32 |
heigth |
|
) |
| |
◆ populate() [2/2]
bool SdlButtonList::populate |
( |
SDL_Renderer * |
renderer, |
|
|
const std::vector< std::string > & |
labels, |
|
|
const std::vector< int > & |
ids, |
|
|
Sint32 |
total_width, |
|
|
Sint32 |
offsetY, |
|
|
Sint32 |
width, |
|
|
Sint32 |
heigth |
|
) |
| |
◆ set_highlight() [1/2]
bool SdlButtonList::set_highlight |
( |
size_t |
index | ) |
|
◆ set_highlight() [2/2]
bool SdlButtonList::set_highlight |
( |
size_t |
index | ) |
|
◆ set_highlight_next() [1/2]
◆ set_highlight_next() [2/2]
◆ set_mouseover() [1/2]
bool SdlButtonList::set_mouseover |
( |
Sint32 |
x, |
|
|
Sint32 |
y |
|
) |
| |
◆ set_mouseover() [2/2]
bool SdlButtonList::set_mouseover |
( |
Sint32 |
x, |
|
|
Sint32 |
y |
|
) |
| |
◆ update() [1/2]
bool SdlButtonList::update |
( |
SDL_Renderer * |
renderer | ) |
|
◆ update() [2/2]
bool SdlButtonList::update |
( |
SDL_Renderer * |
renderer | ) |
|
The documentation for this class was generated from the following files: