aboutsummaryrefslogtreecommitdiff
path: root/scene/resources/style_box.h
diff options
context:
space:
mode:
authorHubert Jarosz2016-03-09 00:00:52 +0100
committerHubert Jarosz2016-03-09 00:00:52 +0100
commit4a4f2479146aa33e235ed57cde311efda68d3c8f (patch)
treecf91f2869ff8f058c6682569fb31e22e5ee736ad /scene/resources/style_box.h
parent1dad6eca812e5c2e313b54265114de8a1d73d999 (diff)
downloadgodot-4a4f2479146aa33e235ed57cde311efda68d3c8f.tar.gz
godot-4a4f2479146aa33e235ed57cde311efda68d3c8f.tar.zst
godot-4a4f2479146aa33e235ed57cde311efda68d3c8f.zip
remove trailing whitespace
Diffstat (limited to 'scene/resources/style_box.h')
-rw-r--r--scene/resources/style_box.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/scene/resources/style_box.h b/scene/resources/style_box.h
index d0466ed5f..02d79bc2a 100644
--- a/scene/resources/style_box.h
+++ b/scene/resources/style_box.h
@@ -36,60 +36,60 @@
@author Juan Linietsky <reduzio@gmail.com>
*/
class StyleBox : public Resource {
-
+
OBJ_TYPE( StyleBox, Resource );
RES_BASE_EXTENSION("sbx");
OBJ_SAVE_TYPE( StyleBox );
float margin[4];
-
-protected:
-
+
+protected:
+
virtual float get_style_margin(Margin p_margin) const=0;
static void _bind_methods();
public:
-
+
virtual bool test_mask(const Point2& p_point, const Rect2& p_rect) const;
-
+
void set_default_margin(Margin p_margin, float p_value);
float get_default_margin(Margin p_margin) const;
float get_margin(Margin p_margin) const;
virtual Size2 get_center_size() const;
-
+
virtual void draw(RID p_canvas_item,const Rect2& p_rect) const=0;
-
+
Size2 get_minimum_size() const;
Point2 get_offset() const;
-
+
StyleBox();
};
class StyleBoxEmpty : public StyleBox {
-
+
OBJ_TYPE( StyleBoxEmpty, StyleBox );
virtual float get_style_margin(Margin p_margin) const { return 0; }
-public:
-
+public:
+
virtual void draw(RID p_canvas_item,const Rect2& p_rect) const {}
StyleBoxEmpty() {}
-
+
};
class StyleBoxTexture : public StyleBox {
-
+
OBJ_TYPE( StyleBoxTexture, StyleBox );
-
+
float expand_margin[4];
float margin[4];
Ref<Texture> texture;
bool draw_center;
-
-protected:
-
+
+protected:
+
virtual float get_style_margin(Margin p_margin) const;
static void _bind_methods();
-
+
public:
void set_expand_margin_size(Margin p_expand_margin,float p_size);
@@ -105,12 +105,12 @@ public:
bool get_draw_center() const;
virtual Size2 get_center_size() const;
-
+
virtual void draw(RID p_canvas_item,const Rect2& p_rect) const;
-
- StyleBoxTexture();
+
+ StyleBoxTexture();
~StyleBoxTexture();
-
+
};
class StyleBoxFlat : public StyleBox {