Small corrections in mmio declarations.
[wine] / include / x11drv.h
1 /*
2  * X11 display driver definitions
3  */
4
5 #ifndef __WINE_X11DRV_H
6 #define __WINE_X11DRV_H
7
8 #include "ts_xlib.h"
9 #include "ts_xutil.h"
10 #include "winbase.h"
11 #include "windows.h"
12
13   /* X physical pen */
14 typedef struct
15 {
16     int          style;
17     int          endcap;
18     int          linejoin;
19     int          pixel;
20     int          width;
21     char *       dashes;
22     int          dash_len;
23     int          type;          /* GEOMETRIC || COSMETIC */
24 } X_PHYSPEN;
25
26   /* X physical brush */
27 typedef struct
28 {
29     int          style;
30     int          fillStyle;
31     int          pixel;
32     Pixmap       pixmap;
33 } X_PHYSBRUSH;
34
35   /* X physical font */
36 typedef UINT32   X_PHYSFONT;
37
38   /* X physical device */
39 typedef struct
40 {
41     GC            gc;          /* X Window GC */
42     Drawable      drawable;
43     X_PHYSFONT    font;
44     X_PHYSPEN     pen;
45     X_PHYSBRUSH   brush;
46     int           backgroundPixel;
47     int           textPixel;
48 } X11DRV_PDEVICE;
49
50 typedef INT32 (*DEVICEFONTENUMPROC)(LPENUMLOGFONT16,LPNEWTEXTMETRIC16,UINT16,LPARAM);
51
52 /* Wine driver X11 functions */
53
54 struct tagDC;
55 struct tagDeviceCaps;
56
57 extern BOOL32 X11DRV_Init(void);
58 extern BOOL32 X11DRV_BitBlt( struct tagDC *dcDst, INT32 xDst, INT32 yDst,
59                              INT32 width, INT32 height, struct tagDC *dcSrc,
60                              INT32 xSrc, INT32 ySrc, DWORD rop );
61 extern BOOL32 X11DRV_EnumDeviceFonts( struct tagDC *dc, LPLOGFONT16 plf,
62                                       DEVICEFONTENUMPROC dfeproc, LPARAM lp );
63 extern BOOL32 X11DRV_GetCharWidth( struct tagDC *dc, UINT32 firstChar,
64                                    UINT32 lastChar, LPINT32 buffer );
65 extern BOOL32 X11DRV_GetTextExtentPoint( struct tagDC *dc, LPCSTR str,
66                                          INT32 count, LPSIZE32 size );
67 extern BOOL32 X11DRV_GetTextMetrics(struct tagDC *dc, TEXTMETRIC32A *metrics);
68 extern BOOL32 X11DRV_PatBlt( struct tagDC *dc, INT32 left, INT32 top,
69                              INT32 width, INT32 height, DWORD rop );
70 extern VOID   X11DRV_SetDeviceClipping(struct tagDC *dc);
71 extern BOOL32 X11DRV_StretchBlt( struct tagDC *dcDst, INT32 xDst, INT32 yDst,
72                                  INT32 widthDst, INT32 heightDst,
73                                  struct tagDC *dcSrc, INT32 xSrc, INT32 ySrc,
74                                  INT32 widthSrc, INT32 heightSrc, DWORD rop );
75 extern BOOL32 X11DRV_MoveToEx( struct tagDC *dc, INT32 x, INT32 y,LPPOINT32 pt);
76 extern BOOL32 X11DRV_LineTo( struct tagDC *dc, INT32 x, INT32 y);
77 extern BOOL32 X11DRV_Arc( struct tagDC *dc, INT32 left, INT32 top, INT32 right,
78                           INT32 bottom, INT32 xstart, INT32 ystart, INT32 xend,
79                           INT32 yend );
80 extern BOOL32 X11DRV_Pie( struct tagDC *dc, INT32 left, INT32 top, INT32 right,
81                           INT32 bottom, INT32 xstart, INT32 ystart, INT32 xend,
82                           INT32 yend );
83 extern BOOL32 X11DRV_Chord( struct tagDC *dc, INT32 left, INT32 top,
84                             INT32 right, INT32 bottom, INT32 xstart,
85                             INT32 ystart, INT32 xend, INT32 yend );
86 extern BOOL32 X11DRV_Ellipse( struct tagDC *dc, INT32 left, INT32 top,
87                               INT32 right, INT32 bottom );
88 extern BOOL32 X11DRV_Rectangle(struct tagDC *dc, INT32 left, INT32 top,
89                               INT32 right, INT32 bottom);
90 extern BOOL32 X11DRV_RoundRect( struct tagDC *dc, INT32 left, INT32 top,
91                                 INT32 right, INT32 bottom, INT32 ell_width,
92                                 INT32 ell_height );
93 extern COLORREF X11DRV_SetPixel( struct tagDC *dc, INT32 x, INT32 y,
94                                  COLORREF color );
95 extern COLORREF X11DRV_GetPixel( struct tagDC *dc, INT32 x, INT32 y);
96 extern BOOL32 X11DRV_PaintRgn( struct tagDC *dc, HRGN32 hrgn );
97 extern BOOL32 X11DRV_Polyline( struct tagDC *dc,const LPPOINT32 pt,INT32 count);
98 extern BOOL32 X11DRV_PolyBezier( struct tagDC *dc,const POINT32 start, const LPPOINT32 lppt,DWORD cPoints);
99 extern BOOL32 X11DRV_Polygon( struct tagDC *dc, LPPOINT32 pt, INT32 count );
100 extern BOOL32 X11DRV_PolyPolygon( struct tagDC *dc, LPPOINT32 pt,
101                                   LPINT32 counts, UINT32 polygons);
102 extern BOOL32 X11DRV_PolyPolyline( struct tagDC *dc, LPPOINT32 pt,
103                                   LPDWORD counts, DWORD polylines);
104
105 extern HGDIOBJ32 X11DRV_SelectObject( struct tagDC *dc, HGDIOBJ32 handle );
106
107 extern COLORREF X11DRV_SetBkColor( struct tagDC *dc, COLORREF color );
108 extern COLORREF X11DRV_SetTextColor( struct tagDC *dc, COLORREF color );
109 extern BOOL32 X11DRV_ExtFloodFill( struct tagDC *dc, INT32 x, INT32 y,
110                                    COLORREF color, UINT32 fillType );
111 extern BOOL32 X11DRV_ExtTextOut( struct tagDC *dc, INT32 x, INT32 y,
112                                  UINT32 flags, const RECT32 *lprect,
113                                  LPCSTR str, UINT32 count, const INT32 *lpDx );
114
115
116 /* X11 driver internal functions */
117
118 extern BOOL32 X11DRV_BITMAP_Init(void);
119 extern BOOL32 X11DRV_BRUSH_Init(void);
120 extern BOOL32 X11DRV_FONT_Init( struct tagDeviceCaps* );
121
122 /* Xlib critical section */
123
124 extern CRITICAL_SECTION X11DRV_CritSection;
125
126 extern void _XInitImageFuncPtrs(XImage *);
127
128 #endif  /* __WINE_X11DRV_H */