Added a container accessor

This commit is contained in:
2016-10-18 14:32:26 +11:00
parent 34fcc40a80
commit 13e810df0a
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -45,7 +45,7 @@ void TextBox::PushLine(SDL_Renderer* renderer, TTF_Font* font, SDL_Color color,
lineList.emplace_back(renderer, font, color, str, 0, 0);
}
void TextBox::PopLine(int num) {
void TextBox::PopLines(int num) {
//prevent underflow
num < lineList.size() ? num : lineList.size();
@@ -73,3 +73,7 @@ int TextBox::GetX() const {
int TextBox::GetY() const {
return posY;
}
std::list<TextLine>* TextBox::GetContainer() {
return &lineList;
}