API Documentation
|
Stores a generic option of any type as well as some information about how the user might interact with that type. More...
#include <GenericOptions.h>
Public Member Functions | |
GenericOption () | |
GenericOption (const GenericOption &option) | |
GenericOption (const String &id, const TranslatedString &name, const String &value) | |
template<class t_type > | |
GenericOption (const String &id, const TranslatedString &name, const t_type &value) | |
template<class t_type > | |
t_type | getAs () const |
bool | operator!= (const GenericOption &option) const |
GenericOption & | operator= (const GenericOption &option) |
bool | operator== (const GenericOption &option) const |
void | set (const String &new_value) |
template<class t_type > | |
void | set (const t_type &new_value) |
void | setToDefault () |
Public Attributes | |
bool | allow_custom_option = false |
Buffer< std::pair< TranslatedString, String > > | available_options |
String | default_value |
TranslatedString | description |
String | file_extensions |
String | icon |
String | id |
bool | is_editable = true |
bool | is_viewable = true |
TranslatedString | name |
TypeInfo | parameter_type |
String | regex |
ConstPointer< Unit > | unit |
Resource< String > | value |
Bounds< 1, fltp08 > | value_bounds = Constant<Bounds<1, fltp08>>::Invalid |
Stores a generic option of any type as well as some information about how the user might interact with that type.
GenericOption | ( | ) |
GenericOption | ( | const String & | id, |
const TranslatedString & | name, | ||
const String & | value ) |
|
inline |
|
inline |
|
inlinenodiscard |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool allow_custom_option = false |
Buffer<std::pair<TranslatedString, String> > available_options |
String default_value |
TranslatedString description |
String file_extensions |
String icon |
String id |
bool is_editable = true |
bool is_viewable = true |
TranslatedString name |
TypeInfo parameter_type |
String regex |
ConstPointer<Unit> unit |