SDLPP TextRenderer: add function
This commit is contained in:
parent
70f30b6767
commit
6cee97059c
@ -161,4 +161,7 @@ void TextRenderer::saveFontConfig(
|
||||
_config = std::move(config);
|
||||
text_change = true;
|
||||
}
|
||||
std::string TextRenderer::getText() {
|
||||
return _text;
|
||||
}
|
||||
} // namespace SDLPP
|
||||
|
@ -39,6 +39,7 @@ public:
|
||||
virtual void render() override;
|
||||
virtual void updateSizeAndPosition() override;
|
||||
virtual std::shared_ptr< RenderObject > copySelf() override;
|
||||
std::string getText();
|
||||
|
||||
private:
|
||||
virtual void copyTo( std::shared_ptr< RenderObject > other ) override;
|
||||
|
Loading…
Reference in New Issue
Block a user