|
Last change
on this file since 704 was 241, checked in by イグトランス (egtra), 18 years ago |
|
GDI+に対して名前空間で囲ったものの、現在コンパイルできないため分岐させておく
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | ' GdiPlusInit.ab
|
|---|
| 2 |
|
|---|
| 3 | #ifndef __GDIPLUSINIT_AB__
|
|---|
| 4 | #define __GDIPLUSINIT_AB__
|
|---|
| 5 |
|
|---|
| 6 | Namespace Gdiplus
|
|---|
| 7 |
|
|---|
| 8 | Enum DebugEventLevel
|
|---|
| 9 | DebugEventLevelFatal
|
|---|
| 10 | DebugEventLevelWarning
|
|---|
| 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 |
|
|---|
| 38 | Declare Function GdiplusStartup Lib "Gdiplus.dll" (
|
|---|
| 39 | /*OUT*/ ByRef token As ULONG_PTR,
|
|---|
| 40 | ByRef input As GdiplusStartupInput,
|
|---|
| 41 | /*OUT*/ ByVal output As *GdiplusStartupOutput) As Status
|
|---|
| 42 |
|
|---|
| 43 | Declare Sub GdiplusShutdown Lib "Gdiplus.dll" (ByVal token As ULONG_PTR)
|
|---|
| 44 |
|
|---|
| 45 | End Namespace
|
|---|
| 46 |
|
|---|
| 47 | #endif '__GDIPLUSINIT_AB__
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.