aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/Base.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-20 23:17:17 +0800
committercrupest <crupest@outlook.com>2022-01-20 23:17:17 +0800
commit193b3fe67eaadf291ae77f689362d87861c26118 (patch)
treebebf8343a730b3b43502d403be83350b871d672b /include/cru/ui/Base.hpp
parentc0f802594e17efd5b93d4019431bf1a6d24249c3 (diff)
downloadcru-193b3fe67eaadf291ae77f689362d87861c26118.tar.gz
cru-193b3fe67eaadf291ae77f689362d87861c26118.tar.bz2
cru-193b3fe67eaadf291ae77f689362d87861c26118.zip
...
Diffstat (limited to 'include/cru/ui/Base.hpp')
-rw-r--r--include/cru/ui/Base.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cru/ui/Base.hpp b/include/cru/ui/Base.hpp
index a8176b0d..db360c07 100644
--- a/include/cru/ui/Base.hpp
+++ b/include/cru/ui/Base.hpp
@@ -87,6 +87,11 @@ struct CornerRadius {
left_bottom(left_bottom),
right_bottom(right_bottom) {}
+ CornerRadius& SetAll(const Point& point) {
+ left_top = right_top = left_bottom = right_bottom = point;
+ return *this;
+ }
+
Point left_top;
Point right_top;
Point left_bottom;