|
Public Member Functions |
| | PG_LineEdit (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, const std::string &style="LineEdit", int maximumLength=1000000) |
| | ~PG_LineEdit () |
| void | LoadThemeStyle (const std::string &widgettype) |
| | Load a specific themestyle.
|
| void | LoadThemeStyle (const std::string &widgettype, const std::string &objectname) |
| | Load a style from the theme definition.
|
| void | EditBegin () |
| | start edit
|
| void | EditEnd () |
| virtual void | SetCursorPos (int p) |
| int | GetCursorPos () |
| virtual void | SetText (const std::string &new_text) |
| | Set the current text string.
|
| bool | IsCursorVisible () |
| void | SendChar (PG_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 std::string &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 (const PG_Char &passchar) |
| | Set password character (witch will be displayed in place of letter).
|
| char | GetPassHidden () |
| | Return setted passchar.
|
| bool | Action (KeyAction action) |
Public Attributes |
| SignalEditBegin | sigEditBegin |
| SignalEditEnd | sigEditEnd |
| SignalEditReturn | sigEditReturn |
Protected Member Functions |
| virtual void | InsertChar (const PG_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 |
| SDL_Surface * | my_srfTextCursor |
Classes |
| class | SignalEditBegin |
| | Signal type declaration. More...
|
| class | SignalEditEnd |
| class | SignalEditReturn |