1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
19 
20 /** \file
21  * \ingroup wm
22  */
23 
24 #pragma once
25 
26 struct wmEvent;
27 struct wmWindow;
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 typedef enum WMCursorType {
34   WM_CURSOR_DEFAULT = 1,
35   WM_CURSOR_TEXT_EDIT,
36   WM_CURSOR_WAIT,
37   WM_CURSOR_STOP,
38   WM_CURSOR_EDIT,
39   WM_CURSOR_COPY,
40   WM_CURSOR_HAND,
41 
42   WM_CURSOR_CROSS,
43   WM_CURSOR_PAINT,
44   WM_CURSOR_DOT,
45   WM_CURSOR_CROSSC,
46 
47   WM_CURSOR_KNIFE,
48   WM_CURSOR_VERTEX_LOOP,
49   WM_CURSOR_PAINT_BRUSH,
50   WM_CURSOR_ERASER,
51   WM_CURSOR_EYEDROPPER,
52 
53   WM_CURSOR_SWAP_AREA,
54   WM_CURSOR_X_MOVE,
55   WM_CURSOR_Y_MOVE,
56   WM_CURSOR_H_SPLIT,
57   WM_CURSOR_V_SPLIT,
58 
59   WM_CURSOR_NW_ARROW,
60   WM_CURSOR_NS_ARROW,
61   WM_CURSOR_EW_ARROW,
62   WM_CURSOR_N_ARROW,
63   WM_CURSOR_S_ARROW,
64   WM_CURSOR_E_ARROW,
65   WM_CURSOR_W_ARROW,
66 
67   WM_CURSOR_NSEW_SCROLL,
68   WM_CURSOR_NS_SCROLL,
69   WM_CURSOR_EW_SCROLL,
70 
71   WM_CURSOR_ZOOM_IN,
72   WM_CURSOR_ZOOM_OUT,
73 
74   WM_CURSOR_NONE,
75 
76   /* --- ALWAYS LAST ----- */
77   WM_CURSOR_NUM,
78 } WMCursorType;
79 
80 void wm_init_cursor_data(void);
81 bool wm_cursor_arrow_move(struct wmWindow *win, const struct wmEvent *event);
82 
83 #ifdef __cplusplus
84 }
85 #endif
86