diff options
Diffstat (limited to 'src/Window.cpp')
-rw-r--r-- | src/Window.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Window.cpp b/src/Window.cpp new file mode 100644 index 0000000..c912130 --- /dev/null +++ b/src/Window.cpp @@ -0,0 +1,25 @@ +#include "../include/Window.hpp" + +namespace dchat +{ + Window::Window() + { + set_border_width(0); + add(stack); + + stack.add(loginWindow, "login"); + stack.add(chatWindow, "chat"); + + show_all_children(); + + loginWindow.setLoginHandler([] + { + printf("login!\n"); + }); + } + + Window::~Window() + { + + } +}
\ No newline at end of file |