xtd 0.2.0
Loading...
Searching...
No Matches
assert_box.h
Go to the documentation of this file.
1
4#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
13namespace xtd {
15 namespace forms {
17 class control;
19
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
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}
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:37
static stack_frame empty() noexcept
Return an empty stack frame.
Represents a common dialog box that displays assert box.
Definition assert_box.h:36
static dialog_result show(const xtd::ustring &message)
Displays a assert box. The assert box displays a specified caption and unknown assert.
static dialog_result show(const iwin32_window &owner, const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Displays a assert box in front of the specified window. The assert box displays a specified assert an...
static dialog_result show(const iwin32_window &owner, const xtd::ustring &message)
Displays a assert box in front of the specified window. The assert box displays a specified caption a...
static dialog_result show(const iwin32_window &owner, const xtd::diagnostics::stack_frame &stack_frame)
Displays a assert box in front of the specified window. The assert box displays a specified assert.
static dialog_result show()
Displays a assert box. The assert box displays an unknown assert.
static dialog_result show(const iwin32_window &owner)
Displays a assert box in front of the specified window. The assert box displays an unknown assert.
static dialog_result show(const xtd::diagnostics::stack_frame &stack_frame)
Displays a assert box. The assert box displays a specified assert.
static dialog_result show(const xtd::ustring &message, const xtd::diagnostics::stack_frame &stack_frame)
Displays a assert box. The assert box displays a specified assert and caption.
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:21
Implements a Windows message.
Definition message.h:26
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
Contains xtd::forms::dialog_result enum class.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
#define forms_export_
Define shared library export.
Definition forms_export.h:13
@ control
The left or right CTRL modifier key.
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition dialog_result.h:41
Contains xtd::forms::iwin32_window interface.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10