xtd 0.2.0
close_reason.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/enum>
6 
8 namespace xtd {
10  namespace forms {
20  enum class close_reason {
22  none = 0,
26  mdi_form_closing = 2,
28  user_closing = 3,
35  };
36  }
37 }
38 
40 template<> struct xtd::enum_register<xtd::forms::close_reason> {
42 };
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
The user is closing the form through the user interface (UI), for example by clicking the Close butto...
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
close_reason
Specifies the reason that a form was closed.
Definition: close_reason.h:20
The Microsoft Windows Task Manager is closing the application.
The parent form of this multiple document interface (MDI) form is closing.
The cause of the closure was not defined or could not be determined.
The operating system is closing all applications before shutting down.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The Exit method of the Application class was invoked.
Provides the registration struct for enumerations.
Definition: enum_register.h:36