Include a header file required for build on mac 10.4
[supercollider.git] / Help / Geometry / Rect.html
blob0f8a10ef050e7c45cf183926cc4b0fb9a1cbc594
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <title></title>
7 <meta name="Generator" content="Cocoa HTML Writer">
8 <meta name="CocoaVersion" content="824.47">
9 <style type="text/css">
10 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica}
11 p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
12 p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
13 span.s1 {text-decoration: underline}
14 span.Apple-tab-span {white-space:pre}
15 </style>
16 </head>
17 <body>
18 <p class="p1"><b>Rect<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>rectangle</b></p>
19 <p class="p2"><br></p>
20 <p class="p3"><b><span class="s1">Class methods:</span></b></p>
21 <p class="p2"><br></p>
22 <p class="p3"><b>new(inLeft, inTop, inWidth, inHeight)</b></p>
23 <p class="p2"><br></p>
24 <p class="p3">return a new Rect with the given upper left corner and dimensions.</p>
25 <p class="p2"><br></p>
26 <p class="p3"><b>newSides(inLeft, inTop, inRight, inBottom)</b></p>
27 <p class="p2"><br></p>
28 <p class="p3">return a new Rect with the given boundaries.</p>
29 <p class="p2"><br></p>
30 <p class="p3"><b>fromPoints(inPoint1, inPoint2)</b></p>
31 <p class="p2"><br></p>
32 <p class="p3">return a new Rect defined by the given Points.</p>
33 <p class="p2"><br></p>
34 <p class="p3"><b><span class="s1">Instance methods:</span></b></p>
35 <p class="p2"><br></p>
36 <p class="p3"><b>left</b></p>
37 <p class="p3"><b>top</b></p>
38 <p class="p3"><b>right</b></p>
39 <p class="p3"><b>bottom</b></p>
40 <p class="p2"><br></p>
41 <p class="p3">Get the value of the boundary.</p>
42 <p class="p2"><br></p>
43 <p class="p3"><b>left_(aValue)</b></p>
44 <p class="p3"><b>top_(aValue)</b></p>
45 <p class="p2"><br></p>
46 <p class="p3">Set the value of the boundary.</p>
47 <p class="p2"><br></p>
48 <p class="p3"><b>set(inLeft, inTop, inWidth, inHeight)</b></p>
49 <p class="p2"><br></p>
50 <p class="p3">set the boundaries to the given values.</p>
51 <p class="p2"><br></p>
52 <p class="p3"><b>setExtent(inWidth, inHeight)</b></p>
53 <p class="p2"><br></p>
54 <p class="p3">set the dimensions.</p>
55 <p class="p2"><br></p>
56 <p class="p3"><b>width</b></p>
57 <p class="p2"><br></p>
58 <p class="p3">return the width.</p>
59 <p class="p2"><br></p>
60 <p class="p3"><b>height</b></p>
61 <p class="p2"><br></p>
62 <p class="p3">return the height,</p>
63 <p class="p2"><br></p>
64 <p class="p3"><b>width_(aValue)</b></p>
65 <p class="p2"><br></p>
66 <p class="p3">set the width.</p>
67 <p class="p2"><br></p>
68 <p class="p3"><b>height_(aValue)</b></p>
69 <p class="p2"><br></p>
70 <p class="p3">set the height.</p>
71 <p class="p2"><br></p>
72 <p class="p3"><b>origin</b></p>
73 <p class="p2"><br></p>
74 <p class="p3">return the upper left corner as a Point.</p>
75 <p class="p2"><br></p>
76 <p class="p3"><b>corner</b></p>
77 <p class="p2"><br></p>
78 <p class="p3">return the lower right corner as a Point.</p>
79 <p class="p2"><br></p>
80 <p class="p3"><b>extent</b></p>
81 <p class="p2"><br></p>
82 <p class="p3">return a Point whose x value is the height and whose y value is the width.</p>
83 <p class="p2"><br></p>
84 <p class="p3"><b>leftTop</b></p>
85 <p class="p2"><br></p>
86 <p class="p3">return the upper left corner as a Point.</p>
87 <p class="p2"><br></p>
88 <p class="p3"><b>rightTop</b></p>
89 <p class="p2"><br></p>
90 <p class="p3">return the upper right corner as a Point.</p>
91 <p class="p2"><br></p>
92 <p class="p3"><b>leftBottom</b></p>
93 <p class="p2"><br></p>
94 <p class="p3">return the lower left corner as a Point.</p>
95 <p class="p2"><br></p>
96 <p class="p3"><b>rightBottom</b></p>
97 <p class="p2"><br></p>
98 <p class="p3">return the lower right corner as a Point.</p>
99 <p class="p2"><br></p>
100 <p class="p3"><b>moveBy(x, y)</b></p>
101 <p class="p2"><br></p>
102 <p class="p3">returns a new Rect which is offset by x and y.</p>
103 <p class="p2"><br></p>
104 <p class="p3"><b>moveTo(x, y)</b></p>
105 <p class="p2"><br></p>
106 <p class="p3">returns a new Rect whose upper left corner is moved to (x, y).</p>
107 <p class="p2"><br></p>
108 <p class="p3"><b>moveToPoint(aPoint)</b></p>
109 <p class="p2"><br></p>
110 <p class="p3">returns a new Rect whose upper left corner is moved to aPoint.</p>
111 <p class="p2"><br></p>
112 <p class="p3"><b>resizeBy(x, y)</b></p>
113 <p class="p2"><br></p>
114 <p class="p3">returns a new Rect whose dimensions have been changed by (x, y).</p>
115 <p class="p2"><br></p>
116 <p class="p3"><b>resizeTo(x, y)</b></p>
117 <p class="p2"><br></p>
118 <p class="p3">returns a new Rect whose dimensions are (x, y).</p>
119 <p class="p2"><br></p>
120 <p class="p3"><b>insetBy(x, y)</b></p>
121 <p class="p2"><br></p>
122 <p class="p3">returns a new Rect whose boundaries have been inset by (x, y). If only one argument is supplied, it will be used for both x and y.</p>
123 <p class="p2"><br></p>
124 <p class="p3"><b>insetAll(insetLeft, insetTop, insetRight, insetBottom)</b></p>
125 <p class="p2"><br></p>
126 <p class="p3">returns a new Rect whose boundaries have been inset by the given amounts.</p>
127 <p class="p2"><br></p>
128 <p class="p3"><b>contains(aPoint)</b></p>
129 <p class="p2"><br></p>
130 <p class="p3">answers whether aPoint is in the receiver.</p>
131 <p class="p2"><br></p>
132 <p class="p3"><b>union(aRect)</b></p>
133 <p class="p3"><b>| aRect</b></p>
134 <p class="p2"><br></p>
135 <p class="p3">returns a new Rect which contains the receiver and aRect.</p>
136 <p class="p2"><br></p>
137 <p class="p3"><b>sect(aRect)</b></p>
138 <p class="p3"><b>&amp; aRect</b></p>
139 <p class="p2"><br></p>
140 <p class="p3">returns a new Rect which is the intersection of the receiver and aRect.</p>
141 <p class="p2"><br></p>
142 <p class="p2"><br></p>
143 </body>
144 </html>