[3345] | 1 | /* $Id: OS2CLIPPER.H,v 1.1 2000-04-07 18:21:03 mike Exp $ */
|
---|
| 2 |
|
---|
| 3 | /*
|
---|
| 4 | * DX clipper class definition
|
---|
| 5 | *
|
---|
| 6 | * Copyright 1998 Sander va Leeuwen
|
---|
| 7 | *
|
---|
| 8 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 9 | *
|
---|
| 10 | */
|
---|
| 11 | #ifndef __OS2CLIPPER_H__
|
---|
| 12 | #define __OS2CLIPPER_H__
|
---|
| 13 |
|
---|
| 14 | #include "divewrap.h"
|
---|
| 15 | #define FAR
|
---|
| 16 | #undef THIS
|
---|
| 17 | #define THIS IDirectDrawClipper*
|
---|
| 18 | class OS2IDirectDrawClipper
|
---|
| 19 | {
|
---|
| 20 | public:
|
---|
| 21 | //this one has to go first!
|
---|
| 22 | IDirectDrawClipperVtbl *lpVtbl;
|
---|
| 23 | IDirectDrawClipperVtbl Vtbl;
|
---|
| 24 |
|
---|
| 25 | OS2IDirectDrawClipper(OS2IDirectDraw *lpDirectDraw);
|
---|
| 26 | ~OS2IDirectDrawClipper();
|
---|
| 27 |
|
---|
| 28 | int Referenced;
|
---|
| 29 | inline HRESULT GetLastError() { return lastError; };
|
---|
| 30 | private:
|
---|
| 31 |
|
---|
| 32 | protected:
|
---|
| 33 | HRESULT lastError;
|
---|
| 34 | OS2IDirectDraw *lpDraw;
|
---|
| 35 | HDIVE hDive;
|
---|
| 36 | HWND clipWindow;
|
---|
| 37 |
|
---|
| 38 | // Linked list management
|
---|
| 39 | OS2IDirectDrawClipper* next; // Next OS2IDirectDraw
|
---|
| 40 | static OS2IDirectDrawClipper* ddraw; // List of OS2IDirectDraw
|
---|
| 41 |
|
---|
| 42 | friend HRESULT __stdcall ClipQueryInterface(THIS, REFIID riid, LPVOID FAR * ppvObj);
|
---|
| 43 | friend ULONG __stdcall ClipAddRef(THIS);
|
---|
| 44 | friend ULONG __stdcall ClipRelease(THIS);
|
---|
| 45 | friend HRESULT __stdcall ClipGetClipList(THIS, LPRECT, LPRGNDATA, LPDWORD);
|
---|
| 46 | friend HRESULT __stdcall ClipGetHWnd(THIS, HWND FAR *);
|
---|
| 47 | friend HRESULT __stdcall ClipInitialize(THIS, LPDIRECTDRAW, DWORD);
|
---|
| 48 | friend HRESULT __stdcall ClipIsClipListChanged(THIS, BOOL FAR *);
|
---|
| 49 | friend HRESULT __stdcall ClipSetClipList(THIS, LPRGNDATA,DWORD);
|
---|
| 50 | friend HRESULT __stdcall ClipSetHWnd(THIS, DWORD, HWND );
|
---|
| 51 | };
|
---|
| 52 |
|
---|
| 53 | HRESULT __stdcall ClipQueryInterface(THIS, REFIID riid, LPVOID FAR * ppvObj);
|
---|
| 54 | ULONG __stdcall ClipAddRef(THIS);
|
---|
| 55 | ULONG __stdcall ClipRelease(THIS);
|
---|
| 56 | HRESULT __stdcall ClipGetClipList(THIS, LPRECT, LPRGNDATA, LPDWORD);
|
---|
| 57 | HRESULT __stdcall ClipGetHWnd(THIS, HWND FAR *);
|
---|
| 58 | HRESULT __stdcall ClipInitialize(THIS, LPDIRECTDRAW, DWORD);
|
---|
| 59 | HRESULT __stdcall ClipIsClipListChanged(THIS, BOOL FAR *);
|
---|
| 60 | HRESULT __stdcall ClipSetClipList(THIS, LPRGNDATA,DWORD);
|
---|
| 61 | HRESULT __stdcall ClipSetHWnd(THIS, DWORD, HWND );
|
---|
| 62 |
|
---|
| 63 | #endif
|
---|