Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88635929
x11twind.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Oct 19, 21:36
Size
1 KB
Mime Type
text/x-c
Expires
Mon, Oct 21, 21:36 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
21754098
Attached To
R10977 RADIANCE Photon Map
x11twind.h
View Options
/* 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
Log In to Comment