FreeRDP
SdlButton Class Reference

#include <sdl_button.hpp>

Inheritance diagram for SdlButton:
Collaboration diagram for SdlButton:

Public Member Functions

 SdlButton (SDL_Renderer *renderer, const std::string &label, int id, const SDL_Rect &rect)
 
 SdlButton (SdlButton &&other) noexcept
 
 ~SdlButton () override=default
 
bool highlight (SDL_Renderer *renderer)
 
bool mouseover (SDL_Renderer *renderer)
 
bool update (SDL_Renderer *renderer)
 
int id () const
 
- Public Member Functions inherited from SdlWidget
 SdlWidget (SDL_Renderer *renderer, const SDL_Rect &rect, bool input)
 
 SdlWidget (SDL_Renderer *renderer, const SDL_Rect &rect, SDL_RWops *ops)
 
 SdlWidget (SdlWidget &&other) noexcept
 
virtual ~SdlWidget ()
 
bool fill (SDL_Renderer *renderer, SDL_Color color)
 
bool fill (SDL_Renderer *renderer, const std::vector< SDL_Color > &colors)
 
bool update_text (SDL_Renderer *renderer, const std::string &text, SDL_Color fgcolor)
 
bool update_text (SDL_Renderer *renderer, const std::string &text, SDL_Color fgcolor, SDL_Color bgcolor)
 
bool wrap () const
 
bool set_wrap (bool wrap=true, size_t width=0)
 
const SDL_Rect & rect () const
 

Additional Inherited Members

- Static Public Member Functions inherited from SdlWidget
static bool error_ex (Uint32 res, const char *what, const char *file, size_t line, const char *fkt)
 

Constructor & Destructor Documentation

◆ SdlButton() [1/2]

SdlButton::SdlButton ( SDL_Renderer *  renderer,
const std::string &  label,
int  id,
const SDL_Rect &  rect 
)
Here is the call graph for this function:

◆ SdlButton() [2/2]

SdlButton::SdlButton ( SdlButton &&  other)
noexcept

◆ ~SdlButton()

SdlButton::~SdlButton ( )
overridedefault

Member Function Documentation

◆ highlight()

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

◆ id()

int SdlButton::id ( ) const

◆ mouseover()

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

◆ update()

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

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