Home | History | Annotate | Download | only in gdiplus
      1 /*
      2  * gdiplusgpstubs.h
      3  *
      4  * GDI+ Gp* type declarations
      5  *
      6  * This file is part of the w32api package.
      7  *
      8  * Contributors:
      9  *   Created by Markus Koenig <markus (at) stber-koenig.de>
     10  *
     11  * THIS SOFTWARE IS NOT COPYRIGHTED
     12  *
     13  * This source code is offered for use in the public domain. You may
     14  * use, modify or distribute it freely.
     15  *
     16  * This code is distributed in the hope that it will be useful but
     17  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
     18  * DISCLAIMED. This includes but is not limited to warranties of
     19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     20  *
     21  */
     22 
     23 #ifndef __GDIPLUS_GPSTUBS_H
     24 #define __GDIPLUS_GPSTUBS_H
     25 #if __GNUC__ >=3
     26 #pragma GCC system_header
     27 #endif
     28 
     29 typedef Point GpPoint;
     30 typedef PointF GpPointF;
     31 typedef Rect GpRect;
     32 typedef RectF GpRectF;
     33 typedef Size GpSize;
     34 typedef SizeF GpSizeF;
     35 
     36 typedef enum BrushType GpBrushType;
     37 typedef enum CombineMode GpCombineMode;
     38 typedef enum CompositingMode GpCompositingMode;
     39 typedef enum CompositingQuality GpCompositingQuality;
     40 typedef enum CoordinateSpace GpCoordinateSpace;
     41 typedef enum CustomLineCapType GpCustomLineCapType;
     42 typedef enum DashCap GpDashCap;
     43 typedef enum DashStyle GpDashStyle;
     44 typedef enum DitherType GpDitherType;
     45 typedef enum DriverStringOptions GpDriverStringOptions;
     46 typedef enum EmfPlusRecordType GpEmfPlusRecordType;
     47 typedef enum EmfToWmfBitsFlags GpEmfToWmfBitsFlags;
     48 typedef enum EmfType GpEmfType;
     49 typedef enum EncoderParameterValueType GpEncoderParameterValueType;
     50 typedef enum EncoderValue GpEncoderValue;
     51 typedef enum FillMode GpFillMode;
     52 typedef enum FlushIntention GpFlushIntention;
     53 typedef enum FontStyle GpFontStyle;
     54 typedef enum HatchStyle GpHatchStyle;
     55 typedef enum HotkeyPrefix GpHotkeyPrefix;
     56 typedef enum ImageType GpImageType;
     57 typedef enum InterpolationMode GpInterpolationMode;
     58 typedef enum LinearGradientMode GpLinearGradientMode;
     59 typedef enum LineCap GpLineCap;
     60 typedef enum LineJoin GpLineJoin;
     61 typedef enum MatrixOrder GpMatrixOrder;
     62 typedef enum MetafileFrameUnit GpMetafileFrameUnit;
     63 typedef enum MetafileType GpMetafileType;
     64 typedef enum ObjectType GpObjectType;
     65 typedef enum PathPointType GpPathPointType;
     66 typedef enum PenAlignment GpPenAlignment;
     67 typedef enum PenType GpPenType;
     68 typedef enum PixelOffsetMode GpPixelOffsetMode;
     69 typedef enum QualityMode GpQualityMode;
     70 typedef enum SmoothingMode GpSmoothingMode;
     71 typedef enum StringAlignment GpStringAlignment;
     72 typedef enum StringDigitSubstitute GpStringDigitSubstitute;
     73 typedef enum StringFormatFlags GpStringFormatFlags;
     74 typedef enum StringTrimming GpStringTrimming;
     75 typedef enum TextRenderingHint GpTextRenderingHint;
     76 typedef enum Unit GpUnit;
     77 typedef enum WarpMode GpWarpMode;
     78 typedef enum WrapMode GpWrapMode;
     79 
     80 #ifdef __cplusplus
     81 
     82 class CGpEffect {};
     83 class GpCustomLineCap {};
     84 class GpImage {};
     85 
     86 class GpAdjustableArrowCap: public GpCustomLineCap {};
     87 class GpBitmap: public GpImage {};
     88 class GpBrush {};
     89 class GpCachedBitmap {};
     90 class GpFont {};
     91 class GpFontCollection {};
     92 class GpFontFamily {};
     93 class GpGraphics {};
     94 class GpHatch: public GpBrush {};         /* HatchBrush */
     95 class GpImageAttributes {};
     96 class GpLineGradient: public GpBrush {};  /* LinearGradientBrush */
     97 class GpMatrix {};
     98 class GpMetafile: public GpImage {};
     99 class GpPath {};                          /* GraphicsPath */
    100 class GpPathData {};
    101 class GpPathGradient: public GpBrush {};  /* PathGradientBrush */
    102 class GpPathIterator {};                  /* GraphicsPathIterator */
    103 class GpPen {};
    104 class GpRegion {};
    105 class GpSolidFill: public GpBrush {};     /* SolidBrush */
    106 class GpStringFormat {};
    107 class GpTexture: public GpBrush {};       /* TextureBrush */
    108 
    109 #else /* !__cplusplus */
    110 
    111 typedef void CGpEffect;
    112 typedef void GpAdjustableArrowCap;
    113 typedef void GpBitmap;
    114 typedef void GpBrush;
    115 typedef void GpCachedBitmap;
    116 typedef void GpCustomLineCap;
    117 typedef void GpFont;
    118 typedef void GpFontFamily;
    119 typedef void GpFontCollection;
    120 typedef void GpGraphics;
    121 typedef void GpHatch;
    122 typedef void GpImage;
    123 typedef void GpImageAttributes;
    124 typedef void GpLineGradient;
    125 typedef void GpMatrix;
    126 typedef void GpMetafile;
    127 typedef void GpPath;
    128 typedef void GpPathData;
    129 typedef void GpPathGradient;
    130 typedef void GpPathIterator;
    131 typedef void GpPen;
    132 typedef void GpRegion;
    133 typedef void GpSolidFill;
    134 typedef void GpStringFormat;
    135 typedef void GpTexture;
    136 
    137 #endif /* !__cplusplus */
    138 
    139 #endif /* __GDIPLUS_GPSTUBS_H */
    140