Annotated edit history of
SDL_CreateCursor(3) version 2, including all changes.
View license author blame.
| Rev |
Author |
# |
Line |
| 2 |
perry |
1 |
SDL_!CreateCursor |
| |
|
2 |
!!!SDL_!CreateCursor |
| 1 |
perry |
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
EXAMPLE |
| |
|
7 |
SEE ALSO |
| |
|
8 |
---- |
| |
|
9 |
!!NAME |
| |
|
10 |
|
| |
|
11 |
|
| 2 |
perry |
12 |
SDL_!CreateCursor- Creates a new mouse cursor. |
| 1 |
perry |
13 |
!!SYNOPSIS |
| |
|
14 |
|
| |
|
15 |
|
| |
|
16 |
__#include __ |
| |
|
17 |
|
| |
|
18 |
|
| 2 |
perry |
19 |
__SDL_Cursor *SDL_!CreateCursor__(__Uint8 *data, Uint8 |
| 1 |
perry |
20 |
*mask, int w, int h, int hot_x, int hot_y__); |
| |
|
21 |
!!DESCRIPTION |
| |
|
22 |
|
| |
|
23 |
|
| |
|
24 |
Create a cursor using the specified __data__ and |
| |
|
25 |
__mask__ (in MSB format). The cursor width must be a |
| |
|
26 |
multiple of 8 bits. |
| |
|
27 |
|
| |
|
28 |
|
| |
|
29 |
The cursor is created in black and white according to the |
| |
|
30 |
following: |
| |
|
31 |
|
| |
|
32 |
|
| |
|
33 |
__Data / Mask Resulting pixel on screen__ |
| |
|
34 |
|
| |
|
35 |
|
| |
|
36 |
0 / 1 White |
| |
|
37 |
|
| |
|
38 |
|
| |
|
39 |
1 / 1 Black |
| |
|
40 |
|
| |
|
41 |
|
| |
|
42 |
0 / 0 Transparent |
| |
|
43 |
|
| |
|
44 |
|
| |
|
45 |
1 / 0 Inverted color if possible, black if not. |
| |
|
46 |
|
| |
|
47 |
|
| |
|
48 |
Cursors created with this function must be freed with |
| 2 |
perry |
49 |
''SDL_!FreeCursor''. |
| 1 |
perry |
50 |
!!EXAMPLE |
| |
|
51 |
|
| |
|
52 |
|
| |
|
53 |
/* Stolen from the mailing list */ |
| |
|
54 |
/* Creates a new mouse cursor from an XPM */ |
| |
|
55 |
/* XPM */ |
| |
|
56 |
static const char *arrow[[] = { |
| |
|
57 |
/* width height num_colors chars_per_pixel */ |
| |
|
58 |
!!SEE ALSO |
| |
|
59 |
|
| |
|
60 |
|
| 2 |
perry |
61 |
__SDL_!FreeCursor__, __SDL_!SetCursor__, |
| |
|
62 |
__SDL_!ShowCursor__ |
| 1 |
perry |
63 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.