ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/x11twind.h
Revision: 2.5
Committed: Sat Jun 7 00:54:58 2003 UTC (20 years, 10 months ago) by schorsch
Content type: text/plain
Branch: MAIN
Changes since 2.4: +12 -16 lines
Log Message:
Instrumented headers against multiple inclusion and for use from C++.
Removed NOPROTO sections.

File Contents

# Content
1 /* RCSid $Id: x11twind.h,v 2.4 2003/04/11 16:01:27 greg Exp $ */
2 /*
3 * xtwind.h - header for X text window routines.
4 *
5 * Written by G. Ward
6 * 10/30/87
7 *
8 * Modified for X11 B. V. Smith
9 * 9/26/88
10 */
11 #ifndef _RAD_X11TWIND_H_
12 #define _RAD_X11TWIND_H_
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17
18 #include "copyright.h"
19
20 #define LEFTMAR 2 /* left margin width */
21
22 typedef struct {
23 Display *dpy; /* the display */
24 Window w; /* window */
25 XFontStruct *f; /* font information */
26 GC gc; /* graphics context */
27 short nc, nr; /* text number of columns and rows */
28 char **lp; /* null-terminated lines */
29 short c, r; /* current position */
30 short cursor; /* cursor type */
31 } TEXTWIND; /* a text window */
32
33 #define TNOCURS 0
34 #define TBLKCURS 1
35
36 extern TEXTWIND *xt_open(Display *dpy, Window parent,
37 int x, int y, int width, int height,
38 int bw, unsigned long fore, unsigned long back,
39 char *fontname);
40 extern void xt_puts(char *s, TEXTWIND *t);
41 extern void xt_putc(int c, TEXTWIND *t);
42 extern void xt_delete(TEXTWIND *t, int r);
43 extern void xt_insert(TEXTWIND *t, int r);
44 extern void xt_redraw(TEXTWIND *t);
45 extern void xt_clear(TEXTWIND *t);
46 extern void xt_move(TEXTWIND *t, int r, int c);
47 extern int xt_cursor(TEXTWIND *t, int curs);
48 extern void xt_close(TEXTWIND *t);
49
50
51 #ifdef __cplusplus
52 }
53 #endif
54 #endif /* _RAD_X11TWIND_H_ */
55