Skip to content

Commit 915c73c

Browse files
committed
App - Fix WindowGeometry Const
1 parent da4dd4e commit 915c73c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

include/app/windowgeometry.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace Nickvision::App
3535
* @brief Gets the width of the window.
3636
* @return The width of the window
3737
*/
38-
long getWidth();
38+
long getWidth() const;
3939
/**
4040
* @brief Sets the width of the window.
4141
* @param width The new width of the window
@@ -45,7 +45,7 @@ namespace Nickvision::App
4545
* @brief Gets the height of the window.
4646
* @return The height of the window
4747
*/
48-
long getHeight();
48+
long getHeight() const;
4949
/**
5050
* @brief Sets the height of the window.
5151
* @param height The new height of the window
@@ -55,7 +55,7 @@ namespace Nickvision::App
5555
* @brief Gets whether or not the window is maximized.
5656
* @return True if maximized, else false
5757
*/
58-
bool isMaximized();
58+
bool isMaximized() const;
5959
/**
6060
* @brief Sets whether or not the window is maximized.
6161
* @param isMaximized True if maximized, else false
@@ -67,7 +67,7 @@ namespace Nickvision::App
6767
* @param hwnd The window handle to apply the geometry to
6868
* @return True if successful, else false
6969
*/
70-
bool apply(HWND hwnd);
70+
bool apply(HWND hwnd) const;
7171
#endif
7272

7373
private:

src/app/windowgeometry.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace Nickvision::App
2929
}
3030
#endif
3131

32-
long WindowGeometry::getWidth()
32+
long WindowGeometry::getWidth() const
3333
{
3434
return m_width;
3535
}
@@ -39,7 +39,7 @@ namespace Nickvision::App
3939
m_width = width;
4040
}
4141

42-
long WindowGeometry::getHeight()
42+
long WindowGeometry::getHeight() const
4343
{
4444
return m_height;
4545
}
@@ -49,7 +49,7 @@ namespace Nickvision::App
4949
m_height = height;
5050
}
5151

52-
bool WindowGeometry::isMaximized()
52+
bool WindowGeometry::isMaximized() const
5353
{
5454
return m_isMaximized;
5555
}
@@ -60,7 +60,7 @@ namespace Nickvision::App
6060
}
6161

6262
#ifdef _WIN32
63-
bool WindowGeometry::apply(HWND hwnd)
63+
bool WindowGeometry::apply(HWND hwnd) const
6464
{
6565
WINDOWPLACEMENT placement;
6666
GetWindowPlacement(hwnd, &placement);

0 commit comments

Comments
 (0)