summaryrefslogtreecommitdiff
path: root/src/helpers/Box.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/Box.hpp')
-rw-r--r--src/helpers/Box.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/helpers/Box.hpp b/src/helpers/Box.hpp
index 98ba8d47..57df2154 100644
--- a/src/helpers/Box.hpp
+++ b/src/helpers/Box.hpp
@@ -54,13 +54,16 @@ class CBox {
CBox& noNegativeSize();
CBox copy() const;
- CBox intersection(const CBox other) const;
+ CBox intersection(const CBox& other) const;
+ bool overlaps(const CBox& other) const;
+ bool inside(const CBox& bound) const;
SWindowDecorationExtents extentsFrom(const CBox&); // this is the big box
Vector2D middle() const;
Vector2D pos() const;
Vector2D size() const;
+ Vector2D closestPoint(const Vector2D& vec) const;
bool containsPoint(const Vector2D& vec) const;
bool empty() const;