Embed:
(wiki syntax)
Show/hide line numbers
gdiplusbase.h
00001 /* 00002 * gdiplusbase.h 00003 * 00004 * GDI+ base class 00005 * 00006 * This file is part of the w32api package. 00007 * 00008 * Contributors: 00009 * Created by Markus Koenig <markus@stber-koenig.de> 00010 * 00011 * THIS SOFTWARE IS NOT COPYRIGHTED 00012 * 00013 * This source code is offered for use in the public domain. You may 00014 * use, modify or distribute it freely. 00015 * 00016 * This code is distributed in the hope that it will be useful but 00017 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY 00018 * DISCLAIMED. This includes but is not limited to warranties of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00020 * 00021 */ 00022 00023 #ifndef __GDIPLUS_BASE_H 00024 #define __GDIPLUS_BASE_H 00025 #if __GNUC__ >=3 00026 #pragma GCC system_header 00027 #endif 00028 00029 #ifndef __cplusplus 00030 #error "A C++ compiler is required to include gdiplusbase.h." 00031 #endif 00032 00033 class GdiplusBase 00034 { 00035 public: 00036 static void* operator new(size_t in_size) 00037 { 00038 return DllExports::GdipAlloc(in_size); 00039 } 00040 static void* operator new[](size_t in_size) 00041 { 00042 return DllExports::GdipAlloc(in_size); 00043 } 00044 static void operator delete(void *in_pVoid) 00045 { 00046 DllExports::GdipFree(in_pVoid); 00047 } 00048 static void operator delete[](void *in_pVoid) 00049 { 00050 DllExports::GdipFree(in_pVoid); 00051 } 00052 }; 00053 00054 #endif /* __GDIPLUS_BASE_H */
Generated on Tue Jul 12 2022 19:59:54 by
1.7.2