Extra "ports" of juce-based plugins using the distrho build system
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

387 lines
9.2KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5. <head>
  6. <title>protoplug: Class juce.Rectangle_int</title>
  7. <link rel="stylesheet" href="../ldoc.css" type="text/css" />
  8. </head>
  9. <body>
  10. <div id="container">
  11. <div id="product">
  12. <div id="product_logo"></div>
  13. <div id="product_name"><big><b></b></big></div>
  14. <div id="product_description"></div>
  15. </div> <!-- id="product" -->
  16. <div id="main">
  17. <!-- Menu -->
  18. <div id="navigation">
  19. <a href="http://osar.fr">
  20. <div class=osarlogo> </div>
  21. </a>
  22. <br/>
  23. <a href="http://osar.fr/protoplug">
  24. <h1>protoplug</h1>
  25. </a>
  26. <span class="proto_subtitle">Lua API reference</span>
  27. <ul>
  28. <li><a href="../index.html">Index</a></li>
  29. </ul>
  30. <h2>Contents</h2>
  31. <ul>
  32. <li><a href="#Constructors">Constructors</a></li>
  33. <li><a href="#Methods">Methods</a></li>
  34. <li><a href="#Fields">Fields</a></li>
  35. </ul>
  36. <h2>Classes</h2>
  37. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  38. <li><a href="../classes/juce.AffineTransform.html">juce.AffineTransform</a></li>
  39. <li><a href="../classes/juce.AudioFormatReader.html">juce.AudioFormatReader</a></li>
  40. <li><a href="../classes/juce.Colour.html">juce.Colour</a></li>
  41. <li><a href="../classes/juce.ColourGradient.html">juce.ColourGradient</a></li>
  42. <li><a href="../classes/juce.Component.html">juce.Component</a></li>
  43. <li><a href="../classes/juce.FillType.html">juce.FillType</a></li>
  44. <li><a href="../classes/juce.Font.html">juce.Font</a></li>
  45. <li><a href="../classes/juce.Graphics.html">juce.Graphics</a></li>
  46. <li><a href="../classes/juce.Image.html">juce.Image</a></li>
  47. <li><a href="../classes/juce.Justification.html">juce.Justification</a></li>
  48. <li><a href="../classes/juce.LagrangeInterpolator.html">juce.LagrangeInterpolator</a></li>
  49. <li><a href="../classes/juce.Line.html">juce.Line</a></li>
  50. <li><a href="../classes/juce.Path.html">juce.Path</a></li>
  51. <li><a href="../classes/juce.Point.html">juce.Point</a></li>
  52. <li><a href="../classes/juce.RectanglePlacement.html">juce.RectanglePlacement</a></li>
  53. <li><a href="../classes/juce.Rectangle_float.html">juce.Rectangle_float</a></li>
  54. <li><strong>juce.Rectangle_int</strong></li>
  55. </ul>
  56. <h2>Modules</h2>
  57. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  58. <li><a href="../modules/plugin.html">plugin</a></li>
  59. <li><a href="../modules/script.html">script</a></li>
  60. <li><a href="../modules/midi.html">midi</a></li>
  61. <li><a href="../modules/gui.html">gui</a></li>
  62. <li><a href="../modules/polyGen.html">polyGen</a></li>
  63. <li><a href="../modules/stereoFx.html">stereoFx</a></li>
  64. </ul>
  65. <h2>Examples</h2>
  66. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  67. <li><a href="../examples/classic-filter.lua.html">classic-filter.lua</a></li>
  68. <li><a href="../examples/sine-organ.lua.html">sine-organ.lua</a></li>
  69. <li><a href="../examples/midi-chordify.lua.html">midi-chordify.lua</a></li>
  70. <li><a href="../examples/sinemouse-demo.lua.html">sinemouse-demo.lua</a></li>
  71. <li><a href="../examples/soundfile-test.lua.html">soundfile-test.lua</a></li>
  72. </ul>
  73. </div>
  74. <div id="content">
  75. <h1>Class <code>juce.Rectangle_int</code></h1>
  76. <p>An integer (pixel-aligned) rectangle.</p>
  77. <p> Is converted to a <a href="http://www.juce.com/api/classRectangle.html">JUCE Rectangle</a></p>
  78. <h2><a href="#Constructors">Constructors</a></h2>
  79. <table class="function_list">
  80. <tr>
  81. <td class="name" nowrap><a href="#juce.Rectangle_int.Rectangle_int"><span class="proto_prefix">juce</span>.Rectangle_int (x, y, w, h)</a></td>
  82. <td class="summary">Constuctor with classical arguments.</td>
  83. </tr>
  84. <tr>
  85. <td class="name" nowrap><a href="#juce.Rectangle_int.Rectangle_int"><span class="proto_prefix">juce</span>.Rectangle_int (args)</a></td>
  86. <td class="summary">Constuctor with named arguments.</td>
  87. </tr>
  88. </table>
  89. <h2><a href="#Methods">Methods</a></h2>
  90. <table class="function_list">
  91. <tr>
  92. <td class="name" nowrap><a href="#juce.Rectangle_int:toFloat"><span class="proto_prefix">juce.Rectangle_int</span>:toFloat ()</a></td>
  93. <td class="summary">To float.</td>
  94. </tr>
  95. <tr>
  96. <td class="name" nowrap><a href="#juce.Rectangle_int:contains"><span class="proto_prefix">juce.Rectangle_int</span>:contains (point)</a></td>
  97. <td class="summary">Contains.</td>
  98. </tr>
  99. <tr>
  100. <td class="name" nowrap><a href="#juce.Rectangle_int:getR"><span class="proto_prefix">juce.Rectangle_int</span>:getR ()</a></td>
  101. <td class="summary">Get right.</td>
  102. </tr>
  103. <tr>
  104. <td class="name" nowrap><a href="#juce.Rectangle_int:getB"><span class="proto_prefix">juce.Rectangle_int</span>:getB ()</a></td>
  105. <td class="summary">Get bottom.</td>
  106. </tr>
  107. </table>
  108. <h2><a href="#Fields">Fields</a></h2>
  109. <table class="function_list">
  110. <tr>
  111. <td class="name" nowrap><a href="#juce.Rectangle_int.x"><span class="proto_prefix">juce.Rectangle_int</span>.x</a></td>
  112. <td class="summary">Left position</td>
  113. </tr>
  114. <tr>
  115. <td class="name" nowrap><a href="#juce.Rectangle_int.y"><span class="proto_prefix">juce.Rectangle_int</span>.y</a></td>
  116. <td class="summary">Top position</td>
  117. </tr>
  118. <tr>
  119. <td class="name" nowrap><a href="#juce.Rectangle_int.w"><span class="proto_prefix">juce.Rectangle_int</span>.w</a></td>
  120. <td class="summary">Width</td>
  121. </tr>
  122. <tr>
  123. <td class="name" nowrap><a href="#juce.Rectangle_int.h"><span class="proto_prefix">juce.Rectangle_int</span>.h</a></td>
  124. <td class="summary">Height</td>
  125. </tr>
  126. </table>
  127. <br/>
  128. <br/>
  129. <h2><a name="Constructors"></a>Constructors</h2>
  130. <dl class="function">
  131. <dt>
  132. <a name = "juce.Rectangle_int.Rectangle_int"></a>
  133. <strong><span class="proto_prefix">juce</span>.Rectangle_int (x, y, w, h)</strong>
  134. </dt>
  135. <dd>
  136. Constuctor with classical arguments.
  137. </ul>
  138. <h3>Parameters:</h3>
  139. <ul>
  140. <li><span class="parameter">x</span>
  141. left position
  142. </li>
  143. <li><span class="parameter">y</span>
  144. top position
  145. </li>
  146. <li><span class="parameter">w</span>
  147. width
  148. </li>
  149. <li><span class="parameter">h</span>
  150. height
  151. </li>
  152. </ul>
  153. </dd>
  154. <dt>
  155. <a name = "juce.Rectangle_int.Rectangle_int"></a>
  156. <strong><span class="proto_prefix">juce</span>.Rectangle_int (args)</strong>
  157. </dt>
  158. <dd>
  159. Constuctor with named arguments.
  160. Every field is optional.
  161. </ul>
  162. <h3>Parameters:</h3>
  163. <ul>
  164. <li><span class="parameter">args</span>
  165. <ul>
  166. <li><span class="parameter">x</span>
  167. left position
  168. </li>
  169. <li><span class="parameter">y</span>
  170. top position
  171. </li>
  172. <li><span class="parameter">w</span>
  173. width
  174. </li>
  175. <li><span class="parameter">h</span>
  176. height
  177. </li>
  178. </li></ul>
  179. </ul>
  180. </dd>
  181. </dl>
  182. <h2><a name="Methods"></a>Methods</h2>
  183. <dl class="function">
  184. <dt>
  185. <a name = "juce.Rectangle_int:toFloat"></a>
  186. <strong><span class="proto_prefix">juce.Rectangle_int</span>:toFloat ()</strong>
  187. </dt>
  188. <dd>
  189. To float.
  190. Convert to a sub-pixel rectangle
  191. </ul>
  192. <h3>Returns:</h3>
  193. <ol>
  194. <span class="types"><span class="type">juce.Rectangle_float</span></span>
  195. </ol>
  196. </dd>
  197. <dt>
  198. <a name = "juce.Rectangle_int:contains"></a>
  199. <strong><span class="proto_prefix">juce.Rectangle_int</span>:contains (point)</strong>
  200. </dt>
  201. <dd>
  202. Contains.
  203. </ul>
  204. <h3>Parameters:</h3>
  205. <ul>
  206. <li><span class="parameter">point</span>
  207. <span class="types"><a class="type" href="../classes/juce.Point.html#">juce.Point</a></span>
  208. </li>
  209. </ul>
  210. <h3>Returns:</h3>
  211. <ol>
  212. <span class="types"><span class="type">boolean</span></span>
  213. whether the rectangle contains the point
  214. </ol>
  215. </dd>
  216. <dt>
  217. <a name = "juce.Rectangle_int:getR"></a>
  218. <strong><span class="proto_prefix">juce.Rectangle_int</span>:getR ()</strong>
  219. </dt>
  220. <dd>
  221. Get right.
  222. </ul>
  223. <h3>Returns:</h3>
  224. <ol>
  225. the rectangle's right position on the X axis
  226. </ol>
  227. </dd>
  228. <dt>
  229. <a name = "juce.Rectangle_int:getB"></a>
  230. <strong><span class="proto_prefix">juce.Rectangle_int</span>:getB ()</strong>
  231. </dt>
  232. <dd>
  233. Get bottom.
  234. </ul>
  235. <h3>Returns:</h3>
  236. <ol>
  237. the rectangle's bottom position on the Y axis
  238. </ol>
  239. </dd>
  240. </dl>
  241. <h2><a name="Fields"></a>Fields</h2>
  242. <dl class="function">
  243. <dt>
  244. <a name = "juce.Rectangle_int.x"></a>
  245. <strong><span class="proto_prefix">juce.Rectangle_int</span>.x</strong>
  246. </dt>
  247. <dd>
  248. Left position
  249. </ul>
  250. </dd>
  251. <dt>
  252. <a name = "juce.Rectangle_int.y"></a>
  253. <strong><span class="proto_prefix">juce.Rectangle_int</span>.y</strong>
  254. </dt>
  255. <dd>
  256. Top position
  257. </ul>
  258. </dd>
  259. <dt>
  260. <a name = "juce.Rectangle_int.w"></a>
  261. <strong><span class="proto_prefix">juce.Rectangle_int</span>.w</strong>
  262. </dt>
  263. <dd>
  264. Width
  265. </ul>
  266. </dd>
  267. <dt>
  268. <a name = "juce.Rectangle_int.h"></a>
  269. <strong><span class="proto_prefix">juce.Rectangle_int</span>.h</strong>
  270. </dt>
  271. <dd>
  272. Height
  273. </ul>
  274. </dd>
  275. </dl>
  276. </div> <!-- id="content" -->
  277. </div> <!-- id="main" -->
  278. <div id="about">
  279. <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.2</a></i>
  280. </div> <!-- id="about" -->
  281. </div> <!-- id="container" -->
  282. </body>
  283. </html>