xtd 0.2.0
Loading...
Searching...
No Matches
console_modifiers.h
Go to the documentation of this file.
1
4#pragma once
5#include "enum.h"
6
8namespace xtd {
20 enum class console_modifiers {
22 none = 0,
24 alt = 0b1,
26 shift = 0b10,
28 control = 0b100
29 };
30}
31
33flags_attribute_(xtd, console_modifiers);
34
35template<> struct xtd::enum_register<xtd::console_modifiers> {
36 explicit operator auto() const noexcept {return xtd::enum_collection<xtd::console_modifiers> {{xtd::console_modifiers::none, "none"}, {xtd::console_modifiers::alt, "alt"}, {xtd::console_modifiers::shift, "shift"}, {xtd::console_modifiers::control, "control"}};}
37};
39
Contains enum_ and enum_ut_ keywords.
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition flags_attribute.h:34
console_modifiers
Represents the SHIFT, ALT, and CTRL modifier keys on a keyboard.
Definition console_modifiers.h:20
std::vector< xtd::collections::generic::key_value_pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.h:22
@ shift
The left or right SHIFT modifier key.
@ none
No modifier key.
@ alt
The left or right ALT modifier key.
@ control
The left or right CTRL modifier key.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Provides the registration struct for enumerations.
Definition enum_register.h:38