xtd 0.2.0
busy_dialog.h
Go to the documentation of this file.
1 #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 
16 namespace xtd {
18  namespace forms {
35  class forms_export_ busy_dialog final : public component {
36  struct data;
37 
38  public:
40 
43  busy_dialog();
46  ~busy_dialog();
48 
50 
54  xtd::drawing::color back_color() const noexcept;
58  busy_dialog& back_color(const xtd::drawing::color& color);
59 
67 
70  const xtd::ustring& description() const noexcept;
74  busy_dialog& description(const xtd::ustring& description);
75 
78  xtd::drawing::color fore_color() const noexcept;
82  busy_dialog& fore_color(const xtd::drawing::color& color);
83 
86  xtd::drawing::icon icon() const noexcept;
90  busy_dialog& icon(const xtd::drawing::icon& icon);
94  busy_dialog& icon(const xtd::drawing::image& image);
98  busy_dialog& icon(const xtd::drawing::bitmap& bitmap);
99 
103  double opacity() const noexcept;
108  busy_dialog& opacity(double opacity);
109 
112  const xtd::ustring& text() const noexcept;
118 
120 
123  void hide();
124 
126  void reset();
127 
129  void show();
131  void show(const iwin32_window& owner);
133 
134  private:
135  std::shared_ptr<data> data_;
136  };
137  }
138 }
control_appearance dialog_appearance
Specifies the appearance of a dialog.
Definition: dialog_appearance.h:19
Contains xtd::forms::dialog_appearance enum class.
Represents a dialog box that displays busy dialog.
Definition: busy_dialog.h:35
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
control_appearance
Specifies the appearance of a control.
Definition: control_appearance.h:19
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Contains xtd::forms::iwin32_window interface.
Provides an interface to expose Win32 HWND handles.
Definition: iwin32_window.h:21
Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes...
Definition: bitmap.h:26
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:45
Hides minimized windows by moving them off the visible area of the screen.
An abstract base class that provides functionality for the bitmap and metafile descended classes...
Definition: image.h:48
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Contains xtd::forms::component class.
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
Provides the base implementation and enables object sharing between applications. ...
Definition: component.h:23