|
Uranium
Application Framework
|
Validates that a SettingInstance's value is within a certain minimum and maximum value. More...
Public Member Functions | |
| None | __init__ (self, str key) |
| Constructor. More... | |
| Any | __call__ (self, ContainerInterface value_provider, Optional[PropertyEvaluationContext] context=None) |
| Perform the actual validation. More... | |
Public Member Functions inherited from UM.Settings.SettingFunction.SettingFunction | |
| bool | __eq__ (self, other) |
| bool | isValid (self) |
| Returns whether the function is ready to be executed. More... | |
| FrozenSet[str] | getUsedSettingKeys (self) |
| Retrieve a set of the keys (strings) of all the settings used in this function. More... | |
| str | __str__ (self) |
| str | __repr__ (self) |
| Dict[str, Any] | __getstate__ (self) |
| To support Pickle. More... | |
| None | __setstate__ (self, Dict[str, Any] state) |
| None | registerOperator (cls, str name, Callable operator) |
| Expose a custom function to the code executed by SettingFunction. More... | |
Validates that a SettingInstance's value is within a certain minimum and maximum value.
This class performs validation of any value that has lt and gt implemented, but it is primarily used for numerical values like integers and floats.
| None UM.Settings.Validator.Validator.__init__ | ( | self, | |
| str | key | ||
| ) |
Constructor.
| instance | The instance this Validator validates. |
Reimplemented from UM.Settings.SettingFunction.SettingFunction.
| Any UM.Settings.Validator.Validator.__call__ | ( | self, | |
| ContainerInterface | value_provider, | ||
| Optional[PropertyEvaluationContext] | context = None |
||
| ) |
Perform the actual validation.
Reimplemented from UM.Settings.SettingFunction.SettingFunction.