source: trunk/src/ddraw/OS2CLIPPER.H@ 2012

Last change on this file since 2012 was 422, checked in by hugh, 26 years ago

Created DIVEWRAp.h to presewrve FS selector

File size: 2.0 KB
Line 
1#ifndef __OS2CLIPPER_H__
2#define __OS2CLIPPER_H__
3
4#include "divewrap.h"
5#define FAR
6#undef THIS
7#define THIS IDirectDrawClipper*
8class OS2IDirectDrawClipper
9{
10 public:
11 //this one has to go first!
12 IDirectDrawClipperVtbl *lpVtbl;
13 IDirectDrawClipperVtbl Vtbl;
14
15 OS2IDirectDrawClipper(OS2IDirectDraw *lpDirectDraw);
16 ~OS2IDirectDrawClipper();
17
18 int Referenced;
19 inline HRESULT GetLastError() { return lastError; };
20 private:
21
22 protected:
23 HRESULT lastError;
24 OS2IDirectDraw *lpDraw;
25 HDIVE hDive;
26 HWND clipWindow;
27
28 // Linked list management
29 OS2IDirectDrawClipper* next; // Next OS2IDirectDraw
30 static OS2IDirectDrawClipper* ddraw; // List of OS2IDirectDraw
31
32 friend HRESULT __stdcall ClipQueryInterface(THIS, REFIID riid, LPVOID FAR * ppvObj);
33 friend ULONG __stdcall ClipAddRef(THIS);
34 friend ULONG __stdcall ClipRelease(THIS);
35 friend HRESULT __stdcall ClipGetClipList(THIS, LPRECT, LPRGNDATA, LPDWORD);
36 friend HRESULT __stdcall ClipGetHWnd(THIS, HWND FAR *);
37 friend HRESULT __stdcall ClipInitialize(THIS, LPDIRECTDRAW, DWORD);
38 friend HRESULT __stdcall ClipIsClipListChanged(THIS, BOOL FAR *);
39 friend HRESULT __stdcall ClipSetClipList(THIS, LPRGNDATA,DWORD);
40 friend HRESULT __stdcall ClipSetHWnd(THIS, DWORD, HWND );
41};
42
43HRESULT __stdcall ClipQueryInterface(THIS, REFIID riid, LPVOID FAR * ppvObj);
44ULONG __stdcall ClipAddRef(THIS);
45ULONG __stdcall ClipRelease(THIS);
46HRESULT __stdcall ClipGetClipList(THIS, LPRECT, LPRGNDATA, LPDWORD);
47HRESULT __stdcall ClipGetHWnd(THIS, HWND FAR *);
48HRESULT __stdcall ClipInitialize(THIS, LPDIRECTDRAW, DWORD);
49HRESULT __stdcall ClipIsClipListChanged(THIS, BOOL FAR *);
50HRESULT __stdcall ClipSetClipList(THIS, LPRGNDATA,DWORD);
51HRESULT __stdcall ClipSetHWnd(THIS, DWORD, HWND );
52
53#endif
Note: See TracBrowser for help on using the repository browser.