|
|
| Template (enzo::prm::Type type, prm::Name name) |
| |
|
| Template (enzo::prm::Type type, prm::Name name, unsigned int vectorSize) |
| |
|
| Template (enzo::prm::Type type, prm::Name name, std::vector< prm::Default > defaults, unsigned int vectorSize=1, std::vector< prm::Range > ranges=std::vector< prm::Range >()) |
| |
|
| Template (enzo::prm::Type type, prm::Name name, prm::Default theDefault, unsigned int vectorSize=1, Range range=Range()) |
| |
|
enzo::String | getName () const |
| |
|
enzo::String | getToken () const |
| |
|
enzo::String | getLabel () const |
| |
|
const prm::Default | getDefault (unsigned int index=0) const |
| |
|
const prm::Range & | getRange (unsigned int index=0) const |
| |
| const std::vector< prm::Name > & | getOptions () const |
| | The set of named values this parameter can be set to.
|
| |
|
bool | hasOptions () const |
| |
|
intT | getNumOptions () const |
| | The number of available options.
|
| |
|
const prm::Type | getType () const |
| |
|
const unsigned int | getSize () const |
| |
|
const unsigned int | getNumDefaults () const |
| |
|
Direction | getDirection () const |
| |
|
const std::vector< Template > & | getChildren () const |
| |
| const Template & | getChild (const enzo::String &token) const |
| | Returns the child template with the given token.
|
| |
|
const bool | isContainer () const |
| |
|
bool | isMultiParm () const |
| |
|
enzo::String | getTooltip () const |
| |
|
enzo::String | getDocumentation () const |
| |
| enzo::String | getDisableCondition () const |
| | A condition that greys the parameter out, such as "applyscale == 0".
|
| |
| enzo::String | getHideCondition () const |
| | A condition that hides the parameter, such as "profileshape != 1".
|
| |
|
bool | isLabelHidden () const |
| |
|
bool | isLabelInline () const |
| | Returns whether a group shows its label beside its row instead of above it.
|
| |
|
bool | isBackgroundEnabled () const |
| |
| enzo::String | getIcon () const |
| | Returns the Lucide icon name shown beside a divider's label.
|
| |
|
Template & | setTooltip (String tooltip) |
| |
|
Template & | setDocumentation (String documentation) |
| |
|
Template & | setDisableCondition (String condition) |
| |
|
Template & | setHideCondition (String condition) |
| |
|
Template & | setDirection (Direction direction) |
| |
|
Template & | setOptions (std::vector< prm::Name > options) |
| |
|
Template & | addParm (Template child) |
| |
| Template & | setDefaults (std::vector< Default > defaults) |
| | Replaces the default of every component.
|
| |
|
Template & | setInstanceDefault (std::string fieldToken, std::vector< Default > defaults) |
| |
| std::optional< Default > | getInstanceDefault (const std::string &fieldToken, unsigned int instanceIndex) const |
| | The default for a multiparm field at a given instance.
|
| |
|
Template & | setLabelHidden (bool hidden) |
| |
|
Template & | setLabelInline (bool isInline) |
| |
|
Template & | setBackgroundEnabled (bool enabled) |
| |
|
Template & | setIcon (String icon) |
| |
|
template<typename T > |
| Template & | setStyle (T style) |
| |
|
const std::any & | getStyle () const |
| |