Rect.size helper
@@ -19,6 +19,10 @@ namespace blit {
inline Rect& operator*= (const float a) { x = static_cast<int32_t>(x * a); y = static_cast<int32_t>(y * a); w = static_cast<int32_t>(w * a); h = static_cast<int32_t>(h * a); return *this; }
+ Size size() {
+ return Size(w, h);
+ }
+
bool empty() const {
return w <= 0 || h <= 0;
}
