xtd 0.2.0
busy_dialog.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "component.hpp"
7#include "iwin32_window.hpp"
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;
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;
96 busy_dialog& icon(const xtd::drawing::image& image);
100 busy_dialog& icon(const xtd::drawing::bitmap& bitmap);
101
105 double opacity() const noexcept;
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.hpp:46
const xtd::string & text() const noexcept
Gets the dialog title.
double opacity() const noexcept
Gets the dialog opacity.
void hide()
Hides busy dialog box.
const xtd::string & description() const noexcept
Gets the product description.
xtd::drawing::color back_color() const noexcept
Gets the background color for the dialog.
xtd::forms::dialog_appearance dialog_appearance() const noexcept
Gets the dialog appearance color for the dialog.
void show()
Runs busy dialog box.
xtd::drawing::color fore_color() const noexcept
Gets the foreground color for the dialog.
busy_dialog()
Initializes a new instance of the busy_dialog class.
xtd::drawing::icon icon() const noexcept
Gets the product icon.
void reset()
Resets all properties to empty string.
component()
Initialises a new instance of the component class.
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.hpp:23
Contains xtd::forms::component class.
Contains xtd::forms::dialog_appearance enum class.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
Contains xtd::forms::iwin32_window interface.
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201