aboutsummaryrefslogtreecommitdiff
path: root/include/MessageBoard.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-03 07:35:39 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-03 07:35:42 +0200
commit9cde35c64c9f569055b101a80419d900f58806a9 (patch)
treecc94d0b5e7dab9c95e702905e4d5fc42f0253103 /include/MessageBoard.hpp
parent09080c571dbc959ab073aa6aa6598e6e447b0435 (diff)
Adding theming, add new theme 'simple'
Diffstat (limited to 'include/MessageBoard.hpp')
-rw-r--r--include/MessageBoard.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/MessageBoard.hpp b/include/MessageBoard.hpp
index e84396d..a4dc5a6 100644
--- a/include/MessageBoard.hpp
+++ b/include/MessageBoard.hpp
@@ -24,6 +24,9 @@ namespace dchat
private:
void updateStaticContentTexture(const sf::Vector2u &newSize);
void addMessage(Message *message);
+
+ void drawDefault(sf::RenderWindow &window, Cache &cache);
+ void drawSimple(sf::RenderWindow &window, Cache &cache);
private:
sf::RenderTexture staticContentTexture;
bool dirty;
@@ -37,5 +40,8 @@ namespace dchat
sf::Clock frameTimer;
double totalHeight;
bool scrollToBottom;
+ sf::Vector2f backgroundSizeWithoutPadding;
+ sf::Vector2f backgroundSize;
+ sf::Vector2f backgroundPos;
};
}