![]() |
Ultralight C++ API 1.3.0
|
#include <Ultralight/Geometry.h>
Integer Rectangle Helper.
Static Public Member Functions | |
| static constexpr IntRect | MakeEmpty () |
Public Member Functions | |
| int | width () const |
| int | height () const |
| int | x () const |
| int | y () const |
| int | center_x () const |
| int | center_y () const |
| Point | origin () const |
| void | SetEmpty () |
| bool | IsEmpty () const |
| bool | IsValid () const |
| void | Inset (int dx, int dy) |
| void | Outset (int dx, int dy) |
| void | Move (int dx, int dy) |
| int | area () const |
| void | Join (const IntRect &rhs) |
| void | Join (const Point &p) |
| bool | Contains (const Point &p) const |
| bool | Contains (const IntRect &r) const |
| bool | Intersects (const IntRect &rhs) const |
| IntRect | Intersect (const IntRect &other) const |
Public Attributes | |
| int | left |
| int | top |
| int | right |
| int | bottom |
Friends | |
| bool | operator== (const IntRect &a, const IntRect &b) |
| bool | operator!= (const IntRect &a, const IntRect &b) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticconstexpr |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| int ultralight::IntRect::bottom |
| int ultralight::IntRect::left |
| int ultralight::IntRect::right |
| int ultralight::IntRect::top |