ScummVM API documentation
Wintermute::Rect32 Struct Reference

Public Member Functions

 Rect32 (int32 w, int32 h)
 
 Rect32 (const Common::Rect &rect)
 
 Rect32 (int32 x1, int32 y1, int32 x2, int32 y2)
 
bool operator== (const Rect32 &rhs) const
 
bool operator!= (const Rect32 &rhs) const
 
int32 width () const
 
int32 height () const
 
void setWidth (int32 aWidth)
 
void setHeight (int32 aHeight)
 
void setEmpty ()
 
bool isRectEmpty () const
 
void offsetRect (int dx, int dy)
 
void setRect (int32 newLeft, int32 newTop, int32 newRight, int32 newBottom)
 
bool equals (const Rect32 &r) const
 
bool isValidRect () const
 

Public Attributes

int32 top
 
int32 left
 The point at the top left of the rectangle (part of the rect).
 
int32 bottom
 
int32 right
 The point at the bottom right of the rectangle (not part of the rect).
 

Member Function Documentation

◆ equals()

bool Wintermute::Rect32::equals ( const Rect32 r) const
inline

Check if the given rect is equal to this one.

Parameters
rThe rectangle to check
Returns
true if the given rect is equal, false otherwise

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