xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
progress_changed_event_args.h
Go to the documentation of this file.
1 #pragma once
5 #include <any>
6 #include <cstdint>
7 #include <xtd/event_args.h>
8 
10 namespace xtd {
12  namespace forms {
20  public:
23  progress_changed_event_args& operator=(const progress_changed_event_args&) = default;
25 
28  progress_changed_event_args(int32_t progress_percentage, const std::any& user_state) : progress_percentage_(progress_percentage), user_state_(user_state) {}
29 
30  int32_t progress_percentage() const {return progress_percentage_;}
31 
34  std::any user_state() const {return user_state_;}
35 
36  private:
37  int32_t progress_percentage_ = 0;
38  std::any user_state_;
39  };
40  }
41 }
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 do_work event handler.
Definition: progress_changed_event_args.h:19
std::any user_state() const
Gets a value that represents the argument of an asynchronous operation.
Definition: progress_changed_event_args.h:34
progress_changed_event_args(int32_t progress_percentage, const std::any &user_state)
Initializes a new instance of the DoWorkEventArgs class.
Definition: progress_changed_event_args.h:28
Contains xtd::event_args event args.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17