PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Public Member Functions | Friends | List of all members
PGE_Rect Class Reference

Public Member Functions

 PGE_Rect (int x, int y, int w, int h)
 
 PGE_Rect (const PGE_Rect &r)
 
 PGE_Rect (const PGE_RectF &r)
 
void setRect (int x, int y, int w, int h)
 
void setPos (int x, int y)
 
void setSize (int w, int h)
 
void setLeft (int l)
 
void setRight (int r)
 
void setTop (int t)
 
void setBottom (int b)
 
void setX (int x)
 
void setY (int y)
 
void setWidth (int w)
 
void setHeight (int h)
 
void setTopLeft (PGE_Point p)
 
void setTopRight (PGE_Point p)
 
void setBottomRight (PGE_Point p)
 
void setBottomLeft (PGE_Point p)
 
void setTopLeft (int l, int t)
 
void setTopRight (int r, int t)
 
void setBottomRight (int r, int b)
 
void setBottomLeft (int l, int b)
 
int x ()
 
int y ()
 
int left ()
 
int top ()
 
int bottom ()
 
int right ()
 
int width ()
 
int height ()
 
PGE_Point center ()
 
PGE_Size size ()
 
bool collidePoint (int x, int y)
 
bool collideRect (int x, int y, int w, int h)
 
bool collideRect (PGE_Rect &rect)
 
bool collideRect (PGE_RectF &rect)
 

Friends

class PGE_RectF
 

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