FreeRDP
SdlWidget Class Reference

#include <sdl_widget.hpp>

Inheritance diagram for SdlWidget:

Public Member Functions

 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
 

Static Public Member Functions

static bool error_ex (Uint32 res, const char *what, const char *file, size_t line, const char *fkt)
 

Constructor & Destructor Documentation

◆ SdlWidget() [1/3]

SdlWidget::SdlWidget ( SDL_Renderer *  renderer,
const SDL_Rect &  rect,
bool  input 
)
Here is the call graph for this function:

◆ SdlWidget() [2/3]

SdlWidget::SdlWidget ( SDL_Renderer *  renderer,
const SDL_Rect &  rect,
SDL_RWops *  ops 
)

◆ SdlWidget() [3/3]

SdlWidget::SdlWidget ( SdlWidget &&  other)
noexcept

◆ ~SdlWidget()

SdlWidget::~SdlWidget ( )
virtual

Member Function Documentation

◆ error_ex()

bool SdlWidget::error_ex ( Uint32  res,
const char *  what,
const char *  file,
size_t  line,
const char *  fkt 
)
static
Here is the call graph for this function:

◆ fill() [1/2]

bool SdlWidget::fill ( SDL_Renderer *  renderer,
const std::vector< SDL_Color > &  colors 
)
Here is the call graph for this function:

◆ fill() [2/2]

bool SdlWidget::fill ( SDL_Renderer *  renderer,
SDL_Color  color 
)
Here is the caller graph for this function:

◆ rect()

const SDL_Rect & SdlWidget::rect ( ) const
Here is the caller graph for this function:

◆ set_wrap()

bool SdlWidget::set_wrap ( bool  wrap = true,
size_t  width = 0 
)
Here is the call graph for this function:

◆ update_text() [1/2]

bool SdlWidget::update_text ( SDL_Renderer *  renderer,
const std::string &  text,
SDL_Color  fgcolor 
)
Here is the caller graph for this function:

◆ update_text() [2/2]

bool SdlWidget::update_text ( SDL_Renderer *  renderer,
const std::string &  text,
SDL_Color  fgcolor,
SDL_Color  bgcolor 
)
Here is the call graph for this function:

◆ wrap()

bool SdlWidget::wrap ( ) const
Here is the caller graph for this function:

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