ScummVM API documentation
Saga2::Rect32 Class Reference

Public Member Functions

 Rect32 (int32 nx, int32 ny, int32 nw, int32 nh)
 
 Rect32 (Point16 a, int32 nw, int32 nh)
 
 Rect32 (Point16 a, Point16 b)
 
 Rect32 (Point32 a, int32 nw, int32 nh)
 
 Rect32 (Point32 a, Point32 b)
 
 Rect32 (Rect16 r)
 
 operator Rect16 ()
 
void operator+= (Point16 a)
 
void operator-= (Point16 a)
 
void operator+= (Point32 a)
 
void operator-= (Point32 a)
 
void normalize ()
 
void expand (int32 dx, int32 dy)
 
void expand (int32 left, int32 top, int32 right, int32 bottom)
 
int empty () const
 
bool ptInside (int32 px, int32 py) const
 
bool ptInside (const Point16 p) const
 
bool overlap (const Rect32 &r) const
 

Public Attributes

int32 x
 
int32 y
 
int32 width
 
int32 height
 

Friends

int operator== (Rect32 a, Rect32 b)
 
int operator!= (Rect32 a, Rect32 b)
 
Rect32 operator+ (Rect32 a, Point16 b)
 
Rect32 operator+ (Point16 b, Rect32 a)
 
Rect32 operator- (Rect32 a, Point16 b)
 
Rect32 operator+ (Point32 b, Rect32 a)
 
Rect32 operator- (Rect32 a, Point32 b)
 

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