1998-12-07 09:36:13 +00:00
|
|
|
/*
|
|
|
|
* TTY driver definitions
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_TTYDRV_H
|
|
|
|
#define __WINE_TTYDRV_H
|
|
|
|
|
1999-03-14 16:35:05 +00:00
|
|
|
#include "windef.h"
|
1999-04-01 08:16:08 +00:00
|
|
|
#include "wingdi.h"
|
1999-02-04 14:05:38 +00:00
|
|
|
#include "wine/winuser16.h"
|
|
|
|
|
1999-04-01 08:16:08 +00:00
|
|
|
struct tagBITMAPOBJ;
|
1999-02-04 14:05:38 +00:00
|
|
|
struct tagCLASS;
|
|
|
|
struct tagDC;
|
|
|
|
struct tagDESKTOP;
|
1999-04-01 08:16:08 +00:00
|
|
|
struct tagPALETTEOBJ;
|
1999-02-04 14:05:38 +00:00
|
|
|
struct tagWND;
|
|
|
|
|
1999-04-01 08:16:08 +00:00
|
|
|
/**************************************************************************
|
|
|
|
* TTY GDI driver
|
|
|
|
*/
|
|
|
|
|
|
|
|
extern struct tagGDI_DRIVER TTYDRV_GDI_Driver;
|
|
|
|
|
|
|
|
extern BOOL TTYDRV_GDI_Initialize(void);
|
|
|
|
extern void TTYDRV_GDI_Finalize(void);
|
|
|
|
|
|
|
|
/* TTY GDI bitmap driver */
|
|
|
|
|
|
|
|
extern HBITMAP TTYDRV_BITMAP_CreateDIBSection(struct tagDC *dc, BITMAPINFO *bmi, UINT usage, LPVOID *bits, HANDLE section, DWORD offset);
|
|
|
|
extern HBITMAP16 TTYDRV_BITMAP_CreateDIBSection16(struct tagDC *dc, BITMAPINFO *bmi, UINT16 usage, SEGPTR *bits, HANDLE section, DWORD offset);
|
|
|
|
|
|
|
|
extern INT TTYDRV_BITMAP_SetDIBits(struct tagBITMAPOBJ *bmp, struct tagDC *dc, UINT startscan, UINT lines, LPCVOID bits, const BITMAPINFO *info, UINT coloruse, HBITMAP hbitmap);
|
|
|
|
extern INT TTYDRV_BITMAP_GetDIBits(struct tagBITMAPOBJ *bmp, struct tagDC *dc, UINT startscan, UINT lines, LPVOID bits, BITMAPINFO *info, UINT coloruse, HBITMAP hbitmap);
|
|
|
|
extern void TTYDRV_BITMAP_DeleteDIBSection(struct tagBITMAPOBJ *bmp);
|
1999-02-04 14:05:38 +00:00
|
|
|
|
|
|
|
typedef struct {
|
1999-04-01 08:16:08 +00:00
|
|
|
int dummy;
|
1999-02-04 14:05:38 +00:00
|
|
|
} TTYDRV_PDEVICE;
|
|
|
|
|
1999-04-01 08:16:08 +00:00
|
|
|
extern BOOL TTYDRV_DC_CreateDC(struct tagDC *dc, LPCSTR driver, LPCSTR device, LPCSTR output, const DEVMODE16 *initData);
|
|
|
|
extern BOOL TTYDRV_DC_DeleteDC(struct tagDC *dc);
|
|
|
|
extern INT TTYDRV_DC_Escape(struct tagDC *dc, INT nEscape, INT cbInput, SEGPTR lpInData, SEGPTR lpOutData);
|
|
|
|
|
|
|
|
/* TTY GDI palette driver */
|
|
|
|
|
|
|
|
extern struct tagPALETTE_DRIVER TTYDRV_PALETTE_Driver;
|
|
|
|
|
|
|
|
extern BOOL TTYDRV_PALETTE_Initialize(void);
|
|
|
|
extern void TTYDRV_PALETTE_Finalize(void);
|
|
|
|
|
|
|
|
extern int TTYDRV_PALETTE_SetMapping(struct tagPALETTEOBJ *palPtr, UINT uStart, UINT uNum, BOOL mapOnly);
|
|
|
|
extern int TTYDRV_PALETTE_UpdateMapping(struct tagPALETTEOBJ *palPtr);
|
|
|
|
extern BOOL TTYDRV_PALETTE_IsDark(int pixel);
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* TTY USER driver
|
|
|
|
*/
|
|
|
|
|
|
|
|
extern struct tagUSER_DRIVER TTYDRV_USER_Driver;
|
|
|
|
|
|
|
|
extern BOOL TTYDRV_USER_Initialize(void);
|
|
|
|
extern void TTYDRV_USER_Finalize(void);
|
|
|
|
extern void TTYDRV_USER_BeginDebugging(void);
|
|
|
|
extern void TTYDRV_USER_EndDebugging(void);
|
1998-12-07 09:36:13 +00:00
|
|
|
|
|
|
|
/* TTY clipboard driver */
|
|
|
|
|
1999-04-01 08:16:08 +00:00
|
|
|
extern struct tagCLIPBOARD_DRIVER TTYDRV_CLIPBOARD_Driver;
|
1998-12-07 09:36:13 +00:00
|
|
|
|
1999-04-01 12:03:52 +00:00
|
|
|
extern void TTYDRV_CLIPBOARD_Empty(void);
|
|
|
|
extern void TTYDRV_CLIPBOARD_SetData(UINT wFormat);
|
|
|
|
extern BOOL TTYDRV_CLIPBOARD_GetData(UINT wFormat);
|
1999-02-26 11:11:13 +00:00
|
|
|
extern void TTYDRV_CLIPBOARD_ResetOwner(struct tagWND *pWnd, BOOL bFooBar);
|
1999-02-04 14:05:38 +00:00
|
|
|
|
|
|
|
/* TTY desktop driver */
|
|
|
|
|
1999-04-01 08:16:08 +00:00
|
|
|
extern struct tagDESKTOP_DRIVER TTYDRV_DESKTOP_Driver;
|
1999-02-04 14:05:38 +00:00
|
|
|
|
|
|
|
extern void TTYDRV_DESKTOP_Initialize(struct tagDESKTOP *pDesktop);
|
|
|
|
extern void TTYDRV_DESKTOP_Finalize(struct tagDESKTOP *pDesktop);
|
|
|
|
extern int TTYDRV_DESKTOP_GetScreenWidth(struct tagDESKTOP *pDesktop);
|
|
|
|
extern int TTYDRV_DESKTOP_GetScreenHeight(struct tagDESKTOP *pDesktop);
|
|
|
|
extern int TTYDRV_DESKTOP_GetScreenDepth(struct tagDESKTOP *pDesktop);
|
1998-12-07 09:36:13 +00:00
|
|
|
|
|
|
|
/* TTY event driver */
|
|
|
|
|
1999-04-01 08:16:08 +00:00
|
|
|
extern struct tagEVENT_DRIVER TTYDRV_EVENT_Driver;
|
1998-12-07 09:36:13 +00:00
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
extern BOOL TTYDRV_EVENT_Init(void);
|
1998-12-07 09:36:13 +00:00
|
|
|
extern void TTYDRV_EVENT_AddIO(int fd, unsigned flag);
|
|
|
|
extern void TTYDRV_EVENT_DeleteIO(int fd, unsigned flag);
|
1999-02-26 11:11:13 +00:00
|
|
|
extern BOOL TTYDRV_EVENT_WaitNetEvent(BOOL sleep, BOOL peek);
|
1998-12-07 09:36:13 +00:00
|
|
|
extern void TTYDRV_EVENT_Synchronize(void);
|
1999-02-26 11:11:13 +00:00
|
|
|
extern BOOL TTYDRV_EVENT_CheckFocus(void);
|
|
|
|
extern BOOL TTYDRV_EVENT_QueryPointer(DWORD *posX, DWORD *posY, DWORD *state);
|
1998-12-07 09:36:13 +00:00
|
|
|
extern void TTYDRV_EVENT_DummyMotionNotify(void);
|
1999-02-26 11:11:13 +00:00
|
|
|
extern BOOL TTYDRV_EVENT_Pending(void);
|
1998-12-07 09:36:13 +00:00
|
|
|
extern BOOL16 TTYDRV_EVENT_IsUserIdle(void);
|
1999-02-21 18:15:26 +00:00
|
|
|
extern void TTYDRV_EVENT_WakeUp(void);
|
1998-12-07 09:36:13 +00:00
|
|
|
|
|
|
|
/* TTY keyboard driver */
|
|
|
|
|
1999-04-01 08:16:08 +00:00
|
|
|
extern struct tagKEYBOARD_DRIVER TTYDRV_KEYBOARD_Driver;
|
1998-12-07 09:36:13 +00:00
|
|
|
|
|
|
|
extern void TTYDRV_KEYBOARD_Init(void);
|
|
|
|
extern WORD TTYDRV_KEYBOARD_VkKeyScan(CHAR cChar);
|
|
|
|
extern UINT16 TTYDRV_KEYBOARD_MapVirtualKey(UINT16 wCode, UINT16 wMapType);
|
|
|
|
extern INT16 TTYDRV_KEYBOARD_GetKeyNameText(LONG lParam, LPSTR lpBuffer, INT16 nSize);
|
|
|
|
extern INT16 TTYDRV_KEYBOARD_ToAscii(UINT16 virtKey, UINT16 scanCode, LPBYTE lpKeyState, LPVOID lpChar, UINT16 flags);
|
1999-04-01 08:16:08 +00:00
|
|
|
extern BOOL TTYDRV_KEYBOARD_GetBeepActive(void);
|
|
|
|
extern void TTYDRV_KEYBOARD_SetBeepActive(BOOL bActivate);
|
|
|
|
extern void TTYDRV_KEYBOARD_Beep(void);
|
1999-02-04 14:05:38 +00:00
|
|
|
|
|
|
|
/* TTY monitor driver */
|
|
|
|
|
|
|
|
extern struct tagMONITOR_DRIVER TTYDRV_MONITOR_Driver;
|
|
|
|
|
|
|
|
typedef struct _TTYDRV_MONITOR_DATA {
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
int depth;
|
|
|
|
} TTYDRV_MONITOR_DATA;
|
|
|
|
|
|
|
|
struct tagMONITOR;
|
|
|
|
|
|
|
|
extern void TTYDRV_MONITOR_Initialize(struct tagMONITOR *pMonitor);
|
|
|
|
extern void TTYDRV_MONITOR_Finalize(struct tagMONITOR *pMonitor);
|
1999-04-01 08:16:08 +00:00
|
|
|
extern BOOL TTYDRV_MONITOR_IsSingleWindow(struct tagMONITOR *pMonitor);
|
1999-02-04 14:05:38 +00:00
|
|
|
extern int TTYDRV_MONITOR_GetWidth(struct tagMONITOR *pMonitor);
|
|
|
|
extern int TTYDRV_MONITOR_GetHeight(struct tagMONITOR *pMonitor);
|
|
|
|
extern int TTYDRV_MONITOR_GetDepth(struct tagMONITOR *pMonitor);
|
1999-04-01 08:16:08 +00:00
|
|
|
extern BOOL TTYDRV_MONITOR_GetScreenSaveActive(struct tagMONITOR *pMonitor);
|
|
|
|
extern void TTYDRV_MONITOR_SetScreenSaveActive(struct tagMONITOR *pMonitor, BOOL bActivate);
|
|
|
|
extern int TTYDRV_MONITOR_GetScreenSaveTimeout(struct tagMONITOR *pMonitor);
|
|
|
|
extern void TTYDRV_MONITOR_SetScreenSaveTimeout(struct tagMONITOR *pMonitor, int nTimeout);
|
1999-02-04 14:05:38 +00:00
|
|
|
|
|
|
|
/* TTY mouse driver */
|
|
|
|
|
1999-04-01 08:16:08 +00:00
|
|
|
extern struct tagMOUSE_DRIVER TTYDRV_MOUSE_Driver;
|
1999-02-04 14:05:38 +00:00
|
|
|
|
|
|
|
extern void TTYDRV_MOUSE_SetCursor(CURSORICONINFO *lpCursor);
|
|
|
|
extern void TTYDRV_MOUSE_MoveCursor(WORD wAbsX, WORD wAbsY);
|
1999-04-01 08:16:08 +00:00
|
|
|
extern BOOL TTYDRV_MOUSE_EnableWarpPointer(BOOL bEnable);
|
1999-02-04 14:05:38 +00:00
|
|
|
|
|
|
|
/* TTY windows driver */
|
|
|
|
|
1999-04-01 08:16:08 +00:00
|
|
|
extern struct tagWND_DRIVER TTYDRV_WND_Driver;
|
1999-02-04 14:05:38 +00:00
|
|
|
|
|
|
|
extern void TTYDRV_WND_Initialize(struct tagWND *wndPtr);
|
|
|
|
extern void TTYDRV_WND_Finalize(struct tagWND *wndPtr);
|
1999-02-26 11:11:13 +00:00
|
|
|
extern BOOL TTYDRV_WND_CreateDesktopWindow(struct tagWND *wndPtr, struct tagCLASS *classPtr, BOOL bUnicode);
|
|
|
|
extern BOOL TTYDRV_WND_CreateWindow(struct tagWND *wndPtr, struct tagCLASS *classPtr, CREATESTRUCTA *cs, BOOL bUnicode);
|
|
|
|
extern BOOL TTYDRV_WND_DestroyWindow(struct tagWND *pWnd);
|
1999-02-04 14:05:38 +00:00
|
|
|
extern struct tagWND *TTYDRV_WND_SetParent(struct tagWND *wndPtr, struct tagWND *pWndParent);
|
|
|
|
extern void TTYDRV_WND_ForceWindowRaise(struct tagWND *pWnd);
|
1999-02-26 11:11:13 +00:00
|
|
|
extern void TTYDRV_WND_SetWindowPos(struct tagWND *wndPtr, const WINDOWPOS *winpos, BOOL bSMC_SETXPOS);
|
1999-02-04 14:05:38 +00:00
|
|
|
extern void TTYDRV_WND_SetText(struct tagWND *wndPtr, LPCSTR text);
|
|
|
|
extern void TTYDRV_WND_SetFocus(struct tagWND *wndPtr);
|
|
|
|
extern void TTYDRV_WND_PreSizeMove(struct tagWND *wndPtr);
|
|
|
|
extern void TTYDRV_WND_PostSizeMove(struct tagWND *wndPtr);
|
1999-02-26 11:11:13 +00:00
|
|
|
extern void TTYDRV_WND_ScrollWindow(struct tagWND *wndPtr, struct tagDC *dcPtr, INT dx, INT dy, const RECT *clipRect, BOOL bUpdate);
|
|
|
|
extern void TTYDRV_WND_SetDrawable(struct tagWND *wndPtr, struct tagDC *dc, WORD flags, BOOL bSetClipOrigin);
|
1999-03-28 09:37:57 +00:00
|
|
|
extern BOOL TTYDRV_WND_SetHostAttr(struct tagWND *wndPtr, INT haKey, INT value);
|
1999-02-26 11:11:13 +00:00
|
|
|
extern BOOL TTYDRV_WND_IsSelfClipping(struct tagWND *wndPtr);
|
1999-02-04 14:05:38 +00:00
|
|
|
|
1998-12-07 09:36:13 +00:00
|
|
|
#endif /* !defined(__WINE_TTYDRV_H) */
|