Component
The bounds are described by the position of component's top left corner, its width and its height.
Public Member Functions | |
| Bounds (const int &x, const int &y, const int &w, const int &h) | |
| Bounds (const Point &p=Point(), const Size &s=Size()) | |
| bool | contains (const Bounds &b) const |
checks if b is completely contained inside this bounds object | |
| Bounds | decrease (const Fringe &f) const |
| decreases these bounds by the given fringe | |
| Bounds | increase (const Fringe &f) const |
| increases these bounds by the given fringe | |
| Bounds | intersect (const int &x, const int &y, const int &w, const int &h) const |
| intersects these bounds with the given ones | |
| Bounds | intersect (const Bounds &b) const |
intersects these bounds with b | |
| bool | isEmpty () const |
| checks if this bounds object is empty | |
| bool | isInside (const Point &p) const |
checks if p is inside of this bounds. | |
| bool | operator!= (const Bounds &b) const |
| bool | operator== (const Bounds &b) const |
Public Attributes | |
| Point | pos |
| Size | size |
|
||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|
checks if
|
|
|
decreases these bounds by the given fringe
|
|
|
increases these bounds by the given fringe
|
|
||||||||||||||||||||
|
intersects these bounds with the given ones The intersection is calculated between this bounds object and the bounds defined by the parameters. The returned object contains the area that both objects have in common.
|
|
|
intersects these bounds with
See
|
|
|
checks if this bounds object is empty
|
|
|
checks if
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.3