FreeRDP
SdlButtonList Class Reference

#include <sdl_buttons.hpp>

Public Member Functions

 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)
 
SdlButtonget_selected (const SDL_MouseButtonEvent &button)
 
SdlButtonget_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 ()
 

Constructor & Destructor Documentation

◆ SdlButtonList()

SdlButtonList::SdlButtonList ( )
default

◆ ~SdlButtonList()

virtual SdlButtonList::~SdlButtonList ( )
virtualdefault

Member Function Documentation

◆ clear()

void SdlButtonList::clear ( )
Here is the caller graph for this function:

◆ get_selected() [1/2]

SdlButton * SdlButtonList::get_selected ( const SDL_MouseButtonEvent &  button)
Here is the caller graph for this function:

◆ get_selected() [2/2]

SdlButton * SdlButtonList::get_selected ( Sint32  x,
Sint32  y 
)
Here is the call graph for this function:

◆ populate()

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 
)
Here is the caller graph for this function:

◆ set_highlight()

bool SdlButtonList::set_highlight ( size_t  index)
Here is the caller graph for this function:

◆ set_highlight_next()

bool SdlButtonList::set_highlight_next ( bool  reset = false)
Here is the caller graph for this function:

◆ set_mouseover()

bool SdlButtonList::set_mouseover ( Sint32  x,
Sint32  y 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

bool SdlButtonList::update ( SDL_Renderer *  renderer)
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: