From 4428d0ac933482274d09862fd984ac8ede681f7c Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 3 Nov 2021 13:29:01 +0800 Subject: *font space --- Runtime/Math/Rect.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Runtime/Math/Rect.h') 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 -- cgit v1.1-26-g67d0