xtd 1.0.0
Loading...
Searching...
No Matches
progress_changed_event_args.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/any>
6#include <xtd/event_args>
7#include <cstdint>
8
10namespace xtd {
12 namespace forms {
24 public:
26
32
34
38 [[nodiscard]] auto progress_percentage() const noexcept -> xtd::int32 {return progress_percentage_;}
39
42 [[nodiscard]] auto user_state() const noexcept -> xtd::any_object {return user_state_;}
44
45 private:
46 xtd::int32 progress_percentage_ = 0;
47 xtd::any_object user_state_;
48 };
49 }
50}
Represent a polymorphic wrapper capable of holding any type.
Definition any_object.hpp:29
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
auto user_state() const noexcept -> xtd::any_object
Gets a value that represents the argument of an asynchronous operation.
Definition progress_changed_event_args.hpp:42
progress_changed_event_args(xtd::int32 progress_percentage, const xtd::any_object &user_state)
Initializes a new instance of the DoWorkEventArgs class.
Definition progress_changed_event_args.hpp:30
auto progress_percentage() const noexcept -> xtd::int32
Gets a value representing the progress percentage of an asynchronous operation.
Definition progress_changed_event_args.hpp:38
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
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