From 15c4434de0c2cd12e09c2f41e898c0b124194a97 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 8 May 2018 18:06:43 +0200 Subject: Add context menu, add context menu to delete message --- src/Text.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Text.cpp') 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) -- cgit v1.2.3