diff options
| author | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
| commit | 5dbf1809c6e3e905b94b8764e99491e608122261 (patch) | |
| tree | 5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /editor/plugins/line_2d_editor_plugin.h | |
| parent | 45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff) | |
| download | godot-5dbf180.tar.gz godot-5dbf180.tar.zst godot-5dbf180.zip | |
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 '')
| -rw-r--r-- | editor/plugins/line_2d_editor_plugin.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/editor/plugins/line_2d_editor_plugin.h b/editor/plugins/line_2d_editor_plugin.h index 6e0da7df3..6bade92da 100644 --- a/editor/plugins/line_2d_editor_plugin.h +++ b/editor/plugins/line_2d_editor_plugin.h @@ -29,13 +29,12 @@ #ifndef LINE_2D_EDITOR_PLUGIN_H #define LINE_2D_EDITOR_PLUGIN_H -#include "editor/editor_plugin.h" #include "editor/editor_node.h" +#include "editor/editor_plugin.h" +#include "scene/2d/line_2d.h" #include "scene/2d/path_2d.h" -#include "scene/gui/tool_button.h" #include "scene/gui/button_group.h" -#include "scene/2d/line_2d.h" - +#include "scene/gui/tool_button.h" class CanvasItemEditor; @@ -43,7 +42,7 @@ class Line2DEditor : public HBoxContainer { GDCLASS(Line2DEditor, HBoxContainer) public: - bool forward_gui_input(const InputEvent& p_event); + bool forward_gui_input(const InputEvent &p_event); void edit(Node *p_line2d); Line2DEditor(EditorNode *p_editor); @@ -81,7 +80,7 @@ private: }; Mode mode; - ToolButton* toolbar_buttons[_MODE_COUNT]; + ToolButton *toolbar_buttons[_MODE_COUNT]; bool _dragging; int action_point; @@ -90,13 +89,12 @@ private: }; class Line2DEditorPlugin : public EditorPlugin { - GDCLASS( Line2DEditorPlugin, EditorPlugin ) + GDCLASS(Line2DEditorPlugin, EditorPlugin) public: virtual bool forward_canvas_gui_input( - const Transform2D& p_canvas_xform, - const InputEvent& p_event) - { + const Transform2D &p_canvas_xform, + const InputEvent &p_event) { return line2d_editor->forward_gui_input(p_event); } @@ -111,8 +109,6 @@ public: private: Line2DEditor *line2d_editor; EditorNode *editor; - }; #endif // LINE_2D_EDITOR_PLUGIN_H - |
