40 #ifndef _graphicsresolution_h 
   41 #define _graphicsresolution_h 
   97                 this->Width = ResWidth;
 
   98                 this->Height = ResHeight;
 
  107                 ResStream << this->Width << 
"x" << this->Height;
 
  108                 return ResStream.str();
 
  119                 this->Width = Other.
Width;
 
  120                 this->Height = Other.
Height;
 
  129                 return ( this->Width == Other.
Width && this->Height == Other.
Height );
 
  136                 return ( this->Width != Other.
Width || this->Height != Other.
Height );
 
  143                 if( this->Width == Other.
Width ) {
 
  144                     return ( this->Height < Other.
Height );
 
  146                     return ( this->Width < Other.
Width );
 
  154                 if( this->Width == Other.
Width ) {
 
  155                     return ( this->Height > Other.
Height );
 
  157                     return ( this->Width > Other.
Width );
 
  187                         if( !CurrAttrib.
Empty() )
 
  188                             this->Width = CurrAttrib.
AsWhole();
 
  191                         if( !CurrAttrib.
Empty() )
 
  192                             this->Height = CurrAttrib.
AsWhole();
 
Attribute AppendAttribute(const Char8 *Name)
Creates an Attribute and puts it at the end of this Nodes attributes. 
A light-weight handle for manipulating attributes in DOM tree. 
Boole operator==(const Resolution &Other) const 
Equality comparison operator. 
bool Boole
Generally acts a single bit, true or false. 
void ProtoDeSerialize(const XML::Node &SelfRoot)
Take the data stored in an XML Node and overwrite this object with it. 
Whole Height
The pixel height of the window. 
void ProtoSerialize(XML::Node &ParentNode) const 
Convert this class to an XML::Node ready for serialization. 
Resolution & operator=(const Resolution &Other)
Assignment operator. 
Thrown when the requested identity could not be found. 
#define MEZZ_EXCEPTION(num, desc)
An easy way to throw exceptions with rich information. 
All the definitions for datatypes as well as some basic conversion functions are defined here...
This stores all the basic configuration options a game window supports. 
Thrown when a version is accessed/parsed/required and it cannot work correctly or is missing...
This implements the exception hiearchy for Mezzanine. 
std::stringstream StringStream
A Datatype used for streaming operations with strings. 
String GetAsString() const 
Converts the values of this Resolution to a human readable string. 
The interface for serialization. 
bool SetValue(const Char8 *rhs)
Set the value of this. 
Whole AsWhole(Whole def=0) const 
Attempts to convert the value of the attribute to a Whole and returns the results. 
Whole Width
The pixel width of the window. 
A light-weight handle for manipulating nodes in DOM tree. 
int AsInt(int def=0) const 
Attempts to convert the value of the attribute to an int and returns the results. ...
bool Empty() const 
Is this storing anything at all? 
Resolution()
Blank constructor. 
Boole operator<(const Resolution &Other) const 
Less-than operator. 
static String GetSerializableName()
Get the name of the the XML tag the class will leave behind as its instances are serialized. 
Resolution(const Whole ResWidth, const Whole ResHeight)
Descriptive constructor. 
The bulk of the engine components go in this namspace. 
unsigned long Whole
Whole is an unsigned integer, it will be at least 32bits in size. 
Boole operator>(const Resolution &Other) const 
Greater-than operator. 
const Char8 * Name() const 
ptrdiff_tGet the name of this Node. 
void SerializeError(const String &FailedTo, const String &ClassName, Boole SOrD)
Simply does some string concatenation, then throws an Exception. 
Node AppendChild(NodeType Type=NodeElement)
Creates a Node and makes it a child of this one. 
std::string String
A datatype used to a series of characters. 
Boole operator!=(const Resolution &Other) const 
Inequality comparison operator. 
Attribute GetAttribute(const Char8 *Name) const 
Attempt to get an Attribute on this Node with a given name. 
void SetResolution(const Whole ResWidth, const Whole ResHeight)
Sets the width and height of this resolution. 
~Resolution()
Class destructor.