Tweakable wrapper over a Type value.
More...
#include <le2d/tweak/tweakable.hpp>
template<typename Type>
class le::Tweakable< Type >
Tweakable wrapper over a Type value.
◆ Callback
◆ Parser
◆ as_string()
template<typename Type >
| auto le::Tweakable< Type >::as_string |
( |
| ) |
const -> std::string_view |
|
inlinefinalvirtual |
◆ assign()
template<typename Type >
| auto le::Tweakable< Type >::assign |
( |
std::string_view const |
input | ) |
-> bool |
|
inlinefinalvirtual |
Parse input into value and assign if successful.
- Parameters
-
- Returns
- true if successfully parsed.
Implements le::ITweakable.
◆ explicit() [1/3]
◆ explicit() [2/3]
template<typename Type >
template<std::convertible_to< Type > T>
◆ explicit() [3/3]
template<typename Type >
| le::Tweakable< Type >::explicit |
( |
std::same_as< bool, Type > |
| ) |
const & |
|
inline |
◆ get_value() [1/2]
◆ get_value() [2/2]
◆ on_set()
Install setter hook callback.
◆ operator=()
◆ set_value()
Set value and invoke OnChange (if not null).
- Parameters
-
◆ type_name()
template<typename Type >
| auto le::Tweakable< Type >::type_name |
( |
| ) |
const -> std::string_view |
|
inlinefinalvirtual |
The documentation for this class was generated from the following file: