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

ViewFormattedText Class Reference

#include <textrenderer.h>

Inheritance diagram for ViewFormattedText:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ViewFormattedText (const ASCString &title, const ASCString &text, const PG_Rect &pos)

Protected Member Functions

bool eventKeyDown (const SDL_KeyboardEvent *key)
 Overridable Eventhandler for a SDL_KeyboardEvent message.

Constructor & Destructor Documentation

ViewFormattedText::ViewFormattedText const ASCString title,
const ASCString text,
const PG_Rect pos
 

Definition at line 505 of file textrenderer.cpp.

References PG_Rect::Height(), PG_Rect::PG_Rect(), TextRenderer::SetText(), and PG_Rect::Width().


Member Function Documentation

bool ViewFormattedText::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 ASC_PG_Dialog.

Definition at line 511 of file textrenderer.cpp.

References PG_Widget::QuitModal().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:22:23 2008 for Advanced Strategic Command by  doxygen 1.4.2