fxruby 1.6.19-x86-mingw32 → 1.6.20-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (973) hide show
  1. data/History.txt +10 -0
  2. data/Manifest.txt +922 -0
  3. data/README +0 -0
  4. data/{LICENSE → README.txt} +27 -1
  5. data/Rakefile +191 -0
  6. data/TODO +47 -0
  7. data/doap.rdf +87 -0
  8. data/examples/RAA.rb +0 -0
  9. data/examples/README +0 -0
  10. data/examples/babelfish.rb +0 -0
  11. data/examples/bounce.rb +0 -0
  12. data/examples/browser.rb +0 -0
  13. data/examples/button.rb +0 -0
  14. data/examples/datatarget.rb +0 -0
  15. data/examples/dctest.rb +0 -0
  16. data/examples/dialog.rb +0 -0
  17. data/examples/dilbert.rb +0 -0
  18. data/examples/dirlist.rb +0 -0
  19. data/examples/dragdrop.rb +0 -0
  20. data/examples/dragsource.rb +0 -0
  21. data/examples/dropsite.rb +0 -0
  22. data/examples/foursplit.rb +0 -0
  23. data/examples/gltest.rb +0 -0
  24. data/examples/glviewer.rb +0 -0
  25. data/examples/groupbox.rb +0 -0
  26. data/examples/header.rb +0 -0
  27. data/examples/hello.rb +0 -0
  28. data/examples/hello2.rb +0 -0
  29. data/examples/iRAA.rb +0 -0
  30. data/examples/iconlist.rb +0 -0
  31. data/examples/icons/AngryGuyInBunnySuit.ico +0 -0
  32. data/examples/icons/FatBot.ico +0 -0
  33. data/examples/icons/FlippedySwitch.ico +0 -0
  34. data/examples/icons/LeGoon.ico +0 -0
  35. data/examples/icons/Net.ico +0 -0
  36. data/examples/icons/RedMacOS.ico +0 -0
  37. data/examples/icons/SawBlade.ico +0 -0
  38. data/examples/icons/backview.png +0 -0
  39. data/examples/icons/big.png +0 -0
  40. data/examples/icons/bigfolder.png +0 -0
  41. data/examples/icons/bigpenguin.png +0 -0
  42. data/examples/icons/bluebullet14x14.gif +0 -0
  43. data/examples/icons/bottomview.png +0 -0
  44. data/examples/icons/camera.png +0 -0
  45. data/examples/icons/capbutt.png +0 -0
  46. data/examples/icons/capnotlast.png +0 -0
  47. data/examples/icons/capproj.png +0 -0
  48. data/examples/icons/capround.png +0 -0
  49. data/examples/icons/colorpal.png +0 -0
  50. data/examples/icons/copy.png +0 -0
  51. data/examples/icons/cut.png +0 -0
  52. data/examples/icons/delimit.png +0 -0
  53. data/examples/icons/dippy.png +0 -0
  54. data/examples/icons/double_dash.png +0 -0
  55. data/examples/icons/filenew.png +0 -0
  56. data/examples/icons/fileopen.png +0 -0
  57. data/examples/icons/filesave.png +0 -0
  58. data/examples/icons/filesaveas.png +0 -0
  59. data/examples/icons/fonts.png +0 -0
  60. data/examples/icons/fox.png +0 -0
  61. data/examples/icons/foxicon.png +0 -0
  62. data/examples/icons/frontview.png +0 -0
  63. data/examples/icons/gem_big.png +0 -0
  64. data/examples/icons/gem_small.png +0 -0
  65. data/examples/icons/hello2.png +0 -0
  66. data/examples/icons/help.png +0 -0
  67. data/examples/icons/indent.png +0 -0
  68. data/examples/icons/jbevel.png +0 -0
  69. data/examples/icons/jmiter.png +0 -0
  70. data/examples/icons/jround.png +0 -0
  71. data/examples/icons/kill.png +0 -0
  72. data/examples/icons/leftview.png +0 -0
  73. data/examples/icons/light.png +0 -0
  74. data/examples/icons/minidoc.png +0 -0
  75. data/examples/icons/minifolder.png +0 -0
  76. data/examples/icons/minifolderopen.png +0 -0
  77. data/examples/icons/newfolder.png +0 -0
  78. data/examples/icons/nolight.png +0 -0
  79. data/examples/icons/onoff_dash.png +0 -0
  80. data/examples/icons/palette.png +0 -0
  81. data/examples/icons/parallel.png +0 -0
  82. data/examples/icons/paste.png +0 -0
  83. data/examples/icons/pattern.png +0 -0
  84. data/examples/icons/penguin.png +0 -0
  85. data/examples/icons/perspective.png +0 -0
  86. data/examples/icons/printicon.png +0 -0
  87. data/examples/icons/prop.png +0 -0
  88. data/examples/icons/redo.png +0 -0
  89. data/examples/icons/rightview.png +0 -0
  90. data/examples/icons/saveas.png +0 -0
  91. data/examples/icons/shutter1.png +0 -0
  92. data/examples/icons/shutter2.png +0 -0
  93. data/examples/icons/small.png +0 -0
  94. data/examples/icons/smoothlight.png +0 -0
  95. data/examples/icons/solid_line.png +0 -0
  96. data/examples/icons/tbuplevel.png +0 -0
  97. data/examples/icons/topview.png +0 -0
  98. data/examples/icons/transpbullet14x14.gif +0 -0
  99. data/examples/icons/undo.png +0 -0
  100. data/examples/icons/winapp.png +0 -0
  101. data/examples/icons/zoom.png +0 -0
  102. data/examples/image.rb +0 -0
  103. data/examples/imageviewer.rb +0 -0
  104. data/examples/inputs.rb +0 -0
  105. data/examples/mditest.rb +0 -0
  106. data/examples/pig.rb +0 -0
  107. data/examples/raabrowser.rb +0 -0
  108. data/examples/scintilla-test.rb +0 -0
  109. data/examples/scribble-orig.rb +0 -0
  110. data/examples/scribble.rb +0 -0
  111. data/examples/shutter.rb +0 -0
  112. data/examples/splitter.rb +0 -0
  113. data/examples/styledtext.rb +0 -0
  114. data/examples/tabbook.rb +0 -0
  115. data/examples/table.rb +0 -0
  116. data/examples/textedit/commands.rb +0 -0
  117. data/examples/textedit/helpwindow.rb +0 -0
  118. data/examples/textedit/prefdialog.rb +0 -0
  119. data/examples/textedit/textedit.rb +0 -0
  120. data/examples/unicode.rb +0 -0
  121. data/ext/fox16/FXRbApp.cpp +128 -0
  122. data/ext/fox16/FXRbDataTarget.cpp +110 -0
  123. data/ext/fox16/FXRbGLViewer.cpp +89 -0
  124. data/ext/fox16/FXRuby.cpp +2067 -0
  125. data/ext/fox16/MANIFEST +189 -0
  126. data/ext/fox16/core_wrap.cpp +11541 -0
  127. data/ext/fox16/dc_wrap.cpp +2874 -0
  128. data/ext/fox16/dialogs_wrap.cpp +7963 -0
  129. data/ext/fox16/extconf.rb +143 -0
  130. data/ext/fox16/frames_wrap.cpp +11380 -0
  131. data/ext/fox16/fx3d_wrap.cpp +10651 -0
  132. data/ext/fox16/iconlist_wrap.cpp +4074 -0
  133. data/ext/fox16/icons_wrap.cpp +4745 -0
  134. data/ext/fox16/image_wrap.cpp +4388 -0
  135. data/ext/fox16/impl.cpp +1156 -0
  136. data/ext/fox16/include/FXMemoryBuffer.h +52 -0
  137. data/ext/fox16/include/FXRb4Splitter.h +54 -0
  138. data/ext/fox16/include/FXRb7Segment.h +51 -0
  139. data/ext/fox16/include/FXRbAccelTable.h +46 -0
  140. data/ext/fox16/include/FXRbApp.h +155 -0
  141. data/ext/fox16/include/FXRbAppVirtuals.h +15 -0
  142. data/ext/fox16/include/FXRbArrowButton.h +51 -0
  143. data/ext/fox16/include/FXRbBMPIcon.h +54 -0
  144. data/ext/fox16/include/FXRbBMPImage.h +54 -0
  145. data/ext/fox16/include/FXRbBitmap.h +133 -0
  146. data/ext/fox16/include/FXRbBitmapFrame.h +56 -0
  147. data/ext/fox16/include/FXRbBitmapView.h +56 -0
  148. data/ext/fox16/include/FXRbBitmapVirtuals.h +37 -0
  149. data/ext/fox16/include/FXRbButton.h +51 -0
  150. data/ext/fox16/include/FXRbCURCursor.h +60 -0
  151. data/ext/fox16/include/FXRbCanvas.h +51 -0
  152. data/ext/fox16/include/FXRbCheckButton.h +51 -0
  153. data/ext/fox16/include/FXRbChoiceBox.h +56 -0
  154. data/ext/fox16/include/FXRbColorBar.h +51 -0
  155. data/ext/fox16/include/FXRbColorDialog.h +53 -0
  156. data/ext/fox16/include/FXRbColorList.h +84 -0
  157. data/ext/fox16/include/FXRbColorRing.h +51 -0
  158. data/ext/fox16/include/FXRbColorSelector.h +51 -0
  159. data/ext/fox16/include/FXRbColorWell.h +51 -0
  160. data/ext/fox16/include/FXRbColorWheel.h +51 -0
  161. data/ext/fox16/include/FXRbComboBox.h +56 -0
  162. data/ext/fox16/include/FXRbCommon.h +93 -0
  163. data/ext/fox16/include/FXRbComposite.h +51 -0
  164. data/ext/fox16/include/FXRbCursor.h +87 -0
  165. data/ext/fox16/include/FXRbCursorVirtuals.h +6 -0
  166. data/ext/fox16/include/FXRbDC.h +427 -0
  167. data/ext/fox16/include/FXRbDCPrint.h +49 -0
  168. data/ext/fox16/include/FXRbDCVirtuals.h +187 -0
  169. data/ext/fox16/include/FXRbDCWindow.h +64 -0
  170. data/ext/fox16/include/FXRbDataTarget.h +65 -0
  171. data/ext/fox16/include/FXRbDebugTarget.h +46 -0
  172. data/ext/fox16/include/FXRbDelegator.h +46 -0
  173. data/ext/fox16/include/FXRbDial.h +51 -0
  174. data/ext/fox16/include/FXRbDialogBox.h +68 -0
  175. data/ext/fox16/include/FXRbDialogBoxVirtuals.h +3 -0
  176. data/ext/fox16/include/FXRbDict.h +46 -0
  177. data/ext/fox16/include/FXRbDirBox.h +52 -0
  178. data/ext/fox16/include/FXRbDirDialog.h +56 -0
  179. data/ext/fox16/include/FXRbDirList.h +79 -0
  180. data/ext/fox16/include/FXRbDirSelector.h +51 -0
  181. data/ext/fox16/include/FXRbDockBar.h +86 -0
  182. data/ext/fox16/include/FXRbDockBarVirtuals.h +10 -0
  183. data/ext/fox16/include/FXRbDockHandler.h +51 -0
  184. data/ext/fox16/include/FXRbDockSite.h +85 -0
  185. data/ext/fox16/include/FXRbDockSiteVirtuals.h +13 -0
  186. data/ext/fox16/include/FXRbDockTitle.h +51 -0
  187. data/ext/fox16/include/FXRbDocument.h +46 -0
  188. data/ext/fox16/include/FXRbDragCorner.h +51 -0
  189. data/ext/fox16/include/FXRbDrawable.h +64 -0
  190. data/ext/fox16/include/FXRbDrawableVirtuals.h +3 -0
  191. data/ext/fox16/include/FXRbDriveBox.h +52 -0
  192. data/ext/fox16/include/FXRbFileDialog.h +56 -0
  193. data/ext/fox16/include/FXRbFileDict.h +104 -0
  194. data/ext/fox16/include/FXRbFileDictVirtuals.h +9 -0
  195. data/ext/fox16/include/FXRbFileList.h +81 -0
  196. data/ext/fox16/include/FXRbFileSelector.h +51 -0
  197. data/ext/fox16/include/FXRbFoldingItemVirtuals.h +42 -0
  198. data/ext/fox16/include/FXRbFoldingList.h +270 -0
  199. data/ext/fox16/include/FXRbFoldingListVirtuals.h +43 -0
  200. data/ext/fox16/include/FXRbFont.h +183 -0
  201. data/ext/fox16/include/FXRbFontDialog.h +53 -0
  202. data/ext/fox16/include/FXRbFontSelector.h +51 -0
  203. data/ext/fox16/include/FXRbFontVirtuals.h +55 -0
  204. data/ext/fox16/include/FXRbFrame.h +51 -0
  205. data/ext/fox16/include/FXRbGIFCursor.h +60 -0
  206. data/ext/fox16/include/FXRbGIFIcon.h +54 -0
  207. data/ext/fox16/include/FXRbGIFImage.h +54 -0
  208. data/ext/fox16/include/FXRbGLCanvas.h +92 -0
  209. data/ext/fox16/include/FXRbGLCanvasVirtuals.h +13 -0
  210. data/ext/fox16/include/FXRbGLContext.h +58 -0
  211. data/ext/fox16/include/FXRbGLObject.h +103 -0
  212. data/ext/fox16/include/FXRbGLObjectVirtuals.h +22 -0
  213. data/ext/fox16/include/FXRbGLShape.h +81 -0
  214. data/ext/fox16/include/FXRbGLShapeVirtuals.h +8 -0
  215. data/ext/fox16/include/FXRbGLViewer.h +89 -0
  216. data/ext/fox16/include/FXRbGLViewerVirtuals.h +10 -0
  217. data/ext/fox16/include/FXRbGLVisual.h +56 -0
  218. data/ext/fox16/include/FXRbGradientBar.h +55 -0
  219. data/ext/fox16/include/FXRbGroupBox.h +51 -0
  220. data/ext/fox16/include/FXRbHeader.h +129 -0
  221. data/ext/fox16/include/FXRbHeaderItemVirtuals.h +22 -0
  222. data/ext/fox16/include/FXRbHorizontalFrame.h +51 -0
  223. data/ext/fox16/include/FXRbICOIcon.h +54 -0
  224. data/ext/fox16/include/FXRbICOImage.h +54 -0
  225. data/ext/fox16/include/FXRbIcon.h +57 -0
  226. data/ext/fox16/include/FXRbIconItemVirtuals.h +68 -0
  227. data/ext/fox16/include/FXRbIconList.h +288 -0
  228. data/ext/fox16/include/FXRbIconListVirtuals.h +35 -0
  229. data/ext/fox16/include/FXRbIconSource.h +127 -0
  230. data/ext/fox16/include/FXRbIconSourceVirtuals.h +37 -0
  231. data/ext/fox16/include/FXRbId.h +74 -0
  232. data/ext/fox16/include/FXRbIdVirtuals.h +9 -0
  233. data/ext/fox16/include/FXRbImage.h +162 -0
  234. data/ext/fox16/include/FXRbImageFrame.h +56 -0
  235. data/ext/fox16/include/FXRbImageView.h +55 -0
  236. data/ext/fox16/include/FXRbImageVirtuals.h +51 -0
  237. data/ext/fox16/include/FXRbInputDialog.h +56 -0
  238. data/ext/fox16/include/FXRbJPGIcon.h +54 -0
  239. data/ext/fox16/include/FXRbJPGImage.h +54 -0
  240. data/ext/fox16/include/FXRbKnob.h +51 -0
  241. data/ext/fox16/include/FXRbLabel.h +51 -0
  242. data/ext/fox16/include/FXRbList.h +226 -0
  243. data/ext/fox16/include/FXRbListBox.h +67 -0
  244. data/ext/fox16/include/FXRbListBoxVirtuals.h +4 -0
  245. data/ext/fox16/include/FXRbListItemVirtuals.h +33 -0
  246. data/ext/fox16/include/FXRbListVirtuals.h +30 -0
  247. data/ext/fox16/include/FXRbMDIButton.h +162 -0
  248. data/ext/fox16/include/FXRbMDIChild.h +82 -0
  249. data/ext/fox16/include/FXRbMDIChildVirtuals.h +12 -0
  250. data/ext/fox16/include/FXRbMDIClient.h +80 -0
  251. data/ext/fox16/include/FXRbMDIClientVirtuals.h +12 -0
  252. data/ext/fox16/include/FXRbMainWindow.h +54 -0
  253. data/ext/fox16/include/FXRbMatrix.h +51 -0
  254. data/ext/fox16/include/FXRbMenuBar.h +63 -0
  255. data/ext/fox16/include/FXRbMenuButton.h +51 -0
  256. data/ext/fox16/include/FXRbMenuCaption.h +51 -0
  257. data/ext/fox16/include/FXRbMenuCascade.h +51 -0
  258. data/ext/fox16/include/FXRbMenuCheck.h +49 -0
  259. data/ext/fox16/include/FXRbMenuCommand.h +49 -0
  260. data/ext/fox16/include/FXRbMenuPane.h +52 -0
  261. data/ext/fox16/include/FXRbMenuRadio.h +49 -0
  262. data/ext/fox16/include/FXRbMenuSeparator.h +51 -0
  263. data/ext/fox16/include/FXRbMenuTitle.h +51 -0
  264. data/ext/fox16/include/FXRbMessageBox.h +56 -0
  265. data/ext/fox16/include/FXRbObject.h +67 -0
  266. data/ext/fox16/include/FXRbObjectVirtuals.h +9 -0
  267. data/ext/fox16/include/FXRbOptionMenu.h +73 -0
  268. data/ext/fox16/include/FXRbPCXIcon.h +54 -0
  269. data/ext/fox16/include/FXRbPCXImage.h +54 -0
  270. data/ext/fox16/include/FXRbPNGIcon.h +54 -0
  271. data/ext/fox16/include/FXRbPNGImage.h +54 -0
  272. data/ext/fox16/include/FXRbPPMIcon.h +54 -0
  273. data/ext/fox16/include/FXRbPPMImage.h +54 -0
  274. data/ext/fox16/include/FXRbPacker.h +51 -0
  275. data/ext/fox16/include/FXRbPicker.h +51 -0
  276. data/ext/fox16/include/FXRbPopup.h +70 -0
  277. data/ext/fox16/include/FXRbPopupVirtuals.h +6 -0
  278. data/ext/fox16/include/FXRbPrintDialog.h +53 -0
  279. data/ext/fox16/include/FXRbProgressBar.h +51 -0
  280. data/ext/fox16/include/FXRbProgressDialog.h +53 -0
  281. data/ext/fox16/include/FXRbRGBIcon.h +54 -0
  282. data/ext/fox16/include/FXRbRGBImage.h +54 -0
  283. data/ext/fox16/include/FXRbRadioButton.h +51 -0
  284. data/ext/fox16/include/FXRbRealSlider.h +51 -0
  285. data/ext/fox16/include/FXRbRealSpinner.h +64 -0
  286. data/ext/fox16/include/FXRbRealSpinnerVirtuals.h +3 -0
  287. data/ext/fox16/include/FXRbRecentFiles.h +52 -0
  288. data/ext/fox16/include/FXRbRegistry.h +46 -0
  289. data/ext/fox16/include/FXRbReplaceDialog.h +53 -0
  290. data/ext/fox16/include/FXRbRootWindow.h +51 -0
  291. data/ext/fox16/include/FXRbRuler.h +56 -0
  292. data/ext/fox16/include/FXRbRulerView.h +54 -0
  293. data/ext/fox16/include/FXRbScintilla.h +52 -0
  294. data/ext/fox16/include/FXRbScrollArea.h +87 -0
  295. data/ext/fox16/include/FXRbScrollAreaVirtuals.h +13 -0
  296. data/ext/fox16/include/FXRbScrollBar.h +73 -0
  297. data/ext/fox16/include/FXRbScrollPane.h +52 -0
  298. data/ext/fox16/include/FXRbScrollWindow.h +57 -0
  299. data/ext/fox16/include/FXRbSearchDialog.h +53 -0
  300. data/ext/fox16/include/FXRbSeparator.h +95 -0
  301. data/ext/fox16/include/FXRbSettings.h +46 -0
  302. data/ext/fox16/include/FXRbShell.h +56 -0
  303. data/ext/fox16/include/FXRbShutter.h +86 -0
  304. data/ext/fox16/include/FXRbShutterVirtuals.h +3 -0
  305. data/ext/fox16/include/FXRbSlider.h +51 -0
  306. data/ext/fox16/include/FXRbSpinner.h +64 -0
  307. data/ext/fox16/include/FXRbSpinnerVirtuals.h +3 -0
  308. data/ext/fox16/include/FXRbSplashWindow.h +57 -0
  309. data/ext/fox16/include/FXRbSplitter.h +54 -0
  310. data/ext/fox16/include/FXRbSpring.h +51 -0
  311. data/ext/fox16/include/FXRbStatusBar.h +51 -0
  312. data/ext/fox16/include/FXRbStatusLine.h +51 -0
  313. data/ext/fox16/include/FXRbStream.h +101 -0
  314. data/ext/fox16/include/FXRbStreamVirtuals.h +9 -0
  315. data/ext/fox16/include/FXRbStringDict.h +46 -0
  316. data/ext/fox16/include/FXRbSwitcher.h +51 -0
  317. data/ext/fox16/include/FXRbTGAIcon.h +54 -0
  318. data/ext/fox16/include/FXRbTGAImage.h +54 -0
  319. data/ext/fox16/include/FXRbTIFIcon.h +54 -0
  320. data/ext/fox16/include/FXRbTIFImage.h +54 -0
  321. data/ext/fox16/include/FXRbTabBar.h +64 -0
  322. data/ext/fox16/include/FXRbTabBarVirtuals.h +3 -0
  323. data/ext/fox16/include/FXRbTabBook.h +52 -0
  324. data/ext/fox16/include/FXRbTabItem.h +51 -0
  325. data/ext/fox16/include/FXRbTable.h +509 -0
  326. data/ext/fox16/include/FXRbTableItemVirtuals.h +89 -0
  327. data/ext/fox16/include/FXRbTableVirtuals.h +89 -0
  328. data/ext/fox16/include/FXRbText.h +187 -0
  329. data/ext/fox16/include/FXRbTextField.h +51 -0
  330. data/ext/fox16/include/FXRbTextVirtuals.h +52 -0
  331. data/ext/fox16/include/FXRbToggleButton.h +51 -0
  332. data/ext/fox16/include/FXRbToolBar.h +63 -0
  333. data/ext/fox16/include/FXRbToolBarGrip.h +51 -0
  334. data/ext/fox16/include/FXRbToolBarShell.h +52 -0
  335. data/ext/fox16/include/FXRbToolBarTab.h +51 -0
  336. data/ext/fox16/include/FXRbToolTip.h +51 -0
  337. data/ext/fox16/include/FXRbTopWindow.h +91 -0
  338. data/ext/fox16/include/FXRbTopWindowVirtuals.h +15 -0
  339. data/ext/fox16/include/FXRbTranslator.h +61 -0
  340. data/ext/fox16/include/FXRbTranslatorVirtuals.h +4 -0
  341. data/ext/fox16/include/FXRbTreeItemVirtuals.h +42 -0
  342. data/ext/fox16/include/FXRbTreeList.h +277 -0
  343. data/ext/fox16/include/FXRbTreeListBox.h +64 -0
  344. data/ext/fox16/include/FXRbTreeListBoxVirtuals.h +4 -0
  345. data/ext/fox16/include/FXRbTreeListVirtuals.h +42 -0
  346. data/ext/fox16/include/FXRbTriStateButton.h +51 -0
  347. data/ext/fox16/include/FXRbVerticalFrame.h +51 -0
  348. data/ext/fox16/include/FXRbVisual.h +56 -0
  349. data/ext/fox16/include/FXRbWindow.h +248 -0
  350. data/ext/fox16/include/FXRbWindowVirtuals.h +94 -0
  351. data/ext/fox16/include/FXRbWizard.h +60 -0
  352. data/ext/fox16/include/FXRbXBMIcon.h +54 -0
  353. data/ext/fox16/include/FXRbXBMImage.h +54 -0
  354. data/ext/fox16/include/FXRbXPMIcon.h +54 -0
  355. data/ext/fox16/include/FXRbXPMImage.h +54 -0
  356. data/ext/fox16/include/FXRuby.h +842 -0
  357. data/ext/fox16/include/impl.h +214 -0
  358. data/ext/fox16/include/inlinestubs.h +1155 -0
  359. data/ext/fox16/label_wrap.cpp +5700 -0
  360. data/ext/fox16/layout_wrap.cpp +6358 -0
  361. data/ext/fox16/librb.c +647 -0
  362. data/ext/fox16/list_wrap.cpp +2981 -0
  363. data/ext/fox16/make_impl.rb +121 -0
  364. data/ext/fox16/markfuncs.cpp +1650 -0
  365. data/ext/fox16/mdi_wrap.cpp +5266 -0
  366. data/ext/fox16/menu_wrap.cpp +5589 -0
  367. data/ext/fox16/scintilla_wrap.cpp +2518 -0
  368. data/ext/fox16/table_wrap.cpp +4173 -0
  369. data/ext/fox16/text_wrap.cpp +3832 -0
  370. data/ext/fox16/treelist_wrap.cpp +6004 -0
  371. data/ext/fox16/ui_wrap.cpp +14230 -0
  372. data/ext/fox16/unregisterOwnedObjects.cpp +120 -0
  373. data/index.html +0 -0
  374. data/lib/1.8/fox16.so +0 -0
  375. data/{ext/fox16 → lib/1.9}/fox16.so +0 -0
  376. data/lib/fox16.rb +8 -0
  377. data/lib/fox16/aliases.rb +0 -0
  378. data/lib/fox16/bitmapview.rb +223 -0
  379. data/lib/fox16/calendar.rb +0 -0
  380. data/lib/fox16/chore.rb +0 -0
  381. data/lib/fox16/colors.rb +0 -0
  382. data/lib/fox16/core.rb +0 -0
  383. data/lib/fox16/dict.rb +0 -0
  384. data/lib/fox16/glgroup.rb +0 -0
  385. data/lib/fox16/glshapes.rb +0 -0
  386. data/lib/fox16/input.rb +0 -0
  387. data/lib/fox16/irb.rb +0 -0
  388. data/lib/fox16/iterators.rb +0 -0
  389. data/lib/fox16/keys.rb +0 -0
  390. data/lib/fox16/kwargs.rb +893 -893
  391. data/lib/fox16/missingdep.rb +0 -0
  392. data/lib/fox16/pseudokeyboard.rb +0 -0
  393. data/lib/fox16/pseudomouse.rb +0 -0
  394. data/lib/fox16/responder.rb +0 -0
  395. data/lib/fox16/responder2.rb +0 -0
  396. data/lib/fox16/scintilla.rb +103 -3
  397. data/lib/fox16/settings.rb +0 -0
  398. data/lib/fox16/signal.rb +0 -0
  399. data/lib/fox16/timeout.rb +0 -0
  400. data/lib/fox16/undolist.rb +0 -0
  401. data/lib/fox16/version.rb +1 -5
  402. data/rdoc-sources/FX4Splitter.rb +0 -0
  403. data/rdoc-sources/FXAccelTable.rb +0 -0
  404. data/rdoc-sources/FXApp.rb +0 -0
  405. data/rdoc-sources/FXArrowButton.rb +0 -0
  406. data/rdoc-sources/FXBMPIcon.rb +0 -0
  407. data/rdoc-sources/FXBMPImage.rb +0 -0
  408. data/rdoc-sources/FXBitmap.rb +0 -0
  409. data/rdoc-sources/FXBitmapFrame.rb +0 -0
  410. data/rdoc-sources/FXBitmapView.rb +0 -0
  411. data/rdoc-sources/FXButton.rb +0 -0
  412. data/rdoc-sources/FXCURCursor.rb +0 -0
  413. data/rdoc-sources/FXCanvas.rb +0 -0
  414. data/rdoc-sources/FXCheckButton.rb +0 -0
  415. data/rdoc-sources/FXColorBar.rb +0 -0
  416. data/rdoc-sources/FXColorDialog.rb +0 -0
  417. data/rdoc-sources/FXColorSelector.rb +0 -0
  418. data/rdoc-sources/FXColorWell.rb +0 -0
  419. data/rdoc-sources/FXColorWheel.rb +0 -0
  420. data/rdoc-sources/FXComboBox.rb +0 -0
  421. data/rdoc-sources/FXComposite.rb +0 -0
  422. data/rdoc-sources/FXCursor.rb +0 -0
  423. data/rdoc-sources/FXDC.rb +0 -0
  424. data/rdoc-sources/FXDCPrint.rb +0 -0
  425. data/rdoc-sources/FXDCWindow.rb +0 -0
  426. data/rdoc-sources/FXDataTarget.rb +0 -0
  427. data/rdoc-sources/FXDebugTarget.rb +0 -0
  428. data/rdoc-sources/FXDelegator.rb +0 -0
  429. data/rdoc-sources/FXDial.rb +0 -0
  430. data/rdoc-sources/FXDialogBox.rb +0 -0
  431. data/rdoc-sources/FXDict.rb +0 -0
  432. data/rdoc-sources/FXDirBox.rb +0 -0
  433. data/rdoc-sources/FXDirDialog.rb +0 -0
  434. data/rdoc-sources/FXDirList.rb +0 -0
  435. data/rdoc-sources/FXDirSelector.rb +0 -0
  436. data/rdoc-sources/FXDockBar.rb +0 -0
  437. data/rdoc-sources/FXDockHandler.rb +0 -0
  438. data/rdoc-sources/FXDockTitle.rb +0 -0
  439. data/rdoc-sources/FXDocument.rb +0 -0
  440. data/rdoc-sources/FXDragCorner.rb +0 -0
  441. data/rdoc-sources/FXDrawable.rb +0 -0
  442. data/rdoc-sources/FXDriveBox.rb +0 -0
  443. data/rdoc-sources/FXFileDialog.rb +0 -0
  444. data/rdoc-sources/FXFileDict.rb +0 -0
  445. data/rdoc-sources/FXFileList.rb +0 -0
  446. data/rdoc-sources/FXFileSelector.rb +0 -0
  447. data/rdoc-sources/FXFileStream.rb +0 -0
  448. data/rdoc-sources/FXFoldingList.rb +0 -0
  449. data/rdoc-sources/FXFont.rb +0 -0
  450. data/rdoc-sources/FXFontDialog.rb +0 -0
  451. data/rdoc-sources/FXFontSelector.rb +0 -0
  452. data/rdoc-sources/FXFrame.rb +0 -0
  453. data/rdoc-sources/FXGIFCursor.rb +0 -0
  454. data/rdoc-sources/FXGIFIcon.rb +0 -0
  455. data/rdoc-sources/FXGIFImage.rb +0 -0
  456. data/rdoc-sources/FXGLCanvas.rb +0 -0
  457. data/rdoc-sources/FXGLContext.rb +0 -0
  458. data/rdoc-sources/FXGLObject.rb +0 -0
  459. data/rdoc-sources/FXGLShape.rb +0 -0
  460. data/rdoc-sources/FXGLViewer.rb +0 -0
  461. data/rdoc-sources/FXGLVisual.rb +0 -0
  462. data/rdoc-sources/FXGradientBar.rb +0 -0
  463. data/rdoc-sources/FXGroupBox.rb +0 -0
  464. data/rdoc-sources/FXHeader.rb +0 -0
  465. data/rdoc-sources/FXHorizontalFrame.rb +0 -0
  466. data/rdoc-sources/FXICOIcon.rb +0 -0
  467. data/rdoc-sources/FXICOImage.rb +0 -0
  468. data/rdoc-sources/FXIcon.rb +0 -0
  469. data/rdoc-sources/FXIconList.rb +0 -0
  470. data/rdoc-sources/FXId.rb +0 -0
  471. data/rdoc-sources/FXImage.rb +0 -0
  472. data/rdoc-sources/FXImageFrame.rb +0 -0
  473. data/rdoc-sources/FXImageView.rb +0 -0
  474. data/rdoc-sources/FXInputDialog.rb +0 -0
  475. data/rdoc-sources/FXJPGIcon.rb +0 -0
  476. data/rdoc-sources/FXJPGImage.rb +0 -0
  477. data/rdoc-sources/FXLabel.rb +0 -0
  478. data/rdoc-sources/FXList.rb +0 -0
  479. data/rdoc-sources/FXListBox.rb +0 -0
  480. data/rdoc-sources/FXMDIButton.rb +0 -0
  481. data/rdoc-sources/FXMDIChild.rb +0 -0
  482. data/rdoc-sources/FXMDIClient.rb +0 -0
  483. data/rdoc-sources/FXMainWindow.rb +0 -0
  484. data/rdoc-sources/FXMatrix.rb +0 -0
  485. data/rdoc-sources/FXMemoryBuffer.rb +0 -0
  486. data/rdoc-sources/FXMemoryStream.rb +0 -0
  487. data/rdoc-sources/FXMenuBar.rb +0 -0
  488. data/rdoc-sources/FXMenuButton.rb +0 -0
  489. data/rdoc-sources/FXMenuCaption.rb +0 -0
  490. data/rdoc-sources/FXMenuCascade.rb +0 -0
  491. data/rdoc-sources/FXMenuCheck.rb +0 -0
  492. data/rdoc-sources/FXMenuCommand.rb +0 -0
  493. data/rdoc-sources/FXMenuPane.rb +0 -0
  494. data/rdoc-sources/FXMenuRadio.rb +0 -0
  495. data/rdoc-sources/FXMenuSeparator.rb +0 -0
  496. data/rdoc-sources/FXMenuTitle.rb +0 -0
  497. data/rdoc-sources/FXMessageBox.rb +0 -0
  498. data/rdoc-sources/FXObject.rb +0 -0
  499. data/rdoc-sources/FXOptionMenu.rb +0 -0
  500. data/rdoc-sources/FXPCXIcon.rb +0 -0
  501. data/rdoc-sources/FXPCXImage.rb +0 -0
  502. data/rdoc-sources/FXPNGIcon.rb +0 -0
  503. data/rdoc-sources/FXPNGImage.rb +0 -0
  504. data/rdoc-sources/FXPPMIcon.rb +0 -0
  505. data/rdoc-sources/FXPPMImage.rb +0 -0
  506. data/rdoc-sources/FXPacker.rb +0 -0
  507. data/rdoc-sources/FXPicker.rb +0 -0
  508. data/rdoc-sources/FXPopup.rb +0 -0
  509. data/rdoc-sources/FXPrintDialog.rb +0 -0
  510. data/rdoc-sources/FXProgressBar.rb +0 -0
  511. data/rdoc-sources/FXProgressDialog.rb +0 -0
  512. data/rdoc-sources/FXQuatd.rb +0 -0
  513. data/rdoc-sources/FXQuatf.rb +0 -0
  514. data/rdoc-sources/FXRGBIcon.rb +0 -0
  515. data/rdoc-sources/FXRGBImage.rb +0 -0
  516. data/rdoc-sources/FXRadioButton.rb +0 -0
  517. data/rdoc-sources/FXRanged.rb +0 -0
  518. data/rdoc-sources/FXRangef.rb +0 -0
  519. data/rdoc-sources/FXRealSlider.rb +0 -0
  520. data/rdoc-sources/FXRealSpinner.rb +0 -0
  521. data/rdoc-sources/FXRecentFiles.rb +0 -0
  522. data/rdoc-sources/FXRectangle.rb +0 -0
  523. data/rdoc-sources/FXRegion.rb +0 -0
  524. data/rdoc-sources/FXRegistry.rb +0 -0
  525. data/rdoc-sources/FXReplaceDialog.rb +0 -0
  526. data/rdoc-sources/FXRootWindow.rb +0 -0
  527. data/rdoc-sources/FXRuler.rb +0 -0
  528. data/rdoc-sources/FXRulerView.rb +0 -0
  529. data/rdoc-sources/FXScintilla.rb +0 -0
  530. data/rdoc-sources/FXScrollArea.rb +0 -0
  531. data/rdoc-sources/FXScrollBar.rb +0 -0
  532. data/rdoc-sources/FXScrollPane.rb +0 -0
  533. data/rdoc-sources/FXScrollWindow.rb +0 -0
  534. data/rdoc-sources/FXSearchDialog.rb +0 -0
  535. data/rdoc-sources/FXSeparator.rb +0 -0
  536. data/rdoc-sources/FXSettings.rb +0 -0
  537. data/rdoc-sources/FXShell.rb +0 -0
  538. data/rdoc-sources/FXShutter.rb +0 -0
  539. data/rdoc-sources/FXSize.rb +0 -0
  540. data/rdoc-sources/FXSlider.rb +0 -0
  541. data/rdoc-sources/FXSphered.rb +0 -0
  542. data/rdoc-sources/FXSpheref.rb +0 -0
  543. data/rdoc-sources/FXSpinner.rb +0 -0
  544. data/rdoc-sources/FXSplitter.rb +0 -0
  545. data/rdoc-sources/FXSpring.rb +0 -0
  546. data/rdoc-sources/FXStatusBar.rb +0 -0
  547. data/rdoc-sources/FXStatusLine.rb +0 -0
  548. data/rdoc-sources/FXStream.rb +0 -0
  549. data/rdoc-sources/FXStringDict.rb +0 -0
  550. data/rdoc-sources/FXSwitcher.rb +0 -0
  551. data/rdoc-sources/FXTGAIcon.rb +0 -0
  552. data/rdoc-sources/FXTGAImage.rb +0 -0
  553. data/rdoc-sources/FXTIFIcon.rb +0 -0
  554. data/rdoc-sources/FXTIFImage.rb +0 -0
  555. data/rdoc-sources/FXTabBar.rb +0 -0
  556. data/rdoc-sources/FXTabBook.rb +0 -0
  557. data/rdoc-sources/FXTabItem.rb +0 -0
  558. data/rdoc-sources/FXTable.rb +0 -0
  559. data/rdoc-sources/FXText.rb +0 -0
  560. data/rdoc-sources/FXTextField.rb +0 -0
  561. data/rdoc-sources/FXToggleButton.rb +0 -0
  562. data/rdoc-sources/FXToolBar.rb +0 -0
  563. data/rdoc-sources/FXToolBarGrip.rb +0 -0
  564. data/rdoc-sources/FXToolBarShell.rb +0 -0
  565. data/rdoc-sources/FXToolBarTab.rb +0 -0
  566. data/rdoc-sources/FXToolTip.rb +0 -0
  567. data/rdoc-sources/FXTopWindow.rb +0 -0
  568. data/rdoc-sources/FXTreeList.rb +0 -0
  569. data/rdoc-sources/FXTreeListBox.rb +0 -0
  570. data/rdoc-sources/FXTriStateButton.rb +0 -0
  571. data/rdoc-sources/FXVec2d.rb +0 -0
  572. data/rdoc-sources/FXVec2f.rb +0 -0
  573. data/rdoc-sources/FXVec3d.rb +0 -0
  574. data/rdoc-sources/FXVec3f.rb +0 -0
  575. data/rdoc-sources/FXVec4d.rb +0 -0
  576. data/rdoc-sources/FXVec4f.rb +0 -0
  577. data/rdoc-sources/FXVerticalFrame.rb +0 -0
  578. data/rdoc-sources/FXVisual.rb +0 -0
  579. data/rdoc-sources/FXWindow.rb +0 -0
  580. data/rdoc-sources/FXWizard.rb +0 -0
  581. data/rdoc-sources/FXXBMIcon.rb +0 -0
  582. data/rdoc-sources/FXXBMImage.rb +0 -0
  583. data/rdoc-sources/FXXPMIcon.rb +0 -0
  584. data/rdoc-sources/FXXPMImage.rb +0 -0
  585. data/rdoc-sources/Makefile +23 -0
  586. data/rdoc-sources/README.rdoc +0 -0
  587. data/rdoc-sources/fxdefs.rb +0 -0
  588. data/scripts/build-fox.rb +31 -0
  589. data/scripts/generate_kwargs_lib.rb +414 -0
  590. data/scripts/iface.rb +391 -0
  591. data/swig-interfaces/FX4Splitter.i +149 -0
  592. data/swig-interfaces/FX7Segment.i +141 -0
  593. data/swig-interfaces/FXAccelTable.i +100 -0
  594. data/swig-interfaces/FXApp.i +735 -0
  595. data/swig-interfaces/FXArrowButton.i +136 -0
  596. data/swig-interfaces/FXBMPIcon.i +88 -0
  597. data/swig-interfaces/FXBMPImage.i +54 -0
  598. data/swig-interfaces/FXBitmap.i +90 -0
  599. data/swig-interfaces/FXBitmapFrame.i +72 -0
  600. data/swig-interfaces/FXBitmapView.i +94 -0
  601. data/swig-interfaces/FXButton.i +130 -0
  602. data/swig-interfaces/FXCURCursor.i +49 -0
  603. data/swig-interfaces/FXCanvas.i +61 -0
  604. data/swig-interfaces/FXCheckButton.i +108 -0
  605. data/swig-interfaces/FXChoiceBox.i +91 -0
  606. data/swig-interfaces/FXColorBar.i +110 -0
  607. data/swig-interfaces/FXColorDialog.i +79 -0
  608. data/swig-interfaces/FXColorList.i +99 -0
  609. data/swig-interfaces/FXColorRing.i +148 -0
  610. data/swig-interfaces/FXColorSelector.i +157 -0
  611. data/swig-interfaces/FXColorWell.i +133 -0
  612. data/swig-interfaces/FXColorWheel.i +108 -0
  613. data/swig-interfaces/FXComboBox.i +280 -0
  614. data/swig-interfaces/FXComposeContext.i +66 -0
  615. data/swig-interfaces/FXComposite.i +103 -0
  616. data/swig-interfaces/FXCursor.i +120 -0
  617. data/swig-interfaces/FXDC.i +280 -0
  618. data/swig-interfaces/FXDCPrint.i +141 -0
  619. data/swig-interfaces/FXDCWindow.i +75 -0
  620. data/swig-interfaces/FXDataTarget.i +115 -0
  621. data/swig-interfaces/FXDebugTarget.i +60 -0
  622. data/swig-interfaces/FXDelegator.i +56 -0
  623. data/swig-interfaces/FXDial.i +168 -0
  624. data/swig-interfaces/FXDialogBox.i +131 -0
  625. data/swig-interfaces/FXDict.i +200 -0
  626. data/swig-interfaces/FXDirBox.i +68 -0
  627. data/swig-interfaces/FXDirDialog.i +97 -0
  628. data/swig-interfaces/FXDirList.i +274 -0
  629. data/swig-interfaces/FXDirSelector.i +142 -0
  630. data/swig-interfaces/FXDockBar.i +180 -0
  631. data/swig-interfaces/FXDockHandler.i +94 -0
  632. data/swig-interfaces/FXDockSite.i +91 -0
  633. data/swig-interfaces/FXDockTitle.i +91 -0
  634. data/swig-interfaces/FXDocument.i +70 -0
  635. data/swig-interfaces/FXDragCorner.i +72 -0
  636. data/swig-interfaces/FXDrawable.i +90 -0
  637. data/swig-interfaces/FXDriveBox.i +63 -0
  638. data/swig-interfaces/FXExtentd.i +131 -0
  639. data/swig-interfaces/FXExtentf.i +131 -0
  640. data/swig-interfaces/FXFileDialog.i +268 -0
  641. data/swig-interfaces/FXFileDict.i +121 -0
  642. data/swig-interfaces/FXFileList.i +345 -0
  643. data/swig-interfaces/FXFileSelector.i +347 -0
  644. data/swig-interfaces/FXFileStream.i +49 -0
  645. data/swig-interfaces/FXFoldingList.i +556 -0
  646. data/swig-interfaces/FXFont.i +333 -0
  647. data/swig-interfaces/FXFontDialog.i +63 -0
  648. data/swig-interfaces/FXFontSelector.i +127 -0
  649. data/swig-interfaces/FXFrame.i +245 -0
  650. data/swig-interfaces/FXGIFCursor.i +86 -0
  651. data/swig-interfaces/FXGIFIcon.i +54 -0
  652. data/swig-interfaces/FXGIFImage.i +54 -0
  653. data/swig-interfaces/FXGLCanvas.i +90 -0
  654. data/swig-interfaces/FXGLContext.i +85 -0
  655. data/swig-interfaces/FXGLObject.i +70 -0
  656. data/swig-interfaces/FXGLShape.i +152 -0
  657. data/swig-interfaces/FXGLViewer.i +691 -0
  658. data/swig-interfaces/FXGLVisual.i +136 -0
  659. data/swig-interfaces/FXGradientBar.i +310 -0
  660. data/swig-interfaces/FXGroupBox.i +94 -0
  661. data/swig-interfaces/FXHeader.i +432 -0
  662. data/swig-interfaces/FXHorizontalFrame.i +60 -0
  663. data/swig-interfaces/FXICOIcon.i +92 -0
  664. data/swig-interfaces/FXICOImage.i +54 -0
  665. data/swig-interfaces/FXIcon.i +128 -0
  666. data/swig-interfaces/FXIconDict.i +90 -0
  667. data/swig-interfaces/FXIconList.i +596 -0
  668. data/swig-interfaces/FXIconSource.i +55 -0
  669. data/swig-interfaces/FXId.i +103 -0
  670. data/swig-interfaces/FXImage.i +197 -0
  671. data/swig-interfaces/FXImageFrame.i +66 -0
  672. data/swig-interfaces/FXImageView.i +88 -0
  673. data/swig-interfaces/FXInputDialog.i +180 -0
  674. data/swig-interfaces/FXJPGIcon.i +101 -0
  675. data/swig-interfaces/FXJPGImage.i +67 -0
  676. data/swig-interfaces/FXKnob.i +182 -0
  677. data/swig-interfaces/FXLabel.i +199 -0
  678. data/swig-interfaces/FXList.i +476 -0
  679. data/swig-interfaces/FXListBox.i +234 -0
  680. data/swig-interfaces/FXMDIButton.i +173 -0
  681. data/swig-interfaces/FXMDIChild.i +242 -0
  682. data/swig-interfaces/FXMDIClient.i +149 -0
  683. data/swig-interfaces/FXMainWindow.i +53 -0
  684. data/swig-interfaces/FXMat3d.i +102 -0
  685. data/swig-interfaces/FXMat3f.i +102 -0
  686. data/swig-interfaces/FXMat4d.i +122 -0
  687. data/swig-interfaces/FXMat4f.i +138 -0
  688. data/swig-interfaces/FXMatrix.i +101 -0
  689. data/swig-interfaces/FXMemoryBuffer.i +64 -0
  690. data/swig-interfaces/FXMemoryStream.i +73 -0
  691. data/swig-interfaces/FXMenuBar.i +67 -0
  692. data/swig-interfaces/FXMenuButton.i +152 -0
  693. data/swig-interfaces/FXMenuCaption.i +176 -0
  694. data/swig-interfaces/FXMenuCascade.i +76 -0
  695. data/swig-interfaces/FXMenuCheck.i +90 -0
  696. data/swig-interfaces/FXMenuCommand.i +69 -0
  697. data/swig-interfaces/FXMenuPane.i +60 -0
  698. data/swig-interfaces/FXMenuRadio.i +93 -0
  699. data/swig-interfaces/FXMenuSeparator.i +65 -0
  700. data/swig-interfaces/FXMenuTitle.i +74 -0
  701. data/swig-interfaces/FXMessageBox.i +128 -0
  702. data/swig-interfaces/FXObject.i +169 -0
  703. data/swig-interfaces/FXOptionMenu.i +140 -0
  704. data/swig-interfaces/FXPCXIcon.i +91 -0
  705. data/swig-interfaces/FXPCXImage.i +55 -0
  706. data/swig-interfaces/FXPNGIcon.i +95 -0
  707. data/swig-interfaces/FXPNGImage.i +59 -0
  708. data/swig-interfaces/FXPPMIcon.i +91 -0
  709. data/swig-interfaces/FXPPMImage.i +55 -0
  710. data/swig-interfaces/FXPacker.i +255 -0
  711. data/swig-interfaces/FXPicker.i +54 -0
  712. data/swig-interfaces/FXPoint.i +52 -0
  713. data/swig-interfaces/FXPopup.i +162 -0
  714. data/swig-interfaces/FXPrintDialog.i +154 -0
  715. data/swig-interfaces/FXProgressBar.i +133 -0
  716. data/swig-interfaces/FXProgressDialog.i +105 -0
  717. data/swig-interfaces/FXQuatd.i +128 -0
  718. data/swig-interfaces/FXQuatf.i +122 -0
  719. data/swig-interfaces/FXRGBIcon.i +90 -0
  720. data/swig-interfaces/FXRGBImage.i +56 -0
  721. data/swig-interfaces/FXRadioButton.i +117 -0
  722. data/swig-interfaces/FXRanged.i +163 -0
  723. data/swig-interfaces/FXRangef.i +172 -0
  724. data/swig-interfaces/FXRealSlider.i +166 -0
  725. data/swig-interfaces/FXRealSpinner.i +215 -0
  726. data/swig-interfaces/FXRecentFiles.i +119 -0
  727. data/swig-interfaces/FXRectangle.i +104 -0
  728. data/swig-interfaces/FXRegion.i +88 -0
  729. data/swig-interfaces/FXRegistry.i +96 -0
  730. data/swig-interfaces/FXReplaceDialog.i +131 -0
  731. data/swig-interfaces/FXRootWindow.i +50 -0
  732. data/swig-interfaces/FXRuler.i +245 -0
  733. data/swig-interfaces/FXRulerView.i +233 -0
  734. data/swig-interfaces/FXScintilla.i +192 -0
  735. data/swig-interfaces/FXScrollArea.i +211 -0
  736. data/swig-interfaces/FXScrollBar.i +178 -0
  737. data/swig-interfaces/FXScrollPane.i +83 -0
  738. data/swig-interfaces/FXScrollWindow.i +67 -0
  739. data/swig-interfaces/FXSearchDialog.i +48 -0
  740. data/swig-interfaces/FXSeparator.i +138 -0
  741. data/swig-interfaces/FXSettings.i +160 -0
  742. data/swig-interfaces/FXShell.i +91 -0
  743. data/swig-interfaces/FXShutter.i +140 -0
  744. data/swig-interfaces/FXSize.i +71 -0
  745. data/swig-interfaces/FXSlider.i +181 -0
  746. data/swig-interfaces/FXSphered.i +126 -0
  747. data/swig-interfaces/FXSpheref.i +126 -0
  748. data/swig-interfaces/FXSpinner.i +212 -0
  749. data/swig-interfaces/FXSplashWindow.i +82 -0
  750. data/swig-interfaces/FXSplitter.i +123 -0
  751. data/swig-interfaces/FXSpring.i +79 -0
  752. data/swig-interfaces/FXStatusBar.i +68 -0
  753. data/swig-interfaces/FXStatusLine.i +100 -0
  754. data/swig-interfaces/FXStream.i +150 -0
  755. data/swig-interfaces/FXStringDict.i +61 -0
  756. data/swig-interfaces/FXSwitcher.i +110 -0
  757. data/swig-interfaces/FXTGAIcon.i +85 -0
  758. data/swig-interfaces/FXTGAImage.i +56 -0
  759. data/swig-interfaces/FXTIFIcon.i +73 -0
  760. data/swig-interfaces/FXTIFImage.i +93 -0
  761. data/swig-interfaces/FXTabBar.i +121 -0
  762. data/swig-interfaces/FXTabBook.i +70 -0
  763. data/swig-interfaces/FXTabItem.i +82 -0
  764. data/swig-interfaces/FXTable.i +861 -0
  765. data/swig-interfaces/FXText.i +763 -0
  766. data/swig-interfaces/FXTextField.i +290 -0
  767. data/swig-interfaces/FXToggleButton.i +136 -0
  768. data/swig-interfaces/FXToolBar.i +75 -0
  769. data/swig-interfaces/FXToolBarGrip.i +82 -0
  770. data/swig-interfaces/FXToolBarShell.i +98 -0
  771. data/swig-interfaces/FXToolBarTab.i +114 -0
  772. data/swig-interfaces/FXToolTip.i +93 -0
  773. data/swig-interfaces/FXTopWindow.i +263 -0
  774. data/swig-interfaces/FXTranslator.i +55 -0
  775. data/swig-interfaces/FXTreeList.i +549 -0
  776. data/swig-interfaces/FXTreeListBox.i +317 -0
  777. data/swig-interfaces/FXTriStateButton.i +77 -0
  778. data/swig-interfaces/FXURL.i +35 -0
  779. data/swig-interfaces/FXVec2d.i +87 -0
  780. data/swig-interfaces/FXVec2f.i +87 -0
  781. data/swig-interfaces/FXVec3d.i +111 -0
  782. data/swig-interfaces/FXVec3f.i +109 -0
  783. data/swig-interfaces/FXVec4d.i +115 -0
  784. data/swig-interfaces/FXVec4f.i +115 -0
  785. data/swig-interfaces/FXVerticalFrame.i +69 -0
  786. data/swig-interfaces/FXVisual.i +162 -0
  787. data/swig-interfaces/FXWindow.i +851 -0
  788. data/swig-interfaces/FXWizard.i +125 -0
  789. data/swig-interfaces/FXXBMIcon.i +56 -0
  790. data/swig-interfaces/FXXBMImage.i +118 -0
  791. data/swig-interfaces/FXXPMIcon.i +122 -0
  792. data/swig-interfaces/FXXPMImage.i +56 -0
  793. data/swig-interfaces/README +17 -0
  794. data/swig-interfaces/common.i +48 -0
  795. data/swig-interfaces/core.i +85 -0
  796. data/swig-interfaces/dcmodule.i +36 -0
  797. data/swig-interfaces/dialogs.i +49 -0
  798. data/swig-interfaces/exceptions.i +249 -0
  799. data/swig-interfaces/framesmodule.i +54 -0
  800. data/swig-interfaces/freefuncs.i +93 -0
  801. data/swig-interfaces/fx3d.i +60 -0
  802. data/swig-interfaces/fxdefs.i +419 -0
  803. data/swig-interfaces/handlers.i +615 -0
  804. data/swig-interfaces/iconlistmodule.i +37 -0
  805. data/swig-interfaces/icons.i +48 -0
  806. data/swig-interfaces/ignore-message-handlers.rb +16 -0
  807. data/swig-interfaces/image.i +49 -0
  808. data/swig-interfaces/labelmodule.i +47 -0
  809. data/swig-interfaces/layout.i +47 -0
  810. data/swig-interfaces/listmodule.i +37 -0
  811. data/swig-interfaces/macros.i +1326 -0
  812. data/swig-interfaces/markfuncs.i +210 -0
  813. data/swig-interfaces/mdi.i +38 -0
  814. data/swig-interfaces/menumodule.i +44 -0
  815. data/swig-interfaces/ruby-typemaps.i +772 -0
  816. data/swig-interfaces/scintilla.i +57 -0
  817. data/swig-interfaces/table-module.i +36 -0
  818. data/swig-interfaces/text-module.i +36 -0
  819. data/swig-interfaces/treelist-module.i +37 -0
  820. data/swig-interfaces/ui.i +63 -0
  821. data/{tests → test}/README +0 -0
  822. data/{tests → test}/TC_FXAccelTable.rb +0 -0
  823. data/{tests → test}/TC_FXApp.rb +0 -0
  824. data/{tests → test}/TC_FXArc.rb +0 -0
  825. data/{tests → test}/TC_FXBMPIcon.rb +0 -0
  826. data/{tests → test}/TC_FXBMPImage.rb +0 -0
  827. data/{tests → test}/TC_FXButton.rb +0 -0
  828. data/{tests → test}/TC_FXCheckButton.rb +0 -0
  829. data/{tests → test}/TC_FXComboBox.rb +0 -0
  830. data/{tests → test}/TC_FXDC.rb +0 -0
  831. data/{tests → test}/TC_FXDCPrint.rb +0 -0
  832. data/{tests → test}/TC_FXDCWindow.rb +0 -0
  833. data/{tests → test}/TC_FXDataTarget.rb +0 -0
  834. data/{tests → test}/TC_FXDialogBox.rb +0 -0
  835. data/{tests → test}/TC_FXDirList.rb +0 -0
  836. data/{tests → test}/TC_FXExtentd.rb +0 -0
  837. data/{tests → test}/TC_FXExtentf.rb +0 -0
  838. data/{tests → test}/TC_FXFileAssoc.rb +0 -0
  839. data/{tests → test}/TC_FXFileStream.rb +0 -0
  840. data/{tests → test}/TC_FXFoldingList.rb +0 -0
  841. data/{tests → test}/TC_FXFont.rb +0 -0
  842. data/{tests → test}/TC_FXFontDesc.rb +0 -0
  843. data/{tests → test}/TC_FXGLGroup.rb +0 -0
  844. data/{tests → test}/TC_FXGLShape.rb +0 -0
  845. data/{tests → test}/TC_FXGLViewer.rb +0 -0
  846. data/{tests → test}/TC_FXGradientBar.rb +0 -0
  847. data/{tests → test}/TC_FXHeader.rb +0 -0
  848. data/{tests → test}/TC_FXHiliteStyle.rb +0 -0
  849. data/{tests → test}/TC_FXIconDict.rb +0 -0
  850. data/{tests → test}/TC_FXIconList.rb +0 -0
  851. data/{tests → test}/TC_FXId.rb +0 -0
  852. data/{tests → test}/TC_FXImage.rb +0 -0
  853. data/{tests → test}/TC_FXLight.rb +0 -0
  854. data/{tests → test}/TC_FXList.rb +0 -0
  855. data/{tests → test}/TC_FXListBox.rb +0 -0
  856. data/{tests → test}/TC_FXMainWindow.rb +0 -0
  857. data/{tests → test}/TC_FXMat4f.rb +0 -0
  858. data/{tests → test}/TC_FXMaterial.rb +0 -0
  859. data/{tests → test}/TC_FXMemoryStream.rb +0 -0
  860. data/{tests → test}/TC_FXMenuCheck.rb +0 -0
  861. data/{tests → test}/TC_FXMenuCommand.rb +0 -0
  862. data/{tests → test}/TC_FXMenuRadio.rb +0 -0
  863. data/{tests → test}/TC_FXMessageBox.rb +0 -0
  864. data/{tests → test}/TC_FXPoint.rb +0 -0
  865. data/{tests → test}/TC_FXQuatf.rb +0 -0
  866. data/{tests → test}/TC_FXRadioButton.rb +0 -0
  867. data/{tests → test}/TC_FXRanged.rb +0 -0
  868. data/{tests → test}/TC_FXRangef.rb +0 -0
  869. data/{tests → test}/TC_FXRectangle.rb +0 -0
  870. data/{tests → test}/TC_FXRegion.rb +0 -0
  871. data/{tests → test}/TC_FXRegistry.rb +0 -0
  872. data/{tests → test}/TC_FXScrollArea.rb +0 -0
  873. data/{tests → test}/TC_FXScrollWindow.rb +0 -0
  874. data/{tests → test}/TC_FXSegment.rb +0 -0
  875. data/{tests → test}/TC_FXSettings.rb +0 -0
  876. data/{tests → test}/TC_FXShell.rb +0 -0
  877. data/{tests → test}/TC_FXSize.rb +0 -0
  878. data/{tests → test}/TC_FXStream.rb +0 -0
  879. data/{tests → test}/TC_FXTable.rb +0 -0
  880. data/{tests → test}/TC_FXTableItem.rb +0 -0
  881. data/{tests → test}/TC_FXText.rb +0 -0
  882. data/{tests → test}/TC_FXTopWindow.rb +0 -0
  883. data/{tests → test}/TC_FXTreeList.rb +0 -0
  884. data/{tests → test}/TC_FXTreeListBox.rb +0 -0
  885. data/{tests → test}/TC_FXUndoList.rb +0 -0
  886. data/{tests → test}/TC_FXVec2d.rb +0 -0
  887. data/{tests → test}/TC_FXVec2f.rb +0 -0
  888. data/{tests → test}/TC_FXVec3d.rb +0 -0
  889. data/{tests → test}/TC_FXVec3f.rb +0 -0
  890. data/{tests → test}/TC_FXVec4f.rb +0 -0
  891. data/{tests → test}/TC_FXViewport.rb +0 -0
  892. data/{tests → test}/TC_FXXBMIcon.rb +0 -0
  893. data/{tests → test}/TC_FXXBMImage.rb +0 -0
  894. data/{tests → test}/TC_FXXPMIcon.rb +0 -0
  895. data/{tests → test}/TC_FXXPMImage.rb +0 -0
  896. data/{tests → test}/TC_Misc.rb +0 -0
  897. data/{tests → test}/TC_downcast.rb +0 -0
  898. data/{tests → test}/TS_All.rb +0 -0
  899. data/{tests → test}/blankpage.ps +0 -0
  900. data/{tests → test}/howdypage.ps +0 -0
  901. data/{tests → test}/stress1.rb +0 -0
  902. data/{tests → test}/stress2.rb +0 -0
  903. data/{tests → test}/stress3.rb +0 -0
  904. data/{tests → test}/testcase.rb +0 -0
  905. metadata +724 -208
  906. data/doc/apes02.html +0 -21
  907. data/doc/apes03.html +0 -39
  908. data/doc/book.html +0 -3
  909. data/doc/build.html +0 -132
  910. data/doc/ch03s02.html +0 -23
  911. data/doc/ch03s03.html +0 -52
  912. data/doc/ch03s04.html +0 -36
  913. data/doc/ch03s05.html +0 -60
  914. data/doc/ch04s02.html +0 -71
  915. data/doc/ch04s03.html +0 -37
  916. data/doc/ch04s04.html +0 -72
  917. data/doc/ch05s02.html +0 -260
  918. data/doc/ch05s03.html +0 -127
  919. data/doc/changes.html +0 -777
  920. data/doc/clipboardtut.html +0 -67
  921. data/doc/differences.html +0 -190
  922. data/doc/dragdroptut.html +0 -263
  923. data/doc/events.html +0 -36
  924. data/doc/examples.html +0 -104
  925. data/doc/gems.html +0 -73
  926. data/doc/goals.html +0 -41
  927. data/doc/images/babelfish.png +0 -0
  928. data/doc/images/browser.png +0 -0
  929. data/doc/images/button.png +0 -0
  930. data/doc/images/call-chain-example.png +0 -0
  931. data/doc/images/colordialog.png +0 -0
  932. data/doc/images/datatarget.png +0 -0
  933. data/doc/images/dialog.png +0 -0
  934. data/doc/images/dilbert.png +0 -0
  935. data/doc/images/dirlist.png +0 -0
  936. data/doc/images/dropsite-droprejected.png +0 -0
  937. data/doc/images/foursplit.png +0 -0
  938. data/doc/images/gltest.png +0 -0
  939. data/doc/images/glviewer.png +0 -0
  940. data/doc/images/groupbox.png +0 -0
  941. data/doc/images/header.png +0 -0
  942. data/doc/images/hello-with-button.png +0 -0
  943. data/doc/images/hello-with-icon-1.png +0 -0
  944. data/doc/images/hello-with-icon-2.png +0 -0
  945. data/doc/images/hello-with-icon-3.png +0 -0
  946. data/doc/images/hello-with-tooltip.png +0 -0
  947. data/doc/images/hello-without-button.png +0 -0
  948. data/doc/images/hello.png +0 -0
  949. data/doc/images/hello2.png +0 -0
  950. data/doc/images/iconlist-bigicons.png +0 -0
  951. data/doc/images/iconlist-details.png +0 -0
  952. data/doc/images/image.png +0 -0
  953. data/doc/images/imageviewer.png +0 -0
  954. data/doc/images/inheritance.png +0 -0
  955. data/doc/images/mditest.png +0 -0
  956. data/doc/images/raabrowser.png +0 -0
  957. data/doc/images/scribble.png +0 -0
  958. data/doc/images/shutter.png +0 -0
  959. data/doc/images/splitter.png +0 -0
  960. data/doc/images/tabbook.png +0 -0
  961. data/doc/images/table.png +0 -0
  962. data/doc/images/tutorial1.png +0 -0
  963. data/doc/implementation.html +0 -16
  964. data/doc/infosources.html +0 -33
  965. data/doc/library.html +0 -30
  966. data/doc/opengl.html +0 -73
  967. data/doc/pt01.html +0 -3
  968. data/doc/pt02.html +0 -3
  969. data/doc/scintilla.html +0 -36
  970. data/doc/style.css +0 -247
  971. data/doc/subversion.html +0 -21
  972. data/doc/tutorial1.html +0 -90
  973. data/doc/unicode.html +0 -56
@@ -0,0 +1,120 @@
1
+ /***********************************************************************
2
+ * $Id: unregisterOwnedObjects.cpp 2911 2008-12-11 14:09:45Z lyle $
3
+ ***********************************************************************/
4
+
5
+ /**
6
+ * The purpose of an unregisterOwnedObjects() function for a particular
7
+ * class is to call FXRbUnregisterRubyObj() on any objects that this object
8
+ * created itself, and which it "owns" and will destroy in its destructor.
9
+ * This includes not only child widgets, like the horizontal and vertical
10
+ * scrollbars managed by an FXScrollArea, but other non-widget objects
11
+ * like list items.
12
+ *
13
+ * You don't need to worry about objects that the user created himself
14
+ * using Ruby code, because those should get unregistered automatically
15
+ * when they're destroyed. So, for example, if I create a button as a child
16
+ * of a frame, e.g.
17
+ *
18
+ * FXButton.new(parentFrame, ...)
19
+ *
20
+ * that Ruby object's peer is an FXRbButton instance, and the destructor for
21
+ * the FXRbButton class calls FXRbUnregisterRubyObj(this). We only need to
22
+ * worry about the C++ objects that aren't subclasses of regular FOX classes,
23
+ * but which have somehow been "exposed" to the Ruby layer.
24
+ */
25
+
26
+ #include "FXRbCommon.h"
27
+
28
+ void FXRbHeader::unregisterOwnedObjects(FXHeader *self)
29
+ {
30
+ // FXRbFrame::unregisterOwnedObjects(self);
31
+ for (FXint i = 0; i < self->getNumItems(); i++) FXRbUnregisterRubyObj(self->getItem(i));
32
+ }
33
+
34
+ void FXRbScrollArea::unregisterOwnedObjects(FXScrollArea *self)
35
+ {
36
+ // FXRbComposite::unregisterOwnedObjects(self);
37
+ FXRbUnregisterRubyObj(self->horizontalScrollBar());
38
+ FXRbUnregisterRubyObj(self->verticalScrollBar());
39
+ }
40
+
41
+ /*
42
+ void FXRbBitmapView::unregisterOwnedObjects(FXBitmapView *self)
43
+ {
44
+ FXRbScrollArea::unregisterOwnedObjects(self);
45
+ }
46
+ */
47
+
48
+ void FXRbFoldingList::unregisterOwnedObjects(FXFoldingList *self)
49
+ {
50
+ FXRbScrollArea::unregisterOwnedObjects(self);
51
+ FXRbUnregisterRubyObj(self->getHeader());
52
+
53
+ // Save pointer(s) to the soon-to-be-destroyed items
54
+ FXObjectListOf<FXFoldingItem> items;
55
+ FXRbFoldingList::enumerateItems(self->getFirstItem(),self->getLastItem(),items);
56
+
57
+ // Now zero-out pointers held by still-alive Ruby objects
58
+ for (FXint i = 0; i <items.no(); i++) FXRbUnregisterRubyObj(items[i]);
59
+ }
60
+
61
+ void FXRbIconList::unregisterOwnedObjects(FXIconList *self)
62
+ {
63
+ FXRbScrollArea::unregisterOwnedObjects(self);
64
+ FXRbUnregisterRubyObj(self->getHeader());
65
+ for (FXint i = 0; i <self->getNumItems(); i++) FXRbUnregisterRubyObj(self->getItem(i));
66
+ }
67
+
68
+ void FXRbImageView::unregisterOwnedObjects(FXImageView *self)
69
+ {
70
+ FXRbScrollArea::unregisterOwnedObjects(self);
71
+ }
72
+
73
+ void FXRbList::unregisterOwnedObjects(FXList *self)
74
+ {
75
+ FXRbScrollArea::unregisterOwnedObjects(self);
76
+ for (FXint i = 0; i < self->getNumItems(); i++) FXRbUnregisterRubyObj(self->getItem(i));
77
+ }
78
+
79
+ void FXRbColorList::unregisterOwnedObjects(FXColorList *self)
80
+ {
81
+ FXRbList::unregisterOwnedObjects(self);
82
+ }
83
+
84
+ void FXRbScrollWindow::unregisterOwnedObjects(FXScrollWindow *self)
85
+ {
86
+ FXRbScrollArea::unregisterOwnedObjects(self);
87
+ }
88
+
89
+ void FXRbTable::unregisterOwnedObjects(FXTable *self)
90
+ {
91
+ FXint r,c;
92
+ FXRbScrollArea::unregisterOwnedObjects(self);
93
+ FXRbHeader::unregisterOwnedObjects(self->getRowHeader());
94
+ FXRbHeader::unregisterOwnedObjects(self->getColumnHeader());
95
+ FXRbUnregisterRubyObj(self->getRowHeader());
96
+ FXRbUnregisterRubyObj(self->getColumnHeader());
97
+ for(r=0; r<self->getNumRows(); r++){
98
+ for(c=0; c<self->getNumColumns(); c++){
99
+ FXRbUnregisterRubyObj(self->getItem(r,c));
100
+ }
101
+ }
102
+ }
103
+
104
+ void FXRbText::unregisterOwnedObjects(FXText *self)
105
+ {
106
+ FXRbScrollArea::unregisterOwnedObjects(self);
107
+ }
108
+
109
+ void FXRbTreeList::unregisterOwnedObjects(FXTreeList *self)
110
+ {
111
+ FXRbScrollArea::unregisterOwnedObjects(self);
112
+
113
+ // Save pointer(s) to the soon-to-be-destroyed items
114
+ FXObjectListOf<FXTreeItem> items;
115
+ FXRbTreeList::enumerateItems(self->getFirstItem(), self->getLastItem(), items);
116
+
117
+ // Now zero-out pointers held by still-alive Ruby objects
118
+ for (FXint i = 0; i < items.no(); i++) FXRbUnregisterRubyObj(items[i]);
119
+ }
120
+
data/index.html CHANGED
File without changes
data/lib/1.8/fox16.so ADDED
Binary file
Binary file
data/lib/fox16.rb ADDED
@@ -0,0 +1,8 @@
1
+ if RUBY_PLATFORM =~ /(mswin|mingw)/i
2
+ require "#{RUBY_VERSION.sub(/\.\d+$/, '')}/fox16.so"
3
+ elsif RUBY_PLATFORM =~ /darwin/
4
+ require "fox16.bundle"
5
+ else
6
+ require "fox16.so"
7
+ end
8
+
data/lib/fox16/aliases.rb CHANGED
File without changes
@@ -0,0 +1,223 @@
1
+ module Fox
2
+ #
3
+ # The FXBitmapView widget displays a scrollable view of a bitmap.
4
+ #
5
+ # === Bitmap alignment styles
6
+ #
7
+ # +BITMAPVIEW_NORMAL+:: Normal mode is centered
8
+ # +BITMAPVIEW_CENTER_X+:: Centered horizontally
9
+ # +BITMAPVIEW_LEFT+:: Left-aligned
10
+ # +BITMAPVIEW_RIGHT+:: Right-aligned
11
+ # +BITMAPVIEW_CENTER_Y+:: Centered vertically
12
+ # +BITMAPVIEW_TOP+:: Top-aligned
13
+ # +BITMAPVIEW_BOTTOM+:: Bottom-aligned
14
+ #
15
+ # === Events
16
+ #
17
+ # +SEL_RIGHTBUTTONPRESS+:: sent when the right mouse button goes down; the message data is an FXEvent instance.
18
+ # +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up; the message data is an FXEvent instance.
19
+ #
20
+ class FXBitmapView < FXScrollArea
21
+
22
+ # Bitmap alignment styles
23
+ BITMAPVIEW_NORMAL = 0 # Normal mode is centered
24
+ BITMAPVIEW_CENTER_X = 0 # Centered horizontally
25
+ BITMAPVIEW_LEFT = 0x00100000 # Left-aligned
26
+ BITMAPVIEW_RIGHT = 0x00200000 # Right-aligned
27
+ BITMAPVIEW_CENTER_Y = 0, # Centered vertically
28
+ BITMAPVIEW_TOP = 0x00400000 # Top-aligned
29
+ BITMAPVIEW_BOTTOM = 0x00800000 # Bottom-aligned
30
+
31
+ #
32
+ # Return an initialized FXBitmapView instance.
33
+ #
34
+ def initialize(p, bmp=nil, tgt=nil, sel=0, opts=0, x=0, y=0, w=0, h=0) # :yields: theBitmapView
35
+ super(p, opts, x, y, w, h)
36
+ self.flags |= FLAG_ENABLED
37
+ self.target = tgt
38
+ self.message = sel
39
+ @bitmap = bmp
40
+ @onColor = FXRGB(0, 0, 0)
41
+ @offColor = backColor
42
+ @grabx = 0
43
+ @graby = 0
44
+ end
45
+
46
+ def create
47
+ super
48
+ bitmap.create unless bitmap.nil?
49
+ end
50
+
51
+ def detach
52
+ super
53
+ bitmap.detach unless bitmap.nil?
54
+ end
55
+
56
+ def canFocus
57
+ true
58
+ end
59
+
60
+ def getContentWidth
61
+ bitmap.nil? 1 : bitmap.width
62
+ end
63
+
64
+ def getContentHeight
65
+ bitmap.nil? 1 : bitmap.height
66
+ end
67
+
68
+ def layout
69
+ super
70
+ update
71
+ self.flags &= ~FLAG_DIRTY
72
+ end
73
+
74
+ # Handle expose (paint) event
75
+ def onPaint(sender, sel, event)
76
+ FXDCWindow.new(self, event) do |dc|
77
+ unless bitmap.nil?
78
+ ww = bitmap.width
79
+ hh = bitmap.height
80
+ xx = pos_x
81
+ yy = pos_y
82
+ if ww < viewport_w
83
+ if (options & BITMAPVIEW_LEFT) != 0
84
+ xx = 0
85
+ elsif (options & BITMAPVIEW_RIGHT) != 0
86
+ xx = viewport_w - ww
87
+ else
88
+ xx = (viewport_w - ww)/2
89
+ end
90
+ end
91
+ if hh < viewport_h
92
+ if (options & BITMAPVIEW_TOP) != 0
93
+ yy = 0
94
+ elsif (options & BITMAPVIEW_BOTTOM) != 0
95
+ yy = viewport_h - hh
96
+ else
97
+ yy = (viewport_h - hh)/2
98
+ end
99
+ end
100
+ dc.foreground = onColor
101
+ dc.background = offColor
102
+ dc.drawBitmap(bitmap, xx, yy)
103
+ dc.foreground = backColor
104
+ xl = xx; xr = xx + ww
105
+ yt = yy; yb = yy + hh
106
+ xl = 0 if (xl < 0)
107
+ xr = viewport_w if (xr > viewport_w)
108
+ yt = 0 if (yt < 0)
109
+ yb = viewport_h if (yb > viewport_h)
110
+ dc.fillRectangle(0, 0, xr, yt)
111
+ dc.fillRectangle(0, yt, xl, viewport_h - yt)
112
+ dc.fillRectangle(xr, 0, viewport_w - xr, yb)
113
+ dc.fillRectangle(xl, yb, viewport_w - xl, viewport_h - yb)
114
+ else
115
+ dc.foreground = backColor
116
+ dc.fillRectangle(0, 0, width, height)
117
+ end
118
+ end
119
+ end
120
+
121
+ # Handle right mouse button press
122
+ def onRightBtnPress(sender, sel, ev)
123
+ self.flags &= ~FLAG_TIP
124
+ handle(self, FXSEL(SEL_FOCUS_SELF, 0), ev)
125
+ if enabled?
126
+ grab
127
+ if target && target.handle(self, FXSEL(SEL_RIGHTBUTTONPRESS, message), ev) != 0
128
+ return 1
129
+ end
130
+ self.flags &= ~FLAG_UPDATE
131
+ self.flags |= FLAG_PRESSED|FLAG_SCROLLING
132
+ @grabx = ev.win_x - pos_x
133
+ @graby = ev.win_y - pos_y
134
+ return 1
135
+ end
136
+ return 0
137
+ end
138
+
139
+ # Handle right mouse button release
140
+ def onRightBtnRelease(sender, sel, ev)
141
+ if enabled?
142
+ ungrab
143
+ self.flags &= ~(FLAG_PRESSED|FLAG_SCROLLING)
144
+ self.flags |= FLAG_UPDATE
145
+ if target && target.handle(self, FXSEL(SEL_RIGHTBUTTONPRESS, message), ev) != 0
146
+ return 1
147
+ end
148
+ return 1
149
+ end
150
+ return 0
151
+ end
152
+
153
+ # Handle real or simulated mouse motion
154
+ def onMotion(sender, sel, ev)
155
+ if (flags & FLAG_SCROLLING) != 0
156
+ setPosition(ev.win_x - @grabx, ev.win_y - @graby)
157
+ return 1
158
+ end
159
+ return 0
160
+ end
161
+
162
+ #
163
+ # Set the bitmap for this FXBitmapView, where _bmp_ is either +nil+ or
164
+ # a reference to an FXBitmap instance.
165
+ #
166
+ def bitmap=(bmp)
167
+ @bitmap = bmp
168
+ recalc
169
+ update
170
+ end
171
+
172
+ #
173
+ # Return a reference to the bitmap (an FXBitmap instance) for this FXBitmapView,
174
+ # or +nil+ if no bitmap has been set.
175
+ #
176
+ def bitmap; @bitmap; end
177
+
178
+ # Set the color used for the "on" bits in the bitmap.
179
+ def onColor=(clr)
180
+ if clr != onColor
181
+ @onColor = clr
182
+ update
183
+ end
184
+ end
185
+
186
+ # Return the color used for the "on" bits in the bitmap.
187
+ def onColor; @onColor; end
188
+
189
+ # Set the color used for the "off" bits in the bitmap.
190
+ def offColor=(clr)
191
+ if clr != offColor
192
+ @offColor = clr
193
+ update
194
+ end
195
+ end
196
+
197
+ # Return the color used for the "off" bits in the bitmap.
198
+ def offColor; @offColor; end
199
+
200
+ #
201
+ # Set the current alignment for the bitmap inside the FXBitmapView,
202
+ # where _mode_ is some combination of the bitmap alignment flags
203
+ # listed above.
204
+ #
205
+ def alignment=(mode)
206
+ opts = (options & ~(BITMAPVIEW_LEFT|BITMAPVIEW_RIGHT|BITMAPVIEW_TOP|BITMAPVIEW_BOTTOM)) |
207
+ (mode & (BITMAPVIEW_LEFT|BITMAPVIEW_RIGHT|BITMAPVIEW_TOP|BITMAPVIEW_BOTTOM))
208
+ if options != opts
209
+ @options = opts
210
+ update
211
+ end
212
+ end
213
+
214
+ #
215
+ # Return the current alignment for the bitmap inside the
216
+ # FXBitmapView.
217
+ #
218
+ def alignment
219
+ options & (BITMAPVIEW_LEFT|BITMAPVIEW_RIGHT|BITMAPVIEW_TOP|BITMAPVIEW_BOTTOM)
220
+ end
221
+ end
222
+ end
223
+
File without changes
data/lib/fox16/chore.rb CHANGED
File without changes
data/lib/fox16/colors.rb CHANGED
File without changes
data/lib/fox16/core.rb CHANGED
File without changes
data/lib/fox16/dict.rb CHANGED
File without changes
data/lib/fox16/glgroup.rb CHANGED
File without changes
File without changes
data/lib/fox16/input.rb CHANGED
File without changes
data/lib/fox16/irb.rb CHANGED
File without changes
File without changes
data/lib/fox16/keys.rb CHANGED
File without changes
data/lib/fox16/kwargs.rb CHANGED
@@ -238,43 +238,39 @@ module Fox
238
238
  end
239
239
  end
240
240
 
241
- class FX7Segment
241
+ class FXPNGIcon
242
242
  alias old_initialize initialize
243
- def initialize(p, text, *args, &blk)
244
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
245
- default_params = { :opts => SEVENSEGMENT_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
243
+ def initialize(a, *args, &blk)
244
+ argument_names = %w{pix clr opts width height}
245
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
246
246
  params = {}
247
247
  params = args.pop if args.last.is_a? Hash
248
248
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
249
- if params.key? :padding
250
- value = params.delete(:padding)
251
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
252
- end
253
249
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
254
250
  params = default_params.merge(params)
255
- old_initialize(p, text, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
251
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
256
252
  end
257
253
  end
258
254
 
259
- class FXApp
255
+ class FXGIFIcon
260
256
  alias old_initialize initialize
261
- def initialize(*args, &blk)
262
- argument_names = %w{appName vendorName}
263
- default_params = { :appName => "Application", :vendorName => "FoxDefault" }
257
+ def initialize(a, *args, &blk)
258
+ argument_names = %w{pix clr opts width height}
259
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
264
260
  params = {}
265
261
  params = args.pop if args.last.is_a? Hash
266
262
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
267
263
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
268
264
  params = default_params.merge(params)
269
- old_initialize(params[:appName], params[:vendorName], &blk)
265
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
270
266
  end
271
267
  end
272
268
 
273
- class FXArrowButton
269
+ class FXShutterItem
274
270
  alias old_initialize initialize
275
- def initialize(parent, *args, &blk)
276
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
277
- default_params = { :target => nil, :selector => 0, :opts => ARROW_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
271
+ def initialize(p, *args, &blk)
272
+ argument_names = %w{text icon opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
273
+ default_params = { :text => "", :icon => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
278
274
  params = {}
279
275
  params = args.pop if args.last.is_a? Hash
280
276
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -284,61 +280,75 @@ module Fox
284
280
  end
285
281
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
286
282
  params = default_params.merge(params)
287
- old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
283
+ old_initialize(p, params[:text], params[:icon], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
288
284
  end
289
285
  end
290
286
 
291
- class FXBitmap
287
+ class FXShutter
292
288
  alias old_initialize initialize
293
- def initialize(app, *args, &blk)
294
- argument_names = %w{pixels opts width height}
295
- default_params = { :pixels => nil, :opts => 0, :width => 1, :height => 1 }
289
+ def initialize(p, *args, &blk)
290
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
291
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
296
292
  params = {}
297
293
  params = args.pop if args.last.is_a? Hash
298
294
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
295
+ if params.key? :padding
296
+ value = params.delete(:padding)
297
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
298
+ end
299
299
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
300
300
  params = default_params.merge(params)
301
- old_initialize(app, params[:pixels], params[:opts], params[:width], params[:height], &blk)
301
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
302
302
  end
303
303
  end
304
304
 
305
- class FXBitmapFrame
305
+ class FXScrollPane
306
306
  alias old_initialize initialize
307
- def initialize(p, bmp, *args, &blk)
308
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
309
- default_params = { :opts => FRAME_SUNKEN|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
307
+ def initialize(owner, nvis, *args, &blk)
308
+ argument_names = %w{opts}
309
+ default_params = { :opts => 0 }
310
310
  params = {}
311
311
  params = args.pop if args.last.is_a? Hash
312
312
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
313
- if params.key? :padding
314
- value = params.delete(:padding)
315
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
316
- end
317
313
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
318
314
  params = default_params.merge(params)
319
- old_initialize(p, bmp, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
315
+ old_initialize(owner, nvis, params[:opts], &blk)
320
316
  end
321
317
  end
322
318
 
323
- class FXBitmapView
319
+ class FXIconItem
320
+ alias old_initialize initialize
321
+ def initialize(text, *args, &blk)
322
+ argument_names = %w{bigIcon miniIcon data}
323
+ default_params = { :bigIcon => nil, :miniIcon => nil, :data => nil }
324
+ params = {}
325
+ params = args.pop if args.last.is_a? Hash
326
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
327
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
328
+ params = default_params.merge(params)
329
+ old_initialize(text, params[:bigIcon], params[:miniIcon], params[:data], &blk)
330
+ end
331
+ end
332
+
333
+ class FXIconList
324
334
  alias old_initialize initialize
325
335
  def initialize(p, *args, &blk)
326
- argument_names = %w{bmp target selector opts x y width height}
327
- default_params = { :bmp => nil, :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
336
+ argument_names = %w{target selector opts x y width height}
337
+ default_params = { :target => nil, :selector => 0, :opts => ICONLIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
328
338
  params = {}
329
339
  params = args.pop if args.last.is_a? Hash
330
340
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
331
341
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
332
342
  params = default_params.merge(params)
333
- old_initialize(p, params[:bmp], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
343
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
334
344
  end
335
345
  end
336
346
 
337
- class FXBMPIcon
347
+ class FXPPMIcon
338
348
  alias old_initialize initialize
339
349
  def initialize(a, *args, &blk)
340
350
  argument_names = %w{pix clr opts width height}
341
- default_params = { :pix => nil, :clr => FXRGB(192,192,192), :opts => 0, :width => 1, :height => 1 }
351
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
342
352
  params = {}
343
353
  params = args.pop if args.last.is_a? Hash
344
354
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -348,7 +358,7 @@ module Fox
348
358
  end
349
359
  end
350
360
 
351
- class FXBMPImage
361
+ class FXPPMImage
352
362
  alias old_initialize initialize
353
363
  def initialize(a, *args, &blk)
354
364
  argument_names = %w{pix opts width height}
@@ -362,11 +372,25 @@ module Fox
362
372
  end
363
373
  end
364
374
 
365
- class FXButton
375
+ class FXDelegator
366
376
  alias old_initialize initialize
367
- def initialize(parent, text, *args, &blk)
368
- argument_names = %w{icon target selector opts x y width height padLeft padRight padTop padBottom}
369
- default_params = { :icon => nil, :target => nil, :selector => 0, :opts => BUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
377
+ def initialize(*args, &blk)
378
+ argument_names = %w{delegate}
379
+ default_params = { :delegate => nil }
380
+ params = {}
381
+ params = args.pop if args.last.is_a? Hash
382
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
383
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
384
+ params = default_params.merge(params)
385
+ old_initialize(params[:delegate], &blk)
386
+ end
387
+ end
388
+
389
+ class FXToggleButton
390
+ alias old_initialize initialize
391
+ def initialize(p, text1, text2, *args, &blk)
392
+ argument_names = %w{icon1 icon2 target selector opts x y width height padLeft padRight padTop padBottom}
393
+ default_params = { :icon1 => nil, :icon2 => nil, :target => nil, :selector => 0, :opts => TOGGLEBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
370
394
  params = {}
371
395
  params = args.pop if args.last.is_a? Hash
372
396
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -376,29 +400,29 @@ module Fox
376
400
  end
377
401
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
378
402
  params = default_params.merge(params)
379
- old_initialize(parent, text, params[:icon], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
403
+ old_initialize(p, text1, text2, params[:icon1], params[:icon2], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
380
404
  end
381
405
  end
382
406
 
383
- class FXCanvas
407
+ class FXFileSelector
384
408
  alias old_initialize initialize
385
- def initialize(parent, *args, &blk)
409
+ def initialize(p, *args, &blk)
386
410
  argument_names = %w{target selector opts x y width height}
387
- default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
411
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
388
412
  params = {}
389
413
  params = args.pop if args.last.is_a? Hash
390
414
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
391
415
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
392
416
  params = default_params.merge(params)
393
- old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
417
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
394
418
  end
395
419
  end
396
420
 
397
- class FXCheckButton
421
+ class FXDockTitle
398
422
  alias old_initialize initialize
399
- def initialize(parent, text, *args, &blk)
423
+ def initialize(p, text, *args, &blk)
400
424
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
401
- default_params = { :target => nil, :selector => 0, :opts => CHECKBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
425
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL|JUSTIFY_CENTER_X|JUSTIFY_CENTER_Y, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
402
426
  params = {}
403
427
  params = args.pop if args.last.is_a? Hash
404
428
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -408,89 +432,103 @@ module Fox
408
432
  end
409
433
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
410
434
  params = default_params.merge(params)
411
- old_initialize(parent, text, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
435
+ old_initialize(p, text, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
412
436
  end
413
437
  end
414
438
 
415
- class FXChoiceBox
439
+ class FXICOIcon
416
440
  alias old_initialize initialize
417
- def initialize(owner, caption, text, icon, choices, *args, &blk)
418
- argument_names = %w{opts x y width height}
419
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
441
+ def initialize(a, *args, &blk)
442
+ argument_names = %w{pix clr opts width height}
443
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
420
444
  params = {}
421
445
  params = args.pop if args.last.is_a? Hash
422
446
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
423
447
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
424
448
  params = default_params.merge(params)
425
- old_initialize(owner, caption, text, icon, choices, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
449
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
426
450
  end
427
451
  end
428
452
 
429
- class FXColorBar
453
+ class FXRGBImage
430
454
  alias old_initialize initialize
431
- def initialize(parent, *args, &blk)
432
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
433
- default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
455
+ def initialize(a, *args, &blk)
456
+ argument_names = %w{pix opts width height}
457
+ default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
434
458
  params = {}
435
459
  params = args.pop if args.last.is_a? Hash
436
460
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
437
- if params.key? :padding
438
- value = params.delete(:padding)
439
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
440
- end
441
461
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
442
462
  params = default_params.merge(params)
443
- old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
463
+ old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
444
464
  end
445
465
  end
446
466
 
447
- class FXColorDialog
467
+ class FXApp
448
468
  alias old_initialize initialize
449
- def initialize(owner, title, *args, &blk)
450
- argument_names = %w{opts x y width height}
451
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
469
+ def initialize(*args, &blk)
470
+ argument_names = %w{appName vendorName}
471
+ default_params = { :appName => "Application", :vendorName => "FoxDefault" }
452
472
  params = {}
453
473
  params = args.pop if args.last.is_a? Hash
454
474
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
455
475
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
456
476
  params = default_params.merge(params)
457
- old_initialize(owner, title, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
477
+ old_initialize(params[:appName], params[:vendorName], &blk)
458
478
  end
459
479
  end
460
480
 
461
- class FXColorItem
481
+ class FXPopup
462
482
  alias old_initialize initialize
463
- def initialize(text, clr, *args, &blk)
464
- argument_names = %w{data}
465
- default_params = { :data => nil }
483
+ def initialize(owner, *args, &blk)
484
+ argument_names = %w{opts x y width height}
485
+ default_params = { :opts => POPUP_VERTICAL|FRAME_RAISED|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0 }
466
486
  params = {}
467
487
  params = args.pop if args.last.is_a? Hash
468
488
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
469
489
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
470
490
  params = default_params.merge(params)
471
- old_initialize(text, clr, params[:data], &blk)
491
+ old_initialize(owner, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
472
492
  end
473
493
  end
474
494
 
475
- class FXColorList
495
+ class FXColorRing
476
496
  alias old_initialize initialize
477
497
  def initialize(p, *args, &blk)
478
- argument_names = %w{target selector opts x y width height}
479
- default_params = { :target => nil, :selector => 0, :opts => LIST_BROWSESELECT, :x => 0, :y => 0, :width => 0, :height => 0 }
498
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
499
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
480
500
  params = {}
481
501
  params = args.pop if args.last.is_a? Hash
482
502
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
503
+ if params.key? :padding
504
+ value = params.delete(:padding)
505
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
506
+ end
483
507
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
484
508
  params = default_params.merge(params)
485
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
509
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
486
510
  end
487
511
  end
488
512
 
489
- class FXColorRing
513
+ class FXMenuCheck
514
+ alias old_initialize initialize
515
+ def initialize(p, text, *args, &blk)
516
+ argument_names = %w{target selector opts}
517
+ default_params = { :target => nil, :selector => 0, :opts => 0 }
518
+ params = {}
519
+ params = args.pop if args.last.is_a? Hash
520
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
521
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
522
+ params = default_params.merge(params)
523
+ old_initialize(p, text, params[:target], params[:selector], params[:opts], &blk)
524
+ end
525
+ end
526
+
527
+ class FXText
490
528
  alias old_initialize initialize
491
529
  def initialize(p, *args, &blk)
492
530
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
493
- default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
531
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2 }
494
532
  params = {}
495
533
  params = args.pop if args.last.is_a? Hash
496
534
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -502,6 +540,17 @@ module Fox
502
540
  params = default_params.merge(params)
503
541
  old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
504
542
  end
543
+ alias old_findText findText
544
+ def findText(string, *args)
545
+ argument_names = %w{start flags}
546
+ default_params = { :start => 0, :flags => SEARCH_FORWARD|SEARCH_WRAP|SEARCH_EXACT }
547
+ params = {}
548
+ params = args.pop if args.last.is_a? Hash
549
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
550
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
551
+ params = default_params.merge(params)
552
+ old_findText(string, params[:start], params[:flags])
553
+ end
505
554
  end
506
555
 
507
556
  class FXColorSelector
@@ -518,29 +567,25 @@ module Fox
518
567
  end
519
568
  end
520
569
 
521
- class FXColorWell
570
+ class FXRulerView
522
571
  alias old_initialize initialize
523
- def initialize(parent, *args, &blk)
524
- argument_names = %w{color target selector opts x y width height padLeft padRight padTop padBottom}
525
- default_params = { :color => 0, :target => nil, :selector => 0, :opts => COLORWELL_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
572
+ def initialize(p, *args, &blk)
573
+ argument_names = %w{target selector opts x y width height}
574
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
526
575
  params = {}
527
576
  params = args.pop if args.last.is_a? Hash
528
577
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
529
- if params.key? :padding
530
- value = params.delete(:padding)
531
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
532
- end
533
578
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
534
579
  params = default_params.merge(params)
535
- old_initialize(parent, params[:color], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
580
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
536
581
  end
537
582
  end
538
583
 
539
- class FXColorWheel
584
+ class FXSeparator
540
585
  alias old_initialize initialize
541
586
  def initialize(p, *args, &blk)
542
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
543
- default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
587
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
588
+ default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
544
589
  params = {}
545
590
  params = args.pop if args.last.is_a? Hash
546
591
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -550,15 +595,15 @@ module Fox
550
595
  end
551
596
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
552
597
  params = default_params.merge(params)
553
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
598
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
554
599
  end
555
600
  end
556
601
 
557
- class FXComboBox
602
+ class FXHorizontalSeparator
558
603
  alias old_initialize initialize
559
- def initialize(p, cols, *args, &blk)
560
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
561
- default_params = { :target => nil, :selector => 0, :opts => COMBOBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
604
+ def initialize(p, *args, &blk)
605
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
606
+ default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 1, :padRight => 1, :padTop => 0, :padBottom => 0 }
562
607
  params = {}
563
608
  params = args.pop if args.last.is_a? Hash
564
609
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -568,57 +613,65 @@ module Fox
568
613
  end
569
614
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
570
615
  params = default_params.merge(params)
571
- old_initialize(p, cols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
616
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
572
617
  end
573
618
  end
574
619
 
575
- class FXComposite
620
+ class FXVerticalSeparator
576
621
  alias old_initialize initialize
577
- def initialize(parent, *args, &blk)
578
- argument_names = %w{opts x y width height}
579
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
622
+ def initialize(p, *args, &blk)
623
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
624
+ default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_Y, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 1, :padBottom => 1 }
580
625
  params = {}
581
626
  params = args.pop if args.last.is_a? Hash
582
627
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
583
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
628
+ if params.key? :padding
629
+ value = params.delete(:padding)
630
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
631
+ end
632
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
584
633
  params = default_params.merge(params)
585
- old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
634
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
586
635
  end
587
636
  end
588
637
 
589
- class FXDataTarget
638
+ class FXDial
590
639
  alias old_initialize initialize
591
- def initialize(*args, &blk)
592
- argument_names = %w{value target selector}
593
- default_params = { :value => nil, :target => nil, :selector => 0 }
640
+ def initialize(p, *args, &blk)
641
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
642
+ default_params = { :target => nil, :selector => 0, :opts => DIAL_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
594
643
  params = {}
595
644
  params = args.pop if args.last.is_a? Hash
596
645
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
646
+ if params.key? :padding
647
+ value = params.delete(:padding)
648
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
649
+ end
597
650
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
598
651
  params = default_params.merge(params)
599
- old_initialize(params[:value], params[:target], params[:selector], &blk)
652
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
600
653
  end
601
654
  end
602
655
 
603
- class FXDelegator
656
+ class FXFileStream
604
657
  alias old_initialize initialize
605
658
  def initialize(*args, &blk)
606
- argument_names = %w{delegate}
607
- default_params = { :delegate => nil }
659
+ argument_names = %w{cont}
660
+ default_params = { :cont => nil }
608
661
  params = {}
609
662
  params = args.pop if args.last.is_a? Hash
610
663
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
611
664
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
612
665
  params = default_params.merge(params)
613
- old_initialize(params[:delegate], &blk)
666
+ old_initialize(params[:cont], &blk)
614
667
  end
615
668
  end
616
669
 
617
- class FXDial
670
+ class FXRealSpinner
618
671
  alias old_initialize initialize
619
- def initialize(p, *args, &blk)
672
+ def initialize(p, cols, *args, &blk)
620
673
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
621
- default_params = { :target => nil, :selector => 0, :opts => DIAL_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
674
+ default_params = { :target => nil, :selector => 0, :opts => REALSPIN_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
622
675
  params = {}
623
676
  params = args.pop if args.last.is_a? Hash
624
677
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -628,33 +681,29 @@ module Fox
628
681
  end
629
682
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
630
683
  params = default_params.merge(params)
631
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
684
+ old_initialize(p, cols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
632
685
  end
633
686
  end
634
687
 
635
- class FXDialogBox
688
+ class FXDirDialog
636
689
  alias old_initialize initialize
637
- def initialize(owner, title, *args, &blk)
638
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
639
- default_params = { :opts => DECOR_TITLE|DECOR_BORDER, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 10, :padRight => 10, :padTop => 10, :padBottom => 10, :hSpacing => 4, :vSpacing => 4 }
690
+ def initialize(owner, name, *args, &blk)
691
+ argument_names = %w{opts x y width height}
692
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 500, :height => 300 }
640
693
  params = {}
641
694
  params = args.pop if args.last.is_a? Hash
642
695
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
643
- if params.key? :padding
644
- value = params.delete(:padding)
645
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
646
- end
647
696
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
648
697
  params = default_params.merge(params)
649
- old_initialize(owner, title, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
698
+ old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
650
699
  end
651
700
  end
652
701
 
653
- class FXDirBox
702
+ class FXPacker
654
703
  alias old_initialize initialize
655
- def initialize(p, *args, &blk)
656
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
657
- default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
704
+ def initialize(parent, *args, &blk)
705
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
706
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
658
707
  params = {}
659
708
  params = args.pop if args.last.is_a? Hash
660
709
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -664,15 +713,15 @@ module Fox
664
713
  end
665
714
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
666
715
  params = default_params.merge(params)
667
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
716
+ old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
668
717
  end
669
718
  end
670
719
 
671
- class FXDirDialog
720
+ class FXFontDialog
672
721
  alias old_initialize initialize
673
722
  def initialize(owner, name, *args, &blk)
674
723
  argument_names = %w{opts x y width height}
675
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 500, :height => 300 }
724
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 600, :height => 380 }
676
725
  params = {}
677
726
  params = args.pop if args.last.is_a? Hash
678
727
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -682,53 +731,53 @@ module Fox
682
731
  end
683
732
  end
684
733
 
685
- class FXDirItem
734
+ class FXSearchDialog
686
735
  alias old_initialize initialize
687
- def initialize(text, *args, &blk)
688
- argument_names = %w{oi ci data}
689
- default_params = { :oi => nil, :ci => nil, :data => nil }
736
+ def initialize(owner, caption, *args, &blk)
737
+ argument_names = %w{ic opts x y width height}
738
+ default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
690
739
  params = {}
691
740
  params = args.pop if args.last.is_a? Hash
692
741
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
693
742
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
694
743
  params = default_params.merge(params)
695
- old_initialize(text, params[:oi], params[:ci], params[:data], &blk)
744
+ old_initialize(owner, caption, params[:ic], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
696
745
  end
697
746
  end
698
747
 
699
- class FXDirList
748
+ class FXFileDict
700
749
  alias old_initialize initialize
701
- def initialize(p, *args, &blk)
702
- argument_names = %w{target selector opts x y width height}
703
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
750
+ def initialize(app, *args, &blk)
751
+ argument_names = %w{db}
752
+ default_params = { :db => nil }
704
753
  params = {}
705
754
  params = args.pop if args.last.is_a? Hash
706
755
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
707
756
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
708
757
  params = default_params.merge(params)
709
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
758
+ old_initialize(app, params[:db], &blk)
710
759
  end
711
760
  end
712
761
 
713
- class FXDirSelector
762
+ class FXTIFImage
714
763
  alias old_initialize initialize
715
- def initialize(p, *args, &blk)
716
- argument_names = %w{target selector opts x y width height}
717
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
764
+ def initialize(a, *args, &blk)
765
+ argument_names = %w{pix opts width height}
766
+ default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
718
767
  params = {}
719
768
  params = args.pop if args.last.is_a? Hash
720
769
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
721
770
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
722
771
  params = default_params.merge(params)
723
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
772
+ old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
724
773
  end
725
774
  end
726
775
 
727
- class FXDockSite
776
+ class FXTextField
728
777
  alias old_initialize initialize
729
- def initialize(p, *args, &blk)
730
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
731
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0, :hSpacing => 0, :vSpacing => 0 }
778
+ def initialize(p, ncols, *args, &blk)
779
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
780
+ default_params = { :target => nil, :selector => 0, :opts => TEXTFIELD_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
732
781
  params = {}
733
782
  params = args.pop if args.last.is_a? Hash
734
783
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -738,33 +787,29 @@ module Fox
738
787
  end
739
788
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
740
789
  params = default_params.merge(params)
741
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
790
+ old_initialize(p, ncols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
742
791
  end
743
792
  end
744
793
 
745
- class FXDockTitle
794
+ class FXChoiceBox
746
795
  alias old_initialize initialize
747
- def initialize(p, text, *args, &blk)
748
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
749
- default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL|JUSTIFY_CENTER_X|JUSTIFY_CENTER_Y, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
796
+ def initialize(owner, caption, text, icon, choices, *args, &blk)
797
+ argument_names = %w{opts x y width height}
798
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
750
799
  params = {}
751
800
  params = args.pop if args.last.is_a? Hash
752
801
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
753
- if params.key? :padding
754
- value = params.delete(:padding)
755
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
756
- end
757
802
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
758
803
  params = default_params.merge(params)
759
- old_initialize(p, text, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
804
+ old_initialize(owner, caption, text, icon, choices, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
760
805
  end
761
806
  end
762
807
 
763
- class FXDriveBox
808
+ class FXTabBar
764
809
  alias old_initialize initialize
765
810
  def initialize(p, *args, &blk)
766
811
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
767
- default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
812
+ default_params = { :target => nil, :selector => 0, :opts => TABBOOK_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
768
813
  params = {}
769
814
  params = args.pop if args.last.is_a? Hash
770
815
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -778,109 +823,121 @@ module Fox
778
823
  end
779
824
  end
780
825
 
781
- class FXFileDialog
826
+ class FXStream
782
827
  alias old_initialize initialize
783
- def initialize(owner, name, *args, &blk)
784
- argument_names = %w{opts x y width height}
785
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 500, :height => 300 }
828
+ def initialize(*args, &blk)
829
+ argument_names = %w{cont}
830
+ default_params = { :cont => nil }
786
831
  params = {}
787
832
  params = args.pop if args.last.is_a? Hash
788
833
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
789
834
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
790
835
  params = default_params.merge(params)
791
- old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
836
+ old_initialize(params[:cont], &blk)
792
837
  end
793
838
  end
794
839
 
795
- class FXFileDict
840
+ class FXHeaderItem
796
841
  alias old_initialize initialize
797
- def initialize(app, *args, &blk)
798
- argument_names = %w{db}
799
- default_params = { :db => nil }
842
+ def initialize(text, *args, &blk)
843
+ argument_names = %w{ic s ptr}
844
+ default_params = { :ic => nil, :s => 0, :ptr => nil }
800
845
  params = {}
801
846
  params = args.pop if args.last.is_a? Hash
802
847
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
803
848
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
804
849
  params = default_params.merge(params)
805
- old_initialize(app, params[:db], &blk)
850
+ old_initialize(text, params[:ic], params[:s], params[:ptr], &blk)
806
851
  end
807
852
  end
808
853
 
809
- class FXFileItem
854
+ class FXHeader
810
855
  alias old_initialize initialize
811
- def initialize(text, *args, &blk)
812
- argument_names = %w{bi mi ptr}
813
- default_params = { :bi => nil, :mi => nil, :ptr => nil }
856
+ def initialize(p, *args, &blk)
857
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
858
+ default_params = { :target => nil, :selector => 0, :opts => HEADER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
814
859
  params = {}
815
860
  params = args.pop if args.last.is_a? Hash
816
861
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
862
+ if params.key? :padding
863
+ value = params.delete(:padding)
864
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
865
+ end
817
866
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
818
867
  params = default_params.merge(params)
819
- old_initialize(text, params[:bi], params[:mi], params[:ptr], &blk)
868
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
820
869
  end
821
870
  end
822
871
 
823
- class FXFileList
872
+ class FXRealSlider
824
873
  alias old_initialize initialize
825
874
  def initialize(p, *args, &blk)
826
- argument_names = %w{target selector opts x y width height}
827
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
875
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
876
+ default_params = { :target => nil, :selector => 0, :opts => REALSLIDER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
828
877
  params = {}
829
878
  params = args.pop if args.last.is_a? Hash
830
879
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
880
+ if params.key? :padding
881
+ value = params.delete(:padding)
882
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
883
+ end
831
884
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
832
885
  params = default_params.merge(params)
833
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
886
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
834
887
  end
835
888
  end
836
889
 
837
- class FXFileSelector
890
+ class FXScrollArea
838
891
  alias old_initialize initialize
839
- def initialize(p, *args, &blk)
840
- argument_names = %w{target selector opts x y width height}
841
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
892
+ def initialize(parent, *args, &blk)
893
+ argument_names = %w{opts x y width height}
894
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
842
895
  params = {}
843
896
  params = args.pop if args.last.is_a? Hash
844
897
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
845
898
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
846
899
  params = default_params.merge(params)
847
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
900
+ old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
848
901
  end
849
902
  end
850
903
 
851
- class FXFileStream
904
+ class FXImageFrame
852
905
  alias old_initialize initialize
853
- def initialize(*args, &blk)
854
- argument_names = %w{cont}
855
- default_params = { :cont => nil }
906
+ def initialize(p, img, *args, &blk)
907
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
908
+ default_params = { :opts => FRAME_SUNKEN|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
856
909
  params = {}
857
910
  params = args.pop if args.last.is_a? Hash
858
911
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
912
+ if params.key? :padding
913
+ value = params.delete(:padding)
914
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
915
+ end
859
916
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
860
917
  params = default_params.merge(params)
861
- old_initialize(params[:cont], &blk)
918
+ old_initialize(p, img, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
862
919
  end
863
920
  end
864
921
 
865
- class FXFoldingItem
922
+ class FXListItem
866
923
  alias old_initialize initialize
867
924
  def initialize(text, *args, &blk)
868
- argument_names = %w{openIcon closedIcon data}
869
- default_params = { :openIcon => nil, :closedIcon => nil, :data => nil }
925
+ argument_names = %w{icon data}
926
+ default_params = { :icon => nil, :data => nil }
870
927
  params = {}
871
928
  params = args.pop if args.last.is_a? Hash
872
929
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
873
930
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
874
931
  params = default_params.merge(params)
875
- old_initialize(text, params[:openIcon], params[:closedIcon], params[:data], &blk)
932
+ old_initialize(text, params[:icon], params[:data], &blk)
876
933
  end
877
934
  end
878
935
 
879
- class FXFoldingList
936
+ class FXList
880
937
  alias old_initialize initialize
881
938
  def initialize(p, *args, &blk)
882
939
  argument_names = %w{target selector opts x y width height}
883
- default_params = { :target => nil, :selector => 0, :opts => TREELIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
940
+ default_params = { :target => nil, :selector => 0, :opts => LIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
884
941
  params = {}
885
942
  params = args.pop if args.last.is_a? Hash
886
943
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -890,105 +947,73 @@ module Fox
890
947
  end
891
948
  end
892
949
 
893
- class FXFontDialog
950
+ class FXReplaceDialog
894
951
  alias old_initialize initialize
895
- def initialize(owner, name, *args, &blk)
896
- argument_names = %w{opts x y width height}
897
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 600, :height => 380 }
952
+ def initialize(owner, caption, *args, &blk)
953
+ argument_names = %w{ic opts x y width height}
954
+ default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
898
955
  params = {}
899
956
  params = args.pop if args.last.is_a? Hash
900
957
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
901
958
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
902
959
  params = default_params.merge(params)
903
- old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
960
+ old_initialize(owner, caption, params[:ic], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
904
961
  end
905
962
  end
906
963
 
907
- class FXFontSelector
964
+ class FXComposite
908
965
  alias old_initialize initialize
909
- def initialize(p, *args, &blk)
910
- argument_names = %w{target selector opts x y width height}
911
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
966
+ def initialize(parent, *args, &blk)
967
+ argument_names = %w{opts x y width height}
968
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
912
969
  params = {}
913
970
  params = args.pop if args.last.is_a? Hash
914
971
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
915
972
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
916
973
  params = default_params.merge(params)
917
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
974
+ old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
918
975
  end
919
976
  end
920
977
 
921
- class FXFrame
978
+ class FXMDIChild
922
979
  alias old_initialize initialize
923
- def initialize(parent, *args, &blk)
924
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
925
- default_params = { :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
980
+ def initialize(p, name, *args, &blk)
981
+ argument_names = %w{ic pup opts x y width height}
982
+ default_params = { :ic => nil, :pup => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
926
983
  params = {}
927
984
  params = args.pop if args.last.is_a? Hash
928
985
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
929
- if params.key? :padding
930
- value = params.delete(:padding)
931
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
932
- end
933
986
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
934
987
  params = default_params.merge(params)
935
- old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
988
+ old_initialize(p, name, params[:ic], params[:pup], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
936
989
  end
937
990
  end
938
991
 
939
- class FXGIFCursor
992
+ class FXScrollWindow
940
993
  alias old_initialize initialize
941
- def initialize(a, pix, *args, &blk)
942
- argument_names = %w{hx hy}
943
- default_params = { :hx => -1, :hy => -1 }
994
+ def initialize(p, *args, &blk)
995
+ argument_names = %w{opts x y width height}
996
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
944
997
  params = {}
945
998
  params = args.pop if args.last.is_a? Hash
946
999
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
947
1000
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
948
1001
  params = default_params.merge(params)
949
- old_initialize(a, pix, params[:hx], params[:hy], &blk)
1002
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
950
1003
  end
951
1004
  end
952
1005
 
953
- class FXGIFIcon
1006
+ class FXBitmapView
954
1007
  alias old_initialize initialize
955
- def initialize(a, *args, &blk)
956
- argument_names = %w{pix clr opts width height}
957
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
958
- params = {}
959
- params = args.pop if args.last.is_a? Hash
960
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
961
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
962
- params = default_params.merge(params)
963
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
964
- end
965
- end
966
-
967
- class FXGIFImage
968
- alias old_initialize initialize
969
- def initialize(a, *args, &blk)
970
- argument_names = %w{pix opts width height}
971
- default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
972
- params = {}
973
- params = args.pop if args.last.is_a? Hash
974
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
975
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
976
- params = default_params.merge(params)
977
- old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
978
- end
979
- end
980
-
981
- class FXGLContext
982
- alias old_initialize initialize
983
- def initialize(app, visual, *args, &blk)
984
- argument_names = %w{other}
985
- default_params = { :other => nil }
1008
+ def initialize(p, *args, &blk)
1009
+ argument_names = %w{bmp target selector opts x y width height}
1010
+ default_params = { :bmp => nil, :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
986
1011
  params = {}
987
1012
  params = args.pop if args.last.is_a? Hash
988
1013
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
989
1014
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
990
1015
  params = default_params.merge(params)
991
- old_initialize(app, visual, params[:other], &blk)
1016
+ old_initialize(p, params[:bmp], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
992
1017
  end
993
1018
  end
994
1019
 
@@ -1010,177 +1035,159 @@ module Fox
1010
1035
  end
1011
1036
  end
1012
1037
 
1013
- class FXGroupBox
1014
- alias old_initialize initialize
1015
- def initialize(parent, text, *args, &blk)
1016
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1017
- default_params = { :opts => GROUPBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
1018
- params = {}
1019
- params = args.pop if args.last.is_a? Hash
1020
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1021
- if params.key? :padding
1022
- value = params.delete(:padding)
1023
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1024
- end
1025
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1026
- params = default_params.merge(params)
1027
- old_initialize(parent, text, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1028
- end
1029
- end
1030
-
1031
- class FXHeaderItem
1038
+ class FXMDIDeleteButton
1032
1039
  alias old_initialize initialize
1033
- def initialize(text, *args, &blk)
1034
- argument_names = %w{ic s ptr}
1035
- default_params = { :ic => nil, :s => 0, :ptr => nil }
1040
+ def initialize(p, *args, &blk)
1041
+ argument_names = %w{target selector opts x y width height}
1042
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
1036
1043
  params = {}
1037
1044
  params = args.pop if args.last.is_a? Hash
1038
1045
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1039
1046
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1040
1047
  params = default_params.merge(params)
1041
- old_initialize(text, params[:ic], params[:s], params[:ptr], &blk)
1048
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1042
1049
  end
1043
1050
  end
1044
1051
 
1045
- class FXHeader
1052
+ class FXMDIRestoreButton
1046
1053
  alias old_initialize initialize
1047
1054
  def initialize(p, *args, &blk)
1048
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1049
- default_params = { :target => nil, :selector => 0, :opts => HEADER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1055
+ argument_names = %w{target selector opts x y width height}
1056
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
1050
1057
  params = {}
1051
1058
  params = args.pop if args.last.is_a? Hash
1052
1059
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1053
- if params.key? :padding
1054
- value = params.delete(:padding)
1055
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1056
- end
1057
1060
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1058
1061
  params = default_params.merge(params)
1059
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1062
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1060
1063
  end
1061
1064
  end
1062
1065
 
1063
- class FXHorizontalFrame
1066
+ class FXMDIMaximizeButton
1064
1067
  alias old_initialize initialize
1065
1068
  def initialize(p, *args, &blk)
1066
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1067
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
1069
+ argument_names = %w{target selector opts x y width height}
1070
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
1068
1071
  params = {}
1069
1072
  params = args.pop if args.last.is_a? Hash
1070
1073
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1071
- if params.key? :padding
1072
- value = params.delete(:padding)
1073
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1074
- end
1075
1074
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1076
1075
  params = default_params.merge(params)
1077
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1076
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1078
1077
  end
1079
1078
  end
1080
1079
 
1081
- class FXICOIcon
1080
+ class FXMDIMinimizeButton
1082
1081
  alias old_initialize initialize
1083
- def initialize(a, *args, &blk)
1084
- argument_names = %w{pix clr opts width height}
1085
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1082
+ def initialize(p, *args, &blk)
1083
+ argument_names = %w{target selector opts x y width height}
1084
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
1086
1085
  params = {}
1087
1086
  params = args.pop if args.last.is_a? Hash
1088
1087
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1089
1088
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1090
1089
  params = default_params.merge(params)
1091
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1090
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1092
1091
  end
1093
1092
  end
1094
1093
 
1095
- class FXICOImage
1094
+ class FXMDIWindowButton
1096
1095
  alias old_initialize initialize
1097
- def initialize(a, *args, &blk)
1098
- argument_names = %w{pix opts width height}
1099
- default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
1096
+ def initialize(p, pup, *args, &blk)
1097
+ argument_names = %w{target selector opts x y width height}
1098
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1100
1099
  params = {}
1101
1100
  params = args.pop if args.last.is_a? Hash
1102
1101
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1103
1102
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1104
1103
  params = default_params.merge(params)
1105
- old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
1104
+ old_initialize(p, pup, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1106
1105
  end
1107
1106
  end
1108
1107
 
1109
- class FXIcon
1108
+ class FXMDIMenu
1110
1109
  alias old_initialize initialize
1111
- def initialize(app, *args, &blk)
1112
- argument_names = %w{pix clr opts width height}
1113
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1110
+ def initialize(owner, *args, &blk)
1111
+ argument_names = %w{target}
1112
+ default_params = { :target => nil }
1114
1113
  params = {}
1115
1114
  params = args.pop if args.last.is_a? Hash
1116
1115
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1117
1116
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1118
1117
  params = default_params.merge(params)
1119
- old_initialize(app, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1118
+ old_initialize(owner, params[:target], &blk)
1120
1119
  end
1121
1120
  end
1122
1121
 
1123
- class FXIconDict
1122
+ class FXToolTip
1124
1123
  alias old_initialize initialize
1125
1124
  def initialize(app, *args, &blk)
1126
- argument_names = %w{path}
1127
- default_params = { :path => FXIconDict.defaultIconPath }
1125
+ argument_names = %w{opts x y width height}
1126
+ default_params = { :opts => TOOLTIP_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1128
1127
  params = {}
1129
1128
  params = args.pop if args.last.is_a? Hash
1130
1129
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1131
1130
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1132
1131
  params = default_params.merge(params)
1133
- old_initialize(app, params[:path], &blk)
1132
+ old_initialize(app, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1134
1133
  end
1135
1134
  end
1136
1135
 
1137
- class FXIconItem
1136
+ class FXColorWell
1138
1137
  alias old_initialize initialize
1139
- def initialize(text, *args, &blk)
1140
- argument_names = %w{bigIcon miniIcon data}
1141
- default_params = { :bigIcon => nil, :miniIcon => nil, :data => nil }
1138
+ def initialize(parent, *args, &blk)
1139
+ argument_names = %w{color target selector opts x y width height padLeft padRight padTop padBottom}
1140
+ default_params = { :color => 0, :target => nil, :selector => 0, :opts => COLORWELL_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1142
1141
  params = {}
1143
1142
  params = args.pop if args.last.is_a? Hash
1144
1143
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1144
+ if params.key? :padding
1145
+ value = params.delete(:padding)
1146
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1147
+ end
1145
1148
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1146
1149
  params = default_params.merge(params)
1147
- old_initialize(text, params[:bigIcon], params[:miniIcon], params[:data], &blk)
1150
+ old_initialize(parent, params[:color], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1148
1151
  end
1149
1152
  end
1150
1153
 
1151
- class FXIconList
1154
+ class FXXPMImage
1152
1155
  alias old_initialize initialize
1153
- def initialize(p, *args, &blk)
1154
- argument_names = %w{target selector opts x y width height}
1155
- default_params = { :target => nil, :selector => 0, :opts => ICONLIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1156
+ def initialize(a, *args, &blk)
1157
+ argument_names = %w{pix opts width height}
1158
+ default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
1156
1159
  params = {}
1157
1160
  params = args.pop if args.last.is_a? Hash
1158
1161
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1159
1162
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1160
1163
  params = default_params.merge(params)
1161
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1164
+ old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
1162
1165
  end
1163
1166
  end
1164
1167
 
1165
- class FXImage
1168
+ class FXMatrix
1166
1169
  alias old_initialize initialize
1167
- def initialize(a, *args, &blk)
1168
- argument_names = %w{pixels opts width height}
1169
- default_params = { :pixels => nil, :opts => 0, :width => 1, :height => 1 }
1170
+ def initialize(parent, *args, &blk)
1171
+ argument_names = %w{n opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1172
+ default_params = { :n => 1, :opts => MATRIX_BY_ROWS, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
1170
1173
  params = {}
1171
1174
  params = args.pop if args.last.is_a? Hash
1172
1175
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1176
+ if params.key? :padding
1177
+ value = params.delete(:padding)
1178
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1179
+ end
1173
1180
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1174
1181
  params = default_params.merge(params)
1175
- old_initialize(a, params[:pixels], params[:opts], params[:width], params[:height], &blk)
1182
+ old_initialize(parent, params[:n], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1176
1183
  end
1177
1184
  end
1178
1185
 
1179
- class FXImageFrame
1186
+ class FXKnob
1180
1187
  alias old_initialize initialize
1181
- def initialize(p, img, *args, &blk)
1182
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
1183
- default_params = { :opts => FRAME_SUNKEN|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
1188
+ def initialize(p, *args, &blk)
1189
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1190
+ default_params = { :target => nil, :selector => 0, :opts => KNOB_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1184
1191
  params = {}
1185
1192
  params = args.pop if args.last.is_a? Hash
1186
1193
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1190,53 +1197,53 @@ module Fox
1190
1197
  end
1191
1198
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1192
1199
  params = default_params.merge(params)
1193
- old_initialize(p, img, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1200
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1194
1201
  end
1195
1202
  end
1196
1203
 
1197
- class FXImageView
1204
+ class FXCanvas
1198
1205
  alias old_initialize initialize
1199
- def initialize(p, *args, &blk)
1200
- argument_names = %w{img target selector opts x y width height}
1201
- default_params = { :img => nil, :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1206
+ def initialize(parent, *args, &blk)
1207
+ argument_names = %w{target selector opts x y width height}
1208
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1202
1209
  params = {}
1203
1210
  params = args.pop if args.last.is_a? Hash
1204
1211
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1205
1212
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1206
1213
  params = default_params.merge(params)
1207
- old_initialize(p, params[:img], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1214
+ old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1208
1215
  end
1209
1216
  end
1210
1217
 
1211
- class FXInputDialog
1218
+ class FXColorItem
1212
1219
  alias old_initialize initialize
1213
- def initialize(owner, caption, label, *args, &blk)
1214
- argument_names = %w{icon opts x y width height}
1215
- default_params = { :icon => nil, :opts => INPUTDIALOG_STRING, :x => 0, :y => 0, :width => 0, :height => 0 }
1220
+ def initialize(text, clr, *args, &blk)
1221
+ argument_names = %w{data}
1222
+ default_params = { :data => nil }
1216
1223
  params = {}
1217
1224
  params = args.pop if args.last.is_a? Hash
1218
1225
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1219
1226
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1220
1227
  params = default_params.merge(params)
1221
- old_initialize(owner, caption, label, params[:icon], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1228
+ old_initialize(text, clr, params[:data], &blk)
1222
1229
  end
1223
1230
  end
1224
1231
 
1225
- class FXJPGIcon
1232
+ class FXColorList
1226
1233
  alias old_initialize initialize
1227
- def initialize(a, *args, &blk)
1228
- argument_names = %w{pix clr opts width height}
1229
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1234
+ def initialize(p, *args, &blk)
1235
+ argument_names = %w{target selector opts x y width height}
1236
+ default_params = { :target => nil, :selector => 0, :opts => LIST_BROWSESELECT, :x => 0, :y => 0, :width => 0, :height => 0 }
1230
1237
  params = {}
1231
1238
  params = args.pop if args.last.is_a? Hash
1232
1239
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1233
1240
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1234
1241
  params = default_params.merge(params)
1235
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1242
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1236
1243
  end
1237
1244
  end
1238
1245
 
1239
- class FXJPGImage
1246
+ class FXPNGImage
1240
1247
  alias old_initialize initialize
1241
1248
  def initialize(a, *args, &blk)
1242
1249
  argument_names = %w{pix opts width height}
@@ -1250,75 +1257,39 @@ module Fox
1250
1257
  end
1251
1258
  end
1252
1259
 
1253
- class FXKnob
1254
- alias old_initialize initialize
1255
- def initialize(p, *args, &blk)
1256
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1257
- default_params = { :target => nil, :selector => 0, :opts => KNOB_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1258
- params = {}
1259
- params = args.pop if args.last.is_a? Hash
1260
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1261
- if params.key? :padding
1262
- value = params.delete(:padding)
1263
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1264
- end
1265
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1266
- params = default_params.merge(params)
1267
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1268
- end
1269
- end
1270
-
1271
- class FXLabel
1272
- alias old_initialize initialize
1273
- def initialize(parent, text, *args, &blk)
1274
- argument_names = %w{icon opts x y width height padLeft padRight padTop padBottom}
1275
- default_params = { :icon => nil, :opts => LABEL_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1276
- params = {}
1277
- params = args.pop if args.last.is_a? Hash
1278
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1279
- if params.key? :padding
1280
- value = params.delete(:padding)
1281
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1282
- end
1283
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1284
- params = default_params.merge(params)
1285
- old_initialize(parent, text, params[:icon], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1286
- end
1287
- end
1288
-
1289
- class FXListItem
1260
+ class FXJPGIcon
1290
1261
  alias old_initialize initialize
1291
- def initialize(text, *args, &blk)
1292
- argument_names = %w{icon data}
1293
- default_params = { :icon => nil, :data => nil }
1262
+ def initialize(a, *args, &blk)
1263
+ argument_names = %w{pix clr opts width height}
1264
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1294
1265
  params = {}
1295
1266
  params = args.pop if args.last.is_a? Hash
1296
1267
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1297
1268
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1298
1269
  params = default_params.merge(params)
1299
- old_initialize(text, params[:icon], params[:data], &blk)
1270
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1300
1271
  end
1301
1272
  end
1302
1273
 
1303
- class FXList
1274
+ class FXMenuRadio
1304
1275
  alias old_initialize initialize
1305
- def initialize(p, *args, &blk)
1306
- argument_names = %w{target selector opts x y width height}
1307
- default_params = { :target => nil, :selector => 0, :opts => LIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1276
+ def initialize(p, text, *args, &blk)
1277
+ argument_names = %w{target selector opts}
1278
+ default_params = { :target => nil, :selector => 0, :opts => 0 }
1308
1279
  params = {}
1309
1280
  params = args.pop if args.last.is_a? Hash
1310
1281
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1311
1282
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1312
1283
  params = default_params.merge(params)
1313
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1284
+ old_initialize(p, text, params[:target], params[:selector], params[:opts], &blk)
1314
1285
  end
1315
1286
  end
1316
1287
 
1317
- class FXListBox
1288
+ class FXOption
1318
1289
  alias old_initialize initialize
1319
- def initialize(p, *args, &blk)
1320
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1321
- default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1290
+ def initialize(p, text, *args, &blk)
1291
+ argument_names = %w{ic target selector opts x y width height padLeft padRight padTop padBottom}
1292
+ default_params = { :ic => nil, :target => nil, :selector => 0, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1322
1293
  params = {}
1323
1294
  params = args.pop if args.last.is_a? Hash
1324
1295
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1328,15 +1299,15 @@ module Fox
1328
1299
  end
1329
1300
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1330
1301
  params = default_params.merge(params)
1331
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1302
+ old_initialize(p, text, params[:ic], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1332
1303
  end
1333
1304
  end
1334
1305
 
1335
- class FXMainWindow
1306
+ class FXOptionMenu
1336
1307
  alias old_initialize initialize
1337
- def initialize(app, title, *args, &blk)
1338
- argument_names = %w{icon miniIcon opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1339
- default_params = { :icon => nil, :miniIcon => nil, :opts => DECOR_ALL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0, :hSpacing => 4, :vSpacing => 4 }
1308
+ def initialize(p, *args, &blk)
1309
+ argument_names = %w{pup opts x y width height padLeft padRight padTop padBottom}
1310
+ default_params = { :pup => nil, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1340
1311
  params = {}
1341
1312
  params = args.pop if args.last.is_a? Hash
1342
1313
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1346,57 +1317,53 @@ module Fox
1346
1317
  end
1347
1318
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1348
1319
  params = default_params.merge(params)
1349
- old_initialize(app, title, params[:icon], params[:miniIcon], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1320
+ old_initialize(p, params[:pup], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1350
1321
  end
1351
1322
  end
1352
1323
 
1353
- class FXMatrix
1324
+ class FXIconDict
1354
1325
  alias old_initialize initialize
1355
- def initialize(parent, *args, &blk)
1356
- argument_names = %w{n opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1357
- default_params = { :n => 1, :opts => MATRIX_BY_ROWS, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
1326
+ def initialize(app, *args, &blk)
1327
+ argument_names = %w{path}
1328
+ default_params = { :path => FXIconDict.defaultIconPath }
1358
1329
  params = {}
1359
1330
  params = args.pop if args.last.is_a? Hash
1360
1331
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1361
- if params.key? :padding
1362
- value = params.delete(:padding)
1363
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1364
- end
1365
1332
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1366
1333
  params = default_params.merge(params)
1367
- old_initialize(parent, params[:n], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1334
+ old_initialize(app, params[:path], &blk)
1368
1335
  end
1369
1336
  end
1370
1337
 
1371
- class FXMDIDeleteButton
1338
+ class FXVisual
1372
1339
  alias old_initialize initialize
1373
- def initialize(p, *args, &blk)
1374
- argument_names = %w{target selector opts x y width height}
1375
- default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
1340
+ def initialize(a, flgs, *args, &blk)
1341
+ argument_names = %w{d}
1342
+ default_params = { :d => 32 }
1376
1343
  params = {}
1377
1344
  params = args.pop if args.last.is_a? Hash
1378
1345
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1379
1346
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1380
1347
  params = default_params.merge(params)
1381
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1348
+ old_initialize(a, flgs, params[:d], &blk)
1382
1349
  end
1383
1350
  end
1384
1351
 
1385
- class FXMDIRestoreButton
1352
+ class FXRegistry
1386
1353
  alias old_initialize initialize
1387
- def initialize(p, *args, &blk)
1388
- argument_names = %w{target selector opts x y width height}
1389
- default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
1354
+ def initialize(*args, &blk)
1355
+ argument_names = %w{appKey vendorKey}
1356
+ default_params = { :appKey => "", :vendorKey => "" }
1390
1357
  params = {}
1391
1358
  params = args.pop if args.last.is_a? Hash
1392
1359
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1393
1360
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1394
1361
  params = default_params.merge(params)
1395
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1362
+ old_initialize(params[:appKey], params[:vendorKey], &blk)
1396
1363
  end
1397
1364
  end
1398
1365
 
1399
- class FXMDIMaximizeButton
1366
+ class FXToolBarTab
1400
1367
  alias old_initialize initialize
1401
1368
  def initialize(p, *args, &blk)
1402
1369
  argument_names = %w{target selector opts x y width height}
@@ -1410,95 +1377,99 @@ module Fox
1410
1377
  end
1411
1378
  end
1412
1379
 
1413
- class FXMDIMinimizeButton
1380
+ class FXFrame
1414
1381
  alias old_initialize initialize
1415
- def initialize(p, *args, &blk)
1416
- argument_names = %w{target selector opts x y width height}
1417
- default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
1382
+ def initialize(parent, *args, &blk)
1383
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
1384
+ default_params = { :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1418
1385
  params = {}
1419
1386
  params = args.pop if args.last.is_a? Hash
1420
1387
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1388
+ if params.key? :padding
1389
+ value = params.delete(:padding)
1390
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1391
+ end
1421
1392
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1422
1393
  params = default_params.merge(params)
1423
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1394
+ old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1424
1395
  end
1425
1396
  end
1426
1397
 
1427
- class FXMDIWindowButton
1398
+ class FXXBMImage
1428
1399
  alias old_initialize initialize
1429
- def initialize(p, pup, *args, &blk)
1430
- argument_names = %w{target selector opts x y width height}
1431
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1400
+ def initialize(a, *args, &blk)
1401
+ argument_names = %w{pixels mask opts width height}
1402
+ default_params = { :pixels => nil, :mask => nil, :opts => 0, :width => 1, :height => 1 }
1432
1403
  params = {}
1433
1404
  params = args.pop if args.last.is_a? Hash
1434
1405
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1435
1406
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1436
1407
  params = default_params.merge(params)
1437
- old_initialize(p, pup, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1408
+ old_initialize(a, params[:pixels], params[:mask], params[:opts], params[:width], params[:height], &blk)
1438
1409
  end
1439
1410
  end
1440
1411
 
1441
- class FXMDIMenu
1412
+ class FXFileItem
1442
1413
  alias old_initialize initialize
1443
- def initialize(owner, *args, &blk)
1444
- argument_names = %w{target}
1445
- default_params = { :target => nil }
1414
+ def initialize(text, *args, &blk)
1415
+ argument_names = %w{bi mi ptr}
1416
+ default_params = { :bi => nil, :mi => nil, :ptr => nil }
1446
1417
  params = {}
1447
1418
  params = args.pop if args.last.is_a? Hash
1448
1419
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1449
1420
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1450
1421
  params = default_params.merge(params)
1451
- old_initialize(owner, params[:target], &blk)
1422
+ old_initialize(text, params[:bi], params[:mi], params[:ptr], &blk)
1452
1423
  end
1453
1424
  end
1454
1425
 
1455
- class FXMDIChild
1426
+ class FXFileList
1456
1427
  alias old_initialize initialize
1457
- def initialize(p, name, *args, &blk)
1458
- argument_names = %w{ic pup opts x y width height}
1459
- default_params = { :ic => nil, :pup => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1428
+ def initialize(p, *args, &blk)
1429
+ argument_names = %w{target selector opts x y width height}
1430
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1460
1431
  params = {}
1461
1432
  params = args.pop if args.last.is_a? Hash
1462
1433
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1463
1434
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1464
1435
  params = default_params.merge(params)
1465
- old_initialize(p, name, params[:ic], params[:pup], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1436
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1466
1437
  end
1467
1438
  end
1468
1439
 
1469
- class FXMDIClient
1440
+ class FXMessageBox
1470
1441
  alias old_initialize initialize
1471
- def initialize(p, *args, &blk)
1472
- argument_names = %w{opts x y width height}
1473
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1442
+ def initialize(owner, caption, text, *args, &blk)
1443
+ argument_names = %w{ic opts x y}
1444
+ default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0 }
1474
1445
  params = {}
1475
1446
  params = args.pop if args.last.is_a? Hash
1476
1447
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1477
1448
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1478
1449
  params = default_params.merge(params)
1479
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1450
+ old_initialize(owner, caption, text, params[:ic], params[:opts], params[:x], params[:y], &blk)
1480
1451
  end
1481
1452
  end
1482
1453
 
1483
- class FXMemoryStream
1454
+ class FXTableItem
1484
1455
  alias old_initialize initialize
1485
- def initialize(*args, &blk)
1486
- argument_names = %w{cont}
1487
- default_params = { :cont => nil }
1456
+ def initialize(text, *args, &blk)
1457
+ argument_names = %w{icon data}
1458
+ default_params = { :icon => nil, :data => nil }
1488
1459
  params = {}
1489
1460
  params = args.pop if args.last.is_a? Hash
1490
1461
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1491
1462
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1492
1463
  params = default_params.merge(params)
1493
- old_initialize(params[:cont], &blk)
1464
+ old_initialize(text, params[:icon], params[:data], &blk)
1494
1465
  end
1495
1466
  end
1496
1467
 
1497
- class FXMenuButton
1468
+ class FXTable
1498
1469
  alias old_initialize initialize
1499
- def initialize(parent, text, *args, &blk)
1500
- argument_names = %w{icon popupMenu opts x y width height padLeft padRight padTop padBottom}
1501
- default_params = { :icon => nil, :popupMenu => nil, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT|MENUBUTTON_DOWN, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
1470
+ def initialize(p, *args, &blk)
1471
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1472
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_MARGIN, :padRight => DEFAULT_MARGIN, :padTop => DEFAULT_MARGIN, :padBottom => DEFAULT_MARGIN }
1502
1473
  params = {}
1503
1474
  params = args.pop if args.last.is_a? Hash
1504
1475
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1508,159 +1479,143 @@ module Fox
1508
1479
  end
1509
1480
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1510
1481
  params = default_params.merge(params)
1511
- old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1512
- end
1513
- end
1514
-
1515
- class FXMenuCaption
1516
- alias old_initialize initialize
1517
- def initialize(parent, text, *args, &blk)
1518
- argument_names = %w{icon opts}
1519
- default_params = { :icon => nil, :opts => 0 }
1520
- params = {}
1521
- params = args.pop if args.last.is_a? Hash
1522
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1523
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1524
- params = default_params.merge(params)
1525
- old_initialize(parent, text, params[:icon], params[:opts], &blk)
1482
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1526
1483
  end
1527
1484
  end
1528
1485
 
1529
- class FXMenuCascade
1486
+ class FXTabBook
1530
1487
  alias old_initialize initialize
1531
- def initialize(parent, text, *args, &blk)
1532
- argument_names = %w{icon popupMenu opts}
1533
- default_params = { :icon => nil, :popupMenu => nil, :opts => 0 }
1488
+ def initialize(p, *args, &blk)
1489
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1490
+ default_params = { :target => nil, :selector => 0, :opts => TABBOOK_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
1534
1491
  params = {}
1535
1492
  params = args.pop if args.last.is_a? Hash
1536
1493
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1494
+ if params.key? :padding
1495
+ value = params.delete(:padding)
1496
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1497
+ end
1537
1498
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1538
1499
  params = default_params.merge(params)
1539
- old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts], &blk)
1500
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1540
1501
  end
1541
1502
  end
1542
1503
 
1543
- class FXMenuCheck
1504
+ class FXDataTarget
1544
1505
  alias old_initialize initialize
1545
- def initialize(p, text, *args, &blk)
1546
- argument_names = %w{target selector opts}
1547
- default_params = { :target => nil, :selector => 0, :opts => 0 }
1506
+ def initialize(*args, &blk)
1507
+ argument_names = %w{value target selector}
1508
+ default_params = { :value => nil, :target => nil, :selector => 0 }
1548
1509
  params = {}
1549
1510
  params = args.pop if args.last.is_a? Hash
1550
1511
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1551
1512
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1552
1513
  params = default_params.merge(params)
1553
- old_initialize(p, text, params[:target], params[:selector], params[:opts], &blk)
1514
+ old_initialize(params[:value], params[:target], params[:selector], &blk)
1554
1515
  end
1555
1516
  end
1556
1517
 
1557
- class FXMenuCommand
1518
+ class FXStatusLine
1558
1519
  alias old_initialize initialize
1559
- def initialize(p, text, *args, &blk)
1560
- argument_names = %w{ic target selector opts}
1561
- default_params = { :ic => nil, :target => nil, :selector => 0, :opts => 0 }
1520
+ def initialize(p, *args, &blk)
1521
+ argument_names = %w{target selector}
1522
+ default_params = { :target => nil, :selector => 0 }
1562
1523
  params = {}
1563
1524
  params = args.pop if args.last.is_a? Hash
1564
1525
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1565
1526
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1566
1527
  params = default_params.merge(params)
1567
- old_initialize(p, text, params[:ic], params[:target], params[:selector], params[:opts], &blk)
1528
+ old_initialize(p, params[:target], params[:selector], &blk)
1568
1529
  end
1569
1530
  end
1570
1531
 
1571
- class FXMenuPane
1532
+ class FXGroupBox
1572
1533
  alias old_initialize initialize
1573
- def initialize(owner, *args, &blk)
1574
- argument_names = %w{opts}
1575
- default_params = { :opts => 0 }
1534
+ def initialize(parent, text, *args, &blk)
1535
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1536
+ default_params = { :opts => GROUPBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
1576
1537
  params = {}
1577
1538
  params = args.pop if args.last.is_a? Hash
1578
1539
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1540
+ if params.key? :padding
1541
+ value = params.delete(:padding)
1542
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1543
+ end
1579
1544
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1580
1545
  params = default_params.merge(params)
1581
- old_initialize(owner, params[:opts], &blk)
1546
+ old_initialize(parent, text, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1582
1547
  end
1583
1548
  end
1584
1549
 
1585
- class FXMenuRadio
1550
+ class FXProgressBar
1586
1551
  alias old_initialize initialize
1587
- def initialize(p, text, *args, &blk)
1588
- argument_names = %w{target selector opts}
1589
- default_params = { :target => nil, :selector => 0, :opts => 0 }
1552
+ def initialize(p, *args, &blk)
1553
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1554
+ default_params = { :target => nil, :selector => 0, :opts => PROGRESSBAR_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1590
1555
  params = {}
1591
1556
  params = args.pop if args.last.is_a? Hash
1592
1557
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1558
+ if params.key? :padding
1559
+ value = params.delete(:padding)
1560
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1561
+ end
1593
1562
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1594
1563
  params = default_params.merge(params)
1595
- old_initialize(p, text, params[:target], params[:selector], params[:opts], &blk)
1564
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1596
1565
  end
1597
1566
  end
1598
1567
 
1599
- class FXMenuSeparator
1568
+ class FXProgressDialog
1600
1569
  alias old_initialize initialize
1601
- def initialize(parent, *args, &blk)
1602
- argument_names = %w{opts}
1603
- default_params = { :opts => 0 }
1570
+ def initialize(owner, caption, label, *args, &blk)
1571
+ argument_names = %w{opts x y width height}
1572
+ default_params = { :opts => PROGRESSDIALOG_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1604
1573
  params = {}
1605
1574
  params = args.pop if args.last.is_a? Hash
1606
1575
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1607
1576
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1608
1577
  params = default_params.merge(params)
1609
- old_initialize(parent, params[:opts], &blk)
1578
+ old_initialize(owner, caption, label, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1610
1579
  end
1611
1580
  end
1612
1581
 
1613
- class FXMenuTitle
1582
+ class FXMenuButton
1614
1583
  alias old_initialize initialize
1615
1584
  def initialize(parent, text, *args, &blk)
1616
- argument_names = %w{icon popupMenu opts}
1617
- default_params = { :icon => nil, :popupMenu => nil, :opts => 0 }
1618
- params = {}
1619
- params = args.pop if args.last.is_a? Hash
1620
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1621
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1622
- params = default_params.merge(params)
1623
- old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts], &blk)
1624
- end
1625
- end
1626
-
1627
- class FXMessageBox
1628
- alias old_initialize initialize
1629
- def initialize(owner, caption, text, *args, &blk)
1630
- argument_names = %w{ic opts x y}
1631
- default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0 }
1585
+ argument_names = %w{icon popupMenu opts x y width height padLeft padRight padTop padBottom}
1586
+ default_params = { :icon => nil, :popupMenu => nil, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT|MENUBUTTON_DOWN, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
1632
1587
  params = {}
1633
1588
  params = args.pop if args.last.is_a? Hash
1634
1589
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1590
+ if params.key? :padding
1591
+ value = params.delete(:padding)
1592
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1593
+ end
1635
1594
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1636
1595
  params = default_params.merge(params)
1637
- old_initialize(owner, caption, text, params[:ic], params[:opts], params[:x], params[:y], &blk)
1596
+ old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1638
1597
  end
1639
1598
  end
1640
1599
 
1641
- class FXOption
1600
+ class FXRGBIcon
1642
1601
  alias old_initialize initialize
1643
- def initialize(p, text, *args, &blk)
1644
- argument_names = %w{ic target selector opts x y width height padLeft padRight padTop padBottom}
1645
- default_params = { :ic => nil, :target => nil, :selector => 0, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1602
+ def initialize(a, *args, &blk)
1603
+ argument_names = %w{pix clr opts width height}
1604
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1646
1605
  params = {}
1647
1606
  params = args.pop if args.last.is_a? Hash
1648
1607
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1649
- if params.key? :padding
1650
- value = params.delete(:padding)
1651
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1652
- end
1653
1608
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1654
1609
  params = default_params.merge(params)
1655
- old_initialize(p, text, params[:ic], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1610
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1656
1611
  end
1657
1612
  end
1658
1613
 
1659
- class FXOptionMenu
1614
+ class FX7Segment
1660
1615
  alias old_initialize initialize
1661
- def initialize(p, *args, &blk)
1662
- argument_names = %w{pup opts x y width height padLeft padRight padTop padBottom}
1663
- default_params = { :pup => nil, :opts => JUSTIFY_NORMAL|ICON_BEFORE_TEXT, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1616
+ def initialize(p, text, *args, &blk)
1617
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
1618
+ default_params = { :opts => SEVENSEGMENT_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1664
1619
  params = {}
1665
1620
  params = args.pop if args.last.is_a? Hash
1666
1621
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1670,15 +1625,15 @@ module Fox
1670
1625
  end
1671
1626
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1672
1627
  params = default_params.merge(params)
1673
- old_initialize(p, params[:pup], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1628
+ old_initialize(p, text, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1674
1629
  end
1675
1630
  end
1676
1631
 
1677
- class FXPacker
1632
+ class FXTreeListBox
1678
1633
  alias old_initialize initialize
1679
- def initialize(parent, *args, &blk)
1680
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1681
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
1634
+ def initialize(p, *args, &blk)
1635
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1636
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1682
1637
  params = {}
1683
1638
  params = args.pop if args.last.is_a? Hash
1684
1639
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1688,71 +1643,67 @@ module Fox
1688
1643
  end
1689
1644
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1690
1645
  params = default_params.merge(params)
1691
- old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1646
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1692
1647
  end
1693
1648
  end
1694
1649
 
1695
- class FXPCXIcon
1650
+ class FXSplashWindow
1696
1651
  alias old_initialize initialize
1697
- def initialize(a, *args, &blk)
1698
- argument_names = %w{pix clr opts width height}
1699
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1652
+ def initialize(owner, icon, *args, &blk)
1653
+ argument_names = %w{opts ms}
1654
+ default_params = { :opts => SPLASH_SIMPLE, :ms => 5000 }
1700
1655
  params = {}
1701
1656
  params = args.pop if args.last.is_a? Hash
1702
1657
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1703
1658
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1704
1659
  params = default_params.merge(params)
1705
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1660
+ old_initialize(owner, icon, params[:opts], params[:ms], &blk)
1706
1661
  end
1707
1662
  end
1708
1663
 
1709
- class FXPCXImage
1664
+ class FXMenuCaption
1710
1665
  alias old_initialize initialize
1711
- def initialize(a, *args, &blk)
1712
- argument_names = %w{pix opts width height}
1713
- default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
1666
+ def initialize(parent, text, *args, &blk)
1667
+ argument_names = %w{icon opts}
1668
+ default_params = { :icon => nil, :opts => 0 }
1714
1669
  params = {}
1715
1670
  params = args.pop if args.last.is_a? Hash
1716
1671
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1717
1672
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1718
1673
  params = default_params.merge(params)
1719
- old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
1674
+ old_initialize(parent, text, params[:icon], params[:opts], &blk)
1720
1675
  end
1721
1676
  end
1722
1677
 
1723
- class FXPicker
1678
+ class FXMDIClient
1724
1679
  alias old_initialize initialize
1725
- def initialize(p, text, *args, &blk)
1726
- argument_names = %w{ic target selector opts x y width height padLeft padRight padTop padBottom}
1727
- default_params = { :ic => nil, :target => nil, :selector => 0, :opts => BUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1680
+ def initialize(p, *args, &blk)
1681
+ argument_names = %w{opts x y width height}
1682
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1728
1683
  params = {}
1729
1684
  params = args.pop if args.last.is_a? Hash
1730
1685
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1731
- if params.key? :padding
1732
- value = params.delete(:padding)
1733
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1734
- end
1735
1686
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1736
1687
  params = default_params.merge(params)
1737
- old_initialize(p, text, params[:ic], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1688
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1738
1689
  end
1739
1690
  end
1740
1691
 
1741
- class FXPNGIcon
1692
+ class FXMenuTitle
1742
1693
  alias old_initialize initialize
1743
- def initialize(a, *args, &blk)
1744
- argument_names = %w{pix clr opts width height}
1745
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1694
+ def initialize(parent, text, *args, &blk)
1695
+ argument_names = %w{icon popupMenu opts}
1696
+ default_params = { :icon => nil, :popupMenu => nil, :opts => 0 }
1746
1697
  params = {}
1747
1698
  params = args.pop if args.last.is_a? Hash
1748
1699
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1749
1700
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1750
1701
  params = default_params.merge(params)
1751
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1702
+ old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts], &blk)
1752
1703
  end
1753
1704
  end
1754
1705
 
1755
- class FXPNGImage
1706
+ class FXICOImage
1756
1707
  alias old_initialize initialize
1757
1708
  def initialize(a, *args, &blk)
1758
1709
  argument_names = %w{pix opts width height}
@@ -1766,99 +1717,99 @@ module Fox
1766
1717
  end
1767
1718
  end
1768
1719
 
1769
- class FXPopup
1720
+ class FXDirBox
1770
1721
  alias old_initialize initialize
1771
- def initialize(owner, *args, &blk)
1772
- argument_names = %w{opts x y width height}
1773
- default_params = { :opts => POPUP_VERTICAL|FRAME_RAISED|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0 }
1722
+ def initialize(p, *args, &blk)
1723
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1724
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1774
1725
  params = {}
1775
1726
  params = args.pop if args.last.is_a? Hash
1776
1727
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1728
+ if params.key? :padding
1729
+ value = params.delete(:padding)
1730
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1731
+ end
1777
1732
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1778
1733
  params = default_params.merge(params)
1779
- old_initialize(owner, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1734
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1780
1735
  end
1781
1736
  end
1782
1737
 
1783
- class FXPPMIcon
1738
+ class FXScrollBar
1784
1739
  alias old_initialize initialize
1785
- def initialize(a, *args, &blk)
1786
- argument_names = %w{pix clr opts width height}
1787
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1740
+ def initialize(p, *args, &blk)
1741
+ argument_names = %w{target selector opts x y width height}
1742
+ default_params = { :target => nil, :selector => 0, :opts => SCROLLBAR_VERTICAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1788
1743
  params = {}
1789
1744
  params = args.pop if args.last.is_a? Hash
1790
1745
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1791
1746
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1792
1747
  params = default_params.merge(params)
1793
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1748
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1794
1749
  end
1795
1750
  end
1796
1751
 
1797
- class FXPPMImage
1752
+ class FXDirSelector
1798
1753
  alias old_initialize initialize
1799
- def initialize(a, *args, &blk)
1800
- argument_names = %w{pix opts width height}
1801
- default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
1754
+ def initialize(p, *args, &blk)
1755
+ argument_names = %w{target selector opts x y width height}
1756
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1802
1757
  params = {}
1803
1758
  params = args.pop if args.last.is_a? Hash
1804
1759
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1805
1760
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1806
1761
  params = default_params.merge(params)
1807
- old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
1762
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1808
1763
  end
1809
1764
  end
1810
1765
 
1811
- class FXPrintDialog
1766
+ class FXBitmap
1812
1767
  alias old_initialize initialize
1813
- def initialize(owner, name, *args, &blk)
1814
- argument_names = %w{opts x y width height}
1815
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1768
+ def initialize(app, *args, &blk)
1769
+ argument_names = %w{pixels opts width height}
1770
+ default_params = { :pixels => nil, :opts => 0, :width => 1, :height => 1 }
1816
1771
  params = {}
1817
1772
  params = args.pop if args.last.is_a? Hash
1818
1773
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1819
1774
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1820
1775
  params = default_params.merge(params)
1821
- old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1776
+ old_initialize(app, params[:pixels], params[:opts], params[:width], params[:height], &blk)
1822
1777
  end
1823
1778
  end
1824
1779
 
1825
- class FXProgressBar
1780
+ class FXIcon
1826
1781
  alias old_initialize initialize
1827
- def initialize(p, *args, &blk)
1828
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1829
- default_params = { :target => nil, :selector => 0, :opts => PROGRESSBAR_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1782
+ def initialize(app, *args, &blk)
1783
+ argument_names = %w{pix clr opts width height}
1784
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1830
1785
  params = {}
1831
1786
  params = args.pop if args.last.is_a? Hash
1832
1787
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1833
- if params.key? :padding
1834
- value = params.delete(:padding)
1835
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1836
- end
1837
1788
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1838
1789
  params = default_params.merge(params)
1839
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1790
+ old_initialize(app, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1840
1791
  end
1841
1792
  end
1842
1793
 
1843
- class FXProgressDialog
1794
+ class FXFontSelector
1844
1795
  alias old_initialize initialize
1845
- def initialize(owner, caption, label, *args, &blk)
1846
- argument_names = %w{opts x y width height}
1847
- default_params = { :opts => PROGRESSDIALOG_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
1796
+ def initialize(p, *args, &blk)
1797
+ argument_names = %w{target selector opts x y width height}
1798
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1848
1799
  params = {}
1849
1800
  params = args.pop if args.last.is_a? Hash
1850
1801
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1851
1802
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1852
1803
  params = default_params.merge(params)
1853
- old_initialize(owner, caption, label, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1804
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1854
1805
  end
1855
1806
  end
1856
1807
 
1857
- class FXRadioButton
1808
+ class FXMainWindow
1858
1809
  alias old_initialize initialize
1859
- def initialize(parent, text, *args, &blk)
1860
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1861
- default_params = { :target => nil, :selector => 0, :opts => RADIOBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1810
+ def initialize(app, title, *args, &blk)
1811
+ argument_names = %w{icon miniIcon opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1812
+ default_params = { :icon => nil, :miniIcon => nil, :opts => DECOR_ALL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0, :hSpacing => 4, :vSpacing => 4 }
1862
1813
  params = {}
1863
1814
  params = args.pop if args.last.is_a? Hash
1864
1815
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1868,15 +1819,15 @@ module Fox
1868
1819
  end
1869
1820
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1870
1821
  params = default_params.merge(params)
1871
- old_initialize(parent, text, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1822
+ old_initialize(app, title, params[:icon], params[:miniIcon], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1872
1823
  end
1873
1824
  end
1874
1825
 
1875
- class FXRealSlider
1826
+ class FXSlider
1876
1827
  alias old_initialize initialize
1877
1828
  def initialize(p, *args, &blk)
1878
1829
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1879
- default_params = { :target => nil, :selector => 0, :opts => REALSLIDER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
1830
+ default_params = { :target => nil, :selector => 0, :opts => SLIDER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
1880
1831
  params = {}
1881
1832
  params = args.pop if args.last.is_a? Hash
1882
1833
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1890,11 +1841,25 @@ module Fox
1890
1841
  end
1891
1842
  end
1892
1843
 
1893
- class FXRealSpinner
1844
+ class FXScintilla
1894
1845
  alias old_initialize initialize
1895
- def initialize(p, cols, *args, &blk)
1896
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1897
- default_params = { :target => nil, :selector => 0, :opts => REALSPIN_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1846
+ def initialize(p, *args, &blk)
1847
+ argument_names = %w{target selector opts x y width height}
1848
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1849
+ params = {}
1850
+ params = args.pop if args.last.is_a? Hash
1851
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1852
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1853
+ params = default_params.merge(params)
1854
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1855
+ end
1856
+ end
1857
+
1858
+ class FXDockSite
1859
+ alias old_initialize initialize
1860
+ def initialize(p, *args, &blk)
1861
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
1862
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0, :hSpacing => 0, :vSpacing => 0 }
1898
1863
  params = {}
1899
1864
  params = args.pop if args.last.is_a? Hash
1900
1865
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -1904,53 +1869,53 @@ module Fox
1904
1869
  end
1905
1870
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1906
1871
  params = default_params.merge(params)
1907
- old_initialize(p, cols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1872
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
1908
1873
  end
1909
1874
  end
1910
1875
 
1911
- class FXRegistry
1876
+ class FXImageView
1912
1877
  alias old_initialize initialize
1913
- def initialize(*args, &blk)
1914
- argument_names = %w{appKey vendorKey}
1915
- default_params = { :appKey => "", :vendorKey => "" }
1878
+ def initialize(p, *args, &blk)
1879
+ argument_names = %w{img target selector opts x y width height}
1880
+ default_params = { :img => nil, :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1916
1881
  params = {}
1917
1882
  params = args.pop if args.last.is_a? Hash
1918
1883
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1919
1884
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1920
1885
  params = default_params.merge(params)
1921
- old_initialize(params[:appKey], params[:vendorKey], &blk)
1886
+ old_initialize(p, params[:img], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1922
1887
  end
1923
1888
  end
1924
1889
 
1925
- class FXReplaceDialog
1890
+ class FXMenuCommand
1926
1891
  alias old_initialize initialize
1927
- def initialize(owner, caption, *args, &blk)
1928
- argument_names = %w{ic opts x y width height}
1929
- default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1892
+ def initialize(p, text, *args, &blk)
1893
+ argument_names = %w{ic target selector opts}
1894
+ default_params = { :ic => nil, :target => nil, :selector => 0, :opts => 0 }
1930
1895
  params = {}
1931
1896
  params = args.pop if args.last.is_a? Hash
1932
1897
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1933
1898
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1934
1899
  params = default_params.merge(params)
1935
- old_initialize(owner, caption, params[:ic], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1900
+ old_initialize(p, text, params[:ic], params[:target], params[:selector], params[:opts], &blk)
1936
1901
  end
1937
1902
  end
1938
1903
 
1939
- class FXRGBIcon
1904
+ class FXPCXImage
1940
1905
  alias old_initialize initialize
1941
1906
  def initialize(a, *args, &blk)
1942
- argument_names = %w{pix clr opts width height}
1943
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1907
+ argument_names = %w{pix opts width height}
1908
+ default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
1944
1909
  params = {}
1945
1910
  params = args.pop if args.last.is_a? Hash
1946
1911
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1947
1912
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1948
1913
  params = default_params.merge(params)
1949
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1914
+ old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
1950
1915
  end
1951
1916
  end
1952
1917
 
1953
- class FXRGBImage
1918
+ class FXTGAImage
1954
1919
  alias old_initialize initialize
1955
1920
  def initialize(a, *args, &blk)
1956
1921
  argument_names = %w{pix opts width height}
@@ -1964,43 +1929,53 @@ module Fox
1964
1929
  end
1965
1930
  end
1966
1931
 
1967
- class FXRuler
1932
+ class FXXPMIcon
1968
1933
  alias old_initialize initialize
1969
- def initialize(p, *args, &blk)
1970
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
1971
- default_params = { :target => nil, :selector => 0, :opts => RULER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
1934
+ def initialize(a, *args, &blk)
1935
+ argument_names = %w{pix clr opts width height}
1936
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
1972
1937
  params = {}
1973
1938
  params = args.pop if args.last.is_a? Hash
1974
1939
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1975
- if params.key? :padding
1976
- value = params.delete(:padding)
1977
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
1978
- end
1979
1940
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1980
1941
  params = default_params.merge(params)
1981
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
1942
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
1982
1943
  end
1983
1944
  end
1984
1945
 
1985
- class FXRulerView
1946
+ class FXMenuCascade
1986
1947
  alias old_initialize initialize
1987
- def initialize(p, *args, &blk)
1988
- argument_names = %w{target selector opts x y width height}
1989
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1948
+ def initialize(parent, text, *args, &blk)
1949
+ argument_names = %w{icon popupMenu opts}
1950
+ default_params = { :icon => nil, :popupMenu => nil, :opts => 0 }
1990
1951
  params = {}
1991
1952
  params = args.pop if args.last.is_a? Hash
1992
1953
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1993
1954
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1994
1955
  params = default_params.merge(params)
1995
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1956
+ old_initialize(parent, text, params[:icon], params[:popupMenu], params[:opts], &blk)
1996
1957
  end
1997
1958
  end
1998
1959
 
1999
- class FXScintilla
1960
+ class FXFoldingItem
1961
+ alias old_initialize initialize
1962
+ def initialize(text, *args, &blk)
1963
+ argument_names = %w{openIcon closedIcon data}
1964
+ default_params = { :openIcon => nil, :closedIcon => nil, :data => nil }
1965
+ params = {}
1966
+ params = args.pop if args.last.is_a? Hash
1967
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
1968
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
1969
+ params = default_params.merge(params)
1970
+ old_initialize(text, params[:openIcon], params[:closedIcon], params[:data], &blk)
1971
+ end
1972
+ end
1973
+
1974
+ class FXFoldingList
2000
1975
  alias old_initialize initialize
2001
1976
  def initialize(p, *args, &blk)
2002
1977
  argument_names = %w{target selector opts x y width height}
2003
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1978
+ default_params = { :target => nil, :selector => 0, :opts => TREELIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
2004
1979
  params = {}
2005
1980
  params = args.pop if args.last.is_a? Hash
2006
1981
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2010,51 +1985,59 @@ module Fox
2010
1985
  end
2011
1986
  end
2012
1987
 
2013
- class FXScrollArea
1988
+ class FXPCXIcon
2014
1989
  alias old_initialize initialize
2015
- def initialize(parent, *args, &blk)
2016
- argument_names = %w{opts x y width height}
2017
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
1990
+ def initialize(a, *args, &blk)
1991
+ argument_names = %w{pix clr opts width height}
1992
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
2018
1993
  params = {}
2019
1994
  params = args.pop if args.last.is_a? Hash
2020
1995
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2021
1996
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2022
1997
  params = default_params.merge(params)
2023
- old_initialize(parent, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
1998
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
2024
1999
  end
2025
2000
  end
2026
2001
 
2027
- class FXScrollBar
2002
+ class FXSwitcher
2028
2003
  alias old_initialize initialize
2029
2004
  def initialize(p, *args, &blk)
2030
- argument_names = %w{target selector opts x y width height}
2031
- default_params = { :target => nil, :selector => 0, :opts => SCROLLBAR_VERTICAL, :x => 0, :y => 0, :width => 0, :height => 0 }
2005
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
2006
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
2032
2007
  params = {}
2033
2008
  params = args.pop if args.last.is_a? Hash
2034
2009
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2010
+ if params.key? :padding
2011
+ value = params.delete(:padding)
2012
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2013
+ end
2035
2014
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2036
2015
  params = default_params.merge(params)
2037
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2016
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2038
2017
  end
2039
2018
  end
2040
2019
 
2041
- class FXScrollPane
2020
+ class FXCheckButton
2042
2021
  alias old_initialize initialize
2043
- def initialize(owner, nvis, *args, &blk)
2044
- argument_names = %w{opts}
2045
- default_params = { :opts => 0 }
2022
+ def initialize(parent, text, *args, &blk)
2023
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2024
+ default_params = { :target => nil, :selector => 0, :opts => CHECKBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2046
2025
  params = {}
2047
2026
  params = args.pop if args.last.is_a? Hash
2048
2027
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2028
+ if params.key? :padding
2029
+ value = params.delete(:padding)
2030
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2031
+ end
2049
2032
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2050
2033
  params = default_params.merge(params)
2051
- old_initialize(owner, nvis, params[:opts], &blk)
2034
+ old_initialize(parent, text, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2052
2035
  end
2053
2036
  end
2054
2037
 
2055
- class FXScrollWindow
2038
+ class FXPrintDialog
2056
2039
  alias old_initialize initialize
2057
- def initialize(p, *args, &blk)
2040
+ def initialize(owner, name, *args, &blk)
2058
2041
  argument_names = %w{opts x y width height}
2059
2042
  default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2060
2043
  params = {}
@@ -2062,47 +2045,43 @@ module Fox
2062
2045
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2063
2046
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2064
2047
  params = default_params.merge(params)
2065
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2048
+ old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2066
2049
  end
2067
2050
  end
2068
2051
 
2069
- class FXSearchDialog
2052
+ class FXFileDialog
2070
2053
  alias old_initialize initialize
2071
- def initialize(owner, caption, *args, &blk)
2072
- argument_names = %w{ic opts x y width height}
2073
- default_params = { :ic => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2054
+ def initialize(owner, name, *args, &blk)
2055
+ argument_names = %w{opts x y width height}
2056
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 500, :height => 300 }
2074
2057
  params = {}
2075
2058
  params = args.pop if args.last.is_a? Hash
2076
2059
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2077
2060
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2078
2061
  params = default_params.merge(params)
2079
- old_initialize(owner, caption, params[:ic], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2062
+ old_initialize(owner, name, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2080
2063
  end
2081
2064
  end
2082
2065
 
2083
- class FXSeparator
2066
+ class FXGIFImage
2084
2067
  alias old_initialize initialize
2085
- def initialize(p, *args, &blk)
2086
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
2087
- default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
2068
+ def initialize(a, *args, &blk)
2069
+ argument_names = %w{pix opts width height}
2070
+ default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
2088
2071
  params = {}
2089
2072
  params = args.pop if args.last.is_a? Hash
2090
2073
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2091
- if params.key? :padding
2092
- value = params.delete(:padding)
2093
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2094
- end
2095
2074
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2096
2075
  params = default_params.merge(params)
2097
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2076
+ old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
2098
2077
  end
2099
2078
  end
2100
2079
 
2101
- class FXHorizontalSeparator
2080
+ class FXTabItem
2102
2081
  alias old_initialize initialize
2103
- def initialize(p, *args, &blk)
2104
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
2105
- default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_X, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 1, :padRight => 1, :padTop => 0, :padBottom => 0 }
2082
+ def initialize(p, text, *args, &blk)
2083
+ argument_names = %w{ic opts x y width height padLeft padRight padTop padBottom}
2084
+ default_params = { :ic => nil, :opts => TAB_TOP_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2106
2085
  params = {}
2107
2086
  params = args.pop if args.last.is_a? Hash
2108
2087
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2112,51 +2091,43 @@ module Fox
2112
2091
  end
2113
2092
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2114
2093
  params = default_params.merge(params)
2115
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2094
+ old_initialize(p, text, params[:ic], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2116
2095
  end
2117
2096
  end
2118
2097
 
2119
- class FXVerticalSeparator
2098
+ class FXTIFIcon
2120
2099
  alias old_initialize initialize
2121
- def initialize(p, *args, &blk)
2122
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
2123
- default_params = { :opts => SEPARATOR_GROOVE|LAYOUT_FILL_Y, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 1, :padBottom => 1 }
2100
+ def initialize(a, *args, &blk)
2101
+ argument_names = %w{pix clr opts width height}
2102
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
2124
2103
  params = {}
2125
2104
  params = args.pop if args.last.is_a? Hash
2126
2105
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2127
- if params.key? :padding
2128
- value = params.delete(:padding)
2129
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2130
- end
2131
2106
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2132
2107
  params = default_params.merge(params)
2133
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2108
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
2134
2109
  end
2135
2110
  end
2136
2111
 
2137
- class FXShutterItem
2112
+ class FXTGAIcon
2138
2113
  alias old_initialize initialize
2139
- def initialize(p, *args, &blk)
2140
- argument_names = %w{text icon opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2141
- default_params = { :text => "", :icon => nil, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
2114
+ def initialize(a, *args, &blk)
2115
+ argument_names = %w{pix clr opts width height}
2116
+ default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
2142
2117
  params = {}
2143
2118
  params = args.pop if args.last.is_a? Hash
2144
2119
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2145
- if params.key? :padding
2146
- value = params.delete(:padding)
2147
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2148
- end
2149
2120
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2150
2121
  params = default_params.merge(params)
2151
- old_initialize(p, params[:text], params[:icon], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2122
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
2152
2123
  end
2153
2124
  end
2154
2125
 
2155
- class FXShutter
2126
+ class FXVerticalFrame
2156
2127
  alias old_initialize initialize
2157
2128
  def initialize(p, *args, &blk)
2158
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2159
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
2129
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2130
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
2160
2131
  params = {}
2161
2132
  params = args.pop if args.last.is_a? Hash
2162
2133
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2166,65 +2137,57 @@ module Fox
2166
2137
  end
2167
2138
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2168
2139
  params = default_params.merge(params)
2169
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2140
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2170
2141
  end
2171
2142
  end
2172
2143
 
2173
- class FXSlider
2144
+ class FXMenuSeparator
2174
2145
  alias old_initialize initialize
2175
- def initialize(p, *args, &blk)
2176
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2177
- default_params = { :target => nil, :selector => 0, :opts => SLIDER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
2146
+ def initialize(parent, *args, &blk)
2147
+ argument_names = %w{opts}
2148
+ default_params = { :opts => 0 }
2178
2149
  params = {}
2179
2150
  params = args.pop if args.last.is_a? Hash
2180
2151
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2181
- if params.key? :padding
2182
- value = params.delete(:padding)
2183
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2184
- end
2185
2152
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2186
2153
  params = default_params.merge(params)
2187
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2154
+ old_initialize(parent, params[:opts], &blk)
2188
2155
  end
2189
2156
  end
2190
2157
 
2191
- class FXSpinner
2158
+ class FXGIFCursor
2192
2159
  alias old_initialize initialize
2193
- def initialize(p, cols, *args, &blk)
2194
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2195
- default_params = { :target => nil, :selector => 0, :opts => SPIN_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2160
+ def initialize(a, pix, *args, &blk)
2161
+ argument_names = %w{hx hy}
2162
+ default_params = { :hx => -1, :hy => -1 }
2196
2163
  params = {}
2197
2164
  params = args.pop if args.last.is_a? Hash
2198
2165
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2199
- if params.key? :padding
2200
- value = params.delete(:padding)
2201
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2202
- end
2203
2166
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2204
2167
  params = default_params.merge(params)
2205
- old_initialize(p, cols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2168
+ old_initialize(a, pix, params[:hx], params[:hy], &blk)
2206
2169
  end
2207
2170
  end
2208
2171
 
2209
- class FXSplashWindow
2172
+ class FXToolBarGrip
2210
2173
  alias old_initialize initialize
2211
- def initialize(owner, icon, *args, &blk)
2212
- argument_names = %w{opts ms}
2213
- default_params = { :opts => SPLASH_SIMPLE, :ms => 5000 }
2174
+ def initialize(p, *args, &blk)
2175
+ argument_names = %w{target selector opts x y width height}
2176
+ default_params = { :target => nil, :selector => 0, :opts => TOOLBARGRIP_SINGLE, :x => 0, :y => 0, :width => 0, :height => 0 }
2214
2177
  params = {}
2215
2178
  params = args.pop if args.last.is_a? Hash
2216
2179
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2217
2180
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2218
2181
  params = default_params.merge(params)
2219
- old_initialize(owner, icon, params[:opts], params[:ms], &blk)
2182
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2220
2183
  end
2221
2184
  end
2222
2185
 
2223
- class FXSpring
2186
+ class FXColorWheel
2224
2187
  alias old_initialize initialize
2225
2188
  def initialize(p, *args, &blk)
2226
- argument_names = %w{opts relw relh x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2227
- default_params = { :opts => 0, :relw => 0, :relh => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
2189
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2190
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2228
2191
  params = {}
2229
2192
  params = args.pop if args.last.is_a? Hash
2230
2193
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2234,15 +2197,15 @@ module Fox
2234
2197
  end
2235
2198
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2236
2199
  params = default_params.merge(params)
2237
- old_initialize(p, params[:opts], params[:relw], params[:relh], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2200
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2238
2201
  end
2239
2202
  end
2240
2203
 
2241
- class FXStatusBar
2204
+ class FXArrowButton
2242
2205
  alias old_initialize initialize
2243
- def initialize(p, *args, &blk)
2244
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2245
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2, :hSpacing => 4, :vSpacing => 0 }
2206
+ def initialize(parent, *args, &blk)
2207
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2208
+ default_params = { :target => nil, :selector => 0, :opts => ARROW_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2246
2209
  params = {}
2247
2210
  params = args.pop if args.last.is_a? Hash
2248
2211
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2252,61 +2215,61 @@ module Fox
2252
2215
  end
2253
2216
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2254
2217
  params = default_params.merge(params)
2255
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2218
+ old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2256
2219
  end
2257
2220
  end
2258
2221
 
2259
- class FXStatusLine
2222
+ class FXBMPIcon
2260
2223
  alias old_initialize initialize
2261
- def initialize(p, *args, &blk)
2262
- argument_names = %w{target selector}
2263
- default_params = { :target => nil, :selector => 0 }
2224
+ def initialize(a, *args, &blk)
2225
+ argument_names = %w{pix clr opts width height}
2226
+ default_params = { :pix => nil, :clr => FXRGB(192,192,192), :opts => 0, :width => 1, :height => 1 }
2264
2227
  params = {}
2265
2228
  params = args.pop if args.last.is_a? Hash
2266
2229
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2267
2230
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2268
2231
  params = default_params.merge(params)
2269
- old_initialize(p, params[:target], params[:selector], &blk)
2232
+ old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
2270
2233
  end
2271
2234
  end
2272
2235
 
2273
- class FXStream
2236
+ class FXComboBox
2274
2237
  alias old_initialize initialize
2275
- def initialize(*args, &blk)
2276
- argument_names = %w{cont}
2277
- default_params = { :cont => nil }
2238
+ def initialize(p, cols, *args, &blk)
2239
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2240
+ default_params = { :target => nil, :selector => 0, :opts => COMBOBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2278
2241
  params = {}
2279
2242
  params = args.pop if args.last.is_a? Hash
2280
2243
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2244
+ if params.key? :padding
2245
+ value = params.delete(:padding)
2246
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2247
+ end
2281
2248
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2282
2249
  params = default_params.merge(params)
2283
- old_initialize(params[:cont], &blk)
2250
+ old_initialize(p, cols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2284
2251
  end
2285
2252
  end
2286
2253
 
2287
- class FXSwitcher
2254
+ class FXToolBarShell
2288
2255
  alias old_initialize initialize
2289
- def initialize(p, *args, &blk)
2290
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
2291
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
2256
+ def initialize(owner, *args, &blk)
2257
+ argument_names = %w{opts x y width height hSpacing vSpacing}
2258
+ default_params = { :opts => FRAME_RAISED|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0, :hSpacing => 4, :vSpacing => 4 }
2292
2259
  params = {}
2293
2260
  params = args.pop if args.last.is_a? Hash
2294
2261
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2295
- if params.key? :padding
2296
- value = params.delete(:padding)
2297
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2298
- end
2299
2262
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2300
2263
  params = default_params.merge(params)
2301
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2264
+ old_initialize(owner, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:hSpacing], params[:vSpacing], &blk)
2302
2265
  end
2303
2266
  end
2304
2267
 
2305
- class FXTabBar
2268
+ class FXColorBar
2306
2269
  alias old_initialize initialize
2307
- def initialize(p, *args, &blk)
2270
+ def initialize(parent, *args, &blk)
2308
2271
  argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2309
- default_params = { :target => nil, :selector => 0, :opts => TABBOOK_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
2272
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2310
2273
  params = {}
2311
2274
  params = args.pop if args.last.is_a? Hash
2312
2275
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2316,15 +2279,15 @@ module Fox
2316
2279
  end
2317
2280
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2318
2281
  params = default_params.merge(params)
2319
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2282
+ old_initialize(parent, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2320
2283
  end
2321
2284
  end
2322
2285
 
2323
- class FXTabBook
2286
+ class FXPicker
2324
2287
  alias old_initialize initialize
2325
- def initialize(p, *args, &blk)
2326
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2327
- default_params = { :target => nil, :selector => 0, :opts => TABBOOK_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING }
2288
+ def initialize(p, text, *args, &blk)
2289
+ argument_names = %w{ic target selector opts x y width height padLeft padRight padTop padBottom}
2290
+ default_params = { :ic => nil, :target => nil, :selector => 0, :opts => BUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2328
2291
  params = {}
2329
2292
  params = args.pop if args.last.is_a? Hash
2330
2293
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2334,15 +2297,15 @@ module Fox
2334
2297
  end
2335
2298
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2336
2299
  params = default_params.merge(params)
2337
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2300
+ old_initialize(p, text, params[:ic], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2338
2301
  end
2339
2302
  end
2340
2303
 
2341
- class FXTabItem
2304
+ class FXBitmapFrame
2342
2305
  alias old_initialize initialize
2343
- def initialize(p, text, *args, &blk)
2344
- argument_names = %w{ic opts x y width height padLeft padRight padTop padBottom}
2345
- default_params = { :ic => nil, :opts => TAB_TOP_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2306
+ def initialize(p, bmp, *args, &blk)
2307
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom}
2308
+ default_params = { :opts => FRAME_SUNKEN|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 0, :padRight => 0, :padTop => 0, :padBottom => 0 }
2346
2309
  params = {}
2347
2310
  params = args.pop if args.last.is_a? Hash
2348
2311
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2352,76 +2315,75 @@ module Fox
2352
2315
  end
2353
2316
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2354
2317
  params = default_params.merge(params)
2355
- old_initialize(p, text, params[:ic], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2318
+ old_initialize(p, bmp, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2356
2319
  end
2357
2320
  end
2358
2321
 
2359
- class FXTableItem
2322
+ class FXWizard
2360
2323
  alias old_initialize initialize
2361
- def initialize(text, *args, &blk)
2362
- argument_names = %w{icon data}
2363
- default_params = { :icon => nil, :data => nil }
2324
+ def initialize(owner, name, image, *args, &blk)
2325
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2326
+ default_params = { :opts => DECOR_TITLE|DECOR_BORDER|DECOR_RESIZE, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 10, :padRight => 10, :padTop => 10, :padBottom => 10, :hSpacing => 10, :vSpacing => 10 }
2364
2327
  params = {}
2365
2328
  params = args.pop if args.last.is_a? Hash
2366
2329
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2330
+ if params.key? :padding
2331
+ value = params.delete(:padding)
2332
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2333
+ end
2367
2334
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2368
2335
  params = default_params.merge(params)
2369
- old_initialize(text, params[:icon], params[:data], &blk)
2336
+ old_initialize(owner, name, image, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2370
2337
  end
2371
2338
  end
2372
2339
 
2373
- class FXTable
2340
+ class FXMemoryStream
2374
2341
  alias old_initialize initialize
2375
- def initialize(p, *args, &blk)
2376
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2377
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_MARGIN, :padRight => DEFAULT_MARGIN, :padTop => DEFAULT_MARGIN, :padBottom => DEFAULT_MARGIN }
2342
+ def initialize(*args, &blk)
2343
+ argument_names = %w{cont}
2344
+ default_params = { :cont => nil }
2378
2345
  params = {}
2379
2346
  params = args.pop if args.last.is_a? Hash
2380
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2381
- if params.key? :padding
2382
- value = params.delete(:padding)
2383
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2384
- end
2347
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2385
2348
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2386
2349
  params = default_params.merge(params)
2387
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2350
+ old_initialize(params[:cont], &blk)
2388
2351
  end
2389
2352
  end
2390
2353
 
2391
- class FXText
2354
+ class FXInputDialog
2392
2355
  alias old_initialize initialize
2393
- def initialize(p, *args, &blk)
2394
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2395
- default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2 }
2356
+ def initialize(owner, caption, label, *args, &blk)
2357
+ argument_names = %w{icon opts x y width height}
2358
+ default_params = { :icon => nil, :opts => INPUTDIALOG_STRING, :x => 0, :y => 0, :width => 0, :height => 0 }
2396
2359
  params = {}
2397
2360
  params = args.pop if args.last.is_a? Hash
2398
2361
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2399
- if params.key? :padding
2400
- value = params.delete(:padding)
2401
- [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2402
- end
2403
2362
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2404
2363
  params = default_params.merge(params)
2405
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2364
+ old_initialize(owner, caption, label, params[:icon], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2406
2365
  end
2407
- alias old_findText findText
2408
- def findText(string, *args)
2409
- argument_names = %w{start flags}
2410
- default_params = { :start => 0, :flags => SEARCH_FORWARD|SEARCH_WRAP|SEARCH_EXACT }
2366
+ end
2367
+
2368
+ class FXGLContext
2369
+ alias old_initialize initialize
2370
+ def initialize(app, visual, *args, &blk)
2371
+ argument_names = %w{other}
2372
+ default_params = { :other => nil }
2411
2373
  params = {}
2412
2374
  params = args.pop if args.last.is_a? Hash
2413
2375
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2414
2376
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2415
2377
  params = default_params.merge(params)
2416
- old_findText(string, params[:start], params[:flags])
2378
+ old_initialize(app, visual, params[:other], &blk)
2417
2379
  end
2418
2380
  end
2419
2381
 
2420
- class FXTextField
2382
+ class FXLabel
2421
2383
  alias old_initialize initialize
2422
- def initialize(p, ncols, *args, &blk)
2423
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2424
- default_params = { :target => nil, :selector => 0, :opts => TEXTFIELD_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2384
+ def initialize(parent, text, *args, &blk)
2385
+ argument_names = %w{icon opts x y width height padLeft padRight padTop padBottom}
2386
+ default_params = { :icon => nil, :opts => LABEL_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2425
2387
  params = {}
2426
2388
  params = args.pop if args.last.is_a? Hash
2427
2389
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2431,71 +2393,75 @@ module Fox
2431
2393
  end
2432
2394
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2433
2395
  params = default_params.merge(params)
2434
- old_initialize(p, ncols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2396
+ old_initialize(parent, text, params[:icon], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2435
2397
  end
2436
2398
  end
2437
2399
 
2438
- class FXTGAIcon
2400
+ class FXXBMIcon
2439
2401
  alias old_initialize initialize
2440
2402
  def initialize(a, *args, &blk)
2441
- argument_names = %w{pix clr opts width height}
2442
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
2403
+ argument_names = %w{pixels mask clr opts width height}
2404
+ default_params = { :pixels => nil, :mask => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
2443
2405
  params = {}
2444
2406
  params = args.pop if args.last.is_a? Hash
2445
2407
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2446
2408
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2447
2409
  params = default_params.merge(params)
2448
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
2410
+ old_initialize(a, params[:pixels], params[:mask], params[:clr], params[:opts], params[:width], params[:height], &blk)
2449
2411
  end
2450
2412
  end
2451
2413
 
2452
- class FXTGAImage
2414
+ class FXImage
2453
2415
  alias old_initialize initialize
2454
2416
  def initialize(a, *args, &blk)
2455
- argument_names = %w{pix opts width height}
2456
- default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
2417
+ argument_names = %w{pixels opts width height}
2418
+ default_params = { :pixels => nil, :opts => 0, :width => 1, :height => 1 }
2457
2419
  params = {}
2458
2420
  params = args.pop if args.last.is_a? Hash
2459
2421
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2460
2422
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2461
2423
  params = default_params.merge(params)
2462
- old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
2424
+ old_initialize(a, params[:pixels], params[:opts], params[:width], params[:height], &blk)
2463
2425
  end
2464
2426
  end
2465
2427
 
2466
- class FXTIFIcon
2428
+ class FXListBox
2467
2429
  alias old_initialize initialize
2468
- def initialize(a, *args, &blk)
2469
- argument_names = %w{pix clr opts width height}
2470
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
2430
+ def initialize(p, *args, &blk)
2431
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2432
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2471
2433
  params = {}
2472
2434
  params = args.pop if args.last.is_a? Hash
2473
2435
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2436
+ if params.key? :padding
2437
+ value = params.delete(:padding)
2438
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2439
+ end
2474
2440
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2475
2441
  params = default_params.merge(params)
2476
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
2442
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2477
2443
  end
2478
2444
  end
2479
2445
 
2480
- class FXTIFImage
2446
+ class FXColorDialog
2481
2447
  alias old_initialize initialize
2482
- def initialize(a, *args, &blk)
2483
- argument_names = %w{pix opts width height}
2484
- default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
2448
+ def initialize(owner, title, *args, &blk)
2449
+ argument_names = %w{opts x y width height}
2450
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2485
2451
  params = {}
2486
2452
  params = args.pop if args.last.is_a? Hash
2487
2453
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2488
2454
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2489
2455
  params = default_params.merge(params)
2490
- old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
2456
+ old_initialize(owner, title, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2491
2457
  end
2492
2458
  end
2493
2459
 
2494
- class FXToggleButton
2460
+ class FXRadioButton
2495
2461
  alias old_initialize initialize
2496
- def initialize(p, text1, text2, *args, &blk)
2497
- argument_names = %w{icon1 icon2 target selector opts x y width height padLeft padRight padTop padBottom}
2498
- default_params = { :icon1 => nil, :icon2 => nil, :target => nil, :selector => 0, :opts => TOGGLEBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2462
+ def initialize(parent, text, *args, &blk)
2463
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2464
+ default_params = { :target => nil, :selector => 0, :opts => RADIOBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2499
2465
  params = {}
2500
2466
  params = args.pop if args.last.is_a? Hash
2501
2467
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2505,63 +2471,57 @@ module Fox
2505
2471
  end
2506
2472
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2507
2473
  params = default_params.merge(params)
2508
- old_initialize(p, text1, text2, params[:icon1], params[:icon2], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2509
- end
2510
- end
2511
-
2512
- class FXToolBarGrip
2513
- alias old_initialize initialize
2514
- def initialize(p, *args, &blk)
2515
- argument_names = %w{target selector opts x y width height}
2516
- default_params = { :target => nil, :selector => 0, :opts => TOOLBARGRIP_SINGLE, :x => 0, :y => 0, :width => 0, :height => 0 }
2517
- params = {}
2518
- params = args.pop if args.last.is_a? Hash
2519
- args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2520
- params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2521
- params = default_params.merge(params)
2522
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2474
+ old_initialize(parent, text, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2523
2475
  end
2524
2476
  end
2525
2477
 
2526
- class FXToolBarShell
2478
+ class FXTriStateButton
2527
2479
  alias old_initialize initialize
2528
- def initialize(owner, *args, &blk)
2529
- argument_names = %w{opts x y width height hSpacing vSpacing}
2530
- default_params = { :opts => FRAME_RAISED|FRAME_THICK, :x => 0, :y => 0, :width => 0, :height => 0, :hSpacing => 4, :vSpacing => 4 }
2480
+ def initialize(p, text1, text2, text3, *args, &blk)
2481
+ argument_names = %w{icon1 icon2 icon3 target selector opts x y width height padLeft padRight padTop padBottom}
2482
+ default_params = { :icon1 => nil, :icon2 => nil, :icon3 => nil, :target => nil, :selector => 0, :opts => TOGGLEBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2531
2483
  params = {}
2532
2484
  params = args.pop if args.last.is_a? Hash
2533
2485
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2486
+ if params.key? :padding
2487
+ value = params.delete(:padding)
2488
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2489
+ end
2534
2490
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2535
2491
  params = default_params.merge(params)
2536
- old_initialize(owner, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:hSpacing], params[:vSpacing], &blk)
2492
+ old_initialize(p, text1, text2, text3, params[:icon1], params[:icon2], params[:icon3], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2537
2493
  end
2538
2494
  end
2539
2495
 
2540
- class FXToolBarTab
2496
+ class FXHorizontalFrame
2541
2497
  alias old_initialize initialize
2542
2498
  def initialize(p, *args, &blk)
2543
- argument_names = %w{target selector opts x y width height}
2544
- default_params = { :target => nil, :selector => 0, :opts => FRAME_RAISED, :x => 0, :y => 0, :width => 0, :height => 0 }
2499
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2500
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
2545
2501
  params = {}
2546
2502
  params = args.pop if args.last.is_a? Hash
2547
2503
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2504
+ if params.key? :padding
2505
+ value = params.delete(:padding)
2506
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2507
+ end
2548
2508
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2549
2509
  params = default_params.merge(params)
2550
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2510
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2551
2511
  end
2552
2512
  end
2553
2513
 
2554
- class FXToolTip
2514
+ class FXJPGImage
2555
2515
  alias old_initialize initialize
2556
- def initialize(app, *args, &blk)
2557
- argument_names = %w{opts x y width height}
2558
- default_params = { :opts => TOOLTIP_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 }
2516
+ def initialize(a, *args, &blk)
2517
+ argument_names = %w{pix opts width height}
2518
+ default_params = { :pix => nil, :opts => 0, :width => 1, :height => 1 }
2559
2519
  params = {}
2560
2520
  params = args.pop if args.last.is_a? Hash
2561
2521
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2562
2522
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2563
2523
  params = default_params.merge(params)
2564
- old_initialize(app, params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2524
+ old_initialize(a, params[:pix], params[:opts], params[:width], params[:height], &blk)
2565
2525
  end
2566
2526
  end
2567
2527
 
@@ -2593,11 +2553,11 @@ module Fox
2593
2553
  end
2594
2554
  end
2595
2555
 
2596
- class FXTreeListBox
2556
+ class FXSpring
2597
2557
  alias old_initialize initialize
2598
2558
  def initialize(p, *args, &blk)
2599
- argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2600
- default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2559
+ argument_names = %w{opts relw relh x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2560
+ default_params = { :opts => 0, :relw => 0, :relh => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
2601
2561
  params = {}
2602
2562
  params = args.pop if args.last.is_a? Hash
2603
2563
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2607,15 +2567,15 @@ module Fox
2607
2567
  end
2608
2568
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2609
2569
  params = default_params.merge(params)
2610
- old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2570
+ old_initialize(p, params[:opts], params[:relw], params[:relh], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2611
2571
  end
2612
2572
  end
2613
2573
 
2614
- class FXTriStateButton
2574
+ class FXRuler
2615
2575
  alias old_initialize initialize
2616
- def initialize(p, text1, text2, text3, *args, &blk)
2617
- argument_names = %w{icon1 icon2 icon3 target selector opts x y width height padLeft padRight padTop padBottom}
2618
- default_params = { :icon1 => nil, :icon2 => nil, :icon3 => nil, :target => nil, :selector => 0, :opts => TOGGLEBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2576
+ def initialize(p, *args, &blk)
2577
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2578
+ default_params = { :target => nil, :selector => 0, :opts => RULER_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2619
2579
  params = {}
2620
2580
  params = args.pop if args.last.is_a? Hash
2621
2581
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2625,15 +2585,29 @@ module Fox
2625
2585
  end
2626
2586
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2627
2587
  params = default_params.merge(params)
2628
- old_initialize(p, text1, text2, text3, params[:icon1], params[:icon2], params[:icon3], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2588
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2629
2589
  end
2630
2590
  end
2631
2591
 
2632
- class FXVerticalFrame
2592
+ class FXMenuPane
2593
+ alias old_initialize initialize
2594
+ def initialize(owner, *args, &blk)
2595
+ argument_names = %w{opts}
2596
+ default_params = { :opts => 0 }
2597
+ params = {}
2598
+ params = args.pop if args.last.is_a? Hash
2599
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2600
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2601
+ params = default_params.merge(params)
2602
+ old_initialize(owner, params[:opts], &blk)
2603
+ end
2604
+ end
2605
+
2606
+ class FXDriveBox
2633
2607
  alias old_initialize initialize
2634
2608
  def initialize(p, *args, &blk)
2635
- argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2636
- default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_SPACING, :padRight => DEFAULT_SPACING, :padTop => DEFAULT_SPACING, :padBottom => DEFAULT_SPACING, :hSpacing => DEFAULT_SPACING, :vSpacing => DEFAULT_SPACING }
2609
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2610
+ default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2637
2611
  params = {}
2638
2612
  params = args.pop if args.last.is_a? Hash
2639
2613
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2643,29 +2617,33 @@ module Fox
2643
2617
  end
2644
2618
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2645
2619
  params = default_params.merge(params)
2646
- old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2620
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2647
2621
  end
2648
2622
  end
2649
2623
 
2650
- class FXVisual
2624
+ class FXSpinner
2651
2625
  alias old_initialize initialize
2652
- def initialize(a, flgs, *args, &blk)
2653
- argument_names = %w{d}
2654
- default_params = { :d => 32 }
2626
+ def initialize(p, cols, *args, &blk)
2627
+ argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom}
2628
+ default_params = { :target => nil, :selector => 0, :opts => SPIN_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2655
2629
  params = {}
2656
2630
  params = args.pop if args.last.is_a? Hash
2657
2631
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2632
+ if params.key? :padding
2633
+ value = params.delete(:padding)
2634
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2635
+ end
2658
2636
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2659
2637
  params = default_params.merge(params)
2660
- old_initialize(a, flgs, params[:d], &blk)
2638
+ old_initialize(p, cols, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2661
2639
  end
2662
2640
  end
2663
2641
 
2664
- class FXWizard
2642
+ class FXDialogBox
2665
2643
  alias old_initialize initialize
2666
- def initialize(owner, name, image, *args, &blk)
2644
+ def initialize(owner, title, *args, &blk)
2667
2645
  argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2668
- default_params = { :opts => DECOR_TITLE|DECOR_BORDER|DECOR_RESIZE, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 10, :padRight => 10, :padTop => 10, :padBottom => 10, :hSpacing => 10, :vSpacing => 10 }
2646
+ default_params = { :opts => DECOR_TITLE|DECOR_BORDER, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 10, :padRight => 10, :padTop => 10, :padBottom => 10, :hSpacing => 4, :vSpacing => 4 }
2669
2647
  params = {}
2670
2648
  params = args.pop if args.last.is_a? Hash
2671
2649
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
@@ -2675,53 +2653,57 @@ module Fox
2675
2653
  end
2676
2654
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2677
2655
  params = default_params.merge(params)
2678
- old_initialize(owner, name, image, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2656
+ old_initialize(owner, title, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2679
2657
  end
2680
2658
  end
2681
2659
 
2682
- class FXXBMIcon
2660
+ class FXDirItem
2683
2661
  alias old_initialize initialize
2684
- def initialize(a, *args, &blk)
2685
- argument_names = %w{pixels mask clr opts width height}
2686
- default_params = { :pixels => nil, :mask => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
2662
+ def initialize(text, *args, &blk)
2663
+ argument_names = %w{oi ci data}
2664
+ default_params = { :oi => nil, :ci => nil, :data => nil }
2687
2665
  params = {}
2688
2666
  params = args.pop if args.last.is_a? Hash
2689
2667
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2690
2668
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2691
2669
  params = default_params.merge(params)
2692
- old_initialize(a, params[:pixels], params[:mask], params[:clr], params[:opts], params[:width], params[:height], &blk)
2670
+ old_initialize(text, params[:oi], params[:ci], params[:data], &blk)
2693
2671
  end
2694
2672
  end
2695
2673
 
2696
- class FXXBMImage
2674
+ class FXDirList
2697
2675
  alias old_initialize initialize
2698
- def initialize(a, *args, &blk)
2699
- argument_names = %w{pixels mask opts width height}
2700
- default_params = { :pixels => nil, :mask => nil, :opts => 0, :width => 1, :height => 1 }
2676
+ def initialize(p, *args, &blk)
2677
+ argument_names = %w{target selector opts x y width height}
2678
+ default_params = { :target => nil, :selector => 0, :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0 }
2701
2679
  params = {}
2702
2680
  params = args.pop if args.last.is_a? Hash
2703
2681
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2704
2682
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2705
2683
  params = default_params.merge(params)
2706
- old_initialize(a, params[:pixels], params[:mask], params[:opts], params[:width], params[:height], &blk)
2684
+ old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], &blk)
2707
2685
  end
2708
2686
  end
2709
2687
 
2710
- class FXXPMIcon
2688
+ class FXButton
2711
2689
  alias old_initialize initialize
2712
- def initialize(a, *args, &blk)
2713
- argument_names = %w{pix clr opts width height}
2714
- default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1 }
2690
+ def initialize(parent, text, *args, &blk)
2691
+ argument_names = %w{icon target selector opts x y width height padLeft padRight padTop padBottom}
2692
+ default_params = { :icon => nil, :target => nil, :selector => 0, :opts => BUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
2715
2693
  params = {}
2716
2694
  params = args.pop if args.last.is_a? Hash
2717
2695
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2696
+ if params.key? :padding
2697
+ value = params.delete(:padding)
2698
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2699
+ end
2718
2700
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2719
2701
  params = default_params.merge(params)
2720
- old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], &blk)
2702
+ old_initialize(parent, text, params[:icon], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
2721
2703
  end
2722
2704
  end
2723
2705
 
2724
- class FXXPMImage
2706
+ class FXBMPImage
2725
2707
  alias old_initialize initialize
2726
2708
  def initialize(a, *args, &blk)
2727
2709
  argument_names = %w{pix opts width height}
@@ -2735,6 +2717,24 @@ module Fox
2735
2717
  end
2736
2718
  end
2737
2719
 
2720
+ class FXStatusBar
2721
+ alias old_initialize initialize
2722
+ def initialize(p, *args, &blk)
2723
+ argument_names = %w{opts x y width height padLeft padRight padTop padBottom hSpacing vSpacing}
2724
+ default_params = { :opts => 0, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => 3, :padRight => 3, :padTop => 2, :padBottom => 2, :hSpacing => 4, :vSpacing => 0 }
2725
+ params = {}
2726
+ params = args.pop if args.last.is_a? Hash
2727
+ args.each_with_index { |e, i| params[argument_names[i].intern] = e }
2728
+ if params.key? :padding
2729
+ value = params.delete(:padding)
2730
+ [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
2731
+ end
2732
+ params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
2733
+ params = default_params.merge(params)
2734
+ old_initialize(p, params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], params[:hSpacing], params[:vSpacing], &blk)
2735
+ end
2736
+ end
2737
+
2738
2738
  end
2739
2739
 
2740
2740
  $VERBOSE = true