#include <pgmultilineedit.h>
Inheritance diagram for PG_MultiLineEdit:

Public Member Functions | |
| PG_MultiLineEdit (PG_Widget *parent, const PG_Rect &r, const std::string &style="LineEdit", int maximumLength=1000000) | |
| virtual void | SetText (const std::string &new_text) |
| Set the current text string. | |
| void | SetCursorPos (int p) |
| void | SetVPosition (int line) |
| void | InsertText (const std::string &c) |
Protected Member Functions | |
| 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 | eventMouseButtonDown (const SDL_MouseButtonEvent *button) |
| Overridable Eventhandler for a SDL_MouseButtonEvent message. | |
| bool | eventMouseMotion (const SDL_MouseMotionEvent *motion) |
| Overridable Eventhandler for a SDL_MouseMotionEvent message. | |
| bool | eventMouseButtonUp (const SDL_MouseButtonEvent *button) |
| Overridable Eventhandler for a SDL_MouseButtonEvent message. | |
| virtual void | InsertChar (const PG_Char &c) |
| virtual void | DeleteChar (Uint16 pos) |
| bool | handleScroll (PG_ScrollBar *widget, long data) |
|
||||||||||||||||||||
|
Definition at line 7 of file pgmultilineedit.cpp. References handleScroll(), PG_Widget::Hide(), PG_Widget::MoveWidget(), PG_Rect::PG_Rect(), PG_ScrollBar::sigScrollPos, and PG_ScrollBar::sigScrollTrack. |
|
|
Reimplemented from PG_LineEdit. Definition at line 623 of file pgmultilineedit.cpp. References PG_LineEdit::DeleteChar(), and PG_LineEdit::my_cursorPosition. |
|
||||||||||||||||
|
overridable eventhandler to blit the widget contents to the screen
Reimplemented from PG_LineEdit. Definition at line 44 of file pgmultilineedit.cpp. References PG_ThemeWidget::eventBlit(). |
|
|
Overridable Eventhandler for a SDL_KeyboardEvent message. This handler is called when a key changed it's state from unpressed to pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from PG_LineEdit. Definition at line 368 of file pgmultilineedit.cpp. References PG_LineEdit::eventKeyDown(), PG_LineEdit::GetCursorPos(), PG_Widget::GetFontHeight(), InsertChar(), PG_LineEdit::IsCursorVisible(), PG_LineEdit::my_cursorPosition, PG_Rect::my_height, PG_Widget::my_text, PG_Rect::my_xpos, PG_Rect::my_ypos, PG_Char, PG_LineEdit::SetCursorPos(), SetCursorPos(), SetVPosition(), and PG_Application::TranslateNumpadKeys(). |
|
|
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 515 of file pgmultilineedit.cpp. References PG_LineEdit::EditBegin(), PG_LineEdit::GetEditable(), PG_LineEdit::IsCursorVisible(), PG_Widget::IsVisible(), PG_LineEdit::my_cursorPosition, PG_Rect::my_width, PG_Rect::my_xpos, and SetVPosition(). |
|
|
Overridable Eventhandler for a SDL_MouseButtonEvent message. This handler is called when a mouse button is released. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from PG_LineEdit. Definition at line 567 of file pgmultilineedit.cpp. |
|
|
Overridable Eventhandler for a SDL_MouseMotionEvent message. This handler is called when mouse movement is detected. The default implementation returns 'false' which indicates that this message is not processed by this object.
Reimplemented from PG_MessageObject. Definition at line 557 of file pgmultilineedit.cpp. References PG_MessageObject::eventMouseMotion(). |
|
||||||||||||
|
Definition at line 20 of file pgmultilineedit.cpp. References PG_ScrollBar::GetPosition(), and SetVPosition(). Referenced by PG_MultiLineEdit(). |
|
|
Reimplemented from PG_LineEdit. Definition at line 616 of file pgmultilineedit.cpp. References InsertText(). Referenced by eventKeyDown(). |
|
|
Definition at line 601 of file pgmultilineedit.cpp. References PG_Application::BulkModeActivator::disable(), PG_LineEdit::InsertChar(), PG_LineEdit::my_cursorPosition, and PG_Widget::Update(). Referenced by InsertChar(). |
|
|
Reimplemented from PG_LineEdit. Definition at line 594 of file pgmultilineedit.cpp. References PG_LineEdit::SetCursorPos(). Referenced by eventKeyDown(). |
|
|
Set the current text string.
Reimplemented from PG_LineEdit. Definition at line 653 of file pgmultilineedit.cpp. References PG_LineEdit::SetText(), and SetVPosition(). Referenced by MultiLineEditorDialog::MultiLineEditorDialog(), and NewMessage::NewMessage(). |
|
|
Definition at line 26 of file pgmultilineedit.cpp. References PG_ScrollBar::GetMaxRange(), PG_ScrollBar::GetPosition(), PG_ScrollBar::SetPosition(), and PG_Widget::Update(). Referenced by eventKeyDown(), eventMouseButtonDown(), handleScroll(), and SetText(). |
1.4.2