Reactos
at master 112 lines 2.0 kB view raw
1/* 2 * GdiPlusBase.h 3 * 4 * Windows GDI+ 5 * 6 * This file is part of the w32api package. 7 * 8 * THIS SOFTWARE IS NOT COPYRIGHTED 9 * 10 * This source code is offered for use in the public domain. You may 11 * use, modify or distribute it freely. 12 * 13 * This code is distributed in the hope that it will be useful but 14 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY 15 * DISCLAIMED. This includes but is not limited to warranties of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 */ 18 19#ifndef _GDIPLUSBASE_H 20#define _GDIPLUSBASE_H 21 22class GdiplusBase 23{ 24 public: 25 void 26 operator delete(void *in_pVoid) 27 { 28 DllExports::GdipFree(in_pVoid); 29 } 30 31 void 32 operator delete[](void *in_pVoid) 33 { 34 DllExports::GdipFree(in_pVoid); 35 } 36 37 void * 38 operator new(size_t in_size) 39 { 40 return DllExports::GdipAlloc(in_size); 41 } 42 43 void * 44 operator new[](size_t in_size) 45 { 46 return DllExports::GdipAlloc(in_size); 47 } 48}; 49 50class Brush; 51class CachedBitmap; 52class CustomLineCap; 53class Font; 54class FontCollection; 55class FontFamily; 56class Graphics; 57class GraphicsPath; 58class Image; 59class ImageAttributes; 60class Matrix; 61class Metafile; 62class Pen; 63class Region; 64class StringFormat; 65 66// get native 67GpBrush *& 68getNat(const Brush *brush); 69 70GpCachedBitmap *& 71getNat(const CachedBitmap *cb); 72 73GpCustomLineCap *& 74getNat(const CustomLineCap *cap); 75 76GpFont *& 77getNat(const Font *font); 78 79GpFontCollection *& 80getNat(const FontCollection *fc); 81 82GpFontFamily *& 83getNat(const FontFamily *ff); 84 85GpGraphics *& 86getNat(const Graphics *graphics); 87 88GpPath *& 89getNat(const GraphicsPath *path); 90 91GpImage *& 92getNat(const Image *image); 93 94GpImageAttributes *& 95getNat(const ImageAttributes *ia); 96 97GpMatrix *& 98getNat(const Matrix *matrix); 99 100GpMetafile *& 101getNat(const Metafile *metafile); 102 103GpPen *& 104getNat(const Pen *pen); 105 106GpRegion *& 107getNat(const Region *region); 108 109GpStringFormat *& 110getNat(const StringFormat *sf); 111 112#endif /* _GDIPLUSBASE_H */