xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
do_work_event_args.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
cancel_event_args.hpp
"
6
#include <xtd/any>
7
#include <cstdint>
8
10
namespace
xtd
{
12
namespace
forms
{
23
class
do_work_event_args
:
public
xtd::forms::cancel_event_args
{
24
public
:
26
30
explicit
do_work_event_args
(
const
xtd::any_object
&
argument
) : argument_(
argument
) {}
32
34
38
[[nodiscard]]
auto
argument
() const noexcept -> const
xtd
::
any_object
& {
return
argument_;}
39
42
[[nodiscard]]
auto
result
() const noexcept -> const
xtd
::
any_object
& {
return
result_;}
45
auto
result
(
const
xtd::any_object
& value) ->
do_work_event_args
& {
46
result_ = value;
47
return
*
this
;
48
}
49
50
51
private
:
52
xtd::any_object
argument_;
53
xtd::any_object
result_;
54
};
55
}
56
}
cancel_event_args.hpp
Contains xtd::forms::cancel_event_args event args.
xtd::any_object
Represent a polymorphic wrapper capable of holding any type.
Definition
any_object.hpp:29
xtd::forms::cancel_event_args
Provides data for a cancelable event.
Definition
cancel_event_args.hpp:22
xtd::forms::do_work_event_args::argument
auto argument() const noexcept -> const xtd::any_object &
Gets a value that represents the argument of an asynchronous operation.
Definition
do_work_event_args.hpp:38
xtd::forms::do_work_event_args::result
auto result(const xtd::any_object &value) -> do_work_event_args &
Sets a value that represents the result of an asynchronous operation.
Definition
do_work_event_args.hpp:45
xtd::forms::do_work_event_args::do_work_event_args
do_work_event_args(const xtd::any_object &argument)
Initializes a new instance of the DoWorkEventArgs class.
Definition
do_work_event_args.hpp:30
xtd::forms::do_work_event_args::result
auto result() const noexcept -> const xtd::any_object &
Gets a value that represents the result of an asynchronous operation.
Definition
do_work_event_args.hpp:42
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.