This really should be renamed to PG_TextBox or something similar, because PG_LineEdit 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.
|
Public Member Functions |
| | PG_LineEdit (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const char *style="LineEdit", int maximumLength=1000000) |
| | ~PG_LineEdit () |
| void | LoadThemeStyle (const char *widgettype) |
| | Load a specific themestyle.
|
| void | LoadThemeStyle (const char *widgettype, const char *objectname) |
| | Load a style from the theme definition.
|
| void | EditBegin () |
| | start edit
|
| void | EditEnd () |
| void | SetCursorPos (int p) |
| int | GetCursorPos () |
| virtual void | SetText (const char *new_text) |
| | Set the current text string.
|
| bool | IsCursorVisible () |
| void | SendChar (char c) |
| | Send a char into the LineEdit widget.
|
| void | SendDel () |
| | Send a 'del' keystroke into the LineEdit widget.
|
| void | SendBackspace () |
| | Send a 'BKSPC' keystroke into the LineEdit widget.
|
| void | SetValidKeys (const char *keys) |
| | Define a set of valid keys.
|
| void | SetEditable (bool edit) |
| | Set if the widget is editable by the user.
|
| bool | GetEditable () |
| | Check if the widget is editable by the user.
|
| void | SetPassHidden (char passchar) |
| | Set password character (witch will be displayed in place of letter).
|
| char | GetPassHidden (void) |
| | Return setted passchar.
|
| bool | Action (KeyAction action) |
Public Attributes |
| SignalEditBegin | sigEditBegin |
| SignalEditEnd | sigEditEnd |
| SignalEditReturn | sigEditReturn |
Protected Member Functions |
| virtual void | InsertChar (const char *c) |
| virtual void | DeleteChar (Uint16 pos) |
| void | CopyText (bool del=false) |
| void | PasteText (Uint16 pos) |
| void | StartMark (Uint16 pos) |
| void | EndMark (Uint16 pos) |
| virtual bool | eventFilterKey (const SDL_KeyboardEvent *key) |
| virtual void | eventEditBegin (int id, PG_Widget *widget, unsigned long data, void *clientdata) |
| virtual void | eventEditEnd (int id, PG_Widget *widget, unsigned long data, void *clientdata) |
| void | eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst) |
| | overridable eventhandler to blit the widget contents to the screen
|
| bool | eventKeyDown (const SDL_KeyboardEvent *key) |
| | Overridable Eventhandler for a SDL_KeyboardEvent message.
|
| bool | eventMouseButtonUp (const SDL_MouseButtonEvent *button) |
| | Overridable Eventhandler for a SDL_MouseButtonEvent message.
|
| void | eventInputFocusLost (PG_MessageObject *newfocus) |
| void | eventHide () |
| | overridable eventhandler called whenever the widget gets hidden.
|
Protected Attributes |
| int | my_cursorPosition |