2 * X11 display driver definitions
5 #ifndef __WINE_X11DRV_H
6 #define __WINE_X11DRV_H
23 /* X physical brush */
33 typedef UINT32 X_PHYSFONT
;
35 /* X physical device */
38 GC gc
; /* X Window GC */
45 typedef INT32 (*DEVICEFONTENUMPROC
)(LPENUMLOGFONT16
,LPNEWTEXTMETRIC16
,UINT16
,LPARAM
);
47 /* Wine driver X11 functions */
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
,
74 extern BOOL32
X11DRV_Pie( struct tagDC
*dc
, INT32 left
, INT32 top
, INT32 right
,
75 INT32 bottom
, INT32 xstart
, INT32 ystart
, INT32 xend
,
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
,
87 extern COLORREF
X11DRV_SetPixel( struct tagDC
*dc
, INT32 x
, INT32 y
,
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 */