

Definition at line 14 of file WiPara.h.
Public Member Functions | |
| 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 }
|
1.4.2