📄 metconst.h
字号:
/**********************************************************************/
/* */
/* Copyright (c) 1991-1999 Mike Manning */
/* */
/* PROPRIETARY RIGHTS of Mike Manning are involved in the subject */
/* matter of this material. All manufacturing, reproduction, use, */
/* and sales rights pertaining to this subject matter are governed */
/* by the license agreement. The recipient of this software */
/* implicitly accepts the terms of the license. */
/*--------------------------------------------------------------------*/
/* */
/* Licensed to Accelerated Technology, Inc. for Distribution 09/1997 */
/**********************************************************************/
/**********************************************************************/
/* */
/* FileName: METCONST.H */
/* */
/*--------------------------------------------------------------------*/
/* */
/* Description : Header file for GRAFIX toolbox, contains */
/* includes for all toolbox header files. */
/*--------------------------------------------------------------------*/
/* */
/* Author : Bob Burrill */
/* developed on : 05/20/1998 */
/* last update : 11/19/1999 BobB */
/* */
/**********************************************************************/
#ifndef MS_DOS
!!!Error!!! You must use METAWNDO.H include file
#endif /*MS_DOS*/
#define Byte unsigned char /* "Byte" type (8 bits) */
#define Word unsigned short /* "Word" type (16 bits) */
/*=======================================*/
/* Graphics Adaptor Definitions */
/*=======================================*/
#define cMET 0x0000
#define cNODEVICE (cMET+0) /* no graphics device required */
#define cMEMORY (cMET+1) /* Conventional Memory grafMap */
#define cUSER (cMET+3) /* User Defined grafmap */
/*=======================================*/
#define cLCD 0x0100 /* LCD drivers */
/*=======================================*/
#define cLCD8 cLCD+0 /* 8-bit per pixel */
#define cLCD1 cLCD+1 /* 1-bit per pixel */
#define cLCD2 cLCD+2 /* 2-bit per pixel */
#define cLCD4 cLCD+3 /* 4-bit per pixel */
/*=======================================*/
/* Input Device Definitions */
/*=======================================*/
#define MsDriver 0x01 /* Mouse Driver Ver. 6.0 or > */
#define MoCOM1 0x11 /* Mouse Systems/Logitec COM1 */
#define MoCOM2 0x21 /* Mouse Systems/Logitec COM2 */
#define MsCOM1 0x31 /* Microsoft Serial Mouse COM1 */
#define MsCOM2 0x41 /* Microsoft Serial Mouse COM2 */
#define JoyStick 0x04 /* Joystick on game port */
/* ----- RASTEROP, PENMODE & TEXTMODE Pixel Operations ----- */
#define zREPz 0 /* src */
#define zORz 1 /* src OR dst */
#define zXORz 2 /* src XOR dst */
#define zNANDz 3 /* (NOT src) AND dst */
#define zNREPz 4 /* (NOT src) */
#define zNORz 5 /* (NOT src) OR dst */
#define zNXORz 6 /* (NOT src) XOR dst */
#define zANDz 7 /* src AND dst */
#define zCLEARz 8 /* 0s */
#define zORNz 9 /* src OR (NOT dst) */
#define zNOPz 10 /* dst */
#define zANDNz 11 /* src AND (NOT dst) */
#define zSETz 12 /* 1s */
#define zNORNz 13 /* (NOT src) OR (NOT dst) */
#define zINVERTz 14 /* (NOT dst) */
#define zNANDNz 15 /* (NOT src) AND (NOT dst) */
/* Source monochrome "Transparent" rasterOp Operations */
#define xREPx 16 /* (!0src) */
#define xORx 17 /* (!0src) OR dst */
#define xXORx 18 /* (!0src) XOR dst */
#define xNANDx 19 /* (NOT !0src) AND dst */
#define xNREPx 20 /* (NOT !0src) */
#define xNORx 21 /* (NOT !0src) OR dst */
#define xNXORx 22 /* (NOT !0src) XOR dst */
#define xANDx 23 /* (!0src) AND dst */
#define xCLEARx 24 /* dst */
#define xORNx 25 /* (!0src) OR (NOT dst) */
#define xNOPx 26 /* dst */
#define xANDNx 27 /* (!0src) AND (NOT dst) */
#define xSETx 28 /* 1s */
#define xNORNx 29 /* (NOT !0src) OR (NOT dst) */
#define xINVERTx 30 /* (NOT dst) */
#define xNANDNx 31 /* (NOT !0src) AND (NOT dst) */
/* ----------------------- Text System Defines ------------- */
#define cNormal 0 /* "TextFace" definitions */
#define cBold 1
#define cItalic 2
#define cUnderline 4
#define cStrikeout 8
#define cHalftone 16
#define cMirrorX 32
#define cMirrorY 64
#define cProportional 128
#define alignLeft 0 /* "TextAlign" - Horizontal */
#define alignCenter 1
#define alignRight 2
#define alignBaseline 0 /* "TextAlign" - Vertical */
#define alignBottom 1
#define alignMiddle 2
#define alignTop 3
#define pathRight 0 /* "TextPath" definitions */
#define pathUp 900
#define pathLeft 1800
#define pathDown 2700
/* ---------------- System structures & defines ------------ */
#define True 1
#define False 0
/*
#define Black 0x00
#define Blue 0x02
#define Green 0x10
#define Cyan 0x12
#define Red 0x80
#define Magenta 0x82
#define Brown 0x45
#define LtGray 0xB6
#define Gray 0x92
#define LtBlue 0x03
#define LtGreen 0x1C
#define LtCyan 0x1F
#define LtRed 0xE0
#define LtMagenta 0xE3
#define Yellow 0xFC
#define White 0xFF
*/
#define Black 0
#define Blue 10
#define Green 9
#define Cyan 12
#define Red 8
#define Magenta 13
#define Brown 11
#define LtGray 7
#define Gray 14
#define LtBlue 3
#define LtGreen 2
#define LtCyan 5
#define LtRed 1
#define LtMagenta 6
#define Yellow 4
#define White 15
#define TextPg 0
#define TextPg0 0
#define GrafPg 256
#define GrafPg0 256
#define GrafPg1 257
#define GrafPgAll 255
#define enterRetrace 1
#define enterVideo 2
#define inRetrace 3
#define inVideo 4
#define upperLeft 1
#define lowerLeft 0
typedef struct _point /* "Point" structure type */
{short X; /* X coordinate */
short Y; /* Y coordinate */
} point;
typedef struct _rect /* "Rectangle" structure type */
{short Xmin; /* minimum X */
short Ymin; /* minimum Y */
short Xmax; /* maximum X */
short Ymax; /* maximum Y */
} rect;
/* ------------------- Polygon defines --------------------- */
typedef struct _polyHead /* Polygon "header" structure */
{Word polyBgn; /* beginning index */
Word polyEnd; /* ending index */
rect polyRect; /* boundry limits */
} polyHead;
#define shapeConvex 0 /* "FillPolygon" type definitions */
#define shapeNonconvex 1
#define shapeComplex 2
#define coordRel 1 /* "FillPolygon" coordinate type defs */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -