xtd 0.2.0
Loading...
Searching...
No Matches
signal_cancel_event_args.h
Go to the documentation of this file.
1
4#pragma once
5#include "event_args.h"
6#include "signal.h"
7
9namespace xtd {
19 public:
21
25
30
33 signal_cancel_event_args& operator =(const signal_cancel_event_args&) = default;
35
37
41 bool cancel() const noexcept;
42
45 void cancel(bool cancel);
46
49 xtd::signal signal() const noexcept;
51
52 private:
53 bool cancel_ = false;
54 xtd::signal signal_ = static_cast<xtd::signal>(0);
55 };
56}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Provides data for the environment signal event. This class cannot be inherited.
Definition signal_cancel_event_args.h:18
signal_cancel_event_args()=default
Initializes a new instance of the signal_cancel_event_args class.
signal_cancel_event_args(xtd::signal signal)
Initializes a new instance of the signal_cancel_event_args class.
bool cancel() const noexcept
Gets a value that indicates whether a signal has interrupted the current process. The default is fals...
Contains xtd::event_args event args.
signal
Specifies signals that can interrupt the current process.
Definition signal.h:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::signal enum class.