ladybird/Userland/Libraries/LibWeb/UIEvents/MouseButton.h
Andreas Kling 09980af4ea LibWeb: Add Web::UIEvents::MouseButton enum, drop dependency on LibGUI
This was the only thing LibWeb needed from LibGUI, and we can just
duplicate the enum in LibWeb and get rid of a bogus dependency.
2024-06-02 20:24:42 +02:00

25 lines
352 B
C++

/*
* Copyright (c) 2024, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/EnumBits.h>
namespace Web::UIEvents {
enum MouseButton : u8 {
None = 0,
Primary = 1,
Secondary = 2,
Middle = 4,
Backward = 8,
Forward = 16,
};
AK_ENUM_BITWISE_OPERATORS(MouseButton);
}