File: window.h

package info (click to toggle)
psk31lx 0.61-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 168 kB
  • ctags: 229
  • sloc: cpp: 1,464; makefile: 71; sh: 8
file content (32 lines) | stat: -rw-r--r-- 738 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

#ifndef __PSK31_WINDOW_INCLUDED
#define __PSK31_WINDOW_INCLUDED

class window {
private:
	int height, width, xpos, ypos;
	char **buffer;
	int cur_line, cur_col;
	int have_cursor;
	void initline(char **buffer);
	void paint_char(int line, int column);
	void paint_line(int line);
	void paint_all();
	void set_cursor(int line, int column);
	void set_cursor();
public:
	window(int topline, int h, int w, int cursor);
	void put_char(char c);
	void clear_line(int n);
	void put_line(char *l);
	void put_string(char *s);
	void put_line(int n, char *l);
	void clear_all();
	int new_line();
	static void outputline(int n, char *txt);
	static void putsyx(int y, int x, char *txt);
	static void init_window();
	static void end_window();
};

#endif