2 * X11 display driver definitions
5 #ifndef __WINE_X11DRV_H
6 #define __WINE_X11DRV_H
23 /* X physical brush */
35 XFontStruct * fstruct;
39 /* X physical device */
42 GC gc; /* X Window GC */
49 /* Wine driver X11 functions */
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_GetTextExtentPoint( struct tagDC *dc, LPCSTR str,
57 INT32 count, LPSIZE32 size );
58 extern BOOL32 X11DRV_GetTextMetrics(struct tagDC *dc, TEXTMETRIC32A *metrics);
59 extern BOOL32 X11DRV_PatBlt( struct tagDC *dc, INT32 left, INT32 top,
60 INT32 width, INT32 height, DWORD rop );
61 extern VOID X11DRV_SetDeviceClipping(struct tagDC *dc);
62 extern BOOL32 X11DRV_StretchBlt( struct tagDC *dcDst, INT32 xDst, INT32 yDst,
63 INT32 widthDst, INT32 heightDst,
64 struct tagDC *dcSrc, INT32 xSrc, INT32 ySrc,
65 INT32 widthSrc, INT32 heightSrc, DWORD rop );
66 extern BOOL32 X11DRV_MoveToEx( struct tagDC *dc, INT32 x, INT32 y,LPPOINT32 pt);
67 extern BOOL32 X11DRV_LineTo( struct tagDC *dc, INT32 x, INT32 y);
68 extern BOOL32 X11DRV_Arc( struct tagDC *dc, INT32 left, INT32 top, INT32 right,
69 INT32 bottom, INT32 xstart, INT32 ystart, INT32 xend,
71 extern BOOL32 X11DRV_Pie( struct tagDC *dc, INT32 left, INT32 top, INT32 right,
72 INT32 bottom, INT32 xstart, INT32 ystart, INT32 xend,
74 extern BOOL32 X11DRV_Chord( struct tagDC *dc, INT32 left, INT32 top,
75 INT32 right, INT32 bottom, INT32 xstart,
76 INT32 ystart, INT32 xend, INT32 yend );
77 extern BOOL32 X11DRV_Ellipse( struct tagDC *dc, INT32 left, INT32 top,
78 INT32 right, INT32 bottom );
79 extern BOOL32 X11DRV_Rectangle(struct tagDC *dc, INT32 left, INT32 top,
80 INT32 right, INT32 bottom);
81 extern BOOL32 X11DRV_RoundRect( struct tagDC *dc, INT32 left, INT32 top,
82 INT32 right, INT32 bottom, INT32 ell_width,
84 extern COLORREF X11DRV_SetPixel( struct tagDC *dc, INT32 x, INT32 y,
86 extern COLORREF X11DRV_GetPixel( struct tagDC *dc, INT32 x, INT32 y);
87 extern BOOL32 X11DRV_PaintRgn( struct tagDC *dc, HRGN32 hrgn );
88 extern BOOL32 X11DRV_Polyline( struct tagDC *dc,const LPPOINT32 pt,INT32 count);
89 extern BOOL32 X11DRV_Polygon( struct tagDC *dc, LPPOINT32 pt, INT32 count );
90 extern BOOL32 X11DRV_PolyPolygon( struct tagDC *dc, LPPOINT32 pt,
91 LPINT32 counts, UINT32 polygons);
93 extern HGDIOBJ32 X11DRV_SelectObject( struct tagDC *dc, HGDIOBJ32 handle );
95 extern BOOL32 X11DRV_ExtFloodFill( struct tagDC *dc, INT32 x, INT32 y,
96 COLORREF color, UINT32 fillType );
97 extern BOOL32 X11DRV_ExtTextOut( struct tagDC *dc, INT32 x, INT32 y,
98 UINT32 flags, const RECT32 *lprect,
99 LPCSTR str, UINT32 count, const INT32 *lpDx );
102 /* X11 driver internal functions */
104 extern BOOL32 X11DRV_BITMAP_Init(void);
105 extern BOOL32 X11DRV_BRUSH_Init(void);
106 extern BOOL32 X11DRV_FONT_Init(void);
108 #endif /* __WINE_X11DRV_H */