diff options
Diffstat (limited to 'include/ui/Rect.h')
-rw-r--r-- | include/ui/Rect.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ui/Rect.h b/include/ui/Rect.h index 9169287..6cf64eb 100644 --- a/include/ui/Rect.h +++ b/include/ui/Rect.h @@ -160,6 +160,10 @@ public: // the input. Rect transform(uint32_t xform, int32_t width, int32_t height) const; + // this calculates (Region(*this) - exclude).bounds() efficiently + Rect reduce(const Rect& exclude) const; + + // for backward compatibility inline int32_t width() const { return getWidth(); } inline int32_t height() const { return getHeight(); } |