xtd 1.0.0
Loading...
Searching...
No Matches
busy_box.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "busy_dialog.hpp"
6#include <xtd/forms/application>
7#include <xtd/static>
8#include <xtd/globalization/translator>
9
11namespace xtd {
13 namespace forms {
33 public:
35
38 static auto hide() -> void;
39
42 static auto show(const xtd::forms::iwin32_window& owner) -> void;
46 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& text) -> void;
51 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& text, const xtd::string& caption) -> void;
57 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon) -> void;
64 static auto show(const xtd::forms::iwin32_window& owner, const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::drawing::color& back_color) -> void;
72 static auto show(const xtd::forms::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) -> void;
81 static auto show(const xtd::forms::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) -> void;
82
84 static auto show() -> void;
87 static auto show(const xtd::string& text) -> void;
91 static auto show(const xtd::string& text, const xtd::string& caption) -> void;
96 static auto show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon) -> void;
102 static auto show(const xtd::string& text, const xtd::string& caption, const xtd::drawing::icon& icon, const xtd::drawing::color& back_color) -> void;
109 static auto 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) -> void;
117 static auto 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) -> void;
119
120 private:
121 static auto show_busy_dialog(const xtd::forms::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) -> void;
122
123 static xtd::uptr<busy_dialog> dialog_;
124 };
125 }
126}
Contains xtd::forms::busy_dialog dialog.
static const basic_string empty_string
Definition basic_string.hpp:111
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:52
Represents a Windows icon, which is a small bitmap image that is used to represent an object....
Definition icon.hpp:28
static auto style_sheet() noexcept -> const xtd::forms::style_sheets::style_sheet &
Gets current xtd::forms::style_sheets::style_sheet style sheet.
Represents a dialog box that displays busy box.
Definition busy_box.hpp:32
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon) -> void
Displays a busy box in front of the specified window. The busy box displays a message,...
static auto show(const xtd::forms::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) -> void
Displays a busy box in front of the specified window. The busy box displays a message,...
static auto show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color) -> void
Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon, const xtd::drawing::color &back_color) -> void
Displays a busy box in front of the specified window. The busy box displays a message,...
static auto show() -> void
Displays a busy box.
static auto show(const xtd::string &text, const xtd::string &caption, const xtd::drawing::icon &icon) -> void
Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static auto show(const xtd::forms::iwin32_window &owner) -> void
Displays a busy box in front of the specified window. The busy box displays a message,...
static auto 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) -> void
Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &text) -> void
Displays a busy box in front of the specified window. The busy box displays a message,...
static auto show(const xtd::string &text) -> void
Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static auto show(const xtd::string &text, const xtd::string &caption) -> void
Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static auto show(const xtd::forms::iwin32_window &owner, const xtd::string &text, const xtd::string &caption) -> void
Displays a busy box in front of the specified window. The busy box displays a message,...
static auto 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) -> void
Displays a busy box. The busy box displays a message, title bar caption, button, and icon.
static auto hide() -> void
Hides a busy box in front.
static auto show(const xtd::forms::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) -> void
Displays a busy box in front of the specified window. The busy box displays a message,...
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.hpp:23
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:38
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
xtd::unique_ptr_object< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8