diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-03-05 16:44:50 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-03-05 16:44:50 +0100 |
commit | 5dbf1809c6e3e905b94b8764e99491e608122261 (patch) | |
tree | 5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /scene/main/canvas_layer.h | |
parent | 45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff) | |
download | redot-engine-5dbf1809c6e3e905b94b8764e99491e608122261.tar.gz |
A Whole New World (clang-format edition)
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?
I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon
A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format
A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
Diffstat (limited to 'scene/main/canvas_layer.h')
-rw-r--r-- | scene/main/canvas_layer.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/scene/main/canvas_layer.h b/scene/main/canvas_layer.h index 8efbbd5a05..26d21e3a0f 100644 --- a/scene/main/canvas_layer.h +++ b/scene/main/canvas_layer.h @@ -32,11 +32,10 @@ #include "scene/main/node.h" #include "scene/resources/world_2d.h" - class Viewport; class CanvasLayer : public Node { - GDCLASS( CanvasLayer, Node ); + GDCLASS(CanvasLayer, Node); bool locrotscale_dirty; Vector2 ofs; @@ -61,20 +60,18 @@ class CanvasLayer : public Node { void _update_xform(); void _update_locrotscale(); - protected: - void _notification(int p_what); static void _bind_methods(); -public: +public: void set_layer(int p_xform); int get_layer() const; - void set_transform(const Transform2D& p_xform); + void set_transform(const Transform2D &p_xform); Transform2D get_transform() const; - void set_offset(const Vector2& p_offset); + void set_offset(const Vector2 &p_offset); Vector2 get_offset() const; void set_rotation(real_t p_radians); @@ -83,7 +80,7 @@ public: void set_rotationd(real_t p_degrees); real_t get_rotationd() const; - void set_scale(const Size2& p_scale); + void set_scale(const Size2 &p_scale); Size2 get_scale() const; Ref<World2D> get_world_2d() const; @@ -93,7 +90,7 @@ public: RID get_viewport() const; void set_custom_viewport(Node *p_viewport); - Node* get_custom_viewport() const; + Node *get_custom_viewport() const; void reset_sort_index(); int get_sort_index(); |