home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
NEWS
/
RADIANCE
/
SRC
/
RT
/
NWSDEV.H
< prev
next >
Wrap
Text File
|
1993-10-07
|
11KB
|
140 lines
/* DO NOT EDIT THIS FILE. It contains C->PostScript communication
definitions that were automatically generated from nwsdev.cps */
#define cps_clear() pprintf(PostScript, _CPS_cps_clear, 18)
static char _CPS_cps_clear[] = "textbackground\301\246\022\267";
#define cps_initcanvas(P$0,P$1,P$2,P$3,P$4,P$5,P$6) pprintf(PostScript, _CPS_cps_initcanvas, 1061, P$2, P$3, P$0, P$1, P$4, P$5, P$6, P$2, P$2)
static char _CPS_cps_initcanvas[] = {
166, 36, 47, 99,114,101, 97,116,101, 99, 97,110,118, 97,115,166,121,166,143,123,
32, 47, 99,114,101, 97,116,101, 99, 97,110,118, 97,115, 32,123,128, 3,128, 2,
166,164,166, 30, 47,110,101,119, 99, 97,110,182,180,128, 0,128, 0,128, 4,128,
2,166,164,166,142,114,101, 99,116,112, 97,116,104, 32,110,101,119, 99, 97,110,
166,171,166,142,110,101,119, 99, 97,110, 32,125,180, 47,109, 97,112, 99, 97,110,
118, 97,115, 32,123, 32, 47, 77, 97,112,112,101,100,166,206,166,150,125,180,125,
166,107, 47, 67, 97,110, 32,102,114, 97,109,101, 98,117,102,102,101,114, 37,100,
37,100, 99,114,101, 97,116,101, 99, 97,110,118, 97,115,180, 67, 97,110, 32, 47,
82,101,116, 97,105,110,101,100,166,206,166,150, 67, 97,110,166,170, 37,100, 37,
100,166,138,166, 33,109, 97,112, 99, 97,110,118, 97,115,166, 18,166,147,189,189,
198,128, 1,133, 0,192,137, 76,205,166,188,166, 18,183, 47,115, 99,114,111,108,
108,104,101,105,103,104,116,129, 0,150,128, 18,166,199,180, 47, 84,105,109,101,
115, 45, 66,111,108,100,184,128, 18,192,194, 47,116,101,120,116, 98, 97, 99,107,
103,114,111,117,110,100,138, 0,217,154,138, 0,217,154,133, 0,192,166,163,180,
47, 77, 66, 49,107,101,121, 37,100,180, 47, 77, 66, 50,107,101,121, 37,100,180,
47, 77, 66, 51,107,101,121, 37,100,180, 47,115, 99,114,111,108,108, 32,123,166,
142,128, 0,128, 0, 37,100,115, 99,114,111,108,108,104,101,105,103,104,116, 32,
112,111,105,110,116,115, 50,114,101, 99,116, 32,114,101, 99,116,112, 97,116,104,
128, 0,128, 18,166, 26,166,142,116,101,120,116, 98, 97, 99,107,103,114,111,117,
110,100,193,128, 0,128, 0, 37,100,128, 18,112,111,105,110,116,115, 50,114,101,
99,116, 32,114,101, 99,116,112, 97,116,104,183, 47,116,101,120,116, 99,117,114,
115,111,114,112,111,115,105,116,105,111,110,128, 0,180,125,180,115, 99,114,111,
108,108, 32,115, 99,114,111,108,108, 32, 47,109,121,115,104,111,119, 32,123,138,
0,217,154,195,116,101,120,116, 99,117,114,115,111,114,112,111,115,105,116,105,
111,110,128, 1,166,199,128, 10,128, 1,166,199,188,181,196,128, 0,195,116,101,
120,116, 99,117,114,115,111,114,112,111,115,105,116,105,111,110,128, 10,188,196,
47,116,101,120,116, 99,117,114,115,111,114,112,111,115,105,116,105,111,110,166,
49,189,180,125,180, 47,109,121,100,101,108, 32,123, 32,116,101,120,116, 98, 97,
99,107,103,114,111,117,110,100,193,181,166,197,189,116,101,120,116, 99,117,114,
115,111,114,112,111,115,105,116,105,111,110,182,166,199,181, 47,116,101,120,116,
99,117,114,115,111,114,112,111,115,105,116,105,111,110,182,180,128, 1,166,199,
128, 10,128, 1,166,199,188,181,196,116,101,120,116, 99,117,114,115,111,114,112,
111,115,105,116,105,111,110,128, 10,188,196,125,180, 47,110,111,114,109, 97,108,
99,117,114,115,111,114, 32,123, 32, 47,120, 99,117,114,115, 32, 47,120, 99,117,
114,115, 95,109, 32, 67, 97,110, 32,115,101,116,115,116, 97,110,100, 97,114,100,
99,117,114,115,111,114, 32,125,180,110,111,114,109, 97,108, 99,117,114,115,111,
114, 32, 47, 98,117,116,116,111,110,101,118,101,110,116,166, 31,180, 98,117,116,
116,111,110,101,118,101,110,116, 32, 47, 78, 97,109,101, 32, 91, 32, 47, 76,101,
102,116, 77,111,117,115,101, 66,117,116,116,111,110, 32, 47, 77,105,100,100,108,
101, 77,111,117,115,101, 66,117,116,116,111,110, 32, 47, 82,105,103,104,116, 77,
111,117,115,101, 66,117,116,116,111,110, 32, 93,166,150, 98,117,116,116,111,110,
101,118,101,110,116, 32, 47, 65, 99,116,105,111,110, 32, 47, 85,112, 84,114, 97,
110,115,105,116,105,111,110,166,150, 98,117,116,116,111,110,101,118,101,110,116,
32, 47, 67, 97,110,118, 97,115, 32, 67, 97,110,166,150, 47,107,101,121,101,118,
101,110,116, 32, 67, 97,110, 32, 97,100,100,107, 98,100,105,110,116,101,114,101,
115,116,115,202, 47, 69, 86, 69, 78, 84, 83,182,180,166, 81,166, 81,180, 47,100,
117,109,101,118,101,110,116,166, 31,180,100,117,109,101,118,101,110,116, 32, 47,
78, 97,109,101,128, 32,166,150,100,117,109,101,118,101,110,116, 32, 47, 65, 99,
116,105,111,110,128, 13,166,150,100,117,109,101,118,101,110,116, 32, 47, 67, 97,
110,118, 97,115, 32, 67, 97,110,166,150,100,117,109,101,118,101,110,116,166, 82,
47,107,100,101,118,101,110,116,166, 31,180,107,100,101,118,101,110,116, 32, 47,
65, 99,116,105,111,110,129, 2,154,166,150,107,100,101,118,101,110,116, 32, 47,
67, 97,110,118, 97,115, 32, 67, 97,110,166,150,107,100,101,118,101,110,116,166,
82,
};
#define cps_box(P$0,P$1,P$2,P$3,P$4,P$5,P$6) pprintf(PostScript, _CPS_cps_box, 54, P$4, P$5, P$6, P$0, P$1, P$2, P$3)
static char _CPS_cps_box[] = "%d\201\001\364\246A%d\201\001\364\246A%d\201\001\364\246A\246\274\246\216%d%d%d%dpoints2rect rectpath\267";
#define cps_cleanup() ( pprintf(PostScript, _CPS_cps_cleanup, 154), ps_waitfor(PostScriptInput, 1990))
static char _CPS_cps_cleanup[] = "keyevent\246Qkdevent\246QEVENTS Can revokekbdinterests dumevent\246Q/Can\246!\264Can /EventsConsumed /NoEvents\246\226Can /Transparent\246\316\246\226Can /Mapped\246S\246\226Can /Retained\246S\246\226\201\007\306\246\311";
#define getthebox(P$0,P$1,P$2,P$3) ( pprintf(PostScript, _CPS_getthebox, 188), ps_waitfor(PostScriptInput, 1990), _CPS_RETURN_getthebox(P$0,P$1,P$2,P$3))
#define _CPS_RETURN_getthebox(P$0,P$1,P$2,P$3) pscanf(PostScriptInput,"dddd", P$0, P$1, P$2, P$3)
static char _CPS_getthebox[] = "\246!\246 \246\252\246$/SGIWindow\246y{\205\000\300\205\000\300\246\247}\246kgetwholerect\246\325\312\275/y1\266\264/x1\266\264/y0\266\264/x0\266\264x0 x1\246g{ /x x1\264/w x0 x1\246\307\264} { /x x0\264/w x1 x0\246\307\264}\246ly0 y1\246g{ /y y1\264/h y0 y1\246\307\264} { /y y0\264/h y1 y0\246\307\264}\246lh w y x\201\007\306\246\311\246\321\246\321\246\321\246\321";
#define sgicheck(P$0) ( pprintf(PostScript, _CPS_sgicheck, 30), ps_waitfor(PostScriptInput, 1990), _CPS_RETURN_sgicheck(P$0))
#define _CPS_RETURN_sgicheck(P$0) pscanf(PostScriptInput,"d", P$0)
static char _CPS_sgicheck[] = "\200\000\246$/SGIWindow\246y{\275\200d}\246k\201\007\306\246\311\246\321";
#define cps_printout(P$0) pprintf(PostScript, _CPS_cps_printout, 9, P$0)
static char _CPS_cps_printout[] = "%smyshow ";
#define cps_linefeed(P$0) pprintf(PostScript, _CPS_cps_linefeed, 16, P$0)
static char _CPS_cps_linefeed[] = "%smyshow scroll ";
#define cps_getclick(P$0,P$1,P$2) ( pprintf(PostScript, _CPS_cps_getclick, 222), ps_waitfor(PostScriptInput, 1990), _CPS_RETURN_cps_getclick(P$2,P$1,P$0))
#define _CPS_RETURN_cps_getclick(P$2,P$1,P$0) pscanf(PostScriptInput,"ddd", P$2, P$1, P$0)
static char _CPS_cps_getclick[] = "buttonevent\246R/beye_m /xhair_m Can setstandardcursor /theclick\246\005\264\246/\201\000\226\246\307normalcursor buttonevent\246Qtheclick /Name\246]\265/LeftMouseButton\246K{\275MB1key }\246k\265/MiddleMouseButton\246K{\275MB2key }\246k\265/RightMouseButton\246K{\275MB3key }\246k\2467\201\007\306\246\311\246\321\246\321\246\321";
#define cps_isready(P$0) ( pprintf(PostScript, _CPS_cps_isready, 136), ps_waitfor(PostScriptInput, 1990), _CPS_RETURN_cps_isready(P$0))
#define _CPS_RETURN_cps_isready(P$0) pscanf(PostScriptInput,"d", P$0)
static char _CPS_cps_isready[] = "\200\000dumevent\246\037\246\031\246\251{ /theevent\246\005\264theevent /Action\246]\200\015\246K{\246O}\246k\275\200\001/newevent kdevent\246\037\246\031\264newevent /Name theevent /Name\246]\246\226newevent\246\251}\246\200\201\007\306\246\311\246\321";
#define cps_startcomin() pprintf(PostScript, _CPS_cps_startcomin, 38)
static char _CPS_cps_startcomin[] = "/nouse /nouse_m Can setstandardcursor ";
#define cps_endcomin() pprintf(PostScript, _CPS_cps_endcomin, 13)
static char _CPS_cps_endcomin[] = "normalcursor ";
#define cps_getkey(P$0) ( pprintf(PostScript, _CPS_cps_getkey, 33), ps_waitfor(PostScriptInput, 1990), _CPS_RETURN_cps_getkey(P$0))
#define _CPS_RETURN_cps_getkey(P$0) pscanf(PostScriptInput,"d", P$0)
static char _CPS_cps_getkey[] = "\221|myshow\246\005/Name\246]\2467\221|mydel\201\007\306\246\311\246\321";
#define cps_delete(P$0) pprintf(PostScript, _CPS_cps_delete, 8, P$0)
static char _CPS_cps_delete[] = "%smydel ";
#define _CPS_SEENDEFS
#ifndef FILE
#include <stdio.h>
#endif
FILE *PostScript, *PostScriptInput;
FILE *ps_open_PostScript();
#define ps_flush_PostScript() (fflush(PostScript),(ferror(PostScript) ? exit(0) : 0))
#define ps_close_PostScript() (fclose(PostScript),PostScript = 0)
#define ps_moveto(P$0,P$1) pprintf(PostScript, _CPS_ps_moveto, 5, P$0, P$1)
extern char _CPS_ps_moveto[];
#define ps_rmoveto(P$0,P$1) pprintf(PostScript, _CPS_ps_rmoveto, 5, P$0, P$1)
extern char _CPS_ps_rmoveto[];
#define ps_lineto(P$0,P$1) pprintf(PostScript, _CPS_ps_lineto, 5, P$0, P$1)
extern char _CPS_ps_lineto[];
#define ps_rlineto(P$0,P$1) pprintf(PostScript, _CPS_ps_rlineto, 5, P$0, P$1)
extern char _CPS_ps_rlineto[];
#define ps_closepath() putc('\263', PostScript)
#define ps_arc(P$0,P$1,P$2,P$3,P$4) pprintf(PostScript, _CPS_ps_arc, 11, P$0, P$1, P$2, P$3, P$4)
extern char _CPS_ps_arc[];
#define ps_stroke() putc('\305', PostScript)
#define ps_fill() putc('\267', PostScript)
#define ps_show(P$0) pprintf(PostScript, _CPS_ps_show, 3, P$0)
extern char _CPS_ps_show[];
#define ps_cshow(P$0,L$0) pprintf(PostScript, _CPS_ps_cshow, 4, L$0, P$0)
extern char _CPS_ps_cshow[];
#define ps_findfont(P$0) pprintf(PostScript, _CPS_ps_findfont, 3, P$0)
extern char _CPS_ps_findfont[];
#define ps_scalefont(P$0) pprintf(PostScript, _CPS_ps_scalefont, 3, P$0)
extern char _CPS_ps_scalefont[];
#define ps_setfont() putc('\302', PostScript)
#define ps_gsave() putc('\272', PostScript)
#define ps_grestore() putc('\271', PostScript)
int ps_next_user_token;
#define ps_define_stack_token(u) ps_DO_defuser(u/**/_token = next_user_token++)
#define ps_define_value_token(u) (pprintf(PostScript, "/u load ", -1), \
ps_define_stack_token(u))
#define ps_define_word_token(u) (pprintf(PostScript, "/u cvx ", -1), \
ps_define_stack_token(u))
#define ps_DO_defuser(P$0) pprintf(PostScript, _CPS_ps_DO_defuser, 4, P$0)
extern char _CPS_ps_DO_defuser[];
#define ps_DO_finddef(P$0,P$1) pprintf(PostScript, _CPS_ps_DO_finddef, 7, P$0, P$1)
extern char _CPS_ps_DO_finddef[];
#define ps_finddef(font,usertoken) ps_DO_finddef(font,(usertoken)=ps_next_user_token++)
#define ps_DO_scaledef(P$0,P$1,P$2) pprintf(PostScript, _CPS_ps_DO_scaledef, 9, P$0, P$1, P$2)
extern char _CPS_ps_DO_scaledef[];
#define ps_scaledef(font,scale,usertoken) ps_DO_scaledef(font,scale,(usertoken) = ps_next_user_token++)
#define ps_usetfont(P$0) pprintf(PostScript, _CPS_ps_usetfont, 3, P$0)
extern char _CPS_ps_usetfont[];