1998-11-01 17:22:07 +01:00
|
|
|
/*
|
1998-12-07 10:13:40 +01:00
|
|
|
* X11 driver
|
1998-11-01 17:22:07 +01:00
|
|
|
*
|
|
|
|
* Copyright 1998 Patrik Stridvall
|
|
|
|
*/
|
|
|
|
|
1998-12-07 10:13:40 +01:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#ifndef X_DISPLAY_MISSING
|
1998-11-01 17:22:07 +01:00
|
|
|
|
1999-02-04 12:11:01 +01:00
|
|
|
#include "clipboard.h"
|
|
|
|
#include "desktop.h"
|
|
|
|
#include "keyboard.h"
|
|
|
|
#include "message.h"
|
|
|
|
#include "monitor.h"
|
1999-04-01 10:16:08 +02:00
|
|
|
#include "mouse.h"
|
|
|
|
#include "user.h"
|
1999-02-04 12:11:01 +01:00
|
|
|
#include "win.h"
|
1998-12-07 10:13:40 +01:00
|
|
|
#include "x11drv.h"
|
1998-11-01 17:22:07 +01:00
|
|
|
|
1999-04-01 10:16:08 +02:00
|
|
|
USER_DRIVER X11DRV_USER_Driver =
|
|
|
|
{
|
|
|
|
X11DRV_USER_Initialize,
|
|
|
|
X11DRV_USER_Finalize,
|
|
|
|
X11DRV_USER_BeginDebugging,
|
|
|
|
X11DRV_USER_EndDebugging
|
|
|
|
};
|
|
|
|
|
1998-12-07 10:13:40 +01:00
|
|
|
CLIPBOARD_DRIVER X11DRV_CLIPBOARD_Driver =
|
|
|
|
{
|
1999-09-03 17:17:57 +02:00
|
|
|
X11DRV_CLIPBOARD_Acquire,
|
|
|
|
X11DRV_CLIPBOARD_Release,
|
1999-04-01 14:03:52 +02:00
|
|
|
X11DRV_CLIPBOARD_SetData,
|
|
|
|
X11DRV_CLIPBOARD_GetData,
|
1999-09-03 17:17:57 +02:00
|
|
|
X11DRV_CLIPBOARD_IsFormatAvailable,
|
|
|
|
X11DRV_CLIPBOARD_RegisterFormat,
|
|
|
|
X11DRV_CLIPBOARD_IsSelectionowner,
|
1998-12-07 10:13:40 +01:00
|
|
|
X11DRV_CLIPBOARD_ResetOwner
|
|
|
|
};
|
1998-11-14 19:57:47 +01:00
|
|
|
|
1999-02-04 12:11:01 +01:00
|
|
|
DESKTOP_DRIVER X11DRV_DESKTOP_Driver =
|
1998-11-01 17:22:07 +01:00
|
|
|
{
|
1999-02-04 12:11:01 +01:00
|
|
|
X11DRV_DESKTOP_Initialize,
|
|
|
|
X11DRV_DESKTOP_Finalize
|
1998-12-07 10:13:40 +01:00
|
|
|
};
|
1998-11-01 17:22:07 +01:00
|
|
|
|
1998-12-07 10:13:40 +01:00
|
|
|
EVENT_DRIVER X11DRV_EVENT_Driver =
|
|
|
|
{
|
|
|
|
X11DRV_EVENT_Init,
|
|
|
|
X11DRV_EVENT_Synchronize,
|
|
|
|
X11DRV_EVENT_CheckFocus,
|
1999-05-22 20:57:17 +02:00
|
|
|
X11DRV_EVENT_UserRepaintDisable
|
1998-12-07 10:13:40 +01:00
|
|
|
};
|
1998-11-01 17:22:07 +01:00
|
|
|
|
1999-02-04 12:11:01 +01:00
|
|
|
KEYBOARD_DRIVER X11DRV_KEYBOARD_Driver =
|
|
|
|
{
|
|
|
|
X11DRV_KEYBOARD_Init,
|
|
|
|
X11DRV_KEYBOARD_VkKeyScan,
|
|
|
|
X11DRV_KEYBOARD_MapVirtualKey,
|
|
|
|
X11DRV_KEYBOARD_GetKeyNameText,
|
1999-04-01 10:16:08 +02:00
|
|
|
X11DRV_KEYBOARD_ToAscii,
|
|
|
|
X11DRV_KEYBOARD_GetBeepActive,
|
|
|
|
X11DRV_KEYBOARD_SetBeepActive,
|
1999-07-04 15:31:03 +02:00
|
|
|
X11DRV_KEYBOARD_Beep,
|
|
|
|
X11DRV_KEYBOARD_GetDIState,
|
|
|
|
X11DRV_KEYBOARD_GetDIData
|
1999-02-04 12:11:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
MONITOR_DRIVER X11DRV_MONITOR_Driver =
|
|
|
|
{
|
|
|
|
X11DRV_MONITOR_Initialize,
|
|
|
|
X11DRV_MONITOR_Finalize,
|
1999-04-01 10:16:08 +02:00
|
|
|
X11DRV_MONITOR_IsSingleWindow,
|
1999-02-04 12:11:01 +01:00
|
|
|
X11DRV_MONITOR_GetWidth,
|
|
|
|
X11DRV_MONITOR_GetHeight,
|
1999-04-01 10:16:08 +02:00
|
|
|
X11DRV_MONITOR_GetDepth,
|
|
|
|
X11DRV_MONITOR_GetScreenSaveActive,
|
|
|
|
X11DRV_MONITOR_SetScreenSaveActive,
|
|
|
|
X11DRV_MONITOR_GetScreenSaveTimeout,
|
|
|
|
X11DRV_MONITOR_SetScreenSaveTimeout
|
1999-02-04 12:11:01 +01:00
|
|
|
};
|
|
|
|
|
1998-12-07 10:13:40 +01:00
|
|
|
MOUSE_DRIVER X11DRV_MOUSE_Driver =
|
1998-11-01 17:22:07 +01:00
|
|
|
{
|
1999-11-07 22:25:57 +01:00
|
|
|
X11DRV_MOUSE_Init,
|
1998-12-26 13:00:43 +01:00
|
|
|
X11DRV_MOUSE_SetCursor,
|
1999-04-01 10:16:08 +02:00
|
|
|
X11DRV_MOUSE_MoveCursor,
|
|
|
|
X11DRV_MOUSE_EnableWarpPointer
|
1998-12-07 10:13:40 +01:00
|
|
|
};
|
|
|
|
|
1999-02-04 12:11:01 +01:00
|
|
|
WND_DRIVER X11DRV_WND_Driver =
|
|
|
|
{
|
|
|
|
X11DRV_WND_Initialize,
|
|
|
|
X11DRV_WND_Finalize,
|
|
|
|
X11DRV_WND_CreateDesktopWindow,
|
|
|
|
X11DRV_WND_CreateWindow,
|
|
|
|
X11DRV_WND_DestroyWindow,
|
|
|
|
X11DRV_WND_SetParent,
|
|
|
|
X11DRV_WND_ForceWindowRaise,
|
|
|
|
X11DRV_WND_SetWindowPos,
|
|
|
|
X11DRV_WND_SetText,
|
|
|
|
X11DRV_WND_SetFocus,
|
|
|
|
X11DRV_WND_PreSizeMove,
|
|
|
|
X11DRV_WND_PostSizeMove,
|
1999-03-28 11:37:57 +02:00
|
|
|
X11DRV_WND_SurfaceCopy,
|
1999-02-04 12:11:01 +01:00
|
|
|
X11DRV_WND_SetDrawable,
|
1999-03-28 11:37:57 +02:00
|
|
|
X11DRV_WND_SetHostAttr,
|
1999-02-04 12:11:01 +01:00
|
|
|
X11DRV_WND_IsSelfClipping
|
|
|
|
};
|
|
|
|
|
1998-12-07 10:13:40 +01:00
|
|
|
#endif /* !defined(X_DISPLAY_MISSING) */
|
1998-11-01 17:22:07 +01:00
|
|
|
|
|
|
|
|