ParameterUIHints
ParameterUIHints
Trait struct for providing custom UI hints for a parameter type. More…
#include <ParameterSchema.hpp>
Public Functions
| Name | |
|---|---|
| void | annotate(ParameterSchema & ) |
Detailed Description
template <typename Params >
struct ParameterUIHints;Trait struct for providing custom UI hints for a parameter type.
Specialize this template to annotate fields with tooltips, allowed values, groups, default values, etc. The default (unspecialized) version does nothing.
Example:
template<>
struct ParameterUIHints<LineAngleParams> {
static void annotate(ParameterSchema& schema) {
schema.field("position")->tooltip = "Fractional position (0.0 = start, 1.0 = end)";
schema.field("method")->allowed_values = {"DirectPoints", "PolynomialFit"};
}
};Public Functions Documentation
function annotate
static inline void annotate(
ParameterSchema &
)Updated on 2026-11-13 at 20:25:39 +0000