2019-07-08 20:07:57 +00:00
|
|
|
// Copyright 2019 Google LLC.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
2019-08-29 14:39:22 +00:00
|
|
|
#ifndef skui_modifierkey_defined
|
|
|
|
#define skui_modifierkey_defined
|
2019-07-08 20:07:57 +00:00
|
|
|
|
|
|
|
#include "include/private/SkBitmaskEnum.h"
|
|
|
|
|
2019-08-29 14:39:22 +00:00
|
|
|
namespace skui {
|
2019-07-08 20:07:57 +00:00
|
|
|
enum class ModifierKey {
|
|
|
|
kNone = 0,
|
|
|
|
kShift = 1 << 0,
|
|
|
|
kControl = 1 << 1,
|
|
|
|
kOption = 1 << 2, // same as ALT
|
|
|
|
kCommand = 1 << 3,
|
|
|
|
kFirstPress = 1 << 4,
|
|
|
|
};
|
2020-08-06 18:11:56 +00:00
|
|
|
} // namespace skui
|
2019-07-08 20:07:57 +00:00
|
|
|
|
2020-04-30 11:45:25 +00:00
|
|
|
namespace sknonstd {
|
2019-08-29 14:39:22 +00:00
|
|
|
template <> struct is_bitmask_enum<skui::ModifierKey> : std::true_type {};
|
2020-08-06 18:11:56 +00:00
|
|
|
} // namespace sknonstd
|
2019-08-29 14:39:22 +00:00
|
|
|
#endif // skui_modifierkey_defined
|