diff options
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 |