Page MenuHomec4science

x11twind.h
No OneTemporary

File Metadata

Created
Wed, Nov 6, 16:19

x11twind.h

/* RCSid $Id: x11twind.h,v 2.6 2003/06/27 06:53:23 greg Exp $ */
/*
* xtwind.h - header for X text window routines.
*
* Written by G. Ward
* 10/30/87
*
* Modified for X11 B. V. Smith
* 9/26/88
*/
#ifndef _RAD_X11TWIND_H_
#define _RAD_X11TWIND_H_
#ifdef __cplusplus
extern "C" {
#endif
#define LEFTMAR 2 /* left margin width */
typedef struct {
Display *dpy; /* the display */
Window w; /* window */
XFontStruct *f; /* font information */
GC gc; /* graphics context */
short nc, nr; /* text number of columns and rows */
char **lp; /* null-terminated lines */
short c, r; /* current position */
short cursor; /* cursor type */
} TEXTWIND; /* a text window */
#define TNOCURS 0
#define TBLKCURS 1
extern TEXTWIND *xt_open(Display *dpy, Window parent,
int x, int y, int width, int height,
int bw, unsigned long fore, unsigned long back,
char *fontname);
extern void xt_puts(char *s, TEXTWIND *t);
extern void xt_putc(int c, TEXTWIND *t);
extern void xt_delete(TEXTWIND *t, int r);
extern void xt_insert(TEXTWIND *t, int r);
extern void xt_redraw(TEXTWIND *t);
extern void xt_clear(TEXTWIND *t);
extern void xt_move(TEXTWIND *t, int r, int c);
extern int xt_cursor(TEXTWIND *t, int curs);
extern void xt_close(TEXTWIND *t);
#ifdef __cplusplus
}
#endif
#endif /* _RAD_X11TWIND_H_ */

Event Timeline