xtd 0.2.0
Loading...
Searching...
No Matches
console_cancel_event_args.h
Go to the documentation of this file.
1
4#pragma once
6#include "event_args.h"
7
9namespace xtd {
21 public:
23
27
32
35 console_cancel_event_args& operator =(const console_cancel_event_args&) = default;
37
39
43 bool cancel() const noexcept;
44
47 void cancel(bool cancel);
48
53
54 private:
55 bool cancel_ = false;
56 console_special_key special_key_ = static_cast<console_special_key>(0);
57 };
58}
Provides data for the console::cancel_key_press event. This class cannot be inherited.
Definition console_cancel_event_args.h:20
console_cancel_event_args()=default
Initializes a new instance of the console_cancel_event_args class.
bool cancel() const noexcept
Gets a value that indicates whether simultaneously pressing the Control modifier key and the C consol...
console_cancel_event_args(console_special_key special_key)
Initializes a new instance of the console_cancel_event_args class.
console_special_key special_key() const noexcept
Gets the combination of modifier and console keys that interrupted the current process.
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Contains xtd::console_special_key enum class.
Contains xtd::event_args event args.
console_special_key
Specifies combinations of modifier and console keys that can interrupt the current process.
Definition console_special_key.h:19
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10