Added strlwr.
[wine.git] / include / ttydrv.h
blob5d4747470ae9bb7b53d64cbf0438ae153e1c5563
1 /*
2 * TTY driver definitions
3 */
5 #ifndef __WINE_TTYDRV_H
6 #define __WINE_TTYDRV_H
8 #include "windef.h"
9 #include "wine/winuser16.h"
11 struct tagCLASS;
12 struct tagDC;
13 struct tagDESKTOP;
14 struct tagWND;
16 /* TTY GDI driver */
18 typedef struct {
19 } TTYDRV_PDEVICE;
21 extern BOOL TTYDRV_GDI_Initialize(void);
22 extern void TTDRV_GDI_Finalize(void);
23 extern BOOL TTYDRV_GDI_CreateDC(struct tagDC *dc, LPCSTR driver, LPCSTR device, LPCSTR output, const DEVMODE16 *initData);
24 extern BOOL TTYDRV_GDI_DeleteDC(struct tagDC *dc);
25 extern INT TTYDRV_GDI_Escape(struct tagDC *dc, INT nEscape, INT 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(UINT wFormat);
33 extern BOOL TTYDRV_CLIPBOARD_RequestSelection(void);
34 extern void TTYDRV_CLIPBOARD_ResetOwner(struct tagWND *pWnd, BOOL 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 BOOL 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 BOOL TTYDRV_EVENT_WaitNetEvent(BOOL sleep, BOOL peek);
54 extern void TTYDRV_EVENT_Synchronize(void);
55 extern BOOL TTYDRV_EVENT_CheckFocus(void);
56 extern BOOL TTYDRV_EVENT_QueryPointer(DWORD *posX, DWORD *posY, DWORD *state);
57 extern void TTYDRV_EVENT_DummyMotionNotify(void);
58 extern BOOL TTYDRV_EVENT_Pending(void);
59 extern BOOL16 TTYDRV_EVENT_IsUserIdle(void);
60 extern void TTYDRV_EVENT_WakeUp(void);
62 /* TTY keyboard driver */
64 extern struct _KEYBOARD_DRIVER TTYDRV_KEYBOARD_Driver;
66 extern void TTYDRV_KEYBOARD_Init(void);
67 extern WORD TTYDRV_KEYBOARD_VkKeyScan(CHAR cChar);
68 extern UINT16 TTYDRV_KEYBOARD_MapVirtualKey(UINT16 wCode, UINT16 wMapType);
69 extern INT16 TTYDRV_KEYBOARD_GetKeyNameText(LONG lParam, LPSTR lpBuffer, INT16 nSize);
70 extern INT16 TTYDRV_KEYBOARD_ToAscii(UINT16 virtKey, UINT16 scanCode, LPBYTE lpKeyState, LPVOID lpChar, UINT16 flags);
72 /* TTY main driver */
74 extern void TTYDRV_MAIN_Finalize(void);
75 extern void TTYDRV_MAIN_Initialize(void);
76 extern void TTYDRV_MAIN_ParseOptions(int *argc, char *argv[]);
77 extern void TTYDRV_MAIN_Create(void);
78 extern void TTYDRV_MAIN_SaveSetup(void);
79 extern void TTYDRV_MAIN_RestoreSetup(void);
81 /* TTY monitor driver */
83 extern struct tagMONITOR_DRIVER TTYDRV_MONITOR_Driver;
85 typedef struct _TTYDRV_MONITOR_DATA {
86 int width;
87 int height;
88 int depth;
89 } TTYDRV_MONITOR_DATA;
91 struct tagMONITOR;
93 extern void TTYDRV_MONITOR_Initialize(struct tagMONITOR *pMonitor);
94 extern void TTYDRV_MONITOR_Finalize(struct tagMONITOR *pMonitor);
95 extern int TTYDRV_MONITOR_GetWidth(struct tagMONITOR *pMonitor);
96 extern int TTYDRV_MONITOR_GetHeight(struct tagMONITOR *pMonitor);
97 extern int TTYDRV_MONITOR_GetDepth(struct tagMONITOR *pMonitor);
99 /* TTY mouse driver */
101 extern struct _MOUSE_DRIVER TTYDRV_MOUSE_Driver;
103 extern void TTYDRV_MOUSE_SetCursor(CURSORICONINFO *lpCursor);
104 extern void TTYDRV_MOUSE_MoveCursor(WORD wAbsX, WORD wAbsY);
106 /* TTY windows driver */
108 extern struct _WND_DRIVER TTYDRV_WND_Driver;
110 extern void TTYDRV_WND_Initialize(struct tagWND *wndPtr);
111 extern void TTYDRV_WND_Finalize(struct tagWND *wndPtr);
112 extern BOOL TTYDRV_WND_CreateDesktopWindow(struct tagWND *wndPtr, struct tagCLASS *classPtr, BOOL bUnicode);
113 extern BOOL TTYDRV_WND_CreateWindow(struct tagWND *wndPtr, struct tagCLASS *classPtr, CREATESTRUCTA *cs, BOOL bUnicode);
114 extern BOOL TTYDRV_WND_DestroyWindow(struct tagWND *pWnd);
115 extern struct tagWND *TTYDRV_WND_SetParent(struct tagWND *wndPtr, struct tagWND *pWndParent);
116 extern void TTYDRV_WND_ForceWindowRaise(struct tagWND *pWnd);
117 extern void TTYDRV_WND_SetWindowPos(struct tagWND *wndPtr, const WINDOWPOS *winpos, BOOL bSMC_SETXPOS);
118 extern void TTYDRV_WND_SetText(struct tagWND *wndPtr, LPCSTR text);
119 extern void TTYDRV_WND_SetFocus(struct tagWND *wndPtr);
120 extern void TTYDRV_WND_PreSizeMove(struct tagWND *wndPtr);
121 extern void TTYDRV_WND_PostSizeMove(struct tagWND *wndPtr);
122 extern void TTYDRV_WND_ScrollWindow(struct tagWND *wndPtr, struct tagDC *dcPtr, INT dx, INT dy, const RECT *clipRect, BOOL bUpdate);
123 extern void TTYDRV_WND_SetDrawable(struct tagWND *wndPtr, struct tagDC *dc, WORD flags, BOOL bSetClipOrigin);
124 extern BOOL TTYDRV_WND_IsSelfClipping(struct tagWND *wndPtr);
126 #endif /* !defined(__WINE_TTYDRV_H) */