home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / toolkt21 / c / os2h / pmgpi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-22  |  80.9 KB  |  2,247 lines

  1. /****************************** Module Header ******************************\
  2. *
  3. * Module Name: PMGPI.H
  4. *
  5. * OS/2 Presentation Manager GPI constants, types and function declarations
  6. *
  7. * Copyright (c) International Business Machines Corporation 1981, 1988-1992
  8. *
  9. * ===========================================================================
  10. *
  11. * The folowing symbols are used in this file for conditional sections.
  12. *
  13. *   #define:                To include:
  14. *
  15. *   INCL_GPI                Include all of the GPI
  16. *   INCL_GPIBITMAPS         Bitmaps and Pel Operations
  17. *   INCL_GPICONTROL         Basic PS control
  18. *   INCL_GPICORRELATION     Picking, Boundary and Correlation
  19. *   INCL_GPIDEFAULTS        Default Primitive Attributes
  20. *   INCL_GPIERRORS          defined if INCL_ERRORS defined
  21. *   INCL_GPILCIDS           Phyical and Logical Fonts with Lcids
  22. *   INCL_GPILOGCOLORTABLE   Logical Color Tables
  23. *   INCL_GPIMETAFILES       MetaFiles
  24. *   INCL_GPIPATHS           Paths and Clipping with Paths
  25. *   INCL_GPIPOLYGON         Polygons
  26. *   INCL_GPIPRIMITIVES      Drawing Primitives and Primitive Attributes
  27. *   INCL_GPIREGIONS         Regions and Clipping with Regions
  28. *   INCL_GPISEGEDITING      Segment Editing via Elements
  29. *   INCL_GPISEGMENTS        Segment Control and Drawing
  30. *   INCL_GPITRANSFORMS      Transform and Transform Conversion
  31. *
  32. * There is a symbol used in this file called INCL_DDIDEFS. This is used to
  33. * include only the definitions for the DDI. The programmer using the GPI
  34. * can ignore this symbol
  35. *
  36. * There is a symbol used in this file called INCL_SAADEFS. This is used to
  37. * include only the definitions for the SAA. The programmer using the GPI
  38. * can ignore this symbol
  39. *
  40. * ===========================================================================
  41. *
  42. * Comments at the end of each typedef line give the name tags used in
  43. * the assembler include version of this file.
  44. *
  45. * The assembler include version of this file excludes lines between NOINC
  46. * and INC comments.
  47. *
  48. \***************************************************************************/
  49.  
  50. /* NOINC */
  51. #ifdef __IBMC__
  52.    #pragma checkout( suspend )
  53.    #ifndef __CHKHDR__
  54.       #pragma checkout( suspend )
  55.    #endif
  56.    #pragma checkout( resume )
  57. #endif
  58. /* INC */
  59.  
  60. #define GPI_INCLUDED
  61.  
  62.  
  63. #ifdef INCL_GPI /* include whole of the GPI */
  64.    #define INCL_GPIBITMAPS
  65.    #define INCL_GPICONTROL
  66.    #define INCL_GPICORRELATION
  67.    #define INCL_GPIDEFAULTS
  68.    #define INCL_GPILCIDS
  69.    #define INCL_GPILOGCOLORTABLE
  70.    #define INCL_GPIMETAFILES
  71.    #define INCL_GPIPATHS
  72.    #define INCL_GPIPOLYGON
  73.    #define INCL_GPIPRIMITIVES
  74.    #define INCL_GPIREGIONS
  75.    #define INCL_GPISEGEDITING
  76.    #define INCL_GPISEGMENTS
  77.    #define INCL_GPITRANSFORMS
  78. #endif /* INCL_GPI */
  79.  
  80.  
  81. #ifdef INCL_ERRORS /* if errors are required then allow GPI errors */
  82.    #define INCL_GPIERRORS
  83. #endif /* INCL_ERRORS */
  84.  
  85.  
  86. #ifdef INCL_DDIDEFS /* if only DDI required then enable DDI part of GPI */
  87.    #define INCL_GPIBITMAPS
  88.    #define INCL_GPIERRORS
  89.    #define INCL_GPILCIDS
  90.    #define INCL_GPILOGCOLORTABLE
  91.    #define INCL_GPIPATHS
  92.    #define INCL_GPIPOLYGON
  93.    #define INCL_GPIPRIMITIVES
  94.    #define INCL_GPIREGIONS
  95.    #define INCL_GPITRANSFORMS
  96. #endif /* INCL_DDIDEFS */
  97.  
  98.  
  99. #ifdef INCL_SAADEFS /* if only SAA required then enable SAA part of GPI */
  100.    #define INCL_GPIBITMAPS
  101.    #define INCL_GPICONTROL
  102.    #define INCL_GPICORRELATION
  103.    #define INCL_GPIERRORS
  104.    #define INCL_GPILCIDS
  105.    #define INCL_GPILOGCOLORTABLE
  106.    #define INCL_GPIMETAFILES
  107.    #define INCL_GPIPATHS
  108.    #define INCL_GPIPOLYGON
  109.    #define INCL_GPIPRIMITIVES
  110.    #define INCL_GPIREGIONS
  111.    #define INCL_GPISEGEDITING
  112.    #define INCL_GPISEGMENTS
  113.    #define INCL_GPITRANSFORMS
  114. #endif /* INCL_SAADEFS */
  115.  
  116. /* General GPI return values */
  117. #define GPI_ERROR                       0L
  118. #define GPI_OK                          1L
  119. #define GPI_ALTERROR                  (-1L)
  120.  
  121. /* fixed point number - implicit binary point between 2 and 3 hex digits */
  122. typedef  LONG FIXED;     /* fx */
  123. typedef  FIXED *PFIXED;
  124.  
  125. /* fixed point number - implicit binary point between 1st and 2nd hex digits */
  126. typedef  USHORT FIXED88;  /* fx88 */
  127.  
  128. /* fixed point signed number - implicit binary point between bits 14 and 13. */
  129. /*                             Bit 15 is the sign bit.                       */
  130. /*                             Thus 1.0 is represented by 16384 (0x4000)     */
  131. /*                             and -1.0 is represented by -16384 (0xc000)    */
  132. typedef  USHORT FIXED114; /* fx114 */
  133.  
  134. /* make FIXED number from SHORT integer part and USHORT fractional part */
  135. #define MAKEFIXED(intpart,fractpart) MAKELONG(fractpart,intpart)
  136. /* extract fractional part from a fixed quantity */
  137. #define FIXEDFRAC(fx)                (LOUSHORT(fx))
  138. /* extract integer part from a fixed quantity */
  139. #define FIXEDINT(fx)                 ((SHORT)HIUSHORT(fx))
  140.  
  141. /* structure for size parameters e.g. for GpiCreatePS */
  142. typedef struct _SIZEL            /* sizl */
  143. {
  144.    LONG cx;
  145.    LONG cy;
  146. } SIZEL;
  147. typedef SIZEL *PSIZEL;
  148.  
  149. /* return code on GpiQueryLogColorTable,GpiQueryRealColors and GpiQueryPel */
  150. #define CLR_NOINDEX                  (-254L)
  151.  
  152. #if (defined(INCL_GPICONTROL) || !defined(INCL_NOCOMMON))
  153.    
  154.    /* units for GpiCreatePS and others */
  155.    #define PU_ARBITRARY               0x0004L
  156.    #define PU_PELS                    0x0008L
  157.    #define PU_LOMETRIC                0x000CL
  158.    #define PU_HIMETRIC                0x0010L
  159.    #define PU_LOENGLISH               0x0014L
  160.    #define PU_HIENGLISH               0x0018L
  161.    #define PU_TWIPS                   0x001CL
  162.    
  163.    /* format for GpiCreatePS */
  164.    #define GPIF_DEFAULT                    0L
  165.    #define GPIF_SHORT                 0x0100L
  166.    #define GPIF_LONG                  0x0200L
  167.    
  168.    
  169.    /* PS type for GpiCreatePS */
  170.    #define GPIT_NORMAL                     0L
  171.    #define GPIT_MICRO                 0x1000L
  172.    
  173.    
  174.    /* implicit associate flag for GpiCreatePS */
  175.    #define GPIA_NOASSOC                    0L
  176.    #define GPIA_ASSOC                 0x4000L
  177.    
  178.    /* PS Fill type for GpiCreatePS defect: 61035 RickT Add exclusive fill */
  179.    #define GPIM_AREAEXCL              0x8000L
  180.    
  181.    
  182.    #ifndef INCL_SAADEFS
  183.       /* return error for GpiQueryDevice */
  184.       #define HDC_ERROR                ((HDC)-1L)
  185.    #endif /* no INCL_SAADEFS */
  186.    
  187.    /* common GPICONTROL functions */
  188.    
  189.    HPS   APIENTRY GpiCreatePS(HAB hab,
  190.                               HDC hdc,
  191.                               PSIZEL psizlSize,
  192.                               ULONG flOptions);
  193.    
  194.    BOOL  APIENTRY GpiDestroyPS(HPS hps);
  195.    
  196.    BOOL  APIENTRY GpiAssociate(HPS hps,
  197.                                HDC hdc);
  198.    
  199.    BOOL  APIENTRY GpiRestorePS(HPS hps,
  200.                                LONG lPSid);
  201.    
  202.    LONG  APIENTRY GpiSavePS(HPS hps);
  203.    
  204.    BOOL  APIENTRY GpiErase(HPS hps);
  205.    
  206.    #ifndef INCL_SAADEFS
  207.       
  208.       HDC  APIENTRY GpiQueryDevice(HPS);
  209.    #endif /* no INCL_SAADEFS */
  210.    
  211. #endif /* common GPICONTROL */
  212. #ifdef INCL_GPICONTROL
  213.    
  214.    /* options for GpiResetPS */
  215.    #define GRES_ATTRS                 0x0001L
  216.    #define GRES_SEGMENTS              0x0002L
  217.    #define GRES_ALL                   0x0004L
  218.    
  219.    /* option masks for PS options used by GpiQueryPs */
  220.    #define PS_UNITS                   0x00FCL
  221.    #define PS_FORMAT                  0x0F00L
  222.    #define PS_TYPE                    0x1000L
  223.    #define PS_MODE                    0x2000L
  224.    #define PS_ASSOCIATE               0x4000L
  225.    #define PS_NORESET                 0x8000L
  226.    
  227.    
  228.    /* error context returned by GpiErrorSegmentData */
  229.    #define GPIE_SEGMENT                    0L
  230.    #define GPIE_ELEMENT                    1L
  231.    #define GPIE_DATA                       2L
  232.    
  233.    #ifndef INCL_SAADEFS
  234.       
  235.       /* control parameter for GpiSetDrawControl */
  236.       #define DCTL_ERASE                      1L
  237.       #define DCTL_DISPLAY                    2L
  238.       #define DCTL_BOUNDARY                   3L
  239.       #define DCTL_DYNAMIC                    4L
  240.       #define DCTL_CORRELATE                  5L
  241.       
  242.       /* constants for GpiSet/QueryDrawControl */
  243.       #define DCTL_ERROR                     -1L
  244.       #define DCTL_OFF                        0L
  245.       #define DCTL_ON                         1L
  246.       
  247.       /* constants for GpiSet/QueryStopDraw */
  248.       #define SDW_ERROR                      -1L
  249.       #define SDW_OFF                         0L
  250.       #define SDW_ON                          1L
  251.       
  252.    #endif /* no INCL_SAADEFS */
  253.    
  254.    /* drawing for GpiSet/QueryDrawingMode */
  255.    #define DM_ERROR                        0L
  256.    #define DM_DRAW                         1L
  257.    #define DM_RETAIN                       2L
  258.    #define DM_DRAWANDRETAIN                3L
  259.    
  260.    /*** other GPICONTROL functions */
  261.    
  262.    BOOL  APIENTRY GpiResetPS(HPS hps,
  263.                              ULONG flOptions);
  264.    
  265.    #ifndef INCL_SAADEFS
  266.       
  267.       
  268.       BOOL  APIENTRY GpiSetPS(HPS hps,
  269.                               PSIZEL psizlsize,
  270.                               ULONG flOptions);
  271.       
  272.    #endif /* no INCL_SAADEFS */
  273.    
  274.    
  275.    ULONG  APIENTRY GpiQueryPS(HPS hps,
  276.                               PSIZEL psizlSize);
  277.    
  278.    LONG   APIENTRY GpiErrorSegmentData(HPS hps,
  279.                                        PLONG plSegment,
  280.                                        PLONG plContext);
  281.    
  282.    #ifndef INCL_SAADEFS
  283.       
  284.       
  285.       LONG  APIENTRY GpiQueryDrawControl(HPS hps,
  286.                                          LONG lControl);
  287.       
  288.       BOOL  APIENTRY GpiSetDrawControl(HPS hps,
  289.                                        LONG lControl,
  290.                                        LONG lValue);
  291.       
  292.    #endif /* no INCL_SAADEFS */
  293.    
  294.    
  295.    LONG  APIENTRY GpiQueryDrawingMode(HPS hps);
  296.    
  297.    BOOL  APIENTRY GpiSetDrawingMode(HPS hps,
  298.                                     LONG lMode);
  299.    
  300.    #ifndef INCL_SAADEFS
  301.       
  302.       
  303.       LONG  APIENTRY GpiQueryStopDraw(HPS hps);
  304.       
  305.       BOOL  APIENTRY GpiSetStopDraw(HPS hps,
  306.                                     LONG lValue);
  307.       
  308.    #endif /* no INCL_SAADEFS */
  309.    
  310. #endif /* non-common GPICONTROL */
  311. #ifdef INCL_GPICORRELATION
  312.    
  313.    /* options for GpiSetPickApertureSize */
  314.    #define PICKAP_DEFAULT                  0L
  315.    #define PICKAP_REC                      2L
  316.    
  317.    /* type of correlation for GpiCorrelateChain */
  318.    #define PICKSEL_VISIBLE                 0L
  319.    #define PICKSEL_ALL                     1L
  320.    
  321.    /* return code to indicate correlate hit(s) */
  322.    #define GPI_HITS                        2L
  323.    
  324.    /*** picking,  correlation and boundary functions */
  325.    
  326.    LONG  APIENTRY GpiCorrelateChain(HPS hps,
  327.                                     LONG lType,
  328.                                     PPOINTL pptlPick,
  329.                                     LONG lMaxHits,
  330.                                     LONG lMaxDepth,
  331.                                     PLONG pl2);
  332.    
  333.    BOOL  APIENTRY GpiQueryTag(HPS hps,
  334.                               PLONG plTag);
  335.    
  336.    BOOL  APIENTRY GpiSetTag(HPS hps,
  337.                             LONG lTag);
  338.    
  339.    BOOL  APIENTRY GpiQueryPickApertureSize(HPS hps,
  340.                                            PSIZEL psizlSize);
  341.    
  342.    BOOL  APIENTRY GpiSetPickApertureSize(HPS hps,
  343.                                          LONG lOptions,
  344.                                          PSIZEL psizlSize);
  345.    
  346.    #ifndef INCL_SAADEFS
  347.       
  348.       BOOL  APIENTRY GpiQueryPickAperturePosition(HPS hps,
  349.                                                   PPOINTL pptlPoint);
  350.       
  351.       BOOL  APIENTRY GpiSetPickAperturePosition(HPS hps,
  352.                                                 PPOINTL pptlPick);
  353.       
  354.       BOOL  APIENTRY GpiQueryBoundaryData(HPS hps,
  355.                                           PRECTL prclBoundary);
  356.       
  357.       BOOL  APIENTRY GpiResetBoundaryData(HPS hps);
  358.       
  359.    #endif /* no INCL_SAADEFS */
  360.    
  361.    
  362.    LONG APIENTRY GpiCorrelateFrom(HPS hps,
  363.                                   LONG lFirstSegment,
  364.                                   LONG lLastSegment,
  365.                                   LONG lType,
  366.                                   PPOINTL pptlPick,
  367.                                   LONG lMaxHits,
  368.                                   LONG lMaxDepth,
  369.                                   PLONG plSegTag);
  370.    
  371.    LONG APIENTRY GpiCorrelateSegment(HPS hps,
  372.                                      LONG lSegment,
  373.                                      LONG lType,
  374.                                      PPOINTL pptlPick,
  375.                                      LONG lMaxHits,
  376.                                      LONG lMaxDepth,
  377.                                      PLONG alSegTag);
  378.    
  379. #endif /* non-common_GPICORRELATION */
  380. #ifdef INCL_GPISEGMENTS
  381.    
  382.    /* data formats for GpiPutData and GpiGetData */
  383.    #define DFORM_NOCONV                    0L
  384.    
  385.    #ifndef INCL_SAADEFS
  386.       
  387.       #define DFORM_S370SHORT                 1L
  388.       #define DFORM_PCSHORT                   2L
  389.       #define DFORM_PCLONG                    4L
  390.       
  391.    #endif /* no INCL_SAADEFS */
  392.    
  393.    /* segment attributes used by GpiSet/QuerySegmentAttrs and others */
  394.    #define ATTR_ERROR                    (-1L)
  395.    #define ATTR_DETECTABLE                 1L
  396.    #define ATTR_VISIBLE                    2L
  397.    #define ATTR_CHAINED                    6L
  398.    
  399.    #ifndef INCL_SAADEFS
  400.       
  401.       #define ATTR_DYNAMIC                    8L
  402.       
  403.    #endif /* no INCL_SAADEFS */
  404.    
  405.    #define ATTR_FASTCHAIN                  9L
  406.    #define ATTR_PROP_DETECTABLE           10L
  407.    #define ATTR_PROP_VISIBLE              11L
  408.    
  409.    /* attribute on/off values */
  410.    #define ATTR_OFF                        0L
  411.    #define ATTR_ON                         1L
  412.    
  413.    /* segment priority used by GpiSetSegmentPriority and others */
  414.    #define LOWER_PRI                     (-1L)
  415.    #define HIGHER_PRI                      1L
  416.    
  417.    /*** segment control functions */
  418.    
  419.    BOOL APIENTRY GpiOpenSegment(HPS hps,
  420.                                 LONG lSegment);
  421.    
  422.    BOOL APIENTRY GpiCloseSegment(HPS hps);
  423.    
  424.    BOOL APIENTRY GpiDeleteSegment(HPS hps,
  425.                                   LONG lSegid);
  426.    
  427.    LONG APIENTRY GpiQueryInitialSegmentAttrs(HPS hps,
  428.                                              LONG lAttribute);
  429.    
  430.    BOOL APIENTRY GpiSetInitialSegmentAttrs(HPS hps,
  431.                                            LONG lAttribute,
  432.                                            LONG lValue);
  433.    
  434.    LONG APIENTRY GpiQuerySegmentAttrs(HPS hps,
  435.                                       LONG lSegid,
  436.                                       LONG lAttribute);
  437.    
  438.    BOOL APIENTRY GpiSetSegmentAttrs(HPS hps,
  439.                                     LONG lSegid,
  440.                                     LONG lAttribute,
  441.                                     LONG lValue);
  442.    
  443.    LONG APIENTRY GpiQuerySegmentPriority(HPS hps,
  444.                                          LONG lRefSegid,
  445.                                          LONG lOrder);
  446.    
  447.    BOOL APIENTRY GpiSetSegmentPriority(HPS hps,
  448.                                        LONG lSegid,
  449.                                        LONG lRefSegid,
  450.                                        LONG lOrder);
  451.    
  452.    BOOL APIENTRY GpiDeleteSegments(HPS hps,
  453.                                    LONG lFirstSegment,
  454.                                    LONG lLastSegment);
  455.    
  456.    LONG APIENTRY GpiQuerySegmentNames(HPS hps,
  457.                                       LONG lFirstSegid,
  458.                                       LONG lLastSegid,
  459.                                       LONG lMax,
  460.                                       PLONG alSegids);
  461.    
  462.    /*** draw functions for segments */
  463.    LONG APIENTRY GpiGetData(HPS hps,
  464.                             LONG lSegid,
  465.                             PLONG plOffset,
  466.                             LONG lFormat,
  467.                             LONG lLength,
  468.                             PBYTE pbData);
  469.    
  470.    LONG APIENTRY GpiPutData(HPS hps,
  471.                             LONG lFormat,
  472.                             PLONG plCount,
  473.                             PBYTE pbData);
  474.    
  475.    BOOL APIENTRY GpiDrawChain(HPS hps);
  476.    
  477.    BOOL APIENTRY GpiDrawFrom(HPS hps,
  478.                              LONG lFirstSegment,
  479.                              LONG lLastSegment);
  480.    
  481.    BOOL APIENTRY GpiDrawSegment(HPS hps,
  482.                                 LONG lSegment);
  483.    
  484.    #ifndef INCL_SAADEFS
  485.       
  486.       
  487.       BOOL APIENTRY GpiDrawDynamics(HPS hps);
  488.       
  489.       BOOL APIENTRY GpiRemoveDynamics(HPS hps,
  490.                                       LONG lFirstSegid,
  491.                                       LONG lLastSegid);
  492.       
  493.    #endif /* no INCL_SAADEFS */
  494.    
  495. #endif /* non-common GPISEGMENTS */
  496. #ifdef INCL_GPISEGEDITING
  497.    
  498.    /* edit modes used by GpiSet/QueryEditMode */
  499.    #define SEGEM_ERROR                         0L
  500.    #define SEGEM_INSERT                        1L
  501.    #define SEGEM_REPLACE                       2L
  502.    
  503.    /*** segment editing by element functions */
  504.    
  505.    BOOL  APIENTRY GpiBeginElement(HPS hps,
  506.                                   LONG lType,
  507.                                   PSZ pszDesc);
  508.    
  509.    BOOL  APIENTRY GpiEndElement(HPS hps);
  510.    
  511.    BOOL  APIENTRY GpiLabel(HPS hps,
  512.                            LONG lLabel);
  513.    
  514.    LONG  APIENTRY GpiElement(HPS hps,
  515.                              LONG lType,
  516.                              PSZ pszDesc,
  517.                              LONG lLength,
  518.                              PBYTE pbData);
  519.    
  520.    LONG  APIENTRY GpiQueryElement(HPS hps,
  521.                                   LONG lOff,
  522.                                   LONG lMaxLength,
  523.                                   PBYTE pbData);
  524.    
  525.    BOOL  APIENTRY GpiDeleteElement(HPS hps);
  526.    
  527.    BOOL  APIENTRY GpiDeleteElementRange(HPS hps,
  528.                                         LONG lFirstElement,
  529.                                         LONG lLastElement);
  530.    
  531.    BOOL  APIENTRY GpiDeleteElementsBetweenLabels(HPS hps,
  532.                                                  LONG lFirstLabel,
  533.                                                  LONG lLastLabel);
  534.    
  535.    LONG  APIENTRY GpiQueryEditMode(HPS hps);
  536.    
  537.    BOOL  APIENTRY GpiSetEditMode(HPS hps,
  538.                                  LONG lMode);
  539.    
  540.    LONG  APIENTRY GpiQueryElementPointer(HPS hps);
  541.    
  542.    BOOL  APIENTRY GpiSetElementPointer(HPS hps,
  543.                                        LONG lElement);
  544.    
  545.    BOOL  APIENTRY GpiOffsetElementPointer(HPS hps,
  546.                                           LONG loffset);
  547.    
  548.    LONG  APIENTRY GpiQueryElementType(HPS hps,
  549.                                       PLONG plType,
  550.                                       LONG lLength,
  551.                                       PSZ pszData);
  552.    
  553.    BOOL  APIENTRY GpiSetElementPointerAtLabel(HPS hps,
  554.                                               LONG lLabel);
  555.    
  556. #endif /* non-common GPISEGEDITING */
  557. #ifdef INCL_GPITRANSFORMS
  558.    
  559.    /* co-ordinates space for GpiConvert */
  560.    #define CVTC_WORLD                      1L
  561.    #define CVTC_MODEL                      2L
  562.    #define CVTC_DEFAULTPAGE                3L
  563.    #define CVTC_PAGE                       4L
  564.    #define CVTC_DEVICE                     5L
  565.    
  566.    /* type of transformation for GpiSetSegmentTransformMatrix */
  567.    #define TRANSFORM_REPLACE               0L
  568.    #define TRANSFORM_ADD                   1L
  569.    #define TRANSFORM_PREEMPT               2L
  570.    
  571.    /* transform matrix */
  572.    typedef struct _MATRIXLF        /* matlf */
  573.    {
  574.       FIXED fxM11;
  575.       FIXED fxM12;
  576.       LONG  lM13;
  577.       FIXED fxM21;
  578.       FIXED fxM22;
  579.       LONG  lM23;
  580.       LONG  lM31;
  581.       LONG  lM32;
  582.       LONG  lM33;
  583.    } MATRIXLF;
  584.    typedef MATRIXLF *PMATRIXLF;
  585.    
  586.    #ifndef INCL_DDIDEFS
  587.       
  588.       
  589.       /*** transform and transform conversion functions */
  590.       BOOL  APIENTRY GpiQuerySegmentTransformMatrix(HPS hps,
  591.                                                     LONG lSegid,
  592.                                                     LONG lCount,
  593.                                                     PMATRIXLF pmatlfArray);
  594.       
  595.       BOOL  APIENTRY GpiSetSegmentTransformMatrix(HPS hps,
  596.                                                   LONG lSegid,
  597.                                                   LONG lCount,
  598.                                                   PMATRIXLF pmatlfarray,
  599.                                                   LONG lOptions);
  600.       
  601.       BOOL  APIENTRY GpiConvert(HPS hps,
  602.                                 LONG lSrc,
  603.                                 LONG lTarg,
  604.                                 LONG lCount,
  605.                                 PPOINTL aptlPoints);
  606.       
  607.       BOOL  APIENTRY GpiConvertWithMatrix(HPS hps,
  608.                                           LONG lCountp,
  609.                                           PPOINTL aptlPoints,
  610.                                           LONG lCount,
  611.                                           PMATRIXLF pmatlfArray);
  612.       
  613.       BOOL  APIENTRY GpiQueryModelTransformMatrix(HPS hps,
  614.                                                   LONG lCount,
  615.                                                   PMATRIXLF pmatlfArray);
  616.       
  617.       BOOL  APIENTRY GpiSetModelTransformMatrix(HPS hps,
  618.                                                 LONG lCount,
  619.                                                 PMATRIXLF pmatlfArray,
  620.                                                 LONG lOptions);
  621.       
  622.       LONG  APIENTRY GpiCallSegmentMatrix(HPS hps,
  623.                                           LONG lSegment,
  624.                                           LONG lCount,
  625.                                           PMATRIXLF pmatlfArray,
  626.                                           LONG lOptions);
  627.       
  628.       BOOL  APIENTRY GpiQueryDefaultViewMatrix(HPS hps,
  629.                                                LONG lCount,
  630.                                                PMATRIXLF pmatlfArray);
  631.       
  632.       BOOL  APIENTRY GpiSetDefaultViewMatrix(HPS hps,
  633.                                              LONG lCount,
  634.                                              PMATRIXLF pmatlfarray,
  635.                                              LONG lOptions);
  636.       
  637.       BOOL  APIENTRY GpiQueryPageViewport(HPS hps,
  638.                                           PRECTL prclViewport);
  639.       
  640.       BOOL  APIENTRY GpiSetPageViewport(HPS hps,
  641.                                         PRECTL prclViewport);
  642.       
  643.       BOOL  APIENTRY GpiQueryViewingTransformMatrix(HPS hps,
  644.                                                     LONG lCount,
  645.                                                     PMATRIXLF pmatlfArray);
  646.       
  647.       BOOL  APIENTRY GpiSetViewingTransformMatrix(HPS hps,
  648.                                                   LONG lCount,
  649.                                                   PMATRIXLF pmatlfArray,
  650.                                                   LONG lOptions);
  651.       
  652.       /*** transform helper routines */
  653.       BOOL APIENTRY GpiTranslate(HPS,
  654.                                  PMATRIXLF,
  655.                                  LONG,
  656.                                  PPOINTL);
  657.       
  658.       BOOL APIENTRY GpiScale(HPS,
  659.                              PMATRIXLF,
  660.                              LONG,
  661.                              PFIXED,
  662.                              PPOINTL);
  663.       
  664.       BOOL APIENTRY GpiRotate(HPS,
  665.                               PMATRIXLF,
  666.                               LONG,
  667.                               FIXED,
  668.                               PPOINTL);
  669.       
  670.       /*** general clipping functions */
  671.       BOOL APIENTRY GpiSetGraphicsField(HPS hps,
  672.                                         PRECTL prclField);
  673.       
  674.       BOOL APIENTRY GpiQueryGraphicsField(HPS hps,
  675.                                           PRECTL prclField);
  676.       
  677.       BOOL APIENTRY GpiSetViewingLimits(HPS hps,
  678.                                         PRECTL prclLimits);
  679.       
  680.       BOOL APIENTRY GpiQueryViewingLimits(HPS hps,
  681.                                           PRECTL prclLimits);
  682.       
  683.    #endif /* no INCL_DDIDEFS */
  684.    
  685. #endif /* non-common GPITRANSFORMS */
  686. #ifdef INCL_GPIPATHS
  687.    
  688.    /* modes for GpiModifyPath */
  689.    #define MPATH_STROKE                    6L
  690.    
  691.    /* modes for GpiFillPath */
  692.    #define FPATH_ALTERNATE                 0L
  693.    #define FPATH_WINDING                   2L
  694.    #define FPATH_INCL                      0L
  695.    #define FPATH_EXCL                      8L
  696.    
  697.    /* modes for GpiSetClipPath */
  698.    #define SCP_ALTERNATE                   0L
  699.    #define SCP_WINDING                     2L
  700.    #define SCP_AND                         4L
  701.    #define SCP_RESET                       0L
  702.    #define SCP_INCL                        0L
  703.    #define SCP_EXCL                        8L
  704.    
  705.    #ifndef INCL_DDIDEFS
  706.       
  707.       /*** Path and Clip Path functions */
  708.       
  709.       BOOL  APIENTRY GpiBeginPath(HPS hps,
  710.                                   LONG lPath);
  711.       
  712.       BOOL  APIENTRY GpiEndPath(HPS hps);
  713.       
  714.       BOOL  APIENTRY GpiCloseFigure(HPS hps);
  715.       
  716.       BOOL  APIENTRY GpiModifyPath(HPS hps,
  717.                                    LONG lPath,
  718.                                    LONG lMode);
  719.       
  720.       LONG  APIENTRY GpiFillPath(HPS hps,
  721.                                  LONG lPath,
  722.                                  LONG lOptions);
  723.       
  724.       BOOL  APIENTRY GpiSetClipPath(HPS hps,
  725.                                     LONG lPath,
  726.                                     LONG lOptions);
  727.       
  728.       LONG  APIENTRY GpiOutlinePath(HPS hps,
  729.                                     LONG lPath,
  730.                                     LONG lOptions);
  731.       
  732.       HRGN  APIENTRY GpiPathToRegion(HPS GpiH,
  733.                                      LONG lPath,
  734.                                      LONG lOptions);
  735.       
  736.       #ifndef INCL_SAADEFS
  737.          
  738.          
  739.          LONG  APIENTRY GpiStrokePath(HPS hps,
  740.                                       LONG lPath,
  741.                                       ULONG flOptions);
  742.          
  743.       #endif /* no INCL_SAADEFS */
  744.       
  745.    #endif /* no INCL_DDIDEFS */
  746.    
  747. #endif /* non-common GPIPATHS */
  748. #ifdef INCL_GPILOGCOLORTABLE
  749.    
  750.    #ifndef INCL_GPIBITMAPS
  751.       #define INCL_GPIBITMAPS
  752.    #endif /* INCL_GPIBITMAPS */
  753.    
  754.    /* options for GpiCreateLogColorTable and others */
  755.    #define LCOL_RESET                   0x0001L
  756.    #define LCOL_REALIZABLE              0x0002L
  757.    #define LCOL_PURECOLOR               0x0004L
  758.    #define LCOL_OVERRIDE_DEFAULT_COLORS 0x0008L
  759.    #define LCOL_REALIZED                0x0010L
  760.    
  761.    /* format of logical lColor table for GpiCreateLogColorTable and others */
  762.    #define LCOLF_DEFAULT                   0L
  763.    #define LCOLF_INDRGB                    1L
  764.    #define LCOLF_CONSECRGB                 2L
  765.    #define LCOLF_RGB                       3L
  766.    #define LCOLF_PALETTE                   4L
  767.    
  768.    /* options for GpiQueryRealColors and others */
  769.    #define LCOLOPT_REALIZED           0x0001L
  770.    #define LCOLOPT_INDEX              0x0002L
  771.    
  772.    #ifndef INCL_SAADEFS
  773.       
  774.       /* return codes from GpiQueryLogColorTable to indicate it is in RGB mode */
  775.       #define QLCT_ERROR                    (-1L)
  776.       #define QLCT_RGB                      (-2L)
  777.       
  778.       /* GpiQueryLogColorTable index returned for colors not explicitly loaded */
  779.       #define QLCT_NOTLOADED                (-1L)
  780.       
  781.    #endif /* no INCL_SAADEFS */
  782.    
  783.    /* return codes for GpiQueryColorData */
  784.    #define QCD_LCT_FORMAT                  0L
  785.    #define QCD_LCT_LOINDEX                 1L
  786.    #define QCD_LCT_HIINDEX                 2L
  787.    #define QCD_LCT_OPTIONS                 3L
  788.    
  789.    /* Palette manager return values */
  790.    #define PAL_ERROR                     (-1L)
  791.    
  792.    /* color flags for GpiCreatePalette and others */
  793.    #define PC_RESERVED                   0x01
  794.    #define PC_EXPLICIT                   0x02
  795.    #define PC_NOCOLLAPSE                 0x04
  796.    
  797.    #ifndef INCL_DDIDEFS
  798.       
  799.       /*** logical lColor table functions */
  800.       
  801.       BOOL  APIENTRY GpiCreateLogColorTable(HPS hps,
  802.                                             ULONG flOptions,
  803.                                             LONG lFormat,
  804.                                             LONG lStart,
  805.                                             LONG lCount,
  806.                                             PLONG alTable);
  807.       
  808.       BOOL  APIENTRY GpiQueryColorData(HPS hps,
  809.                                        LONG lCount,
  810.                                        PLONG alArray);
  811.       
  812.       #ifndef INCL_SAADEFS
  813.          
  814.          
  815.          LONG  APIENTRY GpiQueryLogColorTable(HPS hps,
  816.                                               ULONG flOptions,
  817.                                               LONG lStart,
  818.                                               LONG lCount,
  819.                                               PLONG alArray);
  820.          
  821.       #endif /* no INCL_SAADEFS */
  822.       
  823.       
  824.       LONG  APIENTRY GpiQueryRealColors(HPS hps,
  825.                                         ULONG flOptions,
  826.                                         LONG lStart,
  827.                                         LONG lCount,
  828.                                         PLONG alColors);
  829.       
  830.       LONG  APIENTRY GpiQueryNearestColor(HPS hps,
  831.                                           ULONG flOptions,
  832.                                           LONG lRgbIn);
  833.       
  834.       LONG  APIENTRY GpiQueryColorIndex(HPS hps,
  835.                                         ULONG flOptions,
  836.                                         LONG lRgbColor);
  837.       
  838.       LONG  APIENTRY GpiQueryRGBColor(HPS hps,
  839.                                       ULONG flOptions,
  840.                                       LONG lColorIndex);
  841.       
  842.       #ifndef INCL_SAADEFS
  843.          
  844.          /*Palette manager functions */
  845.          
  846.          HPAL APIENTRY GpiCreatePalette(HAB hab,
  847.                                         ULONG flOptions,
  848.                                         ULONG ulFormat,
  849.                                         ULONG ulCount,
  850.                                         PULONG aulTable);
  851.          
  852.          BOOL APIENTRY GpiDeletePalette(HPAL hpal);
  853.          
  854.          HPAL APIENTRY GpiSelectPalette(HPS hps,
  855.                                         HPAL hpal);
  856.          
  857.          LONG APIENTRY GpiAnimatePalette(HPAL hpal,
  858.                                          ULONG ulFormat,
  859.                                          ULONG ulStart,
  860.                                          ULONG ulCount,
  861.                                          PULONG aulTable);
  862.          
  863.          BOOL APIENTRY GpiSetPaletteEntries(HPAL hpal,
  864.                                             ULONG ulFormat,
  865.                                             ULONG ulStart,
  866.                                             ULONG ulCount,
  867.                                             PULONG aulTable);
  868.          
  869.          HPAL APIENTRY GpiQueryPalette(HPS hps);
  870.          
  871.          LONG APIENTRY GpiQueryPaletteInfo(HPAL hpal,
  872.                                            HPS  hps,
  873.                                            ULONG flOptions,
  874.                                            ULONG ulStart,
  875.                                            ULONG ulCount,
  876.                                            PULONG aulArray);
  877.          
  878.       #endif /* no INCL_SAADEFS */
  879.       
  880.    #endif /* no INCL_DDIDEFS */
  881.    
  882. #endif /* non-common GPILOGCOLORTABLE */
  883. #if (defined(INCL_GPIPRIMITIVES) || !defined(INCL_NOCOMMON))
  884.    
  885.    /* default color table indices */
  886.    
  887.    #define CLR_FALSE                     (-5L)
  888.    #define CLR_TRUE                      (-4L)
  889.    
  890.    #define CLR_ERROR                   (-255L)
  891.    #define CLR_DEFAULT                   (-3L)
  892.    #define CLR_WHITE                     (-2L)
  893.    #define CLR_BLACK                     (-1L)
  894.    #define CLR_BACKGROUND                  0L
  895.    #define CLR_BLUE                        1L
  896.    #define CLR_RED                         2L
  897.    #define CLR_PINK                        3L
  898.    #define CLR_GREEN                       4L
  899.    #define CLR_CYAN                        5L
  900.    #define CLR_YELLOW                      6L
  901.    #define CLR_NEUTRAL                     7L
  902.    
  903.    #define CLR_DARKGRAY                    8L
  904.    #define CLR_DARKBLUE                    9L
  905.    #define CLR_DARKRED                    10L
  906.    #define CLR_DARKPINK                   11L
  907.    #define CLR_DARKGREEN                  12L
  908.    #define CLR_DARKCYAN                   13L
  909.    #define CLR_BROWN                      14L
  910.    #define CLR_PALEGRAY                   15L
  911.    
  912.    /* rgb colors */
  913.    #define RGB_ERROR                   (-255L)
  914.    #define RGB_BLACK              0x00000000L
  915.    #define RGB_BLUE               0x000000FFL
  916.    #define RGB_GREEN              0x0000FF00L
  917.    #define RGB_CYAN               0x0000FFFFL
  918.    #define RGB_RED                0x00FF0000L
  919.    #define RGB_PINK               0x00FF00FFL
  920.    #define RGB_YELLOW             0x00FFFF00L
  921.    #define RGB_WHITE              0x00FFFFFFL
  922.    
  923.    /* control flags used by GpiBeginArea */
  924.    #define BA_NOBOUNDARY                   0L
  925.    #define BA_BOUNDARY                0x0001L
  926.    
  927.    
  928.    #define BA_ALTERNATE                    0L
  929.    #define BA_WINDING                 0x0002L
  930.    
  931.    #define BA_INCL                         0L
  932.    #define BA_EXCL                         8L
  933.    
  934.    
  935.    /* fill options for GpiBox/GpiFullArc */
  936.    #define DRO_FILL                        1L
  937.    #define DRO_OUTLINE                     2L
  938.    #define DRO_OUTLINEFILL                 3L
  939.    
  940.    /* basic pattern symbols */
  941.    #define PATSYM_ERROR                  (-1L)
  942.    #define PATSYM_DEFAULT                  0L
  943.    #define PATSYM_DENSE1                   1L
  944.    #define PATSYM_DENSE2                   2L
  945.    #define PATSYM_DENSE3                   3L
  946.    #define PATSYM_DENSE4                   4L
  947.    #define PATSYM_DENSE5                   5L
  948.    #define PATSYM_DENSE6                   6L
  949.    #define PATSYM_DENSE7                   7L
  950.    #define PATSYM_DENSE8                   8L
  951.    #define PATSYM_VERT                     9L
  952.    #define PATSYM_HORIZ                   10L
  953.    #define PATSYM_DIAG1                   11L
  954.    #define PATSYM_DIAG2                   12L
  955.    #define PATSYM_DIAG3                   13L
  956.    #define PATSYM_DIAG4                   14L
  957.    #define PATSYM_NOSHADE                 15L
  958.    #define PATSYM_SOLID                   16L
  959.    #ifndef INCL_SAADEFS
  960.       #define PATSYM_HALFTONE                17L
  961.    #endif /* no INCL_SAADEFS */
  962.    #define PATSYM_HATCH                   18L
  963.    #define PATSYM_DIAGHATCH               19L
  964.    #define PATSYM_BLANK                   64L
  965.    
  966.    /* lcid values for GpiSet/QueryPattern and others */
  967.    #define LCID_ERROR                    (-1L)
  968.    #define LCID_DEFAULT                    0L
  969.    
  970.    #ifndef INCL_DDIDEFS
  971.       
  972.       
  973.       /*** global primitive functions */
  974.       BOOL  APIENTRY GpiSetColor(HPS hps,
  975.                                  LONG lColor);
  976.       
  977.       LONG  APIENTRY GpiQueryColor(HPS hps);
  978.       
  979.       /*** line primitive functions */
  980.       
  981.       LONG  APIENTRY GpiBox(HPS hps,
  982.                             LONG lControl,
  983.                             PPOINTL pptlPoint,
  984.                             LONG lHRound,
  985.                             LONG lVRound);
  986.       
  987.       BOOL  APIENTRY GpiMove(HPS hps,
  988.                              PPOINTL pptlPoint);
  989.       
  990.       LONG  APIENTRY GpiLine(HPS hps,
  991.                              PPOINTL pptlEndPoint);
  992.       
  993.       LONG  APIENTRY GpiPolyLine(HPS hps,
  994.                                  LONG lCount,
  995.                                  PPOINTL aptlPoints);
  996.       
  997.       LONG  APIENTRY GpiPolyLineDisjoint(HPS hps,
  998.                                          LONG lCount,
  999.                                          PPOINTL aptlPoints);
  1000.       
  1001.       /*** area primitive functions */
  1002.       BOOL  APIENTRY GpiSetPattern(HPS hps,
  1003.                                    LONG lPatternSymbol);
  1004.       
  1005.       LONG  APIENTRY GpiQueryPattern(HPS hps);
  1006.       
  1007.       BOOL  APIENTRY GpiBeginArea(HPS hps,
  1008.                                   ULONG flOptions);
  1009.       
  1010.       LONG  APIENTRY GpiEndArea(HPS hps);
  1011.       
  1012.       /*** character primitive functions */
  1013.       LONG  APIENTRY GpiCharString(HPS hps,
  1014.                                    LONG lCount,
  1015.                                    PCH pchString);
  1016.       
  1017.       LONG  APIENTRY GpiCharStringAt(HPS hps,
  1018.                                      PPOINTL pptlPoint,
  1019.                                      LONG lCount,
  1020.                                      PCH pchString);
  1021.       
  1022.    #endif /* no INCL_DDIDEFS */
  1023.    
  1024. #endif /* common GPIPRIMTIVES */
  1025. #ifdef INCL_GPIPRIMITIVES
  1026.    
  1027.    /* mode for GpiSetAttrMode */
  1028.    #define AM_ERROR                      (-1L)
  1029.    #define AM_PRESERVE                     0L
  1030.    #define AM_NOPRESERVE                   1L
  1031.    
  1032.    /* foreground mixes */
  1033.    #define FM_ERROR                      (-1L)
  1034.    #define FM_DEFAULT                      0L
  1035.    #define FM_OR                           1L
  1036.    #define FM_OVERPAINT                    2L
  1037.    #define FM_LEAVEALONE                   5L
  1038.    
  1039.    #define FM_XOR                          4L
  1040.    #define FM_AND                          6L
  1041.    #define FM_SUBTRACT                     7L
  1042.    #define FM_MASKSRCNOT                   8L
  1043.    #define FM_ZERO                         9L
  1044.    #define FM_NOTMERGESRC                 10L
  1045.    #define FM_NOTXORSRC                   11L
  1046.    #define FM_INVERT                      12L
  1047.    #define FM_MERGESRCNOT                 13L
  1048.    #define FM_NOTCOPYSRC                  14L
  1049.    #define FM_MERGENOTSRC                 15L
  1050.    #define FM_NOTMASKSRC                  16L
  1051.    #define FM_ONE                         17L
  1052.    
  1053.    
  1054.    /* background mixes */
  1055.    #define BM_ERROR                      (-1L)
  1056.    #define BM_DEFAULT                      0L
  1057.    #define BM_OR                           1L
  1058.    #define BM_OVERPAINT                    2L
  1059.    #define BM_LEAVEALONE                   5L
  1060.    
  1061.    #define BM_XOR                          4L
  1062.    #define BM_AND                          6L
  1063.    #define BM_SUBTRACT                     7L
  1064.    #define BM_MASKSRCNOT                   8L
  1065.    #define BM_ZERO                         9L
  1066.    #define BM_NOTMERGESRC                 10L
  1067.    #define BM_NOTXORSRC                   11L
  1068.    #define BM_INVERT                      12L
  1069.    #define BM_MERGESRCNOT                 13L
  1070.    #define BM_NOTCOPYSRC                  14L
  1071.    #define BM_MERGENOTSRC                 15L
  1072.    #define BM_NOTMASKSRC                  16L
  1073.    #define BM_ONE                         17L
  1074.    #define BM_SRCTRANSPARENT              18L
  1075.    #define BM_DESTTRANSPARENT             19L
  1076.    
  1077.    
  1078.    
  1079.    /* basic line type styles */
  1080.    #define LINETYPE_ERROR                (-1L)
  1081.    #define LINETYPE_DEFAULT                0L
  1082.    #define LINETYPE_DOT                    1L
  1083.    #define LINETYPE_SHORTDASH              2L
  1084.    #define LINETYPE_DASHDOT                3L
  1085.    #define LINETYPE_DOUBLEDOT              4L
  1086.    #define LINETYPE_LONGDASH               5L
  1087.    #define LINETYPE_DASHDOUBLEDOT          6L
  1088.    #define LINETYPE_SOLID                  7L
  1089.    #define LINETYPE_INVISIBLE              8L
  1090.    #ifndef INCL_SAADEFS
  1091.       #define LINETYPE_ALTERNATE              9L
  1092.    #endif /* no INCL_SAADEFS */
  1093.    
  1094.    /* cosmetic line widths */
  1095.    #define LINEWIDTH_ERROR               (-1L)
  1096.    #define LINEWIDTH_DEFAULT               0L
  1097.    #define LINEWIDTH_NORMAL       0x00010000L   /* MAKEFIXED(1,0) */
  1098.    #define LINEWIDTH_THICK        0x00020000L   /* MAKEFIXED(2,0) */
  1099.    
  1100.    /* actual line widths */
  1101.    #define LINEWIDTHGEOM_ERROR           (-1L)
  1102.    
  1103.    /* line end styles */
  1104.    #define LINEEND_ERROR                 (-1L)
  1105.    #define LINEEND_DEFAULT                 0L
  1106.    #define LINEEND_FLAT                    1L
  1107.    #define LINEEND_SQUARE                  2L
  1108.    #define LINEEND_ROUND                   3L
  1109.    
  1110.    /* line join styles */
  1111.    #define LINEJOIN_ERROR                (-1L)
  1112.    #define LINEJOIN_DEFAULT                0L
  1113.    #define LINEJOIN_BEVEL                  1L
  1114.    #define LINEJOIN_ROUND                  2L
  1115.    #define LINEJOIN_MITRE                  3L
  1116.    
  1117.    /* character directions */
  1118.    #define CHDIRN_ERROR                  (-1L)
  1119.    #define CHDIRN_DEFAULT                  0L
  1120.    #define CHDIRN_LEFTRIGHT                1L
  1121.    #define CHDIRN_TOPBOTTOM                2L
  1122.    #define CHDIRN_RIGHTLEFT                3L
  1123.    #define CHDIRN_BOTTOMTOP                4L
  1124.    
  1125.    /* character text alignments */
  1126.    #define TA_NORMAL_HORIZ     0x0001
  1127.    #define TA_LEFT             0x0002
  1128.    #define TA_CENTER           0x0003
  1129.    #define TA_RIGHT            0x0004
  1130.    #define TA_STANDARD_HORIZ   0x0005
  1131.    #define TA_NORMAL_VERT      0x0100
  1132.    #define TA_TOP              0x0200
  1133.    #define TA_HALF             0x0300
  1134.    #define TA_BASE             0x0400
  1135.    #define TA_BOTTOM           0x0500
  1136.    #define TA_STANDARD_VERT    0x0600
  1137.    
  1138.    /* character modes */
  1139.    #define CM_ERROR                      (-1L)
  1140.    #define CM_DEFAULT                      0L
  1141.    #define CM_MODE1                        1L
  1142.    #define CM_MODE2                        2L
  1143.    #define CM_MODE3                        3L
  1144.    
  1145.    /* basic marker symbols */
  1146.    #define MARKSYM_ERROR                 (-1L)
  1147.    #define MARKSYM_DEFAULT                 0L
  1148.    #define MARKSYM_CROSS                   1L
  1149.    #define MARKSYM_PLUS                    2L
  1150.    #define MARKSYM_DIAMOND                 3L
  1151.    #define MARKSYM_SQUARE                  4L
  1152.    #define MARKSYM_SIXPOINTSTAR            5L
  1153.    #define MARKSYM_EIGHTPOINTSTAR          6L
  1154.    #define MARKSYM_SOLIDDIAMOND            7L
  1155.    #define MARKSYM_SOLIDSQUARE             8L
  1156.    #define MARKSYM_DOT                     9L
  1157.    #define MARKSYM_SMALLCIRCLE            10L
  1158.    #define MARKSYM_BLANK                  64L
  1159.    
  1160.    /* formatting options for GpiCharStringPosAt */
  1161.    #define CHS_OPAQUE                 0x0001L
  1162.    #define CHS_VECTOR                 0x0002L
  1163.    #define CHS_LEAVEPOS               0x0008L
  1164.    #define CHS_CLIP                   0x0010L
  1165.    #define CHS_UNDERSCORE             0x0200L
  1166.    #define CHS_STRIKEOUT              0x0400L
  1167.    
  1168.    /* bundle codes for GpiSetAttributes and GpiQueryAttributes */
  1169.    #define PRIM_LINE                       1L
  1170.    #define PRIM_CHAR                       2L
  1171.    #define PRIM_MARKER                     3L
  1172.    #define PRIM_AREA                       4L
  1173.    #define PRIM_IMAGE                      5L
  1174.    
  1175.    /* line bundle mask bits */
  1176.    #define LBB_COLOR                  0x0001L
  1177.    #define LBB_BACK_COLOR             0x0002L
  1178.    #define LBB_MIX_MODE               0x0004L
  1179.    #define LBB_BACK_MIX_MODE          0x0008L
  1180.    #define LBB_WIDTH                  0x0010L
  1181.    #define LBB_GEOM_WIDTH             0x0020L
  1182.    #define LBB_TYPE                   0x0040L
  1183.    #define LBB_END                    0x0080L
  1184.    #define LBB_JOIN                   0x0100L
  1185.    
  1186.    /* character bundle mask bits */
  1187.    #define CBB_COLOR                  0x0001L
  1188.    #define CBB_BACK_COLOR             0x0002L
  1189.    #define CBB_MIX_MODE               0x0004L
  1190.    #define CBB_BACK_MIX_MODE          0x0008L
  1191.    #define CBB_SET                    0x0010L
  1192.    #define CBB_MODE                   0x0020L
  1193.    #define CBB_BOX                    0x0040L
  1194.    #define CBB_ANGLE                  0x0080L
  1195.    #define CBB_SHEAR                  0x0100L
  1196.    #define CBB_DIRECTION              0x0200L
  1197.    #define CBB_TEXT_ALIGN             0x0400L
  1198.    #define CBB_EXTRA                  0x0800L
  1199.    #define CBB_BREAK_EXTRA            0x1000L
  1200.    
  1201.    /* marker bundle mask bits */
  1202.    #define MBB_COLOR                  0x0001L
  1203.    #define MBB_BACK_COLOR             0x0002L
  1204.    #define MBB_MIX_MODE               0x0004L
  1205.    #define MBB_BACK_MIX_MODE          0x0008L
  1206.    #define MBB_SET                    0x0010L
  1207.    #define MBB_SYMBOL                 0x0020L
  1208.    #define MBB_BOX                    0x0040L
  1209.    
  1210.    /* pattern bundle mask bits */
  1211.    #define ABB_COLOR                  0x0001L
  1212.    #define ABB_BACK_COLOR             0x0002L
  1213.    #define ABB_MIX_MODE               0x0004L
  1214.    #define ABB_BACK_MIX_MODE          0x0008L
  1215.    #define ABB_SET                    0x0010L
  1216.    #define ABB_SYMBOL                 0x0020L
  1217.    #define ABB_REF_POINT              0x0040L
  1218.    
  1219.    /* image bundle mask bits */
  1220.    #define IBB_COLOR                  0x0001L
  1221.    #define IBB_BACK_COLOR             0x0002L
  1222.    #define IBB_MIX_MODE               0x0004L
  1223.    #define IBB_BACK_MIX_MODE          0x0008L
  1224.    
  1225.    /* structure for GpiSetArcParams and GpiQueryArcParams */
  1226.    typedef struct _ARCPARAMS       /* arcp */
  1227.    {
  1228.       LONG lP;
  1229.       LONG lQ;
  1230.       LONG lR;
  1231.       LONG lS;
  1232.    } ARCPARAMS;
  1233.    typedef ARCPARAMS *PARCPARAMS;
  1234.    
  1235.    /* variation of SIZE used for FIXEDs */
  1236.    typedef struct _SIZEF          /* sizfx */
  1237.    {
  1238.       FIXED cx;
  1239.       FIXED cy;
  1240.    } SIZEF;
  1241.    typedef SIZEF *PSIZEF;
  1242.    
  1243.    /* structure for gradient parameters e.g. for GpiSetCharAngle */
  1244.    typedef struct _GRADIENTL        /* gradl */
  1245.    {
  1246.       LONG x;
  1247.       LONG y;
  1248.    } GRADIENTL;
  1249.    typedef GRADIENTL *PGRADIENTL;
  1250.    
  1251.    /* line bundle for GpiSetAttributes and GpiQueryAttributes */
  1252.    typedef struct _LINEBUNDLE       /* lbnd */
  1253.    {
  1254.       LONG    lColor;
  1255.       LONG    lBackColor;
  1256.       USHORT  usMixMode;
  1257.       USHORT  usBackMixMode;
  1258.       FIXED   fxWidth;
  1259.       LONG    lGeomWidth;
  1260.       USHORT  usType;
  1261.       USHORT  usEnd;
  1262.       USHORT  usJoin;
  1263.       USHORT  usReserved;
  1264.    } LINEBUNDLE;
  1265.    typedef LINEBUNDLE *PLINEBUNDLE;
  1266.    
  1267.    /* character bundle for GpiSetAttributes and GpiQueryAttributes */
  1268.    typedef struct _CHARBUNDLE       /* cbnd */
  1269.    {
  1270.       LONG      lColor;
  1271.       LONG      lBackColor;
  1272.       USHORT    usMixMode;
  1273.       USHORT    usBackMixMode;
  1274.       USHORT    usSet;
  1275.       USHORT    usPrecision;
  1276.       SIZEF     sizfxCell;
  1277.       POINTL    ptlAngle;
  1278.       POINTL    ptlShear;
  1279.       USHORT    usDirection;
  1280.       USHORT    usTextAlign;
  1281.       FIXED     fxExtra;
  1282.       FIXED     fxBreakExtra;
  1283.    } CHARBUNDLE;
  1284.    typedef CHARBUNDLE *PCHARBUNDLE;
  1285.    
  1286.    /* marker bundle for GpiSetAttributes and GpiQueryAttributes */
  1287.    typedef struct _MARKERBUNDLE     /* mbnd */
  1288.    {
  1289.       LONG   lColor;
  1290.       LONG   lBackColor;
  1291.       USHORT usMixMode;
  1292.       USHORT usBackMixMode;
  1293.       USHORT usSet;
  1294.       USHORT usSymbol;
  1295.       SIZEF  sizfxCell;
  1296.    } MARKERBUNDLE;
  1297.    typedef MARKERBUNDLE *PMARKERBUNDLE;
  1298.    
  1299.    /* pattern bundle for GpiSetAttributes and GpiQueryAttributes */
  1300.    typedef struct _AREABUNDLE    /* pbnd */
  1301.    {
  1302.       LONG   lColor;
  1303.       LONG   lBackColor;
  1304.       USHORT usMixMode;
  1305.       USHORT usBackMixMode;
  1306.       USHORT usSet;
  1307.       USHORT usSymbol;
  1308.       POINTL ptlRefPoint ;
  1309.    } AREABUNDLE;
  1310.    typedef AREABUNDLE *PAREABUNDLE;
  1311.    
  1312.    /* image bundle for GpiSetAttributes and GpiQueryAttributes */
  1313.    typedef struct _IMAGEBUNDLE      /* ibmd */
  1314.    {
  1315.       LONG   lColor;
  1316.       LONG   lBackColor;
  1317.       USHORT usMixMode;
  1318.       USHORT usBackMixMode;
  1319.    } IMAGEBUNDLE;
  1320.    typedef IMAGEBUNDLE *PIMAGEBUNDLE;
  1321.    
  1322.    /* pointer to any bundle used by GpiSet/QueryAttrs */
  1323.    typedef PVOID PBUNDLE;
  1324.    
  1325.    /* array indices for GpiQueryTextBox */
  1326.    #define TXTBOX_TOPLEFT                  0L
  1327.    #define TXTBOX_BOTTOMLEFT               1L
  1328.    #define TXTBOX_TOPRIGHT                 2L
  1329.    #define TXTBOX_BOTTOMRIGHT              3L
  1330.    #define TXTBOX_CONCAT                   4L
  1331.    /* array count for GpiQueryTextBox */
  1332.    #define TXTBOX_COUNT                    5L
  1333.    
  1334.    /* return codes for GpiPtVisible */
  1335.    #define PVIS_ERROR                      0L
  1336.    #define PVIS_INVISIBLE                  1L
  1337.    #define PVIS_VISIBLE                    2L
  1338.    
  1339.    /* return codes for GpiRectVisible */
  1340.    #define RVIS_ERROR                      0L
  1341.    #define RVIS_INVISIBLE                  1L
  1342.    #define RVIS_PARTIAL                    2L
  1343.    #define RVIS_VISIBLE                    3L
  1344.    
  1345.    #ifndef INCL_DDIDEFS
  1346.       
  1347.       
  1348.       /*** attribute mode functions */
  1349.       BOOL  APIENTRY GpiSetAttrMode(HPS hps,
  1350.                                     LONG lMode);
  1351.       
  1352.       LONG  APIENTRY GpiQueryAttrMode(HPS hps);
  1353.       /*** bundle primitive functions */
  1354.       BOOL  APIENTRY GpiSetAttrs(HPS hps,
  1355.                                  LONG lPrimType,
  1356.                                  ULONG flAttrMask,
  1357.                                  ULONG flDefMask,
  1358.                                  PBUNDLE ppbunAttrs);
  1359.       #ifndef INCL_SAADEFS
  1360.          
  1361.          
  1362.          LONG  APIENTRY GpiQueryAttrs(HPS hps,
  1363.                                       LONG lPrimType,
  1364.                                       ULONG flAttrMask,
  1365.                                       PBUNDLE ppbunAttrs);
  1366.          
  1367.       #endif /* no INCL_SAADEFS */
  1368.       
  1369.       
  1370.       /*** global primitive functions */
  1371.       BOOL  APIENTRY GpiSetBackColor(HPS hps,
  1372.                                      LONG lColor);
  1373.       
  1374.       LONG  APIENTRY GpiQueryBackColor(HPS hps);
  1375.       
  1376.       BOOL  APIENTRY GpiSetMix(HPS hps,
  1377.                                LONG lMixMode);
  1378.       
  1379.       LONG  APIENTRY GpiQueryMix(HPS hps);
  1380.       
  1381.       BOOL  APIENTRY GpiSetBackMix(HPS hps,
  1382.                                    LONG lMixMode);
  1383.       
  1384.       LONG  APIENTRY GpiQueryBackMix(HPS hps);
  1385.       
  1386.       /*** line primitive functions */
  1387.       BOOL  APIENTRY GpiSetLineType(HPS hps,
  1388.                                     LONG lLineType);
  1389.       
  1390.       LONG  APIENTRY GpiQueryLineType(HPS hps);
  1391.       
  1392.       BOOL  APIENTRY GpiSetLineWidth(HPS hps,
  1393.                                      FIXED fxLineWidth);
  1394.       
  1395.       FIXED APIENTRY GpiQueryLineWidth(HPS hps);
  1396.       
  1397.       BOOL  APIENTRY GpiSetLineWidthGeom(HPS hps,
  1398.                                          LONG lLineWidth);
  1399.       
  1400.       LONG  APIENTRY GpiQueryLineWidthGeom(HPS hps);
  1401.       
  1402.       BOOL  APIENTRY GpiSetLineEnd(HPS hps,
  1403.                                    LONG lLineEnd);
  1404.       
  1405.       LONG  APIENTRY GpiQueryLineEnd(HPS hps);
  1406.       
  1407.       BOOL  APIENTRY GpiSetLineJoin(HPS hps,
  1408.                                     LONG lLineJoin);
  1409.       
  1410.       LONG  APIENTRY GpiQueryLineJoin(HPS hps);
  1411.       
  1412.       BOOL  APIENTRY GpiSetCurrentPosition(HPS hps,
  1413.                                            PPOINTL pptlPoint);
  1414.       
  1415.       BOOL  APIENTRY GpiQueryCurrentPosition(HPS hps,
  1416.                                              PPOINTL pptlPoint);
  1417.       
  1418.       /*** arc primitive functions */
  1419.       BOOL  APIENTRY GpiSetArcParams(HPS hps,
  1420.                                      PARCPARAMS parcpArcParams);
  1421.       
  1422.       BOOL  APIENTRY GpiQueryArcParams(HPS hps,
  1423.                                        PARCPARAMS parcpArcParams);
  1424.       
  1425.       LONG  APIENTRY GpiPointArc(HPS hps,
  1426.                                  PPOINTL pptl2);
  1427.       
  1428.       LONG  APIENTRY GpiFullArc(HPS hps,
  1429.                                 LONG lControl,
  1430.                                 FIXED fxMultiplier);
  1431.       
  1432.       LONG  APIENTRY GpiPartialArc(HPS hps,
  1433.                                    PPOINTL pptlCenter,
  1434.                                    FIXED fxMultiplier,
  1435.                                    FIXED fxStartAngle,
  1436.                                    FIXED fxSweepAngle);
  1437.       
  1438.       LONG  APIENTRY GpiPolyFillet(HPS hps,
  1439.                                    LONG lCount,
  1440.                                    PPOINTL aptlPoints);
  1441.       
  1442.       LONG  APIENTRY GpiPolySpline(HPS hps,
  1443.                                    LONG lCount,
  1444.                                    PPOINTL aptlPoints);
  1445.       
  1446.       LONG  APIENTRY GpiPolyFilletSharp(HPS hps,
  1447.                                         LONG lCount,
  1448.                                         PPOINTL aptlPoints,
  1449.                                         PFIXED afxPoints);
  1450.       
  1451.       /*** area primitive functions */
  1452.       BOOL  APIENTRY GpiSetPatternSet(HPS hps,
  1453.                                       LONG lSet);
  1454.       
  1455.       LONG  APIENTRY GpiQueryPatternSet(HPS hps);
  1456.       
  1457.       BOOL  APIENTRY GpiSetPatternRefPoint(HPS hps,
  1458.                                            PPOINTL pptlRefPoint);
  1459.       
  1460.       BOOL  APIENTRY GpiQueryPatternRefPoint(HPS hps,
  1461.                                              PPOINTL pptlRefPoint);
  1462.       
  1463.       /*** character primitive functions */
  1464.       BOOL  APIENTRY GpiQueryCharStringPos(HPS hps,
  1465.                                            ULONG flOptions,
  1466.                                            LONG lCount,
  1467.                                            PCH pchString,
  1468.                                            PLONG alXincrements,
  1469.                                            PPOINTL aptlPositions);
  1470.       
  1471.       BOOL  APIENTRY GpiQueryCharStringPosAt(HPS hps,
  1472.                                              PPOINTL pptlStart,
  1473.                                              ULONG flOptions,
  1474.                                              LONG lCount,
  1475.                                              PCH pchString,
  1476.                                              PLONG alXincrements,
  1477.                                              PPOINTL aptlPositions);
  1478.       
  1479.       BOOL  APIENTRY GpiQueryTextBox(HPS hps,
  1480.                                      LONG lCount1,
  1481.                                      PCH pchString,
  1482.                                      LONG lCount2,
  1483.                                      PPOINTL aptlPoints);
  1484.       
  1485.       BOOL  APIENTRY GpiQueryDefCharBox(HPS hps,
  1486.                                         PSIZEL psizlSize);
  1487.       
  1488.       BOOL  APIENTRY GpiSetCharSet(HPS hps,
  1489.                                    LONG llcid);
  1490.       
  1491.       LONG  APIENTRY GpiQueryCharSet(HPS hps);
  1492.       
  1493.       BOOL  APIENTRY GpiSetCharBox(HPS hps,
  1494.                                    PSIZEF psizfxBox);
  1495.       
  1496.       BOOL  APIENTRY GpiQueryCharBox(HPS hps,
  1497.                                      PSIZEF psizfxSize);
  1498.       
  1499.       BOOL  APIENTRY GpiSetCharAngle(HPS hps,
  1500.                                      PGRADIENTL pgradlAngle);
  1501.       
  1502.       BOOL  APIENTRY GpiQueryCharAngle(HPS hps,
  1503.                                        PGRADIENTL pgradlAngle);
  1504.       
  1505.       BOOL  APIENTRY GpiSetCharShear(HPS hps,
  1506.                                      PPOINTL pptlAngle);
  1507.       
  1508.       BOOL  APIENTRY GpiQueryCharShear(HPS hps,
  1509.                                        PPOINTL pptlShear);
  1510.       
  1511.       BOOL  APIENTRY GpiSetCharDirection(HPS hps,
  1512.                                          LONG lDirection);
  1513.       
  1514.       LONG  APIENTRY GpiQueryCharDirection(HPS hps);
  1515.       
  1516.       BOOL  APIENTRY GpiSetCharMode(HPS hps,
  1517.                                     LONG lMode);
  1518.       
  1519.       LONG  APIENTRY GpiQueryCharMode(HPS hps);
  1520.       
  1521.       BOOL  APIENTRY GpiSetTextAlignment(HPS hps,
  1522.                                          LONG lHoriz,
  1523.                                          LONG lVert);
  1524.       
  1525.       BOOL  APIENTRY GpiQueryTextAlignment(HPS hps,
  1526.                                            PLONG plHoriz,
  1527.                                            PLONG plVert);
  1528.       
  1529.       LONG  APIENTRY GpiCharStringPos(HPS hps,
  1530.                                       PRECTL prclRect,
  1531.                                       ULONG flOptions,
  1532.                                       LONG lCount,
  1533.                                       PCH pchString,
  1534.                                       PLONG alAdx);
  1535.       
  1536.       LONG  APIENTRY GpiCharStringPosAt(HPS hps,
  1537.                                         PPOINTL pptlStart,
  1538.                                         PRECTL prclRect,
  1539.                                         ULONG flOptions,
  1540.                                         LONG lCount,
  1541.                                         PCH pchString,
  1542.                                         PLONG alAdx);
  1543.       
  1544.       BOOL  APIENTRY GpiSetCharExtra(HPS hps,
  1545.                                      FIXED  Extra);
  1546.       
  1547.       BOOL  APIENTRY GpiSetCharBreakExtra(HPS hps,
  1548.                                           FIXED  BreakExtra);
  1549.       
  1550.       BOOL  APIENTRY GpiQueryCharExtra(HPS hps,
  1551.                                        PFIXED Extra);
  1552.       
  1553.       BOOL  APIENTRY GpiQueryCharBreakExtra(HPS hps,
  1554.                                             PFIXED BreakExtra);
  1555.       
  1556.       /*** marker primitive functions  */
  1557.       LONG  APIENTRY GpiMarker(HPS hps,
  1558.                                PPOINTL pptlPoint);
  1559.       
  1560.       LONG  APIENTRY GpiPolyMarker(HPS hps,
  1561.                                    LONG lCount,
  1562.                                    PPOINTL aptlPoints);
  1563.       
  1564.       BOOL  APIENTRY GpiSetMarker(HPS hps,
  1565.                                   LONG lSymbol);
  1566.       
  1567.       BOOL  APIENTRY GpiSetMarkerBox(HPS hps,
  1568.                                      PSIZEF psizfxSize);
  1569.       
  1570.       BOOL  APIENTRY GpiSetMarkerSet(HPS hps,
  1571.                                      LONG lSet);
  1572.       
  1573.       LONG  APIENTRY GpiQueryMarker(HPS hps);
  1574.       
  1575.       BOOL  APIENTRY GpiQueryMarkerBox(HPS hps,
  1576.                                        PSIZEF psizfxSize);
  1577.       
  1578.       LONG  APIENTRY GpiQueryMarkerSet(HPS hps);
  1579.       
  1580.       /*** image primitive functions */
  1581.       LONG  APIENTRY GpiImage(HPS hps,
  1582.                               LONG lFormat,
  1583.                               PSIZEL psizlImageSize,
  1584.                               LONG lLength,
  1585.                               PBYTE pbData);
  1586.       
  1587.       /*** miscellaneous primitive functions */
  1588.       BOOL  APIENTRY GpiPop(HPS hps,
  1589.                             LONG lCount);
  1590.       
  1591.       LONG  APIENTRY GpiPtVisible(HPS hps,
  1592.                                   PPOINTL pptlPoint);
  1593.       
  1594.       LONG  APIENTRY GpiRectVisible(HPS hps,
  1595.                                     PRECTL prclRectangle);
  1596.       
  1597.       BOOL  APIENTRY GpiComment(HPS hps,
  1598.                                 LONG lLength,
  1599.                                 PBYTE pbData);
  1600.       
  1601.    #endif /* no INCL_DDIDEFS */
  1602.    
  1603. #endif /* non-common GPIPRIMITIVES */
  1604. #ifdef INCL_GPILCIDS
  1605.    
  1606.    /* return codes from GpiCreateLogFont */
  1607.    #define FONT_DEFAULT                    1L
  1608.    #define FONT_MATCH                      2L
  1609.    
  1610.    /* lcid type for GpiQuerySetIds */
  1611.    #define LCIDT_FONT                      6L
  1612.    
  1613.    #define LCIDT_BITMAP                    7L
  1614.    
  1615.    /* constant used to delete all lcids by GpiDeleteSetId */
  1616.    #define LCID_ALL                      (-1L)
  1617.    
  1618.    /* kerning data returned by GpiQueryKerningPairs */
  1619.    typedef struct _KERNINGPAIRS     /* krnpr */
  1620.    {
  1621.       SHORT sFirstChar;
  1622.       SHORT sSecondChar;
  1623.       LONG  lKerningAmount;
  1624.    } KERNINGPAIRS;
  1625.    typedef KERNINGPAIRS *PKERNINGPAIRS;
  1626.    
  1627.    /* data required by GpiQueryFaceString */
  1628.    typedef struct _FACENAMEDESC     /* fnd */
  1629.    {
  1630.       USHORT usSize;
  1631.       USHORT usWeightClass;
  1632.       USHORT usWidthClass;
  1633.       USHORT usReserved;
  1634.       ULONG  flOptions;
  1635.    } FACENAMEDESC;
  1636.    typedef FACENAMEDESC *PFACENAMEDESC;
  1637.    
  1638.    /* FACENAMEDESC 'WeightClass' options for GpiQueryFaceString */
  1639.    #define FWEIGHT_DONT_CARE      0L
  1640.    #define FWEIGHT_ULTRA_LIGHT    1L
  1641.    #define FWEIGHT_EXTRA_LIGHT    2L
  1642.    #define FWEIGHT_LIGHT          3L
  1643.    #define FWEIGHT_SEMI_LIGHT     4L
  1644.    #define FWEIGHT_NORMAL         5L
  1645.    #define FWEIGHT_SEMI_BOLD      6L
  1646.    #define FWEIGHT_BOLD           7L
  1647.    #define FWEIGHT_EXTRA_BOLD     8L
  1648.    #define FWEIGHT_ULTRA_BOLD     9L
  1649.    
  1650.    /* FACENAMEDESC 'WidthClass' options for GpiQueryFaceString */
  1651.    #define FWIDTH_DONT_CARE       0L
  1652.    #define FWIDTH_ULTRA_CONDENSED 1L
  1653.    #define FWIDTH_EXTRA_CONDENSED 2L
  1654.    #define FWIDTH_CONDENSED       3L
  1655.    #define FWIDTH_SEMI_CONDENSED  4L
  1656.    #define FWIDTH_NORMAL          5L
  1657.    #define FWIDTH_SEMI_EXPANDED   6L
  1658.    #define FWIDTH_EXPANDED        7L
  1659.    #define FWIDTH_EXTRA_EXPANDED  8L
  1660.    #define FWIDTH_ULTRA_EXPANDED  9L
  1661.    
  1662.    /* FACENAMEDESC 'options' for GpiQueryFaceString */
  1663.    #define FTYPE_ITALIC            0x0001
  1664.    #define FTYPE_ITALIC_DONT_CARE  0x0002
  1665.    #define FTYPE_OBLIQUE           0x0004
  1666.    #define FTYPE_OBLIQUE_DONT_CARE 0x0008
  1667.    #define FTYPE_ROUNDED           0x0010
  1668.    #define FTYPE_ROUNDED_DONT_CARE 0x0020
  1669.    
  1670.    /* actions for GpiQueryFontAction */
  1671.    #define QFA_PUBLIC      1L
  1672.    #define QFA_PRIVATE     2L
  1673.    #define QFA_ERROR       GPI_ALTERROR
  1674.    
  1675.    /* options for GpiQueryFonts */
  1676.    #define QF_PUBLIC                  0x0001L
  1677.    #define QF_PRIVATE                 0x0002L
  1678.    #define QF_NO_GENERIC              0x0004L
  1679.    #define QF_NO_DEVICE               0x0008L
  1680.    
  1681.    #ifndef INCL_SAADEFS
  1682.       
  1683.       /* font file descriptions for GpiQueryFontFileDescriptions */
  1684.       typedef CHAR FFDESCS[2][FACESIZE]; /* ffdescs */
  1685.       typedef FFDESCS *PFFDESCS;
  1686.       typedef struct _FFDESCS2    /* ffdescs2 */
  1687.       {
  1688.          ULONG  cbLength;
  1689.          ULONG  cbFacenameOffset;
  1690.          BYTE   abFamilyName[1];
  1691.       } FFDESCS2;
  1692.       typedef FFDESCS2 *PFFDESCS2;
  1693.       
  1694.    #endif /* no INCL_SAADEFS */
  1695.    
  1696.    #ifndef INCL_DDIDEFS
  1697.       
  1698.       /*** physical and logical font functions */
  1699.       
  1700.       LONG  APIENTRY GpiCreateLogFont(HPS hps,
  1701.                                       PSTR8 pName,
  1702.                                       LONG lLcid,
  1703.                                       PFATTRS pfatAttrs);
  1704.       
  1705.       BOOL  APIENTRY GpiDeleteSetId(HPS hps,
  1706.                                     LONG lLcid);
  1707.       
  1708.       BOOL  APIENTRY GpiLoadFonts(HAB hab,
  1709.                                   PSZ pszFilename);
  1710.       
  1711.       BOOL  APIENTRY GpiUnloadFonts(HAB hab,
  1712.                                     PSZ pszFilename);
  1713.       
  1714.       LONG  APIENTRY GpiQueryFonts(HPS hps,
  1715.                                    ULONG flOptions,
  1716.                                    PSZ pszFacename,
  1717.                                    PLONG plReqFonts,
  1718.                                    LONG lMetricsLength,
  1719.                                    PFONTMETRICS afmMetrics);
  1720.       
  1721.       BOOL  APIENTRY GpiQueryFontMetrics(HPS hps,
  1722.                                          LONG lMetricsLength,
  1723.                                          PFONTMETRICS pfmMetrics);
  1724.       
  1725.       LONG  APIENTRY GpiQueryKerningPairs(HPS hps,
  1726.                                           LONG lCount,
  1727.                                           PKERNINGPAIRS akrnprData);
  1728.       
  1729.       BOOL  APIENTRY GpiQueryWidthTable(HPS hps,
  1730.                                         LONG lFirstChar,
  1731.                                         LONG lCount,
  1732.                                         PLONG alData);
  1733.       
  1734.       LONG  APIENTRY GpiQueryNumberSetIds(HPS hps);
  1735.       
  1736.       BOOL  APIENTRY GpiQuerySetIds(HPS hps,
  1737.                                     LONG lCount,
  1738.                                     PLONG alTypes,
  1739.                                     PSTR8 aNames,
  1740.                                     PLONG allcids);
  1741.       
  1742.       ULONG APIENTRY GpiQueryFaceString(HPS PS,
  1743.                                         PSZ FamilyName,
  1744.                                         PFACENAMEDESC attrs,
  1745.                                         LONG length,
  1746.                                         PSZ CompoundFaceName);
  1747.       
  1748.       BOOL  APIENTRY GpiQueryLogicalFont(HPS PS,
  1749.                                          LONG lcid,
  1750.                                          PSTR8 name,
  1751.                                          PFATTRS attrs,
  1752.                                          LONG length);
  1753.       
  1754.       ULONG APIENTRY GpiQueryFontAction(HAB anchor,
  1755.                                         ULONG options);
  1756.       
  1757.       BOOL  APIENTRY GpiLoadPublicFonts(HAB,
  1758.                                         PSZ);
  1759.       
  1760.       BOOL  APIENTRY GpiUnloadPublicFonts(HAB,
  1761.                                           PSZ);
  1762.       
  1763.       #ifndef INCL_SAADEFS
  1764.          
  1765.          BOOL    APIENTRY GpiSetCp(HPS hps,
  1766.                                    ULONG ulCodePage);
  1767.          
  1768.          ULONG   APIENTRY GpiQueryCp(HPS hps);
  1769.          
  1770.          LONG    APIENTRY GpiQueryFullFontFileDescs(HAB hab,
  1771.                                                     PSZ pszFilename,
  1772.                                                     PLONG plCount,
  1773.                                                     PVOID pNames,
  1774.                                                     PLONG plNamesBuffLength);
  1775.          
  1776.          LONG    APIENTRY GpiQueryFontFileDescriptions(HAB hab,
  1777.                                                        PSZ pszFilename,
  1778.                                                        PLONG plCount,
  1779.                                                        PFFDESCS affdescsNames);
  1780.          
  1781.       #endif /* no INCL_SAADEFS */
  1782.       
  1783.    #endif /* no INCL_DDIDEFS */
  1784.    
  1785. #endif /* non-common GPILCIDS */
  1786.  
  1787. #if (defined(INCL_GPIBITMAPS) || !defined(INCL_NOCOMMON))
  1788.    /* raster operations defined for GpiBitBlt */
  1789.    #define ROP_SRCCOPY                0x00CCL
  1790.    #define ROP_SRCPAINT               0x00EEL
  1791.    #define ROP_SRCAND                 0x0088L
  1792.    #define ROP_SRCINVERT              0x0066L
  1793.    #define ROP_SRCERASE               0x0044L
  1794.    #define ROP_NOTSRCCOPY             0x0033L
  1795.    #define ROP_NOTSRCERASE            0x0011L
  1796.    #define ROP_MERGECOPY              0x00C0L
  1797.    #define ROP_MERGEPAINT             0x00BBL
  1798.    #define ROP_PATCOPY                0x00F0L
  1799.    #define ROP_PATPAINT               0x00FBL
  1800.    #define ROP_PATINVERT              0x005AL
  1801.    #define ROP_DSTINVERT              0x0055L
  1802.    #define ROP_ZERO                   0x0000L
  1803.    #define ROP_ONE                    0x00FFL
  1804.    
  1805.    /* Blt options for GpiBitBlt */
  1806.    #define BBO_OR                          0L
  1807.    #define BBO_AND                         1L
  1808.    #define BBO_IGNORE                      2L
  1809.    #define BBO_PAL_COLORS                  4L
  1810.    #define BBO_NO_COLOR_INFO               8L
  1811.    
  1812.    /* Fill options for GpiFloodFill */
  1813.    #define FF_BOUNDARY                     0L
  1814.    #define FF_SURFACE                      1L
  1815.    
  1816.    /* error return for GpiSetBitmap */
  1817.    #define HBM_ERROR            ((HBITMAP)-1L)
  1818.    
  1819.    #ifndef INCL_DDIDEFS
  1820.       /*** bitmap and pel functions */
  1821.       
  1822.       LONG     APIENTRY GpiBitBlt(HPS hpsTarget,
  1823.                                   HPS hpsSource,
  1824.                                   LONG lCount,
  1825.                                   PPOINTL aptlPoints,
  1826.                                   LONG lRop,
  1827.                                   ULONG flOptions);
  1828.       
  1829.       BOOL     APIENTRY GpiDeleteBitmap(HBITMAP hbm);
  1830.       
  1831.       HBITMAP  APIENTRY GpiLoadBitmap(HPS hps,
  1832.                                       HMODULE Resource,
  1833.                                       ULONG idBitmap,
  1834.                                       LONG lWidth,
  1835.                                       LONG lHeight);
  1836.       
  1837.       HBITMAP  APIENTRY GpiSetBitmap(HPS hps,
  1838.                                      HBITMAP hbm);
  1839.       
  1840.       LONG     APIENTRY GpiWCBitBlt(HPS hpsTarget,
  1841.                                     HBITMAP hbmSource,
  1842.                                     LONG lCount,
  1843.                                     PPOINTL aptlPoints,
  1844.                                     LONG lRop,
  1845.                                     ULONG flOptions);
  1846.       
  1847.    #endif /* no INCL_DDIDEFS */
  1848.    
  1849. #endif /* common GPIBITMAPS */
  1850.  
  1851. #ifdef INCL_GPIBITMAPS
  1852.    
  1853.    /*** include bitmap structures and file formats *************************/
  1854.    #include <pmbitmap.h>
  1855.    
  1856.    /* usage flags for GpiCreateBitmap */
  1857.    #define CBM_INIT        0x0004L
  1858.    
  1859.    /* error return code for GpiSet/QueryBitmapBits */
  1860.    #define BMB_ERROR                     (-1L)
  1861.    
  1862.    #ifndef INCL_DDIDEFS
  1863.       
  1864.       /*** bitmap and pel functions */
  1865.       
  1866.       HBITMAP APIENTRY GpiCreateBitmap(HPS hps,
  1867.                                        PBITMAPINFOHEADER2 pbmpNew,
  1868.                                        ULONG flOptions,
  1869.                                        PBYTE pbInitData,
  1870.                                        PBITMAPINFO2 pbmiInfoTable);
  1871.       
  1872.       LONG    APIENTRY GpiSetBitmapBits(HPS hps,
  1873.                                         LONG lScanStart,
  1874.                                         LONG lScans,
  1875.                                         PBYTE pbBuffer,
  1876.                                         PBITMAPINFO2 pbmiInfoTable);
  1877.       
  1878.       BOOL    APIENTRY GpiSetBitmapDimension(HBITMAP hbm,
  1879.                                              PSIZEL psizlBitmapDimension);
  1880.       
  1881.       BOOL    APIENTRY GpiSetBitmapId(HPS hps,
  1882.                                       HBITMAP hbm,
  1883.                                       LONG lLcid);
  1884.       
  1885.       LONG    APIENTRY GpiQueryBitmapBits(HPS hps,
  1886.                                           LONG lScanStart,
  1887.                                           LONG lScans,
  1888.                                           PBYTE pbBuffer,
  1889.                                           PBITMAPINFO2 pbmiInfoTable);
  1890.       
  1891.       BOOL    APIENTRY GpiQueryBitmapDimension(HBITMAP hbm,
  1892.                                                PSIZEL psizlBitmapDimension);
  1893.       
  1894.       HBITMAP APIENTRY GpiQueryBitmapHandle(HPS hps,
  1895.                                             LONG lLcid);
  1896.       
  1897.       BOOL    APIENTRY GpiQueryBitmapParameters(HBITMAP hbm,
  1898.                                                 PBITMAPINFOHEADER pbmpData);
  1899.       
  1900.       BOOL    APIENTRY GpiQueryBitmapInfoHeader(HBITMAP hbm,
  1901.                                                 PBITMAPINFOHEADER2 pbmpData);
  1902.       
  1903.       BOOL    APIENTRY GpiQueryDeviceBitmapFormats(HPS hps,
  1904.                                                    LONG lCount,
  1905.                                                    PLONG alArray);
  1906.       
  1907.       LONG    APIENTRY GpiSetPel(HPS hps,
  1908.                                  PPOINTL pptlPoint);
  1909.       
  1910.       LONG    APIENTRY GpiQueryPel(HPS hps,
  1911.                                    PPOINTL pptlPoint);
  1912.       
  1913.       LONG    APIENTRY GpiFloodFill(HPS hps,
  1914.                                     LONG lOptions,
  1915.                                     LONG lColor);
  1916.       
  1917.       LONG    APIENTRY GpiDrawBits(HPS hps,
  1918.                                    PVOID pBits,
  1919.                                    PBITMAPINFO2 pbmiInfoTable,
  1920.                                    LONG lCount,
  1921.                                    PPOINTL aptlPoints,
  1922.                                    LONG lRop,
  1923.                                    ULONG flOptions);
  1924.       
  1925.    #endif /* no INCL_DDIDEFS */
  1926.    
  1927.    
  1928. #endif /* INCL_GPIBITMAPS */
  1929.  
  1930. #ifdef INCL_GPIREGIONS
  1931.    
  1932.    /* options for GpiCombineRegion */
  1933.    #define CRGN_OR                         1L
  1934.    #define CRGN_COPY                       2L
  1935.    #define CRGN_XOR                        4L
  1936.    #define CRGN_AND                        6L
  1937.    #define CRGN_DIFF                       7L
  1938.    
  1939.    /* usDirection of returned region data for GpiQueryRegionRects */
  1940.    #define RECTDIR_LFRT_TOPBOT             1L
  1941.    #define RECTDIR_RTLF_TOPBOT             2L
  1942.    #define RECTDIR_LFRT_BOTTOP             3L
  1943.    #define RECTDIR_RTLF_BOTTOP             4L
  1944.    
  1945.    /* control data for GpiQueryRegionRects */
  1946.    typedef struct _RGNRECT          /* rgnrc */
  1947.    {
  1948.       ULONG  ircStart;
  1949.       ULONG  crc;
  1950.       ULONG  crcReturned;
  1951.       ULONG  ulDirection;
  1952.    } RGNRECT;
  1953.    typedef RGNRECT *PRGNRECT;
  1954.    
  1955.    /* return code to indicate type of region for GpiCombineRegion and others */
  1956.    #define RGN_ERROR                       0L
  1957.    #define RGN_NULL                        1L
  1958.    #define RGN_RECT                        2L
  1959.    #define RGN_COMPLEX                     3L
  1960.    
  1961.    /* return codes for GpiPtInRegion */
  1962.    #define PRGN_ERROR                      0L
  1963.    #define PRGN_OUTSIDE                    1L
  1964.    #define PRGN_INSIDE                     2L
  1965.    
  1966.    /* return codes for GpiRectInRegion */
  1967.    #define RRGN_ERROR                      0L
  1968.    #define RRGN_OUTSIDE                    1L
  1969.    #define RRGN_PARTIAL                    2L
  1970.    #define RRGN_INSIDE                     3L
  1971.    
  1972.    /* return codes for GpiEqualRegion */
  1973.    #define EQRGN_ERROR                     0L
  1974.    #define EQRGN_NOTEQUAL                  1L
  1975.    #define EQRGN_EQUAL                     2L
  1976.    
  1977.    /* error return code for GpiSetRegion */
  1978.    #define HRGN_ERROR              ((HRGN)-1L)
  1979.    
  1980.    #ifndef INCL_DDIDEFS
  1981.       
  1982.       
  1983.       /*** main region functions */
  1984.       LONG  APIENTRY GpiCombineRegion(HPS hps,
  1985.                                       HRGN hrgnDest,
  1986.                                       HRGN hrgnSrc1,
  1987.                                       HRGN hrgnSrc2,
  1988.                                       LONG lMode);
  1989.       
  1990.       HRGN  APIENTRY GpiCreateRegion(HPS hps,
  1991.                                      LONG lCount,
  1992.                                      PRECTL arclRectangles);
  1993.       
  1994.       BOOL  APIENTRY GpiDestroyRegion(HPS hps,
  1995.                                       HRGN hrgn);
  1996.       
  1997.       LONG  APIENTRY GpiEqualRegion(HPS hps,
  1998.                                     HRGN hrgnSrc1,
  1999.                                     HRGN hrgnSrc2);
  2000.       
  2001.       BOOL  APIENTRY GpiOffsetRegion(HPS hps,
  2002.                                      HRGN Hrgn,
  2003.                                      PPOINTL pptlOffset);
  2004.       
  2005.       LONG  APIENTRY GpiPaintRegion(HPS hps,
  2006.                                     HRGN hrgn);
  2007.       
  2008.       LONG  APIENTRY GpiFrameRegion(HPS hps,
  2009.                                     HRGN hrgn,
  2010.                                     PSIZEL thickness);
  2011.       
  2012.       LONG  APIENTRY GpiPtInRegion(HPS hps,
  2013.                                    HRGN hrgn,
  2014.                                    PPOINTL pptlPoint);
  2015.       
  2016.       LONG  APIENTRY GpiQueryRegionBox(HPS hps,
  2017.                                        HRGN hrgn,
  2018.                                        PRECTL prclBound);
  2019.       
  2020.       BOOL  APIENTRY GpiQueryRegionRects(HPS hps,
  2021.                                          HRGN hrgn,
  2022.                                          PRECTL prclBound,
  2023.                                          PRGNRECT prgnrcControl,
  2024.                                          PRECTL prclRect);
  2025.       
  2026.       LONG  APIENTRY GpiRectInRegion(HPS hps,
  2027.                                      HRGN hrgn,
  2028.                                      PRECTL prclRect);
  2029.       
  2030.       BOOL  APIENTRY GpiSetRegion(HPS hps,
  2031.                                   HRGN hrgn,
  2032.                                   LONG lcount,
  2033.                                   PRECTL arclRectangles);
  2034.       
  2035.       /*** clip region functions */
  2036.       LONG  APIENTRY GpiSetClipRegion(HPS hps,
  2037.                                       HRGN hrgn,
  2038.                                       PHRGN phrgnOld);
  2039.       
  2040.       #ifndef INCL_SAADEFS
  2041.          
  2042.          
  2043.          HRGN  APIENTRY GpiQueryClipRegion(HPS hps);
  2044.          
  2045.          LONG  APIENTRY GpiQueryClipBox(HPS hps,
  2046.                                         PRECTL prclBound);
  2047.          
  2048.       #endif /* no INCL_SAADEFS */
  2049.       
  2050.       
  2051.       LONG  APIENTRY GpiExcludeClipRectangle(HPS hps,
  2052.                                              PRECTL prclRectangle);
  2053.       
  2054.       LONG  APIENTRY GpiIntersectClipRectangle(HPS hps,
  2055.                                                PRECTL prclRectangle);
  2056.       
  2057.       #ifndef INCL_SAADEFS
  2058.          
  2059.          
  2060.          LONG  APIENTRY GpiOffsetClipRegion(HPS hps,
  2061.                                             PPOINTL pptlPoint);
  2062.          
  2063.       #endif /* no INCL_SAADEFS */
  2064.       
  2065.    #endif /* no INCL_DDIDEFS */
  2066.    
  2067. #endif /* non-common GPIREGIONS */
  2068. #ifdef INCL_GPIMETAFILES
  2069.    
  2070.    #ifndef INCL_DDIDEFS
  2071.       
  2072.       /* constants for index values of options array for GpiPlayMetaFile */
  2073.       #define PMF_SEGBASE                     0
  2074.       #define PMF_LOADTYPE                    1
  2075.       #define PMF_RESOLVE                     2
  2076.       #define PMF_LCIDS                       3
  2077.       #define PMF_RESET                       4
  2078.       #define PMF_SUPPRESS                    5
  2079.       #define PMF_COLORTABLES                 6
  2080.       #define PMF_COLORREALIZABLE             7
  2081.       #define PMF_DEFAULTS                    8
  2082.       #define PMF_DELETEOBJECTS               9
  2083.       
  2084.       /* options for GpiPlayMetaFile */
  2085.       #define RS_DEFAULT                      0L
  2086.       #define RS_NODISCARD                    1L
  2087.       #define LC_DEFAULT                      0L
  2088.       #define LC_NOLOAD                       1L
  2089.       #define LC_LOADDISC                     3L
  2090.       #define LT_DEFAULT                      0L
  2091.       #define LT_NOMODIFY                     1L
  2092.       #define LT_ORIGINALVIEW                 4L
  2093.       #define RES_DEFAULT                     0L
  2094.       #define RES_NORESET                     1L
  2095.       #define RES_RESET                       2L
  2096.       #define SUP_DEFAULT                     0L
  2097.       #define SUP_NOSUPPRESS                  1L
  2098.       #define SUP_SUPPRESS                    2L
  2099.       #define CTAB_DEFAULT                    0L
  2100.       #define CTAB_NOMODIFY                   1L
  2101.       #define CTAB_REPLACE                    3L
  2102.       #define CTAB_REPLACEPALETTE             4L
  2103.       #define CREA_DEFAULT                    0L
  2104.       #define CREA_REALIZE                    1L
  2105.       #define CREA_NOREALIZE                  2L
  2106.       #define CREA_DOREALIZE                  3L
  2107.       
  2108.       #ifndef INCL_SAADEFS
  2109.          
  2110.          #define DDEF_DEFAULT                    0L
  2111.          #define DDEF_IGNORE                     1L
  2112.          #define DDEF_LOADDISC                   3L
  2113.          #define DOBJ_DEFAULT                    0L
  2114.          #define DOBJ_NODELETE                   1L
  2115.          #define DOBJ_DELETE                     2L
  2116.          #define RSP_DEFAULT                     0L
  2117.          #define RSP_NODISCARD                   1L
  2118.          
  2119.       #endif /* no INCL_SAADEFS */
  2120.       
  2121.       /*** MetaFile functions */
  2122.       
  2123.       HMF   APIENTRY GpiCopyMetaFile(HMF hmf);
  2124.       
  2125.       BOOL  APIENTRY GpiDeleteMetaFile(HMF hmf);
  2126.       
  2127.       HMF   APIENTRY GpiLoadMetaFile(HAB hab,
  2128.                                      PSZ pszFilename);
  2129.       
  2130.       LONG  APIENTRY GpiPlayMetaFile(HPS hps,
  2131.                                      HMF hmf,
  2132.                                      LONG lCount1,
  2133.                                      PLONG alOptarray,
  2134.                                      PLONG plSegCount,
  2135.                                      LONG lCount2,
  2136.                                      PSZ pszDesc);
  2137.       
  2138.       BOOL  APIENTRY GpiQueryMetaFileBits(HMF hmf,
  2139.                                           LONG lOffset,
  2140.                                           LONG lLength,
  2141.                                           PBYTE pbData);
  2142.       
  2143.       LONG  APIENTRY GpiQueryMetaFileLength(HMF hmf);
  2144.       
  2145.       BOOL  APIENTRY GpiSaveMetaFile(HMF hmf,
  2146.                                      PSZ pszFilename);
  2147.       
  2148.       #ifndef INCL_SAADEFS
  2149.          
  2150.          BOOL  APIENTRY GpiSetMetaFileBits(HMF hmf,
  2151.                                            LONG lOffset,
  2152.                                            LONG lLength,
  2153.                                            PBYTE pbBuffer);
  2154.       #endif /* no INCL_SAADEFS */
  2155.       
  2156.    #endif /* no INCL_DDIDEFS */
  2157.    
  2158. #endif /* non-common GPIMETAFILES */
  2159.  
  2160. #ifdef INCL_GPIDEFAULTS
  2161.    
  2162.    /*** default functions */
  2163.    
  2164.    BOOL  APIENTRY GpiQueryDefArcParams(HPS hps,
  2165.                                        PARCPARAMS parcpArcParams);
  2166.    
  2167.    BOOL  APIENTRY GpiQueryDefAttrs(HPS hps,
  2168.                                    LONG lPrimType,
  2169.                                    ULONG flAttrMask,
  2170.                                    PBUNDLE ppbunAttrs);
  2171.    
  2172.    BOOL  APIENTRY GpiQueryDefTag(HPS hps,
  2173.                                  PLONG plTag);
  2174.    
  2175.    BOOL  APIENTRY GpiQueryDefViewingLimits(HPS hps,
  2176.                                            PRECTL prclLimits);
  2177.    
  2178.    BOOL  APIENTRY GpiSetDefArcParams(HPS hps,
  2179.                                      PARCPARAMS parcpArcParams);
  2180.    
  2181.    BOOL  APIENTRY GpiSetDefAttrs(HPS hps,
  2182.                                  LONG lPrimType,
  2183.                                  ULONG flAttrMask,
  2184.                                  PBUNDLE ppbunAttrs);
  2185.    
  2186.    BOOL  APIENTRY GpiSetDefTag(HPS hps,
  2187.                                LONG lTag);
  2188.    
  2189.    BOOL  APIENTRY GpiSetDefViewingLimits(HPS hps,
  2190.                                          PRECTL prclLimits);
  2191.    
  2192.    
  2193. #endif /* GPIDEFAULTS */
  2194.  
  2195. #ifdef INCL_GPIPOLYGON
  2196.    typedef struct _POLYGON   /* plygn */
  2197.    {
  2198.       ULONG       ulPoints;
  2199.       PPOINTL     aPointl;
  2200.    } POLYGON;
  2201.    typedef POLYGON *PPOLYGON;
  2202.    
  2203.    typedef struct _POLYSET   /* plyst */
  2204.    {
  2205.       ULONG       ulPolys;
  2206.       POLYGON     aPolygon[1];
  2207.    } POLYSET;
  2208.    typedef POLYSET *PPOLYSET;
  2209.    
  2210.    /* control flags used by GpiPolygons */
  2211.    #define POLYGON_NOBOUNDARY                   0L
  2212.    #define POLYGON_BOUNDARY                0x0001L
  2213.    
  2214.    #define POLYGON_ALTERNATE                    0L
  2215.    #define POLYGON_WINDING                 0x0002L
  2216.    
  2217.    #define POLYGON_INCL                         0L
  2218.    #define POLYGON_EXCL                    0x0008L
  2219.    
  2220.    #ifndef INCL_DDIDEFS
  2221.       
  2222.       LONG APIENTRY GpiPolygons(HPS hps,
  2223.                                 ULONG ulCount,
  2224.                                 PPOLYGON paplgn,
  2225.                                 ULONG flOptions,
  2226.                                 ULONG flModel);
  2227.       
  2228.    #endif /* no INCL_DDIDEFS */
  2229. #endif /* non-common GPIPOLYGON */
  2230.  
  2231. #ifdef INCL_GPIERRORS
  2232.    #include <pmerr.h>
  2233. #endif /* GPIERRORS */
  2234.  
  2235.  
  2236. /* NOINC */
  2237. #ifdef __IBMC__
  2238.    #pragma checkout( suspend )
  2239.    #ifndef __CHKHDR__
  2240.       #pragma checkout( resume )
  2241.    #endif
  2242.    #pragma checkout( resume )
  2243. #endif
  2244. /* INC */
  2245.  
  2246. /**************************** end of file **********************************/
  2247.