aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/style_box.h
diff options
context:
space:
mode:
authortoger52017-08-31 15:11:10 +0200
committertoger52017-08-31 15:25:24 +0200
commit2aa735757a31d4ae02ed72f76dedc98a851c3f7d (patch)
tree827630418b2e5ba855f4a18da760aa26d4270a38 /scene/resources/style_box.h
parent41e1bbd30c1e6db57e3fbbc037f6ce4645e20fb9 (diff)
downloadgodot-2aa735757a31d4ae02ed72f76dedc98a851c3f7d.tar.gz
godot-2aa735757a31d4ae02ed72f76dedc98a851c3f7d.tar.zst
godot-2aa735757a31d4ae02ed72f76dedc98a851c3f7d.zip
unified draw_center naming for (9patch,StyleBoxes)
- filled -> draw_center - is_draw_center -> is_draw_center_enabled - get_draw_center -> is_draw_center_enabled
Diffstat (limited to 'scene/resources/style_box.h')
-rw-r--r--scene/resources/style_box.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/scene/resources/style_box.h b/scene/resources/style_box.h
index db41333b7..3d085f716 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);