aboutsummaryrefslogtreecommitdiff
path: root/src/input/XBMC_mouse.h
blob: 26a280725b37a1b59444bc5d42a58bb246dd92cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
    SDL - Simple DirectMedia Layer
    Copyright (C) 1997-2009 Sam Lantinga

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library 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
    Lesser General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with XBMC; see the file COPYING.  If not, see
    <http://www.gnu.org/licenses/>.

    Sam Lantinga
    slouken@libsdl.org
*/

/* Include file for SDL mouse event handling */

#ifndef _XBMC_mouse_h
#define _XBMC_mouse_h

/* Useful data types */
typedef struct XBMC_Rect {
  int16_t   x, y;
  uint16_t  w, h;
} XBMC_Rect;


typedef struct WMcursor WMcursor;	/* Implementation dependent */
typedef struct XBMC_Cursor {
	XBMC_Rect area;			/* The area of the mouse cursor */
	int16_t hot_x, hot_y;		/* The "tip" of the cursor */
	unsigned char *data;			/* B/W cursor data */
	unsigned char *mask;			/* B/W cursor mask */
	unsigned char *save[2];			/* Place to save cursor area */
	WMcursor *wm_cursor;		/* Window-manager cursor */
} XBMC_Cursor;

#endif /* _XBMC_mouse_h */