Blender  V2.93
wm_cursors.h
Go to the documentation of this file.
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 
24 #pragma once
25 
26 struct wmEvent;
27 struct wmWindow;
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 typedef enum WMCursorType {
41 
46 
52 
58 
66 
70 
73 
76 
77  /* --- ALWAYS LAST ----- */
80 
81 void wm_init_cursor_data(void);
82 bool wm_cursor_arrow_move(struct wmWindow *win, const struct wmEvent *event);
83 
84 #ifdef __cplusplus
85 }
86 #endif
WMCursorType
Definition: wm_cursors.h:33
@ WM_CURSOR_WAIT
Definition: wm_cursors.h:36
@ WM_CURSOR_COPY
Definition: wm_cursors.h:39
@ WM_CURSOR_HAND
Definition: wm_cursors.h:40
@ WM_CURSOR_NSEW_SCROLL
Definition: wm_cursors.h:67
@ WM_CURSOR_CROSS
Definition: wm_cursors.h:42
@ WM_CURSOR_DEFAULT
Definition: wm_cursors.h:34
@ WM_CURSOR_H_SPLIT
Definition: wm_cursors.h:56
@ WM_CURSOR_PAINT
Definition: wm_cursors.h:43
@ WM_CURSOR_S_ARROW
Definition: wm_cursors.h:63
@ WM_CURSOR_Y_MOVE
Definition: wm_cursors.h:55
@ WM_CURSOR_TEXT_EDIT
Definition: wm_cursors.h:35
@ WM_CURSOR_PAINT_BRUSH
Definition: wm_cursors.h:49
@ WM_CURSOR_NS_SCROLL
Definition: wm_cursors.h:68
@ WM_CURSOR_EW_ARROW
Definition: wm_cursors.h:61
@ WM_CURSOR_E_ARROW
Definition: wm_cursors.h:64
@ WM_CURSOR_DOT
Definition: wm_cursors.h:44
@ WM_CURSOR_ZOOM_OUT
Definition: wm_cursors.h:72
@ WM_CURSOR_EDIT
Definition: wm_cursors.h:38
@ WM_CURSOR_ZOOM_IN
Definition: wm_cursors.h:71
@ WM_CURSOR_N_ARROW
Definition: wm_cursors.h:62
@ WM_CURSOR_KNIFE
Definition: wm_cursors.h:47
@ WM_CURSOR_NW_ARROW
Definition: wm_cursors.h:59
@ WM_CURSOR_STOP
Definition: wm_cursors.h:37
@ WM_CURSOR_CROSSC
Definition: wm_cursors.h:45
@ WM_CURSOR_EYEDROPPER
Definition: wm_cursors.h:51
@ WM_CURSOR_VERTEX_LOOP
Definition: wm_cursors.h:48
@ WM_CURSOR_ERASER
Definition: wm_cursors.h:50
@ WM_CURSOR_EW_SCROLL
Definition: wm_cursors.h:69
@ WM_CURSOR_V_SPLIT
Definition: wm_cursors.h:57
@ WM_CURSOR_SWAP_AREA
Definition: wm_cursors.h:53
@ WM_CURSOR_MUTE
Definition: wm_cursors.h:75
@ WM_CURSOR_NONE
Definition: wm_cursors.h:74
@ WM_CURSOR_X_MOVE
Definition: wm_cursors.h:54
@ WM_CURSOR_W_ARROW
Definition: wm_cursors.h:65
@ WM_CURSOR_NUM
Definition: wm_cursors.h:78
@ WM_CURSOR_NS_ARROW
Definition: wm_cursors.h:60
void wm_init_cursor_data(void)
Definition: wm_cursors.c:417
bool wm_cursor_arrow_move(struct wmWindow *win, const struct wmEvent *event)