summaryrefslogtreecommitdiff
path: root/Runtime/Math/Rect.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-03 13:29:01 +0800
committerchai <chaifix@163.com>2021-11-03 13:29:01 +0800
commit4428d0ac933482274d09862fd984ac8ede681f7c (patch)
tree45704fd105a2e71cc1e5de64576f95ebb245b050 /Runtime/Math/Rect.h
parent5cd2e2299f98065fa06c192df4dfb2c014b2b253 (diff)
*font space
Diffstat (limited to 'Runtime/Math/Rect.h')
-rw-r--r--Runtime/Math/Rect.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Runtime/Math/Rect.h b/Runtime/Math/Rect.h
index 8e7dae6..21a803e 100644
--- a/Runtime/Math/Rect.h
+++ b/Runtime/Math/Rect.h
@@ -4,6 +4,13 @@ namespace Internal
{
struct Rect
{
+ Rect(float x=0, float y = 0, float w = 0, float h = 0)
+ {
+ this->x = x;
+ this->y = y;
+ this->width = w;
+ this->height = h;
+ }
float x, y, width, height;
};
} \ No newline at end of file