The NameEntryScreen class used for entering names for high scores. More...
Inherits GUIPanel, and GUIButtonAction.
Public Member Functions | |
| GUINameEntryScreen (FontRef headerFont, FontRef inputFont, FontRef buttonFont) | |
| Constructor. | |
| virtual | ~GUINameEntryScreen () |
| Deconstructor. | |
| virtual void | OnActivation () |
| Called when the panel is activated. | |
| virtual void | KeyboardUpdate (const IKeyboard &kb) |
| Called each frame when the panel has focus. | |
| virtual bool | InActiveArea (const Point2f &p) const |
| Returns true if the given query point is in the panels bounds. | |
| virtual bool | IsNameEntryComplete () const |
| Returns true when the user has completed their name entry. | |
| void | SetNameEntryComplete () |
| Sets the name entry to be completed. | |
| void | Reset () |
| Resets for a new name entry. | |
| void | ClearName () |
| Clears the name text. | |
| std::string | GetName () const |
| Gets the currently entered name. | |
| virtual void | OnClick (GUIButton *b) |
| Called when a button is clicked. | |
Protected Member Functions | |
| virtual void | Paint () |
| Does the actual rendering of the GUI element. | |
The NameEntryScreen class used for entering names for high scores.
| GUINameEntryScreen::GUINameEntryScreen | ( | FontRef | headerFont, | |
| FontRef | inputFont, | |||
| FontRef | buttonFont | |||
| ) |
Constructor.
| [in] | headerFont | the font to draw header text with. |
| [in] | inputFont | the font to draw input text with. |
| [in] | buttonFont | the font to draw button text with. |
| void GUINameEntryScreen::OnClick | ( | GUIButton * | b | ) | [virtual] |
Called when a button is clicked.
| [in] | b | the button that was clicked. |
1.6.3