ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/x11twind.h
Revision: 2.3
Committed: Tue Feb 25 02:47:23 2003 UTC (21 years, 8 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R5
Changes since 2.2: +2 -57 lines
Log Message:
Replaced inline copyright notice with #include "copyright.h"

File Contents

# User Rev Content
1 greg 2.3 /* RCSid $Id$ */
2 greg 1.1 /*
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    
12 greg 2.3 #include "copyright.h"
13 greg 2.2
14 greg 1.1 #define LEFTMAR 2 /* left margin width */
15    
16     typedef struct {
17     Display *dpy; /* the display */
18     Window w; /* window */
19     XFontStruct *f; /* font information */
20     GC gc; /* graphics context */
21     short nc, nr; /* text number of columns and rows */
22     char **lp; /* null-terminated lines */
23     short c, r; /* current position */
24     short cursor; /* cursor type */
25     } TEXTWIND; /* a text window */
26    
27     #define TNOCURS 0
28     #define TBLKCURS 1
29    
30 greg 2.2 #ifdef NOPROTO
31    
32 greg 1.1 extern TEXTWIND *xt_open();
33 greg 2.2 extern void xt_puts();
34     extern void xt_putc();
35     extern void xt_delete();
36     extern void xt_insert();
37     extern void xt_redraw();
38     extern void xt_clear();
39     extern void xt_move();
40     extern int xt_cursor();
41     extern void xt_close();
42    
43     #else
44    
45     extern TEXTWIND *xt_open(Display *dpy, Window parent,
46     int x, int y, int width, int height,
47     int bw, unsigned long fore, unsigned long back,
48     char *fontname);
49     extern void xt_puts(char *s, TEXTWIND *t);
50     extern void xt_putc(char c, TEXTWIND *t);
51     extern void xt_delete(TEXTWIND *t, int r);
52     extern void xt_insert(TEXTWIND *t, int r);
53     extern void xt_redraw(TEXTWIND *t);
54     extern void xt_clear(TEXTWIND *t);
55     extern void xt_move(TEXTWIND *t, int r, int c);
56     extern int xt_cursor(TEXTWIND *t, int curs);
57     extern void xt_close(TEXTWIND *t);
58    
59     #endif