Advanced Strategic Command
Public Member Functions | Protected Member Functions | List of all members
MessageLineWidget Class Reference
Inheritance diagram for MessageLineWidget:
Inheritance graph

Public Member Functions

 MessageLineWidget (PG_Widget *parent, const PG_Point &pos, int width, Message *msg, GameMap *gamemap)
ASCString getName () const
MessagegetMessage () const
- Public Member Functions inherited from SelectionWidget
void setSelectionCallback (SelectionCallBack *callBack)
virtual ~SelectionWidget ()
virtual int gap ()

Protected Member Functions

void display (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)
- Protected Member Functions inherited from SelectionWidget
 SelectionWidget (PG_Widget *parent, const PG_Rect &rect)
bool eventMouseButtonUp (const SDL_MouseButtonEvent *button)
bool eventMouseButtonDown (const SDL_MouseButtonEvent *button)
void eventBlit (SDL_Surface *surface, const PG_Rect &src, const PG_Rect &dst)

Additional Inherited Members

- Public Types inherited from SelectionWidget
typedef Loki::Functor< bool,
SelectionWidget *) > 
- Public Attributes inherited from SelectionWidget
sigc::signal< void, const
SelectionWidget * > 
sigc::signal< void, const
SelectionWidget * > 

Detailed Description

Definition at line 359 of file messagedlg.cpp.

Constructor & Destructor Documentation

MessageLineWidget::MessageLineWidget ( PG_Widget *  parent,
const PG_Point &  pos,
int  width,
Message msg,
GameMap gamemap 

Member Function Documentation

void MessageLineWidget::display ( SDL_Surface *  surface,
const PG_Rect &  src,
const PG_Rect &  dst 

Implements SelectionWidget.

Definition at line 381 of file messagedlg.cpp.

Message* MessageLineWidget::getMessage ( void  ) const
ASCString MessageLineWidget::getName ( ) const

Implements SelectionWidget.

Definition at line 367 of file messagedlg.cpp.

References Message::from, getFirstBit(), Player::getName(), and GameMap::getPlayer().

Referenced by MessageLineWidget().

The documentation for this class was generated from the following file: