Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

WiPara Class Reference

Inheritance diagram for WiPara:

Inheritance graph
[legend]
Collaboration diagram for WiPara:

Collaboration graph
[legend]

Detailed Description

Multi line paragraph.

Definition at line 14 of file WiPara.h.

Public Member Functions

 WiPara (const std::string &text, const Font &font, const SDL_Color &color)


Constructor & Destructor Documentation

WiPara::WiPara const std::string &  text,
const Font font,
const SDL_Color &  color
 

Definition at line 15 of file WiPara.cpp.

00017 {
00018     const std::string space = " ";
00019     StringTool::t_args lines = StringTool::split(text, '\n');
00020     for (unsigned int i = 0; i < lines.size(); ++i) {
00021         std::string line = lines[i];
00022         if (line.empty()) {
00023             line = space;
00024         }
00025         addWidget(new WiLabel(line, font, color));
00026     }
00027 }


The documentation for this class was generated from the following files:
Generated on Wed Jun 1 09:57:19 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2