xtd
0.2.0
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
form_closing_event_args.h
Go to the documentation of this file.
1
4
#pragma once
5
#include "
cancel_event_args.h
"
6
#include "
close_reason.h
"
7
9
namespace
xtd
{
11
namespace
forms
{
22
class
form_closing_event_args
:
public
cancel_event_args
{
23
public
:
25
28
form_closing_event_args
() =
default
;
32
explicit
form_closing_event_args
(
xtd::forms::close_reason
close_reason
) : close_reason_(
close_reason
) {};
34
36
form_closing_event_args
(
const
form_closing_event_args
&
form_closing_event_args
) =
default
;
37
form_closing_event_args
& operator =(
const
form_closing_event_args
&
form_closing_event_args
) =
default
;
39
41
45
forms::close_reason
close_reason
() const noexcept {
return
close_reason_;}
47
48
private
:
49
forms::close_reason
close_reason_ =
forms::close_reason::none
;
50
};
51
}
52
}
cancel_event_args.h
Contains xtd::forms::cancel_event_args event args.
xtd::forms::cancel_event_args
Provides data for a cancelable event.
Definition
cancel_event_args.h:22
xtd::forms::form_closing_event_args
Provides data for the form_closing event.
Definition
form_closing_event_args.h:22
xtd::forms::form_closing_event_args::form_closing_event_args
form_closing_event_args()=default
Initializes a new instance of the form_closing_event_args class.
xtd::forms::form_closing_event_args::form_closing_event_args
form_closing_event_args(xtd::forms::close_reason close_reason)
Initializes a new instance of the form_closing_event_args class.
Definition
form_closing_event_args.h:32
xtd::forms::form_closing_event_args::close_reason
forms::close_reason close_reason() const noexcept
Gets a value that indicates why the form is being closed.
Definition
form_closing_event_args.h:45
close_reason.h
Contains xtd::forms::close_reason enum class.
xtd::forms::close_reason
close_reason
Specifies the reason that a form was closed.
Definition
close_reason.h:22
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
xtd_about_box.h:12
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
xtd_about_box.h:10
Generated on Sun Nov 17 2024 19:43:53 for xtd by
Gammasoft
. All rights reserved.