Restrict
annotation class Restrict(val min: Float = -Float.MAX_VALUE, val max: Float = Float.MAX_VALUE, val type: ValidatedNumber.WidgetType = WidgetType.SLIDER)
Annotation-driven validation for Floats
Author
fzzyhmstrs
Since
0.2.0, added widget type 0.6.3
Parameters
min
: Float - minimum allowable value, default to Float.MIN_VALUE
max
: Float - maximum allowable value, default to Float.MAX_VALUE
type
: ValidatedNumber.WidgetType - The "style" of the GUI widget for the annotated setting