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,
|
|
|
|
};
|
2019-08-29 14:39:22 +00:00
|
|
|
}
|
2019-07-08 20:07:57 +00:00
|
|
|
|
|
|
|
namespace skstd {
|
2019-08-29 14:39:22 +00:00
|
|
|
template <> struct is_bitmask_enum<skui::ModifierKey> : std::true_type {};
|
2019-07-08 20:07:57 +00:00
|
|
|
}
|
2019-08-29 14:39:22 +00:00
|
|
|
#endif // skui_modifierkey_defined
|