From 0293ec09e3485beb37490eb8a78297befbf9e1a2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 27 Oct 2018 16:29:40 +0200 Subject: Login background, need to move it behind login somehow --- include/Window.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'include') diff --git a/include/Window.hpp b/include/Window.hpp index 29ec285..236affa 100644 --- a/include/Window.hpp +++ b/include/Window.hpp @@ -6,6 +6,8 @@ #include #include #include +#include +#include namespace dchat { @@ -14,11 +16,31 @@ namespace dchat public: Window(); virtual ~Window(); + private: + bool drawBackground(const Cairo::RefPtr &cairo); private: std::unique_ptr database; std::mutex databaseCallbackMutex; Gtk::Stack stack; LoginWindow loginWindow; ChatWindow chatWindow; + + struct Node + { + double radius; + double originalPosX; + double originalPosY; + + double currentPosX; + double currentPosY; + + double targetPosX; + double targetPosY; + }; + + std::mt19937 backgroundRng; + std::vector backgroundNodes; + int prevTimeMillis; + sigc::connection drawBackgroundConnection; }; } \ No newline at end of file -- cgit v1.2.3