diff options
Diffstat (limited to 'src/helpers/Region.hpp')
-rw-r--r-- | src/helpers/Region.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/helpers/Region.hpp b/src/helpers/Region.hpp index e5a99da2..cc745f9e 100644 --- a/src/helpers/Region.hpp +++ b/src/helpers/Region.hpp @@ -42,15 +42,16 @@ class CRegion { CRegion& intersect(double x, double y, double w, double h); CRegion& translate(const Vector2D& vec); CRegion& invert(pixman_box32_t* box); + CRegion& scale(float scale); wlr_box getExtents(); - bool containsPoint(const Vector2D& vec); - bool empty(); - Vector2D closestPoint(const Vector2D& vec); + bool containsPoint(const Vector2D& vec) const; + bool empty() const; + Vector2D closestPoint(const Vector2D& vec) const; std::vector<pixman_box32_t> getRects() const; pixman_region32_t* pixman() { - return &m_rRegion; + return &m_rRegion; } private: |