22 #include <winpr/synch.h>
23 #include <winpr/wlog.h>
31 template <
typename T>
using deleted_unique_ptr = std::unique_ptr<T, std::function<void(T*)>>;
59 [[nodiscard]]
bool isSet()
const;
61 [[nodiscard]] HANDLE handle()
const;
69 SDL_EVENT_USER_UPDATE = SDL_EVENT_USER + 1,
70 SDL_EVENT_USER_CREATE_WINDOWS,
71 SDL_EVENT_USER_WINDOW_RESIZEABLE,
72 SDL_EVENT_USER_WINDOW_FULLSCREEN,
73 SDL_EVENT_USER_WINDOW_MINIMIZE,
74 SDL_EVENT_USER_POINTER_NULL,
75 SDL_EVENT_USER_POINTER_DEFAULT,
76 SDL_EVENT_USER_POINTER_POSITION,
77 SDL_EVENT_USER_POINTER_SET,
79 SDL_EVENT_USER_CERT_DIALOG,
80 SDL_EVENT_USER_SHOW_DIALOG,
81 SDL_EVENT_USER_AUTH_DIALOG,
82 SDL_EVENT_USER_SCARD_DIALOG,
83 SDL_EVENT_USER_RETRY_DIALOG,
85 SDL_EVENT_USER_CERT_RESULT,
86 SDL_EVENT_USER_SHOW_RESULT,
87 SDL_EVENT_USER_AUTH_RESULT,
88 SDL_EVENT_USER_SCARD_RESULT
102 BOOL sdl_push_user_event(Uint32 type, ...);
104 bool sdl_push_quit();
106 std::string sdl_window_event_str(Uint32 ev);
107 const char* sdl_event_type_str(Uint32 type);
108 const char* sdl_error_string(Uint32 res);
110 #define sdl_log_error(res, log, what) sdl_log_error_ex(res, log, what, __FILE__, __LINE__, __func__)
111 BOOL sdl_log_error_ex(Uint32 res, wLog* log,
const char* what,
const char* file,
size_t line,