GEMLIB  0.44.0
mt_gem.h
Go to the documentation of this file.
1 /*
2  * $Id: mt_gem.h.in,v 1.91 2016/01/14 20:56:45 landemarre Exp $
3  */
4 
9 #ifndef _MT_GEMLIB_H_
10 # define _MT_GEMLIB_H_
11 
12 # include <compiler.h>
13 
14 #ifndef INT16 /* keep compatibility with Mgemlib */
15 #define INT16 short
16 #endif
17 
18 # ifdef __GEMLIB_OLDBIND /* Backward-compatibility */
19 # undef _MT_GEMLIB_H_ /* For old bindings, these header had to be multi-included. */
20 
21 # ifndef __GEMLIB_HAVE_DEFS /* first include via aesbind/vdibind/gemfast */
22 # define __GEMLIB_HAVE_DEFS
23 # else
24 # undef __GEMLIB_DEFS
25 # endif
26 
27 # else /* New include scheme: one header defines all */
28 # define __GEMLIB_DEFS
29 # ifndef _GEM_VDI_P_
30 # define __GEMLIB_AES
31 # endif
32 # ifndef _GEM_AES_P_
33 # define __GEMLIB_VDI
34 # endif
35 # endif
36 
37 __BEGIN_DECLS
38 
39 
40 /*******************************************************************************
41  * The version of the gem-lib
42  */
43 
44 /* Major and minor version number of the GEMLib package. Use these macros
45  to test for features in specific releases. */
46 #define __GEMLIB__ __GEMLIB_MAJOR__
47 #define __GEMLIB_MAJOR__ 0
48 #define __GEMLIB_MINOR__ 44
49 #define __GEMLIB_REVISION__ 0
50 #define __GEMLIB_BETATAG__ ""
52 /* the other name of this release is MGEMLIB 44 */
53 #define MGEMLIB 44
54 #define __MGEMLIB__ 44
57 #ifdef __GEMLIB_DEFS
58 
59 /*******************************************************************************
60  * The AES specific stuff from old gemfast.h
61  */
62 
63 #define NIL -1
64 #define DESKTOP_HANDLE 0
65 #define DESK DESKTOP_HANDLE
67 /* mt_appl_control() mode */
68 #define APC_HIDE 10
69 #define APC_SHOW 11
70 #define APC_TOP 12
71 #define APC_HIDENOT 13
72 #define APC_INFO 14
73 #define APC_MENU 15
74 #define APC_WIDGETS 16
75 #define APC_APP_CONFIG 17
76 #define APC_INFORM_MESAG 18
78 /* APC_INFO bits */
79 #define APCI_HIDDEN 0x01
80 #define APCI_HASMBAR 0x02
81 #define APCI_HASDESK 0x04
83 /* appl_getinfo modes */
84 #define AES_LARGEFONT 0
85 #define AES_SMALLFONT 1
86 #define AES_SYSTEM 2
87 #define AES_LANGUAGE 3
88 #define AES_PROCESS 4
89 #define AES_PCGEM 5
90 #define AES_INQUIRE 6
91 #define AES_MOUSE 8
92 #define AES_MENU 9
93 #define AES_SHELL 10
94 #define AES_WINDOW 11
95 #define AES_MESSAGE 12
96 #define AES_OBJECT 13
97 #define AES_FORM 14
98 #define AES_EXTENDED 64
99 #define AES_NAES 65
100 #define AES_VERSION 96
101 #define AES_WOPTS 97
102 #define AES_WFORM 98
103 #define AES_APPL_OPTION 99
104 #define AES_WINX 22360
106 /* appl_getinfo return values (AES_LARGEFONT, AES_SMALLFONT) */
107 #define SYSTEM_FONT 0
108 #define OUTLINE_FONT 1
110 /* appl_getinfo return values (AES_LANGUAGE) */
111 #define AESLANG_ENGLISH 0
112 #define AESLANG_GERMAN 1
113 #define AESLANG_FRENCH 2
114 #define AESLANG_SPANISH 4
115 #define AESLANG_ITALIAN 5
116 #define AESLANG_SWEDISH 6
118 /* appl_read modes */
119 #define APR_NOWAIT -1
121 /* appl_search modes */
122 #define APP_FIRST 0
123 #define APP_NEXT 1
124 #define APP_DESK 2
126 /* appl_search return values*/
127 #define APP_SYSTEM 0x01
128 #define APP_APPLICATION 0x02
129 #define APP_ACCESSORY 0x04
130 #define APP_SHELL 0x08
132 /* appl_trecord types */
133 #define APPEVNT_TIMER 0
134 #define APPEVNT_BUTTON 1
135 #define APPEVNT_MOUSE 2
136 #define APPEVNT_KEYBOARD 3
152 typedef struct pEvntrec
153 {
154  long ap_event;
155  long ap_value;
156 } EVNTREC;
157 
158 /* evnt_button flags */
159 #define LEFT_BUTTON 0x0001
160 #define RIGHT_BUTTON 0x0002
161 #define MIDDLE_BUTTON 0x0004
163 #define K_RSHIFT 0x0001
164 #define K_LSHIFT 0x0002
165 #define K_CTRL 0x0004
166 #define K_ALT 0x0008
168 /* evnt_dclick flags */
169 #define EDC_INQUIRE 0
170 #define EDC_SET 1
172 /* event message values */
173 
189 #define MN_SELECTED 10
190 
206 #define WM_REDRAW 20
207 
223 #define WM_TOPPED 21
224 
239 #define WM_CLOSED 22
240 
258 #define WM_FULLED 23
259 
303 #define WM_ARROWED 24
304 
318 #define WM_HSLID 25
319 
333 #define WM_VSLID 26
334 
351 #define WM_SIZED 27
352 
370 #define WM_MOVED 28
371 
384 #define WM_NEWTOP 29
385 
404 #define WM_UNTOPPED 30
405 
424 #define WM_ONTOP 31
425 
447 #define WM_BOTTOM 33
448 #define WM_BOTTOMED WM_BOTTOM
468 #define WM_ICONIFY 34
469 
488 #define WM_UNICONIFY 35
489 
508 #define WM_ALLICONIFY 36
509 
525 #define WM_TOOLBAR 37
526 
546 #define WM_REPOSED 38
547 
562 #define AC_OPEN 40
563 
583 #define AC_CLOSE 41
584 
614 #define AP_TERM 50
615 
629 #define AP_TFAIL 51
630 
631 #define AP_RESCHG 57
633 /* Xcontrol messages */
634 #define CT_UPDATE 50
635 #define CT_MOVE 51
636 #define CT_NEWTOP 52
637 #define CT_KEY 53
654 #define SHUT_COMPLETED 60
655 
674 #define RESCHG_COMPLETED 61
675 
677 #define RESCH_COMPLETED RESCHG_COMPLETED
678 
696 #define AP_DRAGDROP 63
697 
711 #define SH_WDRAW 72
712 
713 #define SC_CHANGED 80
714 #define PRN_CHANGED 82
715 #define FNT_CHANGED 83
733 #define THR_EXIT 88
734 
735 #define PA_EXIT 89
752 #define CH_EXIT 90
753 
754 #define WM_M_BDROPPED 100 /* KAOS 1.4 */
776 #define SM_M_SPECIAL 101
777 #define SM_M_RES2 102
778 #define SM_M_RES3 103
779 #define SM_M_RES4 104
780 #define SM_M_RES5 105
781 #define SM_M_RES6 106
782 #define SM_M_RES7 107
783 #define SM_M_RES8 108
784 #define SM_M_RES9 109
785 #define WM_SHADED 22360
786 #define WM_UNSHADED 22361
788 /* SM_M_SPECIAL sub-opcode */
789 #define SMC_TIDY_UP 0 /* MagiC 2 */
790 #define SMC_TERMINATE 1 /* MagiC 2 */
791 #define SMC_SWITCH 2 /* MagiC 2 */
792 #define SMC_FREEZE 3 /* MagiC 2 */
793 #define SMC_UNFREEZE 4 /* MagiC 2 */
794 #define SMC_RES5 5 /* MagiC 2 */
795 #define SMC_UNHIDEALL 6 /* MagiC 3.1 */
796 #define SMC_HIDEOTHERS 7 /* MagiC 3.1 */
797 #define SMC_HIDEACT 8 /* MagiC 3.1 */
827 #define WM_WHEEL 345
828 
829 /* evnt_mouse modes */
830 #define MO_ENTER 0
831 #define MO_LEAVE 1
833 /* evnt_multi flags */
834 #define MU_KEYBD 0x0001
835 #define MU_BUTTON 0x0002
836 #define MU_M1 0x0004
837 #define MU_M2 0x0008
838 #define MU_MESAG 0x0010
839 #define MU_TIMER 0x0020
840 #define MU_WHEEL 0x0040
841 #define MU_MX 0x0080
842 #define MU_NORM_KEYBD 0x0100
843 #define MU_DYNAMIC_KEYBD 0x0200
845 /* constants for form_alert */
846 #define FA_NOICON "[0]"
847 #define FA_ERROR "[1]"
848 #define FA_QUESTION "[2]"
849 #define FA_STOP "[3]"
850 #define FA_INFO "[4]"
851 #define FA_DISK "[5]"
853 /* form_dial opcodes */
854 #define FMD_START 0
855 #define FMD_GROW 1
856 #define FMD_SHRINK 2
857 #define FMD_FINISH 3
859 /* form_error modes */
860 #define FERR_FILENOTFOUND 2
861 #define FERR_PATHNOTFOUND 3
862 #define FERR_NOHANDLES 4
863 #define FERR_ACCESSDENIED 5
864 #define FERR_LOWMEM 8
865 #define FERR_BADENVIRON 10
866 #define FERR_BADFORMAT 11
867 #define FERR_BADDRIVE 15
868 #define FERR_DELETEDIR 16
869 #define FERR_NOFILES 18
871 /* fsel_(ex)input return values */
872 #define FSEL_CANCEL 0
873 #define FSEL_OK 1
875 /* menu_attach modes */
876 #define ME_INQUIRE 0
877 #define ME_ATTACH 1
878 #define ME_REMOVE 2
880 /* menu_attach attributes */
881 #define SCROLL_NO 0
882 #define SCROLL_YES 1
884 /* menu_bar modes */
885 #define MENU_INQUIRE -1
886 #define MENU_REMOVE 0
887 #define MENU_INSTALL 1
888 #define MENU_GETMODE 3
889 #define MENU_SETMODE 4
890 #define MENU_UPDATE 5
891 #define MENU_INSTL 100
894 /* MENU_GETMODE and MENU_SETMODE bits */
895 #define MENU_HIDDEN 0x0001
896 #define MENU_PULLDOWN 0x0002
897 #define MENU_SHADOWED 0x0004
899 /* menu_icheck modes */
900 #define UNCHECK 0
901 #define CHECK 1
903 /* menu_ienable modes */
904 #define DISABLE 0
905 #define ENABLE 1
907 /* menu_istart modes */
908 #define MIS_GETALIGN 0
909 #define MIS_SETALIGN 1
911 /* menu_popup modes */
912 #define SCROLL_LISTBOX -1
914 /* menu_register modes */
915 #define REG_NEWNAME -1
917 /* menu_settings modes */
918 #define MN_INQUIRE 0
919 #define MN_CHANGE 1
921 /* menu_tnormal modes */
922 #define HIGHLIGHT 0
923 #define UNHIGHLIGHT 1
927 typedef struct _mn_set
928 {
929  long display;
930  long drag;
931  long delay;
932  long speed;
933  short height;
934 } MN_SET;
935 
936 /* shel_get modes */
937 #define SHEL_BUFSIZE (-1)
939 /* shel_help mode */
940 #define SHP_HELP 0
943 typedef struct
944 {
948  char *newcmd;
952  long psetlimit;
956  long prenice;
961  char *defdir;
965  char *env;
969  short uid;
973  short gid;
974 } SHELW;
975 
977 typedef struct
978 {
979  char *command;
980  long limit;
981  long nice;
982  char *defdir;
983  char *env;
984  long flags;
985 } XSHW_COMMAND;
986 
988 typedef struct
989 {
990  long __CDECL (*proc)(void *par);
995  void *user_stack;
1001  unsigned long stacksize;
1002  short mode;
1003  long res1;
1004 } THREADINFO;
1005 
1007 typedef struct
1008 {
1009  short dummy;
1010  long magic;
1016  short isfirst;
1024  long lasterr;
1025  short wasgr;
1026 } SHELTAIL;
1027 
1028 
1029 /* shel_write modes */
1033 #define SWM_LAUNCH 0
1034 
1036 #define SWM_LAUNCHNOW 1
1037 #define SWM_LAUNCHACC 3
1038 #define SWM_SHUTDOWN 4
1039 #define SWM_REZCHANGE 5
1040 #define SWM_BROADCAST 7
1041 #define SWM_ENVIRON 8
1045 #define SWM_NEWMSG 9
1046 #define SWM_AESMSG 10
1047 #define SWM_THRCREATE 20
1048 #define SWM_THREXIT 21
1049 #define SWM_THRKILL 22
1051 /* other names for shel_write modes */
1052 #define SHW_NOEXEC SWM_LAUNCH
1053 #define SHW_EXEC SWM_LAUNCHNOW
1054 #define SHW_EXEC_ACC SWM_LAUNCHACC
1055 #define SHW_SHUTDOWN SWM_SHUTDOWN
1056 #define SHW_RESCHNG SWM_REZCHANGE
1057 #define SHW_BROADCAST SWM_BROADCAST
1058 #define SHW_INFRECGN SWM_NEWMSG
1059 #define SHW_AESSEND SWM_AESMSG
1060 #define SHW_THR_CREATE SWM_THRCREATE
1061 #define SHW_THR_EXIT SWM_THREXIT
1062 #define SHW_THR_KILL SWM_THRKILL
1064 /* shel_write, parameter wisgr */
1065 #define TOSAPP 0
1066 #define GEMAPP 1
1068 /* shel_write, parameter wiscr when wodex=1 (SWM_LAUNCHNOW) */
1069 #define SHW_IMMED 0
1070 #define SHW_CHAIN 1
1071 #define SHW_DOS 2
1072 #define SHW_PARALLEL 100
1073 #define SHW_SINGLE 101
1075 /* command line parser (shel_write: parameter "wiscr") */
1076 #define CL_NORMAL 0
1077 #define CL_PARSE 1
1079 /* shutdown action (shel_write: mode SWM_SHUTDOWN, parameter "wiscr") */
1080 #define SD_ABORT 0
1081 #define SD_PARTIAL 1
1082 #define SD_COMPLETE 2
1084 /* shel_write: mode SWM_ENVIRON, parameter 'wisgr' */
1085 #define ENVIRON_SIZE 0
1086 #define ENVIRON_CHANGE 1
1087 #define ENVIRON_COPY 2
1089 /* shel_write: mode SWM_NEWMSG, parameter 'wisgr' */
1090 #define NM_APTERM 0x0001
1091 #define NM_INHIBIT_HIDE 0x0002
1093 /* Werte fr Modus SWM_AESMSG (fr shel_write) */
1094 #define AP_AESTERM 52 /* Mode 10: N.AES komplett terminieren. */
1096 /* extended shel_write() modes */
1097 #define SW_PSETLIMIT 0x0100
1098 #define SW_PRENICE 0x0200
1099 #define SW_DEFDIR 0x0400
1100 #define SW_ENVIRON 0x0800
1102 /* XaAES extensions for shel_write() extended modes*/
1103 #define SW_UID 0x1000
1104 #define SW_GID 0x2000
1106 /* MagiC 6 extensions for shel_write() extended modes*/
1107 #define SHW_XMDFLAGS 0x1000
1109 /* other names... */
1110 #define SHW_XMDLIMIT SW_PSETLIMIT
1111 #define SHW_XMDNICE SW_PRENICE
1112 #define SHW_XMDDEFDIR SW_DEFDIR
1113 #define SHW_XMDENV SW_ENVIRON
1115 /* rsrc_gaddr structure types */
1116 #define R_TREE 0
1117 #define R_OBJECT 1
1118 #define R_TEDINFO 2
1119 #define R_ICONBLK 3
1120 #define R_BITBLK 4
1121 #define R_STRING 5
1122 #define R_IMAGEDATA 6
1123 #define R_OBSPEC 7
1124 #define R_TEPTEXT 8
1125 #define R_TEPTMPLT 9
1126 #define R_TEPVALID 10
1127 #define R_IBPMASK 11
1128 #define R_IBPDATA 12
1129 #define R_IBPTEXT 13
1130 #define R_BIPDATA 14
1131 #define R_FRSTR 15
1132 #define R_FRIMG 16
1134 /* scrap_read return values */
1135 #define SCRAP_CSV 0x0001
1136 #define SCRAP_TXT 0x0002
1137 #define SCRAP_GEM 0x0004
1138 #define SCRAP_IMG 0x0008
1139 #define SCRAP_DCA 0x0010
1140 #define SCRAP_DIF 0x0020
1141 #define SCRAP_USR 0x8000
1143 /* Window Attributes */
1144 #define NAME 0x0001
1145 #define CLOSER 0x0002
1146 #define FULLER 0x0004
1147 #define MOVER 0x0008
1148 #define INFO 0x0010
1149 #define SIZER 0x0020
1150 #define UPARROW 0x0040
1151 #define DNARROW 0x0080
1152 #define VSLIDE 0x0100
1153 #define LFARROW 0x0200
1154 #define RTARROW 0x0400
1155 #define HSLIDE 0x0800
1156 #define HOTCLOSEBOX 0x1000
1157 #define MENUBAR 0x1000
1158 #define BACKDROP 0x2000
1159 #define SMALLER 0x4000
1160 #define BORDER 0x8000
1161 #define ICONIFIER SMALLER
1163 /* wind_create flags */
1164 #define WC_BORDER 0
1165 #define WC_WORK 1
1167 /* wind_get flags */
1168 #define WF_KIND 1
1169 #define WF_NAME 2
1170 #define WF_INFO 3
1171 #define WF_WORKXYWH 4
1172 #define WF_CURRXYWH 5
1173 #define WF_PREVXYWH 6
1174 #define WF_FULLXYWH 7
1175 #define WF_HSLIDE 8
1176 #define WF_VSLIDE 9
1177 #define WF_TOP 10
1178 #define WF_FIRSTXYWH 11
1179 #define WF_NEXTXYWH 12
1180 #define WF_FIRSTAREAXYWH 13
1181 #define WF_NEWDESK 14
1182 #define WF_HSLSIZE 15
1183 #define WF_VSLSIZE 16
1184 #define WF_SCREEN 17
1185 #define WF_COLOR 18
1186 #define WF_DCOLOR 19
1187 #define WF_OWNER 20
1188 #define WF_BEVENT 24
1189 #define WF_BOTTOM 25
1190 #define WF_ICONIFY 26
1191 #define WF_UNICONIFY 27
1192 #define WF_UNICONIFYXYWH 28
1193 #define WF_TOOLBAR 30
1194 #define WF_FTOOLBAR 31
1195 #define WF_NTOOLBAR 32
1196 #define WF_MENU 33
1197 #define WF_WHEEL 40
1198 #define WF_OPTS 41
1199 #define WF_CALCF2W 42
1200 #define WF_CALCW2F 43
1201 #define WF_CALCF2U 44
1202 #define WF_CALCU2F 45
1203 #define WF_MAXWORKXYWH 46
1204 #define WF_M_BACKDROP 100
1205 #define WF_M_OWNER 101
1206 #define WF_M_WINDLIST 102
1207 #define WF_MINXYWH 103
1208 #define WF_INFOXYWH 104
1209 #define WF_WIDGETS 200
1210 #define WF_USER_POINTER 230
1211 #define WF_WIND_ATTACH 231
1212 #define WF_TOPMOST 232
1213 #define WF_BITMAP 233
1214 #define WF_OPTIONS 234
1215 #define WF_FULLSCREEN 235
1216 #define WF_OBFLAG 1001
1217 #define WF_OBTYPE 1002
1218 #define WF_OBSPEC 1003
1219 #define X_WF_MENU 4352
1220 #define X_WF_DIALOG 4608
1221 #define X_WF_DIALWID 4864
1222 #define X_WF_DIALHT 5120
1223 #define X_WF_DFLTDESK 5376
1224 #define X_WF_MINMAX 5632
1225 #define X_WF_HSPLIT 5888
1226 #define X_WF_VSPLIT 6144
1227 #define X_WF_SPLMIN 6400
1228 #define X_WF_HSLIDE2 6656
1229 #define X_WF_VSLIDE2 6144
1230 #define X_WF_HSLSIZE2 7168
1231 #define X_WF_VSLSIZE2 7424
1232 #define X_WF_DIALFLGS 7680
1233 #define X_WF_OBJHAND 7936
1234 #define X_WF_DIALEDIT 9182
1235 #define X_WF_DCOLSTAT 8448
1236 #define WF_WINX 22360
1237 #define WF_WINXCFG 22361
1238 #define WF_DDELAY 22362
1239 #define WF_SHADE 22365
1240 #define WF_STACK 22366
1241 #define WF_TOPALL 22367
1242 #define WF_BOTTOMALL 22368
1243 #define WF_XAAES 0x5841
1245 /* wind_set(WF_BEVENT) */
1246 #define BEVENT_WORK 0x0001
1247 #define BEVENT_INFO 0x0002
1249 /* wind_set(WF_OPTS) bitmask flags */
1250 #define WO0_WHEEL 0x0001
1251 #define WO0_FULLREDRAW 0x0002
1252 #define WO0_NOBLITW 0x0004
1253 #define WO0_NOBLITH 0x0008
1254 #define WO0_SENDREPOS 0x0010
1255 #define WO1_NONE 0x0000
1256 #define WO2_NONE 0x0000
1258 /* wind_set(WF_WHEEL) modes */
1259 #define WHEEL_MESAG 0
1260 #define WHEEL_ARROWED 1
1261 #define WHEEL_SLIDER 2
1263 /* window elements */
1264 #define W_BOX 0
1265 #define W_TITLE 1
1266 #define W_CLOSER 2
1267 #define W_NAME 3
1268 #define W_FULLER 4
1269 #define W_INFO 5
1270 #define W_DATA 6
1271 #define W_WORK 7
1272 #define W_SIZER 8
1273 #define W_VBAR 9
1274 #define W_UPARROW 10
1275 #define W_DNARROW 11
1276 #define W_VSLIDE 12
1277 #define W_VELEV 13
1278 #define W_HBAR 14
1279 #define W_LFARROW 15
1280 #define W_RTARROW 16
1281 #define W_HSLIDE 17
1282 #define W_HELEV 18
1283 #define W_SMALLER 19
1284 #define W_BOTTOMER 20
1285 #define W_HIDER 30
1287 /* arrow message */
1288 #define WA_UPPAGE 0
1289 #define WA_DNPAGE 1
1290 #define WA_UPLINE 2
1291 #define WA_DNLINE 3
1292 #define WA_LFPAGE 4
1293 #define WA_RTPAGE 5
1294 #define WA_LFLINE 6
1295 #define WA_RTLINE 7
1296 #define WA_WHEEL 8
1298 /* wind_update flags */
1299 #define END_UPDATE 0
1300 #define BEG_UPDATE 1
1301 #define END_MCTRL 2
1302 #define BEG_MCTRL 3
1303 #define NO_BLOCK 0x100
1305 /* graf_mouse mouse types */
1306 #define ARROW 0
1307 #define TEXT_CRSR 1
1308 #define BEE 2
1309 #define BUSY_BEE BEE
1310 #define BUSYBEE BEE
1311 #define HOURGLASS 2
1312 #define POINT_HAND 3
1313 #define FLAT_HAND 4
1314 #define THIN_CROSS 5
1315 #define THICK_CROSS 6
1316 #define OUTLN_CROSS 7
1317 #define USER_DEF 255
1318 #define M_OFF 256
1319 #define M_ON 257
1320 #define M_SAVE 258
1321 #define M_RESTORE 259
1322 #define M_LAST 260
1323 #define M_PREVIOUS M_LAST
1324 #define M_FORCE 0x8000
1326 /* objects - general */
1327 #define ROOT 0
1328 #define MAX_LEN 81 /* max string length */
1329 #define MAX_DEPTH 8 /* max depth of search or draw */
1331 /* inside fill patterns */
1332 #define IP_HOLLOW 0
1333 #define IP_1PATT 1
1334 #define IP_2PATT 2
1335 #define IP_3PATT 3
1336 #define IP_4PATT 4
1337 #define IP_5PATT 5
1338 #define IP_6PATT 6
1339 #define IP_SOLID 7
1341 /* font types */
1342 #define GDOS_PROP 0
1343 #define GDOS_MONO 1
1344 #define GDOS_BITM 2
1345 #define IBM 3
1346 #define SMALL 5
1348 /* object types */
1349 #define G_BOX 20
1350 #define G_TEXT 21
1351 #define G_BOXTEXT 22
1352 #define G_IMAGE 23
1353 #define G_USERDEF 24
1354 #define G_PROGDEF G_USERDEF
1355 #define G_IBOX 25
1356 #define G_BUTTON 26
1357 #define G_BOXCHAR 27
1358 #define G_STRING 28
1359 #define G_FTEXT 29
1360 #define G_FBOXTEXT 30
1361 #define G_ICON 31
1362 #define G_TITLE 32
1363 #define G_CICON 33
1365 /* extended object types, MagiC only */
1366 #define G_SWBUTTON 34
1367 #define G_POPUP 35
1368 #define G_WINTITLE 36
1369 #define G_EDIT 37
1370 #define G_SHORTCUT 38
1373 /* object flags */
1374 #define OF_NONE 0x0000
1375 #define OF_SELECTABLE 0x0001
1376 #define OF_DEFAULT 0x0002
1377 #define OF_EXIT 0x0004
1378 #define OF_EDITABLE 0x0008
1379 #define OF_RBUTTON 0x0010
1380 #define OF_LASTOB 0x0020
1381 #define OF_TOUCHEXIT 0x0040
1382 #define OF_HIDETREE 0x0080
1383 #define OF_INDIRECT 0x0100
1384 #define OF_FL3DIND 0x0200 /* bit 9 */
1385 #define OF_FL3DBAK 0x0400 /* bit 10 */
1386 #define OF_FL3DACT 0x0600
1387 #define OF_SUBMENU 0x0800 /* bit 11 */
1388 #define OF_FLAG11 OF_SUBMENU
1389 #define OF_FLAG12 0x1000
1390 #define OF_FLAG13 0x2000
1391 #define OF_FLAG14 0x4000
1392 #define OF_FLAG15 0x8000
1394 /* Object states */
1395 #define OS_NORMAL 0x0000
1396 #define OS_SELECTED 0x0001
1397 #define OS_CROSSED 0x0002
1398 #define OS_CHECKED 0x0004
1399 #define OS_DISABLED 0x0008
1400 #define OS_OUTLINED 0x0010
1401 #define OS_SHADOWED 0x0020
1402 #define OS_WHITEBAK 0x0040
1403 #define OS_DRAW3D 0x0080
1404 #define OS_STATE08 0x0100
1405 #define OS_STATE09 0x0200
1406 #define OS_STATE10 0x0400
1407 #define OS_STATE11 0x0800
1408 #define OS_STATE12 0x1000
1409 #define OS_STATE13 0x2000
1410 #define OS_STATE14 0x4000
1411 #define OS_STATE15 0x8000
1413 /* Object colors - default pall. */
1414 #define G_WHITE 0
1415 #define G_BLACK 1
1416 #define G_RED 2
1417 #define G_GREEN 3
1418 #define G_BLUE 4
1419 #define G_CYAN 5
1420 #define G_YELLOW 6
1421 #define G_MAGENTA 7
1422 #define G_LWHITE 8
1423 #define G_LBLACK 9
1424 #define G_LRED 10
1425 #define G_LGREEN 11
1426 #define G_LBLUE 12
1427 #define G_LCYAN 13
1428 #define G_LYELLOW 14
1429 #define G_LMAGENTA 15
1432 #ifdef __GEMLIB_OLDNAMES
1433 
1434 /* object flags */
1435 #define NONE 0x0000
1436 #define SELECTABLE 0x0001
1437 #define DEFAULT 0x0002
1438 #define EXIT 0x0004
1439 #define EDITABLE 0x0008
1440 #define RBUTTON 0x0010
1441 #define LASTOB 0x0020
1442 #define TOUCHEXIT 0x0040
1443 #define HIDETREE 0x0080
1444 #define INDIRECT 0x0100
1445 #define FL3DIND 0x0200 /* bit 9 */
1446 #define FL3DBAK 0x0400 /* bit 10 */
1447 #define FL3DACT 0x0600
1448 #define SUBMENU 0x0800 /* bit 11 */
1449 #define FLAG11 SUBMENU
1450 #define FLAG12 0x1000
1451 #define FLAG13 0x2000
1452 #define FLAG14 0x4000
1453 #define FLAG15 0x8000
1455 /* Object states */
1456 #define NORMAL 0x0000
1457 #define SELECTED 0x0001
1458 #define CROSSED 0x0002
1459 #define CHECKED 0x0004
1460 #define DISABLED 0x0008
1461 #define OUTLINED 0x0010
1462 #define SHADOWED 0x0020
1463 #define WHITEBAK 0x0040
1464 #define DRAW3D 0x0080
1465 #define STATE08 0x0100
1466 #define STATE09 0x0200
1467 #define STATE10 0x0400
1468 #define STATE11 0x0800
1469 #define STATE12 0x1000
1470 #define STATE13 0x2000
1471 #define STATE14 0x4000
1472 #define STATE15 0x8000
1474 /* Object colors - default pall. */
1475 #define WHITE 0
1476 #define BLACK 1
1477 #define RED 2
1478 #define GREEN 3
1479 #define BLUE 4
1480 #define CYAN 5
1481 #define YELLOW 6
1482 #define MAGENTA 7
1483 #define LWHITE 8
1484 #define LBLACK 9
1485 #define LRED 10
1486 #define LGREEN 11
1487 #define LBLUE 12
1488 #define LCYAN 13
1489 #define LYELLOW 14
1490 #define LMAGENTA 15
1492 #endif
1493 
1494 
1495 /* editable text field definitions */
1496 #define ED_START 0
1497 #define ED_INIT 1
1498 #define ED_CHAR 2
1499 #define ED_END 3
1501 #define EDSTART ED_START
1502 #define EDINIT ED_INIT
1503 #define EDCHAR ED_CHAR
1504 #define EDEND ED_END
1506 #define ED_CRSR 100
1507 #define ED_DRAW 103
1509 /* editable text justification */
1510 #define TE_LEFT 0
1511 #define TE_RIGHT 1
1512 #define TE_CNTR 2
1514 /* objc_change modes */
1515 #define NO_DRAW 0
1516 #define REDRAW 1
1518 /* objc_order modes */
1519 #define OO_LAST -1
1520 #define OO_FIRST 0
1522 /* objc_sysvar modes */
1523 #define SV_INQUIRE 0
1524 #define SV_SET 1
1526 /* objc_sysvar values */
1527 #define LK3DIND 1
1528 #define LK3DACT 2
1529 #define INDBUTCOL 3
1530 #define ACTBUTCOL 4
1531 #define BACKGRCOL 5
1532 #define AD3DVAL 6
1533 #define MX_ENABLE3D 10
1534 #define MENUCOL 11
1537 typedef struct mouse_form
1538 {
1543  short mf_xhot;
1544 
1549  short mf_yhot;
1550 
1554  short mf_nplanes;
1555 
1559  short mf_fg;
1560 
1564  short mf_bg;
1565 
1569  short mf_mask[16];
1570 
1574  short mf_data[16];
1575 } MFORM;
1576 
1577 #ifndef __PXY
1578 # define __PXY
1580 typedef struct point_coord
1581 {
1582  short p_x;
1583  short p_y;
1584 } PXY;
1585 #endif
1586 
1587 #ifndef __GRECT
1588 # define __GRECT
1590 typedef struct graphic_rectangle
1591 {
1592  short g_x;
1593  short g_y;
1594  short g_w;
1595  short g_h;
1596 } GRECT;
1597 #endif
1598 
1600 typedef struct objc_colorword
1601 {
1602  unsigned borderc : 4;
1603  unsigned textc : 4;
1604  unsigned opaque : 1;
1605  unsigned pattern : 3;
1606  unsigned fillc : 4;
1607 } OBJC_COLORWORD;
1608 
1610 typedef struct text_edinfo
1611 {
1612  char *te_ptext;
1613  char *te_ptmplt;
1614  char *te_pvalid;
1615  short te_font;
1616  short te_fontid;
1617  short te_just;
1618  short te_color;
1619  short te_fontsize;
1621  short te_txtlen;
1622  short te_tmplen;
1623 } TEDINFO;
1624 
1626 typedef struct icon_block
1627 {
1628  short *ib_pmask;
1629  short *ib_pdata;
1630  char *ib_ptext;
1631  short ib_char;
1632  short ib_xchar;
1633  short ib_ychar;
1634  short ib_xicon;
1635  short ib_yicon;
1636  short ib_wicon;
1637  short ib_hicon;
1638  short ib_xtext;
1639  short ib_ytext;
1640  short ib_wtext;
1641  short ib_htext;
1642 } ICONBLK;
1643 
1645 typedef struct bit_block
1646 {
1647  short *bi_pdata;
1648  short bi_wb;
1649  short bi_hl;
1650  short bi_x;
1651  short bi_y;
1652  short bi_color;
1653 } BITBLK;
1654 
1656 typedef struct cicon_data
1657 {
1658  short num_planes;
1659  short *col_data;
1660  short *col_mask;
1661  short *sel_data;
1662  short *sel_mask;
1664 } CICON;
1665 
1667 typedef struct cicon_blk
1668 {
1671 } CICONBLK;
1672 
1674 typedef struct
1675 {
1676  unsigned character : 8;
1677  signed framesize : 8;
1678  unsigned framecol : 4;
1679  unsigned textcol : 4;
1680  unsigned textmode : 1;
1681  unsigned fillpattern : 3;
1682  unsigned interiorcol : 4;
1683 } BFOBSPEC;
1684 
1686 struct user_block; /* forward declaration */
1687 
1689 typedef union obspecptr
1690 {
1691  long index;
1699  char *free_string;
1700 } OBSPEC;
1701 
1703 typedef struct object
1704 {
1705  short ob_next;
1706  short ob_head;
1707  short ob_tail;
1708  unsigned short ob_type;
1709  unsigned short ob_flags;
1710  unsigned short ob_state;
1712  short ob_x;
1713  short ob_y;
1714  short ob_width;
1715  short ob_height;
1716 } OBJECT;
1717 
1719 typedef struct parm_block
1720 {
1722  short pb_obj;
1725  short pb_x;
1726  short pb_y;
1727  short pb_w;
1728  short pb_h;
1729  short pb_xc;
1730  short pb_yc;
1731  short pb_wc;
1732  short pb_hc;
1733  long pb_parm;
1734 } PARMBLK;
1735 
1737 typedef struct user_block
1738 {
1739  short __CDECL (*ub_code)(PARMBLK *parmblock);
1740  long ub_parm;
1741 } USERBLK;
1742 
1744 typedef struct rshdr
1745 {
1746  short rsh_vrsn;
1747  unsigned short rsh_object;
1748  unsigned short rsh_tedinfo;
1749  unsigned short rsh_iconblk;
1750  unsigned short rsh_bitblk;
1751  unsigned short rsh_frstr;
1752  unsigned short rsh_string;
1753  unsigned short rsh_imdata;
1754  unsigned short rsh_frimg;
1755  unsigned short rsh_trindex;
1756  short rsh_nobs;
1757  short rsh_ntree;
1758  short rsh_nted;
1759  short rsh_nib;
1760  short rsh_nbb;
1761  short rsh_nstring;
1762  short rsh_nimages;
1763  unsigned short rsh_rssize;
1764 } RSHDR;
1765 
1767 typedef struct _menu
1768 {
1770  short mn_menu;
1771  short mn_item;
1772  short mn_scroll;
1780  short mn_keystate;
1781 } MENU;
1782 
1784 typedef struct
1785 {
1786  short m_out;
1787  short m_x;
1788  short m_y;
1789  short m_w;
1790  short m_h;
1791 } MOBLK;
1792 
1794 typedef struct mouse_event_type
1795 {
1796  short *x;
1797  short *y;
1798  short *b;
1799  short *k;
1800 } MOUSE_EVENT;
1801 
1804 typedef struct {
1805  short emi_flags;
1806  short emi_bclicks;
1807  short emi_bmask;
1808  short emi_bstate;
1809  short emi_m1leave;
1811  short emi_m2leave;
1813  short emi_tlow;
1814  short emi_thigh;
1815 } EVMULT_IN;
1816 
1821 typedef struct {
1822  short emo_events;
1824  short emo_mbutton;
1825  short emo_kmeta;
1826  short emo_kreturn;
1827  short emo_mclicks;
1828 } EVMULT_OUT;
1829 
1830 #endif
1831 
1832 #ifdef __GEMLIB_AES
1833 
1834 /*******************************************************************************
1835  * The AES bindings from old aesbind.h
1836  */
1837 
1841 short mt_appl_bvset (short bvdisk, short bvhard, short *global_aes);
1842 short mt_appl_control (short ap_cid, short ap_cwhat, void *ap_cout, short *global_aes);
1843 short mt_appl_exit (short *global_aes);
1844 short mt_appl_find (const char *name, short *global_aes);
1845 short mt_appl_getinfo (short type,
1846  short *out1, short *out2, short *out3, short *out4, short *global_aes);
1847 short mt_appl_getinfo_str (short type,
1848  char *out1, char *out2, char *out3, char *out4, short *global_aes);
1849 short mt_appl_init (short *global_aes);
1850 short mt_appl_read (short ap_id, short length, void *ap_pbuff, short *global_aes);
1851 short mt_appl_search (short mode, char *fname, short *type, short *ap_id, short *global_aes);
1852 short mt_appl_tplay (void *mem, short num, short scale, short *global_aes);
1853 short mt_appl_trecord (void *mem, short count, short *global_aes);
1854 short mt_appl_write (short ap_id, short length, void *ap_pbuff, short *global_aes);
1855 short mt_appl_yield (short *global_aes);
1856 short mt_appl_get_cicon (short type,const char *name,short size,short *cicon_width,short *cicon_height,CICON **cicon_data, short *global_aes);
1862 short mt_evnt_button (short Clicks, short WhichButton, short WhichState,
1863  short *Mx, short *My, short *ButtonState, short *KeyState, short *global_aes);
1864 short mt_evnt_dclick (short ToSet, short SetGet, short *global_aes);
1865 short mt_evnt_keybd (short *global_aes);
1866 short mt_evnt_mesag (short MesagBuf[], short *global_aes);
1867 short mt_evnt_mouse (short EnterExit, short InX, short InY, short InW, short InH,
1868  short *OutX, short *OutY, short *ButtonState, short *KeyState, short *global_aes);
1869 short mt_evnt_multi (short Type, short Clicks, short WhichButton, short WhichState,
1870  short EnterExit1, short In1X, short In1Y, short In1W, short In1H,
1871  short EnterExit2, short In2X, short In2Y, short In2W, short In2H,
1872  short MesagBuf[], unsigned long Interval, short *OutX, short *OutY,
1873  short *ButtonState, short *KeyState, short *Key, short *ReturnCount, short *global_aes);
1874 short mt_evnt_multi_fast (const EVMULT_IN * em_i,
1875  short MesagBuf[], EVMULT_OUT * em_o, short *global_aes);
1876 short mt_evnt_timer (unsigned long Interval, short *global_aes);
1882 short mt_form_alert (short DefButton, const char *Str, short *global_aes);
1883 short mt_form_button (OBJECT *, short Bobject, short Bclicks, short *Bnxtobj, short *global_aes);
1884 short mt_form_center (OBJECT *, short *Cx, short *Cy, short *Cw, short *Ch, short *global_aes);
1885 short mt_form_center_grect (OBJECT *, GRECT *r, short *global_aes);
1886 short mt_form_dial (short Flag, short Sx, short Sy, short Sw, short Sh,
1887  short Bx, short By, short Bw, short Bh, short *global_aes);
1888 short mt_form_do (OBJECT *, short StartObj, short *global_aes);
1889 short mt_form_error (short ErrorCode, short *global_aes);
1890 short mt_form_keybd (OBJECT *, short Kobject, short Kobnext, short Kchar,
1891  short *Knxtobject, short *Knxtchar, short *global_aes);
1899 typedef void __CDECL (* FSEL_CALLBACK)( short *msg);
1900 
1901 short mt_fsel_exinput (char *path, char *file, short *exit_button, const char *title, short *global);
1902 short mt_fsel_input (char *path, char *file, short *exit_button, short *global);
1903 short mt_fsel_boxinput(char *path, char *file, short *exit_button, const char *title, FSEL_CALLBACK callback, short *global);
1909 short mt_graf_dragbox (short Sw, short Sh, short Sx, short Sy, short Bx, short By, short Bw, short Bh, short *Fw, short *Fh, short *global_aes);
1910 short mt_graf_growbox (short Sx, short Sy, short Sw, short Sh, short Fx, short Fy, short Fw, short Fh, short *global_aes);
1911 short mt_graf_growbox_grect (const GRECT *in, const GRECT *out, short *global_aes);
1912 short mt_graf_handle (short *Wchar, short *Hchar, short *Wbox, short *Hbox, short *global_aes);
1913 short mt_graf_xhandle (short *Wchar, short *Hchar, short *Wbox, short *Hbox, short * device, short *global_aes);
1914 short mt_graf_mbox (short Sw, short Sh, short Sx, short Sy, short Dx, short Dy, short *global_aes);
1915 short mt_graf_mkstate (short *Mx, short *My, short *ButtonState, short *KeyState, short *global_aes);
1916 short mt_graf_mouse (short Form, const MFORM *FormAddress, short *global_aes);
1917 short mt_graf_rubberbox (short Ix, short Iy, short Iw, short Ih, short *Fw, short *Fh, short *global_aes);
1918 short mt_graf_multirubber (short bx, short by, short mw, short mh, GRECT *rec, short *rw, short *rh, short *global_aes);
1919 short mt_graf_shrinkbox (short Fx, short Fy, short Fw, short Fh, short Sx, short Sy, short Sw, short Sh, short *global_aes);
1920 short mt_graf_shrinkbox_grect (const GRECT *in, const GRECT *out, short *global_aes);
1921 short mt_graf_slidebox (OBJECT *, short Parent, short Object, short Direction, short *global_aes);
1922 short mt_graf_watchbox (OBJECT *, short Object, short InState, short OutState, short *global_aes);
1923 short mt_graf_wwatchbox (OBJECT *, short Object, short InState, short OutState, short whandle, short *global_aes);
1929 short mt_menu_attach (short me_flag, OBJECT *me_tree, short me_item, MENU *me_mdata, short *global);
1930 short mt_menu_bar (OBJECT *me_tree, short me_mode, short *global);
1931 short mt_menu_click (short click, short setit, short *global);
1932 short mt_menu_icheck (OBJECT *me_tree, short me_item, short me_check, short *global);
1933 short mt_menu_ienable (OBJECT *me_tree, short me_item, short me_enable, short *global);
1934 short mt_menu_istart (short me_flag, OBJECT *me_tree, short me_imenu, short me_item, short *global);
1935 short mt_menu_popup (MENU *me_menu, short me_xpos, short me_ypos, MENU *me_mdata, short *global);
1936 short mt_menu_register (short ap_id, char *me_text, short *global);
1937 short mt_menu_settings (short me_flag, MN_SET *me_values, short *global);
1938 short mt_menu_text (OBJECT *me_tree, short me_item, char *me_text, short *global);
1939 short mt_menu_tnormal (OBJECT *me_tree, short me_item, short me_normal, short *global);
1940 short mt_menu_unregister (short id, short *global);
1946 short mt_objc_add (OBJECT *, short Parent, short Child, short *global);
1947 short mt_objc_change (OBJECT *, short Object, short Res,
1948  short Cx, short Cy, short Cw, short Ch,
1949  short NewState,short Redraw, short *global_aes);
1950 short mt_objc_delete (OBJECT *, short Object, short *global_aes);
1951 short mt_objc_draw (OBJECT *, short Start, short Depth,
1952  short Cx, short Cy, short Cw, short Ch, short *global_aes);
1953 short mt_objc_draw_grect (OBJECT *, short Start, short Depth, const GRECT *r, short *global_aes);
1954 short mt_objc_edit (OBJECT *, short Object, short Char, short *Index, short Kind, short *global_aes);
1955 short mt_objc_find (OBJECT *, short Start, short Depth, short Mx, short My, short *global_aes);
1956 short mt_objc_xfind (OBJECT *, short Start, short Depth, short Mx, short My, short *global_aes);
1957 short mt_objc_offset (OBJECT *, short Object, short *X, short *Y, short *global_aes);
1958 short mt_objc_order (OBJECT *, short Object, short NewPos, short *global_aes);
1959 short mt_objc_sysvar (short mode, short which, short in1, short in2, short *out1, short *out2, short *global_aes);
1965 short mt_rsrc_free (short *global_aes);
1966 short mt_rsrc_gaddr (short Type, short Index, void *Address, short *global_aes);
1967 short mt_rsrc_load (const char *Name, short *global_aes);
1968 short mt_rsrc_obfix (OBJECT *, short Index, short *global_aes);
1969 short mt_rsrc_rcfix (void *rc_header, short *global_aes);
1970 short mt_rsrc_saddr (short Type, short Index, void *Address, short *global_aes);
1976 short mt_scrp_clear (short *global_aes);
1977 short mt_scrp_read (char *Scrappath, short *global_aes);
1978 short mt_scrp_write (const char *Scrappath, short *global_aes);
1984 short mt_shel_envrn (char **result, const char *param, short *global_aes);
1985 short mt_shel_find (char *buf, short *global_aes);
1986 short mt_shel_get (char *Buf, short Len, short *global_aes);
1987 short mt_shel_help (short sh_hmode, const char *sh_hfile, const char *sh_hkey, short *global_aes);
1988 short mt_shel_put (const char *Buf, short Len, short *global_aes);
1989 short mt_shel_rdef (char *lpcmd, char *lpdir, short *global_aes);
1990 short mt_shel_read (char *Command, char *Tail, short *global_aes);
1991 short mt_shel_wdef (const char *lpcmd, const char *lpdir, short *global_aes);
1992 short mt_shel_write (short Exit, short Graphic, short Aes, void *Command, char *Tail, short *global_aes);
1998 short mt_wind_calc (short Type, short Parts, short InX, short InY, short InW, short InH, short *OutX, short *OutY, short *OutW, short *OutH, short *global_aes);
1999 short mt_wind_close (short WindowHandle, short *global_aes);
2000 short mt_wind_create (short Parts, short Wx, short Wy, short Ww, short Wh, short *global_aes);
2001 short mt_wind_xcreate (short Parts, short Wx, short Wy, short Ww, short Wh, short *OutX, short *OutY, short *OutW, short *OutH, short *global_aes);
2002 short mt_wind_delete (short WindowHandle, short *global_aes);
2003 short mt_wind_draw (short WindowHandle, short startob, short *global_aes);
2004 short mt_wind_find (short X, short Y, short *global_aes);
2005 short mt_wind_get (short WindowHandle, short What, short *W1, short *W2, short *W3, short *W4, short *global_aes);
2006 short mt_wind_new (short *global_aes);
2007 short mt_wind_open (short WindowHandle, short Wx, short Wy, short Ww, short Wh, short *global_aes);
2008 short mt_wind_set (short WindowHandle, short What, short W1, short W2, short W3, short W4, short *global_aes);
2009 short mt_wind_update (short Code, short *global_aes);
2010 
2011 /*
2012  * Some useful extensions
2013  */
2014 short mt_wind_calc_grect (short Type, short Parts, const GRECT *In, GRECT *Out, short *global_aes);
2015 short mt_wind_create_grect (short Parts, const GRECT *r, short *global_aes);
2016 short mt_wind_xcreate_grect (short Parts, const GRECT *r, GRECT *ret, short *global_aes);
2017 short mt_wind_get_grect (short WindowHandle, short What, GRECT *r, short *global_aes);
2018 short mt_wind_xget_grect (short WindowHandle, short What, const GRECT *clip, GRECT *r, short *global_aes);
2019 short mt_wind_open_grect (short WindowHandle, const GRECT *r, short *global_aes);
2020 short mt_wind_set_grect (short WindowHandle, short What, const GRECT *r, short *global_aes);
2021 short mt_wind_xset_grect (short WindowHandle, short What, const GRECT *s, GRECT *r, short *global_aes);
2022 short mt_wind_set_str (short WindowHandle, short What, const char *str, short *global_aes);
2028 short rc_copy (const GRECT *src, GRECT *dst);
2029 short rc_equal (const GRECT *r1, const GRECT *r2);
2030 short rc_intersect (const GRECT *src, GRECT *dst);
2031 GRECT * array_to_grect (const short *array, GRECT *area);
2032 short * grect_to_array (const GRECT *area, short *array);
2040 /*
2041  * aes trap interface
2042  */
2043 
2044 /* Array sizes in aes control block */
2045 
2047 #define AES_CTRLMAX 5
2048 
2049 #define AES_GLOBMAX 16
2050 
2051 #define AES_INTINMAX 16
2052 
2053 #define AES_INTOUTMAX 16
2054 
2055 #define AES_ADDRINMAX 16
2056 
2057 #define AES_ADDROUTMAX 16
2058 
2060 #define mt_AESversion(aes_global) (aes_global[0])
2061 
2064 #define mt_AESnumapps(aes_global) (aes_global[1])
2065 
2067 #define mt_AESapid(aes_global) (aes_global[2])
2068 
2070 #define mt_AESappglobal(aes_global) (*((long *)&aes_global[3]))
2071 
2073 #define mt_AESrscfile(aes_global) ((OBJECT **)(*((long *)&aes_global[5])))
2074 
2077 #define mt_AESmaxchar(aes_global) (aes_global[13])
2078 
2081 #define mt_AESminchar(aes_global) (aes_global[14])
2082 
2084 typedef struct
2085 {
2086  short *control;
2087  short *global;
2088  const short *intin;
2089  short *intout;
2090  const long *addrin;
2091  long *addrout;
2092 } AESPB;
2093 
2095 extern void aes (AESPB *pb);
2096 
2099 #endif /* AES */
2100 
2101 
2102 
2103 #ifdef __GEMLIB_DEFS
2104 
2105 /*******************************************************************************
2106  * The VDI specific stuff from old gemfast.h
2107  */
2108 
2109 /* normal graphics drawing modes */
2110 #define MD_REPLACE 1
2111 #define MD_TRANS 2
2112 #define MD_XOR 3
2113 #define MD_ERASE 4
2115 /* bit blt rules */
2116 #define ALL_WHITE 0
2117 #define S_AND_D 1
2118 #define S_AND_NOTD 2
2119 #define S_ONLY 3
2120 #define NOTS_AND_D 4
2121 #define D_ONLY 5
2122 #define S_XOR_D 6
2123 #define S_OR_D 7
2124 #define NOT_SORD 8
2125 #define NOT_SXORD 9
2126 #define D_INVERT 10
2127 #define NOT_D 10
2128 #define S_OR_NOTD 11
2129 #define NOT_S 12
2130 #define NOTS_OR_D 13
2131 #define NOT_SANDD 14
2132 #define ALL_BLACK 15
2134 /* v_bez modes */
2135 #define BEZ_BEZIER 0x01
2136 #define BEZ_POLYLINE 0x00
2137 #define BEZ_NODRAW 0x02
2139 /* v_bit_image modes */
2140 #define IMAGE_LEFT 0
2141 #define IMAGE_CENTER 1
2142 #define IMAGE_RIGHT 2
2143 #define IMAGE_TOP 0
2144 #define IMAGE_BOTTOM 2
2146 /* v_justified modes */
2147 #define NOJUSTIFY 0
2148 #define JUSTIFY 1
2150 /* vq_color modes */
2151 #define COLOR_REQUESTED 0
2152 #define COLOR_ACTUAL 1
2154 /* return values for vq_vgdos() inquiry */
2155 #define GDOS_NONE (-2L) /* no GDOS installed */
2156 #define GDOS_FSM 0x5F46534DL /* '_FSM' */
2157 #define GDOS_FNT 0x5F464E54L /* '_FNT' */
2159 /* vqin_mode & vsin_mode modes */
2160 #define VINMODE_LOCATOR 1
2161 #define VINMODE_VALUATOR 2
2162 #define VINMODE_CHOICE 3
2163 #define VINMODE_STRING 4
2165 #ifdef __GEMLIB_OLDNAMES
2166 #define LOCATOR 1
2167 #define VALUATOR 2
2168 #define CHOICE 3
2169 #define STRING 4
2170 #endif
2171 
2172 /* vqt_cachesize modes */
2173 #define CACHE_CHAR 0
2174 #define CACHE_MISC 1
2176 /* vqt_devinfo return values */
2177 #define DEV_MISSING 0
2178 #define DEV_INSTALLED 1
2180 /* vqt_name return values */
2181 #define BITMAP_FONT 0
2183 /* vsf_interior modes */
2184 #define FIS_HOLLOW 0
2185 #define FIS_SOLID 1
2186 #define FIS_PATTERN 2
2187 #define FIS_HATCH 3
2188 #define FIS_USER 4
2190 /* vsf_perimeter modes */
2191 #define PERIMETER_OFF 0
2192 #define PERIMETER_ON 1
2194 /* vsl_ends modes */
2195 #define SQUARE 0
2196 #define ARROWED 1
2197 #define ROUND 2
2199 /* other names */
2200 #define LE_SQUARED SQUARE
2201 #define LE_ARROWED ARROWED
2202 #define LE_ROUNDED ROUND
2204 /* vsl_type modes */
2205 #define SOLID 1
2206 #define LDASHED 2
2207 #define DOTTED 3
2208 #define DASHDOT 4
2209 #define DASH 5
2210 #define DASHDOTDOT 6
2211 #define USERLINE 7
2213 /* other names */
2214 #define LT_SOLID SOLID
2215 #define LT_LONGDASH LDASHED
2216 #define LT_DOTTED DOTTED
2217 #define LT_DASHDOT DASHDOT
2218 #define LT_DASHED DASH
2219 #define LT_DASHDOTDOT DASHDOTDOT
2220 #define LT_USERDEF USERLINE
2221 #define LONGDASH LDASHED
2222 #define DOT DOTTED
2223 #define DASH2DOT DASHDOTDOT
2225 /* vsm_type modes */
2226 #define MRKR_DOT 1
2227 #define MRKR_PLUS 2
2228 #define MRKR_ASTERISK 3
2229 #define MRKR_BOX 4
2230 #define MRKR_CROSS 5
2231 #define MRKR_DIAMOND 6
2233 /* other names */
2234 #define MT_DOT MRKR_DOT
2235 #define MT_PLUS MRKR_PLUS
2236 #define MT_ASTERISK MRKR_ASTERISK
2237 #define MT_SQUARE MRKR_BOX
2238 #define MT_DCROSS MRKR_CROSS
2239 #define MT_DIAMOND MRKR_DIAMOND
2241 /* vst_alignment modes */
2242 #define TA_LEFT 0 /* horizontal */
2243 #define TA_CENTER 1
2244 #define TA_RIGHT 2
2245 #define TA_BASE 0 /* vertical */
2246 #define TA_HALF 1
2247 #define TA_ASCENT 2
2248 #define TA_BOTTOM 3
2249 #define TA_DESCENT 4
2250 #define TA_TOP 5
2252 /* vst_charmap modes */
2253 #define MAP_BITSTREAM 0
2254 #define MAP_ATARI 1
2255 #define MAP_UNICODE 2 /* for vst_map_mode, NVDI 4 */
2257 /* vst_effects modes */
2258 #define TXT_NORMAL 0x0000
2259 #define TXT_THICKENED 0x0001
2260 #define TXT_LIGHT 0x0002
2261 #define TXT_SKEWED 0x0004
2262 #define TXT_UNDERLINED 0x0008
2263 #define TXT_OUTLINED 0x0010
2264 #define TXT_SHADOWED 0x0020
2266 /* other names */
2267 #define TF_NORMAL TXT_NORMAL
2268 #define TF_THICKENED TXT_THICKENED
2269 #define TF_LIGHTENED TXT_LIGHT
2270 #define TF_SLANTED TXT_SKEWED
2271 #define TF_UNDERLINED TXT_UNDERLINED
2272 #define TF_OUTLINED TXT_OUTLINED
2273 #define TF_SHADOWED TXT_SHADOWED
2276 /* vst_error modes */
2277 #define APP_ERROR 0
2278 #define SCREEN_ERROR 1
2280 /* vst_error return values */
2281 #define NO_ERROR 0
2282 #define CHAR_NOT_FOUND 1
2283 #define FILE_READERR 8
2284 #define FILE_OPENERR 9
2285 #define BAD_FORMAT 10
2286 #define CACHE_FULL 11
2287 #define MISC_ERROR (-1)
2289 /* vst_kern tmodes */
2290 #define TRACK_NONE 0
2291 #define TRACK_NORMAL 1
2292 #define TRACK_TIGHT 2
2293 #define TRACK_VERYTIGHT 3
2295 /* vst_kern pmodes */
2296 #define PAIR_OFF 0
2297 #define PAIR_ON 1
2299 /* vst_scratch modes */
2300 #define SCRATCH_BOTH 0
2301 #define SCRATCH_BITMAP 1
2302 #define SCRATCH_NONE 2
2304 /* v_updwk return values */
2305 #define SLM_OK 0x00
2306 #define SLM_ERROR 0x02
2307 #define SLM_NOTONER 0x03
2308 #define SLM_NOPAPER 0x04
2311 typedef struct memory_form
2312 {
2313  void *fd_addr;
2314  short fd_w;
2315  short fd_h;
2316  short fd_wdwidth;
2317  short fd_stand;
2318  short fd_nplanes;
2319  short fd_r1;
2320  short fd_r2;
2321  short fd_r3;
2322 } MFDB;
2323 
2325 typedef struct rgb_1000
2326 {
2327  short red;
2328  short green;
2329  short blue;
2330 } RGB1000;
2331 
2332 #endif
2333 
2334 #ifdef __GEMLIB_VDI
2335 
2336 /*******************************************************************************
2337  * The VDI bindings from old vdibind.h
2338  */
2339 
2340 typedef short VdiHdl;
2343 /*
2344  * attribute functions
2345  */
2346 
2350 void vs_color (VdiHdl , short color_idx, short rgb[]);
2351 short vswr_mode (VdiHdl , short mode);
2352 
2353 short vsf_color (VdiHdl , short color_idx);
2354 short vsf_interior (VdiHdl , short style);
2355 short vsf_perimeter (VdiHdl , short vis);
2356 short vsf_xperimeter(VdiHdl , short vis, short style);
2357 short vsf_style (VdiHdl , short style);
2358 void vsf_udpat (VdiHdl , short pat[], short planes);
2359 
2360 short vsl_color (VdiHdl , short color_idx);
2361 void vsl_ends (VdiHdl , short begstyle, short endstyle);
2362 short vsl_type (VdiHdl , short style);
2363 void vsl_udsty (VdiHdl , short pat);
2364 short vsl_width (VdiHdl , short width);
2365 
2366 short vsm_color (VdiHdl , short color_idx);
2367 short vsm_height (VdiHdl , short height);
2368 short vsm_type (VdiHdl , short symbol);
2369 
2370 void vst_alignment (VdiHdl , short hin, short vin, short *hout, short *vout);
2371 short vst_color (VdiHdl , short color_idx);
2372 short vst_effects (VdiHdl , short effects);
2373 
2374 void vst_error (VdiHdl , short mode, short *errorvar);
2375 
2376 short vst_font (VdiHdl , short font);
2377 void vst_height (VdiHdl , short height, short *charw, short *charh,
2378  short *cellw, short *cellh);
2379 short vst_point (VdiHdl , short point, short *charw, short *charh,
2380  short *cellw, short *cellh);
2381 short vst_rotation (VdiHdl , short ang);
2382 void vst_scratch (VdiHdl , short mode);
2383 
2388 #define udef_vs_color vs_color
2389 
2390 #define udef_vswr_mode vswr_mode
2391 
2393 #define udef_vsf_color vsf_color
2394 
2395 #define udef_vsf_interior vsf_interior
2396 
2397 #define udef_vsf_perimeter vsf_perimeter
2398 
2399 #define udef_vsf_xperimeter vsf_xperimeter
2400 
2401 #define udef_vsf_style vsf_style
2402 
2403 #define udef_vsf_udpat vsf_udpat
2404 
2406 #define udef_vsl_color vsl_color
2407 
2408 #define udef_vsl_ends vsl_ends
2409 
2410 #define udef_vsl_type vsl_type
2411 
2412 #define udef_vsl_udsty vsl_udsty
2413 
2414 #define udef_vsl_width vsl_width
2415 
2417 #define udef_vsm_color vsm_color
2418 
2419 #define udef_vsm_height vsm_height
2420 
2421 #define udef_vsm_type vsm_type
2422 
2424 #define udef_vst_alignment vst_alignment
2425 
2426 #define udef_vst_color vst_color
2427 
2428 #define udef_vst_effects vst_effects
2429 
2431 void udef_vst_error (VdiHdl , short mode, short *errorvar);
2432 
2434 #define udef_vst_font vst_font
2435 
2436 #define udef_vst_height vst_height
2437 
2438 #define udef_vst_point vst_point
2439 
2440 #define udef_vst_rotation vst_rotation
2441 
2442 #define udef_vst_scratch vst_scratch
2443 
2444 
2445 #ifdef FORCE_GEMLIB_UDEF
2446 #define vst_error udef_vst_error
2447 #endif
2448 
2449 
2450 /*
2451  * control functions
2452  */
2453 
2457 void v_clrwk (VdiHdl );
2458 void v_clsvwk (VdiHdl );
2459 void v_clswk (VdiHdl );
2460 short v_flushcache (VdiHdl );
2461 short v_loadcache (VdiHdl , const char *filename, short mode);
2462 void v_opnvwk (short work_in[], VdiHdl *, short work_out[]);
2463 void v_opnwk (short work_in[], VdiHdl *, short work_out[]);
2464 short v_savecache (VdiHdl , const char *filename);
2465 void v_set_app_buff (VdiHdl , void *buf_p, short size);
2466 void v_updwk (VdiHdl );
2467 void vs_clip (VdiHdl , short clip_flag, short pxy[]);
2468 void vs_clip_pxy (VdiHdl , PXY pxy[]);
2469 void vs_clip_off (VdiHdl );
2470 short vst_load_fonts (VdiHdl , short /* select */);
2471 void vst_unload_fonts (VdiHdl , short /* select */);
2475 #define udef_v_clrwk v_clrwk
2476 
2477 #define udef_v_clsvwk v_clsvwk
2478 
2479 #define udef_v_clswk v_clswk
2480 
2481 #define udef_v_flushcache v_flushcache
2482 
2483 short udef_v_loadcache (VdiHdl , const char *filename, short mode);
2485 #define udef_v_opnvwk v_opnvwk
2486 
2487 #define udef_v_opnwk v_opnwk
2488 
2489 short udef_v_savecache (VdiHdl , const char *filename);
2491 #define udef_v_set_app_buff v_set_app_buff
2492 
2493 #define udef_v_updwk v_updwk
2494 
2495 #define udef_vs_clip vs_clip
2496 
2497 #define udef_vs_clip_pxy vs_clip_pxy
2498 
2499 #define udef_vs_clip_off vs_clip_off
2500 
2501 #define udef_vst_load_fonts vst_load_fonts
2502 
2503 #define udef_vst_unload_fonts vst_unload_fonts
2504 
2505 #ifdef FORCE_GEMLIB_UDEF
2506 #define v_loadcache udef_v_loadcache
2507 #define v_savecache udef_v_savecache
2508 #endif
2509 
2510 /*
2511  * escape functions
2512  */
2513 
2519 void v_bit_image (VdiHdl , const char *filename, short aspect,
2520  short x_scale, short y_scale,
2521  short h_align, short v_align, short *pxy);
2522 
2523 void v_clear_disp_list (VdiHdl );
2524 short v_copies (VdiHdl , short count);
2525 void v_dspcur (VdiHdl , short x, short y);
2526 void v_form_adv (VdiHdl );
2527 void v_hardcopy (VdiHdl );
2528 short v_orient (VdiHdl , short orientation);
2529 void v_output_window (VdiHdl , short *pxy);
2530 short v_page_size (VdiHdl , short page_id);
2531 void v_rmcur (VdiHdl );
2532 short v_trays (VdiHdl , short input, short output,
2533  short *set_input, short *set_output);
2534 short vq_calibrate (VdiHdl , short *flag);
2535 short vq_page_name (VdiHdl , short page_id, char *page_name,
2536  long *page_width, long *page_height);
2537 void vq_scan (VdiHdl , short *g_slice, short *g_page,
2538  short *a_slice, short *a_page, short *div_fac);
2539 short vq_tabstatus (VdiHdl );
2540 short vq_tray_names (VdiHdl , char *input_name, char *output_name,
2541  short *input, short *output);
2542 short vs_calibrate (VdiHdl , short flag, short *rgb);
2543 short vs_palette (VdiHdl , short palette);
2544 
2545 void v_sound (VdiHdl, short freq, short duration);
2546 short vs_mute (VdiHdl, short action);
2547 
2548 void vq_tdimensions (VdiHdl , short *xdimension, short *ydimension);
2549 void vt_alignment (VdiHdl , short dx, short dy);
2550 void vt_axis (VdiHdl , short xres, short yres, short *xset, short *yset);
2551 void vt_origin (VdiHdl , short xorigin, short yorigin);
2552 void vt_resolution (VdiHdl , short xres, short yres, short *xset, short *yset);
2553 
2554 void v_meta_extents (VdiHdl , short min_x, short min_y,
2555  short max_x, short max_y);
2556 void v_write_meta (VdiHdl , short numvdi_intin, short *avdi_intin,
2557  short num_ptsin, short *a_ptsin);
2558 void vm_coords (VdiHdl , short llx, short lly, short urx, short ury);
2559 
2560 void vm_filename (VdiHdl , const char *filename);
2561 void vm_pagesize (VdiHdl , short pgwidth, short pgheight);
2562 
2563 void vsc_expose (VdiHdl , short state);
2564 void vsp_film (VdiHdl , short color_idx, short lightness);
2565 short vqp_filmname (VdiHdl , short _index, char * name);
2566 
2567 void v_offset (VdiHdl , short offset);
2568 void v_fontinit (VdiHdl , const void * font_header);
2569 
2570 void v_escape2000 (VdiHdl , short times);
2571 
2572 void v_alpha_text (VdiHdl , const char *str);
2573 void v_alpha_text16n (VdiHdl , const short * wstr, short num);
2574 void v_curdown (VdiHdl );
2575 void v_curhome (VdiHdl );
2576 void v_curleft (VdiHdl );
2577 void v_curright (VdiHdl );
2578 void v_curtext (VdiHdl , const char *str);
2579 void v_curtext16n (VdiHdl , const short * wstr, short num);
2580 void v_curup (VdiHdl );
2581 void v_eeol (VdiHdl );
2582 void v_eeos (VdiHdl );
2583 void v_enter_cur (VdiHdl );
2584 void v_exit_cur (VdiHdl );
2585 void v_rvoff (VdiHdl );
2586 void v_rvon (VdiHdl );
2587 void vq_chcells (VdiHdl , short *n_rows, short *n_cols);
2588 void vq_curaddress (VdiHdl , short *cur_row, short *cur_col);
2589 void vs_curaddress (VdiHdl , short row, short col);
2591 #define v_curaddress vs_curaddress
2592 
2596 void udef_v_bit_image (VdiHdl , const char *filename, short aspect,
2597  short x_scale, short y_scale,
2598  short h_align, short v_align, short *pxy);
2599 
2601 #define udef_v_clear_disp_list v_clear_disp_list
2602 
2603 #define udef_v_copies v_copies
2604 
2605 #define udef_v_dspcur v_dspcur
2606 
2607 #define udef_v_form_adv v_form_adv
2608 
2609 #define udef_v_hardcopy v_hardcopy
2610 
2611 #define udef_v_orient v_orient
2612 
2613 #define udef_v_output_window v_output_window
2614 
2615 #define udef_v_page_size v_page_size
2616 
2617 #define udef_v_rmcur v_rmcur
2618 
2619 #define udef_v_trays v_trays
2620 
2621 #define udef_vq_calibrate vq_calibrate
2622 
2623 #define udef_vq_page_name vq_page_name
2624 
2625 #define udef_vq_scan vq_scan
2626 
2627 #define udef_vq_tabstatus vq_tabstatus
2628 
2629 #define udef_vq_tray_names vq_tray_names
2630 
2631 #define udef_vs_calibrate vs_calibrate
2632 
2633 #define udef_vs_palette vs_palette
2634 
2636 #define udef_v_sound v_sound
2637 
2638 #define udef_vs_mute vs_mute
2639 
2641 #define udef_vq_tdimensions vq_tdimensions
2642 
2643 #define udef_vt_alignment vt_alignment
2644 
2645 #define udef_vt_axis vt_axis
2646 
2647 #define udef_vt_origin vt_origin
2648 
2649 #define udef_vt_resolution vt_resolution
2650 
2652 #define udef_v_meta_extents v_meta_extents
2653 
2654 #define udef_v_write_meta v_write_meta
2655 
2656 #define udef_vm_coords vm_coords
2657 
2658 void udef_vm_filename (VdiHdl , const char *filename);
2660 #define udef_vm_pagesize vm_pagesize
2661 
2663 #define udef_vsc_expose vsc_expose
2664 
2665 #define udef_vsp_film vsp_film
2666 
2667 #define udef_vqp_filmname vqp_filmname
2668 
2670 #define udef_v_offset v_offset
2671 
2672 #define udef_v_fontinit v_fontinit
2673 
2675 #define udef_v_escape2000 v_escape2000
2676 
2678 void udef_v_alpha_text (VdiHdl , const char *str);
2680 #define udef_v_alpha_text16n v_alpha_text16n
2681 
2682 #define udef_v_curdown v_curdown
2683 
2684 #define udef_v_curhome v_curhome
2685 
2686 #define udef_v_curleft v_curleft
2687 
2688 #define udef_v_curright v_curright
2689 
2690 void udef_v_curtext (VdiHdl , const char *str);
2692 #define udef_v_curtext16n v_curtext16n
2693 
2694 #define udef_v_curup v_curup
2695 
2696 #define udef_v_eeol v_eeol
2697 
2698 #define udef_v_eeos v_eeos
2699 
2700 #define udef_v_enter_cur v_enter_cur
2701 
2702 #define udef_v_exit_cur v_exit_cur
2703 
2704 #define udef_v_rvoff v_rvoff
2705 
2706 #define udef_v_rvon v_rvon
2707 
2708 #define udef_vq_chcells vq_chcells
2709 
2710 #define udef_vq_curaddress vq_curaddress
2711 
2712 #define udef_vs_curaddress vs_curaddress
2713 
2714 #define udef_v_curaddress udef_vs_curaddress
2715 
2716 #ifdef FORCE_GEMLIB_UDEF
2717 #define v_bit_image udef_v_bit_image
2718 #define vm_filename udef_vm_filename
2719 #define v_alpha_text udef_v_alpha_text
2720 #define v_curtext udef_v_curtext
2721 #endif
2722 
2723 
2724 /*
2725  * inquiry functions
2726  */
2727 
2731 void vq_cellarray (VdiHdl , short pxy[], short row_len, short nrows,
2732  short *el_used, short *rows_used,
2733  short *status, short color[]);
2734 short vq_color (VdiHdl , short color_idx, short flag, short rgb[]);
2735 void vq_extnd (VdiHdl , short flag, short work_out[]);
2736 void vqf_attributes (VdiHdl , short atrib[]);
2737 void vqin_mode (VdiHdl , short dev, short *mode);
2738 void vql_attributes (VdiHdl , short atrib[]);
2739 void vqm_attributes (VdiHdl , short atrib[]);
2740 void vqt_attributes (VdiHdl , short atrib[]);
2741 void vqt_cachesize (VdiHdl , short which_cache, long *size);
2742 void vqt_extent (VdiHdl , const char *str, short extent[]);
2743 void vqt_extent16 (VdiHdl , const short *wstr, short extent[]);
2744 void vqt_extent16n (VdiHdl , const short *wstr, short num, short extent[]);
2745 void vqt_fontinfo (VdiHdl , short *minade, short *maxade, short distances[],
2746  short *maxwidth, short effects[]);
2747 void vqt_get_table (VdiHdl , short **map);
2748 short vqt_name (VdiHdl , short element, char *name);
2749 short vqt_width (VdiHdl , short chr, short *cw,
2750  short *ldelta, short *rdelta);
2752 short vq_gdos (void);
2753 
2755 long vq_vgdos (void);
2760 #define udef_vq_cellarray vq_cellarray
2761 
2762 #define udef_vq_color vq_color
2763 
2764 #define udef_vq_extnd vq_extnd
2765 
2766 #define udef_vqf_attributes vqf_attributes
2767 
2768 #define udef_vqin_mode vqin_mode
2769 
2770 #define udef_vql_attributes vql_attributes
2771 
2772 #define udef_vqm_attributes vqm_attributes
2773 
2774 #define udef_vqt_attributes vqt_attributes
2775 
2776 #define udef_vqt_cachesize vqt_cachesize
2777 
2778 void udef_vqt_extent (VdiHdl , const char *str, short extent[]);
2780 #define udef_vqt_extent16 vqt_extent16
2781 
2782 #define udef_vqt_extent16n vqt_extent16n
2783 
2784 #define udef_vqt_fontinfo vqt_fontinfo
2785 
2786 #define udef_vqt_get_table vqt_get_table
2787 
2788 #define udef_vqt_name vqt_name
2789 
2790 #define udef_vqt_width vqt_width
2791 
2792 #define udef_vq_gdos vq_gdos
2793 
2794 #define udef_vq_vgdos vq_vgdos
2795 
2796 #ifdef FORCE_GEMLIB_UDEF
2797 #define vqt_extent udef_vqt_extent
2798 #endif
2799 
2800 
2801 
2802 /*
2803  * input function
2804  */
2805 
2809 void v_hide_c (VdiHdl );
2810 void v_show_c (VdiHdl , short reset);
2811 void vex_butv (VdiHdl , void *pusrcode, void **psavcode);
2812 void vex_curv (VdiHdl , void *pusrcode, void **psavcode);
2813 void vex_motv (VdiHdl , void *pusrcode, void **psavcode);
2814 void vex_wheelv (VdiHdl , void *pusrcode, void **psavcode);
2815 void vex_timv (VdiHdl , void *time_addr,
2816  void **otime_addr, short *time_conv);
2817 void vq_key_s (VdiHdl , short *state);
2818 void vq_mouse (VdiHdl , short *pstatus, short *x, short *y);
2819 void vrq_choice (VdiHdl , short cin, short *cout);
2820 void vrq_locator (VdiHdl , short x, short y,
2821  short *xout, short *yout, short *term);
2822 void vrq_string (VdiHdl , short len, short echo, short echoxy[], char *str);
2823 void vrq_valuator (VdiHdl , short in, short *out, short *term);
2824 void vsc_form (VdiHdl , short form[]);
2825 short vsin_mode (VdiHdl , short dev, short mode);
2826 short vsm_choice (VdiHdl , short *choice);
2827 short vsm_locator (VdiHdl , short x, short y,
2828  short *xout, short *yout, short *term);
2829 short vsm_string (VdiHdl , short len, short echo, short echoxy[], char *str);
2830 void vsm_valuator (VdiHdl , short in, short *out, short *term, short *status);
2835 #define udef_v_hide_c v_hide_c
2836 
2837 #define udef_v_show_c v_show_c
2838 
2839 #define udef_vex_butv vex_butv
2840 
2841 #define udef_vex_curv vex_curv
2842 
2843 #define udef_vex_motv vex_motv
2844 
2845 #define udef_vex_wheelv vex_wheelv
2846 
2847 #define udef_vex_timv vex_timv
2848 
2849 #define udef_vq_key_s vq_key_s
2850 
2851 #define udef_vq_mouse vq_mouse
2852 
2853 #define udef_vrq_choice vrq_choice
2854 
2855 #define udef_vrq_locator vrq_locator
2856 
2857 void udef_vrq_string (VdiHdl , short len, short echo, short echoxy[], char *str);
2859 #define udef_vrq_valuator vrq_valuator
2860 
2861 #define udef_vsc_form vsc_form
2862 
2863 #define udef_vsin_mode vsin_mode
2864 
2865 #define udef_vsm_choice vsm_choice
2866 
2867 #define udef_vsm_locator vsm_locator
2868 
2869 short udef_vsm_string (VdiHdl , short len, short echo, short echoxy[], char *str);
2871 #define udef_vsm_valuator vsm_valuator
2872 
2873 
2874 #ifdef FORCE_GEMLIB_UDEF
2875 #define vrq_string udef_vrq_string
2876 #define vsm_string udef_vsm_string
2877 #endif
2878 
2879 
2880 
2881 /*
2882  * output functions
2883  */
2884 
2888 void v_arc (VdiHdl , short x, short y,
2889  short radius, short begang, short endang);
2890 void v_bar (VdiHdl , short pxy[]);
2891 void v_cellarray (VdiHdl , short pxy[], short row_length, short elements,
2892  short nrows, short write_mode, short colarray[]);
2893 void v_circle (VdiHdl , short x, short y, short radius);
2894 void v_contourfill (VdiHdl , short x, short y, short color_idx);
2895 void v_ellarc (VdiHdl , short x, short y, short xrad, short yrad,
2896  short begang, short endang);
2897 void v_ellipse (VdiHdl , short x, short y, short xrad, short yrad);
2898 void v_ellpie (VdiHdl , short x, short y, short xrad, short yrad,
2899  short begang, short endang);
2900 void v_fillarea (VdiHdl , short count, short pxy[]);
2901 void v_gtext (VdiHdl , short x, short y, const char *str);
2902 void v_gtext16 (VdiHdl , short x, short y, const short *wstr);
2903 void v_gtext16n (VdiHdl , PXY pos, const short *wstr, short num);
2904 void v_justified (VdiHdl , short x, short y, const char *str,
2905  short len, short word_space, short char_space);
2906 void v_justified16n (VdiHdl , short x, short y, const short * wstr, short num,
2907  short len, short word_space, short char_space);
2908 void v_pieslice (VdiHdl , short x, short y,
2909  short radius, short begang, short endang);
2910 void v_pline (VdiHdl , short count, short pxy[]);
2911 void v_pmarker (VdiHdl , short count, short pxy[]);
2912 void v_rbox (VdiHdl , short pxy[]);
2913 void v_rfbox (VdiHdl , short pxy[]);
2914 void vr_recfl (VdiHdl , short pxy[]);
2918 #define udef_v_arc v_arc
2919 
2920 #define udef_v_bar v_bar
2921 
2922 #define udef_v_cellarray v_cellarray
2923 
2924 #define udef_v_circle v_circle
2925 
2926 #define udef_v_contourfill v_contourfill
2927 
2928 #define udef_v_ellarc v_ellarc
2929 
2930 #define udef_v_ellipse v_ellipse
2931 
2932 #define udef_v_ellpie v_ellpie
2933 
2934 #define udef_v_fillarea v_fillarea
2935 
2936 void udef_v_gtext (VdiHdl , short x, short y, const char *str);
2938 #define udef_v_gtext16 v_gtext16
2939 
2940 #define udef_v_gtext16n v_gtext16n
2941 
2942 void udef_v_justified (VdiHdl , short x, short y, const char *str,
2943  short len, short word_space, short char_space);
2945 #define udef_v_justified16n v_justified16n
2946 
2947 #define udef_v_pieslice v_pieslice
2948 
2949 #define udef_v_pline v_pline
2950 
2951 #define udef_v_pmarker v_pmarker
2952 
2953 #define udef_v_rbox v_rbox
2954 
2955 #define udef_v_rfbox v_rfbox
2956 
2957 #define udef_vr_recfl vr_recfl
2958 
2959 
2960 #ifdef FORCE_GEMLIB_UDEF
2961 #define v_gtext udef_v_gtext
2962 #define v_justified udef_v_justified
2963 #endif
2964 
2965 
2966 /*
2967  * raster functions
2968  */
2969 
2973 void v_get_pixel (VdiHdl , short x, short y, short *pel, short *color_idx);
2974 void vr_trnfm (VdiHdl , MFDB *src, MFDB *dst);
2975 void vro_cpyfm (VdiHdl , short mode, short pxy[], MFDB *src, MFDB *dst);
2976 void vrt_cpyfm (VdiHdl , short mode, short pxy[], MFDB *src, MFDB *dst,
2977  short color[]);
2981 #define udef_v_get_pixel v_get_pixel
2982 
2983 #define udef_vr_trnfm vr_trnfm
2984 
2985 #define udef_vro_cpyfm vro_cpyfm
2986 
2987 #define udef_vrt_cpyfm vrt_cpyfm
2988 
2989 
2990 
2991 /*
2992  * Some usefull extensions.
2993  */
2994 
2998 void vdi_array2str (const short *src, char *des, short len);
2999 short vdi_str2array (const char *src, short *des);
3000 short vdi_str2array_n (const char *src, short *des, int nmax);
3001 short vdi_wstrlen (const short *wstr);
3004 /*
3005  * vdi trap interface
3006  */
3007 
3012 /* Array sizes in vdi control block as defined in NVDI 4 documentation */
3013 #define VDI_CNTRLMAX 15
3014 #define VDI_INTINMAX 1024
3015 #define VDI_INTOUTMAX 512
3016 #define VDI_PTSINMAX 1024
3017 #define VDI_PTSOUTMAX 256
3020 typedef struct
3021 {
3022  short *control;
3023  const short *intin;
3024  const short *ptsin;
3025  short *intout;
3026  short *ptsout;
3027 } VDIPB;
3028 
3030 void vdi (VDIPB *pb);
3034 #endif /* VDI */
3035 
3036 
3037 __END_DECLS
3038 
3039 #endif /* _MT_GEMLIB_H_ */
Definition: mt_gem.h:2084
struct rgb_1000 RGB1000
short mt_appl_yield(short *global_aes)
Definition: a_appl_yield.c:21
short mt_appl_init(short *global_aes)
Definition: a_appl_init.c:73
void v_output_window(VdiHdl, short *pxy)
Definition: v_output_window.c:28
short vq_gdos(void)
short VdiHdl
Definition: mt_gem.h:2340
long vq_vgdos(void)
struct mouse_form MFORM
void v_rvoff(VdiHdl)
Definition: v_rvoff.c:16
unsigned long stacksize
Definition: mt_gem.h:1001
short emo_kmeta
Definition: mt_gem.h:1825
Definition: mt_gem.h:1590
short bi_wb
Definition: mt_gem.h:1648
void __CDECL(* FSEL_CALLBACK)(short *msg)
Definition: mt_gem.h:1899
short rsh_nobs
Definition: mt_gem.h:1756
short mt_form_keybd(OBJECT *, short Kobject, short Kobnext, short Kchar, short *Knxtobject, short *Knxtchar, short *global_aes)
Definition: a_form_keybd.c:129
short mt_wind_open(short WindowHandle, short Wx, short Wy, short Ww, short Wh, short *global_aes)
Definition: a_wind_open.c:31
void v_rbox(VdiHdl, short pxy[])
Definition: v_rbox.c:17
void vq_extnd(VdiHdl, short flag, short work_out[])
Definition: vq_extnd.c:119
short mt_scrp_write(const char *Scrappath, short *global_aes)
Definition: a_scrp_write.c:29
void udef_v_gtext(VdiHdl, short x, short y, const char *str)
Definition: u_v_gtext.c:13
short mt_wind_xcreate(short Parts, short Wx, short Wy, short Ww, short Wh, short *OutX, short *OutY, short *OutW, short *OutH, short *global_aes)
Definition: a_wind_xcreate.c:78
short * global
Definition: mt_gem.h:2087
short mt_objc_order(OBJECT *, short Object, short NewPos, short *global_aes)
Definition: a_objc_order.c:31
void vrq_choice(VdiHdl, short cin, short *cout)
Definition: vrq_choice.c:18
short mt_appl_bvset(short bvdisk, short bvhard, short *global_aes)
Definition: a_appl_bvset.c:21
short mt_wind_get(short WindowHandle, short What, short *W1, short *W2, short *W3, short *W4, short *global_aes)
Definition: a_wind_get.c:315
short g_y
Definition: mt_gem.h:1593
long index
Definition: mt_gem.h:1691
Definition: mt_gem.h:1784
unsigned short ob_state
Definition: mt_gem.h:1710
Definition: mt_gem.h:1744
short m_h
Definition: mt_gem.h:1790
void vqt_extent(VdiHdl, const char *str, short extent[])
Definition: vqt_extent.c:25
short bi_x
Definition: mt_gem.h:1650
struct user_block * userblk
Definition: mt_gem.h:1698
void vst_alignment(VdiHdl, short hin, short vin, short *hout, short *vout)
Definition: vst_alignment.c:33
Definition: mt_gem.h:1674
void vqt_cachesize(VdiHdl, short which_cache, long *size)
Definition: vqt_cachesize.c:18
Definition: mt_gem.h:1600
short vsf_perimeter(VdiHdl, short vis)
Definition: vsf_perimeter.c:31
short ob_height
Definition: mt_gem.h:1715
Definition: mt_gem.h:1537
short te_font
Definition: mt_gem.h:1615
short vswr_mode(VdiHdl, short mode)
Definition: vswr_mode.c:33
short mt_form_dial(short Flag, short Sx, short Sy, short Sw, short Sh, short Bx, short By, short Bw, short Bh, short *global_aes)
Definition: a_form_dial.c:57
void vex_curv(VdiHdl, void *pusrcode, void **psavcode)
Definition: vex_curv.c:28
short mt_graf_handle(short *Wchar, short *Hchar, short *Wbox, short *Hbox, short *global_aes)
Definition: a_graf_handle.c:38
void v_show_c(VdiHdl, short reset)
Definition: v_show_c.c:23
short * ib_pmask
Definition: mt_gem.h:1628
short g_h
Definition: mt_gem.h:1595
short mn_keystate
Definition: mt_gem.h:1780
ICONBLK monoblk
Definition: mt_gem.h:1669
void vsc_form(VdiHdl, short form[])
Definition: vsc_form.c:27
struct cicon_data * next_res
Definition: mt_gem.h:1663
short vsl_color(VdiHdl, short color_idx)
Definition: vsl_color.c:19
short ob_tail
Definition: mt_gem.h:1707
short mt_fsel_input(char *path, char *file, short *exit_button, short *global)
Definition: a_fsel_input.c:25
void v_pieslice(VdiHdl, short x, short y, short radius, short begang, short endang)
Definition: v_pieslice.c:22
unsigned short ob_type
Definition: mt_gem.h:1708
short ib_ychar
Definition: mt_gem.h:1633
short m_out
Definition: mt_gem.h:1786
void vt_alignment(VdiHdl, short dx, short dy)
Definition: vt_alignment.c:23
short v_loadcache(VdiHdl, const char *filename, short mode)
Definition: v_loadcache.c:24
void v_dspcur(VdiHdl, short x, short y)
Definition: v_dspcur.c:31
short mt_objc_delete(OBJECT *, short Object, short *global_aes)
Definition: a_objc_delete.c:27
short vq_tray_names(VdiHdl, char *input_name, char *output_name, short *input, short *output)
Definition: vq_tray_names.c:24
void vt_origin(VdiHdl, short xorigin, short yorigin)
Definition: vt_origin.c:22
short vsm_type(VdiHdl, short symbol)
Definition: vsm_type.c:30
void vq_mouse(VdiHdl, short *pstatus, short *x, short *y)
Definition: vq_mouse.c:21
long delay
Definition: mt_gem.h:931
short te_thickness
Definition: mt_gem.h:1620
void v_curhome(VdiHdl)
Definition: v_curhome.c:16
void v_opnvwk(short work_in[], VdiHdl *, short work_out[])
Definition: v_opnvwk.c:24
void vq_tdimensions(VdiHdl, short *xdimension, short *ydimension)
Definition: vq_tdimensions.c:24
short mt_wind_xget_grect(short WindowHandle, short What, const GRECT *clip, GRECT *r, short *global_aes)
Definition: a_wind_xget_grect.c:25
long speed
Definition: mt_gem.h:932
short ib_char
Definition: mt_gem.h:1631
void vq_key_s(VdiHdl, short *state)
Definition: vq_key_s.c:25
short rsh_nbb
Definition: mt_gem.h:1760
struct object OBJECT
short mt_scrp_read(char *Scrappath, short *global_aes)
Definition: a_scrp_read.c:57
short v_savecache(VdiHdl, const char *filename)
Definition: v_savecache.c:23
void v_hardcopy(VdiHdl)
Definition: v_hardcopy.c:19
void v_write_meta(VdiHdl, short numvdi_intin, short *avdi_intin, short num_ptsin, short *a_ptsin)
Definition: v_write_meta.c:23
const short * intin
Definition: mt_gem.h:2088
Definition: mt_gem.h:977
short mt_form_center_grect(OBJECT *, GRECT *r, short *global_aes)
Definition: a_form_center_grect.c:21
void udef_vst_error(VdiHdl, short mode, short *errorvar)
Definition: u_vst_error.c:13
short fd_h
Definition: mt_gem.h:2315
short mt_form_alert(short DefButton, const char *Str, short *global_aes)
Definition: a_form_alert.c:50
Definition: mt_gem.h:1737
short mt_evnt_timer(unsigned long Interval, short *global_aes)
Definition: a_evnt_timer.c:29
short mt_appl_find(const char *name, short *global_aes)
Definition: a_appl_find.c:39
Definition: mt_gem.h:943
short mt_wind_xcreate_grect(short Parts, const GRECT *r, GRECT *ret, short *global_aes)
Definition: a_wind_xcreate_grect.c:19
short bi_color
Definition: mt_gem.h:1652
void v_arc(VdiHdl, short x, short y, short radius, short begang, short endang)
Definition: v_arc.c:22
short emi_flags
Definition: mt_gem.h:1805
short mt_shel_wdef(const char *lpcmd, const char *lpdir, short *global_aes)
Definition: a_shel_wdef.c:25
short mt_menu_unregister(short id, short *global)
Definition: a_menu_unregister.c:22
short emo_events
Definition: mt_gem.h:1822
struct pEvntrec EVNTREC
struct graphic_rectangle GRECT
short pb_wc
Definition: mt_gem.h:1731
short mt_wind_create_grect(short Parts, const GRECT *r, short *global_aes)
Definition: a_wind_create_grect.c:18
void v_enter_cur(VdiHdl)
Definition: v_enter_cur.c:17
void v_alpha_text(VdiHdl, const char *str)
Definition: v_alpha_text.c:21
const long * addrin
Definition: mt_gem.h:2090
struct _mn_set MN_SET
long ub_parm
Definition: mt_gem.h:1740
short mt_appl_read(short ap_id, short length, void *ap_pbuff, short *global_aes)
Definition: a_appl_read.c:40
TEDINFO * tedinfo
Definition: mt_gem.h:1694
void v_clsvwk(VdiHdl)
Definition: v_clsvwk.c:16
short fd_r3
Definition: mt_gem.h:2321
void vm_filename(VdiHdl, const char *filename)
Definition: vm_filename.c:27
short green
Definition: mt_gem.h:2328
short mt_fsel_exinput(char *path, char *file, short *exit_button, const char *title, short *global)
Definition: a_fsel_exinput.c:50
void vq_chcells(VdiHdl, short *n_rows, short *n_cols)
Definition: vq_chcells.c:23
short blue
Definition: mt_gem.h:2329
void v_bit_image(VdiHdl, const char *filename, short aspect, short x_scale, short y_scale, short h_align, short v_align, short *pxy)
Definition: v_bit_image.c:37
void vex_wheelv(VdiHdl, void *pusrcode, void **psavcode)
Definition: vex_wheelv.c:25
void v_curright(VdiHdl)
Definition: v_curright.c:17
short vsin_mode(VdiHdl, short dev, short mode)
Definition: vsin_mode.c:26
short rsh_vrsn
Definition: mt_gem.h:1746
short ib_ytext
Definition: mt_gem.h:1639
void v_pmarker(VdiHdl, short count, short pxy[])
Definition: v_pmarker.c:18
short * grect_to_array(const GRECT *area, short *array)
Definition: rc_grect_to_array.c:19
short mt_shel_put(const char *Buf, short Len, short *global_aes)
Definition: a_shel_put.c:30
void vex_timv(VdiHdl, void *time_addr, void **otime_addr, short *time_conv)
Definition: vex_timv.c:24
short mt_appl_tplay(void *mem, short num, short scale, short *global_aes)
Definition: a_appl_tplay.c:57
char * te_ptmplt
Definition: mt_gem.h:1613
char * env
Definition: mt_gem.h:983
short mt_wind_get_grect(short WindowHandle, short What, GRECT *r, short *global_aes)
Definition: a_wind_get_grect.c:20
short rsh_nstring
Definition: mt_gem.h:1761
short pb_hc
Definition: mt_gem.h:1732
long flags
Definition: mt_gem.h:984
short te_just
Definition: mt_gem.h:1617
const short * ptsin
Definition: mt_gem.h:3024
short ib_htext
Definition: mt_gem.h:1641
void vs_curaddress(VdiHdl, short row, short col)
Definition: vs_curaddress.c:24
void vqt_attributes(VdiHdl, short atrib[])
Definition: vqt_attributes.c:29
short ib_wtext
Definition: mt_gem.h:1640
short height
Definition: mt_gem.h:933
void v_eeos(VdiHdl)
Definition: v_eeos.c:16
void vex_butv(VdiHdl, void *pusrcode, void **psavcode)
Definition: vex_butv.c:22
void v_clear_disp_list(VdiHdl)
Definition: v_clear_disp_list.c:21
short mt_appl_control(short ap_cid, short ap_cwhat, void *ap_cout, short *global_aes)
Definition: a_appl_control.c:98
void v_exit_cur(VdiHdl)
Definition: v_exit_cur.c:16
void v_bar(VdiHdl, short pxy[])
Definition: v_bar.c:18
short vsf_xperimeter(VdiHdl, short vis, short style)
Definition: vsf_xperimeter.c:29
short mf_bg
Definition: mt_gem.h:1564
short vqt_width(VdiHdl, short chr, short *cw, short *ldelta, short *rdelta)
Definition: vqt_width.c:34
short vst_point(VdiHdl, short point, short *charw, short *charh, short *cellw, short *cellh)
Definition: vst_point.c:30
void udef_v_bit_image(VdiHdl, const char *filename, short aspect, short x_scale, short y_scale, short h_align, short v_align, short *pxy)
Definition: u_v_bit_image.c:13
short emo_mbutton
Definition: mt_gem.h:1824
short mt_form_do(OBJECT *, short StartObj, short *global_aes)
Definition: a_form_do.c:34
short mn_menu
Definition: mt_gem.h:1770
void udef_vqt_extent(VdiHdl, const char *str, short extent[])
Definition: u_vqt_extent.c:13
short mt_graf_mkstate(short *Mx, short *My, short *ButtonState, short *KeyState, short *global_aes)
Definition: a_graf_mkstate.c:37
short mt_menu_ienable(OBJECT *me_tree, short me_item, short me_enable, short *global)
Definition: a_menu_ienable.c:32
long res1
Definition: mt_gem.h:1003
short fd_w
Definition: mt_gem.h:2314
short mf_nplanes
Definition: mt_gem.h:1554
short mt_graf_slidebox(OBJECT *, short Parent, short Object, short Direction, short *global_aes)
Definition: a_graf_slidebox.c:40
void vdi_array2str(const short *src, char *des, short len)
Definition: vdi_array2str.c:20
ICONBLK * iconblk
Definition: mt_gem.h:1696
void aes(AESPB *pb)
short vdi_wstrlen(const short *wstr)
Definition: vdi_wstrlen.c:17
short mt_shel_find(char *buf, short *global_aes)
Definition: a_shel_find.c:27
void vt_axis(VdiHdl, short xres, short yres, short *xset, short *yset)
Definition: vt_axis.c:28
long ap_event
Definition: mt_gem.h:154
Definition: mt_gem.h:2311
void vqt_get_table(VdiHdl, short **map)
Definition: vqt_get_table.c:20
OBSPEC ob_spec
Definition: mt_gem.h:1711
short mt_graf_shrinkbox(short Fx, short Fy, short Fw, short Fh, short Sx, short Sy, short Sw, short Sh, short *global_aes)
Definition: a_graf_shrinkbox.c:36
unsigned short rsh_bitblk
Definition: mt_gem.h:1750
unsigned short rsh_tedinfo
Definition: mt_gem.h:1748
unsigned fillc
Definition: mt_gem.h:1606
void vqt_extent16(VdiHdl, const short *wstr, short extent[])
Definition: vqt_extent16.c:16
short vsm_string(VdiHdl, short len, short echo, short echoxy[], char *str)
Definition: vsm_string.c:27
Definition: mt_gem.h:1689
short mt_menu_register(short ap_id, char *me_text, short *global)
Definition: a_menu_register.c:48
void vst_unload_fonts(VdiHdl, short)
Definition: vst_unload_fonts.c:30
short mt_menu_popup(MENU *me_menu, short me_xpos, short me_ypos, MENU *me_mdata, short *global)
Definition: a_menu_popup.c:37
short vst_rotation(VdiHdl, short ang)
Definition: vst_rotation.c:24
short bi_y
Definition: mt_gem.h:1651
struct cicon_blk CICONBLK
short g_x
Definition: mt_gem.h:1592
Definition: mt_gem.h:1703
short emo_kreturn
Definition: mt_gem.h:1826
Definition: mt_gem.h:1667
short mf_yhot
Definition: mt_gem.h:1549
short mt_form_button(OBJECT *, short Bobject, short Bclicks, short *Bnxtobj, short *global_aes)
Definition: a_form_button.c:43
short * col_mask
Definition: mt_gem.h:1660
void vqm_attributes(VdiHdl, short atrib[])
Definition: vqm_attributes.c:22
short isfirst
Definition: mt_gem.h:1016
void v_gtext16(VdiHdl, short x, short y, const short *wstr)
Definition: v_gtext16.c:19
void v_curdown(VdiHdl)
Definition: v_curdown.c:17
void v_ellipse(VdiHdl, short x, short y, short xrad, short yrad)
Definition: v_ellipse.c:20
short ob_next
Definition: mt_gem.h:1705
short fd_stand
Definition: mt_gem.h:2317
void vsf_udpat(VdiHdl, short pat[], short planes)
Definition: vsf_udpat.c:40
short mt_wind_close(short WindowHandle, short *global_aes)
Definition: a_wind_close.c:30
struct _menu MENU
short mt_graf_wwatchbox(OBJECT *, short Object, short InState, short OutState, short whandle, short *global_aes)
Definition: a_graf_wwatchbox.c:37
short bi_hl
Definition: mt_gem.h:1649
void v_rmcur(VdiHdl)
Definition: v_rmcur.c:16
short mt_menu_settings(short me_flag, MN_SET *me_values, short *global)
Definition: a_menu_settings.c:31
void vdi(VDIPB *pb)
void v_ellpie(VdiHdl, short x, short y, short xrad, short yrad, short begang, short endang)
Definition: v_ellpie.c:23
short mt_shel_envrn(char **result, const char *param, short *global_aes)
Definition: a_shel_envrn.c:35
void udef_vm_filename(VdiHdl, const char *filename)
Definition: u_vm_filename.c:13
void v_gtext16n(VdiHdl, PXY pos, const short *wstr, short num)
Definition: v_gtext16n.c:19
Definition: mt_gem.h:1794
short mt_objc_offset(OBJECT *, short Object, short *X, short *Y, short *global_aes)
Definition: a_objc_offset.c:40
short vsl_width(VdiHdl, short width)
Definition: vsl_width.c:33
short ib_hicon
Definition: mt_gem.h:1637
short mt_rsrc_gaddr(short Type, short Index, void *Address, short *global_aes)
Definition: a_rsrc_gaddr.c:48
union obspecptr OBSPEC
unsigned textc
Definition: mt_gem.h:1603
short mt_graf_xhandle(short *Wchar, short *Hchar, short *Wbox, short *Hbox, short *device, short *global_aes)
Definition: a_graf_xhandle.c:44
short vsm_locator(VdiHdl, short x, short y, short *xout, short *yout, short *term)
Definition: vsm_locator.c:26
char * ib_ptext
Definition: mt_gem.h:1630
short * control
Definition: mt_gem.h:2086
short g_w
Definition: mt_gem.h:1594
short mt_objc_draw(OBJECT *, short Start, short Depth, short Cx, short Cy, short Cw, short Ch, short *global_aes)
Definition: a_objc_draw.c:34
Definition: mt_gem.h:1767
short vsm_height(VdiHdl, short height)
Definition: vsm_height.c:24
union obspecptr * indirect
Definition: mt_gem.h:1692
short mt_wind_draw(short WindowHandle, short startob, short *global_aes)
Definition: a_wind_draw.c:25
short dummy
Definition: mt_gem.h:1009
short mt_rsrc_obfix(OBJECT *, short Index, short *global_aes)
Definition: a_rsrc_obfix.c:29
short ob_x
Definition: mt_gem.h:1712
short mt_appl_exit(short *global_aes)
Definition: a_appl_exit.c:22
void vq_scan(VdiHdl, short *g_slice, short *g_page, short *a_slice, short *a_page, short *div_fac)
Definition: vq_scan.c:30
void v_rfbox(VdiHdl, short pxy[])
Definition: v_rfbox.c:17
void vt_resolution(VdiHdl, short xres, short yres, short *xset, short *yset)
Definition: vt_resolution.c:26
short mt_graf_watchbox(OBJECT *, short Object, short InState, short OutState, short *global_aes)
Definition: a_graf_watchbox.c:39
short ib_yicon
Definition: mt_gem.h:1635
short vsf_color(VdiHdl, short color_idx)
Definition: vsf_color.c:21
void udef_v_alpha_text(VdiHdl, const char *str)
Definition: u_v_alpha_text.c:12
short mt_objc_change(OBJECT *, short Object, short Res, short Cx, short Cy, short Cw, short Ch, short NewState, short Redraw, short *global_aes)
Definition: a_objc_change.c:39
short mt_wind_xset_grect(short WindowHandle, short What, const GRECT *s, GRECT *r, short *global_aes)
Definition: a_wind_xset_grect.c:29
short m_y
Definition: mt_gem.h:1788
void v_curleft(VdiHdl)
Definition: v_curleft.c:17
void v_rvon(VdiHdl)
Definition: v_rvon.c:16
void vm_coords(VdiHdl, short llx, short lly, short urx, short ury)
Definition: vm_coords.c:20
struct rshdr RSHDR
void v_clrwk(VdiHdl)
Definition: v_clrwk.c:22
void udef_v_justified(VdiHdl, short x, short y, const char *str, short len, short word_space, short char_space)
Definition: u_v_justified.c:13
OBJECT * mn_tree
Definition: mt_gem.h:1769
short vqp_filmname(VdiHdl, short _index, char *name)
Definition: vqp_filmname.c:23
short emi_bmask
Definition: mt_gem.h:1807
short mode
Definition: mt_gem.h:1002
short v_page_size(VdiHdl, short page_id)
Definition: v_page_size.c:35
Definition: mt_gem.h:1007
short ib_xicon
Definition: mt_gem.h:1634
short mf_xhot
Definition: mt_gem.h:1543
short vst_color(VdiHdl, short color_idx)
Definition: vst_color.c:19
void vsp_film(VdiHdl, short color_idx, short lightness)
Definition: vsp_film.c:22
short * ib_pdata
Definition: mt_gem.h:1629
unsigned short rsh_iconblk
Definition: mt_gem.h:1749
short v_flushcache(VdiHdl)
Definition: v_flushcache.c:22
short rsh_nib
Definition: mt_gem.h:1759
long nice
Definition: mt_gem.h:981
short rsh_nted
Definition: mt_gem.h:1758
short mt_evnt_multi_fast(const EVMULT_IN *em_i, short MesagBuf[], EVMULT_OUT *em_o, short *global_aes)
Definition: a_evnt_multi_fast.c:28
short mt_graf_multirubber(short bx, short by, short mw, short mh, GRECT *rec, short *rw, short *rh, short *global_aes)
Definition: a_graf_multirubber.c:42
void vrt_cpyfm(VdiHdl, short mode, short pxy[], MFDB *src, MFDB *dst, short color[])
Definition: vrt_cpyfm.c:38
void vst_scratch(VdiHdl, short mode)
Definition: vst_scratch.c:23
struct memory_form MFDB
short vst_effects(VdiHdl, short effects)
Definition: vst_effects.c:26
short uid
Definition: mt_gem.h:969
short mt_objc_add(OBJECT *, short Parent, short Child, short *global)
Definition: a_objc_add.c:30
char * env
Definition: mt_gem.h:965
short vs_mute(VdiHdl, short action)
Definition: vs_mute.c:23
unsigned borderc
Definition: mt_gem.h:1602
short * control
Definition: mt_gem.h:3022
unsigned short ob_flags
Definition: mt_gem.h:1709
short udef_vsm_string(VdiHdl, short len, short echo, short echoxy[], char *str)
Definition: u_vsm_string.c:14
unsigned short rsh_object
Definition: mt_gem.h:1747
unsigned short rsh_string
Definition: mt_gem.h:1752
void vqt_fontinfo(VdiHdl, short *minade, short *maxade, short distances[], short *maxwidth, short effects[])
Definition: vqt_fontinfo.c:37
void v_meta_extents(VdiHdl, short min_x, short min_y, short max_x, short max_y)
Definition: v_meta_extents.c:30
void udef_v_curtext(VdiHdl, const char *str)
Definition: u_v_curtext.c:13
void vqt_extent16n(VdiHdl, const short *wstr, short num, short extent[])
Definition: vqt_extent16n.c:17
long * addrout
Definition: mt_gem.h:2091
short * bi_pdata
Definition: mt_gem.h:1647
short mt_shel_read(char *Command, char *Tail, short *global_aes)
Definition: a_shel_read.c:25
struct parm_block PARMBLK
void udef_vrq_string(VdiHdl, short len, short echo, short echoxy[], char *str)
Definition: u_vrq_string.c:13
short rc_intersect(const GRECT *src, GRECT *dst)
Definition: rc_intersect.c:24
short * y
Definition: mt_gem.h:1797
short gid
Definition: mt_gem.h:973
short mt_objc_sysvar(short mode, short which, short in1, short in2, short *out1, short *out2, short *global_aes)
Definition: a_objc_sysvar.c:72
void vm_pagesize(VdiHdl, short pgwidth, short pgheight)
Definition: vm_pagesize.c:19
unsigned short rsh_frimg
Definition: mt_gem.h:1754
void v_fillarea(VdiHdl, short count, short pxy[])
Definition: v_fillarea.c:31
short vsf_style(VdiHdl, short style)
Definition: vsf_style.c:27
Definition: mt_gem.h:2325
short rsh_ntree
Definition: mt_gem.h:1757
short vsm_color(VdiHdl, short color_idx)
Definition: vsm_color.c:20
short emi_m1leave
Definition: mt_gem.h:1809
short mt_menu_icheck(OBJECT *me_tree, short me_item, short me_check, short *global)
Definition: a_menu_icheck.c:25
long magic
Definition: mt_gem.h:1010
short mt_graf_growbox_grect(const GRECT *in, const GRECT *out, short *global_aes)
Definition: a_graf_growbox_grect.c:21
void v_ellarc(VdiHdl, short x, short y, short xrad, short yrad, short begang, short endang)
Definition: v_ellarc.c:25
short red
Definition: mt_gem.h:2327
short mt_objc_xfind(OBJECT *, short Start, short Depth, short Mx, short My, short *global_aes)
Definition: a_objc_xfind.c:34
void v_contourfill(VdiHdl, short x, short y, short color_idx)
Definition: v_contourfill.c:20
short emi_bclicks
Definition: mt_gem.h:1806
short mt_appl_trecord(void *mem, short count, short *global_aes)
Definition: a_appl_trecord.c:36
short num_planes
Definition: mt_gem.h:1658
short ib_wicon
Definition: mt_gem.h:1636
void v_offset(VdiHdl, short offset)
Definition: v_offset.c:20
struct cicon_data CICON
short te_fontid
Definition: mt_gem.h:1616
short m_w
Definition: mt_gem.h:1789
short vst_load_fonts(VdiHdl, short)
Definition: vst_load_fonts.c:23
void * fd_addr
Definition: mt_gem.h:2313
Definition: mt_gem.h:1580
long pb_parm
Definition: mt_gem.h:1733
char * newcmd
Definition: mt_gem.h:948
short pb_x
Definition: mt_gem.h:1725
Definition: mt_gem.h:3020
short mt_menu_bar(OBJECT *me_tree, short me_mode, short *global)
Definition: a_menu_bar.c:53
long prenice
Definition: mt_gem.h:956
GRECT * array_to_grect(const short *array, GRECT *area)
Definition: rc_array_to_grect.c:19
short mt_evnt_mesag(short MesagBuf[], short *global_aes)
Definition: a_evnt_mesag.c:61
short vs_calibrate(VdiHdl, short flag, short *rgb)
Definition: vs_calibrate.c:28
short mt_evnt_keybd(short *global_aes)
Definition: a_evnt_keybd.c:36
short mt_form_center(OBJECT *, short *Cx, short *Cy, short *Cw, short *Ch, short *global_aes)
Definition: a_form_center.c:35
void vst_height(VdiHdl, short height, short *charw, short *charh, short *cellw, short *cellh)
Definition: vst_height.c:43
short mt_shel_get(char *Buf, short Len, short *global_aes)
Definition: a_shel_get.c:36
Definition: mt_gem.h:1719
unsigned pattern
Definition: mt_gem.h:1605
short vsf_interior(VdiHdl, short style)
Definition: vsf_interior.c:29
short mt_form_error(short ErrorCode, short *global_aes)
Definition: a_form_error.c:70
short rc_equal(const GRECT *r1, const GRECT *r2)
Definition: rc_equal.c:18
short mt_wind_update(short Code, short *global_aes)
Definition: a_wind_update.c:73
GRECT emi_m1
Definition: mt_gem.h:1810
short mt_rsrc_saddr(short Type, short Index, void *Address, short *global_aes)
Definition: a_rsrc_saddr.c:32
unsigned short rsh_trindex
Definition: mt_gem.h:1755
short __CDECL(* ub_code)(PARMBLK *parmblock)
Definition: mt_gem.h:1739
short rc_copy(const GRECT *src, GRECT *dst)
Definition: rc_copy.c:17
short mn_item
Definition: mt_gem.h:1771
short mt_wind_delete(short WindowHandle, short *global_aes)
Definition: a_wind_delete.c:25
short fd_r2
Definition: mt_gem.h:2320
short pb_currstate
Definition: mt_gem.h:1724
char * command
Definition: mt_gem.h:979
short mt_shel_write(short Exit, short Graphic, short Aes, void *Command, char *Tail, short *global_aes)
Definition: a_shel_write.c:328
void vro_cpyfm(VdiHdl, short mode, short pxy[], MFDB *src, MFDB *dst)
Definition: vro_cpyfm.c:57
short mt_shel_help(short sh_hmode, const char *sh_hfile, const char *sh_hkey, short *global_aes)
Definition: a_shel_help.c:32
short v_trays(VdiHdl, short input, short output, short *set_input, short *set_output)
Definition: v_trays.c:37
void v_gtext(VdiHdl, short x, short y, const char *str)
Definition: v_gtext.c:25
Definition: mt_gem.h:927
short mt_appl_search(short mode, char *fname, short *type, short *ap_id, short *global_aes)
Definition: a_appl_search.c:54
short mt_graf_mbox(short Sw, short Sh, short Sx, short Sy, short Dx, short Dy, short *global_aes)
Definition: a_graf_mbox.c:32
short mt_graf_shrinkbox_grect(const GRECT *in, const GRECT *out, short *global_aes)
Definition: a_graf_shrinkbox_grect.c:21
short mt_wind_find(short X, short Y, short *global_aes)
Definition: a_wind_find.c:26
short p_x
Definition: mt_gem.h:1582
CICON * mainlist
Definition: mt_gem.h:1670
void vql_attributes(VdiHdl, short atrib[])
Definition: vql_attributes.c:23
Definition: mt_gem.h:1610
short mt_wind_set_str(short WindowHandle, short What, const char *str, short *global_aes)
Definition: a_wind_set_str.c:23
short emi_bstate
Definition: mt_gem.h:1808
short emo_mclicks
Definition: mt_gem.h:1827
struct objc_colorword OBJC_COLORWORD
short pb_yc
Definition: mt_gem.h:1730
short vq_page_name(VdiHdl, short page_id, char *page_name, long *page_width, long *page_height)
Definition: vq_page_name.c:28
short pb_w
Definition: mt_gem.h:1727
void v_sound(VdiHdl, short freq, short duration)
Definition: v_sound.c:19
void vs_color(VdiHdl, short color_idx, short rgb[])
Definition: vs_color.c:39
short mt_graf_rubberbox(short Ix, short Iy, short Iw, short Ih, short *Fw, short *Fh, short *global_aes)
Definition: a_graf_rubbox.c:42
short vq_tabstatus(VdiHdl)
Definition: vq_tabstatus.c:22
long lasterr
Definition: mt_gem.h:1024
Definition: mt_gem.h:1821
short ob_y
Definition: mt_gem.h:1713
short mt_rsrc_load(const char *Name, short *global_aes)
Definition: a_rsrc_load.c:27
void vr_trnfm(VdiHdl, MFDB *src, MFDB *dst)
Definition: vr_trnfm.c:20
short v_orient(VdiHdl, short orientation)
Definition: v_orient.c:32
short vdi_str2array_n(const char *src, short *des, int nmax)
Definition: vdi_str2array.c:41
short fd_r1
Definition: mt_gem.h:2319
const short * intin
Definition: mt_gem.h:3023
char * te_ptext
Definition: mt_gem.h:1612
short pb_xc
Definition: mt_gem.h:1729
void v_curtext16n(VdiHdl, const short *wstr, short num)
Definition: v_curtext16n.c:15
short mt_menu_text(OBJECT *me_tree, short me_item, char *me_text, short *global)
Definition: a_menu_text.c:23
short wasgr
Definition: mt_gem.h:1025
short vsl_type(VdiHdl, short style)
Definition: vsl_type.c:29
void v_form_adv(VdiHdl)
Definition: v_form_adv.c:21
short mt_wind_open_grect(short WindowHandle, const GRECT *r, short *global_aes)
Definition: a_wind_open_grect.c:18
short mt_objc_draw_grect(OBJECT *, short Start, short Depth, const GRECT *r, short *global_aes)
Definition: a_objc_draw_grect.c:23
short ib_xtext
Definition: mt_gem.h:1638
void vrq_valuator(VdiHdl, short in, short *out, short *term)
Definition: vrq_valuator.c:40
short fd_nplanes
Definition: mt_gem.h:2318
short mt_wind_set(short WindowHandle, short What, short W1, short W2, short W3, short W4, short *global_aes)
Definition: a_wind_set.c:313
BFOBSPEC obspec
Definition: mt_gem.h:1693
PXY emo_mouse
Definition: mt_gem.h:1823
short udef_v_savecache(VdiHdl, const char *filename)
Definition: u_v_savecache.c:13
short pb_h
Definition: mt_gem.h:1728
void vq_cellarray(VdiHdl, short pxy[], short row_len, short nrows, short *el_used, short *rows_used, short *status, short color[])
Definition: vq_cellarray.c:37
void v_circle(VdiHdl, short x, short y, short radius)
Definition: v_circle.c:19
void v_cellarray(VdiHdl, short pxy[], short row_length, short elements, short nrows, short write_mode, short colarray[])
Definition: v_cellarray.c:45
short mt_objc_edit(OBJECT *, short Object, short Char, short *Index, short Kind, short *global_aes)
Definition: a_objc_edit.c:44
unsigned opaque
Definition: mt_gem.h:1604
short vq_color(VdiHdl, short color_idx, short flag, short rgb[])
Definition: vq_color.c:32
Definition: mt_gem.h:1645
long psetlimit
Definition: mt_gem.h:952
short mt_evnt_dclick(short ToSet, short SetGet, short *global_aes)
Definition: a_evnt_dclick.c:33
void * user_stack
Definition: mt_gem.h:995
void v_opnwk(short work_in[], VdiHdl *, short work_out[])
Definition: v_opnwk.c:127
short p_y
Definition: mt_gem.h:1583
short mt_menu_attach(short me_flag, OBJECT *me_tree, short me_item, MENU *me_mdata, short *global)
Definition: a_menu_attach.c:81
unsigned short rsh_frstr
Definition: mt_gem.h:1751
struct bit_block BITBLK
char * defdir
Definition: mt_gem.h:982
short te_tmplen
Definition: mt_gem.h:1622
short mt_rsrc_free(short *global_aes)
Definition: a_rsrc_free.c:23
short pb_y
Definition: mt_gem.h:1726
short vst_font(VdiHdl, short font)
Definition: vst_font.c:20
short * sel_data
Definition: mt_gem.h:1661
void vqin_mode(VdiHdl, short dev, short *mode)
Definition: vqin_mode.c:18
short ob_width
Definition: mt_gem.h:1714
short * sel_mask
Definition: mt_gem.h:1662
short mt_shel_rdef(char *lpcmd, char *lpdir, short *global_aes)
Definition: a_shel_rdef.c:25
short mt_wind_new(short *global_aes)
Definition: a_wind_new.c:27
short mt_objc_find(OBJECT *, short Start, short Depth, short Mx, short My, short *global_aes)
Definition: a_objc_find.c:30
short mt_appl_write(short ap_id, short length, void *ap_pbuff, short *global_aes)
Definition: a_appl_write.c:38
short mt_rsrc_rcfix(void *rc_header, short *global_aes)
Definition: a_rsrc_rcfix.c:31
void v_curup(VdiHdl)
Definition: v_curup.c:17
long display
Definition: mt_gem.h:929
void vsl_ends(VdiHdl, short begstyle, short endstyle)
Definition: vsl_ends.c:25
void v_curtext(VdiHdl, const char *str)
Definition: v_curtext.c:18
void v_alpha_text16n(VdiHdl, const short *wstr, short num)
Definition: v_alpha_text16n.c:18
short mt_scrp_clear(short *global_aes)
Definition: a_scrp_clear.c:23
short mt_menu_tnormal(OBJECT *me_tree, short me_item, short me_normal, short *global)
Definition: a_menu_tnormal.c:27
short * col_data
Definition: mt_gem.h:1659
void v_justified16n(VdiHdl, short x, short y, const short *wstr, short num, short len, short word_space, short char_space)
Definition: v_justified16n.c:25
short te_fontsize
Definition: mt_gem.h:1619
Definition: mt_gem.h:988
void v_pline(VdiHdl, short count, short pxy[])
Definition: v_pline.c:18
short vdi_str2array(const char *src, short *des)
Definition: vdi_str2array.c:17
void vrq_string(VdiHdl, short len, short echo, short echoxy[], char *str)
Definition: vrq_string.c:24
short emi_thigh
Definition: mt_gem.h:1814
short vsm_choice(VdiHdl, short *choice)
Definition: vsm_choice.c:19
void vs_clip_pxy(VdiHdl, PXY pxy[])
Definition: vs_clip_pxy.c:15
struct mouse_event_type MOUSE_EVENT
struct text_edinfo TEDINFO
short pb_obj
Definition: mt_gem.h:1722
short v_copies(VdiHdl, short count)
Definition: v_copies.c:23
CICONBLK * ciconblk
Definition: mt_gem.h:1697
short mt_evnt_multi(short Type, short Clicks, short WhichButton, short WhichState, short EnterExit1, short In1X, short In1Y, short In1W, short In1H, short EnterExit2, short In2X, short In2Y, short In2W, short In2H, short MesagBuf[], unsigned long Interval, short *OutX, short *OutY, short *ButtonState, short *KeyState, short *Key, short *ReturnCount, short *global_aes)
Definition: a_evnt_multi.c:68
void v_eeol(VdiHdl)
Definition: v_eeol.c:16
short * k
Definition: mt_gem.h:1799
struct user_block USERBLK
short vs_palette(VdiHdl, short palette)
Definition: vs_palette.c:24
short mt_graf_dragbox(short Sw, short Sh, short Sx, short Sy, short Bx, short By, short Bw, short Bh, short *Fw, short *Fh, short *global_aes)
Definition: a_graf_dragbox.c:43
void v_escape2000(VdiHdl, short times)
Definition: v_escape2000.c:22
short mt_menu_click(short click, short setit, short *global)
Definition: a_menu_click.c:27
short * intout
Definition: mt_gem.h:2089
short mt_menu_istart(short me_flag, OBJECT *me_tree, short me_imenu, short me_item, short *global)
Definition: a_menu_istart.c:37
unsigned short rsh_rssize
Definition: mt_gem.h:1763
short emi_m2leave
Definition: mt_gem.h:1811
void v_updwk(VdiHdl)
Definition: v_updwk.c:24
short pb_prevstate
Definition: mt_gem.h:1723
short vqt_name(VdiHdl, short element, char *name)
Definition: vqt_name.c:23
short * intout
Definition: mt_gem.h:3025
short fd_wdwidth
Definition: mt_gem.h:2316
long drag
Definition: mt_gem.h:930
void v_justified(VdiHdl, short x, short y, const char *str, short len, short word_space, short char_space)
Definition: v_justified.c:28
Definition: mt_gem.h:1626
short mt_evnt_button(short Clicks, short WhichButton, short WhichState, short *Mx, short *My, short *ButtonState, short *KeyState, short *global_aes)
Definition: a_evnt_button.c:75
char * free_string
Definition: mt_gem.h:1699
short ob_head
Definition: mt_gem.h:1706
void vex_motv(VdiHdl, void *pusrcode, void **psavcode)
Definition: vex_motv.c:24
short vq_calibrate(VdiHdl, short *flag)
Definition: vq_calibrate.c:21
void v_clswk(VdiHdl)
Definition: v_clswk.c:20
short * b
Definition: mt_gem.h:1798
char * defdir
Definition: mt_gem.h:961
void vrq_locator(VdiHdl, short x, short y, short *xout, short *yout, short *term)
Definition: vrq_locator.c:23
struct icon_block ICONBLK
void v_get_pixel(VdiHdl, short x, short y, short *pel, short *color_idx)
Definition: v_get_pixel.c:29
void vsm_valuator(VdiHdl, short in, short *out, short *term, short *status)
Definition: vsm_valuator.c:35
void vr_recfl(VdiHdl, short pxy[])
Definition: vr_recfl.c:17
GRECT emi_m2
Definition: mt_gem.h:1812
short mt_graf_growbox(short Sx, short Sy, short Sw, short Sh, short Fx, short Fy, short Fw, short Fh, short *global_aes)
Definition: a_graf_growbox.c:37
char * te_pvalid
Definition: mt_gem.h:1614
OBJECT * pb_tree
Definition: mt_gem.h:1721
BITBLK * bitblk
Definition: mt_gem.h:1695
short mt_wind_calc(short Type, short Parts, short InX, short InY, short InW, short InH, short *OutX, short *OutY, short *OutW, short *OutH, short *global_aes)
Definition: a_wind_calc.c:51
short mt_appl_getinfo_str(short type, char *out1, char *out2, char *out3, char *out4, short *global_aes)
Definition: a_appl_getinfo_str.c:68
long limit
Definition: mt_gem.h:980
short mt_wind_create(short Parts, short Wx, short Wy, short Ww, short Wh, short *global_aes)
Definition: a_wind_create.c:66
void vsc_expose(VdiHdl, short state)
Definition: vsc_expose.c:21
short emi_tlow
Definition: mt_gem.h:1813
short mn_scroll
Definition: mt_gem.h:1772
void vs_clip(VdiHdl, short clip_flag, short pxy[])
Definition: vs_clip.c:25
short mt_wind_calc_grect(short Type, short Parts, const GRECT *In, GRECT *Out, short *global_aes)
Definition: a_wind_calc_grect.c:21
unsigned short rsh_imdata
Definition: mt_gem.h:1753
struct point_coord PXY
short mt_appl_get_cicon(short type, const char *name, short size, short *cicon_width, short *cicon_height, CICON **cicon_data, short *global_aes)
Definition: a_appl_getcicon.c:86
short mt_wind_set_grect(short WindowHandle, short What, const GRECT *r, short *global_aes)
Definition: a_wind_set_grect.c:21
short mf_fg
Definition: mt_gem.h:1559
short * ptsout
Definition: mt_gem.h:3026
short mt_evnt_mouse(short EnterExit, short InX, short InY, short InW, short InH, short *OutX, short *OutY, short *ButtonState, short *KeyState, short *global_aes)
Definition: a_evnt_mouse.c:45
void vqf_attributes(VdiHdl, short atrib[])
Definition: vqf_attributes.c:22
short mt_fsel_boxinput(char *path, char *file, short *exit_button, const char *title, FSEL_CALLBACK callback, short *global)
Definition: a_fsel_boxinput.c:32
short mt_graf_mouse(short Form, const MFORM *FormAddress, short *global_aes)
Definition: a_graf_mouse.c:60
void vsl_udsty(VdiHdl, short pat)
Definition: vsl_udsty.c:22
short ib_xchar
Definition: mt_gem.h:1632
void v_hide_c(VdiHdl)
Definition: v_hide_c.c:18
short * x
Definition: mt_gem.h:1796
void vst_error(VdiHdl, short mode, short *errorvar)
Definition: vst_error.c:22
short m_x
Definition: mt_gem.h:1787
void vq_curaddress(VdiHdl, short *cur_row, short *cur_col)
Definition: vq_curaddress.c:20
void vs_clip_off(VdiHdl)
Definition: vs_clip_off.c:14
short rsh_nimages
Definition: mt_gem.h:1762
Definition: mt_gem.h:1804
void v_set_app_buff(VdiHdl, void *buf_p, short size)
Definition: v_set_app_buff.c:22
short mt_appl_getinfo(short type, short *out1, short *out2, short *out3, short *out4, short *global_aes)
Definition: a_appl_getinfo.c:362
short te_txtlen
Definition: mt_gem.h:1621
long ap_value
Definition: mt_gem.h:155
short udef_v_loadcache(VdiHdl, const char *filename, short mode)
Definition: u_v_loadcache.c:13
void v_fontinit(VdiHdl, const void *font_header)
Definition: v_fontinit.c:21
Definition: mt_gem.h:1656
short te_color
Definition: mt_gem.h:1618