1 | /* $Id: OS2CLIPPER.H,v 1.3 1999-06-10 17:10:56 phaller Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * DirectDraw Clipper Class
|
---|
5 | *
|
---|
6 | * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
7 | *
|
---|
8 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
9 | *
|
---|
10 | */
|
---|
11 | #ifndef __OS2CLIPPER_H__
|
---|
12 | #define __OS2CLIPPER_H__
|
---|
13 |
|
---|
14 | /* KSO Apr 19 1999: Set correct interface. *
|
---|
15 | * (INTERFACE is used in the THIS and THIS_ macros) */
|
---|
16 | #undef INTERFACE
|
---|
17 | #define INTERFACE IDirectDrawClipper
|
---|
18 |
|
---|
19 | class OS2IDirectDrawClipper
|
---|
20 | {
|
---|
21 | public:
|
---|
22 | //this one has to go first!
|
---|
23 | IDirectDrawClipperVtbl *lpVtbl;
|
---|
24 | IDirectDrawClipperVtbl Vtbl;
|
---|
25 |
|
---|
26 | OS2IDirectDrawClipper(OS2IDirectDraw *lpDirectDraw);
|
---|
27 | ~OS2IDirectDrawClipper();
|
---|
28 |
|
---|
29 | int Referenced;
|
---|
30 | inline HRESULT GetLastError() { return lastError; };
|
---|
31 | private:
|
---|
32 |
|
---|
33 | protected:
|
---|
34 | HRESULT lastError;
|
---|
35 | OS2IDirectDraw *lpDraw;
|
---|
36 | HDIVE hDive;
|
---|
37 | W32_HWND clipWindow;
|
---|
38 |
|
---|
39 | // Linked list management
|
---|
40 | OS2IDirectDrawClipper* next; // Next OS2IDirectDraw
|
---|
41 | static OS2IDirectDrawClipper* ddraw; // List of OS2IDirectDraw
|
---|
42 |
|
---|
43 | friend HRESULT __stdcall ClipQueryInterface(THIS_ REFIID riid, LPVOID FAR * ppvObj);
|
---|
44 | friend ULONG __stdcall ClipAddRef(THIS);
|
---|
45 | friend ULONG __stdcall ClipRelease(THIS);
|
---|
46 | friend HRESULT __stdcall ClipGetClipList(THIS_ W32_LPRECT, W32_LPRGNDATA, LPDWORD);
|
---|
47 | friend HRESULT __stdcall ClipGetHWnd(THIS_ W32_HWND FAR *);
|
---|
48 | friend HRESULT __stdcall ClipInitialize(THIS_ LPDIRECTDRAW, DWORD);
|
---|
49 | friend HRESULT __stdcall ClipIsClipListChanged(THIS_ BOOL FAR *);
|
---|
50 | friend HRESULT __stdcall ClipSetClipList(THIS_ W32_LPRGNDATA,DWORD);
|
---|
51 | friend HRESULT __stdcall ClipSetHWnd(THIS_ DWORD, W32_HWND );
|
---|
52 | };
|
---|
53 |
|
---|
54 | HRESULT __stdcall ClipQueryInterface(THIS_ REFIID riid, LPVOID FAR * ppvObj);
|
---|
55 | ULONG __stdcall ClipAddRef(THIS);
|
---|
56 | ULONG __stdcall ClipRelease(THIS);
|
---|
57 | HRESULT __stdcall ClipGetClipList(THIS_ W32_LPRECT, W32_LPRGNDATA, LPDWORD);
|
---|
58 | HRESULT __stdcall ClipGetHWnd(THIS_ W32_HWND FAR *);
|
---|
59 | HRESULT __stdcall ClipInitialize(THIS_ LPDIRECTDRAW, DWORD);
|
---|
60 | HRESULT __stdcall ClipIsClipListChanged(THIS_ BOOL FAR *);
|
---|
61 | HRESULT __stdcall ClipSetClipList(THIS_ W32_LPRGNDATA,DWORD);
|
---|
62 | HRESULT __stdcall ClipSetHWnd(THIS_ DWORD, W32_HWND );
|
---|
63 |
|
---|
64 | #endif
|
---|