aboutsummaryrefslogtreecommitdiff
path: root/include/ChannelSidePanel.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-04-28 11:52:04 +0200
committerdec05eba <dec05eba@protonmail.com>2018-04-28 11:53:18 +0200
commit3b03f87070d91f63f0dc3c7152723727781dcccf (patch)
tree7b06163f34248d1e632c032cfaf306787675e585 /include/ChannelSidePanel.hpp
parentb0bfb8b8d1479502bd5adf17e6a1b94ec00c63ca (diff)
Add commands, users side panel, improve image download
start using odhtdb
Diffstat (limited to 'include/ChannelSidePanel.hpp')
-rw-r--r--include/ChannelSidePanel.hpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/ChannelSidePanel.hpp b/include/ChannelSidePanel.hpp
index 8331787..c1ed5d6 100644
--- a/include/ChannelSidePanel.hpp
+++ b/include/ChannelSidePanel.hpp
@@ -1,6 +1,5 @@
#pragma once
-#include <vector>
#include <SFML/Graphics/RenderWindow.hpp>
namespace dchat
@@ -10,13 +9,8 @@ namespace dchat
class ChannelSidePanel
{
public:
- ChannelSidePanel(float width);
- void addChannel(Channel *channel);
-
- void draw(sf::RenderWindow &window);
-
- float width;
- private:
- std::vector<Channel*> channels;
+ static void addChannel(Channel *channel);
+ static void draw(sf::RenderWindow &window);
+ static float getWidth();
};
}