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 {
23 public:
25
29
34
37 console_cancel_event_args& operator =(const console_cancel_event_args&) = default;
39
41
45 bool cancel() const noexcept;
46
49 void cancel(bool cancel);
50
55
56 private:
57 bool cancel_ = false;
58 console_special_key special_key_ = static_cast<console_special_key>(0);
59 };
60}
Provides data for the console::cancel_key_press event. This class cannot be inherited.
Definition console_cancel_event_args.h:22
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::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:21
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::console_special_key enum class.