Optibits
Loading...
Searching...
No Matches
Optibits::Rect Struct Reference

Public Member Functions

int right () const
 
int bottom () const
 
bool empty () const
 
bool overlaps (const Rect &other) const
 
bool contains (const Rect &other) const
 
void clipTo (const Rect &boundingBox, int *adjustX=nullptr, int *adjustY=nullptr)
 
bool operator== (const Rect &other) const =default
 

Static Public Member Functions

template<typename T >
static Rect covering (const T &obj)
 

Public Attributes

int x = 0
 
int y = 0
 
int width = 0
 
int height = 0
 

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