From 3f261fab5db39f2cf719dc01634d28fd414ab2ba Mon Sep 17 00:00:00 2001 From: Rex Jolliff Date: Thu, 22 Jul 1999 16:21:53 +0000 Subject: [PATCH] More changes to the win32k server svn path=/trunk/; revision=598 --- reactos/include/structs.h | 4 +- reactos/include/win32k/bitmaps.h | 1 - reactos/include/win32k/brush.h | 2 - reactos/include/win32k/cliprgn.h | 47 ++++ reactos/include/win32k/color.h | 59 +++++ reactos/include/win32k/coord.h | 80 +++++++ reactos/include/win32k/fillshap.h | 55 +++++ reactos/include/win32k/line.h | 72 ++++++ reactos/include/win32k/metafile.h | 45 ++++ reactos/include/win32k/text.h | 161 +++++++++++++ reactos/include/win32k/win32k.h | 11 + reactos/subsys/win32k/main/dllmain.c | 286 +++++++++++++---------- reactos/subsys/win32k/makefile | 4 +- reactos/subsys/win32k/objects/bitmaps.c | 1 + reactos/subsys/win32k/objects/brush.c | 3 +- reactos/subsys/win32k/objects/cliprgn.c | 85 +++++++ reactos/subsys/win32k/objects/color.c | 113 +++++++++ reactos/subsys/win32k/objects/coord.c | 135 +++++++++++ reactos/subsys/win32k/objects/fillshap.c | 79 +++++++ reactos/subsys/win32k/objects/line.c | 115 +++++++++ reactos/subsys/win32k/objects/metafile.c | 84 +++++++ reactos/subsys/win32k/objects/text.c | 260 +++++++++++++++++++++ 22 files changed, 1570 insertions(+), 132 deletions(-) create mode 100644 reactos/include/win32k/cliprgn.h create mode 100644 reactos/include/win32k/color.h create mode 100644 reactos/include/win32k/coord.h create mode 100644 reactos/include/win32k/fillshap.h create mode 100644 reactos/include/win32k/line.h create mode 100644 reactos/include/win32k/metafile.h create mode 100644 reactos/include/win32k/text.h create mode 100644 reactos/include/win32k/win32k.h create mode 100644 reactos/subsys/win32k/objects/cliprgn.c create mode 100644 reactos/subsys/win32k/objects/color.c create mode 100644 reactos/subsys/win32k/objects/coord.c create mode 100644 reactos/subsys/win32k/objects/fillshap.c create mode 100644 reactos/subsys/win32k/objects/line.c create mode 100644 reactos/subsys/win32k/objects/metafile.c create mode 100644 reactos/subsys/win32k/objects/text.c diff --git a/reactos/include/structs.h b/reactos/include/structs.h index 151445375ae..3bb81153d32 100644 --- a/reactos/include/structs.h +++ b/reactos/include/structs.h @@ -2651,7 +2651,7 @@ typedef struct _MAT2 { FIXED eM12; FIXED eM21; FIXED eM22; -} MAT2; +} MAT2, *LPMAT2; typedef struct tagMDICREATESTRUCT { LPCTSTR szClass; @@ -3385,7 +3385,7 @@ typedef struct _POLYTEXT { UINT uiFlags; RECT rcl; int *pdx; -} POLYTEXT; +} POLYTEXT, *LPPOLYTEXT; typedef struct _PORT_INFO_1 { LPTSTR pName; diff --git a/reactos/include/win32k/bitmaps.h b/reactos/include/win32k/bitmaps.h index 1a826142ede..113f01fccf8 100644 --- a/reactos/include/win32k/bitmaps.h +++ b/reactos/include/win32k/bitmaps.h @@ -2,7 +2,6 @@ #ifndef __WIN32K_BITMAPS_H #define __WIN32K_BITMAPS_H -#include #include BOOL W32kBitBlt(HDC hDCDest, diff --git a/reactos/include/win32k/brush.h b/reactos/include/win32k/brush.h index cfe9bbbf407..fee00c3968c 100644 --- a/reactos/include/win32k/brush.h +++ b/reactos/include/win32k/brush.h @@ -2,8 +2,6 @@ #ifndef __WIN32K_BRUSH_H #define __WIN32K_BRUSH_H -#include - HBRUSH W32kCreateBrushIndirect(CONST LOGBRUSH *lb); HBRUSH W32kCreateDIBPatternBrush(HGLOBAL hDIBPacked, UINT ColorSpec); diff --git a/reactos/include/win32k/cliprgn.h b/reactos/include/win32k/cliprgn.h new file mode 100644 index 00000000000..e9a0fcaff8c --- /dev/null +++ b/reactos/include/win32k/cliprgn.h @@ -0,0 +1,47 @@ + + +#ifndef _WIN32K_CLIPRGN_H +#define _WIN32K_CLIPRGN_H + +int W32kExcludeClipRect(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect); + +int W32kExtSelectClipRgn(HDC hDC, + HRGN hrgn, + int fnMode); + +int W32kGetClipBox(HDC hDC, + LPRECT rc); + +int W32kGetMetaRgn(HDC hDC, + HRGN hrgn); + +int W32kIntersectClipRect(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect); + +int W32kOffsetClipRgn(HDC hDC, + int XOffset, + int YOffset); + +BOOL W32kPtVisible(HDC hDC, + int X, + int Y); + +BOOL W32kRectVisible(HDC hDC, + CONST PRECT rc); + +BOOL W32kSelectClipPath(HDC hDC, + int Mode); + +int W32kSelectClipRgn(HDC hDC, + HRGN hrgn); + +int W32kSetMetaRgn(HDC hDC); + +#endif diff --git a/reactos/include/win32k/color.h b/reactos/include/win32k/color.h new file mode 100644 index 00000000000..8c8031833ec --- /dev/null +++ b/reactos/include/win32k/color.h @@ -0,0 +1,59 @@ + +#ifndef __WIN32K_COLOR_H +#define __WIN32K_COLOR_H + +BOOL W32kAnimatePalette(HPALETTE hpal, + UINT StartIndex, + UINT Entries, + CONST PPALETTEENTRY ppe); + +HPALETTE W32kCreateHalftonePalette(HDC hDC); + +HPALETTE W32kCreatePalette(CONST PLOGPALETTE lgpl); + +BOOL W32kGetColorAdjustment(HDC hDC, + LPCOLORADJUSTMENT ca); + +COLORREF W32kGetNearestColor(HDC hDC, + COLORREF Color); + +UINT W32kGetNearestPaletteIndex(HPALETTE hpal, + COLORREF Color); + +UINT W32kGetPaletteEntries(HPALETTE hpal, + UINT StartIndex, + UINT Entries, + LPPALETTEENTRY pe); + +UINT W32kGetSystemPaletteEntries(HDC hDC, + UINT StartIndex, + UINT Entries, + LPPALETTEENTRY pe); + +UINT W32kGetSystemPaletteUse(HDC hDC); + +UINT W32kRealizePalette(HDC hDC); + +BOOL W32kResizePalette(HPALETTE hpal, + UINT Entries); + +HPALETTE W32kSelectPalette(HDC hDC, + HPALETTE hpal, + BOOL ForceBackground); + +BOOL W32kSetColorAdjustment(HDC hDC, + CONST LPCOLORADJUSTMENT ca); + +UINT W32kSetPaletteEntries(HPALETTE hpal, + UINT Start, + UINT Entries, + CONST LPPALETTEENTRY pe); + +UINT W32kSetSystemPaletteUse(HDC hDC, + UINT Usage); + +BOOL W32kUnrealizeObject(HGDIOBJ hgdiobj); + +BOOL W32kUpdateColors(HDC hDC); + +#endif diff --git a/reactos/include/win32k/coord.h b/reactos/include/win32k/coord.h new file mode 100644 index 00000000000..34cd8e08756 --- /dev/null +++ b/reactos/include/win32k/coord.h @@ -0,0 +1,80 @@ + +#ifndef __WIN32K_COORD_H +#define __WIN32K_COORD_H + +BOOL W32kCombineTransform(LPXFORM XformResult, + CONST LPXFORM xform1, + CONST LPXFORM xform2); + +BOOL W32kDPtoLP(HDC hDC, + LPPOINT Points, + int Count); + +int W32kGetGraphicsMode(HDC hDC); + +BOOL W32kGetWorldTransform(HDC hDC, + LPXFORM Xform); + +BOOL W32kLPtoDP(HDC hDC, + LPPOINT Points, + int Count); + +BOOL W32kModifyWorldTransform(HDC hDC, + CONST LPXFORM Xform, + DWORD Mode); + +BOOL W32kOffsetViewportOrgEx(HDC hDC, + int XOffset, + int YOffset, + LPPOINT Point); + +BOOL W32kOffsetWindowOrgEx(HDC hDC, + int XOffset, + int YOffset, + LPPOINT Point); + +BOOL W32kScaleViewportExtEx(HDC hDC, + int Xnum, + int Xdenom, + int Ynum, + int Ydenom, + LPSIZE Size); + +BOOL W32kScaleWindowExtEx(HDC hDC, + int Xnum, + int Xdenom, + int Ynum, + int Ydenom, + LPSIZE Size); + +int W32kSetGraphicsMode(HDC hDC, + int Mode); + +int W32kSetMapMode(HDC hDC, + int MapMode); + +BOOL W32kSetViewportExtEx(HDC hDC, + int XExtent, + int YExtent, + LPSIZE Size); + +BOOL W32kSetViewportOrgEx(HDC hDC, + int X, + int Y, + LPPOINT Point); + +BOOL W32kSetWindowExtEx(HDC hDC, + int XExtent, + int YExtent, + LPSIZE Size); + +BOOL W32kSetWindowOrgEx(HDC hDC, + int X, + int Y, + LPPOINT Point); + +BOOL W32kSetWorldTransform(HDC hDC, + CONST LPXFORM Xform); + +#endif + diff --git a/reactos/include/win32k/fillshap.h b/reactos/include/win32k/fillshap.h new file mode 100644 index 00000000000..bbee409d636 --- /dev/null +++ b/reactos/include/win32k/fillshap.h @@ -0,0 +1,55 @@ + +#ifndef __WIN32K_FILLSHAP_H +#define __WIN32K_FILLSHAP_H + +BOOL W32kChord(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect, + int XRadial1, + int YRadial1, + int XRadial2, + int YRadial2); + +BOOL W32kEllipse(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect); + +BOOL W32kPie(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect, + int XRadial1, + int YRadial1, + int XRadial2, + int YRadial2); + +BOOL W32kPolygon(HDC hDC, + CONST PPOINT Points, + int Count); + +BOOL W32kPolyPolygon(HDC hDC, + CONST LPPOINT Points, + CONST LPINT PolyCounts, + int Count); + +BOOL W32kRectangle(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect); + +BOOL W32kRoundRect(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect, + int Width, + int Height); + +#endif + diff --git a/reactos/include/win32k/line.h b/reactos/include/win32k/line.h new file mode 100644 index 00000000000..68718644692 --- /dev/null +++ b/reactos/include/win32k/line.h @@ -0,0 +1,72 @@ + +#ifndef __WIN32K_LINE_H +#define __WIN32K_LINE_H + +BOOL W32kAngleArc(HDC hDC, + int X, + int Y, + DWORD Radius, + FLOAT StartAngle, + FLOAT SweepAngle); + +BOOL W32kArc(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect, + int XStartArc, + int YStartArc, + int XEndArc, + int YEndArc); + +BOOL W32kArcTo(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect, + int XRadial1, + int YRadial1, + int XRadial2, + int YRadial2); + +int W32kGetArcDirection(HDC hDC); + +BOOL W32kLineTo(HDC hDC, + int XEnd, + int YEnd); + +BOOL W32kMoveToEx(HDC hDC, + int X, + int Y, + LPPOINT Point); + +BOOL W32kPolyBezier(HDC hDC, + CONST LPPOINT pt, + DWORD Count); + +BOOL W32kPolyBezierTo(HDC hDC, + CONST LPPOINT pt, + DWORD Count); + +BOOL W32kPolyDraw(HDC hDC, + CONST LPPOINT pt, + CONST LPBYTE Types, + int Count); + +BOOL W32kPolyline(HDC hDC, + CONST LPPOINT pt, + int Count); + +BOOL W32kPolylineTo(HDC hDC, + CONST LPPOINT pt, + DWORD Count); + +BOOL W32kPolyPolyline(HDC hDC, + CONST LPPOINT pt, + CONST LPDWORD PolyPoints, + DWORD Count); + +int W32kSetArcDirection(HDC hDC, + int ArcDirection); + +#endif diff --git a/reactos/include/win32k/metafile.h b/reactos/include/win32k/metafile.h new file mode 100644 index 00000000000..d7e1279a59f --- /dev/null +++ b/reactos/include/win32k/metafile.h @@ -0,0 +1,45 @@ + +#ifndef __WIN32K_METAFILE_H +#define __WIN32K_METAFILE_H + +HENHMETAFILE W32kCloseEnhMetaFile(HDC hDC); + +HMETAFILE W32kCloseMetaFile(HDC hDC); + +HENHMETAFILE W32kCopyEnhMetaFile(HENHMETAFILE Src, + LPCTSTR File); + +HMETAFILE W32kCopyMetaFile(HMETAFILE Src, + LPCTSTR File); + +HDC W32kCreateEnhMetaFile(HDC hDCRef, + LPCTSTR File, + CONST LPRECT Rect, + LPCTSTR Description); + +HDC W32kCreateMetaFile(LPCTSTR File); + +BOOL W32kDeleteEnhMetaFile(HENHMETAFILE emf); + +BOOL W32kDeleteMetaFile(HMETAFILE mf); + +BOOL W32kEnumEnhMetaFile(HDC hDC, + HENHMETAFILE emf, + ENHMFENUMPROC EnhMetaFunc, + LPVOID Data, + CONST LPRECT Rect); + +BOOL W32kEnumMetaFile(HDC hDC, + HMETAFILE mf, + MFENUMPROC MetaFunc, + LPARAM lParam); + +BOOL W32kGdiComment(HDC hDC, + UINT Size, + CONST LPBYTE Data); + +HENHMETAFILE W32kGetEnhMetaFile(LPCTSTR MetaFile); + + +#endif + diff --git a/reactos/include/win32k/text.h b/reactos/include/win32k/text.h new file mode 100644 index 00000000000..940d805b719 --- /dev/null +++ b/reactos/include/win32k/text.h @@ -0,0 +1,161 @@ + +#ifndef __WIN32K_TEXT_H +#define __WIN32K_TEXT_H + +int W32kAddFontResource(LPCTSTR Filename); + +HFONT W32kCreateFont(int Height, + int Width, + int Escapement, + int Orientation, + int Weight, + DWORD Italic, + DWORD Underline, + DWORD StrikeOut, + DWORD CharSet, + DWORD OutputPrecision, + DWORD ClipPrecision, + DWORD Quality, + DWORD PitchAndFamily, + LPCTSTR Face); + +HFONT W32kCreateFontIndirect(CONST LPLOGFONT lf); + +BOOL W32kCreateScalableFontResource(DWORD Hidden, + LPCTSTR FontRes, + LPCTSTR FontFile, + LPCTSTR CurrentPath); + +int W32kEnumFontFamilies(HDC hDC, + LPCTSTR Family, + FONTENUMPROC EnumFontFamProc, + LPARAM lParam); + +int W32kEnumFontFamiliesEx(HDC hDC, + LPLOGFONT Logfont, + FONTENUMPROC EnumFontFamExProc, + LPARAM lParam, + DWORD Flags); + +int W32kEnumFonts(HDC hDC, + LPCTSTR FaceName, + FONTENUMPROC FontFunc, + LPARAM lParam); + +BOOL W32kExtTextOut(HDC hDC, + int X, + int Y, + UINT Options, + CONST LPRECT rc, + LPCTSTR String, + UINT Count, + CONST LPINT Dx); + +BOOL W32kGetAspectRatioFilterEx(HDC hDC, + LPSIZE AspectRatio); + +BOOL W32kGetCharABCWidths(HDC hDC, + UINT FirstChar, + UINT LastChar, + LPABC abc); + +BOOL W32kGetCharABCWidthsFloat(HDC hDC, + UINT FirstChar, + UINT LastChar, + LPABCFLOAT abcF); + +DWORD W32kGetCharacterPlacement(HDC hDC, + LPCTSTR String, + int Count, + int MaxExtent, + LPGCP_RESULTS Results, + DWORD Flags); + +BOOL W32kGetCharWidth(HDC hDC, + UINT FirstChar, + UINT LastChar, + LPINT Buffer); + +BOOL W32kGetCharWidth32(HDC hDC, + UINT FirstChar, + UINT LastChar, + LPINT Buffer); + +BOOL W32kGetCharWidthFloat(HDC hDC, + UINT FirstChar, + UINT LastChar, + PFLOAT Buffer); + +DWORD W32kGetFontLanguageInfo(HDC hDC); + +DWORD W32kGetGlyphOutline(HDC hDC, + UINT Char, + UINT Format, + LPGLYPHMETRICS gm, + DWORD Bufsize, + LPVOID Buffer, + CONST LPMAT2 mat2); + +DWORD W32kGetKerningPairs(HDC hDC, + DWORD NumPairs, + LPKERNINGPAIR krnpair); + +UINT W32kGetOutlineTextMetrics(HDC hDC, + UINT Data, + LPOUTLINETEXTMETRIC otm); + +BOOL W32kGetRasterizerCaps(LPRASTERIZER_STATUS rs, + UINT Size); + +BOOL W32kGetTextExtentExPoint(HDC hDC, + LPCTSTR String, + int Count, + int MaxExtent, + LPINT Fit, + LPINT Dx, + LPSIZE Size); + +BOOL W32kGetTextExtentPoint(HDC hDC, + LPCTSTR String, + int Count, + LPSIZE Size); + +BOOL W32kGetTextExtentPoint32(HDC hDC, + LPCTSTR String, + int Count, + LPSIZE Size); + +int W32kGetTextFace(HDC hDC, + int Count, + LPTSTR FaceName); + +BOOL W32kGetTextMetrics(HDC hDC, + LPTEXTMETRIC tm); + +BOOL W32kPolyTextOut(HDC hDC, + CONST LPPOLYTEXT txt, + int Count); + +BOOL W32kRemoveFontResource(LPCTSTR FileName); + +DWORD W32kSetMapperFlags(HDC hDC, + DWORD Flag); + +UINT W32kSetTextAlign(HDC hDC, + UINT Mode); + +COLORREF W32kSetTextColor(HDC hDC, + COLORREF Color); + +BOOL W32kSetTextJustification(HDC hDC, + int BreakExtra, + int BreakCount); + +BOOL W32kTextOut(HDC hDC, + int XStart, + int YStart, + LPCTSTR String, + int Count); + +#endif + diff --git a/reactos/include/win32k/win32k.h b/reactos/include/win32k/win32k.h new file mode 100644 index 00000000000..d3fac1aed2e --- /dev/null +++ b/reactos/include/win32k/win32k.h @@ -0,0 +1,11 @@ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + diff --git a/reactos/subsys/win32k/main/dllmain.c b/reactos/subsys/win32k/main/dllmain.c index c0c5ae98d22..20d3fcd3323 100644 --- a/reactos/subsys/win32k/main/dllmain.c +++ b/reactos/subsys/win32k/main/dllmain.c @@ -9,20 +9,20 @@ #include #include -#include -#include -#include +#include SERVICE_TABLE W32kServiceTable[] = { #if 0 {?, (ULONG) W32kAbortDoc}, {?, (ULONG) W32kAbortPath}, - {?, (ULONG) W32kAddFontResource}, - {?, (ULONG) W32kAngleArc}, - {?, (ULONG) W32kAnimatePalette}, - {?, (ULONG) W32kArc}, - {?, (ULONG) W32kArcTo}, +#endif + {4, (ULONG) W32kAddFontResource}, + {24, (ULONG) W32kAngleArc}, + {16, (ULONG) W32kAnimatePalette}, + {36, (ULONG) W32kArc}, + {36, (ULONG) W32kArcTo}, +#if 0 {?, (ULONG) W32kBeginPath}, #endif {36, (ULONG) W32kBitBlt}, @@ -30,16 +30,20 @@ SERVICE_TABLE W32kServiceTable[] = #if 0 {?, (ULONG) W32kCheckColorsInGamut}, {?, (ULONG) W32kChoosePixelFormat}, - {?, (ULONG) W32kChord}, - {?, (ULONG) W32kCloseEnhMetaFile}, +#endif + {36, (ULONG) W32kChord}, + {4, (ULONG) W32kCloseEnhMetaFile}, +#if 0 {?, (ULONG) W32kCloseFigure}, - {?, (ULONG) W32kCloseMetaFile}, +#endif + {4, (ULONG) W32kCloseMetaFile}, +#if 0 {?, (ULONG) W32kColorMatchToTarget}, {?, (ULONG) W32kCombineRgn}, - {?, (ULONG) W32kCombineTransform}, - {?, (ULONG) W32kCopyEnhMetaFile}, - {?, (ULONG) W32kCopyMetaFile}, #endif + {12, (ULONG) W32kCombineTransform}, + {8, (ULONG) W32kCopyEnhMetaFile}, + {8, (ULONG) W32kCopyMetaFile}, {20, (ULONG) W32kCreateBitmap}, {4, (ULONG) W32kCreateBitmapIndirect}, {4, (ULONG) W32kCreateBrushIndirect}, @@ -57,17 +61,17 @@ SERVICE_TABLE W32kServiceTable[] = #if 0 {?, (ULONG) W32kCreateEllipticRgn}, {?, (ULONG) W32kCreateEllipticRgnIndirect}, - {?, (ULONG) W32kCreateEnhMetaFile}, - {?, (ULONG) W32kCreateFontIndirect}, - {?, (ULONG) W32kCreateFont}, - {?, (ULONG) W32kCreateHalftonePalette}, #endif + {16, (ULONG) W32kCreateEnhMetaFile}, + {56, (ULONG) W32kCreateFont}, + {4, (ULONG) W32kCreateFontIndirect}, + {4, (ULONG) W32kCreateHalftonePalette}, {8, (ULONG) W32kCreateHatchBrush}, #if 0 {?, (ULONG) W32kCreateIC}, - {?, (ULONG) W32kCreateMetaFile}, - {?, (ULONG) W32kCreatePalette}, #endif + {4, (ULONG) W32kCreateMetaFile}, + {4, (ULONG) W32kCreatePalette}, {4, (ULONG) W32kCreatePatternBrush}, #if 0 {?, (ULONG) W32kCreatePen}, @@ -77,47 +81,51 @@ SERVICE_TABLE W32kServiceTable[] = {?, (ULONG) W32kCreateRectRgn}, {?, (ULONG) W32kCreateRectRgnIndirect}, {?, (ULONG) W32kCreateRoundRectRgn}, - {?, (ULONG) W32kCreateScalableFontResource}, #endif + {16, (ULONG) W32kCreateScalableFontResource}, {4, (ULONG) W32kCreateSolidBrush}, + {12, (ULONG) W32kDPtoLP}, #if 0 - {?, (ULONG) W32kDPtoLP}, {?, (ULONG) W32kDeleteColorSpace}, #endif {4, (ULONG) W32kDeleteDC}, + {4, (ULONG) W32kDeleteEnhMetaFile}, + {4, (ULONG) W32kDeleteMetaFile}, #if 0 - {?, (ULONG) W32kDeleteEnhMetaFile}, - {?, (ULONG) W32kDeleteMetaFile}, {?, (ULONG) W32kDeleteObject}, {?, (ULONG) W32kDescribePixelFormat}, {?, (ULONG) W32kDeviceCapabilitiesEx}, #endif {16, (ULONG) W32kDrawEscape}, + {20, (ULONG) W32kEllipse}, #if 0 - {?, (ULONG) W32kEllipse}, {?, (ULONG) W32kEndDoc}, {?, (ULONG) W32kEndPage}, {?, (ULONG) W32kEndPath}, - {?, (ULONG) W32kEnumEnhMetaFile}, - {?, (ULONG) W32kEnumFontFamiliesEx}, - {?, (ULONG) W32kEnumFontFamilies}, - {?, (ULONG) W32kEnumFonts}, - {?, (ULONG) W32kEnumICMProfiles}, - {?, (ULONG) W32kEnumMetaFile}, #endif + {20, (ULONG) W32kEnumEnhMetaFile}, + {16, (ULONG) W32kEnumFontFamilies}, + {20, (ULONG) W32kEnumFontFamiliesEx}, + {16, (ULONG) W32kEnumFonts}, +#if 0 + {?, (ULONG) W32kEnumICMProfiles}, +#endif + {16, (ULONG) W32kEnumMetaFile}, {16, (ULONG) W32kEnumObjects}, #if 0 {?, (ULONG) W32kEqualRgn}, {?, (ULONG) W32kEscape}, - {?, (ULONG) W32kExcludeClipRect}, +#endif + {20, (ULONG) W32kExcludeClipRect}, +#if 0 {?, (ULONG) W32kExtCreatePen}, {?, (ULONG) W32kExtCreateRegion}, {?, (ULONG) W32kExtEscape}, #endif {20, (ULONG) W32kExtFloodFill}, + {12, (ULONG) W32kExtSelectClipRgn}, + {32, (ULONG) W32kExtTextOut}, #if 0 - {?, (ULONG) W32kExtSelectClipRgn}, - {?, (ULONG) W32kExtTextOut}, {?, (ULONG) W32kFillPath}, {?, (ULONG) W32kFillRgn}, #endif @@ -128,16 +136,18 @@ SERVICE_TABLE W32kServiceTable[] = {16, (ULONG) W32kFloodFill}, #if 0 {?, (ULONG) W32kFrameRgn}, - {?, (ULONG) W32kGdiComment}, +#endif + {12, (ULONG) W32kGdiComment}, +#if 0 {?, (ULONG) W32kGdiFlush}, {?, (ULONG) W32kGdiGetBatchLimit}, {?, (ULONG) W32kGdiPlayDCScript}, {?, (ULONG) W32kGdiPlayJournal}, {?, (ULONG) W32kGdiPlayScript}, {?, (ULONG) W32kGdiSetBatchLimit}, - {?, (ULONG) W32kGetArcDirection}, - {?, (ULONG) W32kGetAspectRatioFilterEx}, #endif + {4, (ULONG) W32kGetArcDirection}, + {8, (ULONG) W32kGetAspectRatioFilterEx}, {12, (ULONG) W32kGetBitmapBits}, {8, (ULONG) W32kGetBitmapDimensionEx}, {4, (ULONG) W32kGetBkColor}, @@ -146,18 +156,16 @@ SERVICE_TABLE W32kServiceTable[] = {?, (ULONG) W32kGetBoundsRect}, #endif {8, (ULONG) W32kGetBrushOrgEx}, -#if 0 - {?, (ULONG) W32kGetCharABCWidthsFloat}, - {?, (ULONG) W32kGetCharABCWidths}, - {?, (ULONG) W32kGetCharWidth32}, - {?, (ULONG) W32kGetCharWidthFloat}, - {?, (ULONG) W32kGetCharWidth}, - {?, (ULONG) W32kGetCharacterPlacement}, - {?, (ULONG) W32kGetClipBox}, -#endif + {16, (ULONG) W32kGetCharABCWidths}, + {16, (ULONG) W32kGetCharABCWidthsFloat}, + {24, (ULONG) W32kGetCharacterPlacement}, + {16, (ULONG) W32kGetCharWidth}, + {16, (ULONG) W32kGetCharWidth32}, + {16, (ULONG) W32kGetCharWidthFloat}, + {8, (ULONG) W32kGetClipBox}, {4, (ULONG) W32kGetClipRgn}, + {8, (ULONG) W32kGetColorAdjustment}, #if 0 - {?, (ULONG) W32kGetColorAdjustment}, {?, (ULONG) W32kGetColorSpace}, #endif {8, (ULONG) W32kGetCurrentObject}, @@ -168,33 +176,49 @@ SERVICE_TABLE W32kServiceTable[] = {8, (ULONG) W32kGetDeviceCaps}, #if 0 {?, (ULONG) W32kGetDeviceGammaRamp}, +#endif + {4, (ULONG) W32kGetEnhMetaFile}, +#if 0 {?, (ULONG) W32kGetEnhMetaFileBits}, {?, (ULONG) W32kGetEnhMetaFileDescription}, {?, (ULONG) W32kGetEnhMetaFileHeader}, {?, (ULONG) W32kGetEnhMetaFilePaletteEntries}, {?, (ULONG) W32kGetEnhMetaFilePixelFormat}, - {?, (ULONG) W32kGetEnhMetaFile}, - {?, (ULONG) W32kGetFontLanguageInfo}, +#endif + {4, (ULONG) W32kGetFontLanguageInfo}, +#if 0 {?, (ULONG) W32kGetFontResourceInfo}, - {?, (ULONG) W32kGetGlyphOutline}, +#endif + {28, (ULONG) W32kGetGlyphOutline}, +#if 0 {?, (ULONG) W32kGetGlyphOutlineWow}, - {?, (ULONG) W32kGetGraphicsMode}, +#endif + {4, (ULONG) W32kGetGraphicsMode}, +#if 0 {?, (ULONG) W32kGetICMProfile}, - {?, (ULONG) W32kGetKerningPairs}, +#endif + {12, (ULONG) W32kGetKerningPairs}, +#if 0 {?, (ULONG) W32kGetLogColorSpace}, #endif {4, (ULONG) W32kGetMapMode}, #if 0 {?, (ULONG) W32kGetMetaFileBitsEx}, {?, (ULONG) W32kGetMetaFile}, - {?, (ULONG) W32kGetMetaRgn}, +#endif + {8, (ULONG) W32kGetMetaRgn}, +#if 0 {?, (ULONG) W32kGetMiterLimit}, - {?, (ULONG) W32kGetNearestColor}, - {?, (ULONG) W32kGetNearestPaletteIndex}, +#endif + {8, (ULONG) W32kGetNearestColor}, + {8, (ULONG) W32kGetNearestPaletteIndex}, +#if 0 {?, (ULONG) W32kGetObject}, {?, (ULONG) W32kGetObjectType}, - {?, (ULONG) W32kGetOutlineTextMetrics}, - {?, (ULONG) W32kGetPaletteEntries}, +#endif + {12, (ULONG) W32kGetOutlineTextMetrics}, + {16, (ULONG) W32kGetPaletteEntries}, +#if 0 {?, (ULONG) W32kGetPath}, #endif {4, (ULONG) W32kGetPixel}, @@ -205,31 +229,27 @@ SERVICE_TABLE W32kServiceTable[] = {4, (ULONG) W32kGetROP2}, #if 0 {?, (ULONG) W32kGetRandomRgn}, - {?, (ULONG) W32kGetRasterizerCaps}, #endif + {8, (ULONG) W32kGetRasterizerCaps}, {4, (ULONG) W32kGetRelAbs}, #if 0 {?, (ULONG) W32kGetRgnBox}, {?, (ULONG) W32kGetStockObject}, #endif {4, (ULONG) W32kGetStretchBltMode}, -#if 0 - {?, (ULONG) W32kGetSystemPaletteEntries}, - {?, (ULONG) W32kGetSystemPaletteUse}, -#endif + {16, (ULONG) W32kGetSystemPaletteEntries}, + {4, (ULONG) W32kGetSystemPaletteUse}, {4, (ULONG) W32kGetTextAlign}, #if 0 {?, (ULONG) W32kGetTextCharset}, {?, (ULONG) W32kGetTextCharsetInfo}, #endif {4, (ULONG) W32kGetTextColor}, -#if 0 - {?, (ULONG) W32kGetTextExtentExPoint}, - {?, (ULONG) W32kGetTextExtentPoint32}, - {?, (ULONG) W32kGetTextExtentPoint}, - {?, (ULONG) W32kGetTextFace}, - {?, (ULONG) W32kGetTextMetrics}, -#endif + {28, (ULONG) W32kGetTextExtentExPoint}, + {16, (ULONG) W32kGetTextExtentPoint}, + {16, (ULONG) W32kGetTextExtentPoint32}, + {12, (ULONG) W32kGetTextFace}, + {8, (ULONG) W32kGetTextMetrics}, {8, (ULONG) W32kGetViewportExtEx}, {8, (ULONG) W32kGetViewportOrgEx}, #if 0 @@ -237,74 +257,78 @@ SERVICE_TABLE W32kServiceTable[] = #endif {8, (ULONG) W32kGetWindowExtEx}, {8, (ULONG) W32kGetWindowOrgEx}, + {8, (ULONG) W32kGetWorldTransform}, + {20, (ULONG) W32kIntersectClipRect}, #if 0 - {?, (ULONG) W32kGetWorldTransform}, - {?, (ULONG) W32kIntersectClipRect}, {?, (ULONG) W32kInvertRgn}, - {?, (ULONG) W32kLPtoDP}, - {?, (ULONG) W32kLineTo}, #endif + {12, (ULONG) W32kLPtoDP}, + {12, (ULONG) W32kLineTo}, {48, (ULONG) W32kMaskBlt}, + {12, (ULONG) W32kModifyWorldTransform}, + {16, (ULONG) W32kMoveToEx}, + {12, (ULONG) W32kOffsetClipRgn}, #if 0 - {?, (ULONG) W32kModifyWorldTransform}, - {?, (ULONG) W32kMoveToEx}, - {?, (ULONG) W32kOffsetClipRgn}, {?, (ULONG) W32kOffsetRgn}, - {?, (ULONG) W32kOffsetViewportOrgEx}, - {?, (ULONG) W32kOffsetWindowOrgEx}, +#endif + {16, (ULONG) W32kOffsetViewportOrgEx}, + {16, (ULONG) W32kOffsetWindowOrgEx}, +#if 0 {?, (ULONG) W32kPaintRgn}, #endif {24, (ULONG) W32kPatBlt}, #if 0 {?, (ULONG) W32kPathToRegion}, - {?, (ULONG) W32kPie}, +#endif + {36, (ULONG) W32kPie}, +#if 0 {?, (ULONG) W32kPlayEnhMetaFile}, {?, (ULONG) W32kPlayEnhMetaFileRecord}, {?, (ULONG) W32kPlayMetaFile}, {?, (ULONG) W32kPlayMetaFileRecord}, #endif {40, (ULONG) W32kPlgBlt}, + {12, (ULONG) W32kPolyBezier}, + {12, (ULONG) W32kPolyBezierTo}, + {16, (ULONG) W32kPolyDraw}, + {12, (ULONG) W32kPolyline}, + {12, (ULONG) W32kPolylineTo}, + {16, (ULONG) W32kPolyPolyline}, + {12, (ULONG) W32kPolyTextOut}, + {12, (ULONG) W32kPolygon}, + {16, (ULONG) W32kPolyPolygon}, #if 0 - {?, (ULONG) W32kPolyBezier}, - {?, (ULONG) W32kPolyBezierTo}, - {?, (ULONG) W32kPolyDraw}, - {?, (ULONG) W32kPolyPolygon}, - {?, (ULONG) W32kPolyPolyline}, - {?, (ULONG) W32kPolyTextOut}, - {?, (ULONG) W32kPolygon}, - {?, (ULONG) W32kPolyline}, - {?, (ULONG) W32kPolylineTo}, {?, (ULONG) W32kPtInRegion}, - {?, (ULONG) W32kPtVisible}, - {?, (ULONG) W32kRealizePalette}, +#endif + {12, (ULONG) W32kPtVisible}, + {4, (ULONG) W32kRealizePalette}, +#if 0 {?, (ULONG) W32kRectInRegion}, - {?, (ULONG) W32kRectVisible}, - {?, (ULONG) W32kRectangle}, - {?, (ULONG) W32kRemoveFontResource}, #endif + {8, (ULONG) W32kRectVisible}, + {20, (ULONG) W32kRectangle}, + {4, (ULONG) W32kRemoveFontResource}, {8, (ULONG) W32kResetDC}, -#if 0 - {?, (ULONG) W32kResizePalette}, -#endif + {8, (ULONG) W32kResizePalette}, {8, (ULONG) W32kRestoreDC}, -#if 0 - {?, (ULONG) W32kRoundRect}, -#endif + {28, (ULONG) W32kRoundRect}, {4, (ULONG) W32kSaveDC}, + {24, (ULONG) W32kScaleViewportExtEx}, + {24, (ULONG) W32kScaleWindowExtEx}, #if 0 - {?, (ULONG) W32kScaleViewportExtEx}, - {?, (ULONG) W32kScaleWindowExtEx}, {?, (ULONG) W32kSelectBrushLocal}, - {?, (ULONG) W32kSelectClipPath}, - {?, (ULONG) W32kSelectClipRgn}, +#endif + {8, (ULONG) W32kSelectClipPath}, + {8, (ULONG) W32kSelectClipRgn}, +#if 0 {?, (ULONG) W32kSelectFontLocal}, #endif {8, (ULONG) W32kSelectObject}, + {12, (ULONG) W32kSelectPalette}, #if 0 - {?, (ULONG) W32kSelectPalette}, {?, (ULONG) W32kSetAbortProc}, - {?, (ULONG) W32kSetArcDirection}, #endif + {8, (ULONG) W32kSetArcDirection}, {12, (ULONG) W32kSetBitmapBits}, {16, (ULONG) W32kSetBitmapDimensionEx}, #if 0 @@ -315,8 +339,8 @@ SERVICE_TABLE W32kServiceTable[] = {?, (ULONG) W32kSetBoundsRect}, #endif {16, (ULONG) W32kSetBrushOrgEx}, + {8, (ULONG) W32kSetColorAdjustment}, #if 0 - {?, (ULONG) W32kSetColorAdjustment}, {?, (ULONG) W32kSetColorSpace}, #endif {16, (ULONG) W32kSetDIBColorTable}, @@ -326,16 +350,22 @@ SERVICE_TABLE W32kServiceTable[] = {?, (ULONG) W32kSetDeviceGammaRamp}, {?, (ULONG) W32kSetEnhMetaFileBits}, {?, (ULONG) W32kSetFontEnumeration}, - {?, (ULONG) W32kSetGraphicsMode}, +#endif + {8, (ULONG) W32kSetGraphicsMode}, +#if 0 {?, (ULONG) W32kSetICMMode}, {?, (ULONG) W32kSetICMProfile}, - {?, (ULONG) W32kSetMapMode}, - {?, (ULONG) W32kSetMapperFlags}, - {?, (ULONG) W32kSetMetaFileBitsEx}, - {?, (ULONG) W32kSetMetaRgn}, - {?, (ULONG) W32kSetMiterLimit}, - {?, (ULONG) W32kSetPaletteEntries}, #endif + {8, (ULONG) W32kSetMapMode}, + {8, (ULONG) W32kSetMapperFlags}, +#if 0 + {?, (ULONG) W32kSetMetaFileBitsEx}, +#if 0 + {4, (ULONG) W32kSetMetaRgn}, +#endif + {?, (ULONG) W32kSetMiterLimit}, +#endif + {16, (ULONG) W32kSetPaletteEntries}, {16, (ULONG) W32kSetPixel}, #if 0 {?, (ULONG) W32kSetPixelFormat}, @@ -348,17 +378,19 @@ SERVICE_TABLE W32kServiceTable[] = #endif // {8, (ULONG) W32kSetRelAbs}, {8, (ULONG) W32kSetStretchBltMode}, + {8, (ULONG) W32kSetSystemPaletteUse}, + {8, (ULONG) W32kSetTextAlign}, + {8, (ULONG) W32kSetTextColor}, + {12, (ULONG) W32kSetTextJustification}, + {16, (ULONG) W32kSetViewportExtEx}, + {16, (ULONG) W32kSetViewportOrgEx}, #if 0 - {?, (ULONG) W32kSetSystemPaletteUse}, - {?, (ULONG) W32kSetTextAlign}, - {?, (ULONG) W32kSetTextColor}, - {?, (ULONG) W32kSetTextJustification}, - {?, (ULONG) W32kSetViewportExtEx}, - {?, (ULONG) W32kSetViewportOrgEx}, {?, (ULONG) W32kSetWinMetaFileBits}, - {?, (ULONG) W32kSetWindowExtEx}, - {?, (ULONG) W32kSetWindowOrgEx}, - {?, (ULONG) W32kSetWorldTransform}, +#endif + {16, (ULONG) W32kSetWindowExtEx}, + {16, (ULONG) W32kSetWindowOrgEx}, + {8, (ULONG) W32kSetWorldTransform}, +#if 0 {?, (ULONG) W32kStartDoc}, {?, (ULONG) W32kStartPage}, #endif @@ -368,10 +400,14 @@ SERVICE_TABLE W32kServiceTable[] = {?, (ULONG) W32kStrokeAndFillPath}, {?, (ULONG) W32kStrokePath}, {?, (ULONG) W32kSwapBuffers}, - {?, (ULONG) W32kTextOut}, +#endif + {20, (ULONG) W32kTextOut}, +#if 0 {?, (ULONG) W32kTranslateCharsetInfo}, - {?, (ULONG) W32kUnrealizeObject}, - {?, (ULONG) W32kUpdateColors}, +#endif + {8, (ULONG) W32kUnrealizeObject}, + {4, (ULONG) W32kUpdateColors}, +#if 0 {?, (ULONG) W32kUpdateICMRegKey}, {?, (ULONG) W32kWidenPath}, {?, (ULONG) W32kgdiPlaySpoolStream}, diff --git a/reactos/subsys/win32k/makefile b/reactos/subsys/win32k/makefile index d4a5261720b..864cef47724 100644 --- a/reactos/subsys/win32k/makefile +++ b/reactos/subsys/win32k/makefile @@ -4,7 +4,9 @@ MAIN_OBJECTS = main/dllmain.o MISC_OBJECTS = misc/driver.o -OBJECTS_OBJECTS = objects/bitmaps.o objects/brush.o objects/dc.o +OBJECTS_OBJECTS = objects/bitmaps.o objects/brush.o objects/cliprgn.o \ + objects/color.o objects/coord.o objects/dc.o \ + objects/fillshap.o objects/line.o objects/text.o RESOURCE_OBJECT = win32k.coff STUBS_OBJECTS = stubs/stubs.o diff --git a/reactos/subsys/win32k/objects/bitmaps.c b/reactos/subsys/win32k/objects/bitmaps.c index 61da70093a9..c72dbbd5ab2 100644 --- a/reactos/subsys/win32k/objects/bitmaps.c +++ b/reactos/subsys/win32k/objects/bitmaps.c @@ -1,6 +1,7 @@ #undef WIN32_LEAN_AND_MEAN +#include #include // #define NDEBUG diff --git a/reactos/subsys/win32k/objects/brush.c b/reactos/subsys/win32k/objects/brush.c index 4bc175ac69e..5f4b373848a 100644 --- a/reactos/subsys/win32k/objects/brush.c +++ b/reactos/subsys/win32k/objects/brush.c @@ -1,8 +1,9 @@ -/* $Id: brush.c,v 1.3 1999/07/17 23:10:31 ea Exp $ +/* $Id: brush.c,v 1.4 1999/07/22 16:21:52 rex Exp $ */ #undef WIN32_LEAN_AND_MEAN +#include #include // #define NDEBUG diff --git a/reactos/subsys/win32k/objects/cliprgn.c b/reactos/subsys/win32k/objects/cliprgn.c new file mode 100644 index 00000000000..df6349c70db --- /dev/null +++ b/reactos/subsys/win32k/objects/cliprgn.c @@ -0,0 +1,85 @@ + + +#undef WIN32_LEAN_AND_MEAN +#include +#include + +// #define NDEBUG +#include + +int W32kExcludeClipRect(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect) +{ + UNIMPLEMENTED; +} + +int W32kExtSelectClipRgn(HDC hDC, + HRGN hrgn, + int fnMode) +{ + UNIMPLEMENTED; +} + +int W32kGetClipBox(HDC hDC, + LPRECT rc) +{ + UNIMPLEMENTED; +} + +int W32kGetMetaRgn(HDC hDC, + HRGN hrgn) +{ + UNIMPLEMENTED; +} + +int W32kIntersectClipRect(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect) +{ + UNIMPLEMENTED; +} + +int W32kOffsetClipRgn(HDC hDC, + int XOffset, + int YOffset) +{ + UNIMPLEMENTED; +} + +BOOL W32kPtVisible(HDC hDC, + int X, + int Y) +{ + UNIMPLEMENTED; +} + +BOOL W32kRectVisible(HDC hDC, + CONST PRECT rc) +{ + UNIMPLEMENTED; +} + +BOOL W32kSelectClipPath(HDC hDC, + int Mode) +{ + UNIMPLEMENTED; +} + +int W32kSelectClipRgn(HDC hDC, + HRGN hrgn) +{ + UNIMPLEMENTED; +} + +int W32kSetMetaRgn(HDC hDC) +{ + UNIMPLEMENTED; +} + + + diff --git a/reactos/subsys/win32k/objects/color.c b/reactos/subsys/win32k/objects/color.c new file mode 100644 index 00000000000..cf9e1d7391d --- /dev/null +++ b/reactos/subsys/win32k/objects/color.c @@ -0,0 +1,113 @@ + +#undef WIN32_LEAN_AND_MEAN +#include +#include + +// #define NDEBUG +#include + +BOOL W32kAnimatePalette(HPALETTE hpal, + UINT StartIndex, + UINT Entries, + CONST PPALETTEENTRY ppe) +{ + UNIMPLEMENTED; +} + +HPALETTE W32kCreateHalftonePalette(HDC hDC) +{ + UNIMPLEMENTED; +} + +HPALETTE W32kCreatePalette(CONST PLOGPALETTE lgpl) +{ + UNIMPLEMENTED; +} + +BOOL W32kGetColorAdjustment(HDC hDC, + LPCOLORADJUSTMENT ca) +{ + UNIMPLEMENTED; +} + +COLORREF W32kGetNearestColor(HDC hDC, + COLORREF Color) +{ + UNIMPLEMENTED; +} + +UINT W32kGetNearestPaletteIndex(HPALETTE hpal, + COLORREF Color) +{ + UNIMPLEMENTED; +} + +UINT W32kGetPaletteEntries(HPALETTE hpal, + UINT StartIndex, + UINT Entries, + LPPALETTEENTRY pe) +{ + UNIMPLEMENTED; +} + +UINT W32kGetSystemPaletteEntries(HDC hDC, + UINT StartIndex, + UINT Entries, + LPPALETTEENTRY pe) +{ + UNIMPLEMENTED; +} + +UINT W32kGetSystemPaletteUse(HDC hDC) +{ + UNIMPLEMENTED; +} + +UINT W32kRealizePalette(HDC hDC) +{ + UNIMPLEMENTED; +} + +BOOL W32kResizePalette(HPALETTE hpal, + UINT Entries) +{ + UNIMPLEMENTED; +} + +HPALETTE W32kSelectPalette(HDC hDC, + HPALETTE hpal, + BOOL ForceBackground) +{ + UNIMPLEMENTED; +} + +BOOL W32kSetColorAdjustment(HDC hDC, + CONST LPCOLORADJUSTMENT ca) +{ + UNIMPLEMENTED; +} + +UINT W32kSetPaletteEntries(HPALETTE hpal, + UINT Start, + UINT Entries, + CONST LPPALETTEENTRY pe) +{ + UNIMPLEMENTED; +} + +UINT W32kSetSystemPaletteUse(HDC hDC, + UINT Usage) +{ + UNIMPLEMENTED; +} + +BOOL W32kUnrealizeObject(HGDIOBJ hgdiobj) +{ + UNIMPLEMENTED; +} + +BOOL W32kUpdateColors(HDC hDC) +{ + UNIMPLEMENTED; +} + diff --git a/reactos/subsys/win32k/objects/coord.c b/reactos/subsys/win32k/objects/coord.c new file mode 100644 index 00000000000..2dfea5511a3 --- /dev/null +++ b/reactos/subsys/win32k/objects/coord.c @@ -0,0 +1,135 @@ + + +#undef WIN32_LEAN_AND_MEAN +#include +#include + +// #define NDEBUG +#include + +BOOL W32kCombineTransform(LPXFORM XformResult, + CONST LPXFORM xform1, + CONST LPXFORM xform2) +{ + UNIMPLEMENTED; +} + +BOOL W32kDPtoLP(HDC hDC, + LPPOINT Points, + int Count) +{ + UNIMPLEMENTED; +} + +int W32kGetGraphicsMode(HDC hDC) +{ + UNIMPLEMENTED; +} + +BOOL W32kGetWorldTransform(HDC hDC, + LPXFORM Xform) +{ + UNIMPLEMENTED; +} + +BOOL W32kLPtoDP(HDC hDC, + LPPOINT Points, + int Count) +{ + UNIMPLEMENTED; +} + +BOOL W32kModifyWorldTransform(HDC hDC, + CONST LPXFORM Xform, + DWORD Mode) +{ + UNIMPLEMENTED; +} + +BOOL W32kOffsetViewportOrgEx(HDC hDC, + int XOffset, + int YOffset, + LPPOINT Point) +{ + UNIMPLEMENTED; +} + +BOOL W32kOffsetWindowOrgEx(HDC hDC, + int XOffset, + int YOffset, + LPPOINT Point) +{ + UNIMPLEMENTED; +} + +BOOL W32kScaleViewportExtEx(HDC hDC, + int Xnum, + int Xdenom, + int Ynum, + int Ydenom, + LPSIZE Size) +{ + UNIMPLEMENTED; +} + +BOOL W32kScaleWindowExtEx(HDC hDC, + int Xnum, + int Xdenom, + int Ynum, + int Ydenom, + LPSIZE Size) +{ + UNIMPLEMENTED; +} + +int W32kSetGraphicsMode(HDC hDC, + int Mode) +{ + UNIMPLEMENTED; +} + +int W32kSetMapMode(HDC hDC, + int MapMode) +{ + UNIMPLEMENTED; +} + +BOOL W32kSetViewportExtEx(HDC hDC, + int XExtent, + int YExtent, + LPSIZE Size) +{ + UNIMPLEMENTED; +} + +BOOL W32kSetViewportOrgEx(HDC hDC, + int X, + int Y, + LPPOINT Point) +{ + UNIMPLEMENTED; +} + +BOOL W32kSetWindowExtEx(HDC hDC, + int XExtent, + int YExtent, + LPSIZE Size) +{ + UNIMPLEMENTED; +} + +BOOL W32kSetWindowOrgEx(HDC hDC, + int X, + int Y, + LPPOINT Point) +{ + UNIMPLEMENTED; +} + +BOOL W32kSetWorldTransform(HDC hDC, + CONST LPXFORM Xform) +{ + UNIMPLEMENTED; +} + + diff --git a/reactos/subsys/win32k/objects/fillshap.c b/reactos/subsys/win32k/objects/fillshap.c new file mode 100644 index 00000000000..e2ed146a857 --- /dev/null +++ b/reactos/subsys/win32k/objects/fillshap.c @@ -0,0 +1,79 @@ + +#undef WIN32_LEAN_AND_MEAN +#include +#include + +// #define NDEBUG +#include + +BOOL W32kChord(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect, + int XRadial1, + int YRadial1, + int XRadial2, + int YRadial2) +{ + UNIMPLEMENTED; +} + +BOOL W32kEllipse(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect) +{ + UNIMPLEMENTED; +} + +BOOL W32kPie(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect, + int XRadial1, + int YRadial1, + int XRadial2, + int YRadial2) +{ + UNIMPLEMENTED; +} + +BOOL W32kPolygon(HDC hDC, + CONST PPOINT Points, + int Count) +{ + UNIMPLEMENTED; +} + +BOOL W32kPolyPolygon(HDC hDC, + CONST LPPOINT Points, + CONST LPINT PolyCounts, + int Count) +{ + UNIMPLEMENTED; +} + +BOOL W32kRectangle(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect) +{ + UNIMPLEMENTED; +} + +BOOL W32kRoundRect(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect, + int Width, + int Height) +{ + UNIMPLEMENTED; +} + + diff --git a/reactos/subsys/win32k/objects/line.c b/reactos/subsys/win32k/objects/line.c new file mode 100644 index 00000000000..a8524a0a056 --- /dev/null +++ b/reactos/subsys/win32k/objects/line.c @@ -0,0 +1,115 @@ + + +#undef WIN32_LEAN_AND_MEAN +#include +#include + +// #define NDEBUG +#include + +BOOL W32kAngleArc(HDC hDC, + int X, + int Y, + DWORD Radius, + FLOAT StartAngle, + FLOAT SweepAngle) +{ + UNIMPLEMENTED; +} + +BOOL W32kArc(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect, + int XStartArc, + int YStartArc, + int XEndArc, + int YEndArc) +{ + UNIMPLEMENTED; +} + +BOOL W32kArcTo(HDC hDC, + int LeftRect, + int TopRect, + int RightRect, + int BottomRect, + int XRadial1, + int YRadial1, + int XRadial2, + int YRadial2) +{ + UNIMPLEMENTED; +} + +int W32kGetArcDirection(HDC hDC) +{ + UNIMPLEMENTED; +} + +BOOL W32kLineTo(HDC hDC, + int XEnd, + int YEnd) +{ + UNIMPLEMENTED; +} + +BOOL W32kMoveToEx(HDC hDC, + int X, + int Y, + LPPOINT Point) +{ + UNIMPLEMENTED; +} + +BOOL W32kPolyBezier(HDC hDC, + CONST LPPOINT pt, + DWORD Count) +{ + UNIMPLEMENTED; +} + +BOOL W32kPolyBezierTo(HDC hDC, + CONST LPPOINT pt, + DWORD Count) +{ + UNIMPLEMENTED; +} + +BOOL W32kPolyDraw(HDC hDC, + CONST LPPOINT pt, + CONST LPBYTE Types, + int Count) +{ + UNIMPLEMENTED; +} + +BOOL W32kPolyline(HDC hDC, + CONST LPPOINT pt, + int Count) +{ + UNIMPLEMENTED; +} + +BOOL W32kPolylineTo(HDC hDC, + CONST LPPOINT pt, + DWORD Count) +{ + UNIMPLEMENTED; +} + +BOOL W32kPolyPolyline(HDC hDC, + CONST LPPOINT pt, + CONST LPDWORD PolyPoints, + DWORD Count) +{ + UNIMPLEMENTED; +} + +int W32kSetArcDirection(HDC hDC, + int ArcDirection) +{ + UNIMPLEMENTED; +} + diff --git a/reactos/subsys/win32k/objects/metafile.c b/reactos/subsys/win32k/objects/metafile.c new file mode 100644 index 00000000000..d1142bdb5f0 --- /dev/null +++ b/reactos/subsys/win32k/objects/metafile.c @@ -0,0 +1,84 @@ + + +#undef WIN32_LEAN_AND_MEAN +#include +#include + +// #define NDEBUG +#include + +HENHMETAFILE W32kCloseEnhMetaFile(HDC hDC) +{ + UNIMPLEMENTED; +} + +HMETAFILE W32kCloseMetaFile(HDC hDC) +{ + UNIMPLEMENTED; +} + +HENHMETAFILE W32kCopyEnhMetaFile(HENHMETAFILE Src, + LPCTSTR File) +{ + UNIMPLEMENTED; +} + +HMETAFILE W32kCopyMetaFile(HMETAFILE Src, + LPCTSTR File) +{ + UNIMPLEMENTED; +} + +HDC W32kCreateEnhMetaFile(HDC hDCRef, + LPCTSTR File, + CONST LPRECT Rect, + LPCTSTR Description) +{ + UNIMPLEMENTED; +} + +HDC W32kCreateMetaFile(LPCTSTR File) +{ + UNIMPLEMENTED; +} + +BOOL W32kDeleteEnhMetaFile(HENHMETAFILE emf) +{ + UNIMPLEMENTED; +} + +BOOL W32kDeleteMetaFile(HMETAFILE mf) +{ + UNIMPLEMENTED; +} + +BOOL W32kEnumEnhMetaFile(HDC hDC, + HENHMETAFILE emf, + ENHMFENUMPROC EnhMetaFunc, + LPVOID Data, + CONST LPRECT Rect) +{ + UNIMPLEMENTED; +} + +BOOL W32kEnumMetaFile(HDC hDC, + HMETAFILE mf, + MFENUMPROC MetaFunc, + LPARAM lParam) +{ + UNIMPLEMENTED; +} + +BOOL W32kGdiComment(HDC hDC, + UINT Size, + CONST LPBYTE Data) +{ + UNIMPLEMENTED; +} + +HENHMETAFILE W32kGetEnhMetaFile(LPCTSTR MetaFile) +{ + UNIMPLEMENTED; +} + + diff --git a/reactos/subsys/win32k/objects/text.c b/reactos/subsys/win32k/objects/text.c new file mode 100644 index 00000000000..c2e29c18a15 --- /dev/null +++ b/reactos/subsys/win32k/objects/text.c @@ -0,0 +1,260 @@ + + +#undef WIN32_LEAN_AND_MEAN +#include +#include + +// #define NDEBUG +#include + +int W32kAddFontResource(LPCTSTR Filename) +{ + UNIMPLEMENTED; +} + +HFONT W32kCreateFont(int Height, + int Width, + int Escapement, + int Orientation, + int Weight, + DWORD Italic, + DWORD Underline, + DWORD StrikeOut, + DWORD CharSet, + DWORD OutputPrecision, + DWORD ClipPrecision, + DWORD Quality, + DWORD PitchAndFamily, + LPCTSTR Face) +{ + UNIMPLEMENTED; +} + +HFONT W32kCreateFontIndirect(CONST LPLOGFONT lf) +{ + UNIMPLEMENTED; +} + +BOOL W32kCreateScalableFontResource(DWORD Hidden, + LPCTSTR FontRes, + LPCTSTR FontFile, + LPCTSTR CurrentPath) +{ + UNIMPLEMENTED; +} + +int W32kEnumFontFamilies(HDC hDC, + LPCTSTR Family, + FONTENUMPROC EnumFontFamProc, + LPARAM lParam) +{ + UNIMPLEMENTED; +} + +int W32kEnumFontFamiliesEx(HDC hDC, + LPLOGFONT Logfont, + FONTENUMPROC EnumFontFamExProc, + LPARAM lParam, + DWORD Flags) +{ + UNIMPLEMENTED; +} + +int W32kEnumFonts(HDC hDC, + LPCTSTR FaceName, + FONTENUMPROC FontFunc, + LPARAM lParam) +{ + UNIMPLEMENTED; +} + +BOOL W32kExtTextOut(HDC hDC, + int X, + int Y, + UINT Options, + CONST LPRECT rc, + LPCTSTR String, + UINT Count, + CONST LPINT Dx) +{ + UNIMPLEMENTED; +} + +BOOL W32kGetAspectRatioFilterEx(HDC hDC, + LPSIZE AspectRatio) +{ + UNIMPLEMENTED; +} + +BOOL W32kGetCharABCWidths(HDC hDC, + UINT FirstChar, + UINT LastChar, + LPABC abc) +{ + UNIMPLEMENTED; +} + +BOOL W32kGetCharABCWidthsFloat(HDC hDC, + UINT FirstChar, + UINT LastChar, + LPABCFLOAT abcF) +{ + UNIMPLEMENTED; +} + +DWORD W32kGetCharacterPlacement(HDC hDC, + LPCTSTR String, + int Count, + int MaxExtent, + LPGCP_RESULTS Results, + DWORD Flags) +{ + UNIMPLEMENTED; +} + +BOOL W32kGetCharWidth(HDC hDC, + UINT FirstChar, + UINT LastChar, + LPINT Buffer) +{ + UNIMPLEMENTED; +} + +BOOL W32kGetCharWidth32(HDC hDC, + UINT FirstChar, + UINT LastChar, + LPINT Buffer) +{ + UNIMPLEMENTED; +} + +BOOL W32kGetCharWidthFloat(HDC hDC, + UINT FirstChar, + UINT LastChar, + PFLOAT Buffer) +{ + UNIMPLEMENTED; +} + +DWORD W32kGetFontLanguageInfo(HDC hDC) +{ + UNIMPLEMENTED; +} + +DWORD W32kGetGlyphOutline(HDC hDC, + UINT Char, + UINT Format, + LPGLYPHMETRICS gm, + DWORD Bufsize, + LPVOID Buffer, + CONST LPMAT2 mat2) +{ + UNIMPLEMENTED; +} + +DWORD W32kGetKerningPairs(HDC hDC, + DWORD NumPairs, + LPKERNINGPAIR krnpair) +{ + UNIMPLEMENTED; +} + +UINT W32kGetOutlineTextMetrics(HDC hDC, + UINT Data, + LPOUTLINETEXTMETRIC otm) +{ + UNIMPLEMENTED; +} + +BOOL W32kGetRasterizerCaps(LPRASTERIZER_STATUS rs, + UINT Size) +{ + UNIMPLEMENTED; +} + +BOOL W32kGetTextExtentExPoint(HDC hDC, + LPCTSTR String, + int Count, + int MaxExtent, + LPINT Fit, + LPINT Dx, + LPSIZE Size) +{ + UNIMPLEMENTED; +} + +BOOL W32kGetTextExtentPoint(HDC hDC, + LPCTSTR String, + int Count, + LPSIZE Size) +{ + UNIMPLEMENTED; +} + +BOOL W32kGetTextExtentPoint32(HDC hDC, + LPCTSTR String, + int Count, + LPSIZE Size) +{ + UNIMPLEMENTED; +} + +int W32kGetTextFace(HDC hDC, + int Count, + LPTSTR FaceName) +{ + UNIMPLEMENTED; +} + +BOOL W32kGetTextMetrics(HDC hDC, + LPTEXTMETRIC tm) +{ + UNIMPLEMENTED; +} + +BOOL W32kPolyTextOut(HDC hDC, + CONST LPPOLYTEXT txt, + int Count) +{ + UNIMPLEMENTED; +} + +BOOL W32kRemoveFontResource(LPCTSTR FileName) +{ + UNIMPLEMENTED; +} + +DWORD W32kSetMapperFlags(HDC hDC, + DWORD Flag) +{ + UNIMPLEMENTED; +} + +UINT W32kSetTextAlign(HDC hDC, + UINT Mode) +{ + UNIMPLEMENTED; +} + +COLORREF W32kSetTextColor(HDC hDC, + COLORREF Color) +{ + UNIMPLEMENTED; +} + +BOOL W32kSetTextJustification(HDC hDC, + int BreakExtra, + int BreakCount) +{ + UNIMPLEMENTED; +} + +BOOL W32kTextOut(HDC hDC, + int XStart, + int YStart, + LPCTSTR String, + int Count) +{ + UNIMPLEMENTED; +} +