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

Last change on this file since 5087 was 4146, checked in by sandervl, 25 years ago

more logging + implemented GetClipList

File size: 2.2 KB
Line 
1/* $Id: OS2CLIPPER.H,v 1.7 2000-09-02 08:27:05 sandervl 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*
18class 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 RECT windowRect;
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, LPRECT, LPRGNDATA, LPDWORD);
47 friend HRESULT __stdcall ClipGetHWnd(THIS, HWND FAR *);
48 friend HRESULT __stdcall ClipInitialize(THIS, LPDIRECTDRAW, DWORD);
49 friend HRESULT __stdcall ClipIsClipListChanged(THIS, BOOL FAR *);
50 friend HRESULT __stdcall ClipSetClipList(THIS, LPRGNDATA,DWORD);
51 friend HRESULT __stdcall ClipSetHWnd(THIS, DWORD, HWND );
52};
53
54HRESULT __stdcall ClipQueryInterface(THIS, REFIID riid, LPVOID FAR * ppvObj);
55ULONG __stdcall ClipAddRef(THIS);
56ULONG __stdcall ClipRelease(THIS);
57HRESULT __stdcall ClipGetClipList(THIS, LPRECT, LPRGNDATA, LPDWORD);
58HRESULT __stdcall ClipGetHWnd(THIS, HWND FAR *);
59HRESULT __stdcall ClipInitialize(THIS, LPDIRECTDRAW, DWORD);
60HRESULT __stdcall ClipIsClipListChanged(THIS, BOOL FAR *);
61HRESULT __stdcall ClipSetClipList(THIS, LPRGNDATA,DWORD);
62HRESULT __stdcall ClipSetHWnd(THIS, DWORD, HWND );
63
64#endif
Note: See TracBrowser for help on using the repository browser.