libnick 2024.12.0
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
Nickvision::App::WindowGeometry Class Reference

A model of a window's geometry. More...

#include <windowgeometry.h>

Public Member Functions

 WindowGeometry ()
 Construct a WindowGeometry.
 
 WindowGeometry (long width, long height, bool isMaximized)
 Construct a WindowGeometry.
 
long getWidth () const
 Gets the width of the window.
 
void setWidth (long width)
 Sets the width of the window.
 
long getHeight () const
 Gets the height of the window.
 
void setHeight (long height)
 Sets the height of the window.
 
bool isMaximized () const
 Gets whether or not the window is maximized.
 
void setIsMaximized (bool isMaximized)
 Sets whether or not the window is maximized.
 

Detailed Description

A model of a window's geometry.

Constructor & Destructor Documentation

◆ WindowGeometry() [1/2]

Nickvision::App::WindowGeometry::WindowGeometry ( )

Construct a WindowGeometry.

◆ WindowGeometry() [2/2]

Nickvision::App::WindowGeometry::WindowGeometry ( long width,
long height,
bool isMaximized )

Construct a WindowGeometry.

Parameters
widthThe width of the window
heightThe height of the window
isMaximizedWhether or not the window is maximized

Member Function Documentation

◆ getHeight()

long Nickvision::App::WindowGeometry::getHeight ( ) const

Gets the height of the window.

Returns
The height of the window

◆ getWidth()

long Nickvision::App::WindowGeometry::getWidth ( ) const

Gets the width of the window.

Returns
The width of the window

◆ isMaximized()

bool Nickvision::App::WindowGeometry::isMaximized ( ) const

Gets whether or not the window is maximized.

Returns
True if maximized, else false

◆ setHeight()

void Nickvision::App::WindowGeometry::setHeight ( long height)

Sets the height of the window.

Parameters
heightThe new height of the window

◆ setIsMaximized()

void Nickvision::App::WindowGeometry::setIsMaximized ( bool isMaximized)

Sets whether or not the window is maximized.

Parameters
isMaximizedTrue if maximized, else false

◆ setWidth()

void Nickvision::App::WindowGeometry::setWidth ( long width)

Sets the width of the window.

Parameters
widthThe new width of the window

The documentation for this class was generated from the following file: