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
xtd::event_args
{
24
public
:
26
30
progress_changed_event_args
(
xtd::int32
progress_percentage
,
const
xtd::any_object
&
user_state
) : progress_percentage_(
progress_percentage
), user_state_(
user_state
) {}
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
}
xtd::any_object
Represent a polymorphic wrapper capable of holding any type.
Definition
any_object.hpp:29
xtd::event_args
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition
event_args.hpp:18
xtd::forms::progress_changed_event_args::user_state
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
xtd::forms::progress_changed_event_args::progress_changed_event_args
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
xtd::forms::progress_changed_event_args::progress_percentage
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
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.