skia2/tools/skui/ModifierKey.h
Hal Canary b1f411ac05 tools/skui: put all enums in a common namespace
Change-Id: Icd331e8946d80652750b8b6ea0db65f5f676ac3e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/238058
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
2019-08-29 15:39:32 +00:00

23 lines
589 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 skstd {
template <> struct is_bitmask_enum<skui::ModifierKey> : std::true_type {};
}
#endif // skui_modifierkey_defined