ReactOS 0.4.16-dev-88-ga65b6ae
gdi.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _GDI_TABLE_ENTRY
 

Macros

#define GDI_HANDLE_COUNT   0x10000
 
#define GDI_GLOBAL_PROCESS   (0x0)
 
#define GDI_HANDLE_INDEX_MASK   (GDI_HANDLE_COUNT - 1)
 
#define GDI_HANDLE_TYPE_MASK   0x007f0000
 
#define GDI_HANDLE_BASETYPE_MASK   0x001f0000
 
#define GDI_HANDLE_STOCK_MASK   0x00800000
 
#define GDI_HANDLE_REUSE_MASK   0xff000000
 
#define GDI_HANDLE_REUSECNT_SHIFT   24
 
#define GDI_HANDLE_UPPER_MASK   0x0000ffff
 
#define GDI_HANDLE_CREATE(i, t)    ((HANDLE)(((ULONG_PTR)(i) & GDI_HANDLE_INDEX_MASK) | ((t) << 16)))
 
#define GDI_HANDLE_GET_INDEX(h)    (((ULONG_PTR)(h)) & GDI_HANDLE_INDEX_MASK)
 
#define GDI_HANDLE_GET_TYPE(h)    (((ULONG_PTR)(h)) & GDI_HANDLE_TYPE_MASK)
 
#define GDI_HANDLE_IS_TYPE(h, t)    ((t) == (((ULONG_PTR)(h)) & GDI_HANDLE_TYPE_MASK))
 
#define GDI_HANDLE_IS_STOCKOBJ(h)    (0 != (((ULONG_PTR)(h)) & GDI_HANDLE_STOCK_MASK))
 
#define GDI_HANDLE_SET_STOCKOBJ(h)    ((h) = (HANDLE)(((ULONG_PTR)(h)) | GDI_HANDLE_STOCK_MASK))
 
#define GDI_HANDLE_GET_UPPER(h)    (((ULONG_PTR)(h)) & GDI_HANDLE_UPPER_MASK)
 
#define GDI_OBJECT_TYPE_DC   0x00010000
 
#define GDI_OBJECT_TYPE_REGION   0x00040000
 
#define GDI_OBJECT_TYPE_BITMAP   0x00050000
 
#define GDI_OBJECT_TYPE_PALETTE   0x00080000
 
#define GDI_OBJECT_TYPE_FONT   0x000a0000
 
#define GDI_OBJECT_TYPE_PFE   0x000c0000
 
#define GDI_OBJECT_TYPE_BRUSH   0x00100000
 
#define GDI_OBJECT_TYPE_EMF   0x00210000
 
#define GDI_OBJECT_TYPE_PEN   0x00300000
 
#define GDI_OBJECT_TYPE_EXTPEN   0x00500000
 
#define GDI_OBJECT_TYPE_COLORSPACE   0x00090000
 
#define GDI_OBJECT_TYPE_METADC   0x00660000
 
#define GDI_OBJECT_TYPE_METAFILE   0x00260000
 
#define GDI_OBJECT_TYPE_ENHMETAFILE   0x00460000
 
#define GDI_OBJECT_TYPE_ENHMETADC   0x00740000
 
#define GDI_OBJECT_TYPE_MEMDC   0x00750000
 
#define GDI_OBJECT_TYPE_DCE   0x00770000
 
#define GDI_OBJECT_TYPE_DONTCARE   0x007f0000
 
#define GDI_OBJECT_TYPE_SILENT   0x80000000
 

Typedefs

typedef struct _GDI_TABLE_ENTRY GDI_TABLE_ENTRY
 
typedef struct _GDI_TABLE_ENTRYPGDI_TABLE_ENTRY
 
typedef PGDI_TABLE_ENTRY(CALLBACKGDIQUERYPROC) (void)
 

Macro Definition Documentation

◆ GDI_GLOBAL_PROCESS

#define GDI_GLOBAL_PROCESS   (0x0)

Definition at line 13 of file gdi.h.

◆ GDI_HANDLE_BASETYPE_MASK

#define GDI_HANDLE_BASETYPE_MASK   0x001f0000

Definition at line 18 of file gdi.h.

◆ GDI_HANDLE_COUNT

#define GDI_HANDLE_COUNT   0x10000

Definition at line 12 of file gdi.h.

◆ GDI_HANDLE_CREATE

#define GDI_HANDLE_CREATE (   i,
  t 
)     ((HANDLE)(((ULONG_PTR)(i) & GDI_HANDLE_INDEX_MASK) | ((t) << 16)))

Definition at line 25 of file gdi.h.

◆ GDI_HANDLE_GET_INDEX

#define GDI_HANDLE_GET_INDEX (   h)     (((ULONG_PTR)(h)) & GDI_HANDLE_INDEX_MASK)

Definition at line 28 of file gdi.h.

◆ GDI_HANDLE_GET_TYPE

#define GDI_HANDLE_GET_TYPE (   h)     (((ULONG_PTR)(h)) & GDI_HANDLE_TYPE_MASK)

Definition at line 31 of file gdi.h.

◆ GDI_HANDLE_GET_UPPER

#define GDI_HANDLE_GET_UPPER (   h)     (((ULONG_PTR)(h)) & GDI_HANDLE_UPPER_MASK)

Definition at line 43 of file gdi.h.

◆ GDI_HANDLE_INDEX_MASK

#define GDI_HANDLE_INDEX_MASK   (GDI_HANDLE_COUNT - 1)

Definition at line 16 of file gdi.h.

◆ GDI_HANDLE_IS_STOCKOBJ

#define GDI_HANDLE_IS_STOCKOBJ (   h)     (0 != (((ULONG_PTR)(h)) & GDI_HANDLE_STOCK_MASK))

Definition at line 37 of file gdi.h.

◆ GDI_HANDLE_IS_TYPE

#define GDI_HANDLE_IS_TYPE (   h,
  t 
)     ((t) == (((ULONG_PTR)(h)) & GDI_HANDLE_TYPE_MASK))

Definition at line 34 of file gdi.h.

◆ GDI_HANDLE_REUSE_MASK

#define GDI_HANDLE_REUSE_MASK   0xff000000

Definition at line 20 of file gdi.h.

◆ GDI_HANDLE_REUSECNT_SHIFT

#define GDI_HANDLE_REUSECNT_SHIFT   24

Definition at line 21 of file gdi.h.

◆ GDI_HANDLE_SET_STOCKOBJ

#define GDI_HANDLE_SET_STOCKOBJ (   h)     ((h) = (HANDLE)(((ULONG_PTR)(h)) | GDI_HANDLE_STOCK_MASK))

Definition at line 40 of file gdi.h.

◆ GDI_HANDLE_STOCK_MASK

#define GDI_HANDLE_STOCK_MASK   0x00800000

Definition at line 19 of file gdi.h.

◆ GDI_HANDLE_TYPE_MASK

#define GDI_HANDLE_TYPE_MASK   0x007f0000

Definition at line 17 of file gdi.h.

◆ GDI_HANDLE_UPPER_MASK

#define GDI_HANDLE_UPPER_MASK   0x0000ffff

Definition at line 22 of file gdi.h.

◆ GDI_OBJECT_TYPE_BITMAP

#define GDI_OBJECT_TYPE_BITMAP   0x00050000

Definition at line 48 of file gdi.h.

◆ GDI_OBJECT_TYPE_BRUSH

#define GDI_OBJECT_TYPE_BRUSH   0x00100000

Definition at line 52 of file gdi.h.

◆ GDI_OBJECT_TYPE_COLORSPACE

#define GDI_OBJECT_TYPE_COLORSPACE   0x00090000

Definition at line 56 of file gdi.h.

◆ GDI_OBJECT_TYPE_DC

#define GDI_OBJECT_TYPE_DC   0x00010000

Definition at line 46 of file gdi.h.

◆ GDI_OBJECT_TYPE_DCE

#define GDI_OBJECT_TYPE_DCE   0x00770000

Definition at line 63 of file gdi.h.

◆ GDI_OBJECT_TYPE_DONTCARE

#define GDI_OBJECT_TYPE_DONTCARE   0x007f0000

Definition at line 64 of file gdi.h.

◆ GDI_OBJECT_TYPE_EMF

#define GDI_OBJECT_TYPE_EMF   0x00210000

Definition at line 53 of file gdi.h.

◆ GDI_OBJECT_TYPE_ENHMETADC

#define GDI_OBJECT_TYPE_ENHMETADC   0x00740000

Definition at line 61 of file gdi.h.

◆ GDI_OBJECT_TYPE_ENHMETAFILE

#define GDI_OBJECT_TYPE_ENHMETAFILE   0x00460000

Definition at line 59 of file gdi.h.

◆ GDI_OBJECT_TYPE_EXTPEN

#define GDI_OBJECT_TYPE_EXTPEN   0x00500000

Definition at line 55 of file gdi.h.

◆ GDI_OBJECT_TYPE_FONT

#define GDI_OBJECT_TYPE_FONT   0x000a0000

Definition at line 50 of file gdi.h.

◆ GDI_OBJECT_TYPE_MEMDC

#define GDI_OBJECT_TYPE_MEMDC   0x00750000

Definition at line 62 of file gdi.h.

◆ GDI_OBJECT_TYPE_METADC

#define GDI_OBJECT_TYPE_METADC   0x00660000

Definition at line 57 of file gdi.h.

◆ GDI_OBJECT_TYPE_METAFILE

#define GDI_OBJECT_TYPE_METAFILE   0x00260000

Definition at line 58 of file gdi.h.

◆ GDI_OBJECT_TYPE_PALETTE

#define GDI_OBJECT_TYPE_PALETTE   0x00080000

Definition at line 49 of file gdi.h.

◆ GDI_OBJECT_TYPE_PEN

#define GDI_OBJECT_TYPE_PEN   0x00300000

Definition at line 54 of file gdi.h.

◆ GDI_OBJECT_TYPE_PFE

#define GDI_OBJECT_TYPE_PFE   0x000c0000

Definition at line 51 of file gdi.h.

◆ GDI_OBJECT_TYPE_REGION

#define GDI_OBJECT_TYPE_REGION   0x00040000

Definition at line 47 of file gdi.h.

◆ GDI_OBJECT_TYPE_SILENT

#define GDI_OBJECT_TYPE_SILENT   0x80000000

Not really an object type. Forces GDI_FreeObj to be silent.

Definition at line 66 of file gdi.h.

Typedef Documentation

◆ GDI_TABLE_ENTRY

◆ GDIQUERYPROC

typedef PGDI_TABLE_ENTRY(CALLBACK * GDIQUERYPROC) (void)

Definition at line 9 of file gdi.h.

◆ PGDI_TABLE_ENTRY