API Documentation
|
#include <GenericOptions.h>
Public Member Functions | |
GenericOption () | |
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) | |
GenericOption (const GenericOption &option) | |
template<class t_type > | |
t_type | getAs () const |
template<class t_type > | |
void | set (const t_type &new_value) |
void | set (const String &new_value) |
void | setToDefault () |
bool | operator== (const GenericOption &option) const |
bool | operator!= (const GenericOption &option) const |
GenericOption & | operator= (const GenericOption &option) |
Public Attributes | |
TranslatedString | name |
TranslatedString | description |
String | id |
Resource< String > | value |
String | default_value |
String | file_extensions |
String | icon |
String | regex |
TypeInfo | parameter_type |
Buffer< std::pair< TranslatedString, String > > | available_options |
Bounds< 1, fltp08 > | value_bounds = Constant<Bounds<1, fltp08>>::NaN |
ConstPointer< Unit > | unit |
bool | allow_custom_option = false |
bool | is_editable = true |
bool | is_viewable = true |
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 |