mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:47:35 +00:00
Add clang-format file
Also run it across the whole tree to get everything using the One True Style. We don't yet run this in an automated fashion as it's a little slow, but there is a snippet to do so in makeall.sh.
This commit is contained in:
parent
c11351ac50
commit
0dc9af5f7e
286 changed files with 3244 additions and 2424 deletions
|
@ -1,17 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include <SharedGraphics/Point.h>
|
||||
#include <SharedGraphics/Rect.h>
|
||||
#include <AK/AKString.h>
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/KeyCode.h>
|
||||
#include <LibCore/CEvent.h>
|
||||
#include <SharedGraphics/Point.h>
|
||||
#include <SharedGraphics/Rect.h>
|
||||
#include <WindowServer/WSCursor.h>
|
||||
#include <WindowServer/WSWindowType.h>
|
||||
#include <LibCore/CEvent.h>
|
||||
|
||||
class WSEvent : public CEvent {
|
||||
public:
|
||||
enum Type {
|
||||
enum Type
|
||||
{
|
||||
Invalid = 2000,
|
||||
WM_DeferredCompose,
|
||||
WM_ClientDisconnected,
|
||||
|
@ -71,9 +72,12 @@ public:
|
|||
__End_API_Client_Requests,
|
||||
};
|
||||
|
||||
WSEvent() { }
|
||||
explicit WSEvent(Type type) : CEvent(type) { }
|
||||
virtual ~WSEvent() { }
|
||||
WSEvent() {}
|
||||
explicit WSEvent(Type type)
|
||||
: CEvent(type)
|
||||
{
|
||||
}
|
||||
virtual ~WSEvent() {}
|
||||
|
||||
bool is_client_request() const { return type() > __Begin_API_Client_Requests && type() < __End_API_Client_Requests; }
|
||||
bool is_mouse_event() const { return type() == MouseMove || type() == MouseDown || type() == MouseDoubleClick || type() == MouseUp || type() == MouseWheel; }
|
||||
|
@ -162,7 +166,6 @@ private:
|
|||
bool m_minimized;
|
||||
};
|
||||
|
||||
|
||||
class WSAPISetGlobalCursorTrackingRequest : public WSAPIClientRequest {
|
||||
public:
|
||||
WSAPISetGlobalCursorTrackingRequest(int client_id, int window_id, bool value)
|
||||
|
@ -688,7 +691,8 @@ private:
|
|||
Vector<Rect, 32> m_rects;
|
||||
};
|
||||
|
||||
enum class MouseButton : byte {
|
||||
enum class MouseButton : byte
|
||||
{
|
||||
None = 0,
|
||||
Left = 1,
|
||||
Right = 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue