xref: /aosp_15_r20/external/skia/tools/skui/ModifierKey.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 // Copyright 2019 Google LLC.
2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3 #ifndef skui_modifierkey_defined
4 #define skui_modifierkey_defined
5 
6 #include "src/base/SkBitmaskEnum.h"
7 
8 namespace skui {
9 enum class ModifierKey {
10     kNone       = 0,
11     kShift      = 1 << 0,
12     kControl    = 1 << 1,
13     kOption     = 1 << 2,   // same as ALT
14     kCommand    = 1 << 3,
15     kFirstPress = 1 << 4,
16 };
17 }  // namespace skui
18 
19 namespace sknonstd {
20 template <> struct is_bitmask_enum<skui::ModifierKey> : std::true_type {};
21 }  // namespace sknonstd
22 #endif  // skui_modifierkey_defined
23