![]() |
xtd - Reference Guide
0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <console_key_info.h>
Specifies the standard keys on a console.
Inherits xtd::object.
Public Member Functions | |
| console_key_info ()=default | |
| Create a new instance of console_key_info class. | |
| console_key_info (char32_t key_char, console_key key, bool shift, bool alt, bool control) | |
| Initializes a new instance of the console_key_info class using the specified character, console key, and modifier keys. | |
| console_key | key () |
| Gets the console key represented by the current console_key_info object. | |
| char32_t | key_char () |
| Gets the Unicode character represented by the current console_key_info object. | |
| console_modifiers | modifiers () |
| Gets a bitwise combination of console_modifiers values that specifies one or more modifier keys pressed simultaneously with the console key. | |
Public Member Functions inherited from xtd::object | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. | |
| virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. | |
| template<typename object_t > | |
| std::unique_ptr< object_t > | memberwise_clone () const |
| Gets the type of the current instance. | |
| virtual xtd::ustring | to_string () const noexcept |
| Returns a std::string that represents the current object. | |
Additional Inherited Members | |
Static Public Member Functions inherited from xtd::object | |
| static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. | |
| static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. | |
|
default |
Create a new instance of console_key_info class.
|
inline |
Initializes a new instance of the console_key_info class using the specified character, console key, and modifier keys.
| keyChar | The Unicode character that corresponds to the key parameter. |
| key | The console key that corresponds to the keyChar parameter. |
| shift | true to indicate that a SHIFT key was pressed; otherwise, false. |
| alt | true to indicate that an ALT key was pressed; otherwise, false. |
| control | true to indicate that a CTRL key was pressed; otherwise, false. |
|
inline |
Gets the console key represented by the current console_key_info object.
| A | console_key value that identifies the console key that was pressed |
|
inline |
Gets the Unicode character represented by the current console_key_info object.
| An | char32 object that corresponds to the console key represented by the current console_key_info object. |
|
inline |
Gets a bitwise combination of console_modifiers values that specifies one or more modifier keys pressed simultaneously with the console key.
| A | bitwise combination of console_modifiers values. There is no default value. |