Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

PG_MultiLineEdit Class Reference

Inheritance diagram for PG_MultiLineEdit:

Inheritance graph
[legend]
Collaboration diagram for PG_MultiLineEdit:

Collaboration graph
[legend]
List of all members.

Detailed Description

Examples:

paratest.cpp.


Public Member Functions

 PG_MultiLineEdit (PG_Widget *parent, const PG_Rect &r, const char *style="LineEdit", int maximumLength=1000000)
virtual void SetText (const char *new_text)
 Set the current text string.


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)


Constructor & Destructor Documentation

PG_MultiLineEdit::PG_MultiLineEdit PG_Widget parent,
const PG_Rect r,
const char *  style = "LineEdit",
int  maximumLength = 1000000
 


Member Function Documentation

virtual void PG_MultiLineEdit::DeleteChar Uint16  pos  )  [protected, virtual]
 

Reimplemented from PG_LineEdit.

void PG_MultiLineEdit::eventBlit SDL_Surface *  surface,
const PG_Rect src,
const PG_Rect dst
[protected, virtual]
 

overridable eventhandler to blit the widget contents to the screen

Parameters:
surface pointer to SDL_Surface to be blitted
src source rectangle (client coordinates)
dst destination rectangle (screen coordinates) Override this eventhandler to perform custom blitting behaviour (without drawing onto the widget surface).

Reimplemented from PG_LineEdit.

bool PG_MultiLineEdit::eventKeyDown const SDL_KeyboardEvent *  key  )  [protected, virtual]
 

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.

Parameters:
key SDL_KeyboardEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_LineEdit.

bool PG_MultiLineEdit::eventMouseButtonDown const SDL_MouseButtonEvent *  button  )  [protected, virtual]
 

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.

Parameters:
button SDL_MouseButtonEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_MessageObject.

bool PG_MultiLineEdit::eventMouseButtonUp const SDL_MouseButtonEvent *  button  )  [protected, virtual]
 

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.

Parameters:
button SDL_MouseButtonEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_LineEdit.

bool PG_MultiLineEdit::eventMouseMotion const SDL_MouseMotionEvent *  motion  )  [protected, virtual]
 

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.

Parameters:
motion SDL_MouseMotionEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_MessageObject.

bool PG_MultiLineEdit::handleScroll PG_ScrollBar widget,
long  data
[protected]
 

virtual void PG_MultiLineEdit::InsertChar const PG_Char *  c  )  [protected, virtual]
 

Reimplemented from PG_LineEdit.

virtual void PG_MultiLineEdit::SetText const char *  new_text  )  [virtual]
 

Set the current text string.

Parameters:
new_text pointer to text string

Reimplemented from PG_LineEdit.

Examples:
paratest.cpp.


The ParaGUI Project - Alexander Pipelka