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 /platform/haiku/haiku_direct_window.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-- | platform/haiku/haiku_direct_window.h | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/platform/haiku/haiku_direct_window.h b/platform/haiku/haiku_direct_window.h index 49785f79c..7fcea7a6f 100644 --- a/platform/haiku/haiku_direct_window.h +++ b/platform/haiku/haiku_direct_window.h @@ -29,8 +29,8 @@ #ifndef HAIKU_DIRECT_WINDOW_H #define HAIKU_DIRECT_WINDOW_H -#include <kernel/image.h> // needed for image_id #include <DirectWindow.h> +#include <kernel/image.h> // needed for image_id #include "core/os/os.h" #include "main/input_default.h" @@ -41,8 +41,7 @@ #define LOCKGL_MSG 'glck' #define UNLOCKGL_MSG 'ulck' -class HaikuDirectWindow : public BDirectWindow -{ +class HaikuDirectWindow : public BDirectWindow { private: unsigned int event_id; Point2i last_mouse_position; @@ -50,19 +49,19 @@ private: uint32 last_buttons_state; uint32 last_key_modifier_state; int last_button_mask; - OS::VideoMode* current_video_mode; + OS::VideoMode *current_video_mode; - MainLoop* main_loop; - InputDefault* input; - HaikuGLView* view; - BMessageRunner* update_runner; + MainLoop *main_loop; + InputDefault *input; + HaikuGLView *view; + BMessageRunner *update_runner; - void HandleMouseButton(BMessage* message); - void HandleMouseMoved(BMessage* message); - void HandleMouseWheelChanged(BMessage* message); - void HandleWindowResized(BMessage* message); - void HandleKeyboardEvent(BMessage* message); - void HandleKeyboardModifierEvent(BMessage* message); + void HandleMouseButton(BMessage *message); + void HandleMouseMoved(BMessage *message); + void HandleMouseWheelChanged(BMessage *message); + void HandleWindowResized(BMessage *message); + void HandleKeyboardEvent(BMessage *message); + void HandleKeyboardModifierEvent(BMessage *message); inline InputModifierState GetKeyModifierState(uint32 p_state); inline int GetMouseButtonState(uint32 p_state); @@ -70,16 +69,16 @@ public: HaikuDirectWindow(BRect p_frame); ~HaikuDirectWindow(); - void SetHaikuGLView(HaikuGLView* p_view); + void SetHaikuGLView(HaikuGLView *p_view); void StartMessageRunner(); void StopMessageRunner(); - void SetInput(InputDefault* p_input); - void SetMainLoop(MainLoop* p_main_loop); - inline void SetVideoMode(OS::VideoMode* video_mode) { current_video_mode = video_mode; }; + void SetInput(InputDefault *p_input); + void SetMainLoop(MainLoop *p_main_loop); + inline void SetVideoMode(OS::VideoMode *video_mode) { current_video_mode = video_mode; }; virtual bool QuitRequested(); - virtual void DirectConnected(direct_buffer_info* info); - virtual void MessageReceived(BMessage* message); - virtual void DispatchMessage(BMessage* message, BHandler* handler); + virtual void DirectConnected(direct_buffer_info *info); + virtual void MessageReceived(BMessage *message); + virtual void DispatchMessage(BMessage *message, BHandler *handler); inline Point2i GetLastMousePosition() { return last_mouse_position; }; inline int GetLastButtonMask() { return last_button_mask; }; |
