xtd 0.2.0
busy_box.h
Go to the documentation of this file.
1 #pragma once
5 #include "busy_dialog.h"
6 #include <xtd/forms/application>
7 #include <xtd/literals>
8 #include <xtd/static>
9 
11 namespace xtd {
13  namespace forms {
30  class forms_export_ busy_box final static_ {
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 }
#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 system-defined color of text in a 3-D element.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::forms::busy_dialog dialog.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Provides an interface to expose Win32 HWND handles.
Definition: iwin32_window.h:21
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:45
The CTRL modifier key.
static const xtd::forms::style_sheets::style_sheet & style_sheet() noexcept
Gets current xtd::forms::style_sheets::style_sheet style sheet.
Hides minimized windows by moving them off the visible area of the screen.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Represents a dialog box that displays busy box.
Definition: busy_box.h:30
The xtd::forms::status_bar_panel displays text in the standard font.
Represents a Windows icon, which is a small bitmap image that is used to represent an object...
Definition: icon.h:28