Release 970525
[wine/multimedia.git] / include / x11drv.h
blob26336c92fca277bd4c223de09873a27935603781
1 /*
2 * X11 display driver definitions
3 */
5 #ifndef __WINE_X11DRV_H
6 #define __WINE_X11DRV_H
8 #include <X11/Xlib.h>
9 #include <X11/Xutil.h>
11 #include "windows.h"
13 /* X physical pen */
14 typedef struct
16 int style;
17 int pixel;
18 int width;
19 char * dashes;
20 int dash_len;
21 } X_PHYSPEN;
23 /* X physical brush */
24 typedef struct
26 int style;
27 int fillStyle;
28 int pixel;
29 Pixmap pixmap;
30 } X_PHYSBRUSH;
32 /* X physical font */
33 typedef struct
35 XFontStruct * fstruct;
36 TEXTMETRIC16 metrics;
37 } X_PHYSFONT;
39 /* X physical device */
40 typedef struct
42 GC gc; /* X Window GC */
43 Drawable drawable;
44 X_PHYSFONT font;
45 X_PHYSPEN pen;
46 X_PHYSBRUSH brush;
47 } X11DRV_PDEVICE;
49 /* Wine driver X11 functions */
51 struct tagDC;
53 extern BOOL32 X11DRV_BitBlt( struct tagDC *dcDst, INT32 xDst, INT32 yDst,
54 INT32 width, INT32 height, struct tagDC *dcSrc,
55 INT32 xSrc, INT32 ySrc, DWORD rop );
56 extern BOOL32 X11DRV_GetCharWidth( struct tagDC *dc, UINT32 firstChar,
57 UINT32 lastChar, LPINT32 buffer );
58 extern BOOL32 X11DRV_GetTextExtentPoint( struct tagDC *dc, LPCSTR str,
59 INT32 count, LPSIZE32 size );
60 extern BOOL32 X11DRV_GetTextMetrics(struct tagDC *dc, TEXTMETRIC32A *metrics);
61 extern BOOL32 X11DRV_PatBlt( struct tagDC *dc, INT32 left, INT32 top,
62 INT32 width, INT32 height, DWORD rop );
63 extern VOID X11DRV_SetDeviceClipping(struct tagDC *dc);
64 extern BOOL32 X11DRV_StretchBlt( struct tagDC *dcDst, INT32 xDst, INT32 yDst,
65 INT32 widthDst, INT32 heightDst,
66 struct tagDC *dcSrc, INT32 xSrc, INT32 ySrc,
67 INT32 widthSrc, INT32 heightSrc, DWORD rop );
68 extern BOOL32 X11DRV_MoveToEx( struct tagDC *dc, INT32 x, INT32 y,LPPOINT32 pt);
69 extern BOOL32 X11DRV_LineTo( struct tagDC *dc, INT32 x, INT32 y);
70 extern BOOL32 X11DRV_Arc( struct tagDC *dc, INT32 left, INT32 top, INT32 right,
71 INT32 bottom, INT32 xstart, INT32 ystart, INT32 xend,
72 INT32 yend );
73 extern BOOL32 X11DRV_Pie( struct tagDC *dc, INT32 left, INT32 top, INT32 right,
74 INT32 bottom, INT32 xstart, INT32 ystart, INT32 xend,
75 INT32 yend );
76 extern BOOL32 X11DRV_Chord( struct tagDC *dc, INT32 left, INT32 top,
77 INT32 right, INT32 bottom, INT32 xstart,
78 INT32 ystart, INT32 xend, INT32 yend );
79 extern BOOL32 X11DRV_Ellipse( struct tagDC *dc, INT32 left, INT32 top,
80 INT32 right, INT32 bottom );
81 extern BOOL32 X11DRV_Rectangle(struct tagDC *dc, INT32 left, INT32 top,
82 INT32 right, INT32 bottom);
83 extern BOOL32 X11DRV_RoundRect( struct tagDC *dc, INT32 left, INT32 top,
84 INT32 right, INT32 bottom, INT32 ell_width,
85 INT32 ell_height );
86 extern COLORREF X11DRV_SetPixel( struct tagDC *dc, INT32 x, INT32 y,
87 COLORREF color );
88 extern COLORREF X11DRV_GetPixel( struct tagDC *dc, INT32 x, INT32 y);
89 extern BOOL32 X11DRV_PaintRgn( struct tagDC *dc, HRGN32 hrgn );
90 extern BOOL32 X11DRV_Polyline( struct tagDC *dc,const LPPOINT32 pt,INT32 count);
91 extern BOOL32 X11DRV_Polygon( struct tagDC *dc, LPPOINT32 pt, INT32 count );
92 extern BOOL32 X11DRV_PolyPolygon( struct tagDC *dc, LPPOINT32 pt,
93 LPINT32 counts, UINT32 polygons);
95 extern HGDIOBJ32 X11DRV_SelectObject( struct tagDC *dc, HGDIOBJ32 handle );
97 extern BOOL32 X11DRV_ExtFloodFill( struct tagDC *dc, INT32 x, INT32 y,
98 COLORREF color, UINT32 fillType );
99 extern BOOL32 X11DRV_ExtTextOut( struct tagDC *dc, INT32 x, INT32 y,
100 UINT32 flags, const RECT32 *lprect,
101 LPCSTR str, UINT32 count, const INT32 *lpDx );
104 /* X11 driver internal functions */
106 extern BOOL32 X11DRV_BITMAP_Init(void);
107 extern BOOL32 X11DRV_BRUSH_Init(void);
108 extern BOOL32 X11DRV_FONT_Init(void);
110 #endif /* __WINE_X11DRV_H */