xtd 1.0.0
Loading...
Searching...
No Matches
cancel_event_args.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/event_args>
6
8namespace xtd {
10 namespace forms {
23 public:
25
28 cancel_event_args() = default;
29
32 explicit cancel_event_args(bool cancel) : cancel_(cancel) {};
34
36
40 [[nodiscard]] virtual auto cancel() const noexcept -> bool {return cancel_;}
43 virtual auto cancel(bool value) -> cancel_event_args& {
44 cancel_ = value;
45 return *this;
46 }
47
48
49 protected:
50 bool cancel_ = false;
51 };
52 }
53}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
cancel_event_args(bool cancel)
Initializes a new instance of the cancel_event_args class with the cancel property set to the given v...
Definition cancel_event_args.hpp:32
virtual auto cancel(bool value) -> cancel_event_args &
Sets a value indicating whether the event should be canceled.
Definition cancel_event_args.hpp:43
cancel_event_args()=default
Initializes a new instance of the cancel_event_args class with the cancel property set to false.
virtual auto cancel() const noexcept -> bool
Gets a value indicating whether the event should be canceled.
Definition cancel_event_args.hpp:40
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8