#include <inttextfield.h>
Definition at line 30 of file inttextfield.h.
Public Member Functions | |
IntTextField (int def=0) | |
Constructor, sets default value. | |
void | setRange (int minimum, int maximum) |
Sets the minimum and maximum values of the text box. | |
int | getValue () |
Returns the value in the text box. | |
void | reset () |
Reset the field to the default value. | |
void | setValue (int value) |
Set the value of the text box to the specified value. | |
void | setDefaultValue (int value) |
Set the default value of the text box to the specified value. | |
void | keyPressed (gcn::KeyEvent &event) |
Responds to key presses. | |
Private Attributes | |
int | mMin |
Minimum value. | |
int | mMax |
Maximum value. | |
int | mDefault |
Default value. | |
int | mValue |
Current value. |
IntTextField::IntTextField | ( | int | def = 0 |
) |
void IntTextField::setRange | ( | int | minimum, | |
int | maximum | |||
) |
Sets the minimum and maximum values of the text box.
Reimplemented from TextField.
Definition at line 57 of file inttextfield.cpp.
int IntTextField::getValue | ( | ) |
void IntTextField::reset | ( | ) |
void IntTextField::setValue | ( | int | value | ) |
Set the value of the text box to the specified value.
Definition at line 78 of file inttextfield.cpp.
void IntTextField::setDefaultValue | ( | int | value | ) |
Set the default value of the text box to the specified value.
Definition at line 92 of file inttextfield.cpp.
void IntTextField::keyPressed | ( | gcn::KeyEvent & | event | ) |
Responds to key presses.
Reimplemented from TextField.
Definition at line 35 of file inttextfield.cpp.
int IntTextField::mMin [private] |
int IntTextField::mMax [private] |
int IntTextField::mDefault [private] |
int IntTextField::mValue [private] |