aboutsummaryrefslogtreecommitdiff
path: root/src/Text.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-08 18:06:43 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-08 18:06:51 +0200
commit15c4434de0c2cd12e09c2f41e898c0b124194a97 (patch)
tree0bf01cd49a22b7aa79304ed0e9d34ac265d8393c /src/Text.cpp
parent4f6c843523f45708d8bbed25b3677f69c4208a38 (diff)
Add context menu, add context menu to delete message
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)