enterleave.h revision 4642e01f
1/* 2 * Copyright © 2008 Red Hat, Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice (including the next 12 * paragraph) shall be included in all copies or substantial portions of the 13 * Software. 14 * 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21 * DEALINGS IN THE SOFTWARE. 22 * 23 * Authors: Peter Hutterer 24 * 25 */ 26 27#ifdef HAVE_DIX_CONFIG_H 28#include <dix-config.h> 29#endif 30 31#ifndef ENTERLEAVE_H 32#define ENTERLEAVE_H 33 34extern void DoEnterLeaveEvents( 35 DeviceIntPtr pDev, 36 WindowPtr fromWin, 37 WindowPtr toWin, 38 int mode 39); 40 41extern void DoFocusEvents( 42 DeviceIntPtr pDev, 43 WindowPtr fromWin, 44 WindowPtr toWin, 45 int mode 46); 47 48extern void EnterLeaveEvent( 49 DeviceIntPtr mouse, 50 int type, 51 int mode, 52 int detail, 53 WindowPtr pWin, 54 Window child); 55 56extern WindowPtr CommonAncestor( 57 WindowPtr a, 58 WindowPtr b); 59 60extern void CoreEnterLeaveEvent(DeviceIntPtr mouse, 61 int type, 62 int mode, 63 int detail, 64 WindowPtr pWin, 65 Window child); 66extern void DeviceEnterLeaveEvent(DeviceIntPtr mouse, 67 int type, 68 int mode, 69 int detail, 70 WindowPtr pWin, 71 Window child); 72 73extern void EnterWindow(DeviceIntPtr dev, 74 WindowPtr win, 75 int mode); 76 77 78extern void CoreFocusEvent(DeviceIntPtr kbd, 79 int type, 80 int mode, 81 int detail, 82 WindowPtr pWin); 83 84extern void DeviceFocusEvent(DeviceIntPtr kbd, 85 int type, 86 int mode, 87 int detail, 88 WindowPtr pWin); 89 90extern void SetFocusIn(DeviceIntPtr kbd, 91 WindowPtr win); 92 93extern void SetFocusOut(DeviceIntPtr dev, 94 WindowPtr win); 95#endif /* _ENTERLEAVE_H_ */ 96