fxruby 1.6.39-x64-mingw32 → 1.6.44-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (358) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +3 -14
  3. data/.yardopts +1 -1
  4. data/Gemfile +4 -5
  5. data/History.md +1345 -22
  6. data/README.rdoc +5 -5
  7. data/Rakefile +100 -68
  8. data/appveyor.yml +11 -16
  9. data/docs/Fox.html +11184 -0
  10. data/docs/Fox/Canvas.html +141 -0
  11. data/docs/Fox/Canvas/CanvasError.html +124 -0
  12. data/docs/Fox/Canvas/CircleShape.html +477 -0
  13. data/docs/Fox/Canvas/ImageShape.html +477 -0
  14. data/docs/Fox/Canvas/LineShape.html +1005 -0
  15. data/docs/Fox/Canvas/PolygonShape.html +145 -0
  16. data/docs/Fox/Canvas/RectangleShape.html +439 -0
  17. data/docs/Fox/Canvas/SelectionPolicy.html +352 -0
  18. data/docs/Fox/Canvas/Shape.html +1955 -0
  19. data/docs/Fox/Canvas/ShapeCanvas.html +2031 -0
  20. data/docs/Fox/Canvas/ShapeGroup.html +527 -0
  21. data/docs/Fox/Canvas/SingleSelectionPolicy.html +291 -0
  22. data/docs/Fox/Canvas/TextShape.html +609 -0
  23. data/docs/Fox/FTNonModal.html +550 -0
  24. data/docs/Fox/FX4Splitter.html +1336 -0
  25. data/docs/Fox/FX7Segment.html +1010 -0
  26. data/docs/Fox/FXAccelTable.html +715 -0
  27. data/docs/Fox/FXApp.html +7998 -0
  28. data/docs/Fox/FXArc.html +562 -0
  29. data/docs/Fox/FXArrowButton.html +865 -0
  30. data/docs/Fox/FXBMPIcon.html +450 -0
  31. data/docs/Fox/FXBMPImage.html +434 -0
  32. data/docs/Fox/FXBitmap.html +1362 -0
  33. data/docs/Fox/FXBitmapFrame.html +595 -0
  34. data/docs/Fox/FXBitmapView.html +1451 -0
  35. data/docs/Fox/FXButton.html +534 -0
  36. data/docs/Fox/FXCURCursor.html +261 -0
  37. data/docs/Fox/FXCalendar.html +880 -0
  38. data/docs/Fox/FXCanvas.html +311 -0
  39. data/docs/Fox/FXCheckButton.html +949 -0
  40. data/docs/Fox/FXChoiceBox.html +472 -0
  41. data/docs/Fox/FXColor.html +1519 -0
  42. data/docs/Fox/FXColorBar.html +759 -0
  43. data/docs/Fox/FXColorDialog.html +591 -0
  44. data/docs/Fox/FXColorItem.html +323 -0
  45. data/docs/Fox/FXColorList.html +712 -0
  46. data/docs/Fox/FXColorRing.html +817 -0
  47. data/docs/Fox/FXColorSelector.html +796 -0
  48. data/docs/Fox/FXColorWell.html +850 -0
  49. data/docs/Fox/FXColorWheel.html +770 -0
  50. data/docs/Fox/FXComboBox.html +2939 -0
  51. data/docs/Fox/FXComboTableItem.html +544 -0
  52. data/docs/Fox/FXCommand.html +526 -0
  53. data/docs/Fox/FXComposite.html +433 -0
  54. data/docs/Fox/FXCursor.html +779 -0
  55. data/docs/Fox/FXDC.html +5231 -0
  56. data/docs/Fox/FXDCPrint.html +696 -0
  57. data/docs/Fox/FXDCWindow.html +358 -0
  58. data/docs/Fox/FXDataTarget.html +573 -0
  59. data/docs/Fox/FXDebugTarget.html +305 -0
  60. data/docs/Fox/FXDelegator.html +305 -0
  61. data/docs/Fox/FXDial.html +1133 -0
  62. data/docs/Fox/FXDialogBox.html +413 -0
  63. data/docs/Fox/FXDict.html +1063 -0
  64. data/docs/Fox/FXDirBox.html +752 -0
  65. data/docs/Fox/FXDirDialog.html +914 -0
  66. data/docs/Fox/FXDirItem.html +989 -0
  67. data/docs/Fox/FXDirList.html +1554 -0
  68. data/docs/Fox/FXDirSelector.html +995 -0
  69. data/docs/Fox/FXDockBar.html +1451 -0
  70. data/docs/Fox/FXDockHandler.html +468 -0
  71. data/docs/Fox/FXDockSite.html +678 -0
  72. data/docs/Fox/FXDockTitle.html +606 -0
  73. data/docs/Fox/FXDocument.html +536 -0
  74. data/docs/Fox/FXDragCorner.html +440 -0
  75. data/docs/Fox/FXDrawable.html +478 -0
  76. data/docs/Fox/FXDriveBox.html +746 -0
  77. data/docs/Fox/FXEvent.html +1736 -0
  78. data/docs/Fox/FXExtentd.html +1374 -0
  79. data/docs/Fox/FXExtentf.html +1374 -0
  80. data/docs/Fox/FXFileAssoc.html +850 -0
  81. data/docs/Fox/FXFileDialog.html +2688 -0
  82. data/docs/Fox/FXFileDict.html +1058 -0
  83. data/docs/Fox/FXFileItem.html +1141 -0
  84. data/docs/Fox/FXFileList.html +2259 -0
  85. data/docs/Fox/FXFileSelector.html +2529 -0
  86. data/docs/Fox/FXFileStream.html +503 -0
  87. data/docs/Fox/FXFoldingItem.html +2822 -0
  88. data/docs/Fox/FXFoldingList.html +5189 -0
  89. data/docs/Fox/FXFont.html +2998 -0
  90. data/docs/Fox/FXFontDesc.html +710 -0
  91. data/docs/Fox/FXFontDialog.html +420 -0
  92. data/docs/Fox/FXFontSelector.html +576 -0
  93. data/docs/Fox/FXFrame.html +1012 -0
  94. data/docs/Fox/FXGIFCursor.html +337 -0
  95. data/docs/Fox/FXGIFIcon.html +450 -0
  96. data/docs/Fox/FXGIFImage.html +434 -0
  97. data/docs/Fox/FXGLCanvas.html +700 -0
  98. data/docs/Fox/FXGLCone.html +785 -0
  99. data/docs/Fox/FXGLContext.html +649 -0
  100. data/docs/Fox/FXGLCube.html +703 -0
  101. data/docs/Fox/FXGLCylinder.html +791 -0
  102. data/docs/Fox/FXGLGroup.html +1385 -0
  103. data/docs/Fox/FXGLLine.html +653 -0
  104. data/docs/Fox/FXGLObject.html +759 -0
  105. data/docs/Fox/FXGLPoint.html +561 -0
  106. data/docs/Fox/FXGLShape.html +714 -0
  107. data/docs/Fox/FXGLSphere.html +626 -0
  108. data/docs/Fox/FXGLViewer.html +3506 -0
  109. data/docs/Fox/FXGLVisual.html +2147 -0
  110. data/docs/Fox/FXGradient.html +562 -0
  111. data/docs/Fox/FXGradientBar.html +2479 -0
  112. data/docs/Fox/FXGroupBox.html +688 -0
  113. data/docs/Fox/FXHeader.html +3040 -0
  114. data/docs/Fox/FXHeaderItem.html +1353 -0
  115. data/docs/Fox/FXHiliteStyle.html +804 -0
  116. data/docs/Fox/FXHorizontalFrame.html +359 -0
  117. data/docs/Fox/FXHorizontalSeparator.html +349 -0
  118. data/docs/Fox/FXICOIcon.html +450 -0
  119. data/docs/Fox/FXICOImage.html +434 -0
  120. data/docs/Fox/FXIcon.html +384 -0
  121. data/docs/Fox/FXIconDict.html +752 -0
  122. data/docs/Fox/FXIconItem.html +1518 -0
  123. data/docs/Fox/FXIconList.html +4676 -0
  124. data/docs/Fox/FXIconSource.html +963 -0
  125. data/docs/Fox/FXId.html +712 -0
  126. data/docs/Fox/FXImage.html +2328 -0
  127. data/docs/Fox/FXImageFrame.html +489 -0
  128. data/docs/Fox/FXImageView.html +504 -0
  129. data/docs/Fox/FXInputDialog.html +894 -0
  130. data/docs/Fox/FXIrb.html +942 -0
  131. data/docs/Fox/FXJPGIcon.html +607 -0
  132. data/docs/Fox/FXJPGImage.html +591 -0
  133. data/docs/Fox/FXKnob.html +1048 -0
  134. data/docs/Fox/FXLabel.html +1013 -0
  135. data/docs/Fox/FXLight.html +920 -0
  136. data/docs/Fox/FXList.html +3717 -0
  137. data/docs/Fox/FXListBox.html +2518 -0
  138. data/docs/Fox/FXListItem.html +1459 -0
  139. data/docs/Fox/FXMDIChild.html +2175 -0
  140. data/docs/Fox/FXMDIClient.html +781 -0
  141. data/docs/Fox/FXMDIDeleteButton.html +334 -0
  142. data/docs/Fox/FXMDIMaximizeButton.html +334 -0
  143. data/docs/Fox/FXMDIMenu.html +335 -0
  144. data/docs/Fox/FXMDIMinimizeButton.html +334 -0
  145. data/docs/Fox/FXMDIRestoreButton.html +334 -0
  146. data/docs/Fox/FXMDIWindowButton.html +334 -0
  147. data/docs/Fox/FXMainWindow.html +337 -0
  148. data/docs/Fox/FXMaterial.html +570 -0
  149. data/docs/Fox/FXMatrix.html +734 -0
  150. data/docs/Fox/FXMemoryBuffer.html +472 -0
  151. data/docs/Fox/FXMemoryStream.html +632 -0
  152. data/docs/Fox/FXMenuBar.html +347 -0
  153. data/docs/Fox/FXMenuButton.html +829 -0
  154. data/docs/Fox/FXMenuCaption.html +1080 -0
  155. data/docs/Fox/FXMenuCascade.html +388 -0
  156. data/docs/Fox/FXMenuCheck.html +721 -0
  157. data/docs/Fox/FXMenuCommand.html +400 -0
  158. data/docs/Fox/FXMenuPane.html +333 -0
  159. data/docs/Fox/FXMenuRadio.html +721 -0
  160. data/docs/Fox/FXMenuSeparator.html +440 -0
  161. data/docs/Fox/FXMenuTitle.html +405 -0
  162. data/docs/Fox/FXMessageBox.html +658 -0
  163. data/docs/Fox/FXObject.html +545 -0
  164. data/docs/Fox/FXOption.html +491 -0
  165. data/docs/Fox/FXOptionMenu.html +885 -0
  166. data/docs/Fox/FXPCXIcon.html +450 -0
  167. data/docs/Fox/FXPCXImage.html +434 -0
  168. data/docs/Fox/FXPNGIcon.html +524 -0
  169. data/docs/Fox/FXPNGImage.html +508 -0
  170. data/docs/Fox/FXPPMIcon.html +450 -0
  171. data/docs/Fox/FXPPMImage.html +373 -0
  172. data/docs/Fox/FXPSBounds.html +500 -0
  173. data/docs/Fox/FXPacker.html +1229 -0
  174. data/docs/Fox/FXPicker.html +345 -0
  175. data/docs/Fox/FXPopup.html +1099 -0
  176. data/docs/Fox/FXPrintDialog.html +485 -0
  177. data/docs/Fox/FXPrinter.html +1330 -0
  178. data/docs/Fox/FXProgressBar.html +1150 -0
  179. data/docs/Fox/FXProgressDialog.html +715 -0
  180. data/docs/Fox/FXPseudoKeyboard.html +428 -0
  181. data/docs/Fox/FXPseudoMouse.html +800 -0
  182. data/docs/Fox/FXPseudoTarget.html +472 -0
  183. data/docs/Fox/FXQuatd.html +1377 -0
  184. data/docs/Fox/FXQuatf.html +1392 -0
  185. data/docs/Fox/FXRGBIcon.html +450 -0
  186. data/docs/Fox/FXRGBImage.html +434 -0
  187. data/docs/Fox/FXRadioButton.html +885 -0
  188. data/docs/Fox/FXRanged.html +1522 -0
  189. data/docs/Fox/FXRangef.html +1522 -0
  190. data/docs/Fox/FXRealSlider.html +1187 -0
  191. data/docs/Fox/FXRealSpinner.html +2175 -0
  192. data/docs/Fox/FXRecentFiles.html +841 -0
  193. data/docs/Fox/FXRectangle.html +802 -0
  194. data/docs/Fox/FXRegion.html +841 -0
  195. data/docs/Fox/FXRegistry.html +682 -0
  196. data/docs/Fox/FXReplaceDialog.html +648 -0
  197. data/docs/Fox/FXRootWindow.html +312 -0
  198. data/docs/Fox/FXRuler.html +2000 -0
  199. data/docs/Fox/FXRulerView.html +3997 -0
  200. data/docs/Fox/FXScintilla.html +49117 -0
  201. data/docs/Fox/FXScrollArea.html +1363 -0
  202. data/docs/Fox/FXScrollBar.html +1019 -0
  203. data/docs/Fox/FXScrollCorner.html +290 -0
  204. data/docs/Fox/FXScrollPane.html +499 -0
  205. data/docs/Fox/FXScrollWindow.html +409 -0
  206. data/docs/Fox/FXSearchDialog.html +382 -0
  207. data/docs/Fox/FXSegment.html +422 -0
  208. data/docs/Fox/FXSeparator.html +402 -0
  209. data/docs/Fox/FXSettings.html +1861 -0
  210. data/docs/Fox/FXShell.html +233 -0
  211. data/docs/Fox/FXShutter.html +472 -0
  212. data/docs/Fox/FXShutterItem.html +669 -0
  213. data/docs/Fox/FXSize.html +592 -0
  214. data/docs/Fox/FXSlider.html +1129 -0
  215. data/docs/Fox/FXSphered.html +906 -0
  216. data/docs/Fox/FXSpheref.html +906 -0
  217. data/docs/Fox/FXSpinner.html +2102 -0
  218. data/docs/Fox/FXSplashScreen.html +497 -0
  219. data/docs/Fox/FXSplashWindow.html +494 -0
  220. data/docs/Fox/FXSplitter.html +643 -0
  221. data/docs/Fox/FXSpring.html +517 -0
  222. data/docs/Fox/FXStatusBar.html +593 -0
  223. data/docs/Fox/FXStatusLine.html +754 -0
  224. data/docs/Fox/FXStream.html +1372 -0
  225. data/docs/Fox/FXStreamAllocError.html +148 -0
  226. data/docs/Fox/FXStreamEndError.html +148 -0
  227. data/docs/Fox/FXStreamError.html +259 -0
  228. data/docs/Fox/FXStreamFailureError.html +148 -0
  229. data/docs/Fox/FXStreamFormatError.html +148 -0
  230. data/docs/Fox/FXStreamFullError.html +148 -0
  231. data/docs/Fox/FXStreamNoReadError.html +148 -0
  232. data/docs/Fox/FXStreamNoWriteError.html +148 -0
  233. data/docs/Fox/FXStreamUnknownError.html +148 -0
  234. data/docs/Fox/FXStringDict.html +552 -0
  235. data/docs/Fox/FXSwitcher.html +619 -0
  236. data/docs/Fox/FXTGAIcon.html +450 -0
  237. data/docs/Fox/FXTGAImage.html +434 -0
  238. data/docs/Fox/FXTIFIcon.html +604 -0
  239. data/docs/Fox/FXTIFImage.html +588 -0
  240. data/docs/Fox/FXTabBar.html +644 -0
  241. data/docs/Fox/FXTabBook.html +373 -0
  242. data/docs/Fox/FXTabItem.html +478 -0
  243. data/docs/Fox/FXTable.html +10107 -0
  244. data/docs/Fox/FXTableItem.html +2195 -0
  245. data/docs/Fox/FXTablePos.html +360 -0
  246. data/docs/Fox/FXTableRange.html +360 -0
  247. data/docs/Fox/FXText.html +6870 -0
  248. data/docs/Fox/FXTextChange.html +492 -0
  249. data/docs/Fox/FXTextField.html +2016 -0
  250. data/docs/Fox/FXToggleButton.html +844 -0
  251. data/docs/Fox/FXToolBar.html +452 -0
  252. data/docs/Fox/FXToolBarGrip.html +584 -0
  253. data/docs/Fox/FXToolBarShell.html +788 -0
  254. data/docs/Fox/FXToolBarTab.html +729 -0
  255. data/docs/Fox/FXToolTip.html +761 -0
  256. data/docs/Fox/FXTopWindow.html +1716 -0
  257. data/docs/Fox/FXTranslator.html +481 -0
  258. data/docs/Fox/FXTreeItem.html +2813 -0
  259. data/docs/Fox/FXTreeList.html +5095 -0
  260. data/docs/Fox/FXTreeListBox.html +3080 -0
  261. data/docs/Fox/FXTriStateButton.html +681 -0
  262. data/docs/Fox/FXUndoList.html +2560 -0
  263. data/docs/Fox/FXVec2d.html +1450 -0
  264. data/docs/Fox/FXVec2f.html +1442 -0
  265. data/docs/Fox/FXVec3d.html +1649 -0
  266. data/docs/Fox/FXVec3f.html +1649 -0
  267. data/docs/Fox/FXVec4d.html +1858 -0
  268. data/docs/Fox/FXVec4f.html +1858 -0
  269. data/docs/Fox/FXVerticalFrame.html +359 -0
  270. data/docs/Fox/FXVerticalSeparator.html +349 -0
  271. data/docs/Fox/FXViewport.html +780 -0
  272. data/docs/Fox/FXVisual.html +1023 -0
  273. data/docs/Fox/FXWindow.html +9948 -0
  274. data/docs/Fox/FXWizard.html +1052 -0
  275. data/docs/Fox/FXXBMIcon.html +453 -0
  276. data/docs/Fox/FXXBMImage.html +437 -0
  277. data/docs/Fox/FXXPMIcon.html +450 -0
  278. data/docs/Fox/FXXPMImage.html +434 -0
  279. data/docs/Fox/NotifyHeader.html +286 -0
  280. data/docs/Fox/SCNotification.html +1438 -0
  281. data/docs/Fox/TextRange.html +281 -0
  282. data/docs/IRB.html +204 -0
  283. data/docs/Responder.html +693 -0
  284. data/docs/Responder2.html +225 -0
  285. data/docs/_index.html +2101 -0
  286. data/docs/class_list.html +51 -0
  287. data/docs/css/common.css +1 -0
  288. data/docs/css/full_list.css +58 -0
  289. data/docs/css/style.css +496 -0
  290. data/docs/file.History.html +869 -0
  291. data/docs/file.README.html +104 -0
  292. data/docs/file_list.html +66 -0
  293. data/docs/frames.html +17 -0
  294. data/docs/index.html +614 -0
  295. data/docs/js/app.js +314 -0
  296. data/docs/js/full_list.js +216 -0
  297. data/docs/js/jquery.js +4 -0
  298. data/docs/method_list.html +31043 -0
  299. data/docs/top-level-namespace.html +214 -0
  300. data/examples/canvasdemo.rb +5 -1
  301. data/examples/gltest.rb +162 -106
  302. data/examples/glviewer.rb +12 -8
  303. data/examples/inputs.rb +9 -4
  304. data/examples/pig.rb +2 -2
  305. data/examples/unicode.rb +6 -27
  306. data/ext/fox16_c/FXRbApp.cpp +3 -17
  307. data/ext/fox16_c/FXRuby.cpp +36 -46
  308. data/ext/fox16_c/extconf.rb +50 -34
  309. data/ext/fox16_c/impl.cpp +1 -1
  310. data/ext/fox16_c/include/FXRbApp.h +2 -2
  311. data/ext/fox16_c/include/FXRbCommon.h +0 -2
  312. data/ext/fox16_c/include/FXRbText.h +82 -2
  313. data/ext/fox16_c/include/FXRbTextVirtuals.h +22 -0
  314. data/ext/fox16_c/include/FXRuby.h +21 -3
  315. data/ext/fox16_c/include/gvl_wrappers.h +29 -11
  316. data/ext/fox16_c/make_impl.rb +1 -1
  317. data/fxruby.gemspec +2 -1
  318. data/lib/fox16/aliases.rb +3 -0
  319. data/lib/fox16/bitmapview.rb +0 -0
  320. data/lib/fox16/calendar.rb +6 -8
  321. data/lib/fox16/canvas.rb +93 -62
  322. data/lib/fox16/chore.rb +0 -0
  323. data/lib/fox16/colors.rb +0 -0
  324. data/lib/fox16/core.rb +18 -18
  325. data/lib/fox16/dict.rb +0 -0
  326. data/lib/fox16/glgroup.rb +5 -5
  327. data/lib/fox16/glshapes.rb +111 -99
  328. data/lib/fox16/input.rb +9 -7
  329. data/lib/fox16/irb.rb +0 -0
  330. data/lib/fox16/iterators.rb +0 -0
  331. data/lib/fox16/keys.rb +0 -0
  332. data/lib/fox16/missingdep.rb +0 -0
  333. data/lib/fox16/pseudokeyboard.rb +0 -0
  334. data/lib/fox16/pseudomouse.rb +0 -0
  335. data/lib/fox16/responder.rb +0 -0
  336. data/lib/fox16/responder2.rb +0 -0
  337. data/lib/fox16/scintilla.rb +0 -0
  338. data/lib/fox16/settings.rb +0 -0
  339. data/lib/fox16/signal.rb +0 -0
  340. data/lib/fox16/timeout.rb +0 -0
  341. data/lib/fox16/tkcompat.rb +0 -0
  342. data/lib/fox16/undolist.rb +8 -8
  343. data/lib/fox16/version.rb +1 -1
  344. data/rdoc-sources/FXGLVisual.rb +1 -1
  345. data/rdoc-sources/FXIconList.rb +2 -0
  346. data/rdoc-sources/FXImage.rb +5 -0
  347. data/rdoc-sources/FXList.rb +2 -0
  348. data/rdoc-sources/FXListBox.rb +1 -1
  349. data/rdoc-sources/FXText.rb +4 -2
  350. data/swig-interfaces/FXImage.i +9 -4
  351. data/swig-interfaces/FXMemoryBuffer.i +2 -2
  352. data/swig-interfaces/FXText.i +10 -8
  353. data/swig-interfaces/macros.i +9 -0
  354. data/test/TC_FXImage.rb +8 -0
  355. data/test/TC_FXList.rb +8 -8
  356. data/test/TC_FXText.rb +19 -0
  357. data/test/TC_FXVec4f.rb +26 -12
  358. metadata +300 -10
@@ -0,0 +1,2031 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Fox::Canvas::ShapeCanvas
8
+
9
+ &mdash; FXRuby API Documentation
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Fox::Canvas::ShapeCanvas";
19
+ relpath = '../../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../../_index.html">Index (S)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Canvas.html" title="Fox::Canvas (module)">Canvas</a></span></span>
41
+ &raquo;
42
+ <span class="title">ShapeCanvas</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Fox::Canvas::ShapeCanvas
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName"><span class='object_link'><a href="../FXCanvas.html" title="Fox::FXCanvas (class)">FXCanvas</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next"><span class='object_link'><a href="../FXObject.html" title="Fox::FXObject (class)">FXObject</a></span></li>
78
+
79
+ <li class="next"><span class='object_link'><a href="../FXId.html" title="Fox::FXId (class)">FXId</a></span></li>
80
+
81
+ <li class="next"><span class='object_link'><a href="../FXDrawable.html" title="Fox::FXDrawable (class)">FXDrawable</a></span></li>
82
+
83
+ <li class="next"><span class='object_link'><a href="../FXWindow.html" title="Fox::FXWindow (class)">FXWindow</a></span></li>
84
+
85
+ <li class="next"><span class='object_link'><a href="../FXCanvas.html" title="Fox::FXCanvas (class)">FXCanvas</a></span></li>
86
+
87
+ <li class="next">Fox::Canvas::ShapeCanvas</li>
88
+
89
+ </ul>
90
+ <a href="#" class="inheritanceTree">show all</a>
91
+
92
+ </dd>
93
+ </dl>
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <dl>
101
+ <dt>Includes:</dt>
102
+ <dd><span class='object_link'><a href="../../Responder.html" title="Responder (module)">Responder</a></span></dd>
103
+ </dl>
104
+
105
+
106
+
107
+
108
+
109
+
110
+ <dl>
111
+ <dt>Defined in:</dt>
112
+ <dd>lib/fox16/canvas.rb</dd>
113
+ </dl>
114
+
115
+ </div>
116
+
117
+
118
+
119
+ <h2>
120
+ Constant Summary
121
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
122
+ </h2>
123
+
124
+ <dl class="constants">
125
+
126
+ <dt id="FLAG_SHOWN-constant" class="">FLAG_SHOWN =
127
+ <div class="docstring">
128
+ <div class="discussion">
129
+
130
+ <p>Window state flags</p>
131
+
132
+
133
+ </div>
134
+ </div>
135
+ <div class="tags">
136
+
137
+
138
+ </div>
139
+ </dt>
140
+ <dd><pre class="code"><span class='int'>0x00000001</span></pre></dd>
141
+
142
+ <dt id="FLAG_ENABLED-constant" class="">FLAG_ENABLED =
143
+ <div class="docstring">
144
+ <div class="discussion">
145
+
146
+ <p>Is shown</p>
147
+
148
+
149
+ </div>
150
+ </div>
151
+ <div class="tags">
152
+
153
+
154
+ </div>
155
+ </dt>
156
+ <dd><pre class="code"><span class='int'>0x00000002</span></pre></dd>
157
+
158
+ <dt id="FLAG_UPDATE-constant" class="">FLAG_UPDATE =
159
+ <div class="docstring">
160
+ <div class="discussion">
161
+
162
+ <p>Able to receive input</p>
163
+
164
+
165
+ </div>
166
+ </div>
167
+ <div class="tags">
168
+
169
+
170
+ </div>
171
+ </dt>
172
+ <dd><pre class="code"><span class='int'>0x00000004</span></pre></dd>
173
+
174
+ <dt id="FLAG_DROPTARGET-constant" class="">FLAG_DROPTARGET =
175
+ <div class="docstring">
176
+ <div class="discussion">
177
+
178
+ <p>Is subject to GUI update</p>
179
+
180
+
181
+ </div>
182
+ </div>
183
+ <div class="tags">
184
+
185
+
186
+ </div>
187
+ </dt>
188
+ <dd><pre class="code"><span class='int'>0x00000008</span></pre></dd>
189
+
190
+ <dt id="FLAG_FOCUSED-constant" class="">FLAG_FOCUSED =
191
+ <div class="docstring">
192
+ <div class="discussion">
193
+
194
+ <p>Drop target</p>
195
+
196
+
197
+ </div>
198
+ </div>
199
+ <div class="tags">
200
+
201
+
202
+ </div>
203
+ </dt>
204
+ <dd><pre class="code"><span class='int'>0x00000010</span></pre></dd>
205
+
206
+ <dt id="FLAG_DIRTY-constant" class="">FLAG_DIRTY =
207
+ <div class="docstring">
208
+ <div class="discussion">
209
+
210
+ <p>Has focus</p>
211
+
212
+
213
+ </div>
214
+ </div>
215
+ <div class="tags">
216
+
217
+
218
+ </div>
219
+ </dt>
220
+ <dd><pre class="code"><span class='int'>0x00000020</span></pre></dd>
221
+
222
+ <dt id="FLAG_RECALC-constant" class="">FLAG_RECALC =
223
+ <div class="docstring">
224
+ <div class="discussion">
225
+
226
+ <p>Needs layout</p>
227
+
228
+
229
+ </div>
230
+ </div>
231
+ <div class="tags">
232
+
233
+
234
+ </div>
235
+ </dt>
236
+ <dd><pre class="code"><span class='int'>0x00000040</span></pre></dd>
237
+
238
+ <dt id="FLAG_TIP-constant" class="">FLAG_TIP =
239
+ <div class="docstring">
240
+ <div class="discussion">
241
+
242
+ <p>Needs recalculation</p>
243
+
244
+
245
+ </div>
246
+ </div>
247
+ <div class="tags">
248
+
249
+
250
+ </div>
251
+ </dt>
252
+ <dd><pre class="code"><span class='int'>0x00000080</span></pre></dd>
253
+
254
+ <dt id="FLAG_HELP-constant" class="">FLAG_HELP =
255
+ <div class="docstring">
256
+ <div class="discussion">
257
+
258
+ <p>Show tip</p>
259
+
260
+
261
+ </div>
262
+ </div>
263
+ <div class="tags">
264
+
265
+
266
+ </div>
267
+ </dt>
268
+ <dd><pre class="code"><span class='int'>0x00000100</span></pre></dd>
269
+
270
+ <dt id="FLAG_DEFAULT-constant" class="">FLAG_DEFAULT =
271
+ <div class="docstring">
272
+ <div class="discussion">
273
+
274
+ <p>Show help</p>
275
+
276
+
277
+ </div>
278
+ </div>
279
+ <div class="tags">
280
+
281
+
282
+ </div>
283
+ </dt>
284
+ <dd><pre class="code"><span class='int'>0x00000200</span></pre></dd>
285
+
286
+ <dt id="FLAG_INITIAL-constant" class="">FLAG_INITIAL =
287
+ <div class="docstring">
288
+ <div class="discussion">
289
+
290
+ <p>Default widget</p>
291
+
292
+
293
+ </div>
294
+ </div>
295
+ <div class="tags">
296
+
297
+
298
+ </div>
299
+ </dt>
300
+ <dd><pre class="code"><span class='int'>0x00000400</span></pre></dd>
301
+
302
+ <dt id="FLAG_SHELL-constant" class="">FLAG_SHELL =
303
+ <div class="docstring">
304
+ <div class="discussion">
305
+
306
+ <p>Initial widget</p>
307
+
308
+
309
+ </div>
310
+ </div>
311
+ <div class="tags">
312
+
313
+
314
+ </div>
315
+ </dt>
316
+ <dd><pre class="code"><span class='int'>0x00000800</span></pre></dd>
317
+
318
+ <dt id="FLAG_ACTIVE-constant" class="">FLAG_ACTIVE =
319
+ <div class="docstring">
320
+ <div class="discussion">
321
+
322
+ <p>Shell window</p>
323
+
324
+
325
+ </div>
326
+ </div>
327
+ <div class="tags">
328
+
329
+
330
+ </div>
331
+ </dt>
332
+ <dd><pre class="code"><span class='int'>0x00001000</span></pre></dd>
333
+
334
+ <dt id="FLAG_PRESSED-constant" class="">FLAG_PRESSED =
335
+ <div class="docstring">
336
+ <div class="discussion">
337
+
338
+ <p>Window is active</p>
339
+
340
+
341
+ </div>
342
+ </div>
343
+ <div class="tags">
344
+
345
+
346
+ </div>
347
+ </dt>
348
+ <dd><pre class="code"><span class='int'>0x00002000</span></pre></dd>
349
+
350
+ <dt id="FLAG_KEY-constant" class="">FLAG_KEY =
351
+ <div class="docstring">
352
+ <div class="discussion">
353
+
354
+ <p>Button has been pressed</p>
355
+
356
+
357
+ </div>
358
+ </div>
359
+ <div class="tags">
360
+
361
+
362
+ </div>
363
+ </dt>
364
+ <dd><pre class="code"><span class='int'>0x00004000</span></pre></dd>
365
+
366
+ <dt id="FLAG_CARET-constant" class="">FLAG_CARET =
367
+ <div class="docstring">
368
+ <div class="discussion">
369
+
370
+ <p>Keyboard key pressed</p>
371
+
372
+
373
+ </div>
374
+ </div>
375
+ <div class="tags">
376
+
377
+
378
+ </div>
379
+ </dt>
380
+ <dd><pre class="code"><span class='int'>0x00008000</span></pre></dd>
381
+
382
+ <dt id="FLAG_CHANGED-constant" class="">FLAG_CHANGED =
383
+ <div class="docstring">
384
+ <div class="discussion">
385
+
386
+ <p>Caret is on</p>
387
+
388
+
389
+ </div>
390
+ </div>
391
+ <div class="tags">
392
+
393
+
394
+ </div>
395
+ </dt>
396
+ <dd><pre class="code"><span class='int'>0x00010000</span></pre></dd>
397
+
398
+ <dt id="FLAG_LASSO-constant" class="">FLAG_LASSO =
399
+ <div class="docstring">
400
+ <div class="discussion">
401
+
402
+ <p>Window data changed</p>
403
+
404
+
405
+ </div>
406
+ </div>
407
+ <div class="tags">
408
+
409
+
410
+ </div>
411
+ </dt>
412
+ <dd><pre class="code"><span class='int'>0x00020000</span></pre></dd>
413
+
414
+ <dt id="FLAG_TRYDRAG-constant" class="">FLAG_TRYDRAG =
415
+ <div class="docstring">
416
+ <div class="discussion">
417
+
418
+ <p>Lasso mode</p>
419
+
420
+
421
+ </div>
422
+ </div>
423
+ <div class="tags">
424
+
425
+
426
+ </div>
427
+ </dt>
428
+ <dd><pre class="code"><span class='int'>0x00040000</span></pre></dd>
429
+
430
+ <dt id="FLAG_DODRAG-constant" class="">FLAG_DODRAG =
431
+ <div class="docstring">
432
+ <div class="discussion">
433
+
434
+ <p>Tentative drag mode</p>
435
+
436
+
437
+ </div>
438
+ </div>
439
+ <div class="tags">
440
+
441
+
442
+ </div>
443
+ </dt>
444
+ <dd><pre class="code"><span class='int'>0x00080000</span></pre></dd>
445
+
446
+ <dt id="FLAG_SCROLLINSIDE-constant" class="">FLAG_SCROLLINSIDE =
447
+ <div class="docstring">
448
+ <div class="discussion">
449
+
450
+ <p>Doing drag mode</p>
451
+
452
+
453
+ </div>
454
+ </div>
455
+ <div class="tags">
456
+
457
+
458
+ </div>
459
+ </dt>
460
+ <dd><pre class="code"><span class='int'>0x00100000</span></pre></dd>
461
+
462
+ <dt id="FLAG_SCROLLING-constant" class="">FLAG_SCROLLING =
463
+ <div class="docstring">
464
+ <div class="discussion">
465
+
466
+ <p>Scroll only when inside</p>
467
+
468
+
469
+ </div>
470
+ </div>
471
+ <div class="tags">
472
+
473
+
474
+ </div>
475
+ </dt>
476
+ <dd><pre class="code"><span class='int'>0x00200000</span></pre></dd>
477
+
478
+ </dl>
479
+
480
+
481
+
482
+
483
+
484
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
485
+ <ul class="summary">
486
+
487
+ <li class="public ">
488
+ <span class="summary_signature">
489
+
490
+ <a href="#scene-instance_method" title="#scene (instance method)">#<strong>scene</strong> &#x21d2; Object </a>
491
+
492
+
493
+
494
+ </span>
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+ <span class="summary_desc"><div class='inline'>
508
+ <p>Returns the value of attribute scene.</p>
509
+ </div></span>
510
+
511
+ </li>
512
+
513
+
514
+ </ul>
515
+
516
+
517
+
518
+
519
+
520
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../FXWindow.html" title="Fox::FXWindow (class)">FXWindow</a></span></h3>
521
+ <p class="inherited"><span class='object_link'><a href="../FXWindow.html#accelTable-instance_method" title="Fox::FXWindow#accelTable (method)">#accelTable</a></span>, <span class='object_link'><a href="../FXWindow.html#backColor-instance_method" title="Fox::FXWindow#backColor (method)">#backColor</a></span>, <span class='object_link'><a href="../FXWindow.html#defaultCursor-instance_method" title="Fox::FXWindow#defaultCursor (method)">#defaultCursor</a></span>, <span class='object_link'><a href="../FXWindow.html#dragCursor-instance_method" title="Fox::FXWindow#dragCursor (method)">#dragCursor</a></span>, <span class='object_link'><a href="../FXWindow.html#first-instance_method" title="Fox::FXWindow#first (method)">#first</a></span>, <span class='object_link'><a href="../FXWindow.html#focus-instance_method" title="Fox::FXWindow#focus (method)">#focus</a></span>, <span class='object_link'><a href="../FXWindow.html#key-instance_method" title="Fox::FXWindow#key (method)">#key</a></span>, <span class='object_link'><a href="../FXWindow.html#last-instance_method" title="Fox::FXWindow#last (method)">#last</a></span>, <span class='object_link'><a href="../FXWindow.html#layoutHints-instance_method" title="Fox::FXWindow#layoutHints (method)">#layoutHints</a></span>, <span class='object_link'><a href="../FXWindow.html#next-instance_method" title="Fox::FXWindow#next (method)">#next</a></span>, <span class='object_link'><a href="../FXWindow.html#numChildren-instance_method" title="Fox::FXWindow#numChildren (method)">#numChildren</a></span>, <span class='object_link'><a href="../FXWindow.html#owner-instance_method" title="Fox::FXWindow#owner (method)">#owner</a></span>, <span class='object_link'><a href="../FXWindow.html#parent-instance_method" title="Fox::FXWindow#parent (method)">#parent</a></span>, <span class='object_link'><a href="../FXWindow.html#prev-instance_method" title="Fox::FXWindow#prev (method)">#prev</a></span>, <span class='object_link'><a href="../FXWindow.html#root-instance_method" title="Fox::FXWindow#root (method)">#root</a></span>, <span class='object_link'><a href="../FXWindow.html#selector-instance_method" title="Fox::FXWindow#selector (method)">#selector</a></span>, <span class='object_link'><a href="../FXWindow.html#shell-instance_method" title="Fox::FXWindow#shell (method)">#shell</a></span>, <span class='object_link'><a href="../FXWindow.html#target-instance_method" title="Fox::FXWindow#target (method)">#target</a></span>, <span class='object_link'><a href="../FXWindow.html#x-instance_method" title="Fox::FXWindow#x (method)">#x</a></span>, <span class='object_link'><a href="../FXWindow.html#y-instance_method" title="Fox::FXWindow#y (method)">#y</a></span></p>
522
+
523
+
524
+
525
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../FXDrawable.html" title="Fox::FXDrawable (class)">FXDrawable</a></span></h3>
526
+ <p class="inherited"><span class='object_link'><a href="../FXDrawable.html#height-instance_method" title="Fox::FXDrawable#height (method)">#height</a></span>, <span class='object_link'><a href="../FXDrawable.html#visual-instance_method" title="Fox::FXDrawable#visual (method)">#visual</a></span>, <span class='object_link'><a href="../FXDrawable.html#width-instance_method" title="Fox::FXDrawable#width (method)">#width</a></span></p>
527
+
528
+
529
+
530
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../FXId.html" title="Fox::FXId (class)">FXId</a></span></h3>
531
+ <p class="inherited"><span class='object_link'><a href="../FXId.html#app-instance_method" title="Fox::FXId#app (method)">#app</a></span>, <span class='object_link'><a href="../FXId.html#userData-instance_method" title="Fox::FXId#userData (method)">#userData</a></span>, <span class='object_link'><a href="../FXId.html#xid-instance_method" title="Fox::FXId#xid (method)">#xid</a></span></p>
532
+
533
+
534
+
535
+ <h2>
536
+ Instance Method Summary
537
+ <small><a href="#" class="summary_toggle">collapse</a></small>
538
+ </h2>
539
+
540
+ <ul class="summary">
541
+
542
+ <li class="public ">
543
+ <span class="summary_signature">
544
+
545
+ <a href="#deselectShape-instance_method" title="#deselectShape (instance method)">#<strong>deselectShape</strong>(shape, notify = false) &#x21d2; Object </a>
546
+
547
+
548
+
549
+ </span>
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+ <span class="summary_desc"><div class='inline'>
560
+ <p>Deselect one shape.</p>
561
+ </div></span>
562
+
563
+ </li>
564
+
565
+
566
+ <li class="public ">
567
+ <span class="summary_signature">
568
+
569
+ <a href="#disableShape-instance_method" title="#disableShape (instance method)">#<strong>disableShape</strong>(shape) &#x21d2; Object </a>
570
+
571
+
572
+
573
+ </span>
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+ <span class="summary_desc"><div class='inline'>
584
+ <p>Disable one shape.</p>
585
+ </div></span>
586
+
587
+ </li>
588
+
589
+
590
+ <li class="public ">
591
+ <span class="summary_signature">
592
+
593
+ <a href="#enableShape-instance_method" title="#enableShape (instance method)">#<strong>enableShape</strong>(shape) &#x21d2; Object </a>
594
+
595
+
596
+
597
+ </span>
598
+
599
+
600
+
601
+
602
+
603
+
604
+
605
+
606
+
607
+ <span class="summary_desc"><div class='inline'>
608
+ <p>Enable one shape.</p>
609
+ </div></span>
610
+
611
+ </li>
612
+
613
+
614
+ <li class="public ">
615
+ <span class="summary_signature">
616
+
617
+ <a href="#findShape-instance_method" title="#findShape (instance method)">#<strong>findShape</strong>(x, y) &#x21d2; Object </a>
618
+
619
+
620
+
621
+ </span>
622
+
623
+
624
+
625
+
626
+
627
+
628
+
629
+
630
+
631
+ <span class="summary_desc"><div class='inline'>
632
+ <p>Find the shape of the least depth containing this point.</p>
633
+ </div></span>
634
+
635
+ </li>
636
+
637
+
638
+ <li class="public ">
639
+ <span class="summary_signature">
640
+
641
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(p, tgt = nil, sel = 0, opts = FRAME_NORMAL, x = 0, y = 0, w = 0, h = 0) &#x21d2; ShapeCanvas </a>
642
+
643
+
644
+
645
+ </span>
646
+
647
+
648
+ <span class="note title constructor">constructor</span>
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+ <span class="summary_desc"><div class='inline'>
658
+ <p>A new instance of ShapeCanvas.</p>
659
+ </div></span>
660
+
661
+ </li>
662
+
663
+
664
+ <li class="public ">
665
+ <span class="summary_signature">
666
+
667
+ <a href="#killSelection-instance_method" title="#killSelection (instance method)">#<strong>killSelection</strong>(notify) &#x21d2; Object </a>
668
+
669
+
670
+
671
+ </span>
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+ <span class="summary_desc"><div class='inline'>
682
+ <p>Kill selection.</p>
683
+ </div></span>
684
+
685
+ </li>
686
+
687
+
688
+ <li class="public ">
689
+ <span class="summary_signature">
690
+
691
+ <a href="#onClicked-instance_method" title="#onClicked (instance method)">#<strong>onClicked</strong>(sender, sel, ptr) &#x21d2; Object </a>
692
+
693
+
694
+
695
+ </span>
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+ <span class="summary_desc"><div class='inline'>
706
+ <p>Clicked on canvas.</p>
707
+ </div></span>
708
+
709
+ </li>
710
+
711
+
712
+ <li class="public ">
713
+ <span class="summary_signature">
714
+
715
+ <a href="#onCommand-instance_method" title="#onCommand (instance method)">#<strong>onCommand</strong>(sender, sel, ptr) &#x21d2; Object </a>
716
+
717
+
718
+
719
+ </span>
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+
728
+
729
+ <span class="summary_desc"><div class='inline'>
730
+ <p>Command message.</p>
731
+ </div></span>
732
+
733
+ </li>
734
+
735
+
736
+ <li class="public ">
737
+ <span class="summary_signature">
738
+
739
+ <a href="#onDoubleClicked-instance_method" title="#onDoubleClicked (instance method)">#<strong>onDoubleClicked</strong>(sender, sel, ptr) &#x21d2; Object </a>
740
+
741
+
742
+
743
+ </span>
744
+
745
+
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+ <span class="summary_desc"><div class='inline'>
754
+ <p>Double-clicked on canvas.</p>
755
+ </div></span>
756
+
757
+ </li>
758
+
759
+
760
+ <li class="public ">
761
+ <span class="summary_signature">
762
+
763
+ <a href="#onLeftBtnPress-instance_method" title="#onLeftBtnPress (instance method)">#<strong>onLeftBtnPress</strong>(sender, sel, evt) &#x21d2; Object </a>
764
+
765
+
766
+
767
+ </span>
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+ <span class="summary_desc"><div class='inline'>
778
+ <p>Left button press.</p>
779
+ </div></span>
780
+
781
+ </li>
782
+
783
+
784
+ <li class="public ">
785
+ <span class="summary_signature">
786
+
787
+ <a href="#onLeftBtnRelease-instance_method" title="#onLeftBtnRelease (instance method)">#<strong>onLeftBtnRelease</strong>(sender, sel, evt) &#x21d2; Object </a>
788
+
789
+
790
+
791
+ </span>
792
+
793
+
794
+
795
+
796
+
797
+
798
+
799
+
800
+
801
+ <span class="summary_desc"><div class='inline'>
802
+ <p>Left button release.</p>
803
+ </div></span>
804
+
805
+ </li>
806
+
807
+
808
+ <li class="public ">
809
+ <span class="summary_signature">
810
+
811
+ <a href="#onMotion-instance_method" title="#onMotion (instance method)">#<strong>onMotion</strong>(sender, sel, evt) &#x21d2; Object </a>
812
+
813
+
814
+
815
+ </span>
816
+
817
+
818
+
819
+
820
+
821
+
822
+
823
+
824
+
825
+ <span class="summary_desc"><div class='inline'>
826
+ <p>Motion.</p>
827
+ </div></span>
828
+
829
+ </li>
830
+
831
+
832
+ <li class="public ">
833
+ <span class="summary_signature">
834
+
835
+ <a href="#onPaint-instance_method" title="#onPaint (instance method)">#<strong>onPaint</strong>(sender, sel, evt) &#x21d2; Object </a>
836
+
837
+
838
+
839
+ </span>
840
+
841
+
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+ <span class="summary_desc"><div class='inline'>
850
+ <p>Paint.</p>
851
+ </div></span>
852
+
853
+ </li>
854
+
855
+
856
+ <li class="public ">
857
+ <span class="summary_signature">
858
+
859
+ <a href="#onTripleClicked-instance_method" title="#onTripleClicked (instance method)">#<strong>onTripleClicked</strong>(sender, sel, ptr) &#x21d2; Object </a>
860
+
861
+
862
+
863
+ </span>
864
+
865
+
866
+
867
+
868
+
869
+
870
+
871
+
872
+
873
+ <span class="summary_desc"><div class='inline'>
874
+ <p>Triple-clicked on canvas.</p>
875
+ </div></span>
876
+
877
+ </li>
878
+
879
+
880
+ <li class="public ">
881
+ <span class="summary_signature">
882
+
883
+ <a href="#selectShape-instance_method" title="#selectShape (instance method)">#<strong>selectShape</strong>(shape, notify = false) &#x21d2; Object </a>
884
+
885
+
886
+
887
+ </span>
888
+
889
+
890
+
891
+
892
+
893
+
894
+
895
+
896
+
897
+ <span class="summary_desc"><div class='inline'>
898
+ <p>Select one shape.</p>
899
+ </div></span>
900
+
901
+ </li>
902
+
903
+
904
+ <li class="public ">
905
+ <span class="summary_signature">
906
+
907
+ <a href="#updateShape-instance_method" title="#updateShape (instance method)">#<strong>updateShape</strong>(shape) &#x21d2; Object </a>
908
+
909
+
910
+
911
+ </span>
912
+
913
+
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+ <span class="summary_desc"><div class='inline'>
922
+ <p>Repaint.</p>
923
+ </div></span>
924
+
925
+ </li>
926
+
927
+
928
+ </ul>
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="../../Responder.html" title="Responder (module)">Responder</a></span></h3>
941
+ <p class="inherited"><span class='object_link'><a href="../../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">#FXMAPFUNC</a></span>, <span class='object_link'><a href="../../Responder.html#FXMAPFUNCS-instance_method" title="Responder#FXMAPFUNCS (method)">#FXMAPFUNCS</a></span>, <span class='object_link'><a href="../../Responder.html#FXMAPTYPE-instance_method" title="Responder#FXMAPTYPE (method)">#FXMAPTYPE</a></span>, <span class='object_link'><a href="../../Responder.html#FXMAPTYPES-instance_method" title="Responder#FXMAPTYPES (method)">#FXMAPTYPES</a></span>, <span class='object_link'><a href="../../Responder.html#addMapEntry-instance_method" title="Responder#addMapEntry (method)">#addMapEntry</a></span>, <span class='object_link'><a href="../../Responder.html#assocIndex-instance_method" title="Responder#assocIndex (method)">#assocIndex</a></span>, <span class='object_link'><a href="../../Responder.html#identifier-instance_method" title="Responder#identifier (method)">#identifier</a></span>, <span class='object_link'><a href="../../Responder.html#messageMap-instance_method" title="Responder#messageMap (method)">#messageMap</a></span></p>
942
+
943
+
944
+
945
+
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+
954
+
955
+
956
+
957
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../FXWindow.html" title="Fox::FXWindow (class)">FXWindow</a></span></h3>
958
+ <p class="inherited"><span class='object_link'><a href="../FXWindow.html#acceptDrop-instance_method" title="Fox::FXWindow#acceptDrop (method)">#acceptDrop</a></span>, <span class='object_link'><a href="../FXWindow.html#acquireClipboard-instance_method" title="Fox::FXWindow#acquireClipboard (method)">#acquireClipboard</a></span>, <span class='object_link'><a href="../FXWindow.html#acquireSelection-instance_method" title="Fox::FXWindow#acquireSelection (method)">#acquireSelection</a></span>, <span class='object_link'><a href="../FXWindow.html#active%3F-instance_method" title="Fox::FXWindow#active? (method)">#active?</a></span>, <span class='object_link'><a href="../FXWindow.html#addHotKey-instance_method" title="Fox::FXWindow#addHotKey (method)">#addHotKey</a></span>, <span class='object_link'><a href="../FXWindow.html#after%3F-class_method" title="Fox::FXWindow.after? (method)">after?</a></span>, <span class='object_link'><a href="../FXWindow.html#after%3F-instance_method" title="Fox::FXWindow#after? (method)">#after?</a></span>, <span class='object_link'><a href="../FXWindow.html#before%3F-class_method" title="Fox::FXWindow.before? (method)">before?</a></span>, <span class='object_link'><a href="../FXWindow.html#before%3F-instance_method" title="Fox::FXWindow#before? (method)">#before?</a></span>, <span class='object_link'><a href="../FXWindow.html#beginDrag-instance_method" title="Fox::FXWindow#beginDrag (method)">#beginDrag</a></span>, <span class='object_link'><a href="../FXWindow.html#canFocus%3F-instance_method" title="Fox::FXWindow#canFocus? (method)">#canFocus?</a></span>, <span class='object_link'><a href="../FXWindow.html#changeFocus-instance_method" title="Fox::FXWindow#changeFocus (method)">#changeFocus</a></span>, <span class='object_link'><a href="../FXWindow.html#childAtIndex-instance_method" title="Fox::FXWindow#childAtIndex (method)">#childAtIndex</a></span>, <span class='object_link'><a href="../FXWindow.html#childOf%3F-instance_method" title="Fox::FXWindow#childOf? (method)">#childOf?</a></span>, <span class='object_link'><a href="../FXWindow.html#children-instance_method" title="Fox::FXWindow#children (method)">#children</a></span>, <span class='object_link'><a href="../FXWindow.html#clearDragRectangle-instance_method" title="Fox::FXWindow#clearDragRectangle (method)">#clearDragRectangle</a></span>, <span class='object_link'><a href="../FXWindow.html#clearShape-instance_method" title="Fox::FXWindow#clearShape (method)">#clearShape</a></span>, <span class='object_link'><a href="../FXWindow.html#colorType-class_method" title="Fox::FXWindow.colorType (method)">colorType</a></span>, <span class='object_link'><a href="../FXWindow.html#colorTypeName-class_method" title="Fox::FXWindow.colorTypeName (method)">colorTypeName</a></span>, <span class='object_link'><a href="../FXWindow.html#commonAncestor-class_method" title="Fox::FXWindow.commonAncestor (method)">commonAncestor</a></span>, <span class='object_link'><a href="../FXWindow.html#composeContext-instance_method" title="Fox::FXWindow#composeContext (method)">#composeContext</a></span>, <span class='object_link'><a href="../FXWindow.html#composite%3F-instance_method" title="Fox::FXWindow#composite? (method)">#composite?</a></span>, <span class='object_link'><a href="../FXWindow.html#contains%3F-instance_method" title="Fox::FXWindow#contains? (method)">#contains?</a></span>, <span class='object_link'><a href="../FXWindow.html#containsChild%3F-instance_method" title="Fox::FXWindow#containsChild? (method)">#containsChild?</a></span>, <span class='object_link'><a href="../FXWindow.html#create-instance_method" title="Fox::FXWindow#create (method)">#create</a></span>, <span class='object_link'><a href="../FXWindow.html#createComposeContext-instance_method" title="Fox::FXWindow#createComposeContext (method)">#createComposeContext</a></span>, <span class='object_link'><a href="../FXWindow.html#cursorPosition-instance_method" title="Fox::FXWindow#cursorPosition (method)">#cursorPosition</a></span>, <span class='object_link'><a href="../FXWindow.html#default%3F-instance_method" title="Fox::FXWindow#default? (method)">#default?</a></span>, <span class='object_link'><a href="../FXWindow.html#defaultHeight-instance_method" title="Fox::FXWindow#defaultHeight (method)">#defaultHeight</a></span>, <span class='object_link'><a href="../FXWindow.html#defaultWidth-instance_method" title="Fox::FXWindow#defaultWidth (method)">#defaultWidth</a></span>, <span class='object_link'><a href="../FXWindow.html#deleteType-class_method" title="Fox::FXWindow.deleteType (method)">deleteType</a></span>, <span class='object_link'><a href="../FXWindow.html#deleteTypeName-class_method" title="Fox::FXWindow.deleteTypeName (method)">deleteTypeName</a></span>, <span class='object_link'><a href="../FXWindow.html#destroy-instance_method" title="Fox::FXWindow#destroy (method)">#destroy</a></span>, <span class='object_link'><a href="../FXWindow.html#destroyComposeContext-instance_method" title="Fox::FXWindow#destroyComposeContext (method)">#destroyComposeContext</a></span>, <span class='object_link'><a href="../FXWindow.html#detach-instance_method" title="Fox::FXWindow#detach (method)">#detach</a></span>, <span class='object_link'><a href="../FXWindow.html#didAccept-instance_method" title="Fox::FXWindow#didAccept (method)">#didAccept</a></span>, <span class='object_link'><a href="../FXWindow.html#disable-instance_method" title="Fox::FXWindow#disable (method)">#disable</a></span>, <span class='object_link'><a href="../FXWindow.html#doesSaveUnder%3F-instance_method" title="Fox::FXWindow#doesSaveUnder? (method)">#doesSaveUnder?</a></span>, <span class='object_link'><a href="../FXWindow.html#dragging%3F-instance_method" title="Fox::FXWindow#dragging? (method)">#dragging?</a></span>, <span class='object_link'><a href="../FXWindow.html#dropDisable-instance_method" title="Fox::FXWindow#dropDisable (method)">#dropDisable</a></span>, <span class='object_link'><a href="../FXWindow.html#dropEnable-instance_method" title="Fox::FXWindow#dropEnable (method)">#dropEnable</a></span>, <span class='object_link'><a href="../FXWindow.html#dropEnabled%3F-instance_method" title="Fox::FXWindow#dropEnabled? (method)">#dropEnabled?</a></span>, <span class='object_link'><a href="../FXWindow.html#dropFinished-instance_method" title="Fox::FXWindow#dropFinished (method)">#dropFinished</a></span>, <span class='object_link'><a href="../FXWindow.html#dropTarget%3F-instance_method" title="Fox::FXWindow#dropTarget? (method)">#dropTarget?</a></span>, <span class='object_link'><a href="../FXWindow.html#each_child-instance_method" title="Fox::FXWindow#each_child (method)">#each_child</a></span>, <span class='object_link'><a href="../FXWindow.html#each_child_recursive-instance_method" title="Fox::FXWindow#each_child_recursive (method)">#each_child_recursive</a></span>, <span class='object_link'><a href="../FXWindow.html#enable-instance_method" title="Fox::FXWindow#enable (method)">#enable</a></span>, <span class='object_link'><a href="../FXWindow.html#enabled%3F-instance_method" title="Fox::FXWindow#enabled? (method)">#enabled?</a></span>, <span class='object_link'><a href="../FXWindow.html#endDrag-instance_method" title="Fox::FXWindow#endDrag (method)">#endDrag</a></span>, <span class='object_link'><a href="../FXWindow.html#forceRefresh-instance_method" title="Fox::FXWindow#forceRefresh (method)">#forceRefresh</a></span>, <span class='object_link'><a href="../FXWindow.html#getChildAt-instance_method" title="Fox::FXWindow#getChildAt (method)">#getChildAt</a></span>, <span class='object_link'><a href="../FXWindow.html#getDNDData-instance_method" title="Fox::FXWindow#getDNDData (method)">#getDNDData</a></span>, <span class='object_link'><a href="../FXWindow.html#getHeightForWidth-instance_method" title="Fox::FXWindow#getHeightForWidth (method)">#getHeightForWidth</a></span>, <span class='object_link'><a href="../FXWindow.html#getWidthForHeight-instance_method" title="Fox::FXWindow#getWidthForHeight (method)">#getWidthForHeight</a></span>, <span class='object_link'><a href="../FXWindow.html#grab-instance_method" title="Fox::FXWindow#grab (method)">#grab</a></span>, <span class='object_link'><a href="../FXWindow.html#grabKeyboard-instance_method" title="Fox::FXWindow#grabKeyboard (method)">#grabKeyboard</a></span>, <span class='object_link'><a href="../FXWindow.html#grabbed%3F-instance_method" title="Fox::FXWindow#grabbed? (method)">#grabbed?</a></span>, <span class='object_link'><a href="../FXWindow.html#grabbedKeyboard%3F-instance_method" title="Fox::FXWindow#grabbedKeyboard? (method)">#grabbedKeyboard?</a></span>, <span class='object_link'><a href="../FXWindow.html#handleDrag-instance_method" title="Fox::FXWindow#handleDrag (method)">#handleDrag</a></span>, <span class='object_link'><a href="../FXWindow.html#hasClipboard%3F-instance_method" title="Fox::FXWindow#hasClipboard? (method)">#hasClipboard?</a></span>, <span class='object_link'><a href="../FXWindow.html#hasFocus%3F-instance_method" title="Fox::FXWindow#hasFocus? (method)">#hasFocus?</a></span>, <span class='object_link'><a href="../FXWindow.html#hasSelection%3F-instance_method" title="Fox::FXWindow#hasSelection? (method)">#hasSelection?</a></span>, <span class='object_link'><a href="../FXWindow.html#height-instance_method" title="Fox::FXWindow#height (method)">#height</a></span>, <span class='object_link'><a href="../FXWindow.html#height=-instance_method" title="Fox::FXWindow#height= (method)">#height=</a></span>, <span class='object_link'><a href="../FXWindow.html#hide-instance_method" title="Fox::FXWindow#hide (method)">#hide</a></span>, <span class='object_link'><a href="../FXWindow.html#imageType-class_method" title="Fox::FXWindow.imageType (method)">imageType</a></span>, <span class='object_link'><a href="../FXWindow.html#inFocusChain%3F-instance_method" title="Fox::FXWindow#inFocusChain? (method)">#inFocusChain?</a></span>, <span class='object_link'><a href="../FXWindow.html#indexOfChild-instance_method" title="Fox::FXWindow#indexOfChild (method)">#indexOfChild</a></span>, <span class='object_link'><a href="../FXWindow.html#initial%3F-instance_method" title="Fox::FXWindow#initial? (method)">#initial?</a></span>, <span class='object_link'><a href="../FXWindow.html#inquireDNDAction-instance_method" title="Fox::FXWindow#inquireDNDAction (method)">#inquireDNDAction</a></span>, <span class='object_link'><a href="../FXWindow.html#inquireDNDTypes-instance_method" title="Fox::FXWindow#inquireDNDTypes (method)">#inquireDNDTypes</a></span>, <span class='object_link'><a href="../FXWindow.html#killFocus-instance_method" title="Fox::FXWindow#killFocus (method)">#killFocus</a></span>, <span class='object_link'><a href="../FXWindow.html#layout-instance_method" title="Fox::FXWindow#layout (method)">#layout</a></span>, <span class='object_link'><a href="../FXWindow.html#linkAfter-instance_method" title="Fox::FXWindow#linkAfter (method)">#linkAfter</a></span>, <span class='object_link'><a href="../FXWindow.html#linkBefore-instance_method" title="Fox::FXWindow#linkBefore (method)">#linkBefore</a></span>, <span class='object_link'><a href="../FXWindow.html#lower-instance_method" title="Fox::FXWindow#lower (method)">#lower</a></span>, <span class='object_link'><a href="../FXWindow.html#move-instance_method" title="Fox::FXWindow#move (method)">#move</a></span>, <span class='object_link'><a href="../FXWindow.html#octetType-class_method" title="Fox::FXWindow.octetType (method)">octetType</a></span>, <span class='object_link'><a href="../FXWindow.html#octetTypeName-class_method" title="Fox::FXWindow.octetTypeName (method)">octetTypeName</a></span>, <span class='object_link'><a href="../FXWindow.html#offeredDNDType%3F-instance_method" title="Fox::FXWindow#offeredDNDType? (method)">#offeredDNDType?</a></span>, <span class='object_link'><a href="../FXWindow.html#position-instance_method" title="Fox::FXWindow#position (method)">#position</a></span>, <span class='object_link'><a href="../FXWindow.html#raiseWindow-instance_method" title="Fox::FXWindow#raiseWindow (method)">#raiseWindow</a></span>, <span class='object_link'><a href="../FXWindow.html#recalc-instance_method" title="Fox::FXWindow#recalc (method)">#recalc</a></span>, <span class='object_link'><a href="../FXWindow.html#releaseClipboard-instance_method" title="Fox::FXWindow#releaseClipboard (method)">#releaseClipboard</a></span>, <span class='object_link'><a href="../FXWindow.html#releaseSelection-instance_method" title="Fox::FXWindow#releaseSelection (method)">#releaseSelection</a></span>, <span class='object_link'><a href="../FXWindow.html#remHotKey-instance_method" title="Fox::FXWindow#remHotKey (method)">#remHotKey</a></span>, <span class='object_link'><a href="../FXWindow.html#removeChild-instance_method" title="Fox::FXWindow#removeChild (method)">#removeChild</a></span>, <span class='object_link'><a href="../FXWindow.html#repaint-instance_method" title="Fox::FXWindow#repaint (method)">#repaint</a></span>, <span class='object_link'><a href="../FXWindow.html#reparent-instance_method" title="Fox::FXWindow#reparent (method)">#reparent</a></span>, <span class='object_link'><a href="../FXWindow.html#resize-instance_method" title="Fox::FXWindow#resize (method)">#resize</a></span>, <span class='object_link'><a href="../FXWindow.html#scroll-instance_method" title="Fox::FXWindow#scroll (method)">#scroll</a></span>, <span class='object_link'><a href="../FXWindow.html#setCursorPosition-instance_method" title="Fox::FXWindow#setCursorPosition (method)">#setCursorPosition</a></span>, <span class='object_link'><a href="../FXWindow.html#setDNDData-instance_method" title="Fox::FXWindow#setDNDData (method)">#setDNDData</a></span>, <span class='object_link'><a href="../FXWindow.html#setDefault-instance_method" title="Fox::FXWindow#setDefault (method)">#setDefault</a></span>, <span class='object_link'><a href="../FXWindow.html#setDragRectangle-instance_method" title="Fox::FXWindow#setDragRectangle (method)">#setDragRectangle</a></span>, <span class='object_link'><a href="../FXWindow.html#setFocus-instance_method" title="Fox::FXWindow#setFocus (method)">#setFocus</a></span>, <span class='object_link'><a href="../FXWindow.html#setInitial-instance_method" title="Fox::FXWindow#setInitial (method)">#setInitial</a></span>, <span class='object_link'><a href="../FXWindow.html#setShape-instance_method" title="Fox::FXWindow#setShape (method)">#setShape</a></span>, <span class='object_link'><a href="../FXWindow.html#shell%3F-instance_method" title="Fox::FXWindow#shell? (method)">#shell?</a></span>, <span class='object_link'><a href="../FXWindow.html#show-instance_method" title="Fox::FXWindow#show (method)">#show</a></span>, <span class='object_link'><a href="../FXWindow.html#shown%3F-instance_method" title="Fox::FXWindow#shown? (method)">#shown?</a></span>, <span class='object_link'><a href="../FXWindow.html#stringType-class_method" title="Fox::FXWindow.stringType (method)">stringType</a></span>, <span class='object_link'><a href="../FXWindow.html#textType-class_method" title="Fox::FXWindow.textType (method)">textType</a></span>, <span class='object_link'><a href="../FXWindow.html#textTypeName-class_method" title="Fox::FXWindow.textTypeName (method)">textTypeName</a></span>, <span class='object_link'><a href="../FXWindow.html#tr-instance_method" title="Fox::FXWindow#tr (method)">#tr</a></span>, <span class='object_link'><a href="../FXWindow.html#translateCoordinatesFrom-instance_method" title="Fox::FXWindow#translateCoordinatesFrom (method)">#translateCoordinatesFrom</a></span>, <span class='object_link'><a href="../FXWindow.html#translateCoordinatesTo-instance_method" title="Fox::FXWindow#translateCoordinatesTo (method)">#translateCoordinatesTo</a></span>, <span class='object_link'><a href="../FXWindow.html#underCursor%3F-instance_method" title="Fox::FXWindow#underCursor? (method)">#underCursor?</a></span>, <span class='object_link'><a href="../FXWindow.html#ungrab-instance_method" title="Fox::FXWindow#ungrab (method)">#ungrab</a></span>, <span class='object_link'><a href="../FXWindow.html#ungrabKeyboard-instance_method" title="Fox::FXWindow#ungrabKeyboard (method)">#ungrabKeyboard</a></span>, <span class='object_link'><a href="../FXWindow.html#update-instance_method" title="Fox::FXWindow#update (method)">#update</a></span>, <span class='object_link'><a href="../FXWindow.html#urilistType-class_method" title="Fox::FXWindow.urilistType (method)">urilistType</a></span>, <span class='object_link'><a href="../FXWindow.html#urilistTypeName-class_method" title="Fox::FXWindow.urilistTypeName (method)">urilistTypeName</a></span>, <span class='object_link'><a href="../FXWindow.html#utf16Type-class_method" title="Fox::FXWindow.utf16Type (method)">utf16Type</a></span>, <span class='object_link'><a href="../FXWindow.html#utf16TypeName-class_method" title="Fox::FXWindow.utf16TypeName (method)">utf16TypeName</a></span>, <span class='object_link'><a href="../FXWindow.html#utf8Type-class_method" title="Fox::FXWindow.utf8Type (method)">utf8Type</a></span>, <span class='object_link'><a href="../FXWindow.html#utf8TypeName-class_method" title="Fox::FXWindow.utf8TypeName (method)">utf8TypeName</a></span>, <span class='object_link'><a href="../FXWindow.html#visible=-instance_method" title="Fox::FXWindow#visible= (method)">#visible=</a></span>, <span class='object_link'><a href="../FXWindow.html#width-instance_method" title="Fox::FXWindow#width (method)">#width</a></span>, <span class='object_link'><a href="../FXWindow.html#width=-instance_method" title="Fox::FXWindow#width= (method)">#width=</a></span></p>
959
+
960
+
961
+
962
+
963
+
964
+
965
+
966
+
967
+
968
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="../../Responder2.html" title="Responder2 (module)">Responder2</a></span></h3>
969
+ <p class="inherited"><span class='object_link'><a href="../../Responder2.html#connect-instance_method" title="Responder2#connect (method)">#connect</a></span></p>
970
+
971
+
972
+
973
+
974
+
975
+
976
+
977
+
978
+
979
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../FXDrawable.html" title="Fox::FXDrawable (class)">FXDrawable</a></span></h3>
980
+ <p class="inherited"><span class='object_link'><a href="../FXDrawable.html#resize-instance_method" title="Fox::FXDrawable#resize (method)">#resize</a></span></p>
981
+
982
+
983
+
984
+
985
+
986
+
987
+
988
+
989
+
990
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../FXId.html" title="Fox::FXId (class)">FXId</a></span></h3>
991
+ <p class="inherited"><span class='object_link'><a href="../FXId.html#create-instance_method" title="Fox::FXId#create (method)">#create</a></span>, <span class='object_link'><a href="../FXId.html#created%3F-instance_method" title="Fox::FXId#created? (method)">#created?</a></span>, <span class='object_link'><a href="../FXId.html#destroy-instance_method" title="Fox::FXId#destroy (method)">#destroy</a></span>, <span class='object_link'><a href="../FXId.html#detach-instance_method" title="Fox::FXId#detach (method)">#detach</a></span>, <span class='object_link'><a href="../FXId.html#runOnUiThread-instance_method" title="Fox::FXId#runOnUiThread (method)">#runOnUiThread</a></span></p>
992
+
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../FXObject.html" title="Fox::FXObject (class)">FXObject</a></span></h3>
1002
+ <p class="inherited"><span class='object_link'><a href="../FXObject.html#bind-instance_method" title="Fox::FXObject#bind (method)">#bind</a></span>, <span class='object_link'><a href="../FXObject.html#handle-instance_method" title="Fox::FXObject#handle (method)">#handle</a></span>, <span class='object_link'><a href="../FXObject.html#load-instance_method" title="Fox::FXObject#load (method)">#load</a></span>, <span class='object_link'><a href="../FXObject.html#save-instance_method" title="Fox::FXObject#save (method)">#save</a></span>, <span class='object_link'><a href="../FXObject.html#subclasses-class_method" title="Fox::FXObject.subclasses (method)">subclasses</a></span></p>
1003
+ <div id="constructor_details" class="method_details_list">
1004
+ <h2>Constructor Details</h2>
1005
+
1006
+ <div class="method_details first">
1007
+ <h3 class="signature first" id="initialize-instance_method">
1008
+
1009
+ #<strong>initialize</strong>(p, tgt = nil, sel = 0, opts = FRAME_NORMAL, x = 0, y = 0, w = 0, h = 0) &#x21d2; <tt><span class='object_link'><a href="" title="Fox::Canvas::ShapeCanvas (class)">ShapeCanvas</a></span></tt>
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+ </h3><div class="docstring">
1016
+ <div class="discussion">
1017
+
1018
+ <p>Returns a new instance of ShapeCanvas.</p>
1019
+
1020
+
1021
+ </div>
1022
+ </div>
1023
+ <div class="tags">
1024
+
1025
+
1026
+ </div><table class="source_code">
1027
+ <tr>
1028
+ <td>
1029
+ <pre class="lines">
1030
+
1031
+
1032
+ 406
1033
+ 407
1034
+ 408
1035
+ 409
1036
+ 410
1037
+ 411
1038
+ 412
1039
+ 413
1040
+ 414
1041
+ 415
1042
+ 416
1043
+ 417
1044
+ 418
1045
+ 419
1046
+ 420
1047
+ 421
1048
+ 422
1049
+ 423
1050
+ 424
1051
+ 425
1052
+ 426
1053
+ 427</pre>
1054
+ </td>
1055
+ <td>
1056
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 406</span>
1057
+
1058
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_p'>p</span><span class='comma'>,</span> <span class='id identifier rubyid_tgt'>tgt</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='op'>=</span><span class='const'>FRAME_NORMAL</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_w'>w</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_h'>h</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1059
+ <span class='comment'># Initialize base class
1060
+ </span> <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_p'>p</span><span class='comma'>,</span> <span class='id identifier rubyid_tgt'>tgt</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_w'>w</span><span class='comma'>,</span> <span class='id identifier rubyid_h'>h</span><span class='rparen'>)</span>
1061
+
1062
+ <span class='comment'># Start with an empty group
1063
+ </span> <span class='ivar'>@scene</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="ShapeGroup.html" title="Fox::Canvas::ShapeGroup (class)">ShapeGroup</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="ShapeGroup.html#initialize-instance_method" title="Fox::Canvas::ShapeGroup#initialize (method)">new</a></span></span>
1064
+
1065
+ <span class='comment'># Selection policy
1066
+ </span> <span class='ivar'>@selectionPolicy</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="SingleSelectionPolicy.html" title="Fox::Canvas::SingleSelectionPolicy (class)">SingleSelectionPolicy</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="SingleSelectionPolicy.html#initialize-instance_method" title="Fox::Canvas::SingleSelectionPolicy#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='rparen'>)</span>
1067
+
1068
+ <span class='ivar'>@flags</span> <span class='op'>=</span> <span class='int'>0</span>
1069
+
1070
+ <span class='comment'># Map
1071
+ </span> <span class='const'><span class='object_link'><a href="../../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_PAINT</span><span class='comma'>,</span> <span class='int'>0</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>onPaint</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1072
+ <span class='const'><span class='object_link'><a href="../../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_MOTION</span><span class='comma'>,</span> <span class='int'>0</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>onMotion</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1073
+ <span class='const'><span class='object_link'><a href="../../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_LEFTBUTTONPRESS</span><span class='comma'>,</span> <span class='int'>0</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>onLeftBtnPress</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1074
+ <span class='const'><span class='object_link'><a href="../../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_LEFTBUTTONRELEASE</span><span class='comma'>,</span> <span class='int'>0</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>onLeftBtnRelease</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1075
+ <span class='const'><span class='object_link'><a href="../../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_CLICKED</span><span class='comma'>,</span><span class='int'>0</span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>onClicked</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1076
+ <span class='const'><span class='object_link'><a href="../../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_DOUBLECLICKED</span><span class='comma'>,</span><span class='int'>0</span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>onDoubleClicked</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1077
+ <span class='const'><span class='object_link'><a href="../../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_TRIPLECLICKED</span><span class='comma'>,</span><span class='int'>0</span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>onTripleClicked</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1078
+ <span class='const'><span class='object_link'><a href="../../Responder.html#FXMAPFUNC-instance_method" title="Responder#FXMAPFUNC (method)">FXMAPFUNC</a></span></span><span class='lparen'>(</span><span class='const'>SEL_COMMAND</span><span class='comma'>,</span><span class='int'>0</span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>onCommand</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1079
+ <span class='kw'>end</span></pre>
1080
+ </td>
1081
+ </tr>
1082
+ </table>
1083
+ </div>
1084
+
1085
+ </div>
1086
+
1087
+ <div id="instance_attr_details" class="attr_details">
1088
+ <h2>Instance Attribute Details</h2>
1089
+
1090
+
1091
+ <span id="scene=-instance_method"></span>
1092
+ <div class="method_details first">
1093
+ <h3 class="signature first" id="scene-instance_method">
1094
+
1095
+ #<strong>scene</strong> &#x21d2; <tt>Object</tt>
1096
+
1097
+
1098
+
1099
+
1100
+
1101
+ </h3><div class="docstring">
1102
+ <div class="discussion">
1103
+
1104
+ <p>Returns the value of attribute scene.</p>
1105
+
1106
+
1107
+ </div>
1108
+ </div>
1109
+ <div class="tags">
1110
+
1111
+
1112
+ </div><table class="source_code">
1113
+ <tr>
1114
+ <td>
1115
+ <pre class="lines">
1116
+
1117
+
1118
+ 404
1119
+ 405
1120
+ 406</pre>
1121
+ </td>
1122
+ <td>
1123
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 404</span>
1124
+
1125
+ <span class='kw'>def</span> <span class='id identifier rubyid_scene'>scene</span>
1126
+ <span class='ivar'>@scene</span>
1127
+ <span class='kw'>end</span></pre>
1128
+ </td>
1129
+ </tr>
1130
+ </table>
1131
+ </div>
1132
+
1133
+ </div>
1134
+
1135
+
1136
+ <div id="instance_method_details" class="method_details_list">
1137
+ <h2>Instance Method Details</h2>
1138
+
1139
+
1140
+ <div class="method_details first">
1141
+ <h3 class="signature first" id="deselectShape-instance_method">
1142
+
1143
+ #<strong>deselectShape</strong>(shape, notify = false) &#x21d2; <tt>Object</tt>
1144
+
1145
+
1146
+
1147
+
1148
+
1149
+ </h3><div class="docstring">
1150
+ <div class="discussion">
1151
+
1152
+ <p>Deselect one shape</p>
1153
+
1154
+
1155
+ </div>
1156
+ </div>
1157
+ <div class="tags">
1158
+
1159
+
1160
+ </div><table class="source_code">
1161
+ <tr>
1162
+ <td>
1163
+ <pre class="lines">
1164
+
1165
+
1166
+ 480
1167
+ 481
1168
+ 482
1169
+ 483
1170
+ 484
1171
+ 485
1172
+ 486</pre>
1173
+ </td>
1174
+ <td>
1175
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 480</span>
1176
+
1177
+ <span class='kw'>def</span> <span class='id identifier rubyid_deselectShape'>deselectShape</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='id identifier rubyid_notify'>notify</span><span class='op'>=</span><span class='kw'>false</span><span class='rparen'>)</span>
1178
+ <span class='kw'>if</span> <span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
1179
+ <span class='ivar'>@selectionPolicy</span><span class='period'>.</span><span class='id identifier rubyid_deselectShape'>deselectShape</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='id identifier rubyid_notify'>notify</span><span class='rparen'>)</span>
1180
+ <span class='kw'>else</span>
1181
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="CanvasError.html" title="Fox::Canvas::CanvasError (class)">CanvasError</a></span></span>
1182
+ <span class='kw'>end</span>
1183
+ <span class='kw'>end</span></pre>
1184
+ </td>
1185
+ </tr>
1186
+ </table>
1187
+ </div>
1188
+
1189
+ <div class="method_details ">
1190
+ <h3 class="signature " id="disableShape-instance_method">
1191
+
1192
+ #<strong>disableShape</strong>(shape) &#x21d2; <tt>Object</tt>
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+ </h3><div class="docstring">
1199
+ <div class="discussion">
1200
+
1201
+ <p>Disable one shape</p>
1202
+
1203
+
1204
+ </div>
1205
+ </div>
1206
+ <div class="tags">
1207
+
1208
+
1209
+ </div><table class="source_code">
1210
+ <tr>
1211
+ <td>
1212
+ <pre class="lines">
1213
+
1214
+
1215
+ 459
1216
+ 460
1217
+ 461
1218
+ 462
1219
+ 463
1220
+ 464
1221
+ 465
1222
+ 466
1223
+ 467
1224
+ 468</pre>
1225
+ </td>
1226
+ <td>
1227
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 459</span>
1228
+
1229
+ <span class='kw'>def</span> <span class='id identifier rubyid_disableShape'>disableShape</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
1230
+ <span class='kw'>if</span> <span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
1231
+ <span class='kw'>if</span> <span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_enabled?'>enabled?</span>
1232
+ <span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_disable'>disable</span>
1233
+ <span class='id identifier rubyid_updateShape'>updateShape</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
1234
+ <span class='kw'>end</span>
1235
+ <span class='kw'>else</span>
1236
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="CanvasError.html" title="Fox::Canvas::CanvasError (class)">CanvasError</a></span></span>
1237
+ <span class='kw'>end</span>
1238
+ <span class='kw'>end</span></pre>
1239
+ </td>
1240
+ </tr>
1241
+ </table>
1242
+ </div>
1243
+
1244
+ <div class="method_details ">
1245
+ <h3 class="signature " id="enableShape-instance_method">
1246
+
1247
+ #<strong>enableShape</strong>(shape) &#x21d2; <tt>Object</tt>
1248
+
1249
+
1250
+
1251
+
1252
+
1253
+ </h3><div class="docstring">
1254
+ <div class="discussion">
1255
+
1256
+ <p>Enable one shape</p>
1257
+
1258
+
1259
+ </div>
1260
+ </div>
1261
+ <div class="tags">
1262
+
1263
+
1264
+ </div><table class="source_code">
1265
+ <tr>
1266
+ <td>
1267
+ <pre class="lines">
1268
+
1269
+
1270
+ 447
1271
+ 448
1272
+ 449
1273
+ 450
1274
+ 451
1275
+ 452
1276
+ 453
1277
+ 454
1278
+ 455
1279
+ 456</pre>
1280
+ </td>
1281
+ <td>
1282
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 447</span>
1283
+
1284
+ <span class='kw'>def</span> <span class='id identifier rubyid_enableShape'>enableShape</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
1285
+ <span class='kw'>if</span> <span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
1286
+ <span class='kw'>unless</span> <span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_enabled?'>enabled?</span>
1287
+ <span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_enable'>enable</span>
1288
+ <span class='id identifier rubyid_updateShape'>updateShape</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
1289
+ <span class='kw'>end</span>
1290
+ <span class='kw'>else</span>
1291
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="CanvasError.html" title="Fox::Canvas::CanvasError (class)">CanvasError</a></span></span>
1292
+ <span class='kw'>end</span>
1293
+ <span class='kw'>end</span></pre>
1294
+ </td>
1295
+ </tr>
1296
+ </table>
1297
+ </div>
1298
+
1299
+ <div class="method_details ">
1300
+ <h3 class="signature " id="findShape-instance_method">
1301
+
1302
+ #<strong>findShape</strong>(x, y) &#x21d2; <tt>Object</tt>
1303
+
1304
+
1305
+
1306
+
1307
+
1308
+ </h3><div class="docstring">
1309
+ <div class="discussion">
1310
+
1311
+ <p>Find the shape of the least depth containing this point</p>
1312
+
1313
+
1314
+ </div>
1315
+ </div>
1316
+ <div class="tags">
1317
+
1318
+
1319
+ </div><table class="source_code">
1320
+ <tr>
1321
+ <td>
1322
+ <pre class="lines">
1323
+
1324
+
1325
+ 430
1326
+ 431
1327
+ 432
1328
+ 433
1329
+ 434
1330
+ 435</pre>
1331
+ </td>
1332
+ <td>
1333
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 430</span>
1334
+
1335
+ <span class='kw'>def</span> <span class='id identifier rubyid_findShape'>findShape</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='rparen'>)</span>
1336
+ <span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_reverse_each'>reverse_each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_shape'>shape</span><span class='op'>|</span>
1337
+ <span class='kw'>return</span> <span class='id identifier rubyid_shape'>shape</span> <span class='kw'>if</span> <span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_hit?'>hit?</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='rparen'>)</span>
1338
+ <span class='kw'>end</span>
1339
+ <span class='kw'>nil</span>
1340
+ <span class='kw'>end</span></pre>
1341
+ </td>
1342
+ </tr>
1343
+ </table>
1344
+ </div>
1345
+
1346
+ <div class="method_details ">
1347
+ <h3 class="signature " id="killSelection-instance_method">
1348
+
1349
+ #<strong>killSelection</strong>(notify) &#x21d2; <tt>Object</tt>
1350
+
1351
+
1352
+
1353
+
1354
+
1355
+ </h3><div class="docstring">
1356
+ <div class="discussion">
1357
+
1358
+ <p>Kill selection</p>
1359
+
1360
+
1361
+ </div>
1362
+ </div>
1363
+ <div class="tags">
1364
+
1365
+
1366
+ </div><table class="source_code">
1367
+ <tr>
1368
+ <td>
1369
+ <pre class="lines">
1370
+
1371
+
1372
+ 489
1373
+ 490
1374
+ 491
1375
+ 492
1376
+ 493
1377
+ 494
1378
+ 495
1379
+ 496
1380
+ 497
1381
+ 498
1382
+ 499
1383
+ 500
1384
+ 501
1385
+ 502</pre>
1386
+ </td>
1387
+ <td>
1388
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 489</span>
1389
+
1390
+ <span class='kw'>def</span> <span class='id identifier rubyid_killSelection'>killSelection</span><span class='lparen'>(</span><span class='id identifier rubyid_notify'>notify</span><span class='rparen'>)</span>
1391
+ <span class='id identifier rubyid_changes'>changes</span> <span class='op'>=</span> <span class='kw'>false</span>
1392
+ <span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_shape'>shape</span><span class='op'>|</span>
1393
+ <span class='kw'>if</span> <span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_selected?'>selected?</span>
1394
+ <span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_deselect'>deselect</span>
1395
+ <span class='id identifier rubyid_updateShape'>updateShape</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
1396
+ <span class='id identifier rubyid_changes'>changes</span> <span class='op'>=</span> <span class='kw'>true</span>
1397
+ <span class='kw'>if</span> <span class='id identifier rubyid_notify'>notify</span> <span class='op'>&amp;&amp;</span> <span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span> <span class='op'>!=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1398
+ <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='const'>SEL_DESELECTED</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
1399
+ <span class='kw'>end</span>
1400
+ <span class='kw'>end</span>
1401
+ <span class='kw'>end</span>
1402
+ <span class='id identifier rubyid_changes'>changes</span>
1403
+ <span class='kw'>end</span></pre>
1404
+ </td>
1405
+ </tr>
1406
+ </table>
1407
+ </div>
1408
+
1409
+ <div class="method_details ">
1410
+ <h3 class="signature " id="onClicked-instance_method">
1411
+
1412
+ #<strong>onClicked</strong>(sender, sel, ptr) &#x21d2; <tt>Object</tt>
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+ </h3><div class="docstring">
1419
+ <div class="discussion">
1420
+
1421
+ <p>Clicked on canvas</p>
1422
+
1423
+
1424
+ </div>
1425
+ </div>
1426
+ <div class="tags">
1427
+
1428
+
1429
+ </div><table class="source_code">
1430
+ <tr>
1431
+ <td>
1432
+ <pre class="lines">
1433
+
1434
+
1435
+ 622
1436
+ 623
1437
+ 624</pre>
1438
+ </td>
1439
+ <td>
1440
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 622</span>
1441
+
1442
+ <span class='kw'>def</span> <span class='id identifier rubyid_onClicked'>onClicked</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span>
1443
+ <span class='kw'>return</span> <span class='id identifier rubyid_target'>target</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='const'>SEL_CLICKED</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span>
1444
+ <span class='kw'>end</span></pre>
1445
+ </td>
1446
+ </tr>
1447
+ </table>
1448
+ </div>
1449
+
1450
+ <div class="method_details ">
1451
+ <h3 class="signature " id="onCommand-instance_method">
1452
+
1453
+ #<strong>onCommand</strong>(sender, sel, ptr) &#x21d2; <tt>Object</tt>
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+ </h3><div class="docstring">
1460
+ <div class="discussion">
1461
+
1462
+ <p>Command message</p>
1463
+
1464
+
1465
+ </div>
1466
+ </div>
1467
+ <div class="tags">
1468
+
1469
+
1470
+ </div><table class="source_code">
1471
+ <tr>
1472
+ <td>
1473
+ <pre class="lines">
1474
+
1475
+
1476
+ 617
1477
+ 618
1478
+ 619</pre>
1479
+ </td>
1480
+ <td>
1481
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 617</span>
1482
+
1483
+ <span class='kw'>def</span> <span class='id identifier rubyid_onCommand'>onCommand</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span>
1484
+ <span class='kw'>return</span> <span class='id identifier rubyid_target'>target</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='const'>SEL_COMMAND</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span>
1485
+ <span class='kw'>end</span></pre>
1486
+ </td>
1487
+ </tr>
1488
+ </table>
1489
+ </div>
1490
+
1491
+ <div class="method_details ">
1492
+ <h3 class="signature " id="onDoubleClicked-instance_method">
1493
+
1494
+ #<strong>onDoubleClicked</strong>(sender, sel, ptr) &#x21d2; <tt>Object</tt>
1495
+
1496
+
1497
+
1498
+
1499
+
1500
+ </h3><div class="docstring">
1501
+ <div class="discussion">
1502
+
1503
+ <p>Double-clicked on canvas</p>
1504
+
1505
+
1506
+ </div>
1507
+ </div>
1508
+ <div class="tags">
1509
+
1510
+
1511
+ </div><table class="source_code">
1512
+ <tr>
1513
+ <td>
1514
+ <pre class="lines">
1515
+
1516
+
1517
+ 627
1518
+ 628
1519
+ 629</pre>
1520
+ </td>
1521
+ <td>
1522
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 627</span>
1523
+
1524
+ <span class='kw'>def</span> <span class='id identifier rubyid_onDoubleClicked'>onDoubleClicked</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span>
1525
+ <span class='kw'>return</span> <span class='id identifier rubyid_target'>target</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='const'>SEL_DOUBLECLICKED</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span>
1526
+ <span class='kw'>end</span></pre>
1527
+ </td>
1528
+ </tr>
1529
+ </table>
1530
+ </div>
1531
+
1532
+ <div class="method_details ">
1533
+ <h3 class="signature " id="onLeftBtnPress-instance_method">
1534
+
1535
+ #<strong>onLeftBtnPress</strong>(sender, sel, evt) &#x21d2; <tt>Object</tt>
1536
+
1537
+
1538
+
1539
+
1540
+
1541
+ </h3><div class="docstring">
1542
+ <div class="discussion">
1543
+
1544
+ <p>Left button press</p>
1545
+
1546
+
1547
+ </div>
1548
+ </div>
1549
+ <div class="tags">
1550
+
1551
+
1552
+ </div><table class="source_code">
1553
+ <tr>
1554
+ <td>
1555
+ <pre class="lines">
1556
+
1557
+
1558
+ 537
1559
+ 538
1560
+ 539
1561
+ 540
1562
+ 541
1563
+ 542
1564
+ 543
1565
+ 544
1566
+ 545
1567
+ 546
1568
+ 547
1569
+ 548
1570
+ 549
1571
+ 550
1572
+ 551
1573
+ 552
1574
+ 553
1575
+ 554
1576
+ 555
1577
+ 556
1578
+ 557
1579
+ 558
1580
+ 559
1581
+ 560
1582
+ 561
1583
+ 562
1584
+ 563
1585
+ 564
1586
+ 565
1587
+ 566
1588
+ 567
1589
+ 568
1590
+ 569
1591
+ 570
1592
+ 571</pre>
1593
+ </td>
1594
+ <td>
1595
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 537</span>
1596
+
1597
+ <span class='kw'>def</span> <span class='id identifier rubyid_onLeftBtnPress'>onLeftBtnPress</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='rparen'>)</span>
1598
+ <span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='int'>0</span><span class='comma'>,</span> <span class='const'>SEL_FOCUS_SELF</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='rparen'>)</span>
1599
+ <span class='kw'>if</span> <span class='id identifier rubyid_enabled?'>enabled?</span>
1600
+ <span class='id identifier rubyid_grab'>grab</span>
1601
+ <span class='id identifier rubyid_flags'>flags</span> <span class='op'>&amp;=</span> <span class='op'>~</span><span class='const'><span class='object_link'><a href="#FLAG_UPDATE-constant" title="Fox::Canvas::ShapeCanvas::FLAG_UPDATE (constant)">FLAG_UPDATE</a></span></span>
1602
+
1603
+ <span class='comment'># Give target the first chance at handling this
1604
+ </span> <span class='kw'>return</span> <span class='int'>1</span> <span class='kw'>if</span> <span class='id identifier rubyid_target'>target</span> <span class='op'>&amp;&amp;</span> <span class='lparen'>(</span><span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='const'>SEL_LEFTBUTTONPRESS</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='int'>0</span><span class='rparen'>)</span>
1605
+
1606
+ <span class='comment'># Locate shape
1607
+ </span> <span class='id identifier rubyid_shape'>shape</span> <span class='op'>=</span> <span class='id identifier rubyid_findShape'>findShape</span><span class='lparen'>(</span><span class='id identifier rubyid_evt'>evt</span><span class='period'>.</span><span class='id identifier rubyid_win_x'>win_x</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='period'>.</span><span class='id identifier rubyid_win_y'>win_y</span><span class='rparen'>)</span>
1608
+
1609
+ <span class='comment'># No shape here
1610
+ </span> <span class='kw'>if</span> <span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1611
+ <span class='kw'>return</span> <span class='int'>1</span>
1612
+ <span class='kw'>end</span>
1613
+
1614
+ <span class='comment'># Change current shape
1615
+ </span> <span class='ivar'>@currentShape</span> <span class='op'>=</span> <span class='id identifier rubyid_shape'>shape</span>
1616
+
1617
+ <span class='comment'># Change item selection
1618
+ </span> <span class='kw'>if</span> <span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_enabled?'>enabled?</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_selected?'>selected?</span>
1619
+ <span class='id identifier rubyid_selectShape'>selectShape</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span>
1620
+ <span class='kw'>end</span>
1621
+
1622
+ <span class='comment'># Are we dragging?
1623
+ </span> <span class='kw'>if</span> <span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_selected?'>selected?</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_draggable?'>draggable?</span>
1624
+ <span class='id identifier rubyid_flags'>flags</span> <span class='op'>|=</span> <span class='const'><span class='object_link'><a href="#FLAG_TRYDRAG-constant" title="Fox::Canvas::ShapeCanvas::FLAG_TRYDRAG (constant)">FLAG_TRYDRAG</a></span></span>
1625
+ <span class='kw'>end</span>
1626
+
1627
+ <span class='id identifier rubyid_flags'>flags</span> <span class='op'>|=</span> <span class='const'><span class='object_link'><a href="#FLAG_PRESSED-constant" title="Fox::Canvas::ShapeCanvas::FLAG_PRESSED (constant)">FLAG_PRESSED</a></span></span>
1628
+ <span class='kw'>return</span> <span class='int'>1</span>
1629
+ <span class='kw'>end</span>
1630
+ <span class='kw'>return</span> <span class='int'>0</span>
1631
+ <span class='kw'>end</span></pre>
1632
+ </td>
1633
+ </tr>
1634
+ </table>
1635
+ </div>
1636
+
1637
+ <div class="method_details ">
1638
+ <h3 class="signature " id="onLeftBtnRelease-instance_method">
1639
+
1640
+ #<strong>onLeftBtnRelease</strong>(sender, sel, evt) &#x21d2; <tt>Object</tt>
1641
+
1642
+
1643
+
1644
+
1645
+
1646
+ </h3><div class="docstring">
1647
+ <div class="discussion">
1648
+
1649
+ <p>Left button release</p>
1650
+
1651
+
1652
+ </div>
1653
+ </div>
1654
+ <div class="tags">
1655
+
1656
+
1657
+ </div><table class="source_code">
1658
+ <tr>
1659
+ <td>
1660
+ <pre class="lines">
1661
+
1662
+
1663
+ 574
1664
+ 575
1665
+ 576
1666
+ 577
1667
+ 578
1668
+ 579
1669
+ 580
1670
+ 581
1671
+ 582
1672
+ 583
1673
+ 584
1674
+ 585
1675
+ 586
1676
+ 587
1677
+ 588
1678
+ 589
1679
+ 590
1680
+ 591
1681
+ 592
1682
+ 593
1683
+ 594
1684
+ 595
1685
+ 596
1686
+ 597
1687
+ 598
1688
+ 599
1689
+ 600
1690
+ 601
1691
+ 602
1692
+ 603
1693
+ 604
1694
+ 605
1695
+ 606
1696
+ 607
1697
+ 608
1698
+ 609
1699
+ 610
1700
+ 611
1701
+ 612
1702
+ 613
1703
+ 614</pre>
1704
+ </td>
1705
+ <td>
1706
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 574</span>
1707
+
1708
+ <span class='kw'>def</span> <span class='id identifier rubyid_onLeftBtnRelease'>onLeftBtnRelease</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='rparen'>)</span>
1709
+ <span class='id identifier rubyid_flg'>flg</span> <span class='op'>=</span> <span class='ivar'>@flags</span>
1710
+ <span class='kw'>if</span> <span class='id identifier rubyid_enabled?'>enabled?</span>
1711
+ <span class='id identifier rubyid_ungrab'>ungrab</span>
1712
+ <span class='ivar'>@flags</span> <span class='op'>|=</span> <span class='const'><span class='object_link'><a href="#FLAG_UPDATE-constant" title="Fox::Canvas::ShapeCanvas::FLAG_UPDATE (constant)">FLAG_UPDATE</a></span></span>
1713
+ <span class='ivar'>@flags</span> <span class='op'>&amp;=</span> <span class='op'>~</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="#FLAG_PRESSED-constant" title="Fox::Canvas::ShapeCanvas::FLAG_PRESSED (constant)">FLAG_PRESSED</a></span></span><span class='op'>|</span><span class='const'>FLAG_TRYDRAG</span><span class='op'>|</span><span class='const'>FLAG_LASSO</span><span class='op'>|</span><span class='const'>FLAG_DODRAG</span><span class='rparen'>)</span>
1714
+
1715
+ <span class='comment'># First chance callback
1716
+ </span> <span class='kw'>return</span> <span class='int'>1</span> <span class='kw'>if</span> <span class='id identifier rubyid_target'>target</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='const'>SEL_LEFTBUTTONRELEASE</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='int'>0</span>
1717
+
1718
+ <span class='comment'># Was dragging
1719
+ </span> <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_flg'>flg</span> <span class='op'>&amp;</span> <span class='const'><span class='object_link'><a href="#FLAG_DODRAG-constant" title="Fox::Canvas::ShapeCanvas::FLAG_DODRAG (constant)">FLAG_DODRAG</a></span></span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='int'>0</span>
1720
+ <span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='int'>0</span><span class='comma'>,</span> <span class='const'>SEL_ENDDRAG</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='rparen'>)</span>
1721
+ <span class='kw'>return</span> <span class='int'>1</span>
1722
+ <span class='kw'>end</span>
1723
+
1724
+ <span class='comment'># Must have pressed
1725
+ </span> <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_flg'>flg</span> <span class='op'>&amp;</span> <span class='const'><span class='object_link'><a href="#FLAG_PRESSED-constant" title="Fox::Canvas::ShapeCanvas::FLAG_PRESSED (constant)">FLAG_PRESSED</a></span></span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='int'>0</span> <span class='comment'># Change selection
1726
+ </span>
1727
+ <span class='kw'>if</span> <span class='ivar'>@currentShape</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@currentShape</span><span class='period'>.</span><span class='id identifier rubyid_enabled?'>enabled?</span>
1728
+ <span class='id identifier rubyid_deselectShape'>deselectShape</span><span class='lparen'>(</span><span class='ivar'>@currentShape</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span>
1729
+ <span class='kw'>end</span>
1730
+
1731
+ <span class='comment'># Generate clicked callbacks
1732
+ </span> <span class='kw'>if</span> <span class='id identifier rubyid_evt'>evt</span><span class='period'>.</span><span class='id identifier rubyid_click_count'>click_count</span> <span class='op'>==</span> <span class='int'>1</span>
1733
+ <span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='int'>0</span><span class='comma'>,</span> <span class='const'>SEL_CLICKED</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='ivar'>@currentShape</span><span class='rparen'>)</span>
1734
+ <span class='kw'>elsif</span> <span class='id identifier rubyid_evt'>evt</span><span class='period'>.</span><span class='id identifier rubyid_click_count'>click_count</span> <span class='op'>==</span> <span class='int'>2</span>
1735
+ <span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='int'>0</span><span class='comma'>,</span> <span class='const'>SEL_DOUBLECLICKED</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='ivar'>@currentShape</span><span class='rparen'>)</span>
1736
+ <span class='id identifier rubyid_elseif'>elseif</span> <span class='id identifier rubyid_evt'>evt</span><span class='period'>.</span><span class='id identifier rubyid_click_count'>click_count</span> <span class='op'>==</span> <span class='int'>3</span>
1737
+ <span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='int'>0</span><span class='comma'>,</span> <span class='const'>SEL_TRIPLECLICKED</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='ivar'>@currentShape</span><span class='rparen'>)</span>
1738
+ <span class='kw'>end</span>
1739
+
1740
+ <span class='comment'># Generate command callback only when clicked on item
1741
+ </span> <span class='kw'>if</span> <span class='ivar'>@currentShape</span> <span class='op'>&amp;&amp;</span> <span class='ivar'>@currentShape</span><span class='period'>.</span><span class='id identifier rubyid_enabled?'>enabled?</span>
1742
+ <span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='int'>0</span><span class='comma'>,</span> <span class='const'>SEL_COMMAND</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='ivar'>@currentShape</span><span class='rparen'>)</span>
1743
+ <span class='kw'>end</span>
1744
+ <span class='kw'>return</span> <span class='int'>1</span>
1745
+ <span class='kw'>end</span>
1746
+ <span class='kw'>return</span> <span class='int'>0</span>
1747
+ <span class='kw'>end</span>
1748
+ <span class='kw'>end</span></pre>
1749
+ </td>
1750
+ </tr>
1751
+ </table>
1752
+ </div>
1753
+
1754
+ <div class="method_details ">
1755
+ <h3 class="signature " id="onMotion-instance_method">
1756
+
1757
+ #<strong>onMotion</strong>(sender, sel, evt) &#x21d2; <tt>Object</tt>
1758
+
1759
+
1760
+
1761
+
1762
+
1763
+ </h3><div class="docstring">
1764
+ <div class="discussion">
1765
+
1766
+ <p>Motion</p>
1767
+
1768
+
1769
+ </div>
1770
+ </div>
1771
+ <div class="tags">
1772
+
1773
+
1774
+ </div><table class="source_code">
1775
+ <tr>
1776
+ <td>
1777
+ <pre class="lines">
1778
+
1779
+
1780
+ 517
1781
+ 518
1782
+ 519
1783
+ 520
1784
+ 521
1785
+ 522
1786
+ 523
1787
+ 524
1788
+ 525
1789
+ 526
1790
+ 527
1791
+ 528
1792
+ 529
1793
+ 530
1794
+ 531
1795
+ 532
1796
+ 533
1797
+ 534</pre>
1798
+ </td>
1799
+ <td>
1800
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 517</span>
1801
+
1802
+ <span class='kw'>def</span> <span class='id identifier rubyid_onMotion'>onMotion</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='rparen'>)</span>
1803
+ <span class='comment'># Drag and drop mode
1804
+ </span> <span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@flags</span> <span class='op'>&amp;</span> <span class='const'><span class='object_link'><a href="#FLAG_DODRAG-constant" title="Fox::Canvas::ShapeCanvas::FLAG_DODRAG (constant)">FLAG_DODRAG</a></span></span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='int'>0</span>
1805
+ <span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='int'>0</span><span class='comma'>,</span> <span class='const'>SEL_DRAGGED</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='rparen'>)</span>
1806
+ <span class='kw'>return</span> <span class='int'>1</span>
1807
+ <span class='kw'>end</span>
1808
+
1809
+ <span class='comment'># Tentative drag and drop
1810
+ </span> <span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@flags</span> <span class='op'>&amp;</span> <span class='const'><span class='object_link'><a href="#FLAG_TRYDRAG-constant" title="Fox::Canvas::ShapeCanvas::FLAG_TRYDRAG (constant)">FLAG_TRYDRAG</a></span></span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='int'>0</span>
1811
+ <span class='kw'>if</span> <span class='id identifier rubyid_evt'>evt</span><span class='period'>.</span><span class='id identifier rubyid_moved?'>moved?</span>
1812
+ <span class='ivar'>@flags</span> <span class='op'>&amp;=</span> <span class='op'>~</span><span class='const'><span class='object_link'><a href="#FLAG_TRYDRAG-constant" title="Fox::Canvas::ShapeCanvas::FLAG_TRYDRAG (constant)">FLAG_TRYDRAG</a></span></span>
1813
+ <span class='kw'>if</span> <span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='id identifier rubyid_this'>this</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='int'>0</span><span class='comma'>,</span> <span class='const'>SEL_BEGINDRAG</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='int'>0</span>
1814
+ <span class='ivar'>@flags</span> <span class='op'>|=</span> <span class='const'><span class='object_link'><a href="#FLAG_DODRAG-constant" title="Fox::Canvas::ShapeCanvas::FLAG_DODRAG (constant)">FLAG_DODRAG</a></span></span>
1815
+ <span class='kw'>end</span>
1816
+ <span class='kw'>end</span>
1817
+ <span class='kw'>return</span> <span class='int'>1</span>
1818
+ <span class='kw'>end</span>
1819
+ <span class='kw'>end</span></pre>
1820
+ </td>
1821
+ </tr>
1822
+ </table>
1823
+ </div>
1824
+
1825
+ <div class="method_details ">
1826
+ <h3 class="signature " id="onPaint-instance_method">
1827
+
1828
+ #<strong>onPaint</strong>(sender, sel, evt) &#x21d2; <tt>Object</tt>
1829
+
1830
+
1831
+
1832
+
1833
+
1834
+ </h3><div class="docstring">
1835
+ <div class="discussion">
1836
+
1837
+ <p>Paint</p>
1838
+
1839
+
1840
+ </div>
1841
+ </div>
1842
+ <div class="tags">
1843
+
1844
+
1845
+ </div><table class="source_code">
1846
+ <tr>
1847
+ <td>
1848
+ <pre class="lines">
1849
+
1850
+
1851
+ 505
1852
+ 506
1853
+ 507
1854
+ 508
1855
+ 509
1856
+ 510
1857
+ 511
1858
+ 512
1859
+ 513
1860
+ 514</pre>
1861
+ </td>
1862
+ <td>
1863
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 505</span>
1864
+
1865
+ <span class='kw'>def</span> <span class='id identifier rubyid_onPaint'>onPaint</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='rparen'>)</span>
1866
+ <span class='id identifier rubyid_dc'>dc</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../FXDCWindow.html" title="Fox::FXDCWindow (class)">FXDCWindow</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../FXDCWindow.html#initialize-instance_method" title="Fox::FXDCWindow#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='rparen'>)</span>
1867
+ <span class='id identifier rubyid_dc'>dc</span><span class='period'>.</span><span class='id identifier rubyid_foreground'>foreground</span> <span class='op'>=</span> <span class='id identifier rubyid_backColor'>backColor</span>
1868
+ <span class='id identifier rubyid_dc'>dc</span><span class='period'>.</span><span class='id identifier rubyid_fillRectangle'>fillRectangle</span><span class='lparen'>(</span><span class='id identifier rubyid_evt'>evt</span><span class='period'>.</span><span class='id identifier rubyid_rect'>rect</span><span class='period'>.</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='period'>.</span><span class='id identifier rubyid_rect'>rect</span><span class='period'>.</span><span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='period'>.</span><span class='id identifier rubyid_rect'>rect</span><span class='period'>.</span><span class='id identifier rubyid_w'>w</span><span class='comma'>,</span> <span class='id identifier rubyid_evt'>evt</span><span class='period'>.</span><span class='id identifier rubyid_rect'>rect</span><span class='period'>.</span><span class='id identifier rubyid_h'>h</span><span class='rparen'>)</span>
1869
+ <span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_shape'>shape</span><span class='op'>|</span>
1870
+ <span class='id identifier rubyid_shape'>shape</span><span class='period'>.</span><span class='id identifier rubyid_draw'>draw</span><span class='lparen'>(</span><span class='id identifier rubyid_dc'>dc</span><span class='rparen'>)</span>
1871
+ <span class='kw'>end</span>
1872
+ <span class='id identifier rubyid_dc'>dc</span><span class='period'>.</span><span class='id identifier rubyid_end'>end</span>
1873
+ <span class='kw'>return</span> <span class='int'>1</span>
1874
+ <span class='kw'>end</span></pre>
1875
+ </td>
1876
+ </tr>
1877
+ </table>
1878
+ </div>
1879
+
1880
+ <div class="method_details ">
1881
+ <h3 class="signature " id="onTripleClicked-instance_method">
1882
+
1883
+ #<strong>onTripleClicked</strong>(sender, sel, ptr) &#x21d2; <tt>Object</tt>
1884
+
1885
+
1886
+
1887
+
1888
+
1889
+ </h3><div class="docstring">
1890
+ <div class="discussion">
1891
+
1892
+ <p>Triple-clicked on canvas</p>
1893
+
1894
+
1895
+ </div>
1896
+ </div>
1897
+ <div class="tags">
1898
+
1899
+
1900
+ </div><table class="source_code">
1901
+ <tr>
1902
+ <td>
1903
+ <pre class="lines">
1904
+
1905
+
1906
+ 632
1907
+ 633
1908
+ 634</pre>
1909
+ </td>
1910
+ <td>
1911
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 632</span>
1912
+
1913
+ <span class='kw'>def</span> <span class='id identifier rubyid_onTripleClicked'>onTripleClicked</span><span class='lparen'>(</span><span class='id identifier rubyid_sender'>sender</span><span class='comma'>,</span> <span class='id identifier rubyid_sel'>sel</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span>
1914
+ <span class='kw'>return</span> <span class='id identifier rubyid_target'>target</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_target'>target</span><span class='period'>.</span><span class='id identifier rubyid_handle'>handle</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../../Fox.html" title="Fox (module)">Fox</a></span></span><span class='period'>.</span><span class='const'>MKUINT</span><span class='lparen'>(</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='const'>SEL_TRIPLECLICKED</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_ptr'>ptr</span><span class='rparen'>)</span>
1915
+ <span class='kw'>end</span></pre>
1916
+ </td>
1917
+ </tr>
1918
+ </table>
1919
+ </div>
1920
+
1921
+ <div class="method_details ">
1922
+ <h3 class="signature " id="selectShape-instance_method">
1923
+
1924
+ #<strong>selectShape</strong>(shape, notify = false) &#x21d2; <tt>Object</tt>
1925
+
1926
+
1927
+
1928
+
1929
+
1930
+ </h3><div class="docstring">
1931
+ <div class="discussion">
1932
+
1933
+ <p>Select one shape</p>
1934
+
1935
+
1936
+ </div>
1937
+ </div>
1938
+ <div class="tags">
1939
+
1940
+
1941
+ </div><table class="source_code">
1942
+ <tr>
1943
+ <td>
1944
+ <pre class="lines">
1945
+
1946
+
1947
+ 471
1948
+ 472
1949
+ 473
1950
+ 474
1951
+ 475
1952
+ 476
1953
+ 477</pre>
1954
+ </td>
1955
+ <td>
1956
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 471</span>
1957
+
1958
+ <span class='kw'>def</span> <span class='id identifier rubyid_selectShape'>selectShape</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='id identifier rubyid_notify'>notify</span><span class='op'>=</span><span class='kw'>false</span><span class='rparen'>)</span>
1959
+ <span class='kw'>if</span> <span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
1960
+ <span class='ivar'>@selectionPolicy</span><span class='period'>.</span><span class='id identifier rubyid_selectShape'>selectShape</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='comma'>,</span> <span class='id identifier rubyid_notify'>notify</span><span class='rparen'>)</span>
1961
+ <span class='kw'>else</span>
1962
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="CanvasError.html" title="Fox::Canvas::CanvasError (class)">CanvasError</a></span></span>
1963
+ <span class='kw'>end</span>
1964
+ <span class='kw'>end</span></pre>
1965
+ </td>
1966
+ </tr>
1967
+ </table>
1968
+ </div>
1969
+
1970
+ <div class="method_details ">
1971
+ <h3 class="signature " id="updateShape-instance_method">
1972
+
1973
+ #<strong>updateShape</strong>(shape) &#x21d2; <tt>Object</tt>
1974
+
1975
+
1976
+
1977
+
1978
+
1979
+ </h3><div class="docstring">
1980
+ <div class="discussion">
1981
+
1982
+ <p>Repaint</p>
1983
+
1984
+
1985
+ </div>
1986
+ </div>
1987
+ <div class="tags">
1988
+
1989
+
1990
+ </div><table class="source_code">
1991
+ <tr>
1992
+ <td>
1993
+ <pre class="lines">
1994
+
1995
+
1996
+ 438
1997
+ 439
1998
+ 440
1999
+ 441
2000
+ 442
2001
+ 443
2002
+ 444</pre>
2003
+ </td>
2004
+ <td>
2005
+ <pre class="code"><span class="info file"># File 'lib/fox16/canvas.rb', line 438</span>
2006
+
2007
+ <span class='kw'>def</span> <span class='id identifier rubyid_updateShape'>updateShape</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
2008
+ <span class='kw'>if</span> <span class='ivar'>@scene</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_shape'>shape</span><span class='rparen'>)</span>
2009
+ <span class='id identifier rubyid_update'>update</span>
2010
+ <span class='kw'>else</span>
2011
+ <span class='id identifier rubyid_raise'>raise</span> <span class='const'><span class='object_link'><a href="CanvasError.html" title="Fox::Canvas::CanvasError (class)">CanvasError</a></span></span>
2012
+ <span class='kw'>end</span>
2013
+ <span class='kw'>end</span></pre>
2014
+ </td>
2015
+ </tr>
2016
+ </table>
2017
+ </div>
2018
+
2019
+ </div>
2020
+
2021
+ </div>
2022
+
2023
+ <div id="footer">
2024
+ Generated on Fri Nov 27 21:11:35 2020 by
2025
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2026
+ 0.9.24 (ruby-2.7.2).
2027
+ </div>
2028
+
2029
+ </div>
2030
+ </body>
2031
+ </html>