Add: RectPadding type.

This is similar to Rect but specifies padding to apply to a Rect.
This commit is contained in:
Peter Nelson
2022-09-28 18:48:48 +01:00
committed by PeterN
parent 5786d49143
commit 75b222b0d9
2 changed files with 55 additions and 0 deletions

View File

@@ -48,3 +48,5 @@ Rect BoundingRect(const Rect &r1, const Rect &r2)
return r;
}
const RectPadding RectPadding::zero = {0, 0, 0, 0};