mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:20:04 +00:00
Add settings transform function
This commit is contained in:
parent
a7a30347ae
commit
45d3e45923
2 changed files with 22 additions and 6 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue