## class fltk::IntInput

### Class Hierarchy

    fltk::FloatInput
       |
       +----fltk::IntInput

### Include Files

    #include <fltk/IntInput.h>

### Description

The `fltk::IntInput` class is a subclass of `fltk::Input` that only allows the user to type decimal digits (or hex numbers of the form `0xaef`). Besides editing the text the user can use the up/down arrow keys to change the digits.

You may want a fltk::ValueInput widget instead. It has value() methods that take and return double values rather than strings.

If you change when() to `fltk::WHEN_ENTER_KEY` the callback is only done when the user hits the up/down arrow keys or when the user types the Enter key. This may be more useful than the default setting of `fltk::WHEN_CHANGED` which can make the callback happen when partially-edited numbers are in the field.

### Methods

- fltk::IntInput
- ~IntInput

#### fltk::IntInput::IntInput(int x, int y, int w, int h, const char *label = 0)

Creates a new `fltk::IntInput` widget using the given position, size, and label string.

#### virtual fltk::IntInput::~IntInput()

Destroys the widget and any value associated with it.