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