Definition of a custom algorithm parameter, declared by a script's metadata.customParams list.
More...
#include <phosphor-tiles/include/PhosphorTiles/TileScriptMetadata.h>
Public Member Functions | |
| QVariantMap | toVariantMap () const |
| Convert to QVariantMap for QML consumption. | |
Public Attributes | |
| QString | name |
| Parameter name (camelCase, used as key in ctx.custom) | |
| QString | type |
| "number", "bool", or "enum" | |
| QVariant | defaultValue |
| Default value. | |
| QString | description |
| Human-readable description for settings UI. | |
| qreal | minValue = 0.0 |
| Minimum for number type. | |
| qreal | maxValue = 1.0 |
| Maximum for number type. | |
| QStringList | enumOptions |
| Valid options for enum type. | |
Definition of a custom algorithm parameter, declared by a script's metadata.customParams list.
|
inline |
Convert to QVariantMap for QML consumption.
| QVariant PhosphorTiles::ScriptedHelpers::CustomParamDef::defaultValue |
Default value.
| QString PhosphorTiles::ScriptedHelpers::CustomParamDef::description |
Human-readable description for settings UI.
| QStringList PhosphorTiles::ScriptedHelpers::CustomParamDef::enumOptions |
Valid options for enum type.
| qreal PhosphorTiles::ScriptedHelpers::CustomParamDef::maxValue = 1.0 |
Maximum for number type.
| qreal PhosphorTiles::ScriptedHelpers::CustomParamDef::minValue = 0.0 |
Minimum for number type.
| QString PhosphorTiles::ScriptedHelpers::CustomParamDef::name |
Parameter name (camelCase, used as key in ctx.custom)
| QString PhosphorTiles::ScriptedHelpers::CustomParamDef::type |
"number", "bool", or "enum"