blob: 9151637a2199a878bc72b1c3ed280d38da62af69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|