Masterarbeit Richard Stern. Flutter App, sich mit einem Bluetooth-Gerät verbindet und Berührungen auf einem Sensor visualisiert.
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.

TouchPainter-class.html 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="description" content="API docs for the TouchPainter class from the TouchPainter library, for the Dart programming language.">
  8. <title>TouchPainter class - TouchPainter library - Dart API</title>
  9. <!-- required because all the links are pseudo-absolute -->
  10. <base href="..">
  11. <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  12. <link rel="stylesheet" href="static-assets/github.css">
  13. <link rel="stylesheet" href="static-assets/styles.css">
  14. <link rel="icon" href="static-assets/favicon.png">
  15. </head>
  16. <body>
  17. <div id="overlay-under-drawer"></div>
  18. <header id="title">
  19. <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  20. <ol class="breadcrumbs gt-separated dark hidden-xs">
  21. <li><a href="index.html">touch_demonstrator</a></li>
  22. <li><a href="ui_home_TouchPainter/ui_home_TouchPainter-library.html">TouchPainter</a></li>
  23. <li class="self-crumb">TouchPainter class</li>
  24. </ol>
  25. <div class="self-name">TouchPainter</div>
  26. <form class="search navbar-right" role="search">
  27. <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  28. </form>
  29. </header>
  30. <main>
  31. <div class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
  32. <h5>TouchPainter library</h5>
  33. <ol>
  34. <li class="section-title"><a href="ui_home_TouchPainter/ui_home_TouchPainter-library.html#classes">Classes</a></li>
  35. <li><a href="ui_home_TouchPainter/TouchPainter-class.html">TouchPainter</a></li>
  36. <li class="section-title"><a href="ui_home_TouchPainter/ui_home_TouchPainter-library.html#functions">Functions</a></li>
  37. <li><a href="ui_home_TouchPainter/drawButton.html">drawButton</a></li>
  38. </ol>
  39. </div>
  40. <div class="col-xs-12 col-sm-9 col-md-8 main-content">
  41. <h1>TouchPainter class </h1>
  42. <section class="summary offset-anchor" id="constructors">
  43. <h2>Constructors</h2>
  44. <dl class="constructor-summary-list">
  45. <dt id="TouchPainter" class="callable">
  46. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/TouchPainter.html">TouchPainter</a></span><span class="signature">(<span class="parameter" id="-param-context"><span class="type-annotation">BuildContext</span> <span class="parameter-name">context</span>, </span> <span class="parameter" id="-param-touchCollection"><span class="type-annotation">Map<span class="signature">&lt;<wbr><span class="type-parameter"><a href="model_touchData/TouchData-class.html">TouchData</a></span>, <span class="type-parameter">Color</span>&gt;</span></span> <span class="parameter-name">touchCollection</span></span>)</span>
  47. </dt>
  48. <dd>
  49. </dd>
  50. </dl>
  51. </section>
  52. <section class="summary offset-anchor" id="instance-properties">
  53. <h2>Properties</h2>
  54. <dl class="properties">
  55. <dt id="context" class="property">
  56. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/context.html">context</a></span>
  57. <span class="signature">&#8596; BuildContext</span>
  58. </dt>
  59. <dd>
  60. <div class="features">read / write</div>
  61. </dd>
  62. <dt id="touchCollection" class="property">
  63. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/touchCollection.html">touchCollection</a></span>
  64. <span class="signature">&#8596; Map<span class="signature">&lt;<wbr><span class="type-parameter"><a href="model_touchData/TouchData-class.html">TouchData</a></span>, <span class="type-parameter">Color</span>&gt;</span></span>
  65. </dt>
  66. <dd>
  67. <div class="features">read / write</div>
  68. </dd>
  69. <dt id="width" class="property">
  70. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/width.html">width</a></span>
  71. <span class="signature">&#8596; double</span>
  72. </dt>
  73. <dd>
  74. <div class="features">read / write</div>
  75. </dd>
  76. <dt id="hashCode" class="property inherited">
  77. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/hashCode.html">hashCode</a></span>
  78. <span class="signature">&#8594; int</span>
  79. </dt>
  80. <dd class="inherited">
  81. The hash code for this object. <a href="ui_home_TouchPainter/TouchPainter/hashCode.html">[...]</a>
  82. <div class="features">read-only, inherited</div>
  83. </dd>
  84. <dt id="runtimeType" class="property inherited">
  85. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/runtimeType.html">runtimeType</a></span>
  86. <span class="signature">&#8594; Type</span>
  87. </dt>
  88. <dd class="inherited">
  89. A representation of the runtime type of the object.
  90. <div class="features">read-only, inherited</div>
  91. </dd>
  92. <dt id="semanticsBuilder" class="property inherited">
  93. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/semanticsBuilder.html">semanticsBuilder</a></span>
  94. <span class="signature">&#8594; SemanticsBuilderCallback</span>
  95. </dt>
  96. <dd class="inherited">
  97. Returns a function that builds semantic information for the picture drawn
  98. by this painter. <a href="ui_home_TouchPainter/TouchPainter/semanticsBuilder.html">[...]</a>
  99. <div class="features">read-only, inherited</div>
  100. </dd>
  101. </dl>
  102. </section>
  103. <section class="summary offset-anchor" id="instance-methods">
  104. <h2>Methods</h2>
  105. <dl class="callables">
  106. <dt id="paint" class="callable">
  107. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/paint.html">paint</a></span><span class="signature">(<wbr><span class="parameter" id="paint-param-canvas"><span class="type-annotation">Canvas</span> <span class="parameter-name">canvas</span>, </span> <span class="parameter" id="paint-param-size"><span class="type-annotation">Size</span> <span class="parameter-name">size</span></span>)
  108. <span class="returntype parameter">&#8594; void</span>
  109. </span>
  110. </dt>
  111. <dd>
  112. Called whenever the object needs to paint. The given <code>Canvas</code> has its
  113. coordinate space configured such that the origin is at the top left of the
  114. box. The area of the box is the size of the <code>size</code> argument. <a href="ui_home_TouchPainter/TouchPainter/paint.html">[...]</a>
  115. </dd>
  116. <dt id="shouldRepaint" class="callable">
  117. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/shouldRepaint.html">shouldRepaint</a></span><span class="signature">(<wbr><span class="parameter" id="shouldRepaint-param-oldDelegate"><span>covariant</span> <span class="type-annotation">CustomPainter</span> <span class="parameter-name">oldDelegate</span></span>)
  118. <span class="returntype parameter">&#8594; bool</span>
  119. </span>
  120. </dt>
  121. <dd>
  122. Called whenever a new instance of the custom painter delegate class is
  123. provided to the <code>RenderCustomPaint</code> object, or any time that a new
  124. <code>CustomPaint</code> object is created with a new instance of the custom painter
  125. delegate class (which amounts to the same thing, because the latter is
  126. implemented in terms of the former). <a href="ui_home_TouchPainter/TouchPainter/shouldRepaint.html">[...]</a>
  127. </dd>
  128. <dt id="addListener" class="callable inherited">
  129. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/addListener.html">addListener</a></span><span class="signature">(<wbr><span class="parameter" id="addListener-param-listener"><span class="type-annotation">VoidCallback</span> <span class="parameter-name">listener</span></span>)
  130. <span class="returntype parameter">&#8594; void</span>
  131. </span>
  132. </dt>
  133. <dd class="inherited">
  134. Register a closure to be notified when it is time to repaint. <a href="ui_home_TouchPainter/TouchPainter/addListener.html">[...]</a>
  135. <div class="features">inherited</div>
  136. </dd>
  137. <dt id="hitTest" class="callable inherited">
  138. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/hitTest.html">hitTest</a></span><span class="signature">(<wbr><span class="parameter" id="hitTest-param-position"><span class="type-annotation">Offset</span> <span class="parameter-name">position</span></span>)
  139. <span class="returntype parameter">&#8594; bool</span>
  140. </span>
  141. </dt>
  142. <dd class="inherited">
  143. Called whenever a hit test is being performed on an object that is using
  144. this custom paint delegate. <a href="ui_home_TouchPainter/TouchPainter/hitTest.html">[...]</a>
  145. <div class="features">inherited</div>
  146. </dd>
  147. <dt id="noSuchMethod" class="callable inherited">
  148. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation">Invocation</span> <span class="parameter-name">invocation</span></span>)
  149. <span class="returntype parameter">&#8594; dynamic</span>
  150. </span>
  151. </dt>
  152. <dd class="inherited">
  153. Invoked when a non-existent method or property is accessed. <a href="ui_home_TouchPainter/TouchPainter/noSuchMethod.html">[...]</a>
  154. <div class="features">inherited</div>
  155. </dd>
  156. <dt id="removeListener" class="callable inherited">
  157. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/removeListener.html">removeListener</a></span><span class="signature">(<wbr><span class="parameter" id="removeListener-param-listener"><span class="type-annotation">VoidCallback</span> <span class="parameter-name">listener</span></span>)
  158. <span class="returntype parameter">&#8594; void</span>
  159. </span>
  160. </dt>
  161. <dd class="inherited">
  162. Remove a previously registered closure from the list of closures that the
  163. object notifies when it is time to repaint. <a href="ui_home_TouchPainter/TouchPainter/removeListener.html">[...]</a>
  164. <div class="features">inherited</div>
  165. </dd>
  166. <dt id="shouldRebuildSemantics" class="callable inherited">
  167. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/shouldRebuildSemantics.html">shouldRebuildSemantics</a></span><span class="signature">(<wbr><span class="parameter" id="shouldRebuildSemantics-param-oldDelegate"><span>covariant</span> <span class="type-annotation">CustomPainter</span> <span class="parameter-name">oldDelegate</span></span>)
  168. <span class="returntype parameter">&#8594; bool</span>
  169. </span>
  170. </dt>
  171. <dd class="inherited">
  172. Called whenever a new instance of the custom painter delegate class is
  173. provided to the <code>RenderCustomPaint</code> object, or any time that a new
  174. <code>CustomPaint</code> object is created with a new instance of the custom painter
  175. delegate class (which amounts to the same thing, because the latter is
  176. implemented in terms of the former). <a href="ui_home_TouchPainter/TouchPainter/shouldRebuildSemantics.html">[...]</a>
  177. <div class="features">inherited</div>
  178. </dd>
  179. <dt id="toString" class="callable inherited">
  180. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/toString.html">toString</a></span><span class="signature">(<wbr>)
  181. <span class="returntype parameter">&#8594; String</span>
  182. </span>
  183. </dt>
  184. <dd class="inherited">
  185. Returns a string representation of this object.
  186. <div class="features">inherited</div>
  187. </dd>
  188. </dl>
  189. </section>
  190. <section class="summary offset-anchor inherited" id="operators">
  191. <h2>Operators</h2>
  192. <dl class="callables">
  193. <dt id="operator ==" class="callable inherited">
  194. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation">dynamic</span> <span class="parameter-name">other</span></span>)
  195. <span class="returntype parameter">&#8594; bool</span>
  196. </span>
  197. </dt>
  198. <dd class="inherited">
  199. The equality operator. <a href="ui_home_TouchPainter/TouchPainter/operator_equals.html">[...]</a>
  200. <div class="features">inherited</div>
  201. </dd>
  202. </dl>
  203. </section>
  204. <section class="summary offset-anchor" id="static-properties">
  205. <h2>Static Properties</h2>
  206. <dl class="properties">
  207. <dt id="buttonPressed" class="property">
  208. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/buttonPressed.html">buttonPressed</a></span>
  209. <span class="signature">&#8596; List<span class="signature">&lt;<wbr><span class="type-parameter">bool</span>&gt;</span></span>
  210. </dt>
  211. <dd>
  212. <div class="features">read / write</div>
  213. </dd>
  214. <dt id="buttonReleased" class="property">
  215. <span class="name"><a href="ui_home_TouchPainter/TouchPainter/buttonReleased.html">buttonReleased</a></span>
  216. <span class="signature">&#8596; List<span class="signature">&lt;<wbr><span class="type-parameter">bool</span>&gt;</span></span>
  217. </dt>
  218. <dd>
  219. <div class="features">read / write</div>
  220. </dd>
  221. </dl>
  222. </section>
  223. </div> <!-- /.main-content -->
  224. <div class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
  225. <ol>
  226. <li class="section-title"><a href="ui_home_TouchPainter/TouchPainter-class.html#constructors">Constructors</a></li>
  227. <li><a href="ui_home_TouchPainter/TouchPainter/TouchPainter.html">TouchPainter</a></li>
  228. <li class="section-title">
  229. <a href="ui_home_TouchPainter/TouchPainter-class.html#instance-properties">Properties</a>
  230. </li>
  231. <li><a href="ui_home_TouchPainter/TouchPainter/context.html">context</a></li>
  232. <li><a href="ui_home_TouchPainter/TouchPainter/touchCollection.html">touchCollection</a></li>
  233. <li><a href="ui_home_TouchPainter/TouchPainter/width.html">width</a></li>
  234. <li class="inherited"><a href="ui_home_TouchPainter/TouchPainter/hashCode.html">hashCode</a></li>
  235. <li class="inherited"><a href="ui_home_TouchPainter/TouchPainter/runtimeType.html">runtimeType</a></li>
  236. <li class="inherited"><a href="ui_home_TouchPainter/TouchPainter/semanticsBuilder.html">semanticsBuilder</a></li>
  237. <li class="section-title"><a href="ui_home_TouchPainter/TouchPainter-class.html#instance-methods">Methods</a></li>
  238. <li><a href="ui_home_TouchPainter/TouchPainter/paint.html">paint</a></li>
  239. <li><a href="ui_home_TouchPainter/TouchPainter/shouldRepaint.html">shouldRepaint</a></li>
  240. <li class="inherited"><a href="ui_home_TouchPainter/TouchPainter/addListener.html">addListener</a></li>
  241. <li class="inherited"><a href="ui_home_TouchPainter/TouchPainter/hitTest.html">hitTest</a></li>
  242. <li class="inherited"><a href="ui_home_TouchPainter/TouchPainter/noSuchMethod.html">noSuchMethod</a></li>
  243. <li class="inherited"><a href="ui_home_TouchPainter/TouchPainter/removeListener.html">removeListener</a></li>
  244. <li class="inherited"><a href="ui_home_TouchPainter/TouchPainter/shouldRebuildSemantics.html">shouldRebuildSemantics</a></li>
  245. <li class="inherited"><a href="ui_home_TouchPainter/TouchPainter/toString.html">toString</a></li>
  246. <li class="section-title inherited"><a href="ui_home_TouchPainter/TouchPainter-class.html#operators">Operators</a></li>
  247. <li class="inherited"><a href="ui_home_TouchPainter/TouchPainter/operator_equals.html">operator ==</a></li>
  248. <li class="section-title"><a href="ui_home_TouchPainter/TouchPainter-class.html#static-properties">Static properties</a></li>
  249. <li><a href="ui_home_TouchPainter/TouchPainter/buttonPressed.html">buttonPressed</a></li>
  250. <li><a href="ui_home_TouchPainter/TouchPainter/buttonReleased.html">buttonReleased</a></li>
  251. </ol>
  252. </div><!--/.sidebar-offcanvas-->
  253. </main>
  254. <footer>
  255. <span class="no-break">
  256. touch_demonstrator 1.0.0+1
  257. </span>
  258. </footer>
  259. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  260. <script src="static-assets/typeahead.bundle.min.js"></script>
  261. <script src="static-assets/highlight.pack.js"></script>
  262. <script src="static-assets/URI.js"></script>
  263. <script src="static-assets/script.js"></script>
  264. </body>
  265. </html>