Added a container accessor
This commit is contained in:
+3
-1
@@ -37,7 +37,7 @@ public:
|
||||
void DrawTo(SDL_Renderer*);
|
||||
|
||||
void PushLine(SDL_Renderer*, TTF_Font*, SDL_Color color, std::string);
|
||||
void PopLine(int num = 1);
|
||||
void PopLines(int num = 1);
|
||||
void ClearLines();
|
||||
|
||||
int SetX(int i);
|
||||
@@ -45,6 +45,8 @@ public:
|
||||
int GetX() const;
|
||||
int GetY() const;
|
||||
|
||||
std::list<TextLine>* GetContainer();
|
||||
|
||||
private:
|
||||
std::list<TextLine> lineList;
|
||||
int posX = 0, posY = 0;
|
||||
|
||||
Reference in New Issue
Block a user