diff options
Diffstat (limited to 'UVtools.Core/Scripting/ScriptNumericalInput.cs')
-rw-r--r-- | UVtools.Core/Scripting/ScriptNumericalInput.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/UVtools.Core/Scripting/ScriptNumericalInput.cs b/UVtools.Core/Scripting/ScriptNumericalInput.cs new file mode 100644 index 0000000..f894bfa --- /dev/null +++ b/UVtools.Core/Scripting/ScriptNumericalInput.cs @@ -0,0 +1,35 @@ +/* + * GNU AFFERO GENERAL PUBLIC LICENSE + * Version 3, 19 November 2007 + * Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> + * Everyone is permitted to copy and distribute verbatim copies + * of this license document, but changing it is not allowed. + */ + +using System; + +namespace UVtools.Core.Scripting +{ + public class ScriptNumericalInput<T> : ScriptBaseInput<T> + { + /// <summary> + /// Gets the minimum for this input + /// </summary> + public T Minimum { get; init; } + + /// <summary> + /// Gets the minimum for this input + /// </summary> + public T Maximum { get; init; } + + /// <summary> + /// Gets the increment value for this + /// </summary> + public T Increment { get; init; } + + /// <summary> + /// Gets the number of decimal plates to round the value + /// </summary> + public byte DecimalPlates { get; init; } = 2; + } +} |