xtd 0.2.0
assert_box.h
Go to the documentation of this file.
1 #pragma once
5 #include "../forms_export.h"
6 #include "dialog_result.h"
7 #include "iwin32_window.h"
8 #include <xtd/diagnostics/stack_frame>
9 #include <xtd/static>
10 #include <xtd/ustring>
11 
13 namespace xtd {
15  namespace forms {
17  class control;
19 
36  class forms_export_ assert_box final static_ {
37  public:
39 
43  static dialog_result show(const iwin32_window& owner);
47  static dialog_result show(const iwin32_window& owner, const xtd::ustring& message);
51  static dialog_result show(const iwin32_window& owner, const xtd::diagnostics::stack_frame& stack_frame);
56  static dialog_result show(const iwin32_window& owner, const xtd::ustring& message, const xtd::diagnostics::stack_frame& stack_frame);
57 
59  static dialog_result show();
62  static dialog_result show(const xtd::ustring& message);
65  static dialog_result show(const xtd::diagnostics::stack_frame& stack_frame);
69  static dialog_result show(const xtd::ustring& message, const xtd::diagnostics::stack_frame& stack_frame);
71 
72  private:
73  static dialog_result show_assert_box(const iwin32_window* owner, const xtd::ustring& message = "", const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::empty());
74  };
75  }
76 }
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition: dialog_result.h:41
#define static_
This keyword is use to represent a static object. A static object can&#39;t be instantiated (constructors...
Definition: static.h:37
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Represents a common dialog box that displays assert box.
Definition: assert_box.h:36
Contains xtd::forms::iwin32_window interface.
Provides an interface to expose Win32 HWND handles.
Definition: iwin32_window.h:21
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition: stack_frame.h:37
Contains xtd::forms::dialog_result enum class.
static stack_frame empty() noexcept
Return an empty stack frame.
Implements a Windows message.
Definition: message.h:26
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The left or right CTRL modifier key.