ScummVM API documentation
TeenAgent::Rect Struct Reference

Public Member Functions

 Rect (const Common::Rect &r)
 
 Rect (uint16 l, uint16 t, uint16 r, uint16 b)
 
bool in (const Common::Point &point) const
 
Common::Point center () const
 
bool valid () const
 
void render (Graphics::Surface *surface, uint8 color) const
 
void dump (int level=0) const
 
void clear ()
 
void load (byte *src)
 
void save () const
 
bool intersects_hline (int x1, int x2, int y) const
 
bool intersects_vline (int x, int y1, int y2) const
 
bool contains (const Rect &rect) const
 
int intersects_line (const Common::Point &a, const Common::Point &b) const
 
void side (Common::Point &p1, Common::Point &p2, int o, const Common::Point &nearest) const
 

Static Public Member Functions

static bool inside (int x, int a, int b)
 

Public Attributes

int16 left
 
int16 top
 
int16 right
 
int16 bottom
 

Protected Attributes

byte * _base
 

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