Release 980215
[wine/multimedia.git] / include / x11drv.h
blobcddfaabd43271016a8d59f4f46bc3cd23406667b
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 } X_PHYSPEN;
25 /* X physical brush */
26 typedef struct
28 int style;
29 int fillStyle;
30 int pixel;
31 Pixmap pixmap;
32 } X_PHYSBRUSH;
34 /* X physical font */
35 typedef UINT32 X_PHYSFONT;
37 /* X physical device */
38 typedef struct
40 GC gc; /* X Window GC */
41 Drawable drawable;
42 X_PHYSFONT font;
43 X_PHYSPEN pen;
44 X_PHYSBRUSH brush;
45 } X11DRV_PDEVICE;
47 typedef INT32 (*DEVICEFONTENUMPROC)(LPENUMLOGFONT16,LPNEWTEXTMETRIC16,UINT16,LPARAM);
49 /* Wine driver X11 functions */
51 struct tagDC;
52 struct tagDeviceCaps;
54 extern BOOL32 X11DRV_BitBlt( struct tagDC *dcDst, INT32 xDst, INT32 yDst,
55 INT32 width, INT32 height, struct tagDC *dcSrc,
56 INT32 xSrc, INT32 ySrc, DWORD rop );
57 extern BOOL32 X11DRV_EnumDeviceFonts( struct tagDC *dc, LPLOGFONT16 plf,
58 DEVICEFONTENUMPROC dfeproc, LPARAM lp );
59 extern BOOL32 X11DRV_GetCharWidth( struct tagDC *dc, UINT32 firstChar,
60 UINT32 lastChar, LPINT32 buffer );
61 extern BOOL32 X11DRV_GetTextExtentPoint( struct tagDC *dc, LPCSTR str,
62 INT32 count, LPSIZE32 size );
63 extern BOOL32 X11DRV_GetTextMetrics(struct tagDC *dc, TEXTMETRIC32A *metrics);
64 extern BOOL32 X11DRV_PatBlt( struct tagDC *dc, INT32 left, INT32 top,
65 INT32 width, INT32 height, DWORD rop );
66 extern VOID X11DRV_SetDeviceClipping(struct tagDC *dc);
67 extern BOOL32 X11DRV_StretchBlt( struct tagDC *dcDst, INT32 xDst, INT32 yDst,
68 INT32 widthDst, INT32 heightDst,
69 struct tagDC *dcSrc, INT32 xSrc, INT32 ySrc,
70 INT32 widthSrc, INT32 heightSrc, DWORD rop );
71 extern BOOL32 X11DRV_MoveToEx( struct tagDC *dc, INT32 x, INT32 y,LPPOINT32 pt);
72 extern BOOL32 X11DRV_LineTo( struct tagDC *dc, INT32 x, INT32 y);
73 extern BOOL32 X11DRV_Arc( 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_Pie( struct tagDC *dc, INT32 left, INT32 top, INT32 right,
77 INT32 bottom, INT32 xstart, INT32 ystart, INT32 xend,
78 INT32 yend );
79 extern BOOL32 X11DRV_Chord( struct tagDC *dc, INT32 left, INT32 top,
80 INT32 right, INT32 bottom, INT32 xstart,
81 INT32 ystart, INT32 xend, INT32 yend );
82 extern BOOL32 X11DRV_Ellipse( struct tagDC *dc, INT32 left, INT32 top,
83 INT32 right, INT32 bottom );
84 extern BOOL32 X11DRV_Rectangle(struct tagDC *dc, INT32 left, INT32 top,
85 INT32 right, INT32 bottom);
86 extern BOOL32 X11DRV_RoundRect( struct tagDC *dc, INT32 left, INT32 top,
87 INT32 right, INT32 bottom, INT32 ell_width,
88 INT32 ell_height );
89 extern COLORREF X11DRV_SetPixel( struct tagDC *dc, INT32 x, INT32 y,
90 COLORREF color );
91 extern COLORREF X11DRV_GetPixel( struct tagDC *dc, INT32 x, INT32 y);
92 extern BOOL32 X11DRV_PaintRgn( struct tagDC *dc, HRGN32 hrgn );
93 extern BOOL32 X11DRV_Polyline( struct tagDC *dc,const LPPOINT32 pt,INT32 count);
94 extern BOOL32 X11DRV_Polygon( struct tagDC *dc, LPPOINT32 pt, INT32 count );
95 extern BOOL32 X11DRV_PolyPolygon( struct tagDC *dc, LPPOINT32 pt,
96 LPINT32 counts, UINT32 polygons);
98 extern HGDIOBJ32 X11DRV_SelectObject( struct tagDC *dc, HGDIOBJ32 handle );
100 extern BOOL32 X11DRV_ExtFloodFill( struct tagDC *dc, INT32 x, INT32 y,
101 COLORREF color, UINT32 fillType );
102 extern BOOL32 X11DRV_ExtTextOut( struct tagDC *dc, INT32 x, INT32 y,
103 UINT32 flags, const RECT32 *lprect,
104 LPCSTR str, UINT32 count, const INT32 *lpDx );
107 /* X11 driver internal functions */
109 extern BOOL32 X11DRV_BITMAP_Init(void);
110 extern BOOL32 X11DRV_BRUSH_Init(void);
111 extern BOOL32 X11DRV_FONT_Init( struct tagDeviceCaps* );
113 /* Xlib critical section */
115 extern CRITICAL_SECTION X11DRV_CritSection;
117 #endif /* __WINE_X11DRV_H */