update for HEAD-2003091401
[reactos.git] / include / win32k / brush.h
1 #ifndef __WIN32K_BRUSH_H
2 #define __WIN32K_BRUSH_H
3
4 #include <win32k/gdiobj.h>
5
6 /*  Internal interface  */
7
8 #define NB_HATCH_STYLES  6
9
10 #define  BRUSHOBJ_AllocBrush()  \
11   ((HBRUSH) GDIOBJ_AllocObj (sizeof (BRUSHOBJ), GDI_OBJECT_TYPE_BRUSH, NULL))
12 #define  BRUSHOBJ_FreeBrush(hBrush)  GDIOBJ_FreeObj((HGDIOBJ)hBrush, GDI_OBJECT_TYPE_BRUSH, GDIOBJFLAG_DEFAULT)
13 #define  BRUSHOBJ_LockBrush(hBrush) ((PBRUSHOBJ)GDIOBJ_LockObj((HGDIOBJ)hBrush, GDI_OBJECT_TYPE_BRUSH))
14 #define  BRUSHOBJ_UnlockBrush(hBrush) GDIOBJ_UnlockObj((HGDIOBJ)hBrush, GDI_OBJECT_TYPE_BRUSH)
15
16 HBRUSH
17 STDCALL
18 NtGdiCreateBrushIndirect (
19         CONST LOGBRUSH  * lb
20         );
21 HBRUSH
22 STDCALL
23 NtGdiCreateDIBPatternBrush (
24         HGLOBAL hDIBPacked,
25         UINT    ColorSpec
26         );
27 HBRUSH
28 STDCALL
29 NtGdiCreateDIBPatternBrushPt (
30         CONST VOID      * PackedDIB,
31         UINT            Usage
32         );
33 HBRUSH
34 STDCALL
35 NtGdiCreateHatchBrush (
36         INT             Style,
37         COLORREF        Color
38         );
39 HBRUSH
40 STDCALL
41 NtGdiCreatePatternBrush (
42         HBITMAP hBitmap
43         );
44 HBRUSH
45 STDCALL
46 NtGdiCreateSolidBrush (
47         COLORREF        Color
48         );
49 BOOL
50 STDCALL
51 NtGdiFixBrushOrgEx (
52         VOID
53         );
54 BOOL
55 STDCALL
56 NtGdiPatBlt (
57         HDC     hDC,
58         INT     XLeft,
59         INT     YLeft,
60         INT     Width,
61         INT     Height,
62         DWORD   ROP
63         );
64 BOOL
65 STDCALL
66 NtGdiPolyPatBlt(
67         HDC hDC,
68         DWORD dwRop,
69         PPATRECT pRects,
70         int cRects,
71         ULONG Reserved
72         );
73 BOOL
74 STDCALL
75 NtGdiPatBlt (
76         HDC     hDC,
77         INT     XLeft,
78         INT     YLeft,
79         INT     Width,
80         INT     Height,
81         DWORD   ROP
82         );
83 BOOL
84 STDCALL
85 NtGdiSetBrushOrgEx (
86         HDC     hDC,
87         INT     XOrg,
88         INT     YOrg,
89         LPPOINT Point
90         );
91 #endif
92