3 * Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 * COPYRIGHT: See COPYING in the top level directory
21 * PROJECT: ReactOS kernel
22 * PURPOSE: GDI Internal Objects
23 * FILE: subsystem/win32/win32k/eng/objects.h
24 * PROGRAMER: Jason Filby
31 /* Structure of internal gdi objects that win32k manages for ddi engine:
32 |---------------------------------|
34 | accessed from engine |
35 |---------------------------------|
38 |_________________________________|
40 ---------------------------------------------------------------------------*/
42 /* EXtended CLip and Window Region Object */
43 typedef struct _XCLIPOBJ
46 PVOID pClipRgn
; /* prgnRao_ or (prgnVis_ if (prgnRao_ == z)) */
48 PVOID pscanClipRgn
; /* Ptr to regions rect buffer based on iDirection. */
60 DWORD nComplexity
; /* count/mode based on # of rect in regions scan. */
61 PVOID pDDA
; /* Pointer to a large drawing structure. */
62 } XCLIPOBJ
, *PXCLIPOBJ
;
64 EngCreateClip allocates XCLIPOBJ and RGNOBJ, pco->co.pClipRgn = &pco->ro.
70 typedef struct _CLIPGDI
{
78 WNDOBJCHANGEPROC ChangeProc
;
88 C_ASSERT(FIELD_OFFSET(CLIPGDI
, ClipObj
) == FIELD_OFFSET(CLIPGDI
, WndObj
.coClient
));
90 // HACK, until we use the original structure
91 #define XCLIPOBJ CLIPGDI
93 extern XCLIPOBJ gxcoTrivial
;
95 /*ei What is this for? */
96 typedef struct _DRVFUNCTIONSGDI
{
98 DRVFN Functions
[INDEX_LAST
];
101 typedef struct _FLOATGDI
{
105 typedef struct _FONTGDI
{
121 } FONTGDI
, *PFONTGDI
;
123 typedef struct _PATHGDI
{
127 typedef struct _XFORMGDI
{
129 /* XFORMOBJ has no public members */
132 /* As the *OBJ structures are located at the beginning of the *GDI structures
133 we can simply typecast the pointer */
134 #define ObjToGDI(ClipObj, Type) (Type##GDI *)(ClipObj)
135 #define GDIToObj(ClipGDI, Type) (Type##OBJ *)(ClipGDI)