forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcursor.xml
More file actions
executable file
·75 lines (51 loc) · 1.61 KB
/
Copy pathcursor.xml
File metadata and controls
executable file
·75 lines (51 loc) · 1.61 KB
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>cursor()</name>
<category>Environment</category>
<subcategory></subcategory>
<usage>Web & Application</usage>
<example>
<image></image>
<code><![CDATA[
// Move the mouse left and right across the image
// to see the cursor change from a cross to a hand
void draw()
{
if(mouseX < 50) {
cursor(CROSS);
} else {
cursor(HAND);
}
}
]]></code>
</example>
<description><![CDATA[Sets the cursor to a predefined symbol, an image, or turns it on if already hidden. If you are trying to set an image as the cursor, it is recommended to make the size 16x16 or 32x32 pixels. It is not possible to load an image as the cursor if you are exporting your program for the Web. The values for parameters <b>x</b> and <b>y</b> must be less than the dimensions of the image.]]></description>
<syntax><![CDATA[
cursor()
cursor(<kbd>MODE</kbd>)
cursor(<kbd>image</kbd>, <kbd>x</kbd>, <kbd>y</kbd>)
]]></syntax>
<parameter>
<label>MODE</label>
<description><![CDATA[either ARROW, CROSS, HAND, MOVE, TEXT, WAIT]]></description>
</parameter>
<parameter>
<label>image</label>
<description><![CDATA[PImage: any variable of type PImage]]></description>
</parameter>
<parameter>
<label>x</label>
<description><![CDATA[int: the horizonal active spot of the cursor]]></description>
</parameter>
<parameter>
<label>y</label>
<description><![CDATA[int: the vertical active spot of the cursor]]></description>
</parameter>
<returns>None</returns>
<related>
noCursor()
</related>
<availability>1.0</availability>
<type>Function</type>
<partof>Core</partof>
</root>