Public Member Functions | |
PG_MaskEdit (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const char *style="LineEdit") | |
void | SetText (const char *new_text) |
Set the text of the maskedit control. | |
void | SetMask (const char *mask) |
Set the valid input mask. | |
const char * | GetMask () |
Get current input mask. | |
void | SetSpacer (char c) |
Set the "spacer" character. | |
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 char *c) |
void | DeleteChar (Uint16 pos) |
|
|
|
Reimplemented from PG_LineEdit. |
|
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. |
|
Get current input mask.
|
|
Get the current "spacer" character.
|
|
Reimplemented from PG_LineEdit. |
|
Set the valid input mask.
|
|
Set the "spacer" character. This char is displayed instead of "#"
|
|
Set the text of the maskedit control. The new text is merged with the current mask
Reimplemented from PG_LineEdit. |