xtd - Reference Guide
0.1.1
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. More... | |
Public Member Functions | |
exception_dialog ()=default | |
Initializes a new instance of the exception_dialog class. More... | |
xtd::forms::dialog_result | dialog_result () const |
Get async dialog_result result after dialog box is closing. More... | |
xtd::forms::dialog_style | dialog_style () const |
Gets the dialog style. More... | |
exception_dialog & | dialog_style (xtd::forms::dialog_style dialog_style) |
Sets the dialog style. More... | |
std::reference_wrapper< const std::exception > | exception () const |
Gets exception reference. More... | |
exception_dialog & | exception (const std::exception &exception) |
Sets exception. More... | |
void | reset () |
Resets all properties to empty string. More... | |
xtd::forms::dialog_result | show_dialog () |
Runs exception dialog box. More... | |
xtd::forms::dialog_result | show_dialog (const iwin32_window &owner) |
Runs exception dialog box. More... | |
void | show_sheet (const iwin32_window &owner) |
Runs exception dialog box. More... | |
xtd::forms::dialog_result | show_sheet_dialog (const iwin32_window &owner) |
Runs exception dialog box. More... | |
xtd::ustring | text () const |
Gets the dialog caption text. More... | |
exception_dialog & | text (const xtd::ustring &text) |
Sets the dialog caption text. More... | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. More... | |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. More... | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. More... | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const |
Gets the type of the current instance. More... | |
virtual xtd::ustring | to_string () const noexcept |
Returns a std::string that represents the current object. More... | |
Protected Member Functions | |
void | on_dialog_closed (const dialog_closed_event_args &e) |
Raises the close event. More... | |
Protected Member Functions inherited from xtd::forms::component | |
component ()=default | |
Initialises a new instance of the component class. More... | |
virtual bool | can_raise_events () const |
Gets a value indicating whether the component can raise an event. More... | |
bool | design_mode () const |
Gets a value that indicates whether the component is currently in design mode. More... | |
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. More... | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. More... | |
|
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 |
Gets exception reference.
|
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. |