diff options
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/Box.cpp | 4 | ||||
| -rw-r--r-- | src/helpers/Box.hpp | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/helpers/Box.cpp b/src/helpers/Box.cpp index 29aa81fa..3d57bc79 100644 --- a/src/helpers/Box.cpp +++ b/src/helpers/Box.cpp @@ -112,6 +112,10 @@ CBox CBox::roundInternal() { return CBox{std::floor(x), std::floor(y), std::floor(newW), std::floor(newH)}; } +CBox CBox::copy() const { + return CBox{*this}; +} + Vector2D CBox::pos() const { return {x, y}; } diff --git a/src/helpers/Box.hpp b/src/helpers/Box.hpp index cb07df06..5cb7f17f 100644 --- a/src/helpers/Box.hpp +++ b/src/helpers/Box.hpp @@ -52,6 +52,8 @@ class CBox { CBox& addExtents(const SWindowDecorationExtents& e); CBox& expand(const double& value); + CBox copy() const; + SWindowDecorationExtents extentsFrom(const CBox&); // this is the big box Vector2D middle() const; |
