Merge pull request #5039 from CEikermann/patch-1
[vuplus_xbmc] / xbmc / input / XBMC_mouse.h
1 /*
2     SDL - Simple DirectMedia Layer
3     Copyright (C) 1997-2009 Sam Lantinga
4
5     This library is free software; you can redistribute it and/or
6     modify it under the terms of the GNU Lesser General Public
7     License as published by the Free Software Foundation; either
8     version 2.1 of the License, or (at your option) any later version.
9
10     This library is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13     Lesser General Public License for more details.
14
15     You should have received a copy of the GNU General Public License
16     along with XBMC; see the file COPYING.  If not, see
17     <http://www.gnu.org/licenses/>.
18
19     Sam Lantinga
20     slouken@libsdl.org
21 */
22
23 /* Include file for SDL mouse event handling */
24
25 #ifndef _XBMC_mouse_h
26 #define _XBMC_mouse_h
27
28 /* Useful data types */
29 typedef struct XBMC_Rect {
30   int16_t   x, y;
31   uint16_t  w, h;
32 } XBMC_Rect;
33
34
35 typedef struct WMcursor WMcursor;       /* Implementation dependent */
36 typedef struct XBMC_Cursor {
37         XBMC_Rect area;                 /* The area of the mouse cursor */
38         int16_t hot_x, hot_y;           /* The "tip" of the cursor */
39         unsigned char *data;                    /* B/W cursor data */
40         unsigned char *mask;                    /* B/W cursor mask */
41         unsigned char *save[2];                 /* Place to save cursor area */
42         WMcursor *wm_cursor;            /* Window-manager cursor */
43 } XBMC_Cursor;
44
45 #endif /* _XBMC_mouse_h */