|
OpenEnroth 3d41500
|
#include <KeyConfigEntry.h>
Public Member Functions | |
| KeyConfigEntry (ConfigSection *section, InputAction action, std::string_view name, PlatformKey defaultValue, std::string_view description) | |
| InputAction | inputAction () const |
Public Member Functions inherited from ConfigEntry< PlatformKey > | |
| ConfigEntry (const ConfigEntry &other)=delete | |
| ConfigEntry (ConfigEntry &&other)=delete | |
| ConfigEntry (ConfigSection *section, std::string_view name, PlatformKey defaultValue, TypedValidator validator, std::string_view description) | |
| ConfigEntry (ConfigSection *section, std::string_view name, PlatformKey defaultValue, std::string_view description) | |
| const PlatformKey & | defaultValue () const |
| const PlatformKey & | value () const |
| void | setValue (PlatformKey value) |
| void | toggle () |
| void | increment () |
| void | decrement () |
| void | cycleIncrement () |
| void | cycleDecrement () |
| void | addListener (void *ctx, Listener listener) |
| void | addListener (void *ctx, std::function< void()> listener) |
Public Member Functions inherited from AnyConfigEntry | |
| AnyConfigEntry (ConfigSection *section, std::string_view name, std::string_view description, AnyHandler *handler, std::any defaultValue, Validator validator) | |
| virtual | ~AnyConfigEntry ()=default |
| const std::type_info & | type () const |
| const std::any & | defaultValue () const |
| const std::any & | value () const |
| void | setValue (std::any value) |
| void | reset () |
| std::string | defaultString () const |
| std::string | string () const |
| void | setString (std::string_view value) |
| ConfigSection * | section () const |
| const std::string & | name () const |
| const std::string & | description () const |
| void | addListener (void *ctx, std::function< void()> listener) |
| void | removeListeners (void *ctx) |
Private Types | |
| using | base_type = ConfigEntry< PlatformKey > |
Private Attributes | |
| InputAction | _inputAction |
Additional Inherited Members | |
Public Types inherited from AnyConfigEntry | |
| using | Validator = std::function< std::any(std::any)> |
Protected Member Functions inherited from AnyConfigEntry | |
| Validator | validator () const |
|
private |
|
inline |
|
inline |
|
private |