ScummVM API documentation
Ultima::Ultima8::Rect Struct Reference

Public Member Functions

 Rect (int x1, int y1, int x2, int y2)
 
bool operator== (const Rect &rhs) const
 
bool operator!= (const Rect &rhs) const
 
int16 width () const
 
int16 height () const
 
void setWidth (int16 aWidth)
 
void setHeight (int16 aHeight)
 
void grow (int16 offset)
 
bool isEmpty () const
 
bool isValidRect () const
 
bool contains (int16 x, int16 y) const
 
bool contains (const Rect &r) const
 
void translate (int32 dx, int32 dy)
 
void moveTo (int32 x, int32 y)
 
void clip (const Rect &r)
 
bool intersects (const Rect &r) const
 
bool equals (const Rect &o) const
 

Public Attributes

int32 left
 
int32 top
 
int32 right
 
int32 bottom
 

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