22#ifndef SDL2PP_WINDOW_HH
23#define SDL2PP_WINDOW_HH
27#include <SDL_version.h>
28#include <SDL_stdinc.h>
31#include <SDL2pp/Point.hh>
32#include <SDL2pp/Export.hh>
78 explicit Window(SDL_Window* window);
95 Window(
const std::string& title,
int x,
int y,
int w,
int h, Uint32 flags);
145 SDL_Window* Get()
const;
156 Point GetSize()
const;
166 int GetWidth()
const;
176 int GetHeight()
const;
187 Point GetDrawableSize()
const;
197 int GetDrawableWidth()
const;
207 int GetDrawableHeight()
const;
219 Window& SetTitle(
const std::string& title);
229 std::string GetTitle()
const;
303 Window& SetFullscreen(Uint32 flags);
316 Window& SetSize(
int w,
int h);
338 float GetBrightness()
const;
352 Window& SetBrightness(
float brightness);
362 Point GetPosition()
const;
375 Window& SetPosition(
int x,
int y);
397 Point GetMinimumSize()
const;
410 Window& SetMinimumSize(
int w,
int h);
432 Point GetMaximumSize()
const;
445 Window& SetMaximumSize(
int w,
int h);
467 bool GetGrab()
const;
479 Window& SetGrab(
bool grabbed);
491 int GetDisplayIndex()
const;
505 void GetDisplayMode(SDL_DisplayMode& mode)
const;
515 Uint32 GetFlags()
const;
541 Window& SetBordered(
bool bordered =
true);
543#if SDL_VERSION_ATLEAST(2, 0, 5)
556 Window& SetOpacity(
float opacity = 1.0f);
568 float GetOpacity()
const;
580 Window& SetResizable(
bool resizable =
true);
2D point
Definition: Point.hh:51
Image stored in system memory with direct access to pixel data.
Definition: Surface.hh:53
GUI window object.
Definition: Window.hh:67
Window & operator=(const Window &other)=delete
Deleted assignment operator.
Window(const Window &other)=delete
Deleted copy constructor.