void setMinimum(int min)
Set the minimum value for a range.
void textInput(const TextInput &textInput)
Handle text input (should possibly be new event in Guichan).
void keyPressed(gcn::KeyEvent &keyEvent) override
Processes one keypress.
void setAutoComplete(AutoCompleteLister *lister)
Sets the TextField's source of autocomplete.
AutoCompleteLister * getAutoComplete() const
Returns the TextField's source of autocomplete.
void setMaximum(int max)
Set the maximum value for a range.
void drawFrame(gcn::Graphics *graphics) override
Draws the background and border.
void setHistory(TextHistory *history)
Sets the TextField's source of input history.
int getValue() const
Return the value for a numeric field.
void drawCaret(gcn::Graphics *graphics, int x) override
void draw(gcn::Graphics *graphics) override
Draws the text field.
AutoCompleteLister * mAutoComplete
void setRange(int min, int max)
Set the range on the field if it is numeric.
TextHistory * getHistory() const
Returns the TextField's source of input history.
void setNumeric(bool numeric)
Determine whether the field should be numeric or not.
bool matchesLastEntry(const std::string &text)
std::list< std::string > history
Command history.
std::list< std::string >::iterator current
History iterator.
void addEntry(const std::string &text)