xtd 0.2.0
Loading...
Searching...
No Matches
progress_changed_event_args.h
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:
27 progress_changed_event_args& operator =(const progress_changed_event_args&) = default;
29
31
35 progress_changed_event_args(int32 progress_percentage, const std::any& user_state) : progress_percentage_(progress_percentage), user_state_(user_state) {}
37
39
41 int32 progress_percentage() const noexcept {return progress_percentage_;}
42
45 std::any user_state() const noexcept {return user_state_;}
47
48 private:
49 int32 progress_percentage_ = 0;
50 std::any user_state_;
51 };
52 }
53}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Provides data for the xtd::forms::background_worker::progress_changed event handler.
Definition progress_changed_event_args.h:23
progress_changed_event_args(int32 progress_percentage, const std::any &user_state)
Initializes a new instance of the DoWorkEventArgs class.
Definition progress_changed_event_args.h:35
std::any user_state() const noexcept
Gets a value that represents the argument of an asynchronous operation.
Definition progress_changed_event_args.h:45
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10