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