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