• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 ModifierKey_DEFINED
4  #define ModifierKey_DEFINED
5  
6  #include "include/private/SkBitmaskEnum.h"
7  
8  enum class ModifierKey {
9      kNone       = 0,
10      kShift      = 1 << 0,
11      kControl    = 1 << 1,
12      kOption     = 1 << 2,   // same as ALT
13      kCommand    = 1 << 3,
14      kFirstPress = 1 << 4,
15  };
16  
17  namespace skstd {
18  template <> struct is_bitmask_enum<ModifierKey> : std::true_type {};
19  }
20  
21  #endif  // ModifierKey_DEFINED
22