GClasses

GClasses::GRect Class Reference

Represents a rectangular region with integers. More...

#include <GRect.h>

List of all members.

Public Member Functions

 GRect ()
 GRect (int _x, int _y, int _w, int _h)
void set (int _x, int _y, int _w, int _h)
 Sets all 4 values in this rect.
bool doesInclude (int _x, int _y)
 Returns true of this rect includes the specified point.
void clip (GRect *pClippingRect)
 Clips this rect to fit within pClippingRect.

Public Attributes

int x
int y
int w
int h

Detailed Description

Represents a rectangular region with integers.


Constructor & Destructor Documentation

GClasses::GRect::GRect ( ) [inline]
GClasses::GRect::GRect ( int  _x,
int  _y,
int  _w,
int  _h 
) [inline]

Member Function Documentation

void GClasses::GRect::clip ( GRect pClippingRect)

Clips this rect to fit within pClippingRect.

bool GClasses::GRect::doesInclude ( int  _x,
int  _y 
) [inline]

Returns true of this rect includes the specified point.

void GClasses::GRect::set ( int  _x,
int  _y,
int  _w,
int  _h 
) [inline]

Sets all 4 values in this rect.


Member Data Documentation