1 |
/* SCCSid "$SunId$ LBL" */ |
2 |
|
3 |
/* Copyright (c) 1989 Regents of the University of California */ |
4 |
|
5 |
/* |
6 |
* xtwind.h - header for X text window routines. |
7 |
* |
8 |
* Written by G. Ward |
9 |
* 10/30/87 |
10 |
* |
11 |
* Modified for X11 B. V. Smith |
12 |
* 9/26/88 |
13 |
*/ |
14 |
|
15 |
#define LEFTMAR 2 /* left margin width */ |
16 |
|
17 |
typedef struct { |
18 |
Display *dpy; /* the display */ |
19 |
Window w; /* window */ |
20 |
XFontStruct *f; /* font information */ |
21 |
GC gc; /* graphics context */ |
22 |
short nc, nr; /* text number of columns and rows */ |
23 |
char **lp; /* null-terminated lines */ |
24 |
short c, r; /* current position */ |
25 |
short cursor; /* cursor type */ |
26 |
} TEXTWIND; /* a text window */ |
27 |
|
28 |
#define TNOCURS 0 |
29 |
#define TBLKCURS 1 |
30 |
|
31 |
extern TEXTWIND *xt_open(); |