#include <console_key_info.h>
Specifies the standard keys on a console.
- Namespace
- xtd
- Library
- xtd.core
- See also
- Console
- Examples:
- console_clear.cpp, console_read_key.cpp, and system_sounds.cpp.
|
bool | equals (const console_key_info &key_info) const noexcept override |
| Indicates whether the current object is equal to another object of the same type. More...
|
|
|
| object ()=default |
| Create a new instance of the ultimate base class object. More...
|
|
bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More...
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More...
|
|
template<typename object_t > |
std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Gets the type of the current instance. More...
|
|
virtual xtd::ustring | to_string () const noexcept |
| Returns a sxd::ustring that represents the current object. More...
|
|
static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More...
|
|
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More...
|
|
◆ console_key_info() [1/2]
xtd::console_key_info::console_key_info |
( |
| ) |
|
|
defaultnoexcept |
◆ console_key_info() [2/2]
xtd::console_key_info::console_key_info |
( |
char32 |
key_char, |
|
|
console_key |
key, |
|
|
bool |
shift, |
|
|
bool |
alt, |
|
|
bool |
control |
|
) |
| |
|
noexcept |
Initializes a new instance of the console_key_info class using the specified character, console key, and modifier keys.
- Parameters
-
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. |
◆ equals()
Indicates whether the current object is equal to another object of the same type.
- Parameters
-
obj | An object to compare with this object. |
- Returns
- true if the current object is equal to the other parameter; otherwise, false.
Implements xtd::iequatable< console_key_info >.
◆ key()
◆ key_char()
char32 xtd::console_key_info::key_char |
( |
| ) |
const |
|
noexcept |
◆ modifiers()
Gets a bitwise combination of console_modifiers values that specifies one or more modifier keys pressed simultaneously with the console key.
- Parameters
-
A | bitwise combination of console_modifiers values. There is no default value. |
- Examples:
- console_read_key.cpp.
The documentation for this class was generated from the following file: