#include <text_list.h>
Public Types | |
| typedef std::list< Text * >::iterator | iterator |
Public Member Functions | |
| TextList () | |
| ~TextList () | |
| void | AddText (const std::string &txt, uint maxlines) |
| void | DeleteLine () |
| void | Clear () |
| int | Size () |
| void | Draw (int x, int y, int height) |
| void | DrawLine (Text *newline, int x, int y, int height) |
Public Attributes | |
| std::list< Text * > | list |
Definition at line 30 of file text_list.h.
| typedef std::list<Text*>::iterator TextList::iterator |
Definition at line 33 of file text_list.h.
| TextList::TextList | ( | ) |
| TextList::~TextList | ( | ) |
| void TextList::AddText | ( | const std::string & | txt, | |
| uint | maxlines | |||
| ) |
| void TextList::Clear | ( | ) |
| void TextList::DeleteLine | ( | ) |
| void TextList::Draw | ( | int | x, | |
| int | y, | |||
| int | height | |||
| ) |
Definition at line 56 of file text_list.cpp.
00056 { 00057 iterator it = list.begin(), end = list.end(); 00058 00059 for(; it!=end; it++){ 00060 //Draw each item in the list 00061 (*it)->DrawTopLeft(x, y); 00062 y+=height; 00063 } 00064 }
Here is the caller graph for this function:

| void TextList::DrawLine | ( | Text * | newline, | |
| int | x, | |||
| int | y, | |||
| int | height | |||
| ) |
Definition at line 66 of file text_list.cpp.
00066 { 00067 int size = list.size(); 00068 00069 y += (size * height); 00070 newline->DrawTopLeft(x, y); 00071 }
Here is the call graph for this function:

| int TextList::Size | ( | ) |
Definition at line 43 of file text_list.cpp.
00043 { 00044 return list.size(); 00045 }
Here is the caller graph for this function:

| std::list<Text*> TextList::list |
Definition at line 32 of file text_list.h.
1.4.7