diff options
author | Joursoir <chat@joursoir.net> | 2020-12-10 16:02:46 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2020-12-10 16:02:46 +0000 |
commit | 05750c44046f320109055aa5954ef0bbd977705f (patch) | |
tree | a39094e5eead788c48c9b4df0db379f4f45be26c /src/client/clui/WindowInterface.hpp | |
parent | 4131de177e36b19b20b8bbdb7bd43b18b6e22690 (diff) | |
download | want-chat-05750c44046f320109055aa5954ef0bbd977705f.tar.gz want-chat-05750c44046f320109055aa5954ef0bbd977705f.tar.bz2 want-chat-05750c44046f320109055aa5954ef0bbd977705f.zip |
refactor clui: delete class ChatRoom, create own class for chat, players, tips (new), input
Diffstat (limited to 'src/client/clui/WindowInterface.hpp')
-rw-r--r-- | src/client/clui/WindowInterface.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/client/clui/WindowInterface.hpp b/src/client/clui/WindowInterface.hpp new file mode 100644 index 0000000..9151637 --- /dev/null +++ b/src/client/clui/WindowInterface.hpp @@ -0,0 +1,22 @@ +#ifndef WC_WINDOW_INTERFACE_H +#define WC_WINDOW_INTERFACE_H + +#include <ncurses.h> + +class WindowInterface { +protected: + WINDOW *w; + int ny, nx; + int beg_y, beg_x; + int ch_line; +public: + WindowInterface(int num_y, int num_x, int by, int bx, char ch); + ~WindowInterface(); + + WINDOW *GetWindow() { return w; } + void SetCursor(int y, int x); + void Clear(bool full); + void Update(); +}; + +#endif
\ No newline at end of file |