home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / os2tk20 / c / os2h / pmgpi.h__ / PMGPI.H
Encoding:
C/C++ Source or Header  |  1992-10-05  |  80.8 KB  |  2,243 lines

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