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