Mana
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ChatInput Class Reference

The chat input hides when it loses focus. More...

Inheritance diagram for ChatInput:
TextField

Public Member Functions

 ChatInput ()
 
void focusLost (const gcn::Event &event) override
 Called if the chat input loses focus.
 
- Public Member Functions inherited from TextField
 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.
 
AutoCompleteListergetAutoComplete () const
 Returns the TextField's source of autocomplete.
 
void setHistory (TextHistory *history)
 Sets the TextField's source of input history.
 
TextHistorygetHistory () const
 Returns the TextField's source of input history.
 

Additional Inherited Members

- Protected Member Functions inherited from TextField
void drawCaret (gcn::Graphics *graphics, int x) override
 

Detailed Description

The chat input hides when it loses focus.

It is also invisible by default.

Definition at line 56 of file chatwindow.cpp.

Constructor & Destructor Documentation

◆ ChatInput()

ChatInput::ChatInput ( )
inline

Definition at line 59 of file chatwindow.cpp.

Member Function Documentation

◆ focusLost()

void ChatInput::focusLost ( const gcn::Event &  event)
inlineoverride

Called if the chat input loses focus.

It will set itself to invisible as result.

Definition at line 70 of file chatwindow.cpp.


The documentation for this class was generated from the following file: