NumberInput

Number input field.

Constructors

this
this(void delegate() @(safe) changed)
Undocumented in source.
this
this(T value, void delegate() @(safe) changed)
Undocumented in source.

Members

Functions

decrement
void decrement()

Decrease the value by a step.

drawImpl
void drawImpl(Rectangle outer, Rectangle inner)
Undocumented in source. Be warned that the author may not have intended to support it.
evaluate
void evaluate()

Update the value.

increment
void increment()

Increase the value by a step.

submit
void submit()

Submit the value.

touchText
void touchText()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin enableInputActions
Undocumented in source.

Variables

maxValue
T maxValue;

Minimum and maximum value for the input, inclusive on both ends.

maxValue
T maxValue;
Undocumented in source.
minValue
T minValue;

Minimum and maximum value for the input, inclusive on both ends.

minValue
T minValue;
Undocumented in source.
step
T step;

Step used by the increment/decrement button.

value
T value;

Value of the input.

Inherited Members

From AbstractNumberInput

__anonymous
mixin enableInputActions
Undocumented in source.
spinner
NumberInputSpinner spinner;

"Spinner" controlling the decrement and increment buttons.

resizeImpl
void resizeImpl(Vector2 space)
Undocumented in source. Be warned that the author may not have intended to support it.
increment
void increment()
Undocumented in source.
decrement
void decrement()
Undocumented in source.

Examples

// intInput lets the user specify any integer value
intInput();

// Float input allows floating point values
floatInput();

// Specify a callback to update other components as the value of this input changes
IntInput myInput;

myInput = intInput(delegate {

    int result = myInput.value;

});

Meta