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

A password field. More...

#include <passwordfield.h>

Inheritance diagram for PasswordField:
TextField

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.
 
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

A password field.

Definition at line 31 of file passwordfield.h.

Constructor & Destructor Documentation

◆ PasswordField()

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.

Member Function Documentation

◆ draw()

void PasswordField::draw ( gcn::Graphics *  graphics)
override

Draws the password field.

Definition at line 29 of file passwordfield.cpp.


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