enterleave.h revision b9a21c3c91c47e090316e28d759194e46628ed49
577N/A/*
577N/A * Copyright © 2008 Red Hat, Inc.
1356N/A *
577N/A * Permission is hereby granted, free of charge, to any person obtaining a
1610N/A * copy of this software and associated documentation files (the "Software"),
577N/A * to deal in the Software without restriction, including without limitation
577N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A * and/or sell copies of the Software, and to permit persons to whom the
919N/A * Software is furnished to do so, subject to the following conditions:
919N/A *
919N/A * The above copyright notice and this permission notice (including the next
919N/A * paragraph) shall be included in all copies or substantial portions of the
919N/A * Software.
919N/A *
919N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A * DEALINGS IN THE SOFTWARE.
919N/A *
919N/A * Authors: Peter Hutterer
919N/A *
577N/A */
577N/A
577N/A#ifdef HAVE_DIX_CONFIG_H
577N/A#include <dix-config.h>
577N/A#endif
577N/A
1634N/A#ifndef ENTERLEAVE_H
577N/A#define ENTERLEAVE_H
911N/A
1634N/Aextern void DoEnterLeaveEvents(
1634N/A DeviceIntPtr pDev,
1634N/A int sourceid,
911N/A WindowPtr fromWin,
577N/A WindowPtr toWin,
1577N/A int mode
1574N/A);
1603N/A
1603N/Aextern void DoFocusEvents(
577N/A DeviceIntPtr pDev,
577N/A WindowPtr fromWin,
577N/A WindowPtr toWin,
577N/A int mode
1356N/A);
1356N/A
970N/Aextern void EnterLeaveEvent(
970N/A DeviceIntPtr mouse,
970N/A int type,
970N/A int mode,
970N/A int detail,
970N/A WindowPtr pWin,
970N/A Window child);
970N/A
970N/Aextern WindowPtr CommonAncestor(
970N/A WindowPtr a,
970N/A WindowPtr b);
577N/A
1072N/Aextern void CoreEnterLeaveEvent(DeviceIntPtr mouse,
577N/A int type,
577N/A int mode,
577N/A int detail,
1072N/A WindowPtr pWin,
1124N/A Window child);
1610N/Aextern void DeviceEnterLeaveEvent(DeviceIntPtr mouse,
1072N/A int sourceid,
1072N/A int type,
577N/A int mode,
577N/A int detail,
577N/A WindowPtr pWin,
615N/A Window child);
615N/A
615N/Aextern void EnterWindow(DeviceIntPtr dev,
1196N/A WindowPtr win,
1196N/A int mode);
1196N/A
1196N/Aextern void LeaveWindow(DeviceIntPtr dev);
1196N/A
1196N/Aextern void CoreFocusEvent(DeviceIntPtr kbd,
810N/A int type,
1097N/A int mode,
935N/A int detail,
810N/A WindowPtr pWin);
970N/A
970N/Aextern void DeviceFocusEvent(DeviceIntPtr kbd,
970N/A int type,
577N/A int mode,
577N/A int detail,
577N/A WindowPtr pWin);
1072N/A
1610N/Aextern void SetFocusIn(DeviceIntPtr kbd,
970N/A WindowPtr win);
1610N/A
1466N/Aextern void SetFocusOut(DeviceIntPtr dev);
1610N/A#endif /* _ENTERLEAVE_H_ */
1466N/A