Last change
on this file since 353 was 241, checked in by イグトランス (egtra), 18 years ago |
GDI+に対して名前空間で囲ったものの、現在コンパイルできないため分岐させておく
|
File size:
1.3 KB
|
Rev | Line | |
---|
[13] | 1 | ' GdiPlusInit.ab
|
---|
| 2 |
|
---|
| 3 | #ifndef __GDIPLUSINIT_AB__
|
---|
| 4 | #define __GDIPLUSINIT_AB__
|
---|
| 5 |
|
---|
[241] | 6 | Namespace Gdiplus
|
---|
| 7 |
|
---|
[13] | 8 | Enum DebugEventLevel
|
---|
[77] | 9 | DebugEventLevelFatal
|
---|
| 10 | DebugEventLevelWarning
|
---|
[13] | 11 | End Enum
|
---|
| 12 |
|
---|
| 13 | Typedef DebugEventProc = *Sub(level As DebugEventLevel, message As *Char)
|
---|
| 14 |
|
---|
| 15 | Typedef NotificationHookProc = *Function(/*OUT*/ ByRef token As ULONG_PTR) As Status
|
---|
| 16 | TypeDef NotificationUnhookProc = *Sub(ByVal token As ULONG_PTR)
|
---|
| 17 |
|
---|
| 18 | Class GdiplusStartupInput
|
---|
| 19 | Public
|
---|
| 20 | GdiplusVersion As DWord
|
---|
| 21 | DebugEventCallback As VoidPtr
|
---|
| 22 | SuppressBackgroundThread As BOOL
|
---|
| 23 | SuppressExternalCodecs As BOOL
|
---|
| 24 |
|
---|
| 25 | Sub GdiplusStartupInput()(debugEventCallback As DebugEventProc, suppressBackgroundThread As BOOL, suppressExternalCodecs As BOOL)
|
---|
| 26 | GdiplusVersion = 1
|
---|
| 27 | DebugEventCallback = debugEventCallback
|
---|
| 28 | SuppressBackgroundThread = suppressBackgroundThread
|
---|
| 29 | SuppressExternalCodecs = suppressExternalCodecs
|
---|
| 30 | End Sub
|
---|
| 31 | End Class
|
---|
| 32 |
|
---|
| 33 | Type Align(8) GdiplusStartupOutput
|
---|
| 34 | NotificationHook As NotificationHookProc
|
---|
| 35 | NotificationUnhook As NotificationUnhookProc
|
---|
| 36 | End Type
|
---|
| 37 |
|
---|
[241] | 38 | Declare Function GdiplusStartup Lib "Gdiplus.dll" (
|
---|
[13] | 39 | /*OUT*/ ByRef token As ULONG_PTR,
|
---|
| 40 | ByRef input As GdiplusStartupInput,
|
---|
| 41 | /*OUT*/ ByVal output As *GdiplusStartupOutput) As Status
|
---|
| 42 |
|
---|
[241] | 43 | Declare Sub GdiplusShutdown Lib "Gdiplus.dll" (ByVal token As ULONG_PTR)
|
---|
[13] | 44 |
|
---|
[241] | 45 | End Namespace
|
---|
| 46 |
|
---|
[13] | 47 | #endif '__GDIPLUSINIT_AB__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.