Gel2D - The free/open source game creation suite

Public Member Functions | Public Attributes
gel::GelSize Class Reference

#include <gelSize.h>

List of all members.

Public Member Functions

 GelSize ()
 Default constructor.
 GelSize (int n)
 Single value constructor.
 GelSize (int w, int h)
 Full constructor.
 GelSize (const GelSize &size)
 Copy constructor.
GelSize operator+ (const GelSize &s) const
GelSize operator- (const GelSize &s) const
GelSize operator* (const GelSize &s) const
GelSize operator/ (const GelSize &s) const
GelSize operator= (const GelSize &s)
GelSize operator+= (const GelSize &s)
GelSize operator-= (const GelSize &s)
GelSize operator*= (const GelSize &s)
GelSize operator/= (const GelSize &s)
bool operator== (const GelSize &s) const
bool operator!= (const GelSize &s) const
bool operator< (const GelSize &s) const
bool operator> (const GelSize &s) const

Public Attributes

int width
 Width.
int height
 Height.

Constructor & Destructor Documentation

gel::GelSize::GelSize ( ) [inline]

Default constructor.

width and height are set to 0.

gel::GelSize::GelSize ( int  n) [inline]

Single value constructor.

Parameters:
n: Value to use for the size's width and height.
gel::GelSize::GelSize ( int  w,
int  h 
) [inline]

Full constructor.

Parameters:
w: The width.
h: The height.
gel::GelSize::GelSize ( const GelSize size) [inline]

Copy constructor.


Member Function Documentation

GelSize gel::GelSize::operator+ ( const GelSize s) const [inline]
GelSize gel::GelSize::operator- ( const GelSize s) const [inline]
GelSize gel::GelSize::operator* ( const GelSize s) const [inline]
GelSize gel::GelSize::operator/ ( const GelSize s) const [inline]
GelSize gel::GelSize::operator= ( const GelSize s) [inline]
GelSize gel::GelSize::operator+= ( const GelSize s) [inline]
GelSize gel::GelSize::operator-= ( const GelSize s) [inline]
GelSize gel::GelSize::operator*= ( const GelSize s) [inline]
GelSize gel::GelSize::operator/= ( const GelSize s) [inline]
bool gel::GelSize::operator== ( const GelSize s) const [inline]
bool gel::GelSize::operator!= ( const GelSize s) const [inline]
bool gel::GelSize::operator< ( const GelSize s) const [inline]
bool gel::GelSize::operator> ( const GelSize s) const [inline]

Member Data Documentation

Width.

Height.


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