-
-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy pathsetResizable.xml
More file actions
55 lines (41 loc) · 1.15 KB
/
setResizable.xml
File metadata and controls
55 lines (41 loc) · 1.15 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>setResizable()</name>
<category>Structure</category>
<subcategory></subcategory>
<type>function</type>
<example>
<image></image>
<code><![CDATA[
void setup() {
size(200, 200);
surface.setTitle("Hello World!");
surface.setResizable(true);
surface.setLocation(100, 100);
}
void draw() {
background(204);
line(0, 0, width, height);
line(width, 0, 0, height);
}
]]></code>
</example>
<description><![CDATA[
By default, Processing sketches can't be resized. When <b>surface.setResizable(true)</b> is used within a sketch, the window can be resized while it's running.
<br /><br />
There are more features of PSurface documented in the <a href="http://processing.github.io/processing-javadocs/core/processing/core/PSurfaceNone.html">Processing JavaDoc.</a>
]]></description>
<syntax>
surface.setResizable(resizable)
</syntax>
<parameter>
<label>resizable</label>
<description><![CDATA[boolean: true to make the surface resizable]]></description>
</parameter>
<returns>void</returns>
<related>
</related>
<availability>3.0</availability>
<type>Function</type>
<partof>PDE</partof>
</root>