Mana
|
The chat input hides when it loses focus. More...
Public Member Functions | |
ChatInput () | |
void | focusLost (const gcn::Event &event) override |
Called if the chat input loses focus. | |
![]() | |
TextField (const std::string &text=std::string(), bool loseFocusOnTab=true) | |
Constructor, initializes the text field with the given string. | |
void | draw (gcn::Graphics *graphics) override |
Draws the text field. | |
void | drawFrame (gcn::Graphics *graphics) override |
Draws the background and border. | |
void | setNumeric (bool numeric) |
Determine whether the field should be numeric or not. | |
void | setRange (int min, int max) |
Set the range on the field if it is numeric. | |
void | keyPressed (gcn::KeyEvent &keyEvent) override |
Processes one keypress. | |
void | textInput (const TextInput &textInput) |
Handle text input (should possibly be new event in Guichan). | |
void | setMinimum (int min) |
Set the minimum value for a range. | |
void | setMaximum (int max) |
Set the maximum value for a range. | |
int | getValue () const |
Return the value for a numeric field. | |
void | setAutoComplete (AutoCompleteLister *lister) |
Sets the TextField's source of autocomplete. | |
AutoCompleteLister * | getAutoComplete () const |
Returns the TextField's source of autocomplete. | |
void | setHistory (TextHistory *history) |
Sets the TextField's source of input history. | |
TextHistory * | getHistory () const |
Returns the TextField's source of input history. | |
Additional Inherited Members | |
![]() | |
void | drawCaret (gcn::Graphics *graphics, int x) override |
The chat input hides when it loses focus.
It is also invisible by default.
Definition at line 56 of file chatwindow.cpp.
|
inline |
Definition at line 59 of file chatwindow.cpp.
|
inlineoverride |
Called if the chat input loses focus.
It will set itself to invisible as result.
Definition at line 70 of file chatwindow.cpp.