Blender
V2.93
source
blender
windowmanager
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
{
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
WM_CURSOR_MUTE
,
76
77
/* --- ALWAYS LAST ----- */
78
WM_CURSOR_NUM
,
79
}
WMCursorType
;
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
wmEvent
Definition:
WM_types.h:573
wmWindow
Definition:
DNA_windowmanager_types.h:228
WMCursorType
WMCursorType
Definition:
wm_cursors.h:33
WM_CURSOR_WAIT
@ WM_CURSOR_WAIT
Definition:
wm_cursors.h:36
WM_CURSOR_COPY
@ WM_CURSOR_COPY
Definition:
wm_cursors.h:39
WM_CURSOR_HAND
@ WM_CURSOR_HAND
Definition:
wm_cursors.h:40
WM_CURSOR_NSEW_SCROLL
@ WM_CURSOR_NSEW_SCROLL
Definition:
wm_cursors.h:67
WM_CURSOR_CROSS
@ WM_CURSOR_CROSS
Definition:
wm_cursors.h:42
WM_CURSOR_DEFAULT
@ WM_CURSOR_DEFAULT
Definition:
wm_cursors.h:34
WM_CURSOR_H_SPLIT
@ WM_CURSOR_H_SPLIT
Definition:
wm_cursors.h:56
WM_CURSOR_PAINT
@ WM_CURSOR_PAINT
Definition:
wm_cursors.h:43
WM_CURSOR_S_ARROW
@ WM_CURSOR_S_ARROW
Definition:
wm_cursors.h:63
WM_CURSOR_Y_MOVE
@ WM_CURSOR_Y_MOVE
Definition:
wm_cursors.h:55
WM_CURSOR_TEXT_EDIT
@ WM_CURSOR_TEXT_EDIT
Definition:
wm_cursors.h:35
WM_CURSOR_PAINT_BRUSH
@ WM_CURSOR_PAINT_BRUSH
Definition:
wm_cursors.h:49
WM_CURSOR_NS_SCROLL
@ WM_CURSOR_NS_SCROLL
Definition:
wm_cursors.h:68
WM_CURSOR_EW_ARROW
@ WM_CURSOR_EW_ARROW
Definition:
wm_cursors.h:61
WM_CURSOR_E_ARROW
@ WM_CURSOR_E_ARROW
Definition:
wm_cursors.h:64
WM_CURSOR_DOT
@ WM_CURSOR_DOT
Definition:
wm_cursors.h:44
WM_CURSOR_ZOOM_OUT
@ WM_CURSOR_ZOOM_OUT
Definition:
wm_cursors.h:72
WM_CURSOR_EDIT
@ WM_CURSOR_EDIT
Definition:
wm_cursors.h:38
WM_CURSOR_ZOOM_IN
@ WM_CURSOR_ZOOM_IN
Definition:
wm_cursors.h:71
WM_CURSOR_N_ARROW
@ WM_CURSOR_N_ARROW
Definition:
wm_cursors.h:62
WM_CURSOR_KNIFE
@ WM_CURSOR_KNIFE
Definition:
wm_cursors.h:47
WM_CURSOR_NW_ARROW
@ WM_CURSOR_NW_ARROW
Definition:
wm_cursors.h:59
WM_CURSOR_STOP
@ WM_CURSOR_STOP
Definition:
wm_cursors.h:37
WM_CURSOR_CROSSC
@ WM_CURSOR_CROSSC
Definition:
wm_cursors.h:45
WM_CURSOR_EYEDROPPER
@ WM_CURSOR_EYEDROPPER
Definition:
wm_cursors.h:51
WM_CURSOR_VERTEX_LOOP
@ WM_CURSOR_VERTEX_LOOP
Definition:
wm_cursors.h:48
WM_CURSOR_ERASER
@ WM_CURSOR_ERASER
Definition:
wm_cursors.h:50
WM_CURSOR_EW_SCROLL
@ WM_CURSOR_EW_SCROLL
Definition:
wm_cursors.h:69
WM_CURSOR_V_SPLIT
@ WM_CURSOR_V_SPLIT
Definition:
wm_cursors.h:57
WM_CURSOR_SWAP_AREA
@ WM_CURSOR_SWAP_AREA
Definition:
wm_cursors.h:53
WM_CURSOR_MUTE
@ WM_CURSOR_MUTE
Definition:
wm_cursors.h:75
WM_CURSOR_NONE
@ WM_CURSOR_NONE
Definition:
wm_cursors.h:74
WM_CURSOR_X_MOVE
@ WM_CURSOR_X_MOVE
Definition:
wm_cursors.h:54
WM_CURSOR_W_ARROW
@ WM_CURSOR_W_ARROW
Definition:
wm_cursors.h:65
WM_CURSOR_NUM
@ WM_CURSOR_NUM
Definition:
wm_cursors.h:78
WM_CURSOR_NS_ARROW
@ WM_CURSOR_NS_ARROW
Definition:
wm_cursors.h:60
wm_init_cursor_data
void wm_init_cursor_data(void)
Definition:
wm_cursors.c:417
wm_cursor_arrow_move
bool wm_cursor_arrow_move(struct wmWindow *win, const struct wmEvent *event)
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1