xtd - Reference Guide
0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
xtd.forms
include
xtd
forms
form_closed_event_args.h
Go to the documentation of this file.
1
#pragma once
5
6
#include <
xtd/event_args.h
>
7
#include "
close_reason.h
"
8
10
namespace
xtd
{
12
namespace
forms
{
19
class
form_closed_event_args
:
public
event_args
{
20
public
:
22
form_closed_event_args
() =
default
;
25
explicit
form_closed_event_args
(
forms::close_reason
close_reason
) : close_reason_(
close_reason
) {};
26
28
form_closed_event_args
(
const
form_closed_event_args
&
form_closed_event_args
) =
default
;
29
form_closed_event_args
& operator=(
const
form_closed_event_args
&
form_closed_event_args
) =
default
;
31
35
forms::close_reason
close_reason
()
const
{
return
close_reason_;}
36
37
private
:
38
forms::close_reason
close_reason_ =
forms::close_reason::none
;
39
};
40
}
41
}
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::form_closed_event_args
Provides data for the form_closed event.
Definition:
form_closed_event_args.h:19
xtd::forms::form_closed_event_args::form_closed_event_args
form_closed_event_args()=default
Initializes a new instance of the form_closed_event_args class.
xtd::forms::form_closed_event_args::close_reason
forms::close_reason close_reason() const
Gets a value that indicates why the form was closed.
Definition:
form_closed_event_args.h:35
xtd::forms::form_closed_event_args::form_closed_event_args
form_closed_event_args(forms::close_reason close_reason)
Initializes a new instance of the form_closed_event_args class.
Definition:
form_closed_event_args.h:25
close_reason.h
Contains xtd::forms::close_reason enum class.
event_args.h
Contains xtd::event_args event args.
xtd::forms::close_reason
close_reason
Specifies the reason that a form was closed.
Definition:
close_reason.h:18
xtd::forms::close_reason::none
@ none
The cause of the closure was not defined or could not be determined.
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 Mon Jul 17 2023 23:13:05 for xtd - Reference Guide by
Gammasoft
. All rights reserved.