aboutsummaryrefslogtreecommitdiff
path: root/src/Text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text.cpp')
-rw-r--r--src/Text.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Text.cpp b/src/Text.cpp
index 252d27f..5191ca5 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -84,6 +84,11 @@ namespace dchat
this->position = position;
}
+ sf::Vector2f Text::getPosition() const
+ {
+ return position;
+ }
+
void Text::setMaxWidth(float maxWidth)
{
if(maxWidth != this->maxWidth)
@@ -93,6 +98,11 @@ namespace dchat
}
}
+ float Text::getMaxWidth() const
+ {
+ return maxWidth;
+ }
+
void Text::setCharacterSize(unsigned int characterSize)
{
if(characterSize != this->characterSize)