fxruby 1.6.22.pre2 → 1.6.22.pre3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +1 -1
- data/README.txt +10 -10
- data/Rakefile +3 -2
- data/doap.rdf +2 -2
- data/examples/babelfish.rb +2 -2
- data/examples/bounce.rb +20 -20
- data/examples/charts.rb +2 -2
- data/examples/custom_table_item.rb +3 -3
- data/examples/datatarget.rb +2 -2
- data/examples/dctest.rb +51 -51
- data/examples/dialog.rb +14 -14
- data/examples/dilbert.rb +4 -4
- data/examples/dirlist.rb +6 -6
- data/examples/dragdrop.rb +7 -7
- data/examples/dragsource.rb +6 -6
- data/examples/dropsite.rb +5 -5
- data/examples/foursplit.rb +6 -6
- data/examples/gltest.rb +40 -40
- data/examples/glviewer.rb +16 -16
- data/examples/groupbox.rb +41 -41
- data/examples/header.rb +6 -6
- data/examples/hello2.rb +2 -2
- data/examples/iconlist.rb +10 -10
- data/examples/image.rb +26 -26
- data/examples/imageviewer.rb +31 -31
- data/examples/inputs.rb +2 -2
- data/examples/mditest.rb +12 -12
- data/examples/pig.rb +8 -8
- data/examples/raabrowser.rb +5 -5
- data/examples/ratio.rb +9 -9
- data/examples/rulerview.rb +2 -2
- data/examples/scintilla-test.rb +6 -6
- data/examples/scribble-orig.rb +3 -3
- data/examples/scribble.rb +3 -3
- data/examples/shutter.rb +6 -6
- data/examples/splitter.rb +15 -15
- data/examples/styledtext.rb +10 -10
- data/examples/tabbook.rb +14 -14
- data/examples/table.rb +21 -21
- data/examples/textedit/helpwindow.rb +6 -6
- data/examples/textedit/textedit.rb +72 -72
- data/ext/fox16/FXRuby.cpp +48 -5
- data/ext/fox16/core_wrap.cpp +1 -1
- data/ext/fox16/iconlist_wrap.cpp +1 -1
- data/ext/fox16/icons_wrap.cpp +1 -1
- data/ext/fox16/include/FXMemoryBuffer.h +3 -3
- data/ext/fox16/include/FXRbApp.h +1 -1
- data/ext/fox16/include/FXRbBitmap.h +1 -1
- data/ext/fox16/include/FXRbBitmapFrame.h +2 -2
- data/ext/fox16/include/FXRbBitmapVirtuals.h +2 -2
- data/ext/fox16/include/FXRbDCPrint.h +1 -1
- data/ext/fox16/include/FXRbDCVirtuals.h +24 -24
- data/ext/fox16/include/FXRbDCWindow.h +1 -1
- data/ext/fox16/include/FXRbDockBar.h +1 -1
- data/ext/fox16/include/FXRbFileDict.h +2 -2
- data/ext/fox16/include/FXRbFoldingList.h +1 -1
- data/ext/fox16/include/FXRbFontVirtuals.h +9 -9
- data/ext/fox16/include/FXRbGLViewerVirtuals.h +2 -2
- data/ext/fox16/include/FXRbIconItemVirtuals.h +8 -8
- data/ext/fox16/include/FXRbIconListVirtuals.h +7 -7
- data/ext/fox16/include/FXRbIconSourceVirtuals.h +1 -1
- data/ext/fox16/include/FXRbImageFrame.h +2 -2
- data/ext/fox16/include/FXRbImageVirtuals.h +1 -1
- data/ext/fox16/include/FXRbListVirtuals.h +4 -4
- data/ext/fox16/include/FXRbMenuBar.h +1 -1
- data/ext/fox16/include/FXRbPopupVirtuals.h +1 -1
- data/ext/fox16/include/FXRbRecentFiles.h +1 -1
- data/ext/fox16/include/FXRbRuler.h +3 -3
- data/ext/fox16/include/FXRbRulerView.h +3 -3
- data/ext/fox16/include/FXRbScintilla.h +1 -1
- data/ext/fox16/include/FXRbSeparator.h +2 -2
- data/ext/fox16/include/FXRbTableItemVirtuals.h +8 -8
- data/ext/fox16/include/FXRbTableVirtuals.h +13 -13
- data/ext/fox16/include/FXRbText.h +2 -2
- data/ext/fox16/include/FXRbTextVirtuals.h +3 -3
- data/ext/fox16/include/FXRbToolBar.h +1 -1
- data/ext/fox16/include/FXRbToolBarGrip.h +1 -1
- data/ext/fox16/include/FXRbToolBarTab.h +1 -1
- data/ext/fox16/include/FXRbTreeList.h +1 -1
- data/ext/fox16/include/FXRbTreeListVirtuals.h +4 -4
- data/ext/fox16/include/FXRbWindow.h +3 -3
- data/ext/fox16/include/FXRbWizard.h +2 -2
- data/ext/fox16/include/FXRuby.h +8 -4
- data/ext/fox16/librb.c +12 -12
- data/ext/fox16/list_wrap.cpp +1 -1
- data/ext/fox16/make_impl.rb +5 -5
- data/ext/fox16/markfuncs.cpp +228 -220
- data/ext/fox16/scintilla_wrap.cpp +1 -1
- data/ext/fox16/treelist_wrap.cpp +4 -4
- data/ext/fox16/ui_wrap.cpp +2 -2
- data/ext/fox16/unregisterOwnedObjects.cpp +3 -3
- data/lib/fox16/accel_table.rb +1 -1
- data/lib/fox16/aliases.rb +3 -3
- data/lib/fox16/calendar.rb +21 -21
- data/lib/fox16/chore.rb +2 -2
- data/lib/fox16/core.rb +70 -70
- data/lib/fox16/dict.rb +1 -1
- data/lib/fox16/execute_nonmodal.rb +1 -1
- data/lib/fox16/glgroup.rb +16 -16
- data/lib/fox16/glshapes.rb +26 -26
- data/lib/fox16/input.rb +4 -4
- data/lib/fox16/irb.rb +2 -2
- data/lib/fox16/iterators.rb +2 -2
- data/lib/fox16/keys.rb +34 -34
- data/lib/fox16/kwargs.rb +927 -927
- data/lib/fox16/pseudokeyboard.rb +1 -1
- data/lib/fox16/pseudomouse.rb +1 -1
- data/lib/fox16/responder2.rb +4 -4
- data/lib/fox16/scintilla.rb +2 -2
- data/lib/fox16/signal.rb +4 -4
- data/lib/fox16/splashscreen.rb +3 -3
- data/lib/fox16/timeout.rb +3 -3
- data/lib/fox16/undolist.rb +9 -9
- data/lib/fox16/version.rb +1 -1
- data/rdoc-sources/FX4Splitter.rb +9 -9
- data/rdoc-sources/FX7Segment.rb +9 -9
- data/rdoc-sources/FXAccelTable.rb +1 -1
- data/rdoc-sources/FXApp.rb +50 -50
- data/rdoc-sources/FXBMPIcon.rb +3 -3
- data/rdoc-sources/FXBMPImage.rb +2 -2
- data/rdoc-sources/FXBitmap.rb +11 -11
- data/rdoc-sources/FXBitmapFrame.rb +5 -5
- data/rdoc-sources/FXBitmapView.rb +2 -2
- data/rdoc-sources/FXButton.rb +2 -2
- data/rdoc-sources/FXCheckButton.rb +5 -5
- data/rdoc-sources/FXColorBar.rb +5 -5
- data/rdoc-sources/FXColorDialog.rb +2 -2
- data/rdoc-sources/FXColorList.rb +2 -2
- data/rdoc-sources/FXColorRing.rb +8 -8
- data/rdoc-sources/FXColorSelector.rb +4 -4
- data/rdoc-sources/FXColorWell.rb +4 -4
- data/rdoc-sources/FXColorWheel.rb +6 -6
- data/rdoc-sources/FXComboBox.rb +17 -17
- data/rdoc-sources/FXComposite.rb +2 -2
- data/rdoc-sources/FXCursor.rb +7 -7
- data/rdoc-sources/FXDC.rb +67 -67
- data/rdoc-sources/FXDCPrint.rb +22 -22
- data/rdoc-sources/FXDCWindow.rb +1 -1
- data/rdoc-sources/FXDataTarget.rb +2 -2
- data/rdoc-sources/FXDebugTarget.rb +1 -1
- data/rdoc-sources/FXDelegator.rb +1 -1
- data/rdoc-sources/FXDial.rb +8 -8
- data/rdoc-sources/FXDict.rb +7 -7
- data/rdoc-sources/FXDirBox.rb +3 -3
- data/rdoc-sources/FXDirDialog.rb +7 -7
- data/rdoc-sources/FXDirList.rb +21 -21
- data/rdoc-sources/FXDirSelector.rb +8 -8
- data/rdoc-sources/FXDockBar.rb +5 -5
- data/rdoc-sources/FXDockHandler.rb +3 -3
- data/rdoc-sources/FXDockSite.rb +2 -2
- data/rdoc-sources/FXDockTitle.rb +3 -3
- data/rdoc-sources/FXDocument.rb +3 -3
- data/rdoc-sources/FXDragCorner.rb +3 -3
- data/rdoc-sources/FXDrawable.rb +3 -3
- data/rdoc-sources/FXDriveBox.rb +4 -4
- data/rdoc-sources/FXExtentd.rb +2 -2
- data/rdoc-sources/FXExtentf.rb +2 -2
- data/rdoc-sources/FXFileDialog.rb +21 -21
- data/rdoc-sources/FXFileDict.rb +17 -17
- data/rdoc-sources/FXFileList.rb +32 -32
- data/rdoc-sources/FXFileSelector.rb +20 -20
- data/rdoc-sources/FXFileStream.rb +1 -1
- data/rdoc-sources/FXFoldingList.rb +53 -53
- data/rdoc-sources/FXFont.rb +38 -38
- data/rdoc-sources/FXFrame.rb +11 -11
- data/rdoc-sources/FXGIFCursor.rb +3 -3
- data/rdoc-sources/FXGLCanvas.rb +2 -2
- data/rdoc-sources/FXGLContext.rb +6 -6
- data/rdoc-sources/FXGLObject.rb +6 -6
- data/rdoc-sources/FXGLShape.rb +3 -3
- data/rdoc-sources/FXGLViewer.rb +54 -54
- data/rdoc-sources/FXGLVisual.rb +13 -13
- data/rdoc-sources/FXGradientBar.rb +15 -15
- data/rdoc-sources/FXGroupBox.rb +4 -4
- data/rdoc-sources/FXHeader.rb +44 -44
- data/rdoc-sources/FXICOIcon.rb +1 -1
- data/rdoc-sources/FXICOImage.rb +1 -1
- data/rdoc-sources/FXIconDict.rb +1 -1
- data/rdoc-sources/FXIconList.rb +69 -69
- data/rdoc-sources/FXIconSource.rb +2 -2
- data/rdoc-sources/FXId.rb +1 -1
- data/rdoc-sources/FXImage.rb +11 -11
- data/rdoc-sources/FXImageFrame.rb +3 -3
- data/rdoc-sources/FXImageView.rb +2 -2
- data/rdoc-sources/FXInputDialog.rb +6 -6
- data/rdoc-sources/FXJPGIcon.rb +3 -3
- data/rdoc-sources/FXJPGImage.rb +2 -2
- data/rdoc-sources/FXKnob.rb +9 -9
- data/rdoc-sources/FXLabel.rb +8 -8
- data/rdoc-sources/FXList.rb +28 -28
- data/rdoc-sources/FXListBox.rb +21 -21
- data/rdoc-sources/FXMDIChild.rb +11 -11
- data/rdoc-sources/FXMDIClient.rb +5 -5
- data/rdoc-sources/FXMatrix.rb +6 -6
- data/rdoc-sources/FXMemoryBuffer.rb +1 -1
- data/rdoc-sources/FXMemoryStream.rb +3 -3
- data/rdoc-sources/FXMenuBar.rb +1 -1
- data/rdoc-sources/FXMenuButton.rb +7 -7
- data/rdoc-sources/FXMenuCaption.rb +10 -10
- data/rdoc-sources/FXMenuCheck.rb +1 -1
- data/rdoc-sources/FXMenuRadio.rb +1 -1
- data/rdoc-sources/FXMenuSeparator.rb +1 -1
- data/rdoc-sources/FXMessageBox.rb +3 -3
- data/rdoc-sources/FXOptionMenu.rb +9 -9
- data/rdoc-sources/FXPCXIcon.rb +2 -2
- data/rdoc-sources/FXPCXImage.rb +1 -1
- data/rdoc-sources/FXPNGIcon.rb +3 -3
- data/rdoc-sources/FXPNGImage.rb +1 -1
- data/rdoc-sources/FXPPMIcon.rb +2 -2
- data/rdoc-sources/FXPPMImage.rb +1 -1
- data/rdoc-sources/FXPacker.rb +13 -13
- data/rdoc-sources/FXPopup.rb +11 -11
- data/rdoc-sources/FXProgressBar.rb +7 -7
- data/rdoc-sources/FXProgressDialog.rb +3 -3
- data/rdoc-sources/FXQuatd.rb +17 -17
- data/rdoc-sources/FXQuatf.rb +18 -18
- data/rdoc-sources/FXRGBIcon.rb +3 -3
- data/rdoc-sources/FXRGBImage.rb +1 -1
- data/rdoc-sources/FXRadioButton.rb +4 -4
- data/rdoc-sources/FXRanged.rb +1 -1
- data/rdoc-sources/FXRangef.rb +1 -1
- data/rdoc-sources/FXRealSlider.rb +7 -7
- data/rdoc-sources/FXRealSpinner.rb +11 -11
- data/rdoc-sources/FXRecentFiles.rb +8 -8
- data/rdoc-sources/FXRectangle.rb +12 -12
- data/rdoc-sources/FXRegion.rb +15 -15
- data/rdoc-sources/FXRegistry.rb +4 -4
- data/rdoc-sources/FXReplaceDialog.rb +3 -3
- data/rdoc-sources/FXRuler.rb +18 -18
- data/rdoc-sources/FXRulerView.rb +38 -38
- data/rdoc-sources/FXScintilla.rb +16 -16
- data/rdoc-sources/FXScrollArea.rb +9 -9
- data/rdoc-sources/FXScrollBar.rb +8 -8
- data/rdoc-sources/FXScrollPane.rb +1 -1
- data/rdoc-sources/FXScrollWindow.rb +5 -5
- data/rdoc-sources/FXSeparator.rb +1 -1
- data/rdoc-sources/FXSettings.rb +1 -1
- data/rdoc-sources/FXShutter.rb +3 -3
- data/rdoc-sources/FXSize.rb +4 -4
- data/rdoc-sources/FXSlider.rb +7 -7
- data/rdoc-sources/FXSphered.rb +21 -21
- data/rdoc-sources/FXSpheref.rb +20 -20
- data/rdoc-sources/FXSpinner.rb +12 -12
- data/rdoc-sources/FXSplashWindow.rb +1 -1
- data/rdoc-sources/FXSplitter.rb +6 -6
- data/rdoc-sources/FXSpring.rb +2 -2
- data/rdoc-sources/FXStatusBar.rb +4 -4
- data/rdoc-sources/FXStatusLine.rb +5 -5
- data/rdoc-sources/FXStream.rb +8 -8
- data/rdoc-sources/FXStringDict.rb +5 -5
- data/rdoc-sources/FXSwitcher.rb +2 -2
- data/rdoc-sources/FXTGAIcon.rb +3 -3
- data/rdoc-sources/FXTGAImage.rb +1 -1
- data/rdoc-sources/FXTIFIcon.rb +2 -2
- data/rdoc-sources/FXTIFImage.rb +2 -2
- data/rdoc-sources/FXTabBar.rb +2 -2
- data/rdoc-sources/FXTable.rb +131 -131
- data/rdoc-sources/FXText.rb +48 -48
- data/rdoc-sources/FXTextField.rb +9 -9
- data/rdoc-sources/FXToolBar.rb +1 -1
- data/rdoc-sources/FXToolBarGrip.rb +1 -1
- data/rdoc-sources/FXToolBarShell.rb +7 -7
- data/rdoc-sources/FXToolBarTab.rb +3 -3
- data/rdoc-sources/FXToolTip.rb +1 -1
- data/rdoc-sources/FXTopWindow.rb +17 -17
- data/rdoc-sources/FXTranslator.rb +5 -5
- data/rdoc-sources/FXTreeList.rb +50 -50
- data/rdoc-sources/FXTreeListBox.rb +16 -16
- data/rdoc-sources/FXVec2d.rb +5 -5
- data/rdoc-sources/FXVec2f.rb +5 -5
- data/rdoc-sources/FXVec3d.rb +8 -8
- data/rdoc-sources/FXVec3f.rb +8 -8
- data/rdoc-sources/FXVec4d.rb +8 -8
- data/rdoc-sources/FXVec4f.rb +8 -8
- data/rdoc-sources/FXVisual.rb +3 -3
- data/rdoc-sources/FXWindow.rb +99 -99
- data/rdoc-sources/FXWizard.rb +8 -8
- data/rdoc-sources/FXXBMIcon.rb +2 -2
- data/rdoc-sources/FXXBMImage.rb +1 -1
- data/rdoc-sources/FXXPMIcon.rb +2 -2
- data/rdoc-sources/FXXPMImage.rb +1 -1
- data/rdoc-sources/fxdefs.rb +17 -17
- data/scripts/generate_kwargs_lib.rb +22 -22
- data/scripts/iface.rb +1 -1
- data/swig-interfaces/FX4Splitter.i +5 -5
- data/swig-interfaces/FX7Segment.i +5 -5
- data/swig-interfaces/FXApp.i +10 -10
- data/swig-interfaces/FXBMPIcon.i +2 -2
- data/swig-interfaces/FXBitmap.i +3 -3
- data/swig-interfaces/FXBitmapFrame.i +1 -1
- data/swig-interfaces/FXBitmapView.i +1 -1
- data/swig-interfaces/FXCanvas.i +1 -1
- data/swig-interfaces/FXCheckButton.i +2 -2
- data/swig-interfaces/FXChoiceBox.i +2 -2
- data/swig-interfaces/FXColorBar.i +7 -7
- data/swig-interfaces/FXColorList.i +5 -5
- data/swig-interfaces/FXColorWell.i +1 -1
- data/swig-interfaces/FXColorWheel.i +6 -6
- data/swig-interfaces/FXComboBox.i +4 -4
- data/swig-interfaces/FXCursor.i +4 -4
- data/swig-interfaces/FXDC.i +23 -23
- data/swig-interfaces/FXDCPrint.i +5 -5
- data/swig-interfaces/FXDCWindow.i +8 -8
- data/swig-interfaces/FXDataTarget.i +5 -5
- data/swig-interfaces/FXDebugTarget.i +1 -1
- data/swig-interfaces/FXDelegator.i +3 -3
- data/swig-interfaces/FXDial.i +8 -8
- data/swig-interfaces/FXDialogBox.i +3 -3
- data/swig-interfaces/FXDict.i +14 -14
- data/swig-interfaces/FXDirBox.i +1 -1
- data/swig-interfaces/FXDirDialog.i +2 -2
- data/swig-interfaces/FXDirList.i +16 -16
- data/swig-interfaces/FXDirSelector.i +2 -2
- data/swig-interfaces/FXDockBar.i +1 -1
- data/swig-interfaces/FXDockHandler.i +1 -1
- data/swig-interfaces/FXDockSite.i +1 -1
- data/swig-interfaces/FXDockTitle.i +1 -1
- data/swig-interfaces/FXDocument.i +1 -1
- data/swig-interfaces/FXDragCorner.i +3 -3
- data/swig-interfaces/FXDriveBox.i +1 -1
- data/swig-interfaces/FXFileDialog.i +8 -8
- data/swig-interfaces/FXFileDict.i +2 -2
- data/swig-interfaces/FXFileList.i +11 -11
- data/swig-interfaces/FXFileSelector.i +4 -4
- data/swig-interfaces/FXFoldingList.i +7 -7
- data/swig-interfaces/FXFont.i +20 -20
- data/swig-interfaces/FXFrame.i +3 -3
- data/swig-interfaces/FXGLCanvas.i +3 -3
- data/swig-interfaces/FXGLContext.i +7 -7
- data/swig-interfaces/FXGLObject.i +1 -1
- data/swig-interfaces/FXGLShape.i +6 -6
- data/swig-interfaces/FXGLViewer.i +40 -40
- data/swig-interfaces/FXGLVisual.i +2 -2
- data/swig-interfaces/FXGradientBar.i +4 -4
- data/swig-interfaces/FXGroupBox.i +3 -3
- data/swig-interfaces/FXHeader.i +7 -7
- data/swig-interfaces/FXIcon.i +4 -4
- data/swig-interfaces/FXIconDict.i +1 -1
- data/swig-interfaces/FXIconList.i +46 -46
- data/swig-interfaces/FXImage.i +2 -2
- data/swig-interfaces/FXImageView.i +1 -1
- data/swig-interfaces/FXInputDialog.i +3 -3
- data/swig-interfaces/FXJPGIcon.i +3 -3
- data/swig-interfaces/FXJPGImage.i +2 -2
- data/swig-interfaces/FXKnob.i +2 -2
- data/swig-interfaces/FXLabel.i +2 -2
- data/swig-interfaces/FXList.i +35 -35
- data/swig-interfaces/FXListBox.i +5 -5
- data/swig-interfaces/FXMDIButton.i +5 -5
- data/swig-interfaces/FXMDIChild.i +12 -12
- data/swig-interfaces/FXMDIClient.i +2 -2
- data/swig-interfaces/FXMat4d.i +2 -2
- data/swig-interfaces/FXMat4f.i +5 -5
- data/swig-interfaces/FXMatrix.i +12 -12
- data/swig-interfaces/FXMemoryBuffer.i +4 -4
- data/swig-interfaces/FXMenuBar.i +3 -3
- data/swig-interfaces/FXMenuButton.i +7 -7
- data/swig-interfaces/FXMenuCaption.i +4 -4
- data/swig-interfaces/FXMenuCommand.i +1 -1
- data/swig-interfaces/FXMenuPane.i +1 -1
- data/swig-interfaces/FXMenuRadio.i +1 -1
- data/swig-interfaces/FXMenuSeparator.i +1 -1
- data/swig-interfaces/FXMessageBox.i +1 -1
- data/swig-interfaces/FXOptionMenu.i +6 -6
- data/swig-interfaces/FXPNGIcon.i +2 -2
- data/swig-interfaces/FXPPMIcon.i +2 -2
- data/swig-interfaces/FXPacker.i +6 -6
- data/swig-interfaces/FXPopup.i +13 -13
- data/swig-interfaces/FXProgressBar.i +12 -12
- data/swig-interfaces/FXProgressDialog.i +5 -5
- data/swig-interfaces/FXQuatd.i +7 -7
- data/swig-interfaces/FXQuatf.i +1 -1
- data/swig-interfaces/FXRadioButton.i +4 -4
- data/swig-interfaces/FXRanged.i +4 -4
- data/swig-interfaces/FXRangef.i +5 -5
- data/swig-interfaces/FXRealSlider.i +10 -10
- data/swig-interfaces/FXRealSpinner.i +17 -17
- data/swig-interfaces/FXRecentFiles.i +1 -1
- data/swig-interfaces/FXRegion.i +4 -4
- data/swig-interfaces/FXRegistry.i +3 -3
- data/swig-interfaces/FXReplaceDialog.i +1 -1
- data/swig-interfaces/FXScintilla.i +3 -3
- data/swig-interfaces/FXScrollArea.i +7 -7
- data/swig-interfaces/FXScrollBar.i +3 -3
- data/swig-interfaces/FXScrollWindow.i +6 -6
- data/swig-interfaces/FXSearchDialog.i +1 -1
- data/swig-interfaces/FXSeparator.i +3 -3
- data/swig-interfaces/FXSettings.i +3 -3
- data/swig-interfaces/FXShell.i +1 -1
- data/swig-interfaces/FXSlider.i +11 -11
- data/swig-interfaces/FXSphered.i +1 -1
- data/swig-interfaces/FXSpheref.i +1 -1
- data/swig-interfaces/FXSpinner.i +15 -15
- data/swig-interfaces/FXSplitter.i +6 -6
- data/swig-interfaces/FXStatusBar.i +4 -4
- data/swig-interfaces/FXStatusLine.i +5 -5
- data/swig-interfaces/FXStream.i +1 -1
- data/swig-interfaces/FXSwitcher.i +5 -5
- data/swig-interfaces/FXTabBar.i +2 -2
- data/swig-interfaces/FXTabBook.i +1 -1
- data/swig-interfaces/FXTabItem.i +4 -4
- data/swig-interfaces/FXTable.i +37 -37
- data/swig-interfaces/FXText.i +13 -13
- data/swig-interfaces/FXTextField.i +1 -1
- data/swig-interfaces/FXToggleButton.i +6 -6
- data/swig-interfaces/FXToolBar.i +4 -4
- data/swig-interfaces/FXToolBarGrip.i +3 -3
- data/swig-interfaces/FXToolBarShell.i +3 -3
- data/swig-interfaces/FXToolBarTab.i +5 -5
- data/swig-interfaces/FXToolTip.i +1 -1
- data/swig-interfaces/FXTopWindow.i +10 -10
- data/swig-interfaces/FXTreeList.i +28 -28
- data/swig-interfaces/FXTreeListBox.i +36 -36
- data/swig-interfaces/FXVec3d.i +2 -2
- data/swig-interfaces/FXVec3f.i +2 -2
- data/swig-interfaces/FXVec4d.i +1 -1
- data/swig-interfaces/FXVec4f.i +9 -9
- data/swig-interfaces/FXVerticalFrame.i +1 -1
- data/swig-interfaces/FXVisual.i +1 -1
- data/swig-interfaces/FXWindow.i +46 -46
- data/swig-interfaces/FXXPMIcon.i +1 -1
- data/swig-interfaces/FXXPMImage.i +1 -1
- data/swig-interfaces/exceptions.i +1 -1
- data/swig-interfaces/freefuncs.i +1 -1
- data/swig-interfaces/fxdefs.i +13 -13
- data/swig-interfaces/macros.i +79 -79
- data/test/TC_FXAccelTable.rb +3 -3
- data/test/TC_FXButton.rb +9 -9
- data/test/TC_FXCheckButton.rb +4 -4
- data/test/TC_FXComboBox.rb +1 -1
- data/test/TC_FXDC.rb +42 -42
- data/test/TC_FXDialogBox.rb +1 -1
- data/test/TC_FXExtentd.rb +2 -2
- data/test/TC_FXExtentf.rb +2 -2
- data/test/TC_FXFileAssoc.rb +5 -5
- data/test/TC_FXFileStream.rb +5 -5
- data/test/TC_FXFoldingList.rb +3 -3
- data/test/TC_FXFont.rb +3 -3
- data/test/TC_FXGLGroup.rb +1 -1
- data/test/TC_FXHeader.rb +3 -3
- data/test/TC_FXIconDict.rb +5 -5
- data/test/TC_FXIconList.rb +12 -12
- data/test/TC_FXImage.rb +16 -16
- data/test/TC_FXList.rb +5 -5
- data/test/TC_FXListBox.rb +1 -1
- data/test/TC_FXMainWindow.rb +2 -2
- data/test/TC_FXMat4f.rb +33 -33
- data/test/TC_FXMaterial.rb +5 -5
- data/test/TC_FXMemoryStream.rb +2 -2
- data/test/TC_FXMenuCheck.rb +5 -5
- data/test/TC_FXMessageBox.rb +3 -3
- data/test/TC_FXPoint.rb +1 -1
- data/test/TC_FXRadioButton.rb +4 -4
- data/test/TC_FXRanged.rb +3 -3
- data/test/TC_FXRangef.rb +3 -3
- data/test/TC_FXRegion.rb +1 -1
- data/test/TC_FXScrollArea.rb +1 -1
- data/test/TC_FXScrollWindow.rb +1 -1
- data/test/TC_FXSettings.rb +2 -2
- data/test/TC_FXShell.rb +2 -2
- data/test/TC_FXTopWindow.rb +2 -2
- data/test/TC_FXTreeList.rb +4 -4
- data/test/TC_FXTreeListBox.rb +3 -3
- data/test/TC_FXVec2d.rb +3 -3
- data/test/TC_FXVec2f.rb +3 -3
- data/test/TC_FXVec3d.rb +5 -5
- data/test/TC_FXVec3f.rb +5 -5
- data/test/TC_FXVec4f.rb +6 -6
- data/test/TC_Misc.rb +6 -2
- data/test/TS_All.rb +1 -17
- data/test/stress1.rb +5 -5
- data/test/stress2.rb +3 -3
- data/test/stress3.rb +12 -12
- data/test/testcase.rb +4 -4
- metadata +76 -76
data/test/TC_FXDC.rb
CHANGED
@@ -14,101 +14,101 @@ class TC_FXDC < Test::Unit::TestCase
|
|
14
14
|
end
|
15
15
|
@dc = FXDC.new(@app)
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
def testGetApp
|
19
19
|
app = @dc.app
|
20
20
|
assert(app)
|
21
21
|
assert_kind_of(FXApp, app)
|
22
22
|
assert_same(@app, app)
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
def testReadPixel
|
26
26
|
x, y = 0, 0
|
27
27
|
pixel = @dc.readPixel(x, y)
|
28
28
|
assert(pixel)
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
def testDrawPoint
|
32
32
|
@dc.drawPoint(0, 0)
|
33
33
|
end
|
34
|
-
|
34
|
+
|
35
35
|
def testDrawPoints
|
36
36
|
p1 = FXPoint.new
|
37
37
|
p2 = FXPoint.new
|
38
38
|
@dc.drawPoints([p1, p2])
|
39
39
|
end
|
40
|
-
|
40
|
+
|
41
41
|
def testDrawPointsRel
|
42
42
|
p1 = FXPoint.new
|
43
43
|
p2 = FXPoint.new
|
44
44
|
@dc.drawPointsRel([p1, p2])
|
45
45
|
end
|
46
|
-
|
46
|
+
|
47
47
|
def testDrawLine
|
48
48
|
x1, y1, x2, y2 = 0, 0, 5, 5
|
49
49
|
@dc.drawLine(x1, y1, x2, y2)
|
50
50
|
end
|
51
|
-
|
51
|
+
|
52
52
|
def testDrawLines
|
53
53
|
points = [ FXPoint.new, FXPoint.new ]
|
54
54
|
@dc.drawLines(points)
|
55
55
|
end
|
56
|
-
|
56
|
+
|
57
57
|
def testDrawLinesRel
|
58
58
|
points = [ FXPoint.new, FXPoint.new ]
|
59
59
|
@dc.drawLinesRel(points)
|
60
60
|
end
|
61
|
-
|
61
|
+
|
62
62
|
def testDrawLineSegments
|
63
63
|
segments = [ FXSegment.new, FXSegment.new ]
|
64
64
|
@dc.drawLineSegments(segments)
|
65
65
|
end
|
66
|
-
|
66
|
+
|
67
67
|
def testDrawArc
|
68
68
|
x, y, w, h, ang1, ang2 = 0, 0, 10, 10, 45, 135
|
69
69
|
@dc.drawArc(x, y, w, h, ang1, ang2)
|
70
70
|
end
|
71
|
-
|
71
|
+
|
72
72
|
def testDrawArcs
|
73
73
|
arcs = [ FXArc.new, FXArc.new ]
|
74
74
|
@dc.drawArcs(arcs)
|
75
75
|
end
|
76
|
-
|
76
|
+
|
77
77
|
def testFillRectangle
|
78
78
|
x, y, w, h = 0, 0, 20, 20
|
79
79
|
@dc.fillRectangle(x, y, w, h)
|
80
80
|
end
|
81
|
-
|
81
|
+
|
82
82
|
def testFillRectangles
|
83
83
|
rectangles = [ FXRectangle.new, FXRectangle.new ]
|
84
84
|
@dc.fillRectangles(rectangles)
|
85
85
|
end
|
86
|
-
|
86
|
+
|
87
87
|
def testFillArc
|
88
88
|
x, y, w, h, ang1, ang2 = 0, 0, 10, 10, 45, 135
|
89
89
|
@dc.fillArc(x, y, w, h, ang1, ang2)
|
90
90
|
end
|
91
|
-
|
91
|
+
|
92
92
|
def testFillArcs
|
93
93
|
arcs = [ FXArc.new, FXArc.new ]
|
94
94
|
@dc.fillArcs(arcs)
|
95
95
|
end
|
96
|
-
|
96
|
+
|
97
97
|
def testFillPolygon
|
98
98
|
points = [ FXPoint.new, FXPoint.new ]
|
99
99
|
@dc.fillPolygon(points)
|
100
100
|
end
|
101
|
-
|
101
|
+
|
102
102
|
def testFillConcavePolygon
|
103
103
|
points = [ FXPoint.new, FXPoint.new ]
|
104
104
|
@dc.fillConcavePolygon(points)
|
105
105
|
end
|
106
|
-
|
106
|
+
|
107
107
|
def testFillComplexPolygon
|
108
108
|
points = [ FXPoint.new, FXPoint.new ]
|
109
109
|
@dc.fillComplexPolygon(points)
|
110
110
|
end
|
111
|
-
|
111
|
+
|
112
112
|
def testFillPolygonRel
|
113
113
|
points = [ FXPoint.new, FXPoint.new ]
|
114
114
|
@dc.fillPolygonRel(points)
|
@@ -123,60 +123,60 @@ class TC_FXDC < Test::Unit::TestCase
|
|
123
123
|
points = [ FXPoint.new, FXPoint.new ]
|
124
124
|
@dc.fillComplexPolygonRel(points)
|
125
125
|
end
|
126
|
-
|
126
|
+
|
127
127
|
def testDrawHashBox
|
128
128
|
x, y, w, h, b = 0, 0, 20, 20, 2
|
129
129
|
@dc.drawHashBox(x, y, w, h)
|
130
130
|
@dc.drawHashBox(x, y, w, h, b)
|
131
131
|
end
|
132
|
-
|
132
|
+
|
133
133
|
def testDrawFocusRectangle
|
134
134
|
x, y, w, h = 0, 0, 5, 5
|
135
135
|
@dc.drawFocusRectangle(x, y, w, h)
|
136
136
|
end
|
137
|
-
|
137
|
+
|
138
138
|
def testDrawArea
|
139
139
|
source = FXImage.new(@app)
|
140
140
|
sx, sy, sw, sh = 0, 0, 10, 10
|
141
141
|
dx, dy = 0, 0
|
142
142
|
@dc.drawArea(source, sx, sy, sw, sh, dx, dy)
|
143
143
|
end
|
144
|
-
|
144
|
+
|
145
145
|
def testDrawImage
|
146
146
|
image, dx, dy = FXImage.new(@app), 0, 0
|
147
147
|
@dc.drawImage(image, dx, dy)
|
148
148
|
end
|
149
|
-
|
149
|
+
|
150
150
|
def testDrawBitmap
|
151
151
|
bitmap, dx, dy = FXBitmap.new(@app), 0, 0
|
152
152
|
@dc.drawBitmap(bitmap, dx, dy)
|
153
153
|
end
|
154
|
-
|
154
|
+
|
155
155
|
def testDrawIcon
|
156
156
|
icon, dx, dy = FXIcon.new(@app), 0, 0
|
157
157
|
@dc.drawIcon(icon, dx, dy)
|
158
158
|
end
|
159
|
-
|
159
|
+
|
160
160
|
def testDrawIconSunken
|
161
161
|
icon, dx, dy = FXIcon.new(@app), 0, 0
|
162
162
|
@dc.drawIconSunken(icon, dx, dy)
|
163
163
|
end
|
164
|
-
|
164
|
+
|
165
165
|
def testDrawIconShaded
|
166
166
|
icon, dx, dy = FXIcon.new(@app), 0, 0
|
167
167
|
@dc.drawIconShaded(icon, dx, dy)
|
168
168
|
end
|
169
|
-
|
169
|
+
|
170
170
|
def testDrawText
|
171
171
|
x, y, str = 0, 0, "Hello"
|
172
172
|
@dc.drawText(x, y, str)
|
173
173
|
end
|
174
|
-
|
174
|
+
|
175
175
|
def testDrawImageText
|
176
176
|
x, y, str = 0, 0, "Hello"
|
177
177
|
@dc.drawImageText(x, y, str)
|
178
178
|
end
|
179
|
-
|
179
|
+
|
180
180
|
def testForeground
|
181
181
|
fg = FXRGB(192, 192, 192)
|
182
182
|
@dc.setForeground(fg)
|
@@ -196,7 +196,7 @@ class TC_FXDC < Test::Unit::TestCase
|
|
196
196
|
assert_equal(bg, @dc.background)
|
197
197
|
assert_equal(bg, @dc.getBackground)
|
198
198
|
end
|
199
|
-
|
199
|
+
|
200
200
|
def testDashes
|
201
201
|
dashOffset, dashPattern = 0, [1, 2, 3, 4]
|
202
202
|
@dc.setDashes(dashOffset, dashPattern)
|
@@ -205,7 +205,7 @@ class TC_FXDC < Test::Unit::TestCase
|
|
205
205
|
assert_equal(dashOffset, @dc.dashOffset)
|
206
206
|
assert_equal(dashOffset, @dc.getDashOffset())
|
207
207
|
end
|
208
|
-
|
208
|
+
|
209
209
|
def testLineWidth
|
210
210
|
lineWidth = 2
|
211
211
|
@dc.setLineWidth(lineWidth)
|
@@ -270,7 +270,7 @@ class TC_FXDC < Test::Unit::TestCase
|
|
270
270
|
assert_equal(fillRule, @dc.getFillRule())
|
271
271
|
end
|
272
272
|
end
|
273
|
-
|
273
|
+
|
274
274
|
def testFunction
|
275
275
|
for func in [BLT_CLR, BLT_SRC_AND_DST, BLT_SRC_AND_NOT_DST, BLT_SRC,
|
276
276
|
BLT_NOT_SRC_AND_DST, BLT_DST, BLT_SRC_XOR_DST, BLT_SRC_OR_DST,
|
@@ -285,7 +285,7 @@ class TC_FXDC < Test::Unit::TestCase
|
|
285
285
|
assert_equal(func, @dc.getFunction())
|
286
286
|
end
|
287
287
|
end
|
288
|
-
|
288
|
+
|
289
289
|
def testTile
|
290
290
|
image, dx, dy = FXImage.new(@app), 0, 0
|
291
291
|
@dc.setTile(image)
|
@@ -294,7 +294,7 @@ class TC_FXDC < Test::Unit::TestCase
|
|
294
294
|
assert_same(image, @dc.tile)
|
295
295
|
assert_same(image, @dc.getTile())
|
296
296
|
end
|
297
|
-
|
297
|
+
|
298
298
|
def testStippleBitmap
|
299
299
|
bitmap, dx, dy = FXBitmap.new(@app), 0, 0
|
300
300
|
@dc.setStipple(bitmap)
|
@@ -303,7 +303,7 @@ class TC_FXDC < Test::Unit::TestCase
|
|
303
303
|
assert_same(bitmap, @dc.stippleBitmap)
|
304
304
|
assert_same(bitmap, @dc.getStippleBitmap())
|
305
305
|
end
|
306
|
-
|
306
|
+
|
307
307
|
def testStipplePattern
|
308
308
|
dx, dy = 0, 0
|
309
309
|
patterns = [STIPPLE_0, STIPPLE_NONE, STIPPLE_BLACK, STIPPLE_1,
|
@@ -320,12 +320,12 @@ class TC_FXDC < Test::Unit::TestCase
|
|
320
320
|
assert_equal(pat, @dc.getStipplePattern())
|
321
321
|
end
|
322
322
|
end
|
323
|
-
|
323
|
+
|
324
324
|
# def testClipRegion
|
325
325
|
# region = FXRegion.new(0, 0, 10, 10)
|
326
326
|
# @dc.setClipRegion(region)
|
327
327
|
# end
|
328
|
-
|
328
|
+
|
329
329
|
def testClipRectangle
|
330
330
|
clipX, clipY, clipWidth, clipHeight = 0, 0, 10, 20
|
331
331
|
clipRectangle = FXRectangle.new(clipX, clipY, clipWidth, clipHeight)
|
@@ -343,10 +343,10 @@ class TC_FXDC < Test::Unit::TestCase
|
|
343
343
|
# assert_equal(clipWidth, @dc.clipWidth)
|
344
344
|
# assert_equal(clipHeight, @dc.clipHeight)
|
345
345
|
# assert_equal(clipRectangle, @dc.clipRectangle)
|
346
|
-
|
346
|
+
|
347
347
|
@dc.clearClipRectangle
|
348
348
|
end
|
349
|
-
|
349
|
+
|
350
350
|
def testClipMask
|
351
351
|
bitmap, dx, dy = FXBitmap.new(@app), 0, 0
|
352
352
|
@dc.setClipMask(bitmap)
|
@@ -354,7 +354,7 @@ class TC_FXDC < Test::Unit::TestCase
|
|
354
354
|
@dc.setClipMask(bitmap, dx, dy)
|
355
355
|
@dc.clearClipMask
|
356
356
|
end
|
357
|
-
|
357
|
+
|
358
358
|
def testTextFont
|
359
359
|
textFont = @app.normalFont
|
360
360
|
@dc.setFont(textFont)
|
@@ -364,7 +364,7 @@ class TC_FXDC < Test::Unit::TestCase
|
|
364
364
|
assert_same(textFont, @dc.font)
|
365
365
|
assert_same(textFont, @dc.getFont())
|
366
366
|
end
|
367
|
-
|
367
|
+
|
368
368
|
def testClipChildren
|
369
369
|
@dc.clipChildren(true)
|
370
370
|
@dc.clipChildren(false)
|
data/test/TC_FXDialogBox.rb
CHANGED
data/test/TC_FXExtentd.rb
CHANGED
@@ -8,12 +8,12 @@ class TC_FXExtentd < Test::Unit::TestCase
|
|
8
8
|
e = FXExtentd.new(0, 1, 0, 1)
|
9
9
|
assert_same e.lower, e.lower
|
10
10
|
end
|
11
|
-
|
11
|
+
|
12
12
|
def test_upper_always_returns_same_instance
|
13
13
|
e = FXExtentd.new(0, 1, 0, 1)
|
14
14
|
assert_same e.upper, e.upper
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
17
|
def test_index_always_returns_same_instance
|
18
18
|
e = FXExtentd.new(0, 1, 0, 1)
|
19
19
|
assert_same e[0], e[0]
|
data/test/TC_FXExtentf.rb
CHANGED
@@ -8,12 +8,12 @@ class TC_FXExtentf < Test::Unit::TestCase
|
|
8
8
|
e = FXExtentf.new(0, 1, 0, 1)
|
9
9
|
assert_same e.lower, e.lower
|
10
10
|
end
|
11
|
-
|
11
|
+
|
12
12
|
def test_upper_always_returns_same_instance
|
13
13
|
e = FXExtentf.new(0, 1, 0, 1)
|
14
14
|
assert_same e.upper, e.upper
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
17
|
def test_index_always_returns_same_instance
|
18
18
|
e = FXExtentf.new(0, 1, 0, 1)
|
19
19
|
assert_same e[0], e[0]
|
data/test/TC_FXFileAssoc.rb
CHANGED
@@ -10,22 +10,22 @@ class TC_FXFileAssoc < Test::Unit::TestCase
|
|
10
10
|
@icon = FXIcon.new(@app)
|
11
11
|
@fileassoc = FXFileAssoc.new
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
def test_command
|
15
15
|
@fileassoc.command = "netscape"
|
16
16
|
assert_equal("netscape", @fileassoc.command)
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
def test_extension
|
20
20
|
@fileassoc.extension = ".html"
|
21
21
|
assert_equal(".html", @fileassoc.extension)
|
22
22
|
end
|
23
|
-
|
23
|
+
|
24
24
|
def test_mimetype
|
25
25
|
@fileassoc.mimetype = "mimetype"
|
26
26
|
assert_equal("mimetype", @fileassoc.mimetype)
|
27
27
|
end
|
28
|
-
|
28
|
+
|
29
29
|
def test_bigicon
|
30
30
|
@fileassoc.bigicon = @icon
|
31
31
|
assert_kind_of(FXIcon, @fileassoc.bigicon)
|
@@ -54,7 +54,7 @@ class TC_FXFileAssoc < Test::Unit::TestCase
|
|
54
54
|
@fileassoc.dragtype = 0
|
55
55
|
assert_equal(0, @fileassoc.dragtype)
|
56
56
|
end
|
57
|
-
|
57
|
+
|
58
58
|
def test_flags
|
59
59
|
@fileassoc.flags = 0
|
60
60
|
assert_equal(0, @fileassoc.flags)
|
data/test/TC_FXFileStream.rb
CHANGED
@@ -12,7 +12,7 @@ class TC_FXFileStream < Test::Unit::TestCase
|
|
12
12
|
def test_container
|
13
13
|
assert_nil(@filestream.container)
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
def test_open_non_existing_file
|
17
17
|
assert_equal(FXStreamDead, @filestream.direction)
|
18
18
|
status = @filestream.open("non_existing_file", FXStreamLoad)
|
@@ -39,7 +39,7 @@ class TC_FXFileStream < Test::Unit::TestCase
|
|
39
39
|
assert(status)
|
40
40
|
assert_equal(FXStreamDead, @filestream.direction)
|
41
41
|
end
|
42
|
-
|
42
|
+
|
43
43
|
def test_status
|
44
44
|
assert_equal(FXStreamOK, @filestream.status)
|
45
45
|
@filestream.open("README", FXStreamLoad)
|
@@ -47,7 +47,7 @@ class TC_FXFileStream < Test::Unit::TestCase
|
|
47
47
|
@filestream.close
|
48
48
|
assert_equal(FXStreamOK, @filestream.status)
|
49
49
|
end
|
50
|
-
|
50
|
+
|
51
51
|
def test_position
|
52
52
|
@filestream.open("README", FXStreamLoad)
|
53
53
|
assert_equal(0, @filestream.position)
|
@@ -55,7 +55,7 @@ class TC_FXFileStream < Test::Unit::TestCase
|
|
55
55
|
assert_equal(500, @filestream.position)
|
56
56
|
@filestream.close
|
57
57
|
end
|
58
|
-
|
58
|
+
|
59
59
|
def test_exceptions
|
60
60
|
# Non-existing file
|
61
61
|
assert_raises(FXStreamNoReadError) {
|
@@ -80,7 +80,7 @@ class TC_FXFileStream < Test::Unit::TestCase
|
|
80
80
|
FXFileStream.open(tf.path, FXStreamSave) { |s| }
|
81
81
|
}
|
82
82
|
end
|
83
|
-
|
83
|
+
|
84
84
|
def teardown
|
85
85
|
if File.exists?("goobers")
|
86
86
|
FileUtils.rm_f("goobers")
|
data/test/TC_FXFoldingList.rb
CHANGED
@@ -5,7 +5,7 @@ require 'fox16'
|
|
5
5
|
class TC_FXFoldingList < Fox::TestCase
|
6
6
|
include Fox
|
7
7
|
|
8
|
-
|
8
|
+
|
9
9
|
def setup
|
10
10
|
super(self.class.name)
|
11
11
|
@foldingList = FXFoldingList.new(mainWindow)
|
@@ -16,7 +16,7 @@ class TC_FXFoldingList < Fox::TestCase
|
|
16
16
|
@foldingList.each { |item| count += 1 }
|
17
17
|
assert_equal(0, count, "count for empty list should be zero")
|
18
18
|
end
|
19
|
-
|
19
|
+
|
20
20
|
def test_each
|
21
21
|
@foldingList.appendItem(nil, "1")
|
22
22
|
@foldingList.appendItem(nil, "2")
|
@@ -27,6 +27,6 @@ class TC_FXFoldingList < Fox::TestCase
|
|
27
27
|
@foldingList.each { |item| count += 1 }
|
28
28
|
assert_equal(5, count, "count didn't match expected number of items")
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
end
|
32
32
|
|
data/test/TC_FXFont.rb
CHANGED
@@ -7,7 +7,7 @@ class TC_FXFont < Test::Unit::TestCase
|
|
7
7
|
|
8
8
|
def setup
|
9
9
|
if FXApp.instance.nil?
|
10
|
-
@app = FXApp.new('TC_FXFont', 'FoxTest')
|
10
|
+
@app = FXApp.new('TC_FXFont', 'FoxTest')
|
11
11
|
else
|
12
12
|
@app = FXApp.instance
|
13
13
|
end
|
@@ -44,7 +44,7 @@ class TC_FXFont < Test::Unit::TestCase
|
|
44
44
|
def testConstructFromFontString
|
45
45
|
font = FXFont.new(@app, "")
|
46
46
|
end
|
47
|
-
|
47
|
+
|
48
48
|
def testGetTextWidthAndHeight
|
49
49
|
font = FXFont.new(@app, "Times", 10)
|
50
50
|
assert(font.getTextWidth("Test") > 0)
|
@@ -56,7 +56,7 @@ class TC_FXFont < Test::Unit::TestCase
|
|
56
56
|
assert_instance_of(Array, fonts)
|
57
57
|
assert(fonts.length > 0)
|
58
58
|
end
|
59
|
-
|
59
|
+
|
60
60
|
def test_hasChar?
|
61
61
|
@app.normalFont.create
|
62
62
|
assert(@app.normalFont.hasChar('a'))
|
data/test/TC_FXGLGroup.rb
CHANGED
data/test/TC_FXHeader.rb
CHANGED
@@ -45,7 +45,7 @@ class TC_FXHeader < Fox::TestCase
|
|
45
45
|
@header.setArrowDir(0, Fox::MAYBE)
|
46
46
|
assert_same(true, @header.arrowMaybe?(0))
|
47
47
|
end
|
48
|
-
|
48
|
+
|
49
49
|
def test_SEL_REPLACED
|
50
50
|
@header.appendItem("One")
|
51
51
|
@header.appendItem("Two")
|
@@ -56,7 +56,7 @@ class TC_FXHeader < Fox::TestCase
|
|
56
56
|
@header.setItem(1, "", nil, 0, nil, true)
|
57
57
|
assert_equal(1, itemIndex)
|
58
58
|
end
|
59
|
-
|
59
|
+
|
60
60
|
def test_SEL_INSERTED
|
61
61
|
@header.appendItem("One")
|
62
62
|
@header.appendItem("Two")
|
@@ -67,7 +67,7 @@ class TC_FXHeader < Fox::TestCase
|
|
67
67
|
@header.insertItem(1, "One Point Five", nil, 0, nil, true)
|
68
68
|
assert_equal(1, itemIndex)
|
69
69
|
end
|
70
|
-
|
70
|
+
|
71
71
|
def test_SEL_DELETED
|
72
72
|
@header.appendItem("One")
|
73
73
|
@header.appendItem("Two")
|
data/test/TC_FXIconDict.rb
CHANGED
@@ -8,7 +8,7 @@ class TC_FXIconDict < Fox::TestCase
|
|
8
8
|
def setup
|
9
9
|
super(self.class.name)
|
10
10
|
end
|
11
|
-
|
11
|
+
|
12
12
|
def test_defaultIconPath_s
|
13
13
|
assert_equal("~/.foxicons:/usr/local/share/icons:/usr/share/icons", FXIconDict.defaultIconPath)
|
14
14
|
end
|
@@ -17,19 +17,19 @@ class TC_FXIconDict < Fox::TestCase
|
|
17
17
|
iconDict = FXIconDict.new(app)
|
18
18
|
assert(iconDict.empty?)
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
def test_defaultIconPath
|
22
22
|
iconDict = FXIconDict.new(app)
|
23
23
|
assert_equal(FXIconDict.defaultIconPath, iconDict.iconPath)
|
24
24
|
end
|
25
|
-
|
25
|
+
|
26
26
|
def test_iconPath
|
27
27
|
iconDict = FXIconDict.new(app, "foo")
|
28
28
|
assert_equal("foo", iconDict.iconPath)
|
29
29
|
iconDict.iconPath = "bar"
|
30
30
|
assert_equal("bar", iconDict.iconPath)
|
31
31
|
end
|
32
|
-
|
32
|
+
|
33
33
|
def test_insert
|
34
34
|
end
|
35
35
|
=begin
|
@@ -40,7 +40,7 @@ class TC_FXIconDict < Fox::TestCase
|
|
40
40
|
assert_nil(iconDict.remove("gnu-animal.xpm"))
|
41
41
|
assert_equal(0, iconDict.size)
|
42
42
|
end
|
43
|
-
|
43
|
+
|
44
44
|
def test_remove_nonexistent_icon
|
45
45
|
iconDict = FXIconDict.new(app)
|
46
46
|
assert_nil(iconDict.remove("xxxxx.png"))
|
data/test/TC_FXIconList.rb
CHANGED
@@ -19,14 +19,14 @@ private
|
|
19
19
|
@iconList.send(meth, 0, *args)
|
20
20
|
}
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
public
|
24
24
|
|
25
25
|
def setup
|
26
26
|
super('TC_FXIconList')
|
27
27
|
@iconList = FXIconList.new(mainWindow)
|
28
28
|
end
|
29
|
-
|
29
|
+
|
30
30
|
def test_appendItem_byItem
|
31
31
|
items = []
|
32
32
|
0.upto(4) do |i|
|
@@ -54,17 +54,17 @@ public
|
|
54
54
|
@iconList << FXIconItem.new("item3")
|
55
55
|
assert_equal(3, @iconList.numItems)
|
56
56
|
end
|
57
|
-
|
57
|
+
|
58
58
|
def test_removeHeader
|
59
59
|
@iconList.appendHeader("One")
|
60
60
|
checkBounds(:removeHeader)
|
61
61
|
end
|
62
|
-
|
62
|
+
|
63
63
|
def test_setHeaderText
|
64
64
|
@iconList.appendHeader("One")
|
65
65
|
checkBounds(:setHeaderText, "Foo")
|
66
66
|
end
|
67
|
-
|
67
|
+
|
68
68
|
def test_getHeaderText
|
69
69
|
@iconList.appendHeader("Boo")
|
70
70
|
checkBounds(:getHeaderText)
|
@@ -74,22 +74,22 @@ public
|
|
74
74
|
@iconList.appendHeader("Boo")
|
75
75
|
checkBounds(:setHeaderIcon, nil)
|
76
76
|
end
|
77
|
-
|
77
|
+
|
78
78
|
def test_getHeaderIcon
|
79
79
|
@iconList.appendHeader("Boo")
|
80
80
|
checkBounds(:getHeaderIcon)
|
81
81
|
end
|
82
|
-
|
82
|
+
|
83
83
|
def test_setHeaderSize
|
84
84
|
@iconList.appendHeader("Boo")
|
85
85
|
checkBounds(:setHeaderSize, 0)
|
86
86
|
end
|
87
|
-
|
87
|
+
|
88
88
|
def test_getHeaderSize
|
89
89
|
@iconList.appendHeader("Boo")
|
90
90
|
checkBounds(:getHeaderSize)
|
91
91
|
end
|
92
|
-
|
92
|
+
|
93
93
|
def test_getItem
|
94
94
|
@iconList.appendItem("Foo")
|
95
95
|
assert_equal(1, @iconList.numItems)
|
@@ -131,7 +131,7 @@ public
|
|
131
131
|
@iconList.setItem(1, "", nil, nil, nil, true)
|
132
132
|
assert_equal(1, itemIndex)
|
133
133
|
end
|
134
|
-
|
134
|
+
|
135
135
|
def test_SEL_INSERTED
|
136
136
|
@iconList.appendItem("One")
|
137
137
|
@iconList.appendItem("Two")
|
@@ -142,7 +142,7 @@ public
|
|
142
142
|
@iconList.insertItem(1, "One Point Five", nil, nil, nil, true)
|
143
143
|
assert_equal(1, itemIndex)
|
144
144
|
end
|
145
|
-
|
145
|
+
|
146
146
|
def test_SEL_DELETED
|
147
147
|
@iconList.appendItem("One")
|
148
148
|
@iconList.appendItem("Two")
|
@@ -176,7 +176,7 @@ public
|
|
176
176
|
@iconList.deselectItem(1, true)
|
177
177
|
assert_equal(1, itemIndex)
|
178
178
|
end
|
179
|
-
|
179
|
+
|
180
180
|
def test_makeItemVisible
|
181
181
|
items = []
|
182
182
|
0.upto(2) { |i|
|