blob: ffb358c07ad54dabf48d9cda5ad3c1932409f40d [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
Mike Kleindc976a92020-04-30 06:45:25 -050019namespace sknonstd {
Hal Canaryb1f411a2019-08-29 10:39:22 -040020template <> struct is_bitmask_enum<skui::ModifierKey> : std::true_type {};
21}
22#endif // skui_modifierkey_defined