Blender
V5.0
source
blender
windowmanager
wm_cursors.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
struct
wmEvent
;
12
struct
wmWindow
;
13
14
enum
WMCursorType
{
15
WM_CURSOR_DEFAULT
= 1,
16
WM_CURSOR_TEXT_EDIT
,
17
WM_CURSOR_WAIT
,
18
WM_CURSOR_STOP
,
19
WM_CURSOR_EDIT
,
20
WM_CURSOR_COPY
,
21
WM_CURSOR_MOVE
,
22
WM_CURSOR_HAND
,
23
WM_CURSOR_HAND_CLOSED
,
24
WM_CURSOR_HAND_POINT
,
25
26
WM_CURSOR_CROSS
,
27
WM_CURSOR_PAINT
,
28
WM_CURSOR_DOT
,
29
WM_CURSOR_CROSSC
,
30
31
WM_CURSOR_KNIFE
,
32
WM_CURSOR_BLADE
,
33
WM_CURSOR_VERTEX_LOOP
,
34
WM_CURSOR_PAINT_BRUSH
,
35
WM_CURSOR_ERASER
,
36
WM_CURSOR_EYEDROPPER
,
37
38
WM_CURSOR_SWAP_AREA
,
39
WM_CURSOR_X_MOVE
,
40
WM_CURSOR_Y_MOVE
,
41
WM_CURSOR_H_SPLIT
,
42
WM_CURSOR_V_SPLIT
,
43
44
WM_CURSOR_NW_ARROW
,
45
WM_CURSOR_NS_ARROW
,
46
WM_CURSOR_EW_ARROW
,
47
WM_CURSOR_N_ARROW
,
48
WM_CURSOR_S_ARROW
,
49
WM_CURSOR_E_ARROW
,
50
WM_CURSOR_W_ARROW
,
51
52
WM_CURSOR_NSEW_SCROLL
,
53
WM_CURSOR_NS_SCROLL
,
54
WM_CURSOR_EW_SCROLL
,
55
56
WM_CURSOR_ZOOM_IN
,
57
WM_CURSOR_ZOOM_OUT
,
58
59
WM_CURSOR_NONE
,
60
WM_CURSOR_MUTE
,
61
62
WM_CURSOR_PICK_AREA
,
63
64
WM_CURSOR_LEFT_HANDLE
,
65
WM_CURSOR_RIGHT_HANDLE
,
66
WM_CURSOR_BOTH_HANDLES
,
67
WM_CURSOR_SLIP
,
68
69
/* --- ALWAYS LAST ----- */
70
WM_CURSOR_NUM
,
71
};
72
73
void
wm_init_cursor_data
();
74
bool
wm_cursor_arrow_move
(
wmWindow
*win,
const
wmEvent
*event);
wmEvent
Definition
WM_types.hh:753
wmWindow
Definition
DNA_windowmanager_types.h:164
WMCursorType
WMCursorType
Definition
wm_cursors.hh:14
WM_CURSOR_WAIT
@ WM_CURSOR_WAIT
Definition
wm_cursors.hh:17
WM_CURSOR_COPY
@ WM_CURSOR_COPY
Definition
wm_cursors.hh:20
WM_CURSOR_HAND
@ WM_CURSOR_HAND
Definition
wm_cursors.hh:22
WM_CURSOR_NSEW_SCROLL
@ WM_CURSOR_NSEW_SCROLL
Definition
wm_cursors.hh:52
WM_CURSOR_CROSS
@ WM_CURSOR_CROSS
Definition
wm_cursors.hh:26
WM_CURSOR_DEFAULT
@ WM_CURSOR_DEFAULT
Definition
wm_cursors.hh:15
WM_CURSOR_RIGHT_HANDLE
@ WM_CURSOR_RIGHT_HANDLE
Definition
wm_cursors.hh:65
WM_CURSOR_HAND_CLOSED
@ WM_CURSOR_HAND_CLOSED
Definition
wm_cursors.hh:23
WM_CURSOR_BOTH_HANDLES
@ WM_CURSOR_BOTH_HANDLES
Definition
wm_cursors.hh:66
WM_CURSOR_H_SPLIT
@ WM_CURSOR_H_SPLIT
Definition
wm_cursors.hh:41
WM_CURSOR_PAINT
@ WM_CURSOR_PAINT
Definition
wm_cursors.hh:27
WM_CURSOR_S_ARROW
@ WM_CURSOR_S_ARROW
Definition
wm_cursors.hh:48
WM_CURSOR_Y_MOVE
@ WM_CURSOR_Y_MOVE
Definition
wm_cursors.hh:40
WM_CURSOR_PICK_AREA
@ WM_CURSOR_PICK_AREA
Definition
wm_cursors.hh:62
WM_CURSOR_TEXT_EDIT
@ WM_CURSOR_TEXT_EDIT
Definition
wm_cursors.hh:16
WM_CURSOR_PAINT_BRUSH
@ WM_CURSOR_PAINT_BRUSH
Definition
wm_cursors.hh:34
WM_CURSOR_NS_SCROLL
@ WM_CURSOR_NS_SCROLL
Definition
wm_cursors.hh:53
WM_CURSOR_MOVE
@ WM_CURSOR_MOVE
Definition
wm_cursors.hh:21
WM_CURSOR_EW_ARROW
@ WM_CURSOR_EW_ARROW
Definition
wm_cursors.hh:46
WM_CURSOR_E_ARROW
@ WM_CURSOR_E_ARROW
Definition
wm_cursors.hh:49
WM_CURSOR_DOT
@ WM_CURSOR_DOT
Definition
wm_cursors.hh:28
WM_CURSOR_ZOOM_OUT
@ WM_CURSOR_ZOOM_OUT
Definition
wm_cursors.hh:57
WM_CURSOR_EDIT
@ WM_CURSOR_EDIT
Definition
wm_cursors.hh:19
WM_CURSOR_LEFT_HANDLE
@ WM_CURSOR_LEFT_HANDLE
Definition
wm_cursors.hh:64
WM_CURSOR_ZOOM_IN
@ WM_CURSOR_ZOOM_IN
Definition
wm_cursors.hh:56
WM_CURSOR_BLADE
@ WM_CURSOR_BLADE
Definition
wm_cursors.hh:32
WM_CURSOR_N_ARROW
@ WM_CURSOR_N_ARROW
Definition
wm_cursors.hh:47
WM_CURSOR_KNIFE
@ WM_CURSOR_KNIFE
Definition
wm_cursors.hh:31
WM_CURSOR_NW_ARROW
@ WM_CURSOR_NW_ARROW
Definition
wm_cursors.hh:44
WM_CURSOR_STOP
@ WM_CURSOR_STOP
Definition
wm_cursors.hh:18
WM_CURSOR_CROSSC
@ WM_CURSOR_CROSSC
Definition
wm_cursors.hh:29
WM_CURSOR_EYEDROPPER
@ WM_CURSOR_EYEDROPPER
Definition
wm_cursors.hh:36
WM_CURSOR_VERTEX_LOOP
@ WM_CURSOR_VERTEX_LOOP
Definition
wm_cursors.hh:33
WM_CURSOR_ERASER
@ WM_CURSOR_ERASER
Definition
wm_cursors.hh:35
WM_CURSOR_HAND_POINT
@ WM_CURSOR_HAND_POINT
Definition
wm_cursors.hh:24
WM_CURSOR_EW_SCROLL
@ WM_CURSOR_EW_SCROLL
Definition
wm_cursors.hh:54
WM_CURSOR_SLIP
@ WM_CURSOR_SLIP
Definition
wm_cursors.hh:67
WM_CURSOR_V_SPLIT
@ WM_CURSOR_V_SPLIT
Definition
wm_cursors.hh:42
WM_CURSOR_SWAP_AREA
@ WM_CURSOR_SWAP_AREA
Definition
wm_cursors.hh:38
WM_CURSOR_MUTE
@ WM_CURSOR_MUTE
Definition
wm_cursors.hh:60
WM_CURSOR_NONE
@ WM_CURSOR_NONE
Definition
wm_cursors.hh:59
WM_CURSOR_X_MOVE
@ WM_CURSOR_X_MOVE
Definition
wm_cursors.hh:39
WM_CURSOR_W_ARROW
@ WM_CURSOR_W_ARROW
Definition
wm_cursors.hh:50
WM_CURSOR_NUM
@ WM_CURSOR_NUM
Definition
wm_cursors.hh:70
WM_CURSOR_NS_ARROW
@ WM_CURSOR_NS_ARROW
Definition
wm_cursors.hh:45
wm_cursor_arrow_move
bool wm_cursor_arrow_move(wmWindow *win, const wmEvent *event)
Definition
wm_cursors.cc:595
wm_init_cursor_data
void wm_init_cursor_data()
Definition
wm_cursors.cc:977
Generated on
for Blender by
doxygen
1.16.1