From dc3cef7c4d7d596dd2e6a171a0912971c21df89b Mon Sep 17 00:00:00 2001 From: Geequlim Date: Sat, 4 Jun 2016 00:54:53 +0800 Subject: Add texture region support for Patch9Frame --- scene/gui/patch_9_frame.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scene/gui/patch_9_frame.h') diff --git a/scene/gui/patch_9_frame.h b/scene/gui/patch_9_frame.h index 562a5b1d77..52e2324c3d 100644 --- a/scene/gui/patch_9_frame.h +++ b/scene/gui/patch_9_frame.h @@ -11,6 +11,7 @@ class Patch9Frame : public Control { bool draw_center; int margin[4]; + Rect2 region_rect; Color modulate; Ref texture; protected: @@ -30,6 +31,9 @@ public: void set_patch_margin(Margin p_margin,int p_size); int get_patch_margin(Margin p_margin) const; + void set_region_rect(const Rect2& p_region_rect); + Rect2 get_region_rect() const; + void set_draw_center(bool p_enable); bool get_draw_center() const; -- cgit v1.2.3