1 // windows.hpp : Fenster für den PC
2 #ifndef windows_hpp
3 #define
windows_hpp
4 #include <stdarg.h>
5 #include "video.hpp"
6 class Fenster
: public video
7 {
8 static int w_anzahl; // aktive Fenster
9 int w_l_x;
// Koordinaten ab 0,0
10 int w_o_y; // obere Zeile
11 int w_r_x; // rechte
Spalte
12 int w_u_y; // untere Zeile
13 char w_attr; // Vorder/Hintergrund
14 int w_cursor_x; // soft cursor
15 int w_cursor_y; // soft cursor
16
int w_bytes; // Anzahl Bytes
17 int * w_save_buf; // Platz für Überdeckung
18 char w_leer; // Leerzeichen
19 int w_putch (int zeichen, char attri);
20 int _w_putch (int z, char attri);
21 public:
22 Fenster (int l,int
o,int r,int u,
23 char attr = 0x1f,char * titel = "");
24 ~Fenster();
25
void w_loeschen(); // Löschen
26 void w_puts (char * s,char a);
27 void
w_puts (char * s) {w_puts (s, w_attr); }
28 void w_make_box ();
29 void
w_titel (char *msg, char attrib);
30 void w_scroll (int richtung); // 0
auf, 1 ab
31 };
32 #endif // windows_hpp
|
Bild 12-24: Definition der Klasse "Fenster"
|