28 SdlWindow(
const std::string& title, Sint32 startupX, Sint32 startupY, Sint32 width,
29 Sint32 height, Uint32 flags);
37 [[nodiscard]] Uint32 id()
const;
38 [[nodiscard]]
int displayIndex()
const;
39 [[nodiscard]] SDL_Rect rect()
const;
40 [[nodiscard]] SDL_Window* window()
const;
42 [[nodiscard]] Sint32 offsetX()
const;
43 void setOffsetX(Sint32 x);
45 void setOffsetY(Sint32 y);
46 [[nodiscard]] Sint32 offsetY()
const;
48 bool grabKeyboard(
bool enable);
49 bool grabMouse(
bool enable);
50 void setBordered(
bool bordered);
52 void resizeable(
bool use);
53 void fullscreen(
bool enter);
56 bool fill(Uint8 r = 0x00, Uint8 g = 0x00, Uint8 b = 0x00, Uint8 a = 0xff);
57 bool blit(SDL_Surface* surface, SDL_Rect src, SDL_Rect& dst);
61 SDL_Window* _window =
nullptr;
SdlWindow(const std::string &title, Sint32 startupX, Sint32 startupY, Sint32 width, Sint32 height, Uint32 flags)