Add settings transform function

This commit is contained in:
Dan Paulat 2024-06-21 20:47:53 -05:00
parent a7a30347ae
commit 45d3e45923
2 changed files with 22 additions and 6 deletions

View file

@ -165,6 +165,13 @@ public:
*/
void SetMaximum(const T& value);
/**
* Sets a custom transform function for the settings variable.
*
* @param transform Transform function
*/
void SetTransform(std::function<T(const T&)> transform);
/**
* Sets a custom validator function for the settings variable.
*