Class WindowResource
Defined in File windowResource.h
Class Documentation
-
class WindowResource
Public Functions
-
WindowResource(const char *title, int width, int height)
-
WindowResource(const char *title, int width, int height, Uint32 sdlFlags)
-
WindowResource(const char *title, int x, int y, int width, int height)
-
WindowResource(const char *title, int width, int height, const std::string &iconPath)
-
WindowResource(const char *title, int width, int height, int minWidth, int minHeight, int maxWidth, int maxHeight)
-
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)
-
void getPosition(int *x, int *y)
-
void centerWindow()
-
void setMinSize(int minWidth, int minHeight)
-
void setMaxSize(int maxWidth, int maxHeight)
-
bool isClose() const
-
void close()
-
SDL_Window *getSDLWindow() const
Public Members
-
std::shared_ptr<SDL_Window> sdlWindowPtr
-
bool windowResized = false
-
bool windowMinimized = false
Public Static Functions
-
static WindowResource CreateCentered(const char *title, int width, int height)
-
WindowResource(const char *title, int width, int height)