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

Last change on this file since 46 was 46, checked in by sandervl, 26 years ago

* empty log message *

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