/* Window server "internals" Copyright (C) 2001 Johan Rydberg. All Rights Reserved. This file is part of Crust. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __ServicesFoundation_SXWindowServer_h #define __ServicesFoundation_SXWindowServer_h #include #include /* Signal data for a mouse up/down event. */ struct EventDataMouseDown { int button; int x; int y; int root_x; int root_y; }; /* Signal data for a mouse move event. */ struct EventDataMouseMove { int x; int y; int root_x; int root_y; }; /* Note that the following functions are NOT exported to user application. */ /* Titlebar signal handler for "event_mouse_down" event. */ SF_EXTERN void WSSignalTitlebarDown (CFTypeRef tracking_area, void *signal_arg, void *signal_data); /* Titlebar signal handler for "event_mouse_up" event. */ SF_EXTERN void WSSignalTitlebarUp (CFTypeRef tracking_area, void *signal_arg, void *signal_data); /* Titlebar signal handler for "event_mouse_move" event. */ SF_EXTERN void WSSignalTitlebarMove (CFTypeRef tracking_area, void *signal_arg, void *signal_data); void WSSignalButtonUp (CFTypeRef tracking_area, void *signal_arg, void *signal_data); #endif /* SXWindowServer.h */