47  bool setTitle(
const char* fmt, ...);
 
   48  bool showInfo(
const char* fmt, ...);
 
   49  bool showWarn(
const char* fmt, ...);
 
   50  bool showError(
const char* fmt, ...);
 
   56  bool wait(
bool ignoreRdpContextQuit = 
false);
 
   58  bool handle(
const SDL_Event& event);
 
   77  static bool clearWindow(SDL_Renderer* renderer);
 
   79  bool update(SDL_Renderer* renderer);
 
   81  bool show(MsgType type, 
const char* fmt, va_list ap);
 
   82  bool show(MsgType type);
 
   84  static std::string print(
const char* fmt, va_list ap);
 
   85  bool setTimer(Uint32 timeoutMS = 15000);
 
   88  static Uint32 timeout(Uint32 intervalMS, 
void* pvthis);
 
   92    SDL_Color fgcolor = {};
 
   93    SDL_Color bgcolor = {};
 
   97  rdpContext* _context = 
nullptr;
 
   98  SDL_Window* _window = 
nullptr;
 
   99  SDL_Renderer* _renderer = 
nullptr;
 
  100  mutable std::mutex _mux;
 
  103  MsgType _type = MSG_NONE;
 
  104  MsgType _type_active = MSG_NONE;
 
  105  SDL_TimerID _timer = -1;
 
  106  bool _running = 
false;
 
  107  std::vector<widget_cfg_t> _list;