Rev | Line | |
---|
[2653] | 1 | /* $Id: dcdata.h,v 1.1 2000-02-05 11:03:45 sandervl Exp $ */
|
---|
| 2 | /*
|
---|
| 3 | * GDI32: public dc data definitions
|
---|
| 4 | *
|
---|
| 5 | *
|
---|
| 6 | * Copyright 1999 Daniela Engert (dani@ngrt.de)
|
---|
| 7 | *
|
---|
| 8 | *
|
---|
| 9 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 10 | *
|
---|
| 11 | */
|
---|
| 12 | #ifndef __DCDATA_H__
|
---|
| 13 | #define __DCDATA_H__
|
---|
| 14 |
|
---|
| 15 | enum PS_Type { MICRO_CACHED, MICRO, NORMAL };
|
---|
| 16 | enum HDC_Type{ TYPE_0, TYPE_1, TYPE_2, TYPE_3, TYPE_4 };
|
---|
| 17 |
|
---|
| 18 | typedef struct _tagXFORM
|
---|
| 19 | {
|
---|
| 20 | FLOAT eM11;
|
---|
| 21 | FLOAT eM12;
|
---|
| 22 | FLOAT eM21;
|
---|
| 23 | FLOAT eM22;
|
---|
| 24 | FLOAT eDx;
|
---|
| 25 | FLOAT eDy;
|
---|
| 26 | } XFORM_W, *PXFORM_W, *LPXFORM_W;
|
---|
| 27 |
|
---|
| 28 | typedef struct _DCData
|
---|
| 29 | {
|
---|
| 30 | HDC hdc;
|
---|
| 31 | HWND hwnd;
|
---|
| 32 | HPS hps;
|
---|
| 33 |
|
---|
| 34 | UINT lastBrushHandle;
|
---|
| 35 | PVOID lastBrushObject;
|
---|
| 36 | UINT lastPenHandle;
|
---|
| 37 | struct _penobject *lastPenObject;
|
---|
| 38 | UINT lastFontHandle;
|
---|
| 39 | PVOID lastFontObject;
|
---|
| 40 | UINT lastBitmapHandle;
|
---|
| 41 | PVOID lastBitmapObject;
|
---|
| 42 | UINT lastPaletteHandle;
|
---|
| 43 | PVOID lastPaletteObject;
|
---|
| 44 |
|
---|
| 45 | UINT nullBitmapHandle;
|
---|
| 46 |
|
---|
| 47 | ULONG BkColor;
|
---|
| 48 | ULONG TextColor;
|
---|
| 49 | ULONG BkColor_PM;
|
---|
| 50 | ULONG TextColor_PM;
|
---|
| 51 |
|
---|
| 52 | int BkMode;
|
---|
| 53 | ULONG BkMode_PM;
|
---|
| 54 |
|
---|
| 55 | int ROP2Mode;
|
---|
| 56 | int ROP2Mode_PM;
|
---|
| 57 |
|
---|
| 58 | unsigned isMemoryPS:1;
|
---|
| 59 | unsigned isMetaPS:1;
|
---|
| 60 | unsigned isPrinter:1;
|
---|
| 61 | unsigned isFrameWindow:1;
|
---|
| 62 | unsigned isOD_QUEUED:1;
|
---|
| 63 | unsigned isOD_INFO:1;
|
---|
| 64 | unsigned isClient:1;
|
---|
| 65 | unsigned isClientArea:1;
|
---|
| 66 | unsigned isLeftLeft:1;
|
---|
| 67 | unsigned isTopTop:1;
|
---|
| 68 | unsigned isWideLine:1;
|
---|
| 69 | unsigned alignUpdateCP:1;
|
---|
| 70 | unsigned isCacheable:1;
|
---|
| 71 | unsigned penIsExtPen:1;
|
---|
| 72 | unsigned isValid:1;
|
---|
| 73 | unsigned inPath:1;
|
---|
| 74 | unsigned isStartDoc:1;
|
---|
| 75 | unsigned resetStockFonts:1;
|
---|
| 76 | unsigned unused:14;
|
---|
| 77 |
|
---|
| 78 | ULONG MapMode;
|
---|
| 79 | HBITMAP bitmapHandle;
|
---|
| 80 | ULONG bitmapHeight;
|
---|
| 81 | ULONG bitmapWidth;
|
---|
| 82 | ULONG hMeta;
|
---|
| 83 | PVOID pMetaFileObject;
|
---|
| 84 | int polyFillMode;
|
---|
| 85 | int arcDirection;
|
---|
| 86 | int stretchBltMode;
|
---|
| 87 | int graphicsMode;
|
---|
| 88 | HRGN hrgnHDC;
|
---|
| 89 |
|
---|
| 90 | PS_Type psType;
|
---|
| 91 |
|
---|
| 92 | HDC_Type hdcType;
|
---|
| 93 | USHORT usFiller;
|
---|
| 94 | POINTL viewportOrg;
|
---|
| 95 | double viewportXExt;
|
---|
| 96 | double viewportYExt;
|
---|
| 97 | POINTL windowOrg;
|
---|
| 98 | SIZEL windowExt;
|
---|
| 99 | HRGN hrgnVis;
|
---|
| 100 | POINTL ptlOrigin;
|
---|
| 101 | ULONG printPageHeight;
|
---|
| 102 | PVOID printerObject;
|
---|
| 103 |
|
---|
| 104 | LONG taMode;
|
---|
| 105 | XFORM_W xform;
|
---|
| 106 |
|
---|
| 107 | INT worldYDeltaFor1Pixel;
|
---|
| 108 | INT worldXDeltaFor1Pixel;
|
---|
| 109 | ULONG colorMode;
|
---|
| 110 | PULONG pLogColorTable;
|
---|
| 111 |
|
---|
| 112 | ULONG lcidBitfield;
|
---|
| 113 |
|
---|
| 114 | HWND hwndRealize;
|
---|
| 115 | ULONG cpeMap;
|
---|
| 116 |
|
---|
| 117 | LONG lTechnology;
|
---|
| 118 |
|
---|
| 119 | LONG lWndXExtSave, lWndYExtSave,
|
---|
| 120 | lVwpXExtSave, lVwpYExtSave;
|
---|
| 121 |
|
---|
| 122 | int height;
|
---|
| 123 |
|
---|
| 124 | POINTL brushOrgPoint;
|
---|
| 125 |
|
---|
| 126 | PVOID pEnhMetaPalette;
|
---|
| 127 | PVOID lpAbortProc;
|
---|
| 128 | ULONG HPStoHDCInversionHeight;
|
---|
| 129 |
|
---|
| 130 | int saveLevel;
|
---|
| 131 |
|
---|
| 132 | struct _DCData *nextDCData;
|
---|
| 133 | } tDCData, *pDCData;
|
---|
| 134 |
|
---|
| 135 | #endif //__DCDATA_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.