fxruby 1.6.13-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +456 -0
- data/README +39 -0
- data/doc/apes02.html +21 -0
- data/doc/apes03.html +39 -0
- data/doc/book.html +3 -0
- data/doc/build.html +133 -0
- data/doc/ch03s02.html +23 -0
- data/doc/ch03s03.html +52 -0
- data/doc/ch03s04.html +36 -0
- data/doc/ch03s05.html +60 -0
- data/doc/ch04s02.html +71 -0
- data/doc/ch04s03.html +37 -0
- data/doc/ch04s04.html +72 -0
- data/doc/ch05s02.html +260 -0
- data/doc/ch05s03.html +127 -0
- data/doc/changes.html +685 -0
- data/doc/clipboardtut.html +67 -0
- data/doc/differences.html +190 -0
- data/doc/dragdroptut.html +263 -0
- data/doc/events.html +36 -0
- data/doc/examples.html +104 -0
- data/doc/gems.html +73 -0
- data/doc/goals.html +41 -0
- data/doc/images/babelfish.png +0 -0
- data/doc/images/browser.png +0 -0
- data/doc/images/button.png +0 -0
- data/doc/images/call-chain-example.png +0 -0
- data/doc/images/colordialog.png +0 -0
- data/doc/images/datatarget.png +0 -0
- data/doc/images/dialog.png +0 -0
- data/doc/images/dilbert.png +0 -0
- data/doc/images/dirlist.png +0 -0
- data/doc/images/dropsite-droprejected.png +0 -0
- data/doc/images/foursplit.png +0 -0
- data/doc/images/gltest.png +0 -0
- data/doc/images/glviewer.png +0 -0
- data/doc/images/groupbox.png +0 -0
- data/doc/images/header.png +0 -0
- data/doc/images/hello-with-button.png +0 -0
- data/doc/images/hello-with-icon-1.png +0 -0
- data/doc/images/hello-with-icon-2.png +0 -0
- data/doc/images/hello-with-icon-3.png +0 -0
- data/doc/images/hello-with-tooltip.png +0 -0
- data/doc/images/hello-without-button.png +0 -0
- data/doc/images/hello.png +0 -0
- data/doc/images/hello2.png +0 -0
- data/doc/images/iconlist-bigicons.png +0 -0
- data/doc/images/iconlist-details.png +0 -0
- data/doc/images/image.png +0 -0
- data/doc/images/imageviewer.png +0 -0
- data/doc/images/inheritance.png +0 -0
- data/doc/images/mditest.png +0 -0
- data/doc/images/raabrowser.png +0 -0
- data/doc/images/scribble.png +0 -0
- data/doc/images/shutter.png +0 -0
- data/doc/images/splitter.png +0 -0
- data/doc/images/tabbook.png +0 -0
- data/doc/images/table.png +0 -0
- data/doc/images/tutorial1.png +0 -0
- data/doc/implementation.html +16 -0
- data/doc/infosources.html +33 -0
- data/doc/library.html +30 -0
- data/doc/opengl.html +73 -0
- data/doc/pt01.html +3 -0
- data/doc/pt02.html +3 -0
- data/doc/scintilla.html +36 -0
- data/doc/style.css +247 -0
- data/doc/subversion.html +21 -0
- data/doc/tutorial1.html +90 -0
- data/doc/unicode.html +56 -0
- data/examples/RAA.rb +25 -0
- data/examples/README +53 -0
- data/examples/babelfish.rb +93 -0
- data/examples/bounce.rb +159 -0
- data/examples/browser.rb +191 -0
- data/examples/button.rb +168 -0
- data/examples/datatarget.rb +223 -0
- data/examples/dctest.rb +696 -0
- data/examples/dialog.rb +143 -0
- data/examples/dilbert.rb +67 -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/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/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 +187 -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/fox16.so +0 -0
- data/index.html +14 -0
- data/lib/fox16/aliases.rb +5598 -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 +681 -0
- data/lib/fox16/dict.rb +35 -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 +371 -0
- data/lib/fox16/keys.rb +1374 -0
- data/lib/fox16/kwargs.rb +2725 -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 +131 -0
- data/lib/fox16/scintilla.rb +3641 -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 +9 -0
- data/rdoc-sources/FX4Splitter.rb +156 -0
- data/rdoc-sources/FX7Segment.rb +54 -0
- data/rdoc-sources/FXAccelTable.rb +102 -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 +211 -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 +33 -0
- data/rdoc-sources/FXHeader.rb +408 -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 +447 -0
- data/rdoc-sources/FXIconSource.rb +100 -0
- data/rdoc-sources/FXId.rb +34 -0
- data/rdoc-sources/FXImage.rb +286 -0
- data/rdoc-sources/FXImageFrame.rb +36 -0
- data/rdoc-sources/FXImageView.rb +35 -0
- data/rdoc-sources/FXInputDialog.rb +77 -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 +69 -0
- data/rdoc-sources/FXList.rb +440 -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 +50 -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 +72 -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 +967 -0
- data/rdoc-sources/FXText.rb +578 -0
- data/rdoc-sources/FXTextField.rb +151 -0
- data/rdoc-sources/FXToggleButton.rb +69 -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 +36 -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 +113 -0
- data/rdoc-sources/FXVec3f.rb +113 -0
- data/rdoc-sources/FXVec4d.rb +129 -0
- data/rdoc-sources/FXVec4f.rb +129 -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/README.rdoc +53 -0
- data/rdoc-sources/fxdefs.rb +90 -0
- data/tests/README +19 -0
- data/tests/TC_FXAccelTable.rb +43 -0
- data/tests/TC_FXApp.rb +15 -0
- data/tests/TC_FXArc.rb +26 -0
- data/tests/TC_FXBMPIcon.rb +15 -0
- data/tests/TC_FXBMPImage.rb +15 -0
- data/tests/TC_FXButton.rb +72 -0
- data/tests/TC_FXCheckButton.rb +57 -0
- data/tests/TC_FXComboBox.rb +52 -0
- data/tests/TC_FXDC.rb +372 -0
- data/tests/TC_FXDCPrint.rb +102 -0
- data/tests/TC_FXDCWindow.rb +23 -0
- data/tests/TC_FXDataTarget.rb +24 -0
- data/tests/TC_FXDirList.rb +30 -0
- data/tests/TC_FXFileAssoc.rb +62 -0
- data/tests/TC_FXFileStream.rb +90 -0
- data/tests/TC_FXFoldingList.rb +32 -0
- data/tests/TC_FXFont.rb +69 -0
- data/tests/TC_FXFontDesc.rb +58 -0
- data/tests/TC_FXGLGroup.rb +32 -0
- data/tests/TC_FXGLShape.rb +28 -0
- data/tests/TC_FXGLViewer.rb +20 -0
- data/tests/TC_FXGradientBar.rb +89 -0
- data/tests/TC_FXHeader.rb +82 -0
- data/tests/TC_FXIconDict.rb +52 -0
- data/tests/TC_FXIconList.rb +192 -0
- data/tests/TC_FXId.rb +19 -0
- data/tests/TC_FXImage.rb +155 -0
- data/tests/TC_FXLight.rb +33 -0
- data/tests/TC_FXList.rb +116 -0
- data/tests/TC_FXListBox.rb +49 -0
- data/tests/TC_FXMat4f.rb +228 -0
- data/tests/TC_FXMaterial.rb +89 -0
- data/tests/TC_FXMemoryStream.rb +97 -0
- data/tests/TC_FXMenuCheck.rb +57 -0
- data/tests/TC_FXMenuCommand.rb +12 -0
- data/tests/TC_FXMenuRadio.rb +57 -0
- data/tests/TC_FXPoint.rb +57 -0
- data/tests/TC_FXQuatf.rb +77 -0
- data/tests/TC_FXRadioButton.rb +57 -0
- data/tests/TC_FXRangef.rb +48 -0
- data/tests/TC_FXRectangle.rb +88 -0
- data/tests/TC_FXRegion.rb +54 -0
- data/tests/TC_FXRegistry.rb +27 -0
- data/tests/TC_FXScrollArea.rb +28 -0
- data/tests/TC_FXScrollWindow.rb +28 -0
- data/tests/TC_FXSegment.rb +22 -0
- data/tests/TC_FXSettings.rb +34 -0
- data/tests/TC_FXShell.rb +26 -0
- data/tests/TC_FXSize.rb +54 -0
- data/tests/TC_FXStream.rb +11 -0
- data/tests/TC_FXTable.rb +368 -0
- data/tests/TC_FXTableItem.rb +48 -0
- data/tests/TC_FXText.rb +96 -0
- data/tests/TC_FXTopWindow.rb +32 -0
- data/tests/TC_FXTreeList.rb +100 -0
- data/tests/TC_FXTreeListBox.rb +41 -0
- data/tests/TC_FXUndoList.rb +43 -0
- data/tests/TC_FXVec2d.rb +142 -0
- data/tests/TC_FXVec2f.rb +137 -0
- data/tests/TC_FXVec3d.rb +150 -0
- data/tests/TC_FXVec3f.rb +150 -0
- data/tests/TC_FXVec4f.rb +158 -0
- data/tests/TC_FXViewport.rb +30 -0
- data/tests/TC_FXXBMIcon.rb +15 -0
- data/tests/TC_FXXBMImage.rb +15 -0
- data/tests/TC_FXXPMIcon.rb +15 -0
- data/tests/TC_FXXPMImage.rb +15 -0
- data/tests/TC_Misc.rb +157 -0
- data/tests/TC_downcast.rb +15 -0
- data/tests/TS_All.rb +25 -0
- data/tests/blankpage.ps +166 -0
- data/tests/howdypage.ps +181 -0
- data/tests/stress1.rb +94 -0
- data/tests/stress2.rb +51 -0
- data/tests/stress3.rb +117 -0
- data/tests/testcase.rb +37 -0
- data/web/art/fxrubylogo.png +0 -0
- data/web/art/fxrubylogo_small.png +0 -0
- data/web/art/line.gif +0 -0
- data/web/art/oul_grey.gif +0 -0
- data/web/art/our.gif +0 -0
- data/web/downloads.html +93 -0
- data/web/home.html +113 -0
- data/web/menu.html +50 -0
- data/web/styles.css +167 -0
- data/web/top.html +15 -0
- metadata +548 -0
@@ -0,0 +1,578 @@
|
|
1
|
+
module Fox
|
2
|
+
#
|
3
|
+
# Highlight style entry
|
4
|
+
#
|
5
|
+
class FXHiliteStyle
|
6
|
+
# Normal text foreground color [FXColor]
|
7
|
+
attr_accessor :normalForeColor
|
8
|
+
|
9
|
+
# Normal text background color [FXColor]
|
10
|
+
attr_accessor :normalBackColor
|
11
|
+
|
12
|
+
# Selected text foreground color [FXColor]
|
13
|
+
attr_accessor :selectForeColor
|
14
|
+
|
15
|
+
# Selected text background color [FXColor]
|
16
|
+
attr_accessor :selectBackColor
|
17
|
+
|
18
|
+
# Highlight text foreground color [FXColor]
|
19
|
+
attr_accessor :hiliteForeColor
|
20
|
+
|
21
|
+
# Highlight text background color [FXColor]
|
22
|
+
attr_accessor :hiliteBackColor
|
23
|
+
|
24
|
+
# Active text background color [FXColor]
|
25
|
+
attr_accessor :activeBackColor
|
26
|
+
|
27
|
+
# Highlight text style [Integer]
|
28
|
+
attr_accessor :style
|
29
|
+
end
|
30
|
+
|
31
|
+
#
|
32
|
+
# Text mutation callback data passed with the SEL_INSERTED,
|
33
|
+
# SEL_REPLACED, and SEL_DELETED messages; both old and new
|
34
|
+
# text is available on behalf of the undo system as well as
|
35
|
+
# syntax highlighting.
|
36
|
+
#
|
37
|
+
class FXTextChange
|
38
|
+
# Position in buffer [Integer]
|
39
|
+
attr_accessor :pos
|
40
|
+
|
41
|
+
# Number of characters deleted at _pos_ [Integer]
|
42
|
+
attr_accessor :ndel
|
43
|
+
|
44
|
+
# Number of characters inserted at _pos_ [Integer]
|
45
|
+
attr_accessor :nins
|
46
|
+
|
47
|
+
# Text inserted at _pos_ [String]
|
48
|
+
attr_accessor :ins
|
49
|
+
|
50
|
+
# Text deleted at _pos_ [String]
|
51
|
+
attr_accessor :del
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# The text widget supports editing of multiple lines of text.
|
56
|
+
# An optional style table can provide text coloring based on
|
57
|
+
# the contents of an optional parallel style buffer, which is
|
58
|
+
# maintained as text is edited. In a typical scenario, the
|
59
|
+
# contents of the style buffer is either directly written when
|
60
|
+
# the text is added to the widget, or is continually modified
|
61
|
+
# by editing the text via syntax-based highlighting engine which
|
62
|
+
# colors the text based on syntactical patterns.
|
63
|
+
#
|
64
|
+
# === Events
|
65
|
+
#
|
66
|
+
# The following messages are sent by FXText to its target:
|
67
|
+
#
|
68
|
+
# +SEL_KEYPRESS+:: sent when a key is pressed; the message data is an FXEvent instance.
|
69
|
+
# +SEL_KEYRELEASE+:: sent when a key is released; the message data is an FXEvent instance.
|
70
|
+
# +SEL_LEFTBUTTONPRESS+:: sent when the left mouse button goes down; the message data is an FXEvent instance.
|
71
|
+
# +SEL_LEFTBUTTONRELEASE+:: sent when the left mouse button goes up; the message data is an FXEvent instance.
|
72
|
+
# +SEL_MIDDLEBUTTONPRESS+:: sent when the middle mouse button goes down; the message data is an FXEvent instance.
|
73
|
+
# +SEL_MIDDLEBUTTONRELEASE+:: sent when the middle mouse button goes up; the message data is an FXEvent instance.
|
74
|
+
# +SEL_RIGHTBUTTONPRESS+:: sent when the right mouse button goes down; the message data is an FXEvent instance.
|
75
|
+
# +SEL_RIGHTBUTTONRELEASE+:: sent when the right mouse button goes up; the message data is an FXEvent instance.
|
76
|
+
# +SEL_INSERTED+::
|
77
|
+
# sent after text is inserted into the text buffer; the message data
|
78
|
+
# is a reference to an FXTextChange instance.
|
79
|
+
# +SEL_DELETED+::
|
80
|
+
# sent after text is removed from the text buffer; the message data is
|
81
|
+
# a reference to an FXTextChange instance.
|
82
|
+
# +SEL_REPLACED+::
|
83
|
+
# sent after some text is replaced in the text buffer; the message data is
|
84
|
+
# a reference to an FXTextChange instance.
|
85
|
+
# +SEL_CHANGED+::
|
86
|
+
# sent when the contents of the text buffer change in any way;
|
87
|
+
# the message data is an integer indicating the cursor position.
|
88
|
+
# +SEL_SELECTED+::
|
89
|
+
# sent after text is selected; the message data is a two-element array
|
90
|
+
# indicating the starting position of the selected text and the number
|
91
|
+
# of characters selected.
|
92
|
+
# +SEL_DESELECTED+::
|
93
|
+
# sent before text is deselected; the message data is a two-element array
|
94
|
+
# indicating the starting position of the deselected text and the number
|
95
|
+
# of characters deselected.
|
96
|
+
#
|
97
|
+
# === Text widget options
|
98
|
+
#
|
99
|
+
# +TEXT_READONLY+:: Text is _not_ editable
|
100
|
+
# +TEXT_WORDWRAP+:: Wrap at word breaks
|
101
|
+
# +TEXT_OVERSTRIKE+:: Overstrike mode
|
102
|
+
# +TEXT_FIXEDWRAP+:: Fixed wrap columns
|
103
|
+
# +TEXT_NO_TABS+:: Insert spaces for tabs
|
104
|
+
# +TEXT_AUTOINDENT+:: Autoindent
|
105
|
+
# +TEXT_SHOWACTIVE+:: Show active line
|
106
|
+
# +TEXT_AUTOSCROLL+:: Logging mode, keeping last line visible
|
107
|
+
#
|
108
|
+
# === Selection modes
|
109
|
+
#
|
110
|
+
# +SELECT_CHARS+
|
111
|
+
# +SELECT_WORDS+
|
112
|
+
# +SELECT_LINES+
|
113
|
+
#
|
114
|
+
# === Text styles
|
115
|
+
#
|
116
|
+
# +STYLE_UNDERLINE+:: underline text
|
117
|
+
# +STYLE_STRIKEOUT+:: strike out text
|
118
|
+
# +STYLE_BOLD_+:: bold text
|
119
|
+
#
|
120
|
+
# === Message identifiers
|
121
|
+
#
|
122
|
+
# +ID_CURSOR_TOP+::
|
123
|
+
# +ID_CURSOR_BOTTOM+::
|
124
|
+
# +ID_CURSOR_HOME+::
|
125
|
+
# +ID_CURSOR_END+::
|
126
|
+
# +ID_CURSOR_RIGHT+::
|
127
|
+
# +ID_CURSOR_LEFT+::
|
128
|
+
# +ID_CURSOR_UP+::
|
129
|
+
# +ID_CURSOR_DOWN+::
|
130
|
+
# +ID_CURSOR_WORD_LEFT+::
|
131
|
+
# +ID_CURSOR_WORD_RIGHT+::
|
132
|
+
# +ID_CURSOR_PAGEDOWN+::
|
133
|
+
# +ID_CURSOR_PAGEUP+::
|
134
|
+
# +ID_CURSOR_SCRNTOP+::
|
135
|
+
# +ID_CURSOR_SCRNBTM+::
|
136
|
+
# +ID_CURSOR_SCRNCTR+::
|
137
|
+
# +ID_CURSOR_PAR_HOME+::
|
138
|
+
# +ID_CURSOR_PAR_END+::
|
139
|
+
# +ID_SCROLL_UP+::
|
140
|
+
# +ID_SCROLL_DOWN+::
|
141
|
+
# +ID_MARK+::
|
142
|
+
# +ID_EXTEND+::
|
143
|
+
# +ID_OVERST_STRING+::
|
144
|
+
# +ID_INSERT_STRING+::
|
145
|
+
# +ID_INSERT_NEWLINE+::
|
146
|
+
# +ID_INSERT_TAB+::
|
147
|
+
# +ID_CUT_SEL+::
|
148
|
+
# +ID_COPY_SEL+::
|
149
|
+
# +ID_PASTE_SEL+::
|
150
|
+
# +ID_DELETE_SEL+::
|
151
|
+
# +ID_SELECT_CHAR+::
|
152
|
+
# +ID_SELECT_WORD+::
|
153
|
+
# +ID_SELECT_LINE+::
|
154
|
+
# +ID_SELECT_ALL+::
|
155
|
+
# +ID_SELECT_MATCHING+::
|
156
|
+
# +ID_SELECT_BRACE+::
|
157
|
+
# +ID_SELECT_BRACK+::
|
158
|
+
# +ID_SELECT_PAREN+::
|
159
|
+
# +ID_SELECT_ANG+::
|
160
|
+
# +ID_DESELECT_ALL+::
|
161
|
+
# +ID_BACKSPACE+::
|
162
|
+
# +ID_BACKSPACE_WORD+::
|
163
|
+
# +ID_BACKSPACE_BOL+::
|
164
|
+
# +ID_DELETE+::
|
165
|
+
# +ID_DELETE_WORD+::
|
166
|
+
# +ID_DELETE_EOL+::
|
167
|
+
# +ID_DELETE_LINE+::
|
168
|
+
# +ID_TOGGLE_EDITABLE+::
|
169
|
+
# +ID_TOGGLE_OVERSTRIKE+::
|
170
|
+
# +ID_CURSOR_ROW+::
|
171
|
+
# +ID_CURSOR_COLUMN+::
|
172
|
+
# +ID_CLEAN_INDENT+::
|
173
|
+
# +ID_SHIFT_LEFT+::
|
174
|
+
# +ID_SHIFT_RIGHT+::
|
175
|
+
# +ID_SHIFT_TABLEFT+::
|
176
|
+
# +ID_SHIFT_TABRIGHT+::
|
177
|
+
# +ID_UPPER_CASE+::
|
178
|
+
# +ID_LOWER_CASE+::
|
179
|
+
# +ID_GOTO_MATCHING+::
|
180
|
+
# +ID_GOTO_SELECTED+::
|
181
|
+
# +ID_GOTO_LINE+::
|
182
|
+
# +ID_SEARCH_FORW_SEL+::
|
183
|
+
# +ID_SEARCH_BACK_SEL+::
|
184
|
+
# +ID_SEARCH+::
|
185
|
+
# +ID_REPLACE+::
|
186
|
+
# +ID_LEFT_BRACE+::
|
187
|
+
# +ID_LEFT_BRACK+::
|
188
|
+
# +ID_LEFT_PAREN+::
|
189
|
+
# +ID_LEFT_ANG+::
|
190
|
+
# +ID_RIGHT_BRACE+::
|
191
|
+
# +ID_RIGHT_BRACK+::
|
192
|
+
# +ID_RIGHT_PAREN+::
|
193
|
+
# +ID_RIGHT_ANG+::
|
194
|
+
# +ID_BLINK+::
|
195
|
+
# +ID_FLASH+::
|
196
|
+
|
197
|
+
class FXText < FXScrollArea
|
198
|
+
|
199
|
+
# Top margin [Integer]
|
200
|
+
attr_accessor :marginTop
|
201
|
+
|
202
|
+
# Bottom margin [Integer]
|
203
|
+
attr_accessor :marginBottom
|
204
|
+
|
205
|
+
# Left margin [Integer]
|
206
|
+
attr_accessor :marginLeft
|
207
|
+
|
208
|
+
# Right margin [Integer]
|
209
|
+
attr_accessor :marginRight
|
210
|
+
|
211
|
+
# Wrap columns [Integer]
|
212
|
+
attr_accessor :wrapColumns
|
213
|
+
|
214
|
+
# Tab columns [Integer]
|
215
|
+
attr_accessor :tabColumns
|
216
|
+
|
217
|
+
# Number of columns used for line numbers [Integer]
|
218
|
+
attr_accessor :barColumns
|
219
|
+
|
220
|
+
# Indicates whether text is modified [Boolean]
|
221
|
+
attr_writer :modified
|
222
|
+
|
223
|
+
# Indicates whether text is editable [Boolean]
|
224
|
+
attr_writer :editable
|
225
|
+
|
226
|
+
# Indicates whether text is styled [Boolean]
|
227
|
+
attr_writer :styled
|
228
|
+
|
229
|
+
# Word delimiters [String]
|
230
|
+
attr_accessor :delimiters
|
231
|
+
|
232
|
+
# Text font [FXFont]
|
233
|
+
attr_accessor :font
|
234
|
+
|
235
|
+
# Text color [FXColor]
|
236
|
+
attr_accessor :textColor
|
237
|
+
|
238
|
+
# Selected text background color [FXColor]
|
239
|
+
attr_accessor :selBackColor
|
240
|
+
|
241
|
+
# Selected text color [FXColor]
|
242
|
+
attr_accessor :selTextColor
|
243
|
+
|
244
|
+
# Highlight text color [FXColor]
|
245
|
+
attr_accessor :hiliteTextColor
|
246
|
+
|
247
|
+
# Highlight text background color [FXColor]
|
248
|
+
attr_accessor :hiliteBackColor
|
249
|
+
|
250
|
+
# Active background color [FXColor]
|
251
|
+
attr_accessor :activeBackColor
|
252
|
+
|
253
|
+
# Cursor color [FXColor]
|
254
|
+
attr_accessor :cursorColor
|
255
|
+
|
256
|
+
# Line number color [FXColor]
|
257
|
+
attr_accessor :numberColor
|
258
|
+
|
259
|
+
# Bar color [FXColor]
|
260
|
+
attr_accessor :barColor
|
261
|
+
|
262
|
+
# Status line help text [String]
|
263
|
+
attr_accessor :helpText
|
264
|
+
|
265
|
+
# Tool tip message [String]
|
266
|
+
attr_accessor :tipText
|
267
|
+
|
268
|
+
# The text buffer [String]
|
269
|
+
attr_accessor :text
|
270
|
+
|
271
|
+
# The length of the text buffer [Integer]
|
272
|
+
attr_reader :length
|
273
|
+
|
274
|
+
# Anchor position [Integer]
|
275
|
+
attr_accessor :anchorPos
|
276
|
+
|
277
|
+
# Cursor row [Integer]
|
278
|
+
attr_accessor :cursorRow
|
279
|
+
|
280
|
+
# Cursor column [Integer]
|
281
|
+
attr_accessor :cursorCol
|
282
|
+
|
283
|
+
# Cursor position [Integer]
|
284
|
+
attr_reader :cursorPos
|
285
|
+
|
286
|
+
# Selection start position [Integer]
|
287
|
+
attr_reader :selStartPos
|
288
|
+
|
289
|
+
# Selection end position [Integer]
|
290
|
+
attr_reader :selEndPos
|
291
|
+
|
292
|
+
# Text widget style [Integer]
|
293
|
+
attr_accessor :textStyle
|
294
|
+
|
295
|
+
# Number of visible rows [Integer]
|
296
|
+
attr_accessor :visibleRows
|
297
|
+
|
298
|
+
# Number of visible columns [Integer]
|
299
|
+
attr_accessor :visibleColumns
|
300
|
+
|
301
|
+
#
|
302
|
+
# Brace and parenthesis match highlighting time, in milliseconds [Integer].
|
303
|
+
# A _hiliteMatchTime_ of 0 disables brace matching.
|
304
|
+
#
|
305
|
+
attr_accessor :hiliteMatchTime
|
306
|
+
|
307
|
+
# Array of hilite styles [an Array of FXHiliteStyle instances]
|
308
|
+
attr_accessor :hiliteStyles
|
309
|
+
|
310
|
+
#
|
311
|
+
# Return an initialized FXText instance.
|
312
|
+
#
|
313
|
+
# ==== Parameters:
|
314
|
+
#
|
315
|
+
# +p+:: the parent window for this text widget [FXComposite]
|
316
|
+
# +target+:: the message target, if any, for this text widget [FXObject]
|
317
|
+
# +selector+:: the message identifier for this text widget [Integer]
|
318
|
+
# +opts+:: text options [Integer]
|
319
|
+
# +x+:: initial x-position [Integer]
|
320
|
+
# +y+:: initial y-position [Integer]
|
321
|
+
# +width+:: initial width [Integer]
|
322
|
+
# +height+:: initial height [Integer]
|
323
|
+
#
|
324
|
+
def initialize(p, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0, padLeft=3, padRight=3, padTop=2, padBottom=2) # :yields: theText
|
325
|
+
end
|
326
|
+
|
327
|
+
# Return +true+ if text was modified
|
328
|
+
def modified? ; end
|
329
|
+
|
330
|
+
# Return +true+ if text is editable
|
331
|
+
def editable? ; end
|
332
|
+
|
333
|
+
# Set overstrike mode to +true+ or +false+.
|
334
|
+
def overstrike=(os); end
|
335
|
+
|
336
|
+
# Return +true+ if overstrike mode is activated.
|
337
|
+
def overstrike? ; end
|
338
|
+
|
339
|
+
# Return +true+ if styled text
|
340
|
+
def styled? ; end
|
341
|
+
|
342
|
+
# Get character at position _pos_ in text buffer
|
343
|
+
def getByte(pos); end
|
344
|
+
|
345
|
+
# Get wide character at position _pos_.
|
346
|
+
def getChar(pos); end
|
347
|
+
|
348
|
+
# Get length of wide character at position _pos_.
|
349
|
+
def getCharLen(pos); end
|
350
|
+
|
351
|
+
# Get style at position _pos_ in style buffer
|
352
|
+
def getStyle(pos); end
|
353
|
+
|
354
|
+
# Extract _n_ bytes of text from position _pos_ in the text buffer
|
355
|
+
def extractText(pos, n); end
|
356
|
+
|
357
|
+
# Extract _n_ bytes of style info from position _pos_ in the style buffer
|
358
|
+
def extractStyle(pos, n); end
|
359
|
+
|
360
|
+
# Replace the _m_ characters at _pos_ with _text_.
|
361
|
+
# If _notify_ is +true+, a +SEL_DELETED+ message is sent to the text
|
362
|
+
# widget's message target before the old text is removed, and a
|
363
|
+
# +SEL_INSERTED+ and +SEL_CHANGED+ message is sent after the new
|
364
|
+
# text is inserted.
|
365
|
+
def replaceText(pos, m, text, notify=false); end
|
366
|
+
|
367
|
+
# Replace the _m_ characters at _pos_ with _text_.
|
368
|
+
# If _notify_ is +true+, a +SEL_DELETED+ message is sent to the text
|
369
|
+
# widget's message target before the old text is removed, and a
|
370
|
+
# +SEL_INSERTED+ and +SEL_CHANGED+ message is sent after the new
|
371
|
+
# text is inserted.
|
372
|
+
def replaceStyledText(pos, m, text, style=0, notify=false); end
|
373
|
+
|
374
|
+
# Append _text_ to the end of the text buffer.
|
375
|
+
# If _notify_ is +true+, +SEL_INSERTED+ and +SEL_CHANGED+ messages
|
376
|
+
# are sent to the text widget's message target after the new text is
|
377
|
+
# added.
|
378
|
+
def appendText(text, notify=false); end
|
379
|
+
|
380
|
+
# Append _text_ to the end of the text buffer.
|
381
|
+
# If _notify_ is +true+, +SEL_INSERTED+ and +SEL_CHANGED+ messages
|
382
|
+
# are sent to the text widget's message target after the new text is
|
383
|
+
# added.
|
384
|
+
def appendStyledText(text, style=0, notify=false); end
|
385
|
+
|
386
|
+
# Insert _text_ at position _pos_ in the text buffer.
|
387
|
+
# If _notify_ is +true+, +SEL_INSERTED+ and +SEL_CHANGED+ messages
|
388
|
+
# are sent to the text widget's message target after the new text is
|
389
|
+
# inserted.
|
390
|
+
def insertText(pos, text, notify=false); end
|
391
|
+
|
392
|
+
# Insert _text_ at position _pos_ in the text buffer.
|
393
|
+
# If _notify_ is +true+, +SEL_INSERTED+ and +SEL_CHANGED+ messages
|
394
|
+
# are sent to the text widget's message target after the new text is
|
395
|
+
# inserted.
|
396
|
+
def insertStyledText(pos, text, style=0, notify=false); end
|
397
|
+
|
398
|
+
# Remove _n_ characters of text at position _pos_ in the buffer
|
399
|
+
# If _notify_ is +true+, a +SEL_DELETED+ message is sent to the
|
400
|
+
# text widget's message target before the text is removed and a
|
401
|
+
# +SEL_CHANGED+ message is sent after the change occurs.
|
402
|
+
def removeText(pos, n, notify=false); end
|
403
|
+
|
404
|
+
# Change the style of _n_ characters at position _pos_ in the text
|
405
|
+
# buffer to _style_. Here, _style_ is an integer index into the
|
406
|
+
# style table, indicating the new style for all the affected characters;
|
407
|
+
def changeStyle(pos, n, style); end
|
408
|
+
|
409
|
+
# Change the style of text range at position _pos_ in the text
|
410
|
+
# buffer to _style_. Here, _style_ an array of bytes indicating
|
411
|
+
# the new style.
|
412
|
+
def changeStyle(pos, style); end
|
413
|
+
|
414
|
+
# Change the text
|
415
|
+
# If _notify_ is +true+, +SEL_INSERTED+ and +SEL_CHANGED+ messages
|
416
|
+
# are sent to the text widget's message target after the new text is
|
417
|
+
# set.
|
418
|
+
def setText(text, notify=false); end
|
419
|
+
|
420
|
+
# Change the text in the buffer to new text
|
421
|
+
# If _notify_ is +true+, +SEL_INSERTED+ and +SEL_CHANGED+ messages
|
422
|
+
# are sent to the text widget's message target after the new text is
|
423
|
+
# set.
|
424
|
+
def setStyledText(text, style=0, notify=false); end
|
425
|
+
|
426
|
+
# Shift block of lines from position _startPos_ up to _endPos_ by given _amount_.
|
427
|
+
# If _notify_ is +true+, a +SEL_DELETED+ message is sent to the text
|
428
|
+
# widget's message target before the old text is removed, and a
|
429
|
+
# +SEL_INSERTED+ and +SEL_CHANGED+ message is sent after the new
|
430
|
+
# text is inserted.
|
431
|
+
def shiftText(startPos, endPos, amount, notify=false); end
|
432
|
+
|
433
|
+
#
|
434
|
+
# Search for _string_ in text buffer, and return the extent of
|
435
|
+
# the string as a two-element array of arrays.
|
436
|
+
# The first array contains the beginning index (or indices)
|
437
|
+
# and the second array contains the ending index (or indices).
|
438
|
+
# The search starts from the given
|
439
|
+
# _start_ position, scans forward (+SEARCH_FORWARD+) or backward
|
440
|
+
# (+SEARCH_BACKWARD+), and wraps around if +SEARCH_WRAP+ has been
|
441
|
+
# specified. The search type is either a plain search (+SEARCH_EXACT+),
|
442
|
+
# case insensitive search (+SEARCH_IGNORECASE+), or regular expression
|
443
|
+
# search (+SEARCH_REGEX+).
|
444
|
+
#
|
445
|
+
def findText(string, start=0, flags=SEARCH_FORWARD|SEARCH_WRAP|SEARCH_EXACT); end
|
446
|
+
|
447
|
+
# Return +true+ if position _pos_ is selected
|
448
|
+
def positionSelected?(pos); end
|
449
|
+
|
450
|
+
# Return +true+ if position _pos_ is fully visible
|
451
|
+
def positionVisible?(pos); end
|
452
|
+
|
453
|
+
# Return text position at given visible (_x_, _y_) coordinate
|
454
|
+
def getPosAt(x, y); end
|
455
|
+
|
456
|
+
# Count number of rows; _start_ should be on a row start
|
457
|
+
def countRows(start, end); end
|
458
|
+
|
459
|
+
# Count number of columns; _start_ should be on a row start
|
460
|
+
def countCols(start, end); end
|
461
|
+
|
462
|
+
# Count number of newlines
|
463
|
+
def countLines(start, end); end
|
464
|
+
|
465
|
+
# Return position of beginning of line containing position _pos_
|
466
|
+
def lineStart(pos); end
|
467
|
+
|
468
|
+
# Return position of end of line containing position _pos_
|
469
|
+
def lineEnd(pos); end
|
470
|
+
|
471
|
+
# Return start of next line
|
472
|
+
def nextLine(pos, nl=1); end
|
473
|
+
|
474
|
+
# Return start of previous line
|
475
|
+
def prevLine(pos, nl=1); end
|
476
|
+
|
477
|
+
# Return row start
|
478
|
+
def rowStart(pos); end
|
479
|
+
|
480
|
+
# Return row end
|
481
|
+
def rowEnd(pos); end
|
482
|
+
|
483
|
+
# Return start of next row
|
484
|
+
def nextRow(pos, nr=1); end
|
485
|
+
|
486
|
+
# Return start of previous row
|
487
|
+
def prevRow(pos, nr=1); end
|
488
|
+
|
489
|
+
# Return end of previous word
|
490
|
+
def leftWord(pos); end
|
491
|
+
|
492
|
+
# Return begin of next word
|
493
|
+
def rightWord(pos); end
|
494
|
+
|
495
|
+
# Return begin of word
|
496
|
+
def wordStart(pos); end
|
497
|
+
|
498
|
+
# Return end of word
|
499
|
+
def wordEnd(pos); end
|
500
|
+
|
501
|
+
# Return validated UTF8 character start position
|
502
|
+
def validPos(pos); end
|
503
|
+
|
504
|
+
# Retreat to the previous valid UTF8 character start
|
505
|
+
def dec(pos); end
|
506
|
+
|
507
|
+
# Advance to the next valid UTF8 character start
|
508
|
+
def inc(pos); end
|
509
|
+
|
510
|
+
# Make line containing _pos_ the top line
|
511
|
+
def setTopLine(pos); end
|
512
|
+
|
513
|
+
# Return position of top line
|
514
|
+
def getTopLine(); end
|
515
|
+
|
516
|
+
# Make line containing _pos_ the bottom line
|
517
|
+
def setBottomLine(pos); end
|
518
|
+
|
519
|
+
# Return the position of the bottom line
|
520
|
+
def getBottomLine(); end
|
521
|
+
|
522
|
+
# Make line containing _pos_ the center line
|
523
|
+
def setCenterLine(pos); end
|
524
|
+
|
525
|
+
# Set cursor row.
|
526
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the text
|
527
|
+
# widget's message target after the change occurs.
|
528
|
+
def setCursorRow(row, notify=false); end
|
529
|
+
|
530
|
+
# Set cursor column.
|
531
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the text
|
532
|
+
# widget's message target after the change occurs.
|
533
|
+
def setCursorCol(col, notify=false); end
|
534
|
+
|
535
|
+
# Set cursor position.
|
536
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the text
|
537
|
+
# widget's message target after the change occurs.
|
538
|
+
def setCursorPos(pos, notify=false); end
|
539
|
+
|
540
|
+
# Select all text.
|
541
|
+
# If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the text
|
542
|
+
# widget's message target before any previously selected text is
|
543
|
+
# deselected, then a +SEL_SELECTED+ message is sent after the new text
|
544
|
+
# is selected.
|
545
|
+
def selectAll(notify=false); end
|
546
|
+
|
547
|
+
# Select _len_ characters starting at position _pos_.
|
548
|
+
# If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the text
|
549
|
+
# widget's message target before any previously selected text is
|
550
|
+
# deselected, then a +SEL_SELECTED+ message is sent after the new text
|
551
|
+
# is selected.
|
552
|
+
def setSelection(pos, len, notify=false); end
|
553
|
+
|
554
|
+
# Extend selection to _pos_.
|
555
|
+
# If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the text
|
556
|
+
# widget's message target before any previously selected text is
|
557
|
+
# deselected, then a +SEL_SELECTED+ message is sent after the new text
|
558
|
+
# is selected.
|
559
|
+
def extendSelection(pos, textSelectionMode=SELECT_CHARS, notify=false); end
|
560
|
+
|
561
|
+
# Kill the selection.
|
562
|
+
# If _notify_ is +true+, a +SEL_DESELECTED+ message is sent to the text
|
563
|
+
# widget's message target before the text is deselected.
|
564
|
+
def killSelection(notify=false); end
|
565
|
+
|
566
|
+
# Highlight _len_ characters starting at position _pos_
|
567
|
+
def setHighlight(pos, len); end
|
568
|
+
|
569
|
+
# Unhighlight the text
|
570
|
+
def killHighlight(); end
|
571
|
+
|
572
|
+
# Scroll text to make the given position visible
|
573
|
+
def makePositionVisible(pos); end
|
574
|
+
|
575
|
+
# Return number of rows in buffer.
|
576
|
+
def numRows; end
|
577
|
+
end
|
578
|
+
end
|