xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
speech
synthesis
state_changed_event_args.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
synthesizer_state.hpp
"
6
#include "
../../optional.hpp
"
7
#include "
../../any.hpp
"
8
#include "
../../event_args.hpp
"
9
#include <functional>
10
12
namespace
xtd
{
14
namespace
speech
{
16
namespace
synthesis
{
18
class
speech_synthesizer
;
20
37
class
state_changed_event_args :
public
xtd::event_args
{
38
friend
class
speech_synthesizer;
39
public
:
41
state_changed_event_args(
const
state_changed_event_args&) =
default
;
42
state_changed_event_args(state_changed_event_args&&) =
default
;
43
auto
operator =(
const
state_changed_event_args&) -> state_changed_event_args& =
default
;
44
auto
operator =(state_changed_event_args&&) -> state_changed_event_args& =
default
;
46
48
53
[[nodiscard]]
auto
previous_state
() const noexcept ->
xtd
::
speech
::
synthesis
::
synthesizer_state
{
return
previous_state_;}
57
[[nodiscard]]
auto
state
() const noexcept ->
xtd
::
speech
::
synthesis
::
synthesizer_state
{
return
state_;}
59
60
private
:
61
state_changed_event_args
(
synthesizer_state
previous_state
,
xtd::speech::synthesis::synthesizer_state
state
) : previous_state_(
previous_state
), state_(
state
) {}
62
63
xtd::speech::synthesis::synthesizer_state
previous_state_;
64
xtd::speech::synthesis::synthesizer_state
state_;
65
};
66
}
67
}
68
}
any.hpp
Contains xtd::any type and std::bad_any_cast exception.
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::speech::synthesis::speech_synthesizer
Provides access to the functionality of an installed speech synthesis engine.
Definition
speech_synthesizer.hpp:35
xtd::speech::synthesis::state_changed_event_args
Returns data from the xtd::speech::synthesis::speech_synthesizer::state_changed event.
Definition
state_changed_event_args.hpp:37
xtd::speech::synthesis::state_changed_event_args::previous_state
auto previous_state() const noexcept -> xtd::speech::synthesis::synthesizer_state
Gets the state of the xtd::speech::synthesis::speech_synthesizer before the xtd::speech::synthesis::s...
Definition
state_changed_event_args.hpp:53
xtd::speech::synthesis::state_changed_event_args::state
auto state() const noexcept -> xtd::speech::synthesis::synthesizer_state
Gets the state of the xtd::speech::synthesis::speech_synthesizer after the xtd::speech::synthesis::sp...
Definition
state_changed_event_args.hpp:57
event_args.hpp
Contains xtd::event_args event args.
xtd::speech::synthesis::synthesizer_state
synthesizer_state
Enumerates values for the state of the xtd::speech::synthesis::speech_synthesizer.
Definition
synthesizer_state.hpp:28
xtd::speech::synthesis
Contains classes for initializing and configuring a speech synthesis engine, for creating prompts,...
Definition
prompt.hpp:13
xtd::speech
The xtd::speech namespace contains all classes and namespace to access speech technology.
Definition
prompt.hpp:11
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
optional.hpp
Contains xtd::optional type.
synthesizer_state.hpp
Contains xtd::speech::synthesis::synthesizer_state enum class.
Generated on
for xtd by
Gammasoft
. All rights reserved.