Changeset 211 for trunk/src/ddraw/OS2CLIPPER.H
- Timestamp:
- Jun 26, 1999, 1:36:08 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ddraw/OS2CLIPPER.H
r97 r211 1 /* $Id: OS2CLIPPER.H,v 1.3 1999-06-10 17:10:56 phaller Exp $ */2 3 /*4 * DirectDraw Clipper Class5 *6 * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)7 *8 * Project Odin Software License can be found in LICENSE.TXT9 *10 */11 1 #ifndef __OS2CLIPPER_H__ 12 2 #define __OS2CLIPPER_H__ 13 3 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 4 #include <dive.h> 5 #define FAR 6 #undef THIS 7 #define THIS IDirectDrawClipper* 19 8 class OS2IDirectDrawClipper 20 9 { 21 10 public: 22 23 24 11 //this one has to go first! 12 IDirectDrawClipperVtbl *lpVtbl; 13 IDirectDrawClipperVtbl Vtbl; 25 14 26 15 OS2IDirectDrawClipper(OS2IDirectDraw *lpDirectDraw); 27 16 ~OS2IDirectDrawClipper(); 28 17 29 18 int Referenced; 30 19 inline HRESULT GetLastError() { return lastError; }; 31 20 private: 32 21 33 22 protected: 34 HRESULT lastError;35 36 37 W32_HWNDclipWindow;23 HRESULT lastError; 24 OS2IDirectDraw *lpDraw; 25 HDIVE hDive; 26 HWND clipWindow; 38 27 39 28 // Linked list management … … 41 30 static OS2IDirectDrawClipper* ddraw; // List of OS2IDirectDraw 42 31 43 friend HRESULT __stdcall ClipQueryInterface(THIS _REFIID riid, LPVOID FAR * ppvObj);32 friend HRESULT __stdcall ClipQueryInterface(THIS, REFIID riid, LPVOID FAR * ppvObj); 44 33 friend ULONG __stdcall ClipAddRef(THIS); 45 34 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 );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 ); 52 41 }; 53 42 54 HRESULT __stdcall ClipQueryInterface(THIS _REFIID riid, LPVOID FAR * ppvObj);43 HRESULT __stdcall ClipQueryInterface(THIS, REFIID riid, LPVOID FAR * ppvObj); 55 44 ULONG __stdcall ClipAddRef(THIS); 56 45 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 );46 HRESULT __stdcall ClipGetClipList(THIS, LPRECT, LPRGNDATA, LPDWORD); 47 HRESULT __stdcall ClipGetHWnd(THIS, HWND FAR *); 48 HRESULT __stdcall ClipInitialize(THIS, LPDIRECTDRAW, DWORD); 49 HRESULT __stdcall ClipIsClipListChanged(THIS, BOOL FAR *); 50 HRESULT __stdcall ClipSetClipList(THIS, LPRGNDATA,DWORD); 51 HRESULT __stdcall ClipSetHWnd(THIS, DWORD, HWND ); 63 52 64 53 #endif
Note:
See TracChangeset
for help on using the changeset viewer.