xtd 1.0.0
Loading...
Searching...
No Matches
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 {
38 struct data;
39
40 public:
42
50
52
56 [[nodiscard]] auto back_color() const noexcept -> xtd::drawing::color;
60 auto back_color(const xtd::drawing::color& value) -> busy_dialog&;
61
64 [[nodiscard]] auto dialog_appearance() const noexcept -> xtd::forms::dialog_appearance;
69
72 [[nodiscard]] auto description() const noexcept -> const xtd::string&;
76 auto description(const xtd::string& value) -> busy_dialog&;
77
80 [[nodiscard]] auto fore_color() const noexcept -> xtd::drawing::color;
84 auto fore_color(const xtd::drawing::color& value) -> busy_dialog&;
85
88 [[nodiscard]] auto icon() const noexcept -> xtd::drawing::icon;
92 auto icon(const xtd::drawing::icon& value) -> busy_dialog&;
96 auto icon(const xtd::drawing::image& value) -> busy_dialog&;
100 auto icon(const xtd::drawing::bitmap& value) -> busy_dialog&;
101
105 [[nodiscard]] auto opacity() const noexcept -> double;
110 auto opacity(double value) -> busy_dialog&;
111
114 [[nodiscard]] auto text() const noexcept -> const xtd::string&;
118 auto text(const xtd::string& value) -> busy_dialog&;
120
122
125 auto hide() -> void;
126
128 auto reset() -> void;
129
131 auto show() -> void;
133 auto show(const xtd::forms::iwin32_window& owner) -> void;
135
136 private:
137 xtd::sptr<data> data_;
138 };
139 }
140}
auto icon() const noexcept -> xtd::drawing::icon
Gets the product icon.
auto fore_color() const noexcept -> xtd::drawing::color
Gets the foreground color for the dialog.
auto hide() -> void
Hides busy dialog box.
busy_dialog()
Initializes a new instance of the busy_dialog class.
auto back_color() const noexcept -> xtd::drawing::color
Gets the background color for the dialog.
auto dialog_appearance() const noexcept -> xtd::forms::dialog_appearance
Gets the dialog appearance color for the dialog.
auto opacity() const noexcept -> double
Gets the dialog opacity.
auto description() const noexcept -> const xtd::string &
Gets the product description.
auto show() -> void
Runs busy dialog box.
auto reset() -> void
Resets all properties to empty string.
auto text() const noexcept -> const xtd::string &
Gets the dialog title.
Provides the base implementation and enables object sharing between applications.
Definition component.hpp:26
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 auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197