diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-31 19:16:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-31 19:16:07 +0200 |
commit | 4722593448b93e34d84a55010c10770c2d12e223 (patch) | |
tree | 7cd8cd47f5baa5da476febe39db775749ad15252 /scene/resources/style_box.h | |
parent | 849d2e346204559f35f8f430b1c13c03d579a36e (diff) | |
parent | 2aa735757a31d4ae02ed72f76dedc98a851c3f7d (diff) |
Merge pull request #10816 from toger5/style_box_texture_set_fill
unified draw_center naming for (9patch,StyleBoxes)
Diffstat (limited to 'scene/resources/style_box.h')
-rw-r--r-- | scene/resources/style_box.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scene/resources/style_box.h b/scene/resources/style_box.h index db41333b7e..3d085f7166 100644 --- a/scene/resources/style_box.h +++ b/scene/resources/style_box.h @@ -117,8 +117,8 @@ public: void set_normal_map(RES p_normal_map); RES get_normal_map() const; - void set_draw_center(bool p_draw); - bool get_draw_center() const; + void set_draw_center(bool p_enabled); + bool is_draw_center_enabled() const; virtual Size2 get_center_size() const; void set_h_axis_stretch_mode(AxisStretchMode p_mode); @@ -150,7 +150,7 @@ class StyleBoxFlat : public StyleBox { int expand_margin[4]; int corner_radius[4]; - bool filled; + bool draw_center; bool blend_border; bool anti_aliased; @@ -202,9 +202,9 @@ public: void set_expand_margin_size_individual(float p_left, float p_top, float p_right, float p_bottom); float get_expand_margin_size(Margin p_expand_margin) const; - //FILLED - void set_filled(bool p_draw); - bool is_filled() const; + //DRAW CENTER + void set_draw_center(bool p_enabled); + bool is_draw_center_enabled() const; //SHADOW void set_shadow_color(const Color &p_color); |