libnick 2024.12.0
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
windowgeometry.h
Go to the documentation of this file.
1
23#ifndef WINDOWGEOMETRY_H
24#define WINDOWGEOMETRY_H
25
26#ifdef _WIN32
27#include <windows.h>
28#endif
29
30namespace Nickvision::App
31{
36 {
37 public:
48 WindowGeometry(long width, long height, bool isMaximized);
49#ifdef _WIN32
54 WindowGeometry(HWND hwnd);
55#endif
60 long getWidth() const;
65 void setWidth(long width);
70 long getHeight() const;
75 void setHeight(long height);
80 bool isMaximized() const;
86#ifdef _WIN32
92 bool apply(HWND hwnd) const;
93#endif
94
95 private:
96 long m_width;
97 long m_height;
98 bool m_isMaximized;
99 };
100}
101
102#endif //WINDOWGEOMETRY_H
A model of a window's geometry.
Definition windowgeometry.h:36
void setIsMaximized(bool isMaximized)
Sets whether or not the window is maximized.
void setWidth(long width)
Sets the width of the window.
WindowGeometry()
Construct a WindowGeometry.
WindowGeometry(long width, long height, bool isMaximized)
Construct a WindowGeometry.
void setHeight(long height)
Sets the height of the window.
long getWidth() const
Gets the width of the window.
bool isMaximized() const
Gets whether or not the window is maximized.
long getHeight() const
Gets the height of the window.
Definition appinfo.h:32