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/string>
11
13namespace xtd {
15 namespace forms {
17 class control;
19
39 public:
41
52
61
62 private:
63 static dialog_result show_assert_box(const iwin32_window* owner, const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame);
64 };
65 }
66}
Represents text as a sequence of character units.
Definition basic_string.h:79
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:47
static stack_frame current(const xtd::source_location &value=xtd::source_location::current()) noexcept
Crates a new xtd::diagnostics::stack_frame object corresponding to the location of the call site.
Represents a common dialog box that displays assert box.
Definition assert_box.h:38
static dialog_result show(const iwin32_window &owner, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Displays a assert box in front of the specified window. The assert box displays a specified assert.
static dialog_result show(const iwin32_window &owner, const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Displays a assert box in front of the specified window. The assert box displays a specified assert an...
static dialog_result show(const xtd::string &message, const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Displays a assert box. The assert box displays a specified assert and caption.
static dialog_result show(const xtd::diagnostics::stack_frame &stack_frame=xtd::diagnostics::stack_frame::current())
Displays a assert box. The assert box displays a specified assert.
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:23
Implements a Windows message.
Definition message.h:28
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:43
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