ScummVM API documentation
Saga2::Rect16 Class Reference

Public Member Functions

 Rect16 (int16 nx, int16 ny, int16 nw, int16 nh)
 
 Rect16 (Point16 a, int16 nw, int16 nh)
 
 Rect16 (Point16 a, Point16 b)
 
 Rect16 (StaticRect r)
 
void read (Common::InSaveFile *in)
 
void write (Common::MemoryWriteStreamDynamic *out)
 
void operator+= (Point16 a)
 
void operator-= (Point16 a)
 
void normalize ()
 
void expand (int16 dx, int16 dy)
 
void expand (int16 left, int16 top, int16 right, int16 bottom)
 
int empty () const
 
bool ptInside (int16 px, int16 py) const
 
bool ptInside (const Point16 p) const
 
bool overlap (const Rect16 &r) const
 

Public Attributes

int16 x
 
int16 y
 
int16 width
 
int16 height
 

Friends

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

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