Gel2D - The free/open source game creation suite

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

#include <gelRect.h>

List of all members.

Public Member Functions

 GelRect ()
 Default constructor.
 GelRect (int _left, int _top, int _width, int _height)
 GelRect constructor.
void set (int _left, int _top, int _width, int _height)
 Sets the rect size.
void toOGLview (int view[4]) const
 Converts the rect to an OpenGL-style viewport.
GelRect operator= (const GelRect &r)
bool operator== (const GelRect &r) const
bool operator!= (const GelRect &r) const

Public Attributes

int left
int top
int width
int height

Constructor & Destructor Documentation

gel::GelRect::GelRect ( ) [inline]

Default constructor.

Assigns zero to all data members.

gel::GelRect::GelRect ( int  _left,
int  _top,
int  _width,
int  _height 
)

GelRect constructor.

Parameters:
_left: X origin.
_top: Y origin.
_width: Width.
_height: Height.

Member Function Documentation

void gel::GelRect::set ( int  _left,
int  _top,
int  _width,
int  _height 
)

Sets the rect size.

Parameters:
_left: X origin.
_top: Y origin.
_width: Width.
_height: Height.
void gel::GelRect::toOGLview ( int  view[4]) const

Converts the rect to an OpenGL-style viewport.

Parameters:
view: An array of 4 integers.
GelRect gel::GelRect::operator= ( const GelRect r) [inline]
bool gel::GelRect::operator== ( const GelRect r) const [inline]
bool gel::GelRect::operator!= ( const GelRect r) const [inline]

Member Data Documentation


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