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 {
31 public:
33
36 static void hide();
37
40 static void show(const iwin32_window& owner);
44 static void show(const iwin32_window& owner, const xtd::ustring& text);
49 static void show(const iwin32_window& owner, const xtd::ustring& text, const xtd::ustring& caption);
55 static void show(const iwin32_window& owner, const xtd::ustring& text, const xtd::ustring& caption, const xtd::drawing::icon& icon);
62 static void show(const iwin32_window& owner, const xtd::ustring& text, const xtd::ustring& caption, const xtd::drawing::icon& icon, const xtd::drawing::color& back_color);
70 static void show(const iwin32_window& owner, const xtd::ustring& text, const xtd::ustring& caption, const xtd::drawing::icon& icon, const xtd::drawing::color& back_color, const xtd::drawing::color& fore_color);
79 static void show(const iwin32_window& owner, const xtd::ustring& text, const xtd::ustring& caption, const xtd::drawing::icon& icon, const xtd::drawing::color& back_color, const xtd::drawing::color& fore_color, float opacity);
80
82 static void show();
85 static void show(const xtd::ustring& text);
89 static void show(const xtd::ustring& text, const xtd::ustring& caption);
94 static void show(const xtd::ustring& text, const xtd::ustring& caption, const xtd::drawing::icon& icon);
100 static void show(const xtd::ustring& text, const xtd::ustring& caption, const xtd::drawing::icon& icon, const xtd::drawing::color& back_color);
107 static void show(const xtd::ustring& text, const xtd::ustring& caption, const xtd::drawing::icon& icon, const xtd::drawing::color& back_color, const xtd::drawing::color& fore_color);
115 static void show(const xtd::ustring& text, const xtd::ustring& caption, const xtd::drawing::icon& icon, const xtd::drawing::color& back_color, const xtd::drawing::color& fore_color, float opacity);
117
118 private:
119 static void show_busy_dialog(const iwin32_window* owner, const xtd::ustring& text = "Please wait..."_t, const xtd::ustring& caption = "", 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);
120
121 static std::unique_ptr<busy_dialog> dialog_;
122 };
123 }
124}
Contains xtd::forms::busy_dialog dialog.
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:30
static void show(const xtd::ustring &text, const xtd::ustring &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::ustring &text)
Displays a busy box in front of the specified window. The busy box displays a message,...
static void show(const xtd::ustring &text, const xtd::ustring &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 show(const iwin32_window &owner, const xtd::ustring &text, const xtd::ustring &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::ustring &text, const xtd::ustring &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, const xtd::ustring &text, const xtd::ustring &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::ustring &text, const xtd::ustring &caption)
Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static void show(const xtd::ustring &text)
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::ustring &text, const xtd::ustring &caption)
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::ustring &text, const xtd::ustring &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 iwin32_window &owner)
Displays a busy box in front of the specified window. The busy box displays a message,...
static void show(const xtd::ustring &text, const xtd::ustring &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 xtd::ustring &text, const xtd::ustring &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 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:79
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:21
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#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
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