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