xtd - Reference Guide
0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
cancel_event_args.h
Go to the documentation of this file.
1
4
#pragma once
5
6
#include <
xtd/event_args.h
>
7
9
namespace
xtd
{
11
namespace
forms
{
19
class
cancel_event_args
:
public
event_args
{
20
public
:
22
cancel_event_args
() =
default
;
23
26
explicit
cancel_event_args
(
bool
cancel
) : cancel_(
cancel
) {};
27
29
cancel_event_args
(
const
cancel_event_args
&
cancel_event_args
) =
default
;
30
cancel_event_args
& operator=(
const
cancel_event_args
&
cancel_event_args
) =
default
;
32
35
virtual
bool
cancel
()
const
{
return
cancel_;}
38
virtual
void
cancel
(
bool
cancel
) {cancel_ =
cancel
;}
39
40
protected
:
41
bool
cancel_ =
false
;
42
};
43
}
44
}
xtd::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
xtd::forms::cancel_event_args
Provides data for a cancelable event.
Definition
cancel_event_args.h:19
xtd::forms::cancel_event_args::cancel_event_args
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.h:26
xtd::forms::cancel_event_args::cancel
virtual bool cancel() const
Gets a value indicating whether the event should be canceled.
Definition
cancel_event_args.h:35
xtd::forms::cancel_event_args::cancel_event_args
cancel_event_args()=default
Initializes a new instance of the cancel_event_args class with the cancel property set to false.
xtd::forms::cancel_event_args::cancel
virtual void cancel(bool cancel)
Sets a value indicating whether the event should be canceled.
Definition
cancel_event_args.h:38
event_args.h
Contains xtd::event_args event args.
xtd::forms
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition
about_box.h:13
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
system_report.h:17
Generated on Tue Mar 12 2024 16:25:08 for xtd - Reference Guide by
Gammasoft
. All rights reserved.