blob: 09c5536e89df814f9e4d0e37637044e2bcb2d6f7 [file] [log] [blame]
Hal Canary3a85ed12019-07-08 16:07:57 -04001// 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.
Hal Canaryb1f411a2019-08-29 10:39:22 -04003#ifndef skui_modifierkey_defined
4#define skui_modifierkey_defined
Hal Canary3a85ed12019-07-08 16:07:57 -04005
6#include "include/private/SkBitmaskEnum.h"
7
Hal Canaryb1f411a2019-08-29 10:39:22 -04008namespace skui {
Hal Canary3a85ed12019-07-08 16:07:57 -04009enum 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};
Hal Canary3a85ed12019-07-08 16:07:57 -040017}
18
Hal Canaryb1f411a2019-08-29 10:39:22 -040019namespace skstd {
20template <> struct is_bitmask_enum<skui::ModifierKey> : std::true_type {};
21}
22#endif // skui_modifierkey_defined