|
Mana
|
A password field. More...
#include <passwordfield.h>
Public Member Functions | |
| PasswordField (const std::string &text=std::string()) | |
| Constructor, initializes the password field with the given string. | |
| void | draw (gcn::Graphics *graphics) override |
| Draws the password field. | |
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. | |
| 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 | |
Protected Member Functions inherited from TextField | |
| void | drawCaret (gcn::Graphics *graphics, int x) override |
A password field.
Definition at line 31 of file passwordfield.h.
| PasswordField::PasswordField | ( | const std::string & | text = std::string() | ) |
Constructor, initializes the password field with the given string.
Definition at line 24 of file passwordfield.cpp.
|
override |
Draws the password field.
Definition at line 29 of file passwordfield.cpp.