Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
ModifierKey.h
Go to the documentation of this file.
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
7
8namespace skui {
9enum 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
19namespace sknonstd {
20template <> struct is_bitmask_enum<skui::ModifierKey> : std::true_type {};
21} // namespace sknonstd
22#endif // skui_modifierkey_defined
ModifierKey
Definition ModifierKey.h:9