Represents a dialog box that displays busy dialog.
- Header
#include <xtd/forms/busy_dialog>
- Namespace
- xtd::forms
- Library
- xtd.forms
- Appearance
| Windows | macOS | Gnome |
Light |
html dialog_busy_dialog_m.png html dialog_busy_dialog_g.png
|
Dark |
html dialog_busy_dialog_md.png html dialog_busy_dialog_gd.png
|
- Examples
- The following code example demonstrates the use of busy_dialog dialog.
#include <xtd/drawing/system_icons>
#include <xtd/forms/application>
#include <xtd/forms/busy_dialog>
#include <xtd/forms/button>
#include <xtd/forms/form>
#include <xtd/threading/thread>
class form1 :
public form {
public:
form1() {
text(
"Busy dialog example");
dialog.text("Application busy");
dialog.
description(
"Please wait while do something...");
dialog.opacity(0.75);
for (auto count = 0; count < 500; ++count) {
}
};
}
private:
};
auto main()->int {
}
- Examples:
- busy_dialog.cpp.
|
| object ()=default |
| Create a new instance of the ultimate base class object. More...
|
|
bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More...
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More...
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. More...
|
|
template<typename object_t > |
std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Creates a shallow copy of the current object. More...
|
|
virtual xtd::ustring | to_string () const noexcept |
| Returns a sxd::ustring that represents the current object. More...
|
|
static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More...
|
|
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More...
|
|
| component () |
| Initialises a new instance of the component class. More...
|
|
virtual bool | can_raise_events () const noexcept |
| Gets a value indicating whether the component can raise an event. More...
|
|
bool | design_mode () const noexcept |
| Gets a value that indicates whether the component is currently in design mode. More...
|
|
◆ busy_dialog()
xtd::forms::busy_dialog::busy_dialog |
( |
| ) |
|
◆ back_color() [1/2]
Gets the background color for the dialog.
- Returns
- A xtd::drawing::color that represents the background color of the dialog.
◆ back_color() [2/2]
Sets the background color for the dialog.
- Parameters
-
- Returns
- Current busy_dialog instance.
◆ description() [1/2]
const xtd::ustring& xtd::forms::busy_dialog::description |
( |
| ) |
const |
|
noexcept |
Gets the product description.
- Returns
- The product description.
◆ description() [2/2]
Sets the product description.
- Parameters
-
description | The product description. |
- Returns
- Current busy_dialog instance.
◆ dialog_appearance() [1/2]
◆ dialog_appearance() [2/2]
Sets the dialog appearance color for the dialog.
- Parameters
-
- Returns
- Current busy_dialog instance.
◆ fore_color() [1/2]
Gets the foreground color for the dialog.
- Returns
- A xtd::drawing::color that represents the foreground color of the dialog.
◆ fore_color() [2/2]
Sets the foreground color for the dialog.
- Parameters
-
- Returns
- Current busy_dialog instance.
◆ hide()
void xtd::forms::busy_dialog::hide |
( |
| ) |
|
◆ icon() [1/4]
◆ icon() [2/4]
Sets the product icon.
- Parameters
-
- Returns
- Current busy_dialog instance.
◆ icon() [3/4]
Sets the product icon.
- Parameters
-
- Returns
- Current busy_dialog instance.
◆ icon() [4/4]
Sets the product icon.
- Parameters
-
- Returns
- Current busy_dialog instance.
◆ opacity() [1/2]
double xtd::forms::busy_dialog::opacity |
( |
| ) |
const |
|
noexcept |
Gets the dialog opacity.
- Returns
- The dialog opacity.
◆ opacity() [2/2]
busy_dialog& xtd::forms::busy_dialog::opacity |
( |
double |
opacity | ) |
|
Gets the dialog opacity.
- Parameters
-
opacity | The dialog opacity. |
- Returns
- Current busy_dialog instance.
◆ reset()
void xtd::forms::busy_dialog::reset |
( |
| ) |
|
Resets all properties to empty string.
◆ show() [1/2]
void xtd::forms::busy_dialog::show |
( |
| ) |
|
◆ show() [2/2]
void xtd::forms::busy_dialog::show |
( |
const iwin32_window & |
owner | ) |
|
◆ text() [1/2]
Gets the dialog title.
- Returns
- The dialog title.
◆ text() [2/2]
Sets the dialog title.
- Parameters
-
- Returns
- Current busy_dialog instance.
The documentation for this class was generated from the following file: