xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
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
10
namespace
xtd
{
12
namespace
forms
{
23
class
progress_changed_event_args
:
public
event_args
{
24
public
:
26
progress_changed_event_args
(
const
progress_changed_event_args
&) =
default
;
27
progress_changed_event_args
& operator =(
const
progress_changed_event_args
&) =
default
;
29
31
35
progress_changed_event_args
(
int32
progress_percentage,
const
xtd::any_object
&
user_state
) : progress_percentage_(progress_percentage), user_state_(
user_state
) {}
37
39
41
int32
progress_percentage() const noexcept {
return
progress_percentage_;}
42
45
xtd::any_object
user_state
() const noexcept {
return
user_state_;}
47
48
private
:
49
int32
progress_percentage_ = 0;
50
xtd::any_object
user_state_;
51
};
52
}
53
}
xtd::any_object
Represent a polymorphic wrapper capable of holding any type.
Definition
any_object.hpp:29
xtd::event_args::event_args
event_args()=default
Initializes a new instance of the event_args class.
xtd::forms::progress_changed_event_args::progress_changed_event_args
progress_changed_event_args(int32 progress_percentage, const xtd::any_object &user_state)
Initializes a new instance of the DoWorkEventArgs class.
Definition
progress_changed_event_args.hpp:35
xtd::forms::progress_changed_event_args::user_state
xtd::any_object user_state() const noexcept
Gets a value that represents the argument of an asynchronous operation.
Definition
progress_changed_event_args.hpp:45
xtd::int32
std::int32_t int32
Represents a 32-bit signed integer.
Definition
int32.hpp:25
xtd::forms
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition
texts.hpp:219
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
Generated on
for xtd by
Gammasoft
. All rights reserved.