SpeechBubble Class Reference

#include <speechbubble.h>

Inheritance diagram for SpeechBubble:

Popup Container

List of all members.


Detailed Description

Definition at line 32 of file speechbubble.h.


Public Member Functions

 SpeechBubble ()
 Constructor.
void setCaption (const std::string &name, const gcn::Color *color=&guiPalette->getColor(Palette::TEXT))
 Sets the name displayed for the speech bubble, and in what color.
void setText (const std::string &text, bool showName=true)
 Sets the text to be displayed.
void setLocation (int x, int y)
 Sets the location in which the speech bubble will be displayed.

Private Attributes

std::string mText
gcn::Label * mCaption
TextBoxmSpeechBox

Constructor & Destructor Documentation

SpeechBubble::SpeechBubble (  ) 

Constructor.

Initializes the speech bubble.

Definition at line 36 of file speechbubble.cpp.


Member Function Documentation

void SpeechBubble::setCaption ( const std::string &  name,
const gcn::Color *  color = &guiPalette->getColor(Palette::TEXT) 
)

Sets the name displayed for the speech bubble, and in what color.

Definition at line 57 of file speechbubble.cpp.

void SpeechBubble::setText ( const std::string &  text,
bool  showName = true 
)

Sets the text to be displayed.

Definition at line 64 of file speechbubble.cpp.

void SpeechBubble::setLocation ( int  x,
int  y 
)

Sets the location in which the speech bubble will be displayed.


Member Data Documentation

std::string SpeechBubble::mText [private]

Definition at line 58 of file speechbubble.h.

gcn::Label* SpeechBubble::mCaption [private]

Definition at line 59 of file speechbubble.h.

Definition at line 60 of file speechbubble.h.


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

Generated on Sun Apr 26 17:30:44 2009 for The Mana World by  doxygen 1.5.5