25#include <freerdp/settings_types.h>
30 SdlWindow(
const std::string& title, Sint32 startupX, Sint32 startupY, Sint32 width,
31 Sint32 height, Uint32 flags);
39 [[nodiscard]] Uint32 id()
const;
40 [[nodiscard]] SDL_DisplayID displayIndex()
const;
41 [[nodiscard]] SDL_Rect rect()
const;
42 [[nodiscard]] SDL_Window* window()
const;
44 [[nodiscard]] Sint32 offsetX()
const;
45 void setOffsetX(Sint32 x);
47 void setOffsetY(Sint32 y);
48 [[nodiscard]] Sint32 offsetY()
const;
52 bool grabKeyboard(
bool enable);
53 bool grabMouse(
bool enable);
54 void setBordered(
bool bordered);
56 void resizeable(
bool use);
57 void fullscreen(
bool enter);
60 bool fill(Uint8 r = 0x00, Uint8 g = 0x00, Uint8 b = 0x00, Uint8 a = 0xff);
61 bool blit(SDL_Surface* surface,
const SDL_Rect& src, SDL_Rect& dst);
65 static UINT32 orientaion_to_rdp(SDL_DisplayOrientation orientation);
68 SDL_Window* _window =
nullptr;