fxruby 1.6.22.pre2-x86-mingw32 → 1.6.22.pre3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (477) hide show
  1. data/History.txt +1 -1
  2. data/README.txt +10 -10
  3. data/Rakefile +3 -2
  4. data/doap.rdf +2 -2
  5. data/examples/babelfish.rb +2 -2
  6. data/examples/bounce.rb +20 -20
  7. data/examples/charts.rb +2 -2
  8. data/examples/custom_table_item.rb +3 -3
  9. data/examples/datatarget.rb +2 -2
  10. data/examples/dctest.rb +51 -51
  11. data/examples/dialog.rb +14 -14
  12. data/examples/dilbert.rb +4 -4
  13. data/examples/dirlist.rb +6 -6
  14. data/examples/dragdrop.rb +7 -7
  15. data/examples/dragsource.rb +6 -6
  16. data/examples/dropsite.rb +5 -5
  17. data/examples/foursplit.rb +6 -6
  18. data/examples/gltest.rb +40 -40
  19. data/examples/glviewer.rb +16 -16
  20. data/examples/groupbox.rb +41 -41
  21. data/examples/header.rb +6 -6
  22. data/examples/hello2.rb +2 -2
  23. data/examples/iconlist.rb +10 -10
  24. data/examples/image.rb +26 -26
  25. data/examples/imageviewer.rb +31 -31
  26. data/examples/inputs.rb +2 -2
  27. data/examples/mditest.rb +12 -12
  28. data/examples/pig.rb +8 -8
  29. data/examples/raabrowser.rb +5 -5
  30. data/examples/ratio.rb +9 -9
  31. data/examples/rulerview.rb +2 -2
  32. data/examples/scintilla-test.rb +6 -6
  33. data/examples/scribble-orig.rb +3 -3
  34. data/examples/scribble.rb +3 -3
  35. data/examples/shutter.rb +6 -6
  36. data/examples/splitter.rb +15 -15
  37. data/examples/styledtext.rb +10 -10
  38. data/examples/tabbook.rb +14 -14
  39. data/examples/table.rb +21 -21
  40. data/examples/textedit/helpwindow.rb +6 -6
  41. data/examples/textedit/textedit.rb +72 -72
  42. data/ext/fox16/FXRuby.cpp +48 -5
  43. data/ext/fox16/core_wrap.cpp +1 -1
  44. data/ext/fox16/iconlist_wrap.cpp +1 -1
  45. data/ext/fox16/icons_wrap.cpp +1 -1
  46. data/ext/fox16/include/FXMemoryBuffer.h +3 -3
  47. data/ext/fox16/include/FXRbApp.h +1 -1
  48. data/ext/fox16/include/FXRbBitmap.h +1 -1
  49. data/ext/fox16/include/FXRbBitmapFrame.h +2 -2
  50. data/ext/fox16/include/FXRbBitmapVirtuals.h +2 -2
  51. data/ext/fox16/include/FXRbDCPrint.h +1 -1
  52. data/ext/fox16/include/FXRbDCVirtuals.h +24 -24
  53. data/ext/fox16/include/FXRbDCWindow.h +1 -1
  54. data/ext/fox16/include/FXRbDockBar.h +1 -1
  55. data/ext/fox16/include/FXRbFileDict.h +2 -2
  56. data/ext/fox16/include/FXRbFoldingList.h +1 -1
  57. data/ext/fox16/include/FXRbFontVirtuals.h +9 -9
  58. data/ext/fox16/include/FXRbGLViewerVirtuals.h +2 -2
  59. data/ext/fox16/include/FXRbIconItemVirtuals.h +8 -8
  60. data/ext/fox16/include/FXRbIconListVirtuals.h +7 -7
  61. data/ext/fox16/include/FXRbIconSourceVirtuals.h +1 -1
  62. data/ext/fox16/include/FXRbImageFrame.h +2 -2
  63. data/ext/fox16/include/FXRbImageVirtuals.h +1 -1
  64. data/ext/fox16/include/FXRbListVirtuals.h +4 -4
  65. data/ext/fox16/include/FXRbMenuBar.h +1 -1
  66. data/ext/fox16/include/FXRbPopupVirtuals.h +1 -1
  67. data/ext/fox16/include/FXRbRecentFiles.h +1 -1
  68. data/ext/fox16/include/FXRbRuler.h +3 -3
  69. data/ext/fox16/include/FXRbRulerView.h +3 -3
  70. data/ext/fox16/include/FXRbScintilla.h +1 -1
  71. data/ext/fox16/include/FXRbSeparator.h +2 -2
  72. data/ext/fox16/include/FXRbTableItemVirtuals.h +8 -8
  73. data/ext/fox16/include/FXRbTableVirtuals.h +13 -13
  74. data/ext/fox16/include/FXRbText.h +2 -2
  75. data/ext/fox16/include/FXRbTextVirtuals.h +3 -3
  76. data/ext/fox16/include/FXRbToolBar.h +1 -1
  77. data/ext/fox16/include/FXRbToolBarGrip.h +1 -1
  78. data/ext/fox16/include/FXRbToolBarTab.h +1 -1
  79. data/ext/fox16/include/FXRbTreeList.h +1 -1
  80. data/ext/fox16/include/FXRbTreeListVirtuals.h +4 -4
  81. data/ext/fox16/include/FXRbWindow.h +3 -3
  82. data/ext/fox16/include/FXRbWizard.h +2 -2
  83. data/ext/fox16/include/FXRuby.h +8 -4
  84. data/ext/fox16/librb.c +12 -12
  85. data/ext/fox16/list_wrap.cpp +1 -1
  86. data/ext/fox16/make_impl.rb +5 -5
  87. data/ext/fox16/markfuncs.cpp +228 -220
  88. data/ext/fox16/scintilla_wrap.cpp +1 -1
  89. data/ext/fox16/treelist_wrap.cpp +4 -4
  90. data/ext/fox16/ui_wrap.cpp +2 -2
  91. data/ext/fox16/unregisterOwnedObjects.cpp +3 -3
  92. data/lib/1.8/fox16.so +0 -0
  93. data/lib/1.9/fox16.so +0 -0
  94. data/lib/fox16/accel_table.rb +1 -1
  95. data/lib/fox16/aliases.rb +3 -3
  96. data/lib/fox16/calendar.rb +21 -21
  97. data/lib/fox16/chore.rb +2 -2
  98. data/lib/fox16/core.rb +70 -70
  99. data/lib/fox16/dict.rb +1 -1
  100. data/lib/fox16/execute_nonmodal.rb +1 -1
  101. data/lib/fox16/glgroup.rb +16 -16
  102. data/lib/fox16/glshapes.rb +26 -26
  103. data/lib/fox16/input.rb +4 -4
  104. data/lib/fox16/irb.rb +2 -2
  105. data/lib/fox16/iterators.rb +2 -2
  106. data/lib/fox16/keys.rb +34 -34
  107. data/lib/fox16/kwargs.rb +927 -927
  108. data/lib/fox16/pseudokeyboard.rb +1 -1
  109. data/lib/fox16/pseudomouse.rb +1 -1
  110. data/lib/fox16/responder2.rb +4 -4
  111. data/lib/fox16/scintilla.rb +2 -2
  112. data/lib/fox16/signal.rb +4 -4
  113. data/lib/fox16/splashscreen.rb +3 -3
  114. data/lib/fox16/timeout.rb +3 -3
  115. data/lib/fox16/undolist.rb +9 -9
  116. data/lib/fox16/version.rb +1 -1
  117. data/rdoc-sources/FX4Splitter.rb +9 -9
  118. data/rdoc-sources/FX7Segment.rb +9 -9
  119. data/rdoc-sources/FXAccelTable.rb +1 -1
  120. data/rdoc-sources/FXApp.rb +50 -50
  121. data/rdoc-sources/FXBMPIcon.rb +3 -3
  122. data/rdoc-sources/FXBMPImage.rb +2 -2
  123. data/rdoc-sources/FXBitmap.rb +11 -11
  124. data/rdoc-sources/FXBitmapFrame.rb +5 -5
  125. data/rdoc-sources/FXBitmapView.rb +2 -2
  126. data/rdoc-sources/FXButton.rb +2 -2
  127. data/rdoc-sources/FXCheckButton.rb +5 -5
  128. data/rdoc-sources/FXColorBar.rb +5 -5
  129. data/rdoc-sources/FXColorDialog.rb +2 -2
  130. data/rdoc-sources/FXColorList.rb +2 -2
  131. data/rdoc-sources/FXColorRing.rb +8 -8
  132. data/rdoc-sources/FXColorSelector.rb +4 -4
  133. data/rdoc-sources/FXColorWell.rb +4 -4
  134. data/rdoc-sources/FXColorWheel.rb +6 -6
  135. data/rdoc-sources/FXComboBox.rb +17 -17
  136. data/rdoc-sources/FXComposite.rb +2 -2
  137. data/rdoc-sources/FXCursor.rb +7 -7
  138. data/rdoc-sources/FXDC.rb +67 -67
  139. data/rdoc-sources/FXDCPrint.rb +22 -22
  140. data/rdoc-sources/FXDCWindow.rb +1 -1
  141. data/rdoc-sources/FXDataTarget.rb +2 -2
  142. data/rdoc-sources/FXDebugTarget.rb +1 -1
  143. data/rdoc-sources/FXDelegator.rb +1 -1
  144. data/rdoc-sources/FXDial.rb +8 -8
  145. data/rdoc-sources/FXDict.rb +7 -7
  146. data/rdoc-sources/FXDirBox.rb +3 -3
  147. data/rdoc-sources/FXDirDialog.rb +7 -7
  148. data/rdoc-sources/FXDirList.rb +21 -21
  149. data/rdoc-sources/FXDirSelector.rb +8 -8
  150. data/rdoc-sources/FXDockBar.rb +5 -5
  151. data/rdoc-sources/FXDockHandler.rb +3 -3
  152. data/rdoc-sources/FXDockSite.rb +2 -2
  153. data/rdoc-sources/FXDockTitle.rb +3 -3
  154. data/rdoc-sources/FXDocument.rb +3 -3
  155. data/rdoc-sources/FXDragCorner.rb +3 -3
  156. data/rdoc-sources/FXDrawable.rb +3 -3
  157. data/rdoc-sources/FXDriveBox.rb +4 -4
  158. data/rdoc-sources/FXExtentd.rb +2 -2
  159. data/rdoc-sources/FXExtentf.rb +2 -2
  160. data/rdoc-sources/FXFileDialog.rb +21 -21
  161. data/rdoc-sources/FXFileDict.rb +17 -17
  162. data/rdoc-sources/FXFileList.rb +32 -32
  163. data/rdoc-sources/FXFileSelector.rb +20 -20
  164. data/rdoc-sources/FXFileStream.rb +1 -1
  165. data/rdoc-sources/FXFoldingList.rb +53 -53
  166. data/rdoc-sources/FXFont.rb +38 -38
  167. data/rdoc-sources/FXFrame.rb +11 -11
  168. data/rdoc-sources/FXGIFCursor.rb +3 -3
  169. data/rdoc-sources/FXGLCanvas.rb +2 -2
  170. data/rdoc-sources/FXGLContext.rb +6 -6
  171. data/rdoc-sources/FXGLObject.rb +6 -6
  172. data/rdoc-sources/FXGLShape.rb +3 -3
  173. data/rdoc-sources/FXGLViewer.rb +54 -54
  174. data/rdoc-sources/FXGLVisual.rb +13 -13
  175. data/rdoc-sources/FXGradientBar.rb +15 -15
  176. data/rdoc-sources/FXGroupBox.rb +4 -4
  177. data/rdoc-sources/FXHeader.rb +44 -44
  178. data/rdoc-sources/FXICOIcon.rb +1 -1
  179. data/rdoc-sources/FXICOImage.rb +1 -1
  180. data/rdoc-sources/FXIconDict.rb +1 -1
  181. data/rdoc-sources/FXIconList.rb +69 -69
  182. data/rdoc-sources/FXIconSource.rb +2 -2
  183. data/rdoc-sources/FXId.rb +1 -1
  184. data/rdoc-sources/FXImage.rb +11 -11
  185. data/rdoc-sources/FXImageFrame.rb +3 -3
  186. data/rdoc-sources/FXImageView.rb +2 -2
  187. data/rdoc-sources/FXInputDialog.rb +6 -6
  188. data/rdoc-sources/FXJPGIcon.rb +3 -3
  189. data/rdoc-sources/FXJPGImage.rb +2 -2
  190. data/rdoc-sources/FXKnob.rb +9 -9
  191. data/rdoc-sources/FXLabel.rb +8 -8
  192. data/rdoc-sources/FXList.rb +28 -28
  193. data/rdoc-sources/FXListBox.rb +21 -21
  194. data/rdoc-sources/FXMDIChild.rb +11 -11
  195. data/rdoc-sources/FXMDIClient.rb +5 -5
  196. data/rdoc-sources/FXMatrix.rb +6 -6
  197. data/rdoc-sources/FXMemoryBuffer.rb +1 -1
  198. data/rdoc-sources/FXMemoryStream.rb +3 -3
  199. data/rdoc-sources/FXMenuBar.rb +1 -1
  200. data/rdoc-sources/FXMenuButton.rb +7 -7
  201. data/rdoc-sources/FXMenuCaption.rb +10 -10
  202. data/rdoc-sources/FXMenuCheck.rb +1 -1
  203. data/rdoc-sources/FXMenuRadio.rb +1 -1
  204. data/rdoc-sources/FXMenuSeparator.rb +1 -1
  205. data/rdoc-sources/FXMessageBox.rb +3 -3
  206. data/rdoc-sources/FXOptionMenu.rb +9 -9
  207. data/rdoc-sources/FXPCXIcon.rb +2 -2
  208. data/rdoc-sources/FXPCXImage.rb +1 -1
  209. data/rdoc-sources/FXPNGIcon.rb +3 -3
  210. data/rdoc-sources/FXPNGImage.rb +1 -1
  211. data/rdoc-sources/FXPPMIcon.rb +2 -2
  212. data/rdoc-sources/FXPPMImage.rb +1 -1
  213. data/rdoc-sources/FXPacker.rb +13 -13
  214. data/rdoc-sources/FXPopup.rb +11 -11
  215. data/rdoc-sources/FXProgressBar.rb +7 -7
  216. data/rdoc-sources/FXProgressDialog.rb +3 -3
  217. data/rdoc-sources/FXQuatd.rb +17 -17
  218. data/rdoc-sources/FXQuatf.rb +18 -18
  219. data/rdoc-sources/FXRGBIcon.rb +3 -3
  220. data/rdoc-sources/FXRGBImage.rb +1 -1
  221. data/rdoc-sources/FXRadioButton.rb +4 -4
  222. data/rdoc-sources/FXRanged.rb +1 -1
  223. data/rdoc-sources/FXRangef.rb +1 -1
  224. data/rdoc-sources/FXRealSlider.rb +7 -7
  225. data/rdoc-sources/FXRealSpinner.rb +11 -11
  226. data/rdoc-sources/FXRecentFiles.rb +8 -8
  227. data/rdoc-sources/FXRectangle.rb +12 -12
  228. data/rdoc-sources/FXRegion.rb +15 -15
  229. data/rdoc-sources/FXRegistry.rb +4 -4
  230. data/rdoc-sources/FXReplaceDialog.rb +3 -3
  231. data/rdoc-sources/FXRuler.rb +18 -18
  232. data/rdoc-sources/FXRulerView.rb +38 -38
  233. data/rdoc-sources/FXScintilla.rb +16 -16
  234. data/rdoc-sources/FXScrollArea.rb +9 -9
  235. data/rdoc-sources/FXScrollBar.rb +8 -8
  236. data/rdoc-sources/FXScrollPane.rb +1 -1
  237. data/rdoc-sources/FXScrollWindow.rb +5 -5
  238. data/rdoc-sources/FXSeparator.rb +1 -1
  239. data/rdoc-sources/FXSettings.rb +1 -1
  240. data/rdoc-sources/FXShutter.rb +3 -3
  241. data/rdoc-sources/FXSize.rb +4 -4
  242. data/rdoc-sources/FXSlider.rb +7 -7
  243. data/rdoc-sources/FXSphered.rb +21 -21
  244. data/rdoc-sources/FXSpheref.rb +20 -20
  245. data/rdoc-sources/FXSpinner.rb +12 -12
  246. data/rdoc-sources/FXSplashWindow.rb +1 -1
  247. data/rdoc-sources/FXSplitter.rb +6 -6
  248. data/rdoc-sources/FXSpring.rb +2 -2
  249. data/rdoc-sources/FXStatusBar.rb +4 -4
  250. data/rdoc-sources/FXStatusLine.rb +5 -5
  251. data/rdoc-sources/FXStream.rb +8 -8
  252. data/rdoc-sources/FXStringDict.rb +5 -5
  253. data/rdoc-sources/FXSwitcher.rb +2 -2
  254. data/rdoc-sources/FXTGAIcon.rb +3 -3
  255. data/rdoc-sources/FXTGAImage.rb +1 -1
  256. data/rdoc-sources/FXTIFIcon.rb +2 -2
  257. data/rdoc-sources/FXTIFImage.rb +2 -2
  258. data/rdoc-sources/FXTabBar.rb +2 -2
  259. data/rdoc-sources/FXTable.rb +131 -131
  260. data/rdoc-sources/FXText.rb +48 -48
  261. data/rdoc-sources/FXTextField.rb +9 -9
  262. data/rdoc-sources/FXToolBar.rb +1 -1
  263. data/rdoc-sources/FXToolBarGrip.rb +1 -1
  264. data/rdoc-sources/FXToolBarShell.rb +7 -7
  265. data/rdoc-sources/FXToolBarTab.rb +3 -3
  266. data/rdoc-sources/FXToolTip.rb +1 -1
  267. data/rdoc-sources/FXTopWindow.rb +17 -17
  268. data/rdoc-sources/FXTranslator.rb +5 -5
  269. data/rdoc-sources/FXTreeList.rb +50 -50
  270. data/rdoc-sources/FXTreeListBox.rb +16 -16
  271. data/rdoc-sources/FXVec2d.rb +5 -5
  272. data/rdoc-sources/FXVec2f.rb +5 -5
  273. data/rdoc-sources/FXVec3d.rb +8 -8
  274. data/rdoc-sources/FXVec3f.rb +8 -8
  275. data/rdoc-sources/FXVec4d.rb +8 -8
  276. data/rdoc-sources/FXVec4f.rb +8 -8
  277. data/rdoc-sources/FXVisual.rb +3 -3
  278. data/rdoc-sources/FXWindow.rb +99 -99
  279. data/rdoc-sources/FXWizard.rb +8 -8
  280. data/rdoc-sources/FXXBMIcon.rb +2 -2
  281. data/rdoc-sources/FXXBMImage.rb +1 -1
  282. data/rdoc-sources/FXXPMIcon.rb +2 -2
  283. data/rdoc-sources/FXXPMImage.rb +1 -1
  284. data/rdoc-sources/fxdefs.rb +17 -17
  285. data/scripts/generate_kwargs_lib.rb +22 -22
  286. data/scripts/iface.rb +1 -1
  287. data/swig-interfaces/FX4Splitter.i +5 -5
  288. data/swig-interfaces/FX7Segment.i +5 -5
  289. data/swig-interfaces/FXApp.i +10 -10
  290. data/swig-interfaces/FXBMPIcon.i +2 -2
  291. data/swig-interfaces/FXBitmap.i +3 -3
  292. data/swig-interfaces/FXBitmapFrame.i +1 -1
  293. data/swig-interfaces/FXBitmapView.i +1 -1
  294. data/swig-interfaces/FXCanvas.i +1 -1
  295. data/swig-interfaces/FXCheckButton.i +2 -2
  296. data/swig-interfaces/FXChoiceBox.i +2 -2
  297. data/swig-interfaces/FXColorBar.i +7 -7
  298. data/swig-interfaces/FXColorList.i +5 -5
  299. data/swig-interfaces/FXColorWell.i +1 -1
  300. data/swig-interfaces/FXColorWheel.i +6 -6
  301. data/swig-interfaces/FXComboBox.i +4 -4
  302. data/swig-interfaces/FXCursor.i +4 -4
  303. data/swig-interfaces/FXDC.i +23 -23
  304. data/swig-interfaces/FXDCPrint.i +5 -5
  305. data/swig-interfaces/FXDCWindow.i +8 -8
  306. data/swig-interfaces/FXDataTarget.i +5 -5
  307. data/swig-interfaces/FXDebugTarget.i +1 -1
  308. data/swig-interfaces/FXDelegator.i +3 -3
  309. data/swig-interfaces/FXDial.i +8 -8
  310. data/swig-interfaces/FXDialogBox.i +3 -3
  311. data/swig-interfaces/FXDict.i +14 -14
  312. data/swig-interfaces/FXDirBox.i +1 -1
  313. data/swig-interfaces/FXDirDialog.i +2 -2
  314. data/swig-interfaces/FXDirList.i +16 -16
  315. data/swig-interfaces/FXDirSelector.i +2 -2
  316. data/swig-interfaces/FXDockBar.i +1 -1
  317. data/swig-interfaces/FXDockHandler.i +1 -1
  318. data/swig-interfaces/FXDockSite.i +1 -1
  319. data/swig-interfaces/FXDockTitle.i +1 -1
  320. data/swig-interfaces/FXDocument.i +1 -1
  321. data/swig-interfaces/FXDragCorner.i +3 -3
  322. data/swig-interfaces/FXDriveBox.i +1 -1
  323. data/swig-interfaces/FXFileDialog.i +8 -8
  324. data/swig-interfaces/FXFileDict.i +2 -2
  325. data/swig-interfaces/FXFileList.i +11 -11
  326. data/swig-interfaces/FXFileSelector.i +4 -4
  327. data/swig-interfaces/FXFoldingList.i +7 -7
  328. data/swig-interfaces/FXFont.i +20 -20
  329. data/swig-interfaces/FXFrame.i +3 -3
  330. data/swig-interfaces/FXGLCanvas.i +3 -3
  331. data/swig-interfaces/FXGLContext.i +7 -7
  332. data/swig-interfaces/FXGLObject.i +1 -1
  333. data/swig-interfaces/FXGLShape.i +6 -6
  334. data/swig-interfaces/FXGLViewer.i +40 -40
  335. data/swig-interfaces/FXGLVisual.i +2 -2
  336. data/swig-interfaces/FXGradientBar.i +4 -4
  337. data/swig-interfaces/FXGroupBox.i +3 -3
  338. data/swig-interfaces/FXHeader.i +7 -7
  339. data/swig-interfaces/FXIcon.i +4 -4
  340. data/swig-interfaces/FXIconDict.i +1 -1
  341. data/swig-interfaces/FXIconList.i +46 -46
  342. data/swig-interfaces/FXImage.i +2 -2
  343. data/swig-interfaces/FXImageView.i +1 -1
  344. data/swig-interfaces/FXInputDialog.i +3 -3
  345. data/swig-interfaces/FXJPGIcon.i +3 -3
  346. data/swig-interfaces/FXJPGImage.i +2 -2
  347. data/swig-interfaces/FXKnob.i +2 -2
  348. data/swig-interfaces/FXLabel.i +2 -2
  349. data/swig-interfaces/FXList.i +35 -35
  350. data/swig-interfaces/FXListBox.i +5 -5
  351. data/swig-interfaces/FXMDIButton.i +5 -5
  352. data/swig-interfaces/FXMDIChild.i +12 -12
  353. data/swig-interfaces/FXMDIClient.i +2 -2
  354. data/swig-interfaces/FXMat4d.i +2 -2
  355. data/swig-interfaces/FXMat4f.i +5 -5
  356. data/swig-interfaces/FXMatrix.i +12 -12
  357. data/swig-interfaces/FXMemoryBuffer.i +4 -4
  358. data/swig-interfaces/FXMenuBar.i +3 -3
  359. data/swig-interfaces/FXMenuButton.i +7 -7
  360. data/swig-interfaces/FXMenuCaption.i +4 -4
  361. data/swig-interfaces/FXMenuCommand.i +1 -1
  362. data/swig-interfaces/FXMenuPane.i +1 -1
  363. data/swig-interfaces/FXMenuRadio.i +1 -1
  364. data/swig-interfaces/FXMenuSeparator.i +1 -1
  365. data/swig-interfaces/FXMessageBox.i +1 -1
  366. data/swig-interfaces/FXOptionMenu.i +6 -6
  367. data/swig-interfaces/FXPNGIcon.i +2 -2
  368. data/swig-interfaces/FXPPMIcon.i +2 -2
  369. data/swig-interfaces/FXPacker.i +6 -6
  370. data/swig-interfaces/FXPopup.i +13 -13
  371. data/swig-interfaces/FXProgressBar.i +12 -12
  372. data/swig-interfaces/FXProgressDialog.i +5 -5
  373. data/swig-interfaces/FXQuatd.i +7 -7
  374. data/swig-interfaces/FXQuatf.i +1 -1
  375. data/swig-interfaces/FXRadioButton.i +4 -4
  376. data/swig-interfaces/FXRanged.i +4 -4
  377. data/swig-interfaces/FXRangef.i +5 -5
  378. data/swig-interfaces/FXRealSlider.i +10 -10
  379. data/swig-interfaces/FXRealSpinner.i +17 -17
  380. data/swig-interfaces/FXRecentFiles.i +1 -1
  381. data/swig-interfaces/FXRegion.i +4 -4
  382. data/swig-interfaces/FXRegistry.i +3 -3
  383. data/swig-interfaces/FXReplaceDialog.i +1 -1
  384. data/swig-interfaces/FXScintilla.i +3 -3
  385. data/swig-interfaces/FXScrollArea.i +7 -7
  386. data/swig-interfaces/FXScrollBar.i +3 -3
  387. data/swig-interfaces/FXScrollWindow.i +6 -6
  388. data/swig-interfaces/FXSearchDialog.i +1 -1
  389. data/swig-interfaces/FXSeparator.i +3 -3
  390. data/swig-interfaces/FXSettings.i +3 -3
  391. data/swig-interfaces/FXShell.i +1 -1
  392. data/swig-interfaces/FXSlider.i +11 -11
  393. data/swig-interfaces/FXSphered.i +1 -1
  394. data/swig-interfaces/FXSpheref.i +1 -1
  395. data/swig-interfaces/FXSpinner.i +15 -15
  396. data/swig-interfaces/FXSplitter.i +6 -6
  397. data/swig-interfaces/FXStatusBar.i +4 -4
  398. data/swig-interfaces/FXStatusLine.i +5 -5
  399. data/swig-interfaces/FXStream.i +1 -1
  400. data/swig-interfaces/FXSwitcher.i +5 -5
  401. data/swig-interfaces/FXTabBar.i +2 -2
  402. data/swig-interfaces/FXTabBook.i +1 -1
  403. data/swig-interfaces/FXTabItem.i +4 -4
  404. data/swig-interfaces/FXTable.i +37 -37
  405. data/swig-interfaces/FXText.i +13 -13
  406. data/swig-interfaces/FXTextField.i +1 -1
  407. data/swig-interfaces/FXToggleButton.i +6 -6
  408. data/swig-interfaces/FXToolBar.i +4 -4
  409. data/swig-interfaces/FXToolBarGrip.i +3 -3
  410. data/swig-interfaces/FXToolBarShell.i +3 -3
  411. data/swig-interfaces/FXToolBarTab.i +5 -5
  412. data/swig-interfaces/FXToolTip.i +1 -1
  413. data/swig-interfaces/FXTopWindow.i +10 -10
  414. data/swig-interfaces/FXTreeList.i +28 -28
  415. data/swig-interfaces/FXTreeListBox.i +36 -36
  416. data/swig-interfaces/FXVec3d.i +2 -2
  417. data/swig-interfaces/FXVec3f.i +2 -2
  418. data/swig-interfaces/FXVec4d.i +1 -1
  419. data/swig-interfaces/FXVec4f.i +9 -9
  420. data/swig-interfaces/FXVerticalFrame.i +1 -1
  421. data/swig-interfaces/FXVisual.i +1 -1
  422. data/swig-interfaces/FXWindow.i +46 -46
  423. data/swig-interfaces/FXXPMIcon.i +1 -1
  424. data/swig-interfaces/FXXPMImage.i +1 -1
  425. data/swig-interfaces/exceptions.i +1 -1
  426. data/swig-interfaces/freefuncs.i +1 -1
  427. data/swig-interfaces/fxdefs.i +13 -13
  428. data/swig-interfaces/macros.i +79 -79
  429. data/test/TC_FXAccelTable.rb +3 -3
  430. data/test/TC_FXButton.rb +9 -9
  431. data/test/TC_FXCheckButton.rb +4 -4
  432. data/test/TC_FXComboBox.rb +1 -1
  433. data/test/TC_FXDC.rb +42 -42
  434. data/test/TC_FXDialogBox.rb +1 -1
  435. data/test/TC_FXExtentd.rb +2 -2
  436. data/test/TC_FXExtentf.rb +2 -2
  437. data/test/TC_FXFileAssoc.rb +5 -5
  438. data/test/TC_FXFileStream.rb +5 -5
  439. data/test/TC_FXFoldingList.rb +3 -3
  440. data/test/TC_FXFont.rb +3 -3
  441. data/test/TC_FXGLGroup.rb +1 -1
  442. data/test/TC_FXHeader.rb +3 -3
  443. data/test/TC_FXIconDict.rb +5 -5
  444. data/test/TC_FXIconList.rb +12 -12
  445. data/test/TC_FXImage.rb +16 -16
  446. data/test/TC_FXList.rb +5 -5
  447. data/test/TC_FXListBox.rb +1 -1
  448. data/test/TC_FXMainWindow.rb +2 -2
  449. data/test/TC_FXMat4f.rb +33 -33
  450. data/test/TC_FXMaterial.rb +5 -5
  451. data/test/TC_FXMemoryStream.rb +2 -2
  452. data/test/TC_FXMenuCheck.rb +5 -5
  453. data/test/TC_FXMessageBox.rb +3 -3
  454. data/test/TC_FXPoint.rb +1 -1
  455. data/test/TC_FXRadioButton.rb +4 -4
  456. data/test/TC_FXRanged.rb +3 -3
  457. data/test/TC_FXRangef.rb +3 -3
  458. data/test/TC_FXRegion.rb +1 -1
  459. data/test/TC_FXScrollArea.rb +1 -1
  460. data/test/TC_FXScrollWindow.rb +1 -1
  461. data/test/TC_FXSettings.rb +2 -2
  462. data/test/TC_FXShell.rb +2 -2
  463. data/test/TC_FXTopWindow.rb +2 -2
  464. data/test/TC_FXTreeList.rb +4 -4
  465. data/test/TC_FXTreeListBox.rb +3 -3
  466. data/test/TC_FXVec2d.rb +3 -3
  467. data/test/TC_FXVec2f.rb +3 -3
  468. data/test/TC_FXVec3d.rb +5 -5
  469. data/test/TC_FXVec3f.rb +5 -5
  470. data/test/TC_FXVec4f.rb +6 -6
  471. data/test/TC_Misc.rb +6 -2
  472. data/test/TS_All.rb +1 -17
  473. data/test/stress1.rb +5 -5
  474. data/test/stress2.rb +3 -3
  475. data/test/stress3.rb +12 -12
  476. data/test/testcase.rb +4 -4
  477. metadata +76 -76
data/History.txt CHANGED
@@ -7,4 +7,4 @@
7
7
  === 1.6.19 / 2009-03-06
8
8
 
9
9
  * Please see http://www.fxruby.org/doc/changes.html
10
- for a complete list of the changes in this release.
10
+ for a complete list of the changes in this release.
data/README.txt CHANGED
@@ -82,7 +82,7 @@ modified by someone else and passed on, the recipients should know
82
82
  that what they have is not the original version, so that the original
83
83
  author's reputation will not be affected by problems that might be
84
84
  introduced by others.
85
-
85
+
86
86
  Finally, software patents pose a constant threat to the existence of
87
87
  any free program. We wish to make sure that a company cannot
88
88
  effectively restrict the users of a free program by obtaining a
@@ -138,7 +138,7 @@ modification follow. Pay close attention to the difference between a
138
138
  "work based on the library" and a "work that uses the library". The
139
139
  former contains code derived from the library, whereas the latter must
140
140
  be combined with the library in order to run.
141
-
141
+
142
142
  GNU LESSER GENERAL PUBLIC LICENSE
143
143
  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
144
144
 
@@ -173,7 +173,7 @@ such a program is covered only if its contents constitute a work based
173
173
  on the Library (independent of the use of the Library in a tool for
174
174
  writing it). Whether that is true depends on what the Library does
175
175
  and what the program that uses the Library does.
176
-
176
+
177
177
  1. You may copy and distribute verbatim copies of the Library's
178
178
  complete source code as you receive it, in any medium, provided that
179
179
  you conspicuously and appropriately publish on each copy an
@@ -185,7 +185,7 @@ Library.
185
185
  You may charge a fee for the physical act of transferring a copy,
186
186
  and you may at your option offer warranty protection in exchange for a
187
187
  fee.
188
-
188
+
189
189
  2. You may modify your copy or copies of the Library or any portion
190
190
  of it, thus forming a work based on the Library, and copy and
191
191
  distribute such modifications or work under the terms of Section 1
@@ -243,7 +243,7 @@ instead of to this License. (If a newer version than version 2 of the
243
243
  ordinary GNU General Public License has appeared, then you can specify
244
244
  that version instead if you wish.) Do not make any other change in
245
245
  these notices.
246
-
246
+
247
247
  Once this change is made in a given copy, it is irreversible for
248
248
  that copy, so the ordinary GNU General Public License applies to all
249
249
  subsequent copies and derivative works made from that copy.
@@ -294,7 +294,7 @@ Library will still fall under Section 6.)
294
294
  distribute the object code for the work under the terms of Section 6.
295
295
  Any executables containing that work also fall under Section 6,
296
296
  whether or not they are linked directly with the Library itself.
297
-
297
+
298
298
  6. As an exception to the Sections above, you may also combine or
299
299
  link a "work that uses the Library" with the Library to produce a
300
300
  work containing portions of the Library, and distribute that work
@@ -356,7 +356,7 @@ restrictions of other proprietary libraries that do not normally
356
356
  accompany the operating system. Such a contradiction means you cannot
357
357
  use both them and the Library together in an executable that you
358
358
  distribute.
359
-
359
+
360
360
  7. You may place library facilities that are a work based on the
361
361
  Library side-by-side in a single library together with other library
362
362
  facilities not covered by this License, and distribute such a combined
@@ -397,7 +397,7 @@ subject to these terms and conditions. You may not impose any further
397
397
  restrictions on the recipients' exercise of the rights granted herein.
398
398
  You are not responsible for enforcing compliance by third parties with
399
399
  this License.
400
-
400
+
401
401
  11. If, as a consequence of a court judgment or allegation of patent
402
402
  infringement or for any other reason (not limited to patent issues),
403
403
  conditions are imposed on you (whether by court order, agreement or
@@ -449,7 +449,7 @@ conditions either of that version or of any later version published by
449
449
  the Free Software Foundation. If the Library does not specify a
450
450
  license version number, you may choose any version ever published by
451
451
  the Free Software Foundation.
452
-
452
+
453
453
  14. If you wish to incorporate parts of the Library into other free
454
454
  programs whose distribution conditions are incompatible with these,
455
455
  write to the author to ask for permission. For software which is
@@ -480,4 +480,4 @@ LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
480
480
  RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
481
481
  FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
482
482
  SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
483
- DAMAGES.
483
+ DAMAGES.
data/Rakefile CHANGED
@@ -125,10 +125,11 @@ namespace :swig do
125
125
 
126
126
  # add dependencies for compile *.i to *_wrap.cpp
127
127
  SWIG_MODULES.each do |ifile, cppfile|
128
- ifile_path = File.join("swig-interfaces", ifile)
129
128
  cppfile_path = File.join("ext/fox16", cppfile)
130
129
 
131
- file cppfile_path => [ifile_path] do
130
+ file cppfile_path => [ifile, 'macros.i', 'common.i', 'fxdefs.i', 'ruby-typemaps.i',
131
+ 'markfuncs.i', 'exceptions.i', 'freefuncs.i', 'macros.i', 'handlers.i'
132
+ ].map{|f| File.join("swig-interfaces", f) } do
132
133
  Dir.chdir "swig-interfaces" do
133
134
  swig(ifile, cppfile)
134
135
  end
data/doap.rdf CHANGED
@@ -77,8 +77,8 @@
77
77
  <doap:release>
78
78
  <doap:Version>
79
79
  <doap:branch>fox16</doap:branch>
80
- <doap:created>2012-01-30</doap:created>
81
- <doap:revision>1.6.22.pre1</doap:revision>
80
+ <doap:created>2012-01-29</doap:created>
81
+ <doap:revision>1.6.22</doap:revision>
82
82
  </doap:Version>
83
83
  </doap:release>
84
84
 
@@ -16,7 +16,7 @@ class Babelfish < FXMainWindow
16
16
  super(app, "Babelfish", :opts => DECOR_ALL, :width => 600, :height => 400)
17
17
 
18
18
  @translator = Tranexp::Http.new
19
-
19
+
20
20
  # Controls area along the bottom
21
21
  controlsFrame = FXHorizontalFrame.new(self,
22
22
  LAYOUT_SIDE_BOTTOM|LAYOUT_FILL_X)
@@ -56,7 +56,7 @@ class Babelfish < FXMainWindow
56
56
  FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y)
57
57
  @translatedText = FXText.new(sunkenFrame, :opts => TEXT_READONLY|LAYOUT_FILL_X|LAYOUT_FILL_Y)
58
58
  end
59
-
59
+
60
60
  def create
61
61
  super
62
62
  show(PLACEMENT_SCREEN)
data/examples/bounce.rb CHANGED
@@ -28,7 +28,7 @@ class Ball
28
28
  @dir = FXPoint.new(-1, 0)
29
29
  setWorldSize(1000, 1000)
30
30
  end
31
-
31
+
32
32
  # Draw the ball into this device context
33
33
  def draw(dc)
34
34
  dc.setForeground(color)
@@ -37,11 +37,11 @@ class Ball
37
37
  dc.fillArc(x, y, w, h, 64*180, 64*270)
38
38
  dc.fillArc(x, y, w, h, 64*270, 64*360)
39
39
  end
40
-
40
+
41
41
  def bounce
42
42
  @dir = -@dir
43
43
  end
44
-
44
+
45
45
  def collision?
46
46
  (x < 0) || (x+w > worldWidth) || (y < 0) || (y+h > worldHeight)
47
47
  end
@@ -50,7 +50,7 @@ class Ball
50
50
  @worldWidth = ww
51
51
  @worldHeight = wh
52
52
  end
53
-
53
+
54
54
  def move(units)
55
55
  dx = dir.x*units
56
56
  dy = dir.y*units
@@ -68,24 +68,24 @@ end
68
68
  class BounceWindow < FXMainWindow
69
69
 
70
70
  include Responder
71
-
71
+
72
72
  def initialize(app)
73
73
  # Initialize base class first
74
74
  super(app, "Bounce", :opts => DECOR_ALL, :width => 400, :height => 300)
75
-
75
+
76
76
  # Set up the canvas
77
77
  @canvas = FXCanvas.new(self, :opts => LAYOUT_FILL_X|LAYOUT_FILL_Y)
78
-
78
+
79
79
  # Set up the back buffer
80
80
  @backBuffer = FXImage.new(app, nil, IMAGE_KEEP)
81
-
81
+
82
82
  # Handle expose events (by blitting the image to the canvas)
83
83
  @canvas.connect(SEL_PAINT) { |sender, sel, evt|
84
84
  FXDCWindow.new(sender, evt) { |dc|
85
85
  dc.drawImage(@backBuffer, 0, 0)
86
86
  }
87
87
  }
88
-
88
+
89
89
  # Handle resize events
90
90
  @canvas.connect(SEL_CONFIGURE) { |sender, sel, evt|
91
91
  @backBuffer.create unless @backBuffer.created?
@@ -93,10 +93,10 @@ class BounceWindow < FXMainWindow
93
93
  @ball.setWorldSize(sender.width, sender.height)
94
94
  drawScene(@backBuffer)
95
95
  }
96
-
96
+
97
97
  @ball = Ball.new(20)
98
98
  end
99
-
99
+
100
100
  #
101
101
  # Draws the scene into the back buffer
102
102
  #
@@ -107,43 +107,43 @@ class BounceWindow < FXMainWindow
107
107
  @ball.draw(dc)
108
108
  }
109
109
  end
110
-
110
+
111
111
  def updateCanvas
112
112
  @ball.move(10)
113
113
  drawScene(@backBuffer)
114
114
  @canvas.update
115
115
  end
116
-
116
+
117
117
  #
118
118
  # Handle timeout events
119
119
  #
120
120
  def onTimeout(sender, sel, ptr)
121
121
  # Move the ball and re-draw the scene
122
122
  updateCanvas
123
-
123
+
124
124
  # Re-register the timeout
125
125
  getApp().addTimeout(ANIMATION_TIME, method(:onTimeout))
126
-
126
+
127
127
  # Done
128
128
  return 1
129
129
  end
130
-
130
+
131
131
  #
132
132
  # Create server-side resources
133
133
  #
134
134
  def create
135
135
  # Create base class
136
136
  super
137
-
137
+
138
138
  # Create the image used as the back-buffer
139
139
  @backBuffer.create
140
-
140
+
141
141
  # Draw the initial scene into the back-buffer
142
142
  drawScene(@backBuffer)
143
-
143
+
144
144
  # Register the timer used for animation
145
145
  getApp().addTimeout(ANIMATION_TIME, method(:onTimeout))
146
-
146
+
147
147
  # Show the main window
148
148
  show(PLACEMENT_SCREEN)
149
149
  end
data/examples/charts.rb CHANGED
@@ -11,7 +11,7 @@ class ChartsWindow < FXMainWindow
11
11
  f.image = FXPNGImage.new(app, open(bar_chart.to_escaped_url, "rb").read)
12
12
  end
13
13
  end
14
-
14
+
15
15
  def bar_chart
16
16
  GoogleChart::BarChart.new('600x200', 'My Chart', :vertical) do |bc|
17
17
  bc.data 'Trend 1', [5,4,3,1,3,5], '0000ff'
@@ -32,4 +32,4 @@ if __FILE__ == $0
32
32
  app.create
33
33
  app.run
34
34
  end
35
- end
35
+ end
@@ -19,7 +19,7 @@ class CustomTableItem < FXTableItem
19
19
  beg, tw, th = 0, 0, 0
20
20
  begin
21
21
  _end = beg;
22
- _end += 1 while _end < lbl.length && lbl[_end].chr != '\n'
22
+ _end += 1 while _end < lbl.length && lbl[_end].chr != '\n'
23
23
  t = font.getTextWidth(lbl[beg..._end])
24
24
  tw = t if t > tw
25
25
  th += font.fontHeight
@@ -117,7 +117,7 @@ class CustomTableItem < FXTableItem
117
117
 
118
118
  # Paint icon
119
119
  dc.drawIcon(icn, ix, iy) unless icn.nil?
120
-
120
+
121
121
  # Text color
122
122
  if selected?
123
123
  dc.foreground = table.selTextColor
@@ -131,7 +131,7 @@ class CustomTableItem < FXTableItem
131
131
  beg = 0
132
132
  begin
133
133
  _end = beg
134
- _end += 1 while _end < lbl.length && lbl[_end].chr != '\n'
134
+ _end += 1 while _end < lbl.length && lbl[_end].chr != '\n'
135
135
  if justify & LEFT == 1
136
136
  xx = tx
137
137
  elsif justify & RIGHT == 1
@@ -46,7 +46,7 @@ class DataTargetWindow < FXMainWindow
46
46
 
47
47
  # Menubar
48
48
  menubar = FXMenuBar.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X)
49
-
49
+
50
50
  # File menu
51
51
  filemenu = FXMenuPane.new(self)
52
52
  FXMenuCommand.new(filemenu, "Progress dialog...").connect(SEL_COMMAND) do
@@ -179,7 +179,7 @@ class DataTargetWindow < FXMainWindow
179
179
  def onTimeout(sender, sel, ptr)
180
180
  # Increment the progress modulo 100
181
181
  @progressTarget.value = (@progressTarget.value + 1) % 100
182
-
182
+
183
183
  # Reset the timer for next time
184
184
  getApp().addTimeout(80, method(:onTimeout))
185
185
  end
data/examples/dctest.rb CHANGED
@@ -46,9 +46,9 @@ $bitmap_bits = [
46
46
  0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0xff, 0xff, 0x00, 0x00,
47
47
  0x00, 0x00, 0x00, 0xa0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0,
48
48
  0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]
49
-
49
+
50
50
  $bitmap_bits = $bitmap_bits.pack("c*")
51
-
51
+
52
52
  $blit_modes = {
53
53
  BLT_CLR => "Clear\tBLT_CLR",
54
54
  BLT_SRC_AND_DST => "And\tBLT_SRC_AND_DST",
@@ -108,14 +108,14 @@ class DCTestWindow < FXMainWindow
108
108
  def initialize(app)
109
109
  # Initialize base class first
110
110
  super(app, "Device Context Test", :opts => DECOR_ALL, :width => 850, :height => 740)
111
-
111
+
112
112
  opts = FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_Y
113
-
113
+
114
114
  # Preferred line attributes
115
115
  @lineStyle = LINE_SOLID
116
116
  @capStyle = CAP_BUTT
117
117
  @joinStyle = JOIN_MITER
118
-
118
+
119
119
  # Create a tooltip
120
120
  tooltip = FXToolTip.new(getApp())
121
121
 
@@ -135,7 +135,7 @@ class DCTestWindow < FXMainWindow
135
135
  FXLabel.new(controls, "BLIT Function:", nil, LAYOUT_LEFT)
136
136
  blitgrid = FXMatrix.new(controls, 4, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH,
137
137
  :padLeft => 2, :padRight => 2, :padTop => 2, :padBottom => 2)
138
-
138
+
139
139
  # One button for each mode
140
140
  $blit_modes.each do |blit_mode, desc|
141
141
  btn = FXButton.new(blitgrid, desc, :opts => BUTTON_TOOLBAR|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_FILL_COLUMN)
@@ -152,7 +152,7 @@ class DCTestWindow < FXMainWindow
152
152
  end
153
153
  end
154
154
  end
155
-
155
+
156
156
  # Line dash style
157
157
  FXLabel.new(controls, "Line Style:", nil, LAYOUT_LEFT)
158
158
  linestyle = FXMatrix.new(controls, 3, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X,
@@ -193,7 +193,7 @@ class DCTestWindow < FXMainWindow
193
193
  sender.handle(self, MKUINT(ID_UNCHECK, SEL_COMMAND), nil)
194
194
  end
195
195
  end
196
-
196
+
197
197
  # Line cap style
198
198
  FXLabel.new(controls, "Cap Style:", nil, LAYOUT_LEFT)
199
199
  capstyle = FXMatrix.new(controls, 4, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X)
@@ -249,7 +249,7 @@ class DCTestWindow < FXMainWindow
249
249
  sender.handle(self, MKUINT(ID_UNCHECK, SEL_COMMAND), nil)
250
250
  end
251
251
  end
252
-
252
+
253
253
  # Line join style
254
254
  FXLabel.new(controls, "Join Style:", nil, LAYOUT_LEFT)
255
255
  joinstyle = FXMatrix.new(controls, 3, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X)
@@ -293,7 +293,7 @@ class DCTestWindow < FXMainWindow
293
293
  sender.handle(self, MKUINT(ID_UNCHECK, SEL_COMMAND), nil)
294
294
  end
295
295
  end
296
-
296
+
297
297
  # Colors
298
298
  FXLabel.new(controls, "Colors:", nil, LAYOUT_LEFT)
299
299
  pairs = FXMatrix.new(controls, 2, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X)
@@ -303,7 +303,7 @@ class DCTestWindow < FXMainWindow
303
303
  pairs.padBottom = 2
304
304
  pairs.hSpacing = 5
305
305
  pairs.vSpacing = 5
306
-
306
+
307
307
  # Back Color
308
308
  FXLabel.new(pairs, "Back Color:")
309
309
  @backWell = FXColorWell.new(pairs, FXRGB(0, 0, 255), nil, 0, FRAME_SUNKEN|FRAME_THICK|ICON_AFTER_TEXT|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN)
@@ -322,7 +322,7 @@ class DCTestWindow < FXMainWindow
322
322
  @backWell.connect(SEL_UPDATE) do |sender, sel, ptr|
323
323
  sender.handle(self, MKUINT(ID_SETVALUE, SEL_COMMAND), @backcolor)
324
324
  end
325
-
325
+
326
326
  # Fore Color
327
327
  FXLabel.new(pairs, "Fore Color:")
328
328
  @foreWell = FXColorWell.new(pairs, FXRGB(255, 0, 0), nil, 0, FRAME_SUNKEN|FRAME_THICK|ICON_AFTER_TEXT|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN)
@@ -341,7 +341,7 @@ class DCTestWindow < FXMainWindow
341
341
  @foreWell.connect(SEL_UPDATE) do |sender, sel, ptr|
342
342
  sender.handle(self, MKUINT(ID_SETVALUE, SEL_COMMAND), @forecolor)
343
343
  end
344
-
344
+
345
345
  # Erase Color
346
346
  FXLabel.new(pairs, "Erase Color:")
347
347
  @eraseWell = FXColorWell.new(pairs, FXRGB(255, 255, 255), nil, 0, FRAME_SUNKEN|FRAME_THICK|ICON_AFTER_TEXT|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN)
@@ -360,19 +360,19 @@ class DCTestWindow < FXMainWindow
360
360
  @eraseWell.connect(SEL_UPDATE) do |sender, sel, ptr|
361
361
  sender.handle(self, MKUINT(ID_SETVALUE, SEL_COMMAND), @erasecolor)
362
362
  end
363
-
363
+
364
364
  # Line width
365
365
  linew = FXMatrix.new(controls, 2, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X)
366
366
  linew.padLeft = 2
367
367
  linew.padRight = 2
368
368
  linew.padTop = 2
369
- linew.padBottom = 2
369
+ linew.padBottom = 2
370
370
  FXLabel.new(linew, "Line Width:")
371
371
  @lineWidthSpinner = FXSpinner.new(linew, 4, nil, 0, SPIN_NORMAL|FRAME_SUNKEN|FRAME_THICK|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN)
372
372
  @lineWidthSpinner.connect(SEL_COMMAND) { @linesCanvas.update(0, 0, @linesCanvas.width, @linesCanvas.height) }
373
373
  @lineWidthSpinner.range = 1..255
374
374
  @lineWidthSpinner.value = 1
375
-
375
+
376
376
  # Stipple
377
377
  stip = FXMatrix.new(controls, 2, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X)
378
378
  stip.padLeft = 2
@@ -381,7 +381,7 @@ class DCTestWindow < FXMainWindow
381
381
  stip.padBottom = 2
382
382
  FXLabel.new(stip, "Stipples:")
383
383
  pop = FXPopup.new(self)
384
-
384
+
385
385
  $stipples.each do |pat, desc|
386
386
  opt = FXOption.new(pop, desc, nil, nil, 0, JUSTIFY_HZ_APART|ICON_AFTER_TEXT)
387
387
  opt.userData = pat
@@ -391,7 +391,7 @@ class DCTestWindow < FXMainWindow
391
391
  end
392
392
  end
393
393
  FXOptionMenu.new(stip, pop, LAYOUT_TOP|FRAME_RAISED|FRAME_THICK|JUSTIFY_HZ_APART|ICON_AFTER_TEXT)
394
-
394
+
395
395
  # Fill Style
396
396
  FXLabel.new(controls, "Fill Style:", nil, LAYOUT_LEFT)
397
397
  fillstyle = FXMatrix.new(controls, 2, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X)
@@ -414,7 +414,7 @@ class DCTestWindow < FXMainWindow
414
414
  end
415
415
  end
416
416
  end
417
-
417
+
418
418
  # Angles for arcs
419
419
  FXLabel.new(controls, "Arc angles:", nil, LAYOUT_LEFT)
420
420
  arcangles = FXMatrix.new(controls, 3, FRAME_RIDGE|MATRIX_BY_COLUMNS|LAYOUT_FILL_X)
@@ -430,13 +430,13 @@ class DCTestWindow < FXMainWindow
430
430
  FXTextField.new(arcangles, 4, @ang1, FXDataTarget::ID_VALUE, TEXTFIELD_INTEGER|JUSTIFY_RIGHT|FRAME_SUNKEN|FRAME_THICK)
431
431
  sang1 = FXSlider.new(arcangles, @ang1, FXDataTarget::ID_VALUE, LAYOUT_CENTER_Y|LAYOUT_FILL_X|SLIDER_INSIDE_BAR|LAYOUT_FILL_COLUMN)
432
432
  sang1.range = -360..360
433
-
433
+
434
434
  @ang2 = FXDataTarget.new(90)
435
435
  FXLabel.new(arcangles, "Ang2:", nil, LAYOUT_LEFT)
436
436
  FXTextField.new(arcangles, 4, @ang2, FXDataTarget::ID_VALUE, TEXTFIELD_INTEGER|JUSTIFY_RIGHT|FRAME_SUNKEN|FRAME_THICK)
437
437
  sang2 = FXSlider.new(arcangles, @ang2, FXDataTarget::ID_VALUE, LAYOUT_CENTER_Y|LAYOUT_FILL_X|SLIDER_INSIDE_BAR|LAYOUT_FILL_COLUMN)
438
438
  sang2.range = -360..360
439
-
439
+
440
440
  # Font
441
441
  fonts = FXHorizontalFrame.new(controls, FRAME_RIDGE|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH)
442
442
  fonts.padLeft = 2
@@ -445,7 +445,7 @@ class DCTestWindow < FXMainWindow
445
445
  fonts.padBottom = 2
446
446
  btn = FXButton.new(fonts, "Font Dialog...\tChange the text font", nil, nil, 0, BUTTON_TOOLBAR|JUSTIFY_CENTER_X|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_FILL_Y)
447
447
  btn.connect(SEL_COMMAND, method(:onCmdFont))
448
-
448
+
449
449
  # Printing
450
450
  printer = FXHorizontalFrame.new(controls, FRAME_RIDGE|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH)
451
451
  printer.padLeft = 2
@@ -454,7 +454,7 @@ class DCTestWindow < FXMainWindow
454
454
  printer.padBottom = 2
455
455
  btn = FXButton.new(printer, "Print Dialog...\tPrint it out", nil, nil, 0, BUTTON_TOOLBAR|JUSTIFY_CENTER_X|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_FILL_Y)
456
456
  btn.connect(SEL_COMMAND, method(:onCmdPrint))
457
-
457
+
458
458
  # Quit
459
459
  quitter = FXHorizontalFrame.new(controls, FRAME_RIDGE|LAYOUT_FILL_X|PACK_UNIFORM_WIDTH)
460
460
  quitter.padLeft = 2
@@ -462,10 +462,10 @@ class DCTestWindow < FXMainWindow
462
462
  quitter.padTop = 2
463
463
  quitter.padBottom = 2
464
464
  FXButton.new(quitter, "Bye Bye!\tHasta la vista, baby!", nil, getApp(), FXApp::ID_QUIT, BUTTON_TOOLBAR|JUSTIFY_CENTER_X|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_FILL_Y)
465
-
465
+
466
466
  # Switcher
467
467
  tabbook = FXTabBook.new(contents, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y|LAYOUT_RIGHT)
468
-
468
+
469
469
  # First page shows various line styles
470
470
  linesTab = FXTabItem.new(tabbook, "&Lines", nil)
471
471
  linesPage = FXPacker.new(tabbook, FRAME_THICK|FRAME_RAISED)
@@ -479,7 +479,7 @@ class DCTestWindow < FXMainWindow
479
479
  dc = FXDCWindow.new(canvas, ev)
480
480
  drawPage(dc, canvas.width, canvas.height)
481
481
  end
482
-
482
+
483
483
  # Second page shows various shapes
484
484
  shapesTab = FXTabItem.new(tabbook, "&Shapes", nil)
485
485
  shapesPage = FXPacker.new(tabbook, FRAME_THICK|FRAME_RAISED)
@@ -493,22 +493,22 @@ class DCTestWindow < FXMainWindow
493
493
  dc = FXDCWindow.new(canvas, ev)
494
494
  dc.foreground = @eraseWell.rgba
495
495
  dc.fillRectangle(0, 0, canvas.width, canvas.height)
496
-
496
+
497
497
  dc.foreground = @foreWell.rgba
498
498
  dc.background = @backWell.rgba
499
499
  dc.drawRectangle(5, 5, 50, 50)
500
500
  dc.fillRectangle(60, 5, 50, 50)
501
-
501
+
502
502
  dc.foreground = @foreWell.rgba
503
503
  dc.background = @backWell.rgba
504
504
  dc.drawArc(5, 60, 50, 50, 0, 64*90)
505
505
  dc.fillArc(60, 60, 50, 50, 64*90, 64*180)
506
-
506
+
507
507
  dc.foreground = @foreWell.rgba
508
508
  dc.background = @backWell.rgba
509
509
  dc.drawBitmap(@bitmap, 115, 5)
510
510
  end
511
-
511
+
512
512
  # Third page shows images
513
513
  imagesTab = FXTabItem.new(tabbook, "&Images", nil)
514
514
  imagesPage = FXPacker.new(tabbook, FRAME_THICK|FRAME_RAISED)
@@ -524,17 +524,17 @@ class DCTestWindow < FXMainWindow
524
524
  dc.fillRectangle(0, 0, canvas.width, canvas.height)
525
525
  dc.drawImage(@birdImage, 0, 0)
526
526
  end
527
-
527
+
528
528
  # File menu
529
529
  @filemenu = FXMenuPane.new(self)
530
530
  FXMenuCommand.new(@filemenu, "&Print...\tCtl-P").connect(SEL_COMMAND, method(:onCmdPrint))
531
531
  FXMenuCommand.new(@filemenu, "&Font...\tCtl-F").connect(SEL_COMMAND, method(:onCmdFont))
532
532
  FXMenuCommand.new(@filemenu, "&Quit\tCtl-Q", nil, getApp(), FXApp::ID_QUIT)
533
533
  FXMenuTitle.new(menubar, "&File", nil, @filemenu)
534
-
534
+
535
535
  @birdImage = FXPNGImage.new(getApp(), File.open("icons/dippy.png", "rb").read)
536
536
  @bitmap = FXBitmap.new(getApp(), $bitmap_bits, 0, 64, 64)
537
-
537
+
538
538
  @function = BLT_SRC
539
539
  @lineStyle = LINE_SOLID
540
540
  @capStyle = CAP_BUTT
@@ -547,7 +547,7 @@ class DCTestWindow < FXMainWindow
547
547
  @erasecolor = FXRGB(255, 255, 255) # white
548
548
  @testFont = FXFont.new(getApp(), "helvetica", 20)
549
549
  end
550
-
550
+
551
551
  def create
552
552
  super
553
553
  @birdImage.create
@@ -555,33 +555,33 @@ class DCTestWindow < FXMainWindow
555
555
  @bitmap.create
556
556
  show(PLACEMENT_SCREEN)
557
557
  end
558
-
558
+
559
559
  def detach
560
560
  super
561
561
  @birdImage.detach
562
562
  @testFont.detach
563
563
  @bitmap.detach
564
564
  end
565
-
565
+
566
566
  def drawPage(dc, w, h)
567
567
  dc.foreground = @erasecolor
568
568
  dc.fillRectangle(0, 0, w, h)
569
-
569
+
570
570
  dc.foreground = @forecolor
571
571
  dc.background = @backcolor
572
-
572
+
573
573
  dc.lineStyle = @lineStyle
574
574
  dc.lineCap = @capStyle
575
575
  dc.lineJoin = @joinStyle
576
576
  dc.function = @function
577
-
577
+
578
578
  dc.stipple = @stipple
579
579
  dc.fillStyle = @fillStyle
580
580
  dc.lineWidth = @lineWidthSpinner.value
581
-
581
+
582
582
  # Here's a single line
583
583
  dc.drawLine(20, 200, w - 20, 200)
584
-
584
+
585
585
  # Here are some connected lines (to show join styles)
586
586
  points = []
587
587
  points << FXPoint.new(10, 3*h/4)
@@ -591,22 +591,22 @@ class DCTestWindow < FXMainWindow
591
591
  points << FXPoint.new(points[3].x+w/6, points[0].y)
592
592
  points << FXPoint.new(points[4].x+w/6, points[1].y)
593
593
  dc.drawLines(points)
594
-
594
+
595
595
  dc.font = @testFont
596
596
  dc.foreground = @forecolor
597
597
  dc.background = @backcolor
598
598
  s = "Font: #{@testFont.name} Size: #{@testFont.size/10}"
599
599
  dc.drawText(30, h-70, s)
600
600
  dc.drawImageText(30, h-30, s)
601
-
601
+
602
602
  dc.foreground = @forecolor
603
603
  dc.background = @backcolor
604
604
  dc.drawRectangle(20, 20, 200, 100)
605
605
  dc.fillRectangle(300, 20, 200, 100)
606
-
606
+
607
607
  dc.drawArc(20, 120, 100, 100, 64*@ang1.value, 64*@ang2.value)
608
608
  dc.fillArc(300, 120, 100, 100, 64*@ang1.value, 64*@ang2.value)
609
-
609
+
610
610
  poly = []
611
611
  poly << FXPoint.new(200, 230)
612
612
  poly << FXPoint.new(poly[0].x+40, poly[0].y+20)
@@ -614,7 +614,7 @@ class DCTestWindow < FXMainWindow
614
614
  poly << FXPoint.new(poly[0].x-30, poly[0].y+60)
615
615
  poly << FXPoint.new(poly[0].x-40, poly[0].y+20)
616
616
  dc.fillPolygon(poly)
617
-
617
+
618
618
  poly = []
619
619
  poly << FXPoint.new(300, 230)
620
620
  poly << FXPoint.new(poly[0].x+30, poly[0].y+60)
@@ -631,19 +631,19 @@ class DCTestWindow < FXMainWindow
631
631
  poly << FXPoint.new(poly[0].x-30, poly[0].y+60)
632
632
  dc.fillRule = RULE_WINDING
633
633
  dc.fillComplexPolygon(poly)
634
-
634
+
635
635
  concave = []
636
636
  concave << FXPoint.new(w-100, h-100)
637
637
  concave << FXPoint.new(concave[0].x+40, concave[0].y-20)
638
638
  concave << FXPoint.new(concave[0].x , concave[0].y+40)
639
639
  concave << FXPoint.new(concave[0].x-40, concave[0].y-20)
640
640
  dc.fillConcavePolygon(concave)
641
-
641
+
642
642
  # Draw a pale blue dot ;)
643
643
  dc.foreground = FXRGB(128, 128, 255)
644
644
  dc.drawPoint(w-20, h-20)
645
645
  end
646
-
646
+
647
647
  def onCmdFont(sender, sel, ptr)
648
648
  fontdlg = FXFontDialog.new(self, "Change Font", DECOR_BORDER|DECOR_TITLE)
649
649
  fontdlg.fontSelection = @testFont.fontDesc
@@ -654,7 +654,7 @@ class DCTestWindow < FXMainWindow
654
654
  end
655
655
  return 1
656
656
  end
657
-
657
+
658
658
  def onCmdPrint(sender, sel, ptr)
659
659
  dlg = FXPrintDialog.new(self, "Print Graphics")
660
660
  if dlg.execute != 0
@@ -671,7 +671,7 @@ class DCTestWindow < FXMainWindow
671
671
  end
672
672
  return 1
673
673
  end
674
-
674
+
675
675
  # Load the named icon from a file
676
676
  def loadIcon(filename, clr = FXRGB(192, 192, 192), opts = 0)
677
677
  begin