![]() |
xtd - Reference Guide
0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <exception_dialog.h>
Represents a common dialog box that displays exception dialog.
Inherits xtd::forms::component.
Public Attributes | |
| event< exception_dialog, dialog_closed_event_handler > | dialog_closed |
| Occurs when the user close an exception dialog box with dialog close button or other dialog buttons. | |
Public Member Functions | |
| exception_dialog ()=default | |
| Initializes a new instance of the exception_dialog class. | |
| xtd::forms::dialog_result | dialog_result () const |
| Get async dialog_result result after dialog box is closing. | |
| xtd::forms::dialog_style | dialog_style () const |
| Gets the dialog style. | |
| exception_dialog & | dialog_style (xtd::forms::dialog_style dialog_style) |
| Sets the dialog style. | |
| std::reference_wrapper< const std::exception > | exception () const |
| Gets exception reference. | |
| exception_dialog & | exception (const std::exception &exception) |
| Sets exception. | |
| void | reset () |
| Resets all properties to empty string. | |
| xtd::forms::dialog_result | show_dialog () |
| Runs exception dialog box. | |
| xtd::forms::dialog_result | show_dialog (const iwin32_window &owner) |
| Runs exception dialog box. | |
| void | show_sheet (const iwin32_window &owner) |
| Runs exception dialog box. | |
| xtd::forms::dialog_result | show_sheet_dialog (const iwin32_window &owner) |
| Runs exception dialog box. | |
| xtd::ustring | text () const |
| Gets the dialog caption text. | |
| exception_dialog & | text (const xtd::ustring &text) |
| Sets the dialog caption text. | |
Public Member Functions inherited from xtd::object | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. | |
| virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. | |
| template<typename object_t > | |
| std::unique_ptr< object_t > | memberwise_clone () const |
| Gets the type of the current instance. | |
| virtual xtd::ustring | to_string () const noexcept |
| Returns a std::string that represents the current object. | |
Protected Member Functions | |
| void | on_dialog_closed (const dialog_closed_event_args &e) |
| Raises the close event. | |
Protected Member Functions inherited from xtd::forms::component | |
| component ()=default | |
| Initialises a new instance of the component class. | |
| virtual bool | can_raise_events () const |
| Gets a value indicating whether the component can raise an event. | |
| bool | design_mode () const |
| Gets a value that indicates whether the component is currently in design mode. | |
Additional Inherited Members | |
Static Public Member Functions inherited from xtd::object | |
| static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. | |
| static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. | |
|
default |
Initializes a new instance of the exception_dialog class.
|
inline |
Get async dialog_result result after dialog box is closing.
|
inline |
Gets the dialog style.
|
inline |
Sets the dialog style.
| dialog_style | One of the xtd::forms::dialog_style values. The default value is xtd::forms::dialog_style::standard. |
|
inline |
|
inline |
Sets exception.
| exception | The exception. |
|
inlineprotected |
Raises the close event.
| e | An exception_dialog_closed_event_args that provides the event data. |
| void xtd::forms::exception_dialog::reset | ( | ) |
Resets all properties to empty string.
| xtd::forms::dialog_result xtd::forms::exception_dialog::show_dialog | ( | ) |
Runs exception dialog box.
| xtd::forms::dialog_result xtd::forms::exception_dialog::show_dialog | ( | const iwin32_window & | owner | ) |
Runs exception dialog box.
| void xtd::forms::exception_dialog::show_sheet | ( | const iwin32_window & | owner | ) |
Runs exception dialog box.
| xtd::forms::dialog_result xtd::forms::exception_dialog::show_sheet_dialog | ( | const iwin32_window & | owner | ) |
Runs exception dialog box.
|
inline |
Gets the dialog caption text.
|
inline |
Sets the dialog caption text.
| text | The new dialog caption text. |