Last change
on this file since 1148 was 1046, checked in by alloc, 8 years ago |
Daodan: Added Windows MinGW and build batch file
|
File size:
1.2 KB
|
Rev | Line | |
---|
[1046] | 1 | /*
|
---|
| 2 | * gdiplusbase.h
|
---|
| 3 | *
|
---|
| 4 | * GDI+ base class
|
---|
| 5 | *
|
---|
| 6 | * This file is part of the w32api package.
|
---|
| 7 | *
|
---|
| 8 | * Contributors:
|
---|
| 9 | * Created by Markus Koenig <markus@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_BASE_H
|
---|
| 24 | #define __GDIPLUS_BASE_H
|
---|
| 25 | #if __GNUC__ >=3
|
---|
| 26 | #pragma GCC system_header
|
---|
| 27 | #endif
|
---|
| 28 |
|
---|
| 29 | #ifndef __cplusplus
|
---|
| 30 | #error "A C++ compiler is required to include gdiplusbase.h."
|
---|
| 31 | #endif
|
---|
| 32 |
|
---|
| 33 | class GdiplusBase
|
---|
| 34 | {
|
---|
| 35 | public:
|
---|
| 36 | static void* operator new(size_t in_size)
|
---|
| 37 | {
|
---|
| 38 | return DllExports::GdipAlloc(in_size);
|
---|
| 39 | }
|
---|
| 40 | static void* operator new[](size_t in_size)
|
---|
| 41 | {
|
---|
| 42 | return DllExports::GdipAlloc(in_size);
|
---|
| 43 | }
|
---|
| 44 | static void operator delete(void *in_pVoid)
|
---|
| 45 | {
|
---|
| 46 | DllExports::GdipFree(in_pVoid);
|
---|
| 47 | }
|
---|
| 48 | static void operator delete[](void *in_pVoid)
|
---|
| 49 | {
|
---|
| 50 | DllExports::GdipFree(in_pVoid);
|
---|
| 51 | }
|
---|
| 52 | };
|
---|
| 53 |
|
---|
| 54 | #endif /* __GDIPLUS_BASE_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.