skia2/tools/skui/ModifierKey.h
Mike Klein dc976a96ea update skstd
- Lots of skstd::foo is now std::foo since C++14.
- Get rid of SK_WHEN(cond,T); std::enable_if_t<cond,T> is pithy enough.
- Move SkBitmaskEnum.h contents into sknonstd.

Change-Id: Ie5dc459405b1ff55e5b3ac57e70df7edd7cf38c0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/286315
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
2020-04-30 15:05:43 +00:00

23 lines
592 B
C++

// Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#ifndef skui_modifierkey_defined
#define skui_modifierkey_defined
#include "include/private/SkBitmaskEnum.h"
namespace skui {
enum class ModifierKey {
kNone = 0,
kShift = 1 << 0,
kControl = 1 << 1,
kOption = 1 << 2, // same as ALT
kCommand = 1 << 3,
kFirstPress = 1 << 4,
};
}
namespace sknonstd {
template <> struct is_bitmask_enum<skui::ModifierKey> : std::true_type {};
}
#endif // skui_modifierkey_defined