diff options
Diffstat (limited to 'scene/gui/patch_9_rect.h')
-rw-r--r-- | scene/gui/patch_9_rect.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/scene/gui/patch_9_rect.h b/scene/gui/patch_9_rect.h index b87f2f64ec..09663e62f6 100644 --- a/scene/gui/patch_9_rect.h +++ b/scene/gui/patch_9_rect.h @@ -35,27 +35,26 @@ */ class NinePatchRect : public Control { - GDCLASS(NinePatchRect,Control); + GDCLASS(NinePatchRect, Control); bool draw_center; int margin[4]; Rect2 region_rect; Ref<Texture> texture; -protected: +protected: void _notification(int p_what); virtual Size2 get_minimum_size() const; static void _bind_methods(); public: - - void set_texture(const Ref<Texture>& p_tex); + void set_texture(const Ref<Texture> &p_tex); Ref<Texture> get_texture() const; - void set_patch_margin(Margin p_margin,int p_size); + 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); + void set_region_rect(const Rect2 &p_region_rect); Rect2 get_region_rect() const; void set_draw_center(bool p_enable); @@ -63,6 +62,5 @@ public: NinePatchRect(); ~NinePatchRect(); - }; #endif // PATCH_9_FRAME_H |