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 (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
 
 SdlWidget (SDL_Renderer *renderer, const SDL_FRect &rect, bool input)
 
 SdlWidget (SDL_Renderer *renderer, const SDL_FRect &rect, SDL_IOStream *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_FRect & rect () const
 

Static Public Member Functions

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

Constructor & Destructor Documentation

◆ SdlWidget() [1/5]

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

◆ SdlWidget() [2/5]

SdlWidget::SdlWidget ( SdlWidget &&  other)
noexcept

◆ ~SdlWidget() [1/2]

SdlWidget::~SdlWidget ( )
virtual

◆ SdlWidget() [3/5]

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

◆ SdlWidget() [4/5]

SdlWidget::SdlWidget ( SDL_Renderer *  renderer,
const SDL_FRect &  rect,
SDL_IOStream *  ops 
)

◆ SdlWidget() [5/5]

SdlWidget::SdlWidget ( SdlWidget &&  other)
noexcept

◆ ~SdlWidget() [2/2]

virtual SdlWidget::~SdlWidget ( )
virtual

Member Function Documentation

◆ error_ex() [1/2]

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:

◆ error_ex() [2/2]

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

◆ fill() [1/4]

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

◆ fill() [2/4]

bool SdlWidget::fill ( SDL_Renderer *  renderer,
const std::vector< SDL_Color > &  colors 
)

◆ fill() [3/4]

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

◆ fill() [4/4]

bool SdlWidget::fill ( SDL_Renderer *  renderer,
SDL_Color  color 
)

◆ rect() [1/2]

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

◆ rect() [2/2]

const SDL_FRect& SdlWidget::rect ( ) const

◆ set_wrap() [1/2]

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

◆ set_wrap() [2/2]

bool SdlWidget::set_wrap ( bool  wrap = true,
size_t  width = 0 
)

◆ update_text() [1/4]

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/4]

bool SdlWidget::update_text ( SDL_Renderer *  renderer,
const std::string &  text,
SDL_Color  fgcolor 
)

◆ update_text() [3/4]

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:

◆ update_text() [4/4]

bool SdlWidget::update_text ( SDL_Renderer *  renderer,
const std::string &  text,
SDL_Color  fgcolor,
SDL_Color  bgcolor 
)

◆ wrap() [1/2]

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

◆ wrap() [2/2]

bool SdlWidget::wrap ( ) const

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