aboutsummaryrefslogtreecommitdiff
path: root/include/MessageBoard.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/MessageBoard.hpp')
-rw-r--r--include/MessageBoard.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/MessageBoard.hpp b/include/MessageBoard.hpp
index ca1405f..b431af8 100644
--- a/include/MessageBoard.hpp
+++ b/include/MessageBoard.hpp
@@ -10,18 +10,21 @@
namespace dchat
{
+ class Channel;
+
class MessageBoard
{
+ friend class Channel;
public:
MessageBoard(const sf::Vector2u &size);
~MessageBoard();
- void updateStaticContentTexture(const sf::Vector2u &newSize);
- void addMessage(Message *message);
-
void processEvent(const sf::Event &event);
void draw(sf::RenderWindow &window, Cache &cache);
private:
+ void updateStaticContentTexture(const sf::Vector2u &newSize);
+ void addMessage(Message *message);
+ private:
sf::RenderTexture staticContentTexture;
bool dirty;
bool selectingText;