xtd 0.2.0
Loading...
Searching...
No Matches
busy_dialog.h
Go to the documentation of this file.
1
4#pragma once
5#include "component.h"
6#include "dialog_appearance.h"
7#include "iwin32_window.h"
8#include <xtd/drawing/color>
9#include <xtd/drawing/icon>
10#include <xtd/forms/control>
11#include <xtd/optional>
12#include <xtd/delegate>
13#include <string>
14
16namespace xtd {
18 namespace forms {
37 class forms_export_ busy_dialog final : public component {
38 struct data;
39
40 public:
42
50
52
60 busy_dialog& back_color(const xtd::drawing::color& color);
61
69
72 const xtd::string& description() const noexcept;
76 busy_dialog& description(const xtd::string& description);
77
80 xtd::drawing::color fore_color() const noexcept;
84 busy_dialog& fore_color(const xtd::drawing::color& color);
85
88 xtd::drawing::icon icon() const noexcept;
92 busy_dialog& icon(const xtd::drawing::icon& icon);
96 busy_dialog& icon(const xtd::drawing::image& image);
100 busy_dialog& icon(const xtd::drawing::bitmap& bitmap);
101
105 double opacity() const noexcept;
110 busy_dialog& opacity(double opacity);
111
114 const xtd::string& text() const noexcept;
118 busy_dialog& text(const xtd::string& text);
120
122
125 void hide();
126
128 void reset();
129
131 void show();
133 void show(const iwin32_window& owner);
135
136 private:
137 xtd::sptr<data> data_;
138 };
139 }
140}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.h:49
Represents a dialog box that displays busy dialog.
Definition busy_dialog.h:37
xtd::drawing::color back_color() const noexcept
Gets the background color for the dialog.
busy_dialog()
Initializes a new instance of the busy_dialog class.
Provides the base implementation and enables object sharing between applications.
Definition component.h:25
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:23
Contains xtd::forms::component class.
Contains xtd::forms::dialog_appearance enum class.
#define forms_export_
Define shared library export.
Definition forms_export.h:13
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
control_appearance
Specifies the appearance of a control.
Definition control_appearance.h:21
Contains xtd::forms::iwin32_window interface.
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