#include <pgmaskedit.h>
Inheritance diagram for PG_MaskEdit:

Public Member Functions | |
| PG_MaskEdit (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const std::string &style="LineEdit") | |
| void | SetText (const std::string &new_text) |
| Set the text of the maskedit control. | |
| void | SetMask (const std::string &mask) |
| Set the valid input mask. | |
| const PG_String & | GetMask () |
| Get current input mask. | |
| void | SetSpacer (const PG_Char &c) |
| Set the "spacer" character. | |
| PG_Char | GetSpacer () |
| Get the current "spacer" character. | |
Protected Member Functions | |
| bool | eventMouseButtonDown (const SDL_MouseButtonEvent *button) |
| Overridable Eventhandler for a SDL_MouseButtonEvent message. | |
| void | InsertChar (const PG_Char &c) |
| void | DeleteChar (Uint16 pos) |
|
||||||||||||||||
|
Definition at line 33 of file pgmaskedit.cpp. |
|
|
Reimplemented from PG_LineEdit. Definition at line 102 of file pgmaskedit.cpp. References PG_Widget::my_text. |
|
|
Overridable Eventhandler for a SDL_MouseButtonEvent message. This handler is called when a mouse button is pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from PG_MessageObject. Definition at line 108 of file pgmaskedit.cpp. References PG_MessageObject::eventMouseButtonDown(), PG_LineEdit::my_cursorPosition, PG_Widget::my_text, and PG_LineEdit::SetCursorPos(). |
|
|
Get current input mask.
Definition at line 66 of file pgmaskedit.cpp. |
|
|
Get the current "spacer" character.
Definition at line 74 of file pgmaskedit.cpp. |
|
|
Reimplemented from PG_LineEdit. Definition at line 78 of file pgmaskedit.cpp. References PG_LineEdit::my_cursorPosition, PG_Widget::my_text, and PG_LineEdit::SetCursorPos(). Referenced by SetText(). |
|
|
Set the valid input mask.
Definition at line 53 of file pgmaskedit.cpp. References PG_LineEdit::SetText(). Referenced by PG_SpinnerBox::SetMask(), and SetMaskEditAtts(). |
|
|
Set the "spacer" character. This char is displayed instead of "#"
Definition at line 70 of file pgmaskedit.cpp. Referenced by SetMaskEditAtts(). |
|
|
Set the text of the maskedit control. The new text is merged with the current mask
Reimplemented from PG_LineEdit. Definition at line 37 of file pgmaskedit.cpp. References InsertChar(), PG_LineEdit::SetCursorPos(), and PG_LineEdit::SetText(). Referenced by PG_SpinnerBox::PG_SpinnerBox(). |
1.4.2