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: win32ss/gdi/eng/engobjects.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 */
44 typedef struct _XCLIPOBJ
: _WNDOBJ
47 typedef struct _XCLIPOBJ
51 PVOID pClipRgn
; /* prgnRao_ or (prgnVis_ if (prgnRao_ == z)) */
53 PVOID pscanClipRgn
; /* Ptr to regions rect buffer based on iDirection. */
65 DWORD nComplexity
; /* count/mode based on # of rect in regions scan. */
66 PVOID pDDA
; /* Pointer to a large drawing structure. */
67 } XCLIPOBJ
, *PXCLIPOBJ
;
69 EngCreateClip allocates XCLIPOBJ and RGNOBJ, pco->co.pClipRgn = &pco->ro.
75 typedef struct _CLIPGDI
{
83 WNDOBJCHANGEPROC ChangeProc
;
93 C_ASSERT(FIELD_OFFSET(CLIPGDI
, ClipObj
) == FIELD_OFFSET(CLIPGDI
, WndObj
.coClient
));
95 // HACK, until we use the original structure
96 #define XCLIPOBJ CLIPGDI
98 extern XCLIPOBJ gxcoTrivial
;
100 /*ei What is this for? */
101 typedef struct _DRVFUNCTIONSGDI
{
103 DRVFN Functions
[INDEX_LAST
];
106 typedef struct _FLOATGDI
{
110 typedef struct _SHARED_MEM
{
115 } SHARED_MEM
, *PSHARED_MEM
;
117 typedef struct _SHARED_FACE
{
121 } SHARED_FACE
, *PSHARED_FACE
;
123 typedef struct _FONTGDI
{
129 PSHARED_FACE SharedFace
;
136 BYTE RequestUnderline
;
137 BYTE RequestStrikeOut
;
143 } FONTGDI
, *PFONTGDI
;
145 typedef struct _PATHGDI
{
149 typedef struct _XFORMGDI
{
151 /* XFORMOBJ has no public members */
154 /* As the *OBJ structures are located at the beginning of the *GDI structures
155 we can simply typecast the pointer */
156 #define ObjToGDI(ClipObj, Type) (Type##GDI *)(ClipObj)
157 #define GDIToObj(ClipGDI, Type) (Type##OBJ *)(ClipGDI)