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.

250 lines
7.7KB

  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.Component</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="#Methods">Methods</a></li>
  33. </ul>
  34. <h2>Classes</h2>
  35. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  36. <li><a href="../classes/juce.AffineTransform.html">juce.AffineTransform</a></li>
  37. <li><a href="../classes/juce.AudioFormatReader.html">juce.AudioFormatReader</a></li>
  38. <li><a href="../classes/juce.Colour.html">juce.Colour</a></li>
  39. <li><a href="../classes/juce.ColourGradient.html">juce.ColourGradient</a></li>
  40. <li><strong>juce.Component</strong></li>
  41. <li><a href="../classes/juce.FillType.html">juce.FillType</a></li>
  42. <li><a href="../classes/juce.Font.html">juce.Font</a></li>
  43. <li><a href="../classes/juce.Graphics.html">juce.Graphics</a></li>
  44. <li><a href="../classes/juce.Image.html">juce.Image</a></li>
  45. <li><a href="../classes/juce.Justification.html">juce.Justification</a></li>
  46. <li><a href="../classes/juce.LagrangeInterpolator.html">juce.LagrangeInterpolator</a></li>
  47. <li><a href="../classes/juce.Line.html">juce.Line</a></li>
  48. <li><a href="../classes/juce.Path.html">juce.Path</a></li>
  49. <li><a href="../classes/juce.Point.html">juce.Point</a></li>
  50. <li><a href="../classes/juce.RectanglePlacement.html">juce.RectanglePlacement</a></li>
  51. <li><a href="../classes/juce.Rectangle_float.html">juce.Rectangle_float</a></li>
  52. <li><a href="../classes/juce.Rectangle_int.html">juce.Rectangle_int</a></li>
  53. </ul>
  54. <h2>Modules</h2>
  55. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  56. <li><a href="../modules/plugin.html">plugin</a></li>
  57. <li><a href="../modules/script.html">script</a></li>
  58. <li><a href="../modules/midi.html">midi</a></li>
  59. <li><a href="../modules/gui.html">gui</a></li>
  60. <li><a href="../modules/polyGen.html">polyGen</a></li>
  61. <li><a href="../modules/stereoFx.html">stereoFx</a></li>
  62. </ul>
  63. <h2>Examples</h2>
  64. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  65. <li><a href="../examples/classic-filter.lua.html">classic-filter.lua</a></li>
  66. <li><a href="../examples/sine-organ.lua.html">sine-organ.lua</a></li>
  67. <li><a href="../examples/midi-chordify.lua.html">midi-chordify.lua</a></li>
  68. <li><a href="../examples/sinemouse-demo.lua.html">sinemouse-demo.lua</a></li>
  69. <li><a href="../examples/soundfile-test.lua.html">soundfile-test.lua</a></li>
  70. </ul>
  71. </div>
  72. <div id="content">
  73. <h1>Class <code>juce.Component</code></h1>
  74. <p>JUCE Component.</p>
  75. <p> Is a pointer to a <a href="http://www.juce.com/api/classComponent.html">JUCE Component</a></p>
  76. <p> As of now, components can't be created by protoplug scripts. This is mainly
  77. for accessing the custom GUI component using <a href="../modules/gui.html#getComponent">gui.getComponent</a>.</p>
  78. <h2><a href="#Methods">Methods</a></h2>
  79. <table class="function_list">
  80. <tr>
  81. <td class="name" nowrap><a href="#juce.Component:repaint"><span class="proto_prefix">juce.Component</span>:repaint ()</a></td>
  82. <td class="summary">Request total repaint.</td>
  83. </tr>
  84. <tr>
  85. <td class="name" nowrap><a href="#juce.Component:repaint"><span class="proto_prefix">juce.Component</span>:repaint (area)</a></td>
  86. <td class="summary">Request partial repaint.</td>
  87. </tr>
  88. <tr>
  89. <td class="name" nowrap><a href="#juce.Component:repaint"><span class="proto_prefix">juce.Component</span>:repaint (x, y, width, height)</a></td>
  90. <td class="summary">Request partial repaint.</td>
  91. </tr>
  92. <tr>
  93. <td class="name" nowrap><a href="#juce.Component:createComponentSnapshot"><span class="wrapman"><span class="proto_prefix">juce.Component</span>:createComponentSnapshot<br> (areaToGrab[, clipImageToComponentBounds=true[, scaleFactor=1]])</span></a></td>
  94. <td class="summary">Create component snapshot.</td>
  95. </tr>
  96. </table>
  97. <br/>
  98. <br/>
  99. <h2><a name="Methods"></a>Methods</h2>
  100. <dl class="function">
  101. <dt>
  102. <a name = "juce.Component:repaint"></a>
  103. <strong><span class="proto_prefix">juce.Component</span>:repaint ()</strong>
  104. </dt>
  105. <dd>
  106. Request total repaint.
  107. Tell the operating system that the component is "dirty" and needs to be redrawn.
  108. The component's paint method will be called asynchronously (<a href="../modules/gui.html#paint">gui.paint</a>)
  109. </ul>
  110. </dd>
  111. <dt>
  112. <a name = "juce.Component:repaint"></a>
  113. <strong><span class="proto_prefix">juce.Component</span>:repaint (area)</strong>
  114. </dt>
  115. <dd>
  116. Request partial repaint.
  117. Tell the operating system that a portion of the component is "dirty" and needs to be redrawn.
  118. The component's paint method will be called asynchronously (<a href="../modules/gui.html#paint">gui.paint</a>). The dirty region will be accessible
  119. with Graphics.getClipBounds().
  120. </ul>
  121. <h3>Parameters:</h3>
  122. <ul>
  123. <li><span class="parameter">area</span>
  124. <span class="types"><span class="type">juce.Rectangle_int</span></span>
  125. the region needing the be redrawn
  126. </li>
  127. </ul>
  128. </dd>
  129. <dt>
  130. <a name = "juce.Component:repaint"></a>
  131. <strong><span class="proto_prefix">juce.Component</span>:repaint (x, y, width, height)</strong>
  132. </dt>
  133. <dd>
  134. Request partial repaint.
  135. Tell the operating system that a portion of the component is "dirty" and needs to be redrawn.
  136. The component's paint method will be called asynchronously (<a href="../modules/gui.html#paint">gui.paint</a>). The dirty region will be accessible
  137. with Graphics.getClipBounds().
  138. </ul>
  139. <h3>Parameters:</h3>
  140. <ul>
  141. <li><span class="parameter">x</span>
  142. the region needing the be redrawn
  143. </li>
  144. <li><span class="parameter">y</span>
  145. the region needing the be redrawn
  146. </li>
  147. <li><span class="parameter">width</span>
  148. the region needing the be redrawn
  149. </li>
  150. <li><span class="parameter">height</span>
  151. the region needing the be redrawn
  152. </li>
  153. </ul>
  154. </dd>
  155. <dt>
  156. <a name = "juce.Component:createComponentSnapshot"></a>
  157. <strong><span class="wrapman"><span class="proto_prefix">juce.Component</span>:createComponentSnapshot<br> (areaToGrab[, clipImageToComponentBounds=true[, scaleFactor=1]])</span></strong>
  158. </dt>
  159. <dd>
  160. Create component snapshot.
  161. Paint the component into a virtual buffer and return it as an image.
  162. </ul>
  163. <h3>Parameters:</h3>
  164. <ul>
  165. <li><span class="parameter">areaToGrab</span>
  166. <span class="types"><span class="type">juce.Rectangle_int</span></span>
  167. the region to the be drawn
  168. </li>
  169. <li><span class="parameter">clipImageToComponentBounds</span>
  170. (<em>default</em> true)
  171. </li>
  172. <li><span class="parameter">scaleFactor</span>
  173. (<em>default</em> 1)
  174. </li>
  175. </ul>
  176. <h3>Returns:</h3>
  177. <ol>
  178. <span class="types"><a class="type" href="../classes/juce.Image.html#">juce.Image</a></span>
  179. </ol>
  180. </dd>
  181. </dl>
  182. </div> <!-- id="content" -->
  183. </div> <!-- id="main" -->
  184. <div id="about">
  185. <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.2</a></i>
  186. </div> <!-- id="about" -->
  187. </div> <!-- id="container" -->
  188. </body>
  189. </html>