⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 metports.h

📁 nucleus 文件系统,内核和彩色图形系统,在小系统上非常好用
💻 H
📖 第 1 页 / 共 2 页
字号:
/*************************************************************************/
/*                                                                       */
/*         Copyright (c) 1997 - 1999 Accelerated Technology, Inc.        */
/*                                                                       */
/* PROPRIETARY RIGHTS of Accelerated Technology 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.                                     */
/*                                                                       */
/*************************************************************************/

/*************************************************************************/
/*                                                                       */
/* FILE NAME                                            VERSION          */
/*                                                                       */
/*      metports.h                                       1.9             */
/*                                                                       */
/* COMPONENT                                                             */
/*                                                                       */
/*      All                                                              */
/*                                                                       */
/* DESCRIPTION                                                           */
/*                                                                       */
/*      This file defines the MetaWINDOW metaPort & grafMap structures.  */
/*                                                                       */
/* AUTHOR                                                                */
/*                                                                       */
/*      Robert G. Burrill, Accelerated Technology, Inc.                  */
/*                                                                       */
/* DATA STRUCTURES                                                       */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* FUNCTIONS                                                             */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* DEPENDENCIES                                                          */
/*                                                                       */
/*      None                                                             */
/*                                                                       */
/* HISTORY                                                               */
/*                                                                       */
/*         NAME            DATE                    REMARKS               */
/*                                                                       */
/*         BobB          11/16/99    Got rid of ANSI compiler warnings   */
/*                                                                       */
/*************************************************************************/

typedef struct _grafMap       /* "grafMap" Data Structure      */
{
  short        devClass;      /* Device class                  */
  short        devTech;       /* Device technology             */
  long         devMode;       /* Device ID                     */
  short        pixBytes;      /* Bytes per scan line           */
  short        pixWidth;      /* Pixels horizontal             */
  short        pixHeight;     /* Pixels vertical               */
  short        pixResX;       /* Pixels per inch horzontally   */
  short        pixResY;       /* Pixels per inch vertically    */
  short        pixBits;       /* Color bits per pixel          */
  short        pixPlanes;     /* Color planes per pixel        */
  short        mapFlags;      /* grafMap flags                 */
  long         **mapTable[32];/* Pointers to rowTable(s)       */
  short        mapLock;       /* busy semaphore                */ 
  short        mapNextSel;    /* OS next segment cookie        */ 
  long         mapWinType;    /* Bank window type (0-3)        */
  long         mapWinOffset;  /* Offset to 2nd bank window     */
  long         mapWinYmin[2]; /* Current bank(s) min Y value   */
  long         mapWinYmax[2]; /* Current bank(s) max Y value   */
  long         mapWinPlane;   /* Current bank plane            */
  long         mapWinScans;   /* Scan lines per bank           */
  long         mapHandle;     /* Handle to access device       */
  int          (*mapBankMgr)(); /* Ptr to bank manager function  */
  void         (*mapPlaneMgr)();/* Ptr to plane manager function */
  void         (*mapAltMgr)();  /* Ptr to alt manager function   */
  int          (*mapDevMgr)();  /* Ptr to device manager list    */       
  void         (*prFill)();   /* primitive vector for fills    */
  void         (*prBlitSS)(); /* primitive vector for self-self blits */
  void         (*prBlit1S)(); /* primitive vector for mono-self blits */
  void         (*prBlitMS)(); /* primitive vector for mem-self  blits */
  void         (*prBlitSM)(); /* primitive vector for self-mem  blits */
  void         (*prRdImg)();  /* primitive vector for read image */
  void         (*prWrImg)();  /* primitive vector for write image */
  void         (*prLine)();   /* primitive vector for thin lines */
  void         (*prSetPx)();  /* primitive vector for set pixel */
  long         (*prGetPx)();  /* primitive vector for get pixel */
  void         (*cbSyncFunc)(struct _grafMap *);/* call back to resync function  */
  void         (*cbPostErr)(short ); /* call back to post an error    */
} grafMap;

typedef struct _metaPort	/* "metaPort" Data Structure       */
{
  grafMap      *portMap;     /* Pointer to "grafMap" record  */
  rect         portRect;     /* Local coordinate port bounds */
  point        portOrgn;     /* Global origin of portRect    */
  rect         portVirt;     /* 'Virtual' port bounds        */
  rect         portClip;     /* Local clipping rectangle     */
  region       *portRegion;  /* Pointer to clipping region   */
  patList      *portPat;     /* Pointer to pattern list      */
  long         portMask;     /* Port plane mask              */
  void         (*portU2GP)();    
  void         (*portU2GR)();      
  void         (*portG2UP)();     
  void         (*portG2UR)();      
  short        portFlags;    /* Port flags                   */
  short        bkPat;        /* Background pattern index     */
  long         bkColor;      /* Background color             */
  long         pnColor;      /* Pen color                    */
  point        pnLoc;        /* Pen location                 */
  point        pnSize;       /* Pen size                     */
  short        pnLevel;      /* Pen visibility level         */
  short        pnMode;       /* Pen mode (rasterOp)          */
  short        pnPat;        /* Pen pattern index            */
  short        pnCap;        /* Pen end-cap style            */
  short        pnJoin;       /* Line join style              */
  short        pnMiter;      /* Line join miter limit        */
  short        pnFlags;      /* Current pen flags            */
  short        pnDash;       /* Current dash number          */
  short        pnDashNdx;    /* Current dash sequence index  */
  short        pnDashCnt;    /* Current dash sequence count  */
  dashRcd      *pnDashRcd;   /* Pointer to dash records      */
  long		   txFont;       /* Pointer to current text font */
  short        txFace;       /* Text facing flags            */
  short        txMode;       /* Text mode (rasterOp)         */
  short        txUnder;      /* Text underline position      */
  short        txScore;      /* Text underline scoring       */
  short        txPath;       /* Text path                    */
  short        txPat;        /* Text pattern                 */
  point        txAlign;      /* Text alignment               */
  long         txColor;      /* Text color                   */
  point        txSize;       /* Text size  (stroked)         */
  short        txAngle;      /* Text angle (stroked)         */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -