xtd 0.2.0
console_cancel_event_args.h
Go to the documentation of this file.
1 #pragma once
5 #include "console_special_key.h"
6 #include "event_args.h"
7 
9 namespace xtd {
21  public:
23 
26  console_cancel_event_args() = default;
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 
51  console_special_key special_key() const noexcept;
53 
54  private:
55  bool cancel_ = false;
56  console_special_key special_key_ = static_cast<console_special_key>(0);
57  };
58 }
bool cancel() const noexcept
Gets a value that indicates whether simultaneously pressing the Control modifier key and the C consol...
Contains xtd::event_args event args.
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
console_special_key special_key() const noexcept
Gets the combination of modifier and console keys that interrupted the current process.
console_special_key
Specifies combinations of modifier and console keys that can interrupt the current process...
Definition: console_special_key.h:19
Contains xtd::console_special_key enum class.
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.