xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
form_closing_event_args.h
Go to the documentation of this file.
1 #pragma once
5 
6 #include "cancel_event_args.h"
7 #include "close_reason.h"
8 
10 namespace xtd {
12  namespace forms {
20  public:
22 
25  form_closing_event_args() = default;
31 
34  form_closing_event_args& operator=(const form_closing_event_args& form_closing_event_args) = default;
36 
38 
42  forms::close_reason close_reason() const {return close_reason_;}
44 
45  private:
47  };
48  }
49 }
forms::close_reason close_reason() const
Gets a value that indicates why the form is being closed.
Definition: form_closing_event_args.h:42
Provides data for the form_closing event.
Definition: form_closing_event_args.h:19
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::forms::close_reason enum class.
close_reason
Specifies the reason that a form was closed.
Definition: close_reason.h:18
Contains xtd::forms::cancel_event_args event args.
The cause of the closure was not defined or could not be determined.
form_closing_event_args()=default
Initializes a new instance of the form_closing_event_args class.
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:29
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Provides data for a cancelable event.
Definition: cancel_event_args.h:19