/* VDIDEFS.H 4/22/91 D.Mui */ #ifndef _VDIDEFS_H_ #define _VDIDEFS_H_ #include "portab.h" typedef struct wsstr /* work station structure */ { WORD ws_xres; WORD ws_yres; WORD ws_noscale; WORD ws_wpixel; WORD ws_hpixel; WORD ws_ncheights; WORD ws_nlntypes; WORD ws_nlnwidths; WORD ws_nmktypes; WORD ws_nmksizes; WORD ws_nfaces; WORD ws_npatts; WORD ws_nhatchs; WORD ws_ncolors; WORD ws_ngdps; WORD ws_supgdps[10]; WORD ws_attgdps[10]; WORD ws_color; WORD ws_rotate; WORD ws_fill; WORD ws_cell; WORD ws_npals; WORD ws_nloc; WORD ws_nval; WORD ws_nchoice; WORD ws_nstring; WORD ws_type; WORD ws_pts0; WORD ws_chminh; WORD ws_pts2; WORD ws_chmaxh; WORD ws_lnminw; WORD ws_pts5; WORD ws_lnmaxw; WORD ws_pts7; WORD ws_pts8; WORD ws_mkminw; WORD ws_pts10; WORD ws_mkmaxw; } WS; typedef struct fdbstr { LONG fd_addr; WORD fd_w; WORD fd_h; WORD fd_wdwidth; WORD fd_stand; WORD fd_nplanes; WORD fd_r1; WORD fd_r2; WORD fd_r3; } FDB; typedef struct mfstr { WORD mf_xhot; WORD mf_yhot; WORD mf_nplanes; WORD mf_fg; WORD mf_bg; WORD mf_mask[16]; WORD mf_data[16]; } MFORM; #define OPEN_WORKSTATION 1 #define CLOSE_WORKSTATION 2 #define CLEAR_WORKSTATION 3 #define UPDATE_WORKSTATION 4 #define VDIESCAPE 5 #define POLYLINE 6 #define POLYMARKER 7 #define TEXT 8 #define FILLED_AREA 9 #define CELL_ARRAY 10 #define GDP 11 #define CHAR_HEIGHT 12 #define CHAR_UP_VECT 13 #define SET_COLOR_REP 14 #define S_LINE_TYPE 15 #define S_LINE_WIDTH 16 #define S_LINE_COLOR 17 #define S_MARK_TYPE 18 #define S_MARK_SCALE 19 #define S_MARK_COLOR 20 #define SET_FONT 21 #define S_TEXT_COLOR 22 #define S_FILL_STYLE 23 #define S_FILL_INDEX 24 #define S_FILL_COLOR 25 #define INQUIRE_COLOR_REP 26 #define INQ_CELL_ARRAY 27 #define LOCATOR_INPUT 28 #define VALUATOR_INPUT 29 #define CHOICE_INPUT 30 #define STRING_INPUT 31 #define SET_WRITING_MODE 32 #define SET_INPUT_MODE 33 #define SET_ALIGNMENT 39 #define OPEN_VWORKSTATION 100 #define CLOSE_VWORKSTATION 101 #define EXTENDED_INQUIRE 102 #define CONTOUR_FILL 103 #define ST_FILLPERIMETER 104 #define ST_TXT_DISPLAY_MODE 105 #define ST_TXT_STYLE 106 #define ST_CH_HEIGHT 107 #define RET_PIXEL_VALUE 108 #define COPY_RASTER_FORM 109 #define TRANSFORM_FORM 110 #define ST_CUR_FORM 111 #define ST_UD_FILL_PATTERN 112 #define ST_UD_LINE_STYLE 113 #define FILL_RECTANGLE 114 #define LOC_MULTIWAIT 115 #define I_TEXT_EXTENT 116 #define I_TEXT_WIDTH 117 #define TIM_VECX 118 #define LOAD_ALPHA_TEXT 119 #define UNLOAD_ALPHA_TEXT 120 #define TRAN_RASTER_FORM 121 #define SHOW_CUR 122 #define HIDE_CUR 123 #define MOUSE_ST 124 #define BUT_VECX 125 #define MOT_VECX 126 #define CUR_VECX 127 #define KEY_SHST 128 #define TEXT_CLIP 129 #define FONT_NAME 130 #define vsf_interior( x ) gsx_1code(S_FILL_STYLE, x) #define vsl_type( x ) gsx_1code(S_LINE_TYPE, x) #define vsf_style( x ) gsx_1code(S_FILL_INDEX, x) #define vsf_color( x ) gsx_1code(S_FILL_COLOR, x) #define vsl_udsty( x ) gsx_1code(ST_UD_LINE_STYLE, x) #endif