xtd 0.2.0
Loading...
Searching...
No Matches
busy_box.h
Go to the documentation of this file.
1
4#pragma once
5#include "busy_dialog.h"
6#include <xtd/forms/application>
7#include <xtd/literals>
8#include <xtd/static>
9
11namespace xtd {
13 namespace forms {
33 public:
35
38 static void hide();
39
42 static void show(const iwin32_window& owner);
46 static void show(const iwin32_window& owner, const xtd::string& text);
51 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption);
57 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon);
64 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::drawing::color& back_color);
72 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::drawing::color& back_color, const xtd::drawing::color& fore_color);
81 static void show(const iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::drawing::color& back_color, const xtd::drawing::color& fore_color, float opacity);
82
84 static void show();
87 static void show(const xtd::string& text);
91 static void show(const xtd::string& text, const xtd::string& caption);
96 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon);
102 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::drawing::color& back_color);
109 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::drawing::color& back_color, const xtd::drawing::color& fore_color);
117 static void show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::drawing::color& back_color, const xtd::drawing::color& fore_color, float opacity);
119
120 private:
121 static void show_busy_dialog(const iwin32_window* owner, const xtd::string& text = "Please wait..."_t, const xtd::string& caption = xtd::string::empty_string, const xtd::drawing::icon& icon = xtd::drawing::icon::empty, const xtd::drawing::color& back_color = application::style_sheet().system_colors().control(), const xtd::drawing::color& fore_color = application::style_sheet().system_colors().control_text(), float opacity = 1.0f);
122
123 static xtd::uptr<busy_dialog> dialog_;
124 };
125 }
126}
Represents text as a sequence of character units.
Definition basic_string.h:79
static const basic_string empty_string
Represents the empty basic_string.
Definition basic_string.h:124
Represents an ARGB (alpha, red, green, blue) color.
Definition color.h:49
Represents a Windows icon, which is a small bitmap image that is used to represent an object....
Definition icon.h:28
Represents a dialog box that displays busy box.
Definition busy_box.h:32
static void show(const xtd::string &text, const xtd::string &caption)
Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color, const xtd::drawing::color &fore_color, float opacity)
Displays a busy box in front of the specified window. The busy box displays a message,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color)
Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color, const xtd::drawing::color &fore_color)
Displays a busy box in front of the specified window. The busy box displays a message,...
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color)
Displays a busy box in front of the specified window. The busy box displays a message,...
static void show(const xtd::string &text)
Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color, const xtd::drawing::color &fore_color, float opacity)
Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption)
Displays a busy box in front of the specified window. The busy box displays a message,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon)
Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static void show(const iwin32_window &owner, const xtd::string &text)
Displays a busy box in front of the specified window. The busy box displays a message,...
static void show(const iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon)
Displays a busy box in front of the specified window. The busy box displays a message,...
static void show(const iwin32_window &owner)
Displays a busy box in front of the specified window. The busy box displays a message,...
static void show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color, const xtd::drawing::color &fore_color)
Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static void hide()
Hides a busy box in front.
static void show()
Displays a busy box.
Defines the base class for controls, which are components with visual representation.
Definition control.h:81
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:23
#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
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
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
Contains xtd::forms::busy_dialog dialog.