File: cursors.h

package info (click to toggle)
mir 2.20.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,636 kB
  • sloc: cpp: 174,574; xml: 13,422; ansic: 8,221; python: 1,337; sh: 874; makefile: 216; javascript: 37
file content (121 lines) | stat: -rw-r--r-- 3,419 bytes parent folder | download | duplicates (2)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/*
 * Cursor name definitions.
 *
 * Copyright © Canonical Ltd.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 2 or 3 as
 * published by the Free Software Foundation.
 *
 * This program 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 Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/* XXX Deprecate this header? Tell people to just use CSS cursor names. */

#ifndef MIR_CURSORS_H_
#define MIR_CURSORS_H_

/* This is C code. Not C++. */
#ifdef __cplusplus
extern "C" {
#endif

/**
 * A special cursor name for use with mir_cursor_configuration_from_name
 * representing the system default cursor.
 */
extern char const *const mir_default_cursor_name;
/**
 * A special cursor name for use with mir_cursor_configuration_from_name
 * representing a disabled cursor image.
 */
extern char const *const mir_disabled_cursor_name;

/**
 * The standard arrow cursor (typically the system default)
 */
extern char const* const mir_arrow_cursor_name;

/**
 * The "wait" cursor, typically an hourglass or watch used during operations
 * which prevent the user from interacting.
 */
extern char const* const mir_busy_cursor_name;

/**
 * The caret or ibeam cursor, indicating acceptance of text input
 */
extern char const* const mir_caret_cursor_name;

/**
 * The pointing hand cursor, typically used for clickable elements such
 * as hyperlinks.
 */
extern char const* const mir_pointing_hand_cursor_name;

/**
 * The open handed cursor, typically used to indicate that the area beneath
 * the cursor may be clicked and dragged around.
 */
extern char const* const mir_open_hand_cursor_name;

/**
 * The close handed cursor, typically used to indicate that a drag operation is in process
 * which involves scrolling.
 */
extern char const* const mir_closed_hand_cursor_name;

/**
 * The cursor used to indicate a horizontal resize operation.
 */
extern char const* const mir_horizontal_resize_cursor_name;

/**
 * The cursor used to indicate a vertical resize operation.
 */
extern char const* const mir_vertical_resize_cursor_name;

/**
 * The cursor used to indicate diagonal resizing a top right corner.
 */
extern char const* const mir_diagonal_resize_bottom_to_top_cursor_name;

/**
 * The cursor used to indicate diagonal resizing a bottom right corner.
 */
extern char const* const mir_diagonal_resize_top_to_bottom_cursor_name;

/**
 * The cursor used to indicate resize with no directional constraint.
 */
extern char const* const mir_omnidirectional_resize_cursor_name;

/**
 * The cursor used for vertical splitters, indicating that a handle may be
 * dragged to adjust vertical space.
 */
extern char const* const mir_vsplit_resize_cursor_name;

/**
 * The cursor used for horizontal splitters, indicating that a handle may be
 * dragged to adjust horizontal space.
 */
extern char const* const mir_hsplit_resize_cursor_name;

/**
 *  The cursor used for crosshair, which may be used for picking colors or
 *  finer precision.
 */
extern char const* const mir_crosshair_cursor_name;

#ifdef __cplusplus
}
#endif

#endif