aboutsummaryrefslogtreecommitdiff
path: root/scene/gui/patch_9_frame.h
diff options
context:
space:
mode:
authorGeequlim2016-06-04 00:54:53 +0800
committerGeequlim2016-06-05 00:45:53 +0800
commitdc3cef7c4d7d596dd2e6a171a0912971c21df89b (patch)
tree7b5154c60f9ded4090199ab0b3ca869e4a59e3c8 /scene/gui/patch_9_frame.h
parentfdf914e53e80f49153ea7f999f816010c0ad8e50 (diff)
downloadgodot-dc3cef7c4d7d596dd2e6a171a0912971c21df89b.tar.gz
godot-dc3cef7c4d7d596dd2e6a171a0912971c21df89b.tar.zst
godot-dc3cef7c4d7d596dd2e6a171a0912971c21df89b.zip
Add texture region support for Patch9Frame
Diffstat (limited to '')
-rw-r--r--scene/gui/patch_9_frame.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/patch_9_frame.h b/scene/gui/patch_9_frame.h
index 562a5b1d7..52e2324c3 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> 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;