2 * TTY driver definitions
5 #ifndef __WINE_TTYDRV_H
6 #define __WINE_TTYDRV_H
9 #include "wine/winuser16.h"
21 extern BOOL32 TTYDRV_GDI_Initialize(void);
22 extern void TTDRV_GDI_Finalize(void);
23 extern BOOL32 TTYDRV_GDI_CreateDC(struct tagDC *dc, LPCSTR driver, LPCSTR device, LPCSTR output, const DEVMODE16 *initData);
24 extern BOOL32 TTYDRV_GDI_DeleteDC(struct tagDC *dc);
25 extern INT32 TTYDRV_GDI_Escape(struct tagDC *dc, INT32 nEscape, INT32 cbInput, SEGPTR lpInData, SEGPTR lpOutData);
27 /* TTY clipboard driver */
29 extern struct _CLIPBOARD_DRIVER TTYDRV_CLIPBOARD_Driver;
31 extern void TTYDRV_CLIPBOARD_EmptyClipboard(void);
32 extern void TTYDRV_CLIPBOARD_SetClipboardData(UINT32 wFormat);
33 extern BOOL32 TTYDRV_CLIPBOARD_RequestSelection(void);
34 extern void TTYDRV_CLIPBOARD_ResetOwner(struct tagWND *pWnd, BOOL32 bFooBar);
36 /* TTY desktop driver */
38 extern struct _DESKTOP_DRIVER TTYDRV_DESKTOP_Driver;
40 extern void TTYDRV_DESKTOP_Initialize(struct tagDESKTOP *pDesktop);
41 extern void TTYDRV_DESKTOP_Finalize(struct tagDESKTOP *pDesktop);
42 extern int TTYDRV_DESKTOP_GetScreenWidth(struct tagDESKTOP *pDesktop);
43 extern int TTYDRV_DESKTOP_GetScreenHeight(struct tagDESKTOP *pDesktop);
44 extern int TTYDRV_DESKTOP_GetScreenDepth(struct tagDESKTOP *pDesktop);
46 /* TTY event driver */
48 extern struct _EVENT_DRIVER TTYDRV_EVENT_Driver;
50 extern BOOL32 TTYDRV_EVENT_Init(void);
51 extern void TTYDRV_EVENT_AddIO(int fd, unsigned flag);
52 extern void TTYDRV_EVENT_DeleteIO(int fd, unsigned flag);
53 extern BOOL32 TTYDRV_EVENT_WaitNetEvent(BOOL32 sleep, BOOL32 peek);
54 extern void TTYDRV_EVENT_Synchronize(void);
55 extern BOOL32 TTYDRV_EVENT_CheckFocus(void);
56 extern BOOL32 TTYDRV_EVENT_QueryPointer(DWORD *posX, DWORD *posY, DWORD *state);
57 extern void TTYDRV_EVENT_DummyMotionNotify(void);
58 extern BOOL32 TTYDRV_EVENT_Pending(void);
59 extern BOOL16 TTYDRV_EVENT_IsUserIdle(void);
61 /* TTY keyboard driver */
63 extern struct _KEYBOARD_DRIVER TTYDRV_KEYBOARD_Driver;
65 extern void TTYDRV_KEYBOARD_Init(void);
66 extern WORD TTYDRV_KEYBOARD_VkKeyScan(CHAR cChar);
67 extern UINT16 TTYDRV_KEYBOARD_MapVirtualKey(UINT16 wCode, UINT16 wMapType);
68 extern INT16 TTYDRV_KEYBOARD_GetKeyNameText(LONG lParam, LPSTR lpBuffer, INT16 nSize);
69 extern INT16 TTYDRV_KEYBOARD_ToAscii(UINT16 virtKey, UINT16 scanCode, LPBYTE lpKeyState, LPVOID lpChar, UINT16 flags);
73 extern void TTYDRV_MAIN_Finalize(void);
74 extern void TTYDRV_MAIN_Initialize(void);
75 extern void TTYDRV_MAIN_ParseOptions(int *argc, char *argv[]);
76 extern void TTYDRV_MAIN_Create(void);
77 extern void TTYDRV_MAIN_SaveSetup(void);
78 extern void TTYDRV_MAIN_RestoreSetup(void);
80 /* TTY monitor driver */
82 extern struct tagMONITOR_DRIVER TTYDRV_MONITOR_Driver;
84 typedef struct _TTYDRV_MONITOR_DATA {
88 } TTYDRV_MONITOR_DATA;
92 extern void TTYDRV_MONITOR_Initialize(struct tagMONITOR *pMonitor);
93 extern void TTYDRV_MONITOR_Finalize(struct tagMONITOR *pMonitor);
94 extern int TTYDRV_MONITOR_GetWidth(struct tagMONITOR *pMonitor);
95 extern int TTYDRV_MONITOR_GetHeight(struct tagMONITOR *pMonitor);
96 extern int TTYDRV_MONITOR_GetDepth(struct tagMONITOR *pMonitor);
98 /* TTY mouse driver */
100 extern struct _MOUSE_DRIVER TTYDRV_MOUSE_Driver;
102 extern void TTYDRV_MOUSE_SetCursor(CURSORICONINFO *lpCursor);
103 extern void TTYDRV_MOUSE_MoveCursor(WORD wAbsX, WORD wAbsY);
105 /* TTY windows driver */
107 extern struct _WND_DRIVER TTYDRV_WND_Driver;
109 extern void TTYDRV_WND_Initialize(struct tagWND *wndPtr);
110 extern void TTYDRV_WND_Finalize(struct tagWND *wndPtr);
111 extern BOOL32 TTYDRV_WND_CreateDesktopWindow(struct tagWND *wndPtr, struct tagCLASS *classPtr, BOOL32 bUnicode);
112 extern BOOL32 TTYDRV_WND_CreateWindow(struct tagWND *wndPtr, struct tagCLASS *classPtr, CREATESTRUCT32A *cs, BOOL32 bUnicode);
113 extern BOOL32 TTYDRV_WND_DestroyWindow(struct tagWND *pWnd);
114 extern struct tagWND *TTYDRV_WND_SetParent(struct tagWND *wndPtr, struct tagWND *pWndParent);
115 extern void TTYDRV_WND_ForceWindowRaise(struct tagWND *pWnd);
116 extern void TTYDRV_WND_SetWindowPos(struct tagWND *wndPtr, const WINDOWPOS32 *winpos, BOOL32 bSMC_SETXPOS);
117 extern void TTYDRV_WND_SetText(struct tagWND *wndPtr, LPCSTR text);
118 extern void TTYDRV_WND_SetFocus(struct tagWND *wndPtr);
119 extern void TTYDRV_WND_PreSizeMove(struct tagWND *wndPtr);
120 extern void TTYDRV_WND_PostSizeMove(struct tagWND *wndPtr);
121 extern void TTYDRV_WND_ScrollWindow(struct tagWND *wndPtr, struct tagDC *dcPtr, INT32 dx, INT32 dy, const RECT32 *clipRect, BOOL32 bUpdate);
122 extern void TTYDRV_WND_SetDrawable(struct tagWND *wndPtr, struct tagDC *dc, WORD flags, BOOL32 bSetClipOrigin);
123 extern BOOL32 TTYDRV_WND_IsSelfClipping(struct tagWND *wndPtr);
125 #endif /* !defined(__WINE_TTYDRV_H) */