GGUI::GGChord struct

A key plus modifiers (UIMods).

Public static functions

static auto Ctrl(GGKey key) -> GGChord constexpr
Ctrl+key.
static auto Shift(GGKey key) -> GGChord constexpr
Shift+key.
static auto Alt(GGKey key) -> GGChord constexpr
Alt+key.
static auto CtrlShift(GGKey key) -> GGChord constexpr
Ctrl+Shift+key.

Constructors, destructors, conversion operators

GGChord() defaulted constexpr
No chord.
GGChord(GGKey key, uint16_t mods = 0) constexpr
key with modifiers mods.

Public functions

auto IsNone() const -> bool constexpr
Whether it is no chord.

Public variables

GGKey Key
None: no chord.
uint16_t Mods
UIMods bits.

Friends

auto operator==(const GGChord&, const GGChord&) -> bool defaulted constexpr
every member equal