22 #include <winpr/synch.h>
23 #include <winpr/wlog.h>
55 [[nodiscard]]
bool isSet()
const;
57 [[nodiscard]] HANDLE handle()
const;
65 SDL_USEREVENT_UPDATE = SDL_USEREVENT + 1,
66 SDL_USEREVENT_CREATE_WINDOWS,
67 SDL_USEREVENT_WINDOW_RESIZEABLE,
68 SDL_USEREVENT_WINDOW_FULLSCREEN,
69 SDL_USEREVENT_WINDOW_MINIMIZE,
70 SDL_USEREVENT_POINTER_NULL,
71 SDL_USEREVENT_POINTER_DEFAULT,
72 SDL_USEREVENT_POINTER_POSITION,
73 SDL_USEREVENT_POINTER_SET,
75 SDL_USEREVENT_CERT_DIALOG,
76 SDL_USEREVENT_SHOW_DIALOG,
77 SDL_USEREVENT_AUTH_DIALOG,
78 SDL_USEREVENT_SCARD_DIALOG,
79 SDL_USEREVENT_RETRY_DIALOG,
81 SDL_USEREVENT_CERT_RESULT,
82 SDL_USEREVENT_SHOW_RESULT,
83 SDL_USEREVENT_AUTH_RESULT,
84 SDL_USEREVENT_SCARD_RESULT
98 BOOL sdl_push_user_event(Uint32 type, ...);
100 bool sdl_push_quit();
102 std::string sdl_window_event_str(Uint8 ev);
103 const char* sdl_event_type_str(Uint32 type);
104 const char* sdl_error_string(Uint32 res);
106 #define sdl_log_error(res, log, what) sdl_log_error_ex(res, log, what, __FILE__, __LINE__, __func__)
107 BOOL sdl_log_error_ex(Uint32 res, wLog* log,
const char* what,
const char* file,
size_t line,