xtd 1.0.0
Loading...
Searching...
No Matches
xtd::forms::busy_dialog Class Referencefinal
Inheritance diagram for xtd::forms::busy_dialog:
xtd::forms::component xtd::object

Definition

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
Dark
Examples
The following code example demonstrates the use of busy_dialog dialog.
#include <xtd/xtd>
class form1 : public form {
public:
form1() {
text("Busy dialog example");
button1.auto_size(true);
button1.location({10, 10});
button1.parent(self_);
button1.text("Do something...");
button1.click += delegate_ {
auto dialog = busy_dialog {};
dialog.text("Application busy");
dialog.description("Please wait while do something...");
dialog.back_color(xtd::drawing::color::red);
dialog.fore_color(xtd::drawing::color::white);
dialog.opacity(0.75);
dialog.show(self_);
for (auto count = 0; count < 500; ++count) {
thread::sleep(10);
}
};
}
private:
};
auto main() -> int {
}
static const xtd::drawing::color white
Gets a system-defined color that has an ARGB value of 0xFFFFFFFF. This field is constant.
Definition color.hpp:476
static const xtd::drawing::color red
Gets a system-defined color that has an ARGB value of 0xFFFF0000. This field is constant.
Definition color.hpp:407
static auto exclamation() noexcept -> xtd::drawing::icon
Gets an xtd::drawing::icon object that contains the system exclamation icon (WIN32: IDI_EXCLAMATION).
static auto run() -> void
Begins running a standard application message loop on the current thread, without a form.
static auto do_events() -> void
Processes all Windows messages currently in the message queue.
Represents a dialog box that displays busy dialog.
Definition busy_dialog.hpp:37
auto icon() const noexcept -> xtd::drawing::icon
Gets the product icon.
virtual auto text() const noexcept -> const xtd::string &
Gets the text associated with this control.
Represents a window or dialog box that makes up an application's user interface.
Definition form.hpp:54
#define self_
The self_ expression is a reference value expression whose value is the reference of the implicit obj...
Definition self.hpp:20
#define delegate_
The declaration of a delegate type is similar to a method signature. It has a return value and any nu...
Definition delegate.hpp:1018
xtd::forms::style_sheets::control button
The buttton data allows you to specify the box of a button control.
Definition button.hpp:25
@ button1
The first button on the message box is the default button.
Definition message_dialog_default_button.hpp:24

Public Constructors

 busy_dialog ()
 Initializes a new instance of the busy_dialog class.

Public Properties

auto back_color () const noexcept -> xtd::drawing::color
 Gets the background color for the dialog.
auto back_color (const xtd::drawing::color &value) -> busy_dialog &
 Sets the background color for the dialog.
auto dialog_appearance () const noexcept -> xtd::forms::dialog_appearance
 Gets the dialog appearance color for the dialog.
auto dialog_appearance (xtd::forms::dialog_appearance value) -> busy_dialog &
 Sets the dialog appearance color for the dialog.
auto description () const noexcept -> const xtd::string &
 Gets the product description.
auto description (const xtd::string &value) -> busy_dialog &
 Sets the product description.
auto fore_color () const noexcept -> xtd::drawing::color
 Gets the foreground color for the dialog.
auto fore_color (const xtd::drawing::color &value) -> busy_dialog &
 Sets the foreground color for the dialog.
auto icon () const noexcept -> xtd::drawing::icon
 Gets the product icon.
auto icon (const xtd::drawing::icon &value) -> busy_dialog &
 Sets the product icon.
auto icon (const xtd::drawing::image &value) -> busy_dialog &
 Sets the product icon.
auto icon (const xtd::drawing::bitmap &value) -> busy_dialog &
 Sets the product icon.
auto opacity () const noexcept -> double
 Gets the dialog opacity.
auto opacity (double value) -> busy_dialog &
 Gets the dialog opacity.
auto text () const noexcept -> const xtd::string &
 Gets the dialog title.
auto text (const xtd::string &value) -> busy_dialog &
 Sets the dialog title.

Public Methods

auto hide () -> void
 Hides busy dialog box.
auto reset () -> void
 Resets all properties to empty string.
auto show () -> void
 Runs busy dialog box.
auto show (const xtd::forms::iwin32_window &owner) -> void
 Runs busy dialog box.

Additional Inherited Members

 object ()=default
 Create a new instance of the ultimate base class object.
virtual auto equals (const object &obj) const noexcept -> bool
 Determines whether the specified object is equal to the current object.
virtual auto get_hash_code () const noexcept -> xtd::usize
 Serves as a hash function for a particular type.
virtual auto get_type () const noexcept -> type_object
 Gets the type of the current instance.
template<typename object_t>
auto memberwise_clone () const -> xtd::unique_ptr_object< object_t >
 Creates a shallow copy of the current object.
virtual auto to_string () const -> xtd::string
 Returns a xtd::string that represents the current object.
template<typename object_a_t, typename object_b_t>
static auto equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool
 Determines whether the specified object instances are considered equal.
template<typename object_a_t, typename object_b_t>
static auto reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool
 Determines whether the specified object instances are the same instance.
 component ()
 Initialises a new instance of the component class.
virtual auto can_raise_events () const noexcept -> bool
 Gets a value indicating whether the component can raise an event.
auto design_mode () const noexcept -> bool
 Gets a value that indicates whether the component is currently in design mode.

Constructor & Destructor Documentation

◆ busy_dialog()

xtd::forms::busy_dialog::busy_dialog ( )

Initializes a new instance of the busy_dialog class.

Member Function Documentation

◆ back_color() [1/2]

auto xtd::forms::busy_dialog::back_color ( ) const -> xtd::drawing::color
nodiscardnoexcept

Gets the background color for the dialog.

Returns
A xtd::drawing::color that represents the background color of the dialog.

◆ back_color() [2/2]

auto xtd::forms::busy_dialog::back_color ( const xtd::drawing::color & value) -> busy_dialog &

Sets the background color for the dialog.

Parameters
valueA xtd::drawing::color that represents the background color of the dialog.
Returns
Current busy_dialog instance.

◆ dialog_appearance() [1/2]

auto xtd::forms::busy_dialog::dialog_appearance ( ) const -> xtd::forms::dialog_appearance
nodiscardnoexcept

Gets the dialog appearance color for the dialog.

Returns
A xtd::forms::dialog_appearance that represents the dialog appearance of the dialog.

◆ dialog_appearance() [2/2]

auto xtd::forms::busy_dialog::dialog_appearance ( xtd::forms::dialog_appearance value) -> busy_dialog &

Sets the dialog appearance color for the dialog.

Parameters
valueA xtd::forms::dialog_appearance that represents the dialog appearance of the dialog.
Returns
Current busy_dialog instance.

◆ description() [1/2]

auto xtd::forms::busy_dialog::description ( ) const -> const xtd::string &
nodiscardnoexcept

Gets the product description.

Returns
The product description.

◆ description() [2/2]

auto xtd::forms::busy_dialog::description ( const xtd::string & value) -> busy_dialog &

Sets the product description.

Parameters
valueThe product description.
Returns
Current busy_dialog instance.

◆ fore_color() [1/2]

auto xtd::forms::busy_dialog::fore_color ( ) const -> xtd::drawing::color
nodiscardnoexcept

Gets the foreground color for the dialog.

Returns
A xtd::drawing::color that represents the foreground color of the dialog.

◆ fore_color() [2/2]

auto xtd::forms::busy_dialog::fore_color ( const xtd::drawing::color & value) -> busy_dialog &

Sets the foreground color for the dialog.

Parameters
valueA xtd::drawing::color that represents the foreground color of the dialog.
Returns
Current busy_dialog instance.

◆ icon() [1/4]

auto xtd::forms::busy_dialog::icon ( ) const -> xtd::drawing::icon
nodiscardnoexcept

Gets the product icon.

Returns
The product icon.

◆ icon() [2/4]

auto xtd::forms::busy_dialog::icon ( const xtd::drawing::icon & value) -> busy_dialog &

Sets the product icon.

Parameters
valueThe product icon.
Returns
Current busy_dialog instance.

◆ icon() [3/4]

auto xtd::forms::busy_dialog::icon ( const xtd::drawing::image & value) -> busy_dialog &

Sets the product icon.

Parameters
valueThe product icon.
Returns
Current busy_dialog instance.

◆ icon() [4/4]

auto xtd::forms::busy_dialog::icon ( const xtd::drawing::bitmap & value) -> busy_dialog &

Sets the product icon.

Parameters
valueThe product icon.
Returns
Current busy_dialog instance.

◆ opacity() [1/2]

auto xtd::forms::busy_dialog::opacity ( ) const -> double
nodiscardnoexcept

Gets the dialog opacity.

Returns
The dialog opacity.
Remarks
0 full opacity; 1.0 no opacity. The lower the value, the more transparent.

◆ opacity() [2/2]

auto xtd::forms::busy_dialog::opacity ( double value) -> busy_dialog &

Gets the dialog opacity.

Parameters
valueThe dialog opacity.
Returns
Current busy_dialog instance.
Remarks
0 full opacity; 1.0 no opacity. The lower the value, the more transparent.

◆ text() [1/2]

auto xtd::forms::busy_dialog::text ( ) const -> const xtd::string &
nodiscardnoexcept

Gets the dialog title.

Returns
The dialog title.

◆ text() [2/2]

auto xtd::forms::busy_dialog::text ( const xtd::string & value) -> busy_dialog &

Sets the dialog title.

Parameters
valueThe dialog title.
Returns
Current busy_dialog instance.

◆ hide()

auto xtd::forms::busy_dialog::hide ( ) -> void

Hides busy dialog box.

◆ reset()

auto xtd::forms::busy_dialog::reset ( ) -> void

Resets all properties to empty string.

◆ show() [1/2]

auto xtd::forms::busy_dialog::show ( ) -> void

Runs busy dialog box.

◆ show() [2/2]

auto xtd::forms::busy_dialog::show ( const xtd::forms::iwin32_window & owner) -> void

Runs busy dialog box.


The documentation for this class was generated from the following file: