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