Public Methods |
| SDLLineEdit (SDLWidget* parent, SDL_Rect& r) |
| ~SDLLineEdit () |
void | LoadThemeStyle (const char* widgettype) |
| Load a style from the theme definition. More...
|
void | LoadThemeStyle (const char* widgettype, const char* objectname) |
| Load a style from the theme definition. More...
|
void | EditBegin () |
| start edit. More...
|
void | EditEnd () |
void | SetCursorPos (int p) |
int | GetCursorPos () |
char* | GetText () |
void | SetText (char* new_text) |
void | SetTextFormat (char* text, ...) |
| Sets formated text (like printf). More...
|
bool | IsCursorVisible () |
void | SendChar (char c) |
| Send a char into the LineEdit widget. More...
|
void | SendDel () |
| Send a 'del' keystroke into the LineEdit widget. More...
|
void | SendBackspace () |
| Send a 'BKSPC' keystroke into the LineEdit widget. More...
|
void | SetValidKeys (char* keys) |
| Define a set of valid keys. More...
|
Protected Methods |
virtual void | eventEditBegin (int id, SDLWidget* widget, unsigned long data, void *clientdata) |
virtual void | eventEditEnd (int id, SDLWidget* widget, unsigned long data, void *clientdata) |
void | eventDraw (SDL_Surface* surface, SDL_Rect* rect) |
bool | eventKeyDown (const SDL_KeyboardEvent* key) |
| Overridable Eventhandler for a SDL_KeyboardEvent message. More...
|
bool | eventMouseButtonDown (const SDL_MouseButtonEvent* button) |
| Overridable Eventhandler for a SDL_MouseButtonEvent message. More...
|
void | eventInputFocusLost (SDLMessageObject* newfocus) |
bool | eventFilterKey (const SDL_KeyboardEvent* key) |
This really should be renamed to SDLTextBox or something similar, because SDLLineEdit really makes no sense :). Also the 'Edit' part implies that it will always be modifiable, but having a modifyable attribute would probably be better than creating a whole new widget for an unmodifiable text box.