Class Window
Defined in File Window.h
Class Documentation
-
class Window
Public Functions
-
Window(const char *title, int width, int height)
-
Window(const char *title, int width, int height, Uint32 sdlFlags)
-
Window(const char *title, int x, int y, int width, int height)
-
Window(const char *title, int width, int height, const std::string &iconPath)
-
Window(const char *title, int width, int height, int minWidth, int minHeight, int maxWidth, int maxHeight)
-
~Window()
-
const char *getTitle() const
-
void setTitle(const char *title)
-
int getWidth()
-
int getHeight()
-
void getSize(int *width, int *height)
-
void setWidth(int width)
-
void setHeight(int height)
-
void setSize(int width, int height)
-
void setFullscreen(bool enabled)
-
void setBorderless(bool enabled)
-
void setResizable(bool enabled)
-
void setGrabMouse(bool enabled)
-
bool isFullscreen() const
-
bool isBorderless() const
-
bool isResizable() const
-
bool isGrabMouse() const
-
void setPosition(int x, int y)
-
std::pair<int, int> getPosition() const
-
void centerWindow()
-
void setMinSize(int minWidth, int minHeight)
-
void setMaxSize(int maxWidth, int maxHeight)
-
bool shouldClose() const
-
void setCloseRequested(bool value)
-
void handleEvents()
-
void clear()
-
void update()
-
void destroy()
-
Window(const char *title, int width, int height)