This stores all the basic configuration options a game window supports. More...
#include <resolution.h>
Public Member Functions | |
Resolution () | |
Blank constructor. | |
Resolution (const Whole ResWidth, const Whole ResHeight) | |
Descriptive constructor. More... | |
~Resolution () | |
Class destructor. | |
String | GetAsString () const |
Converts the values of this Resolution to a human readable string. More... | |
Boole | operator!= (const Resolution &Other) const |
Inequality comparison operator. More... | |
Boole | operator< (const Resolution &Other) const |
Less-than operator. More... | |
Resolution & | operator= (const Resolution &Other) |
Assignment operator. More... | |
Boole | operator== (const Resolution &Other) const |
Equality comparison operator. More... | |
Boole | operator> (const Resolution &Other) const |
Greater-than operator. More... | |
void | ProtoDeSerialize (const XML::Node &SelfRoot) |
Take the data stored in an XML Node and overwrite this object with it. More... | |
void | ProtoSerialize (XML::Node &ParentNode) const |
Convert this class to an XML::Node ready for serialization. More... | |
void | SetResolution (const Whole ResWidth, const Whole ResHeight) |
Sets the width and height of this resolution. More... | |
Static Public Member Functions | |
static String | GetSerializableName () |
Get the name of the the XML tag the class will leave behind as its instances are serialized. More... | |
Public Attributes | |
Whole | Height |
The pixel height of the window. | |
Whole | Width |
The pixel width of the window. | |
This stores all the basic configuration options a game window supports.
Definition at line 57 of file resolution.h.
Descriptive constructor.
ResWidth | The pixel width of the window. |
ResHeight | The pixel height of the window. |
Definition at line 80 of file resolution.h.
|
inline |
Converts the values of this Resolution to a human readable string.
Definition at line 104 of file resolution.h.
|
inlinestatic |
Get the name of the the XML tag the class will leave behind as its instances are serialized.
Definition at line 202 of file resolution.h.
|
inline |
Inequality comparison operator.
Other | The other Resolution to compare with. |
Definition at line 134 of file resolution.h.
|
inline |
Less-than operator.
Other | The other Resolution to compare with. |
Definition at line 141 of file resolution.h.
|
inline |
Assignment operator.
Other | The other Resolution to copy from. |
Definition at line 117 of file resolution.h.
|
inline |
Equality comparison operator.
Other | The other Resolution to compare with. |
Definition at line 127 of file resolution.h.
|
inline |
Greater-than operator.
Other | The other Resolution to compare with. |
Definition at line 152 of file resolution.h.
|
inline |
Take the data stored in an XML Node and overwrite this object with it.
SelfRoot | An XML::Node containing the data to populate this class with. |
Definition at line 181 of file resolution.h.
|
inline |
Convert this class to an XML::Node ready for serialization.
ParentNode | The point in the XML hierarchy that all this Resolution should be appended to. |
Definition at line 166 of file resolution.h.
|
inline |
Sets the width and height of this resolution.
ResWidth | The pixel width of the window. |
ResHeight | The pixel height of the window. |
Definition at line 95 of file resolution.h.