xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
close_reason.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include <xtd/enum>
6
8
namespace
xtd
{
10
namespace
forms
{
22
enum class
close_reason
{
24
none
= 0,
26
windows_shut_down
= 1,
28
mdi_form_closing
= 2,
30
user_closing
= 3,
32
task_manager_closing
= 4,
34
form_owner_closing
= 5,
36
application_exit_call
= 6
37
};
38
}
39
}
40
42
template
<>
struct
xtd::enum_register
<
xtd
::
forms::close_reason
> {
43
static
auto
values
()
noexcept
{
return
xtd::enum_collection<xtd::forms::close_reason>
{{
xtd::forms::close_reason::none
,
"none"
}, {
xtd::forms::close_reason::windows_shut_down
,
"windows_shut_down"
}, {
xtd::forms::close_reason::mdi_form_closing
,
"mdi_form_closing"
}, {
xtd::forms::close_reason::user_closing
,
"user_closing"
}, {
xtd::forms::close_reason::task_manager_closing
,
"task_manager_closing"
}, {
xtd::forms::close_reason::form_owner_closing
,
"form_owner_closing"
}, {
xtd::forms::close_reason::application_exit_call
,
"application_exit_call"
}};}
44
};
xtd::enum_collection
std::vector< std::pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition
enum_collection.hpp:24
xtd::forms::close_reason
close_reason
Specifies the reason that a form was closed.
Definition
close_reason.hpp:22
xtd::forms::anchor_styles::none
@ none
no styles.
Definition
anchor_styles.hpp:21
xtd::forms::close_reason::application_exit_call
@ application_exit_call
The Exit method of the Application class was invoked.
Definition
close_reason.hpp:36
xtd::forms::close_reason::none
@ none
The cause of the closure was not defined or could not be determined.
Definition
close_reason.hpp:24
xtd::forms::close_reason::windows_shut_down
@ windows_shut_down
The operating system is closing all applications before shutting down.
Definition
close_reason.hpp:26
xtd::forms::close_reason::form_owner_closing
@ form_owner_closing
The owner form is closing.
Definition
close_reason.hpp:34
xtd::forms::close_reason::mdi_form_closing
@ mdi_form_closing
The parent form of this multiple document interface (MDI) form is closing.
Definition
close_reason.hpp:28
xtd::forms::close_reason::task_manager_closing
@ task_manager_closing
The Microsoft Windows Task Manager is closing the application.
Definition
close_reason.hpp:32
xtd::forms::close_reason::user_closing
@ user_closing
The user is closing the form through the user interface (UI), for example by clicking the Close butto...
Definition
close_reason.hpp:30
xtd::forms
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition
texts.hpp:219
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::enum_register
Provides the registration struct for enumerations.
Definition
enum_register.hpp:38
xtd::enum_register::values
static auto values() noexcept
Definition
enum_register.hpp:55
Generated on
for xtd by
Gammasoft
. All rights reserved.