mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:17:45 +00:00
Meta: Tweak .clang-format to not wrap braces after enums.
This commit is contained in:
parent
9145917bf0
commit
39d1a9ae66
97 changed files with 186 additions and 312 deletions
|
@ -20,8 +20,7 @@ struct WSAPI_Rect {
|
|||
WSAPI_Size size;
|
||||
};
|
||||
|
||||
enum WSAPI_WindowType
|
||||
{
|
||||
enum WSAPI_WindowType {
|
||||
Invalid = 0,
|
||||
Normal,
|
||||
Menu,
|
||||
|
@ -37,8 +36,7 @@ struct WSAPI_WindowBackingStoreInfo {
|
|||
RGBA32* pixels;
|
||||
};
|
||||
|
||||
enum class WSAPI_MouseButton : unsigned char
|
||||
{
|
||||
enum class WSAPI_MouseButton : unsigned char {
|
||||
NoButton = 0,
|
||||
Left = 1,
|
||||
Right = 2,
|
||||
|
@ -46,16 +44,14 @@ enum class WSAPI_MouseButton : unsigned char
|
|||
};
|
||||
|
||||
struct WSAPI_KeyModifiers {
|
||||
enum
|
||||
{
|
||||
enum {
|
||||
Shift = 1 << 0,
|
||||
Alt = 1 << 1,
|
||||
Ctrl = 1 << 2,
|
||||
};
|
||||
};
|
||||
|
||||
enum class WSAPI_StandardCursor : unsigned char
|
||||
{
|
||||
enum class WSAPI_StandardCursor : unsigned char {
|
||||
None = 0,
|
||||
Arrow,
|
||||
IBeam,
|
||||
|
@ -65,8 +61,7 @@ enum class WSAPI_StandardCursor : unsigned char
|
|||
ResizeDiagonalBLTR,
|
||||
};
|
||||
|
||||
enum WSAPI_WMEventMask : unsigned
|
||||
{
|
||||
enum WSAPI_WMEventMask : unsigned {
|
||||
WindowRectChanges = 1 << 0,
|
||||
WindowStateChanges = 1 << 1,
|
||||
WindowIconChanges = 1 << 2,
|
||||
|
@ -74,8 +69,7 @@ enum WSAPI_WMEventMask : unsigned
|
|||
};
|
||||
|
||||
struct WSAPI_ServerMessage {
|
||||
enum Type : unsigned
|
||||
{
|
||||
enum Type : unsigned {
|
||||
Invalid,
|
||||
Error,
|
||||
Paint,
|
||||
|
@ -195,8 +189,7 @@ struct WSAPI_ServerMessage {
|
|||
};
|
||||
|
||||
struct WSAPI_ClientMessage {
|
||||
enum Type : unsigned
|
||||
{
|
||||
enum Type : unsigned {
|
||||
Invalid,
|
||||
CreateMenubar,
|
||||
DestroyMenubar,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue