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