Flutter Engine
The Flutter Engine
third_party
skia
tools
skui
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
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
SkBitmaskEnum.h
sknonstd
Definition:
SkTLogic.h:20
skui
Definition:
TextEditor.h:27
skui::ModifierKey
ModifierKey
Definition:
ModifierKey.h:9
skui::ModifierKey::kFirstPress
@ kFirstPress
skui::ModifierKey::kCommand
@ kCommand
skui::Key::kOption
@ kOption
sknonstd::is_bitmask_enum
Definition:
SkBitmaskEnum.h:13
Generated on Sun Jun 23 2024 21:56:51 for Flutter Engine by
1.9.4