source: trunk/src/gdi32/region.cpp@ 2592

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

cleaned up + dibsection fixes

File size: 10.2 KB
Line 
1/* $Id: region.cpp,v 1.1 2000-02-01 12:53:31 sandervl Exp $ */
2
3/*
4 * GDI32 region code
5 *
6 * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
7 * Copyright 1998 Patrick Haller
8 *
9 * Project Odin Software License can be found in LICENSE.TXT
10 *
11 */
12#include <os2win.h>
13#include <stdlib.h>
14#include <stdarg.h>
15#include <string.h>
16#include "misc.h"
17
18//******************************************************************************
19//******************************************************************************
20HRGN WIN32API CreatePolyPolygonRgn( const POINT * arg1, const INT * arg2, int arg3, int arg4)
21{
22 dprintf(("GDI32: CreatePolyPolygonRgn\n"));
23 return O32_CreatePolyPolygonRgn(arg1, arg2, arg3, arg4);
24}
25//******************************************************************************
26//******************************************************************************
27HRGN WIN32API CreatePolygonRgn(const POINT * arg1, int arg2, int arg3)
28{
29 dprintf(("GDI32: CreatePolygonRgn"));
30 return O32_CreatePolygonRgn(arg1, arg2, arg3);
31}
32//******************************************************************************
33//******************************************************************************
34int WIN32API CombineRgn( HRGN arg1, HRGN arg2, HRGN arg3, int arg4)
35{
36 dprintf(("GDI32: CombineRgn"));
37 return O32_CombineRgn(arg1, arg2, arg3, arg4);
38}
39//******************************************************************************
40//******************************************************************************
41HRGN WIN32API CreateEllipticRgn( int arg1, int arg2, int arg3, int arg4)
42{
43 dprintf(("GDI32: CreateEllipticRgn"));
44 return O32_CreateEllipticRgn(arg1, arg2, arg3, arg4);
45}
46//******************************************************************************
47//******************************************************************************
48HRGN WIN32API CreateEllipticRgnIndirect( const RECT * arg1)
49{
50 dprintf(("GDI32: CreateEllipticRgnIndirect"));
51 return O32_CreateEllipticRgnIndirect(arg1);
52}
53//******************************************************************************
54//******************************************************************************
55HRGN WIN32API CreateRectRgn( int nLeftRect, int nTopRect, int nRightRect, int nBottomRect)
56{
57 dprintf(("GDI32: CreateRectRgn (%d,%d)(%d,%d)", nLeftRect, nTopRect, nRightRect, nBottomRect));
58 return O32_CreateRectRgn(nLeftRect, nTopRect, nRightRect, nBottomRect);
59}
60//******************************************************************************
61//******************************************************************************
62HRGN WIN32API CreateRectRgnIndirect( const RECT * lpRect)
63{
64 if(lpRect == NULL) {
65 SetLastError(ERROR_INVALID_PARAMETER);
66 return 0;
67 }
68 dprintf(("GDI32: CreateRectRgnIndirect (%d,%d)(%d,%d)", lpRect->left, lpRect->top, lpRect->right, lpRect->bottom));
69 return O32_CreateRectRgnIndirect(lpRect);
70}
71//******************************************************************************
72//******************************************************************************
73HRGN WIN32API CreateRoundRectRgn(int nLeftRect, int nTopRect, int nRightRect, int nBottomRect,
74 int nWidthEllipse, int nHeightEllipse)
75{
76 dprintf(("GDI32: CreateRoundRectRgn (%d,%d)(%d,%d) (%d,%d)", nLeftRect, nTopRect, nRightRect, nBottomRect, nWidthEllipse, nHeightEllipse));
77 return O32_CreateRoundRectRgn(nLeftRect, nTopRect, nRightRect, nBottomRect, nWidthEllipse, nHeightEllipse);
78}
79//******************************************************************************
80//******************************************************************************
81BOOL WIN32API EqualRgn( HRGN arg1, HRGN arg2)
82{
83 dprintf(("GDI32: EqualRgn"));
84 return O32_EqualRgn(arg1, arg2);
85}
86//******************************************************************************
87//******************************************************************************
88HRGN WIN32API ExtCreateRegion( const XFORM * arg1, DWORD arg2, const RGNDATA * arg3)
89{
90 dprintf(("GDI32: ExtCreateRegion"));
91 return O32_ExtCreateRegion(arg1, arg2, arg3);
92}
93//******************************************************************************
94//******************************************************************************
95int WIN32API ExtSelectClipRgn( HDC arg1, HRGN arg2, int arg3)
96{
97 dprintf(("GDI32: ExtSelectClipRgn"));
98 return O32_ExtSelectClipRgn(arg1, arg2, arg3);
99}
100//******************************************************************************
101//******************************************************************************
102BOOL WIN32API FillRgn( HDC arg1, HRGN arg2, HBRUSH arg3)
103{
104 dprintf(("GDI32: FillRgn"));
105 return O32_FillRgn(arg1, arg2, arg3);
106}
107//******************************************************************************
108//******************************************************************************
109BOOL WIN32API FrameRgn( HDC arg1, HRGN arg2, HBRUSH arg3, int arg4, int arg5)
110{
111 dprintf(("GDI32: FrameRgn"));
112 return O32_FrameRgn(arg1, arg2, arg3, arg4, arg5);
113}
114//******************************************************************************
115//******************************************************************************
116int WIN32API GetClipRgn( HDC arg1, HRGN arg2)
117{
118 dprintf(("GDI32: GetClipRgn"));
119 return O32_GetClipRgn(arg1, arg2);
120}
121//******************************************************************************
122//******************************************************************************
123DWORD WIN32API GetRegionData( HRGN arg1, DWORD arg2, PRGNDATA arg3)
124{
125 dprintf(("GDI32: GetRegionData"));
126 return O32_GetRegionData(arg1, arg2, arg3);
127}
128//******************************************************************************
129//******************************************************************************
130int WIN32API GetRgnBox( HRGN arg1, PRECT arg2)
131{
132 dprintf(("GDI32: GetRgnBox"));
133 return O32_GetRgnBox(arg1, arg2);
134}
135//******************************************************************************
136//******************************************************************************
137BOOL WIN32API InvertRgn( HDC arg1, HRGN arg2)
138{
139 dprintf(("GDI32: InvertRgn"));
140 return O32_InvertRgn(arg1, arg2);
141}
142//******************************************************************************
143//******************************************************************************
144int WIN32API OffsetClipRgn( HDC arg1, int arg2, int arg3)
145{
146 dprintf(("GDI32: OffsetClipRgn"));
147 return O32_OffsetClipRgn(arg1, arg2, arg3);
148}
149//******************************************************************************
150//******************************************************************************
151int WIN32API OffsetRgn( HRGN arg1, int arg2, int arg3)
152{
153 dprintf(("GDI32: OffsetRgn"));
154 return O32_OffsetRgn(arg1, arg2, arg3);
155}
156//******************************************************************************
157//******************************************************************************
158BOOL WIN32API PaintRgn( HDC arg1, HRGN arg2)
159{
160 dprintf(("GDI32: PaintRgn"));
161 return O32_PaintRgn(arg1, arg2);
162}
163//******************************************************************************
164//******************************************************************************
165HRGN WIN32API PathToRegion( HDC arg1)
166{
167 dprintf(("GDI32: PathToRegion"));
168 return O32_PathToRegion(arg1);
169}
170//******************************************************************************
171//******************************************************************************
172BOOL WIN32API PtInRegion( HRGN arg1, int arg2, int arg3)
173{
174 dprintf(("GDI32: PtInRegion"));
175 return O32_PtInRegion(arg1, arg2, arg3);
176}
177//******************************************************************************
178//******************************************************************************
179BOOL WIN32API RectInRegion( HRGN arg1, const RECT * arg2)
180{
181 dprintf(("GDI32: RectInRegion"));
182 return O32_RectInRegion(arg1, arg2);
183}
184//******************************************************************************
185//******************************************************************************
186int WIN32API SelectClipRgn( HDC hdc, HRGN hRgn)
187{
188 dprintf(("GDI32: SelectClipRgn %x %x", hdc, hRgn));
189 return O32_SelectClipRgn(hdc, hRgn);
190}
191//******************************************************************************
192//******************************************************************************
193BOOL WIN32API SetRectRgn( HRGN arg1, int arg2, int arg3, int arg4, int arg5)
194{
195 dprintf(("GDI32: SetRectRgn"));
196 return O32_SetRectRgn(arg1, arg2, arg3, arg4, arg5);
197}
198/*****************************************************************************
199 * Name : int GetMetaRgn
200 * Purpose : The GetMetaRgn function retrieves the current metaregion for
201 * the specified device context.
202 * Parameters: HDC hdc handle of device context
203 * HRGN hrgn handle of region
204 * Variables :
205 * Result : 0 / 1
206 * Remark :
207 * Status : UNTESTED STUB
208 *
209 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
210 *****************************************************************************/
211
212int WIN32API GetMetaRgn(HDC hdc,
213 HRGN hrgn)
214{
215 dprintf(("GDI32: GetMetaRgn(%08xh, %08xh) not implemented.\n",
216 hdc,
217 hrgn));
218
219 return (0);
220}
221/*****************************************************************************
222 * Name : int SetMetaRgn
223 * Purpose : The SetMetaRgn function intersects the current clipping region
224 * for the specified device context with the current metaregion
225 * and saves the combined region as the new metaregion for the
226 * specified device context. The clipping region is reset to a null region.
227 * Parameters: HDC hdc handle of device context
228 * Variables :
229 * Result : TRUE / FALSE
230 * Remark :
231 * Status : UNTESTED STUB
232 *
233 * Author : Patrick Haller [Mon, 1998/06/15 08:00]
234 *****************************************************************************/
235
236BOOL WIN32API SetMetaRgn(HDC hdc)
237{
238 dprintf(("GDI32: SetMetaRgn(%08xh) not implemented.\n",
239 hdc));
240
241 return (NULLREGION);
242}
243//******************************************************************************
244//******************************************************************************
Note: See TracBrowser for help on using the repository browser.