fxruby 1.6.16 → 1.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/doc/apes02.html +2 -2
- data/doc/apes03.html +1 -1
- data/doc/book.html +1 -1
- data/doc/changes.html +53 -31
- data/doc/differences.html +9 -9
- data/doc/implementation.html +1 -1
- data/doc/library.html +5 -5
- data/doc/opengl.html +5 -5
- data/doc/pt02.html +1 -1
- data/doc/scintilla.html +4 -4
- data/doc/subversion.html +1 -1
- data/examples/dilbert.rb +1 -1
- data/ext/fox16/FXRbApp.cpp +5 -2
- data/ext/fox16/FXRbDataTarget.cpp +1 -1
- data/ext/fox16/FXRbGLViewer.cpp +1 -1
- data/ext/fox16/FXRuby.cpp +28 -22
- data/ext/fox16/core_wrap.cpp +6 -6
- data/ext/fox16/dc_wrap.cpp +60 -60
- data/ext/fox16/dialogs_wrap.cpp +17 -17
- data/ext/fox16/frames_wrap.cpp +3 -3
- data/ext/fox16/fx3d_wrap.cpp +18 -28
- data/ext/fox16/iconlist_wrap.cpp +6 -6
- data/ext/fox16/icons_wrap.cpp +26 -26
- data/ext/fox16/image_wrap.cpp +12 -12
- data/ext/fox16/include/FXMemoryBuffer.h +1 -1
- data/ext/fox16/include/FXRb4Splitter.h +1 -1
- data/ext/fox16/include/FXRb7Segment.h +1 -1
- data/ext/fox16/include/FXRbAccelTable.h +1 -1
- data/ext/fox16/include/FXRbApp.h +4 -4
- data/ext/fox16/include/FXRbArrowButton.h +1 -1
- data/ext/fox16/include/FXRbBMPIcon.h +1 -1
- data/ext/fox16/include/FXRbBMPImage.h +1 -1
- data/ext/fox16/include/FXRbBitmap.h +1 -1
- data/ext/fox16/include/FXRbBitmapFrame.h +1 -1
- data/ext/fox16/include/FXRbBitmapView.h +1 -1
- data/ext/fox16/include/FXRbButton.h +1 -1
- data/ext/fox16/include/FXRbCURCursor.h +1 -1
- data/ext/fox16/include/FXRbCanvas.h +1 -1
- data/ext/fox16/include/FXRbCheckButton.h +1 -1
- data/ext/fox16/include/FXRbChoiceBox.h +1 -1
- data/ext/fox16/include/FXRbColorBar.h +1 -1
- data/ext/fox16/include/FXRbColorDialog.h +1 -1
- data/ext/fox16/include/FXRbColorList.h +1 -1
- data/ext/fox16/include/FXRbColorRing.h +1 -1
- data/ext/fox16/include/FXRbColorSelector.h +1 -1
- data/ext/fox16/include/FXRbColorWell.h +1 -1
- data/ext/fox16/include/FXRbColorWheel.h +1 -1
- data/ext/fox16/include/FXRbComboBox.h +1 -1
- data/ext/fox16/include/FXRbCommon.h +1 -1
- data/ext/fox16/include/FXRbComposite.h +1 -1
- data/ext/fox16/include/FXRbCursor.h +1 -1
- data/ext/fox16/include/FXRbDC.h +1 -1
- data/ext/fox16/include/FXRbDCPrint.h +1 -1
- data/ext/fox16/include/FXRbDCWindow.h +1 -1
- data/ext/fox16/include/FXRbDataTarget.h +1 -1
- data/ext/fox16/include/FXRbDebugTarget.h +1 -1
- data/ext/fox16/include/FXRbDelegator.h +1 -1
- data/ext/fox16/include/FXRbDial.h +1 -1
- data/ext/fox16/include/FXRbDialogBox.h +1 -1
- data/ext/fox16/include/FXRbDict.h +1 -1
- data/ext/fox16/include/FXRbDirBox.h +1 -1
- data/ext/fox16/include/FXRbDirDialog.h +1 -1
- data/ext/fox16/include/FXRbDirList.h +1 -1
- data/ext/fox16/include/FXRbDirSelector.h +1 -1
- data/ext/fox16/include/FXRbDockBar.h +1 -1
- data/ext/fox16/include/FXRbDockHandler.h +1 -1
- data/ext/fox16/include/FXRbDockSite.h +1 -1
- data/ext/fox16/include/FXRbDockTitle.h +1 -1
- data/ext/fox16/include/FXRbDocument.h +1 -1
- data/ext/fox16/include/FXRbDragCorner.h +1 -1
- data/ext/fox16/include/FXRbDrawable.h +1 -1
- data/ext/fox16/include/FXRbDriveBox.h +1 -1
- data/ext/fox16/include/FXRbFileDialog.h +1 -1
- data/ext/fox16/include/FXRbFileDict.h +1 -1
- data/ext/fox16/include/FXRbFileList.h +1 -1
- data/ext/fox16/include/FXRbFileSelector.h +1 -1
- data/ext/fox16/include/FXRbFoldingList.h +1 -1
- data/ext/fox16/include/FXRbFont.h +1 -1
- data/ext/fox16/include/FXRbFontDialog.h +1 -1
- data/ext/fox16/include/FXRbFontSelector.h +1 -1
- data/ext/fox16/include/FXRbFrame.h +1 -1
- data/ext/fox16/include/FXRbGIFCursor.h +1 -1
- data/ext/fox16/include/FXRbGIFIcon.h +1 -1
- data/ext/fox16/include/FXRbGIFImage.h +1 -1
- data/ext/fox16/include/FXRbGLCanvas.h +1 -1
- data/ext/fox16/include/FXRbGLContext.h +1 -1
- data/ext/fox16/include/FXRbGLObject.h +1 -1
- data/ext/fox16/include/FXRbGLShape.h +1 -1
- data/ext/fox16/include/FXRbGLViewer.h +1 -1
- data/ext/fox16/include/FXRbGLVisual.h +1 -1
- data/ext/fox16/include/FXRbGradientBar.h +1 -1
- data/ext/fox16/include/FXRbGroupBox.h +1 -1
- data/ext/fox16/include/FXRbHeader.h +1 -1
- data/ext/fox16/include/FXRbHorizontalFrame.h +1 -1
- data/ext/fox16/include/FXRbICOIcon.h +1 -1
- data/ext/fox16/include/FXRbICOImage.h +1 -1
- data/ext/fox16/include/FXRbIcon.h +1 -1
- data/ext/fox16/include/FXRbIconList.h +1 -1
- data/ext/fox16/include/FXRbIconSource.h +1 -1
- data/ext/fox16/include/FXRbId.h +1 -1
- data/ext/fox16/include/FXRbImage.h +1 -1
- data/ext/fox16/include/FXRbImageFrame.h +1 -1
- data/ext/fox16/include/FXRbImageView.h +1 -1
- data/ext/fox16/include/FXRbInputDialog.h +1 -1
- data/ext/fox16/include/FXRbJPGIcon.h +1 -1
- data/ext/fox16/include/FXRbJPGImage.h +1 -1
- data/ext/fox16/include/FXRbKnob.h +1 -1
- data/ext/fox16/include/FXRbLabel.h +1 -1
- data/ext/fox16/include/FXRbList.h +1 -1
- data/ext/fox16/include/FXRbListBox.h +1 -1
- data/ext/fox16/include/FXRbMDIButton.h +1 -1
- data/ext/fox16/include/FXRbMDIChild.h +1 -1
- data/ext/fox16/include/FXRbMDIClient.h +1 -1
- data/ext/fox16/include/FXRbMainWindow.h +1 -1
- data/ext/fox16/include/FXRbMatrix.h +1 -1
- data/ext/fox16/include/FXRbMenuBar.h +1 -1
- data/ext/fox16/include/FXRbMenuButton.h +1 -1
- data/ext/fox16/include/FXRbMenuCaption.h +1 -1
- data/ext/fox16/include/FXRbMenuCascade.h +1 -1
- data/ext/fox16/include/FXRbMenuCheck.h +1 -1
- data/ext/fox16/include/FXRbMenuCommand.h +1 -1
- data/ext/fox16/include/FXRbMenuPane.h +1 -1
- data/ext/fox16/include/FXRbMenuRadio.h +1 -1
- data/ext/fox16/include/FXRbMenuSeparator.h +1 -1
- data/ext/fox16/include/FXRbMenuTitle.h +1 -1
- data/ext/fox16/include/FXRbMessageBox.h +1 -1
- data/ext/fox16/include/FXRbObject.h +1 -1
- data/ext/fox16/include/FXRbOptionMenu.h +1 -1
- data/ext/fox16/include/FXRbPCXIcon.h +1 -1
- data/ext/fox16/include/FXRbPCXImage.h +1 -1
- data/ext/fox16/include/FXRbPNGIcon.h +1 -1
- data/ext/fox16/include/FXRbPNGImage.h +1 -1
- data/ext/fox16/include/FXRbPPMIcon.h +1 -1
- data/ext/fox16/include/FXRbPPMImage.h +1 -1
- data/ext/fox16/include/FXRbPacker.h +1 -1
- data/ext/fox16/include/FXRbPicker.h +1 -1
- data/ext/fox16/include/FXRbPopup.h +1 -1
- data/ext/fox16/include/FXRbPrintDialog.h +1 -1
- data/ext/fox16/include/FXRbProgressBar.h +1 -1
- data/ext/fox16/include/FXRbProgressDialog.h +1 -1
- data/ext/fox16/include/FXRbRGBIcon.h +1 -1
- data/ext/fox16/include/FXRbRGBImage.h +1 -1
- data/ext/fox16/include/FXRbRadioButton.h +1 -1
- data/ext/fox16/include/FXRbRealSlider.h +1 -1
- data/ext/fox16/include/FXRbRealSpinner.h +1 -1
- data/ext/fox16/include/FXRbRecentFiles.h +1 -1
- data/ext/fox16/include/FXRbRegistry.h +1 -1
- data/ext/fox16/include/FXRbReplaceDialog.h +1 -1
- data/ext/fox16/include/FXRbRootWindow.h +1 -1
- data/ext/fox16/include/FXRbRuler.h +1 -1
- data/ext/fox16/include/FXRbScintilla.h +1 -1
- data/ext/fox16/include/FXRbScrollArea.h +1 -1
- data/ext/fox16/include/FXRbScrollBar.h +1 -1
- data/ext/fox16/include/FXRbScrollPane.h +1 -1
- data/ext/fox16/include/FXRbScrollWindow.h +1 -1
- data/ext/fox16/include/FXRbSearchDialog.h +1 -1
- data/ext/fox16/include/FXRbSeparator.h +1 -1
- data/ext/fox16/include/FXRbSettings.h +1 -1
- data/ext/fox16/include/FXRbShell.h +1 -1
- data/ext/fox16/include/FXRbShutter.h +1 -1
- data/ext/fox16/include/FXRbSlider.h +1 -1
- data/ext/fox16/include/FXRbSpinner.h +1 -1
- data/ext/fox16/include/FXRbSplashWindow.h +1 -1
- data/ext/fox16/include/FXRbSplitter.h +1 -1
- data/ext/fox16/include/FXRbSpring.h +1 -1
- data/ext/fox16/include/FXRbStatusBar.h +1 -1
- data/ext/fox16/include/FXRbStatusLine.h +1 -1
- data/ext/fox16/include/FXRbStream.h +1 -1
- data/ext/fox16/include/FXRbStringDict.h +1 -1
- data/ext/fox16/include/FXRbSwitcher.h +1 -1
- data/ext/fox16/include/FXRbTGAIcon.h +1 -1
- data/ext/fox16/include/FXRbTGAImage.h +1 -1
- data/ext/fox16/include/FXRbTIFIcon.h +1 -1
- data/ext/fox16/include/FXRbTIFImage.h +1 -1
- data/ext/fox16/include/FXRbTabBar.h +1 -1
- data/ext/fox16/include/FXRbTabBook.h +1 -1
- data/ext/fox16/include/FXRbTabItem.h +1 -1
- data/ext/fox16/include/FXRbTable.h +1 -1
- data/ext/fox16/include/FXRbText.h +1 -1
- data/ext/fox16/include/FXRbTextField.h +1 -1
- data/ext/fox16/include/FXRbToggleButton.h +1 -1
- data/ext/fox16/include/FXRbToolBar.h +1 -1
- data/ext/fox16/include/FXRbToolBarGrip.h +1 -1
- data/ext/fox16/include/FXRbToolBarShell.h +1 -1
- data/ext/fox16/include/FXRbToolBarTab.h +1 -1
- data/ext/fox16/include/FXRbToolTip.h +1 -1
- data/ext/fox16/include/FXRbTopWindow.h +1 -1
- data/ext/fox16/include/FXRbTranslator.h +1 -1
- data/ext/fox16/include/FXRbTreeList.h +1 -1
- data/ext/fox16/include/FXRbTreeListBox.h +1 -1
- data/ext/fox16/include/FXRbTriStateButton.h +1 -1
- data/ext/fox16/include/FXRbVerticalFrame.h +1 -1
- data/ext/fox16/include/FXRbVisual.h +1 -1
- data/ext/fox16/include/FXRbWindow.h +1 -1
- data/ext/fox16/include/FXRbWizard.h +1 -1
- data/ext/fox16/include/FXRbXBMIcon.h +1 -1
- data/ext/fox16/include/FXRbXBMImage.h +1 -1
- data/ext/fox16/include/FXRbXPMIcon.h +1 -1
- data/ext/fox16/include/FXRbXPMImage.h +1 -1
- data/ext/fox16/include/FXRuby.h +1 -1
- data/ext/fox16/list_wrap.cpp +8 -8
- data/ext/fox16/markfuncs.cpp +8 -8
- data/ext/fox16/table_wrap.cpp +34 -16
- data/ext/fox16/text_wrap.cpp +1 -1
- data/ext/fox16/treelist_wrap.cpp +7 -7
- data/ext/fox16/ui_wrap.cpp +10 -10
- data/ext/fox16/unregisterOwnedObjects.cpp +2 -2
- data/lib/fox16/kwargs.rb +4 -0
- data/lib/fox16/version.rb +1 -1
- data/rdoc-sources/FXTable.rb +24 -16
- data/tests/TC_FXRanged.rb +42 -0
- data/tests/TC_FXRangef.rb +12 -18
- data/tests/TC_FXTable.rb +193 -0
- metadata +4 -3
data/doc/pt02.html
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<html><head>
|
|
2
2
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
3
|
-
<title>Part II. Appendices</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook v5 XSL Stylesheets V1.72.0"><link rel="start" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="prev" href="changes.html" title="Chapter 10. Change History"><link rel="next" href="opengl.html" title="Appendix A. Using OpenGL with FXRuby"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Part II. Appendices</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="changes.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="opengl.html">Next</a></td></tr></table><hr></div><div class="part" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="
|
|
3
|
+
<title>Part II. Appendices</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook v5 XSL Stylesheets V1.72.0"><link rel="start" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="prev" href="changes.html" title="Chapter 10. Change History"><link rel="next" href="opengl.html" title="Appendix A. Using OpenGL with FXRuby"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Part II. Appendices</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="changes.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="opengl.html">Next</a></td></tr></table><hr></div><div class="part" lang="en"><div class="titlepage"><div><div><h1 class="title"><a name="d0e4693"></a>Part II. Appendices</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="appendix"><a href="opengl.html">A. Using OpenGL with FXRuby</a></span></dt><dt><span class="appendix"><a href="scintilla.html">B. Using Scintilla with FXRuby</a></span></dt><dt><span class="appendix"><a href="differences.html">C. Differences between FOX and FXRuby</a></span></dt><dt><span class="appendix"><a href="library.html">D. The FXRuby Standard Library</a></span></dt><dt><span class="appendix"><a href="implementation.html">E. Implementation</a></span></dt><dd><dl><dt><span class="section"><a href="implementation.html#d0e5744">Code Generation</a></span></dt><dt><span class="section"><a href="apes02.html">Object Life Cycles and Garbage Collection</a></span></dt><dd><dl><dt><span class="section"><a href="apes02.html#d0e5782">GL Objects</a></span></dt></dl></dd><dt><span class="section"><a href="apes03.html">Virtual Functions</a></span></dt></dl></dd><dt><span class="appendix"><a href="subversion.html">F. Getting the Sources from Subversion</a></span></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="changes.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="opengl.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 10. Change History </td><td width="20%" align="center"><a accesskey="h" href="book.html">Home</a></td><td width="40%" align="right" valign="top"> Appendix A. Using OpenGL with FXRuby</td></tr></table></div></body></html>
|
data/doc/scintilla.html
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<html><head>
|
|
2
2
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
3
|
-
<title>Appendix B. Using Scintilla with FXRuby</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook v5 XSL Stylesheets V1.72.0"><link rel="start" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt02.html" title="Part II. Appendices"><link rel="prev" href="opengl.html" title="Appendix A. Using OpenGL with FXRuby"><link rel="next" href="differences.html" title="Appendix C. Differences between FOX and FXRuby"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Appendix B. Using Scintilla with FXRuby</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="opengl.html">Prev</a> </td><th width="60%" align="center">Part II. Appendices</th><td width="20%" align="right"> <a accesskey="n" href="differences.html">Next</a></td></tr></table><hr></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="scintilla"></a>Appendix B. Using Scintilla with FXRuby</h2></div></div></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="
|
|
3
|
+
<title>Appendix B. Using Scintilla with FXRuby</title><link rel="stylesheet" href="style.css" type="text/css"><meta name="generator" content="DocBook v5 XSL Stylesheets V1.72.0"><link rel="start" href="book.html" title="Developing Graphical User Interfaces with FXRuby"><link rel="up" href="pt02.html" title="Part II. Appendices"><link rel="prev" href="opengl.html" title="Appendix A. Using OpenGL with FXRuby"><link rel="next" href="differences.html" title="Appendix C. Differences between FOX and FXRuby"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Appendix B. Using Scintilla with FXRuby</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="opengl.html">Prev</a> </td><th width="60%" align="center">Part II. Appendices</th><td width="20%" align="right"> <a accesskey="n" href="differences.html">Next</a></td></tr></table><hr></div><div class="appendix" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="scintilla"></a>Appendix B. Using Scintilla with FXRuby</h2></div></div></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4881"></a>What is Scintilla?</h2></div></div></div><p><a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.scintilla.org" target="_top">Scintilla</a> is a free
|
|
4
4
|
source code editing component developed by Neil Hodgson for the Win32 and
|
|
5
|
-
GTK+ platforms.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="
|
|
5
|
+
GTK+ platforms.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4888"></a>What is FXScintilla?</h2></div></div></div><p><a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://savannah.gnu.org/projects/fxscintilla" target="_top">FXScintilla </a> is
|
|
6
6
|
a FOX widget that wraps around the Scintilla component, or, if you wish,
|
|
7
7
|
the FOX "port" of Scintilla. Until recently it was developed by Gilles Filippini,
|
|
8
8
|
and as of this writing the latest release is available for download from
|
|
9
|
-
<a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://download.savannah.gnu.org/releases/fxscintilla/fxscintilla-1.71.tar.gz" target="_top">http://download.savannah.gnu.org/releases/fxscintilla/fxscintilla-1.71.tar.gz</a>.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="
|
|
9
|
+
<a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://download.savannah.gnu.org/releases/fxscintilla/fxscintilla-1.71.tar.gz" target="_top">http://download.savannah.gnu.org/releases/fxscintilla/fxscintilla-1.71.tar.gz</a>.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4898"></a>Compiling FXScintilla</h2></div></div></div><p>The FXScintilla distribution contains everything you need to build
|
|
10
10
|
the FXScintilla widget and begin using it in your C++-based FOX
|
|
11
11
|
applications. That is to say, you do not have to separately download the
|
|
12
12
|
Scintilla source code from the Scintilla home page. When you unpack the
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
other open-source software (like FOX) from the source code. The
|
|
18
18
|
<code class="filename">INSTALL</code> file in the top-level directory should
|
|
19
19
|
provide enough instruction for you to build and install FXScintilla for
|
|
20
|
-
either Unix or Microsoft Windows.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="
|
|
20
|
+
either Unix or Microsoft Windows.</p></div><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e4911"></a>Enabling FXScintilla Support in FXRuby</h2></div></div></div><p>The next step is to build a version of FXRuby (from its source code)
|
|
21
21
|
with the optional FXScintilla support enabled. If you're working on a Unix
|
|
22
22
|
or Linux system and have installed FXScintilla in one of the standard
|
|
23
23
|
installation directories (e.g. under <code class="filename">/usr/include</code> or <code class="filename">/usr/local/include</code>), the regular FXRuby build
|
data/doc/subversion.html
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://svnbook.red-bean.com/" target="_top">book</a>.</p><p>You're also going to need to have a working <a xmlns:xlink="http://www.w3.org/1999/xlink" href="http://www.swig.org/" target="_top">SWIG</a> installation so that you can
|
|
15
15
|
generate the C++ source files from the SWIG interface files. As of this
|
|
16
16
|
writing, FXRuby requires SWIG version 1.3.22; later versions of SWIG will
|
|
17
|
-
not work, nor will versions earlier than about 1.3.15.</p><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="
|
|
17
|
+
not work, nor will versions earlier than about 1.3.15.</p><div class="simplesect" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e5927"></a>Checking out the code</h2></div></div></div><p>To check out the development version (i.e. the trunk) for FXRuby,
|
|
18
18
|
type the following command:</p><pre class="screen">svn checkout svn://rubyforge.org/var/svn/fxruby/trunk/FXRuby</pre><p>Next, you'll need to use SWIG to generate the C++ source code from
|
|
19
19
|
the SWIG interface files. To do that, type:</p><pre class="screen">rake swig</pre><p>At this point, you should be ready to change to the top-level
|
|
20
20
|
directory and go through the normal build and installation process, as
|
data/examples/dilbert.rb
CHANGED
|
@@ -41,7 +41,7 @@ class DailyDilbert < FXMainWindow
|
|
|
41
41
|
|
|
42
42
|
def image_data
|
|
43
43
|
doc = Hpricot(open("http://www.dilbert.com/"))
|
|
44
|
-
url = doc.search("img").find { |e| e['
|
|
44
|
+
url = doc.search("img").find { |e| e['src'] =~ /\/dyn\/str_strip\/.*\.gif/ }
|
|
45
45
|
open("http://www.dilbert.com" + url['src'], "rb").read
|
|
46
46
|
end
|
|
47
47
|
|
data/ext/fox16/FXRbApp.cpp
CHANGED
|
@@ -21,14 +21,16 @@
|
|
|
21
21
|
***********************************************************************/
|
|
22
22
|
|
|
23
23
|
/***********************************************************************
|
|
24
|
-
* $Id
|
|
24
|
+
* $Id$
|
|
25
25
|
***********************************************************************/
|
|
26
26
|
|
|
27
27
|
#include "FXRbCommon.h"
|
|
28
28
|
|
|
29
|
+
#ifndef RUBY_1_9
|
|
29
30
|
extern "C" {
|
|
30
31
|
#include "rubysig.h" /* For CHECK_INTS */
|
|
31
32
|
}
|
|
33
|
+
#endif
|
|
32
34
|
|
|
33
35
|
#ifdef HAVE_SYS_TIME_H
|
|
34
36
|
#include <sys/time.h> /* For struct timeval */
|
|
@@ -100,7 +102,8 @@ long FXRbApp::onChoreThreads(FXObject*,FXSelector,void*){
|
|
|
100
102
|
if(!rb_thread_critical)
|
|
101
103
|
rb_thread_wait_for(wait);
|
|
102
104
|
#else
|
|
103
|
-
if(!rb_thread_critical) rb_thread_wait_for(wait);
|
|
105
|
+
// if(!rb_thread_critical) rb_thread_wait_for(wait);
|
|
106
|
+
rb_thread_wait_for(wait);
|
|
104
107
|
#endif /* RUBY_1_9 */
|
|
105
108
|
|
|
106
109
|
// Re-register this chore for next time
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
***********************************************************************/
|
|
22
22
|
|
|
23
23
|
/***********************************************************************
|
|
24
|
-
* $Id
|
|
24
|
+
* $Id$
|
|
25
25
|
***********************************************************************/
|
|
26
26
|
|
|
27
27
|
#include "FXRbCommon.h"
|
data/ext/fox16/FXRbGLViewer.cpp
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
***********************************************************************/
|
|
22
22
|
|
|
23
23
|
/***********************************************************************
|
|
24
|
-
* $Id
|
|
24
|
+
* $Id$
|
|
25
25
|
***********************************************************************/
|
|
26
26
|
|
|
27
27
|
#include "FXRbCommon.h"
|
data/ext/fox16/FXRuby.cpp
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
***********************************************************************/
|
|
22
22
|
|
|
23
23
|
/***********************************************************************
|
|
24
|
-
* $Id
|
|
24
|
+
* $Id$
|
|
25
25
|
***********************************************************************/
|
|
26
26
|
|
|
27
27
|
#ifdef _MSC_VER
|
|
@@ -53,9 +53,13 @@
|
|
|
53
53
|
#include <signal.h> // for definitions of SIGINT, etc.
|
|
54
54
|
#endif
|
|
55
55
|
|
|
56
|
+
#ifndef RUBY_1_9
|
|
56
57
|
extern "C" {
|
|
57
58
|
#include "rubyio.h" // for GetOpenFile(), etc.
|
|
58
59
|
}
|
|
60
|
+
#else
|
|
61
|
+
#include "ruby/io.h"
|
|
62
|
+
#endif
|
|
59
63
|
|
|
60
64
|
// Symbol table functions from Ruby. If we included "st.h" directly
|
|
61
65
|
// we'd be dealing with broken prototypes anyways, so just duplicate
|
|
@@ -246,7 +250,7 @@ void FXRbRegisterRubyObj(VALUE rubyObj,const void* foxObj) {
|
|
|
246
250
|
FXASSERT(!NIL_P(rubyObj));
|
|
247
251
|
FXASSERT(foxObj!=0);
|
|
248
252
|
FXRubyObjDesc* desc;
|
|
249
|
-
FXTRACE((1,"FXRbRegisterRubyObj(rubyObj=%d,foxObj=0x%08x)\n",rubyObj,foxObj));
|
|
253
|
+
FXTRACE((1,"FXRbRegisterRubyObj(rubyObj=%d,foxObj=0x%08x)\n",static_cast<int>(rubyObj),reinterpret_cast<unsigned int>(foxObj)));
|
|
250
254
|
if(FXMALLOC(&desc,FXRubyObjDesc,1)){
|
|
251
255
|
desc->obj=rubyObj;
|
|
252
256
|
desc->borrowed=false;
|
|
@@ -583,9 +587,7 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
583
587
|
type==SEL_CLICKED ||
|
|
584
588
|
type==SEL_DOUBLECLICKED ||
|
|
585
589
|
type==SEL_TRIPLECLICKED) {
|
|
586
|
-
fprintf(stderr,"ptr=0x%08x\n",ptr);
|
|
587
590
|
VALUE v=to_ruby(static_cast<FXColor>(reinterpret_cast<unsigned long>(ptr)));
|
|
588
|
-
fprintf(stderr,"v=%d\n",v);
|
|
589
591
|
return v;
|
|
590
592
|
}
|
|
591
593
|
}
|
|
@@ -677,7 +679,7 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
677
679
|
type==SEL_SELECTED ||
|
|
678
680
|
type==SEL_DESELECTED){
|
|
679
681
|
VALUE ary=rb_ary_new();
|
|
680
|
-
FXGLObject** objlist=reinterpret_cast<FXGLObject**>(ptr);
|
|
682
|
+
// FXGLObject** objlist=reinterpret_cast<FXGLObject**>(ptr);
|
|
681
683
|
// FIXME: objlist is a NULL-terminated array of pointers to FXGLObject
|
|
682
684
|
return ary;
|
|
683
685
|
}
|
|
@@ -921,7 +923,6 @@ static VALUE FXRbConvertMessageData(FXObject* sender,FXObject* recv,FXSelector s
|
|
|
921
923
|
* the appropriate C++ objects. That's what this function is for.
|
|
922
924
|
*/
|
|
923
925
|
void* FXRbGetExpectedData(VALUE recv,FXSelector key,VALUE value){
|
|
924
|
-
FXEvent* ev;
|
|
925
926
|
void *ptr;
|
|
926
927
|
static FXint intValue;
|
|
927
928
|
static FXint intRange[2];
|
|
@@ -1190,7 +1191,7 @@ static ID id_assocs;
|
|
|
1190
1191
|
* message.
|
|
1191
1192
|
*/
|
|
1192
1193
|
ID FXRbLookupHandler(FXObject* recv,FXSelector key){
|
|
1193
|
-
FXTRACE((100,"FXRbLookupHandler(recv=0x%08x(%s),FXSEL(%d,%d))\n",recv,recv->getClassName(),FXSELTYPE(key),FXSELID(key)));
|
|
1194
|
+
FXTRACE((100,"FXRbLookupHandler(recv=0x%08x(%s),FXSEL(%d,%d))\n",reinterpret_cast<unsigned int>(recv),recv->getClassName(),FXSELTYPE(key),FXSELID(key)));
|
|
1194
1195
|
ID id=0;
|
|
1195
1196
|
VALUE rubyObj=to_ruby(recv);
|
|
1196
1197
|
FXASSERT((recv==0 && rubyObj==Qnil) || (recv!=0 && rubyObj!=Qnil));
|
|
@@ -1198,7 +1199,7 @@ ID FXRbLookupHandler(FXObject* recv,FXSelector key){
|
|
|
1198
1199
|
VALUE assocs=rb_ivar_get(rubyObj,id_assocs);
|
|
1199
1200
|
VALUE entry;
|
|
1200
1201
|
FXSelector keylo,keyhi;
|
|
1201
|
-
for(long i=0;i<
|
|
1202
|
+
for(long i=0;i<RARRAY_LEN(assocs);i++){
|
|
1202
1203
|
entry=rb_ary_entry(assocs,i);
|
|
1203
1204
|
keylo=NUM2UINT(rb_ary_entry(entry,0));
|
|
1204
1205
|
keyhi=NUM2UINT(rb_ary_entry(entry,1));
|
|
@@ -1236,14 +1237,14 @@ static ID id_backtrace;
|
|
|
1236
1237
|
static VALUE handle_rescue(VALUE args,VALUE error){
|
|
1237
1238
|
VALUE info=rb_gv_get("$!");
|
|
1238
1239
|
VALUE errat=rb_funcall(info,id_backtrace,0);
|
|
1239
|
-
VALUE mesg=
|
|
1240
|
+
VALUE mesg=RARRAY_PTR(errat)[0];
|
|
1240
1241
|
fprintf(stderr,"%s: %s (%s)\n",
|
|
1241
1242
|
StringValuePtr(mesg),
|
|
1242
1243
|
RSTRING_PTR(rb_obj_as_string(info)),
|
|
1243
1244
|
rb_class2name(CLASS_OF(info)));
|
|
1244
|
-
for(int i=1;i<
|
|
1245
|
-
if(TYPE(
|
|
1246
|
-
fprintf(stderr,"\tfrom %s\n",StringValuePtr(
|
|
1245
|
+
for(int i=1;i<RARRAY_LEN(errat);i++){
|
|
1246
|
+
if(TYPE(RARRAY_PTR(errat)[i])==T_STRING){
|
|
1247
|
+
fprintf(stderr,"\tfrom %s\n",StringValuePtr(RARRAY_PTR(errat)[i]));
|
|
1247
1248
|
}
|
|
1248
1249
|
}
|
|
1249
1250
|
return Qnil;
|
|
@@ -1261,7 +1262,7 @@ long FXRbHandleMessage(FXObject* recv,ID func,FXObject* sender,FXSelector key,vo
|
|
|
1261
1262
|
hArgs.nargs=3;
|
|
1262
1263
|
VALUE retval;
|
|
1263
1264
|
|
|
1264
|
-
FXTRACE((100,"FXRbHandleMessage(recv=0x%08x(%s),FXSEL(%s,%d)\n",recv,recv->getClassName(),FXDebugTarget::messageTypeName[FXSELTYPE(key)],FXSELID(key)));
|
|
1265
|
+
FXTRACE((100,"FXRbHandleMessage(recv=0x%08x(%s),FXSEL(%s,%d)\n",reinterpret_cast<unsigned int>(recv),recv->getClassName(),FXDebugTarget::messageTypeName[FXSELTYPE(key)],FXSELID(key)));
|
|
1265
1266
|
|
|
1266
1267
|
if(FXRbCatchExceptions){
|
|
1267
1268
|
#ifdef RB_RESCUE2_BROKEN_PROTOTYPE
|
|
@@ -1411,11 +1412,11 @@ FXGLObject** FXRbCallGLObjectArrayMethod(FXGLViewer* recv,ID func,FXint x,FXint
|
|
|
1411
1412
|
VALUE result=rb_funcall(obj,func,4,INT2NUM(x),INT2NUM(y),INT2NUM(w),INT2NUM(h));
|
|
1412
1413
|
if(!NIL_P(result)){
|
|
1413
1414
|
Check_Type(result,T_ARRAY);
|
|
1414
|
-
if(FXMALLOC(&objects,FXGLObject*,
|
|
1415
|
-
for(long i=0; i<
|
|
1415
|
+
if(FXMALLOC(&objects,FXGLObject*,RARRAY_LEN(result)+1)){
|
|
1416
|
+
for(long i=0; i<RARRAY_LEN(result); i++){
|
|
1416
1417
|
objects[i]=reinterpret_cast<FXGLObject*>(DATA_PTR(rb_ary_entry(result,i)));
|
|
1417
1418
|
}
|
|
1418
|
-
objects[
|
|
1419
|
+
objects[RARRAY_LEN(result)]=0;
|
|
1419
1420
|
}
|
|
1420
1421
|
}
|
|
1421
1422
|
return objects; // caller must free this
|
|
@@ -1470,8 +1471,13 @@ FXFileAssoc* FXRbCallFileAssocMethod(const FXFileDict* recv,ID func,const char*
|
|
|
1470
1471
|
FXIcon* FXRbCallIconMethod(const FXTableItem* recv,ID func){
|
|
1471
1472
|
VALUE obj=FXRbGetRubyObj(recv,false);
|
|
1472
1473
|
FXASSERT(!NIL_P(obj));
|
|
1473
|
-
|
|
1474
|
-
|
|
1474
|
+
if(!NIL_P(obj)){
|
|
1475
|
+
VALUE result=rb_funcall(obj,func,0,NULL);
|
|
1476
|
+
return NIL_P(result) ? 0 : reinterpret_cast<FXIcon*>(DATA_PTR(result));
|
|
1477
|
+
}
|
|
1478
|
+
else{
|
|
1479
|
+
return 0;
|
|
1480
|
+
}
|
|
1475
1481
|
}
|
|
1476
1482
|
|
|
1477
1483
|
//----------------------------------------------------------------------
|
|
@@ -1879,28 +1885,28 @@ static st_table * appSensitiveDCs;
|
|
|
1879
1885
|
|
|
1880
1886
|
void FXRbRegisterAppSensitiveObject(FXObject* obj){
|
|
1881
1887
|
FXASSERT(obj!=0);
|
|
1882
|
-
FXTRACE((100,"%s:%d: FXRbRegisterAppSensitiveObject(obj=0x%08x(%s))\n",__FILE__,__LINE__,obj,obj->getClassName()));
|
|
1888
|
+
FXTRACE((100,"%s:%d: FXRbRegisterAppSensitiveObject(obj=0x%08x(%s))\n",__FILE__,__LINE__,reinterpret_cast<unsigned int>(obj),obj->getClassName()));
|
|
1883
1889
|
st_insert(appSensitiveObjs,reinterpret_cast<st_data_t>(obj),(st_data_t)0);
|
|
1884
1890
|
FXASSERT(st_lookup(appSensitiveObjs,reinterpret_cast<st_data_t>(obj),reinterpret_cast<st_data_t *>(0))!=0);
|
|
1885
1891
|
}
|
|
1886
1892
|
|
|
1887
1893
|
void FXRbRegisterAppSensitiveObject(FXDC* dc){
|
|
1888
1894
|
FXASSERT(dc!=0);
|
|
1889
|
-
FXTRACE((100,"%s:%d: FXRbRegisterAppSensitiveObject(dc=0x%08x)\n",__FILE__,__LINE__,dc));
|
|
1895
|
+
FXTRACE((100,"%s:%d: FXRbRegisterAppSensitiveObject(dc=0x%08x)\n",__FILE__,__LINE__,reinterpret_cast<unsigned int>(dc)));
|
|
1890
1896
|
st_insert(appSensitiveDCs,reinterpret_cast<st_data_t>(dc),(st_data_t)0);
|
|
1891
1897
|
FXASSERT(st_lookup(appSensitiveDCs,reinterpret_cast<st_data_t>(dc),reinterpret_cast<st_data_t *>(0))!=0);
|
|
1892
1898
|
}
|
|
1893
1899
|
|
|
1894
1900
|
void FXRbUnregisterAppSensitiveObject(FXObject* obj){
|
|
1895
1901
|
FXASSERT(obj!=0);
|
|
1896
|
-
FXTRACE((100,"%s:%d: FXRbUnregisterAppSensitiveObject(obj=0x%08x(%s))\n",__FILE__,__LINE__,obj,obj->getClassName()));
|
|
1902
|
+
FXTRACE((100,"%s:%d: FXRbUnregisterAppSensitiveObject(obj=0x%08x(%s))\n",__FILE__,__LINE__,reinterpret_cast<unsigned int>(obj),obj->getClassName()));
|
|
1897
1903
|
st_delete(appSensitiveObjs,reinterpret_cast<st_data_t *>(&obj),reinterpret_cast<st_data_t *>(0));
|
|
1898
1904
|
FXASSERT(st_lookup(appSensitiveObjs,reinterpret_cast<st_data_t>(obj),reinterpret_cast<st_data_t *>(0))==0);
|
|
1899
1905
|
}
|
|
1900
1906
|
|
|
1901
1907
|
void FXRbUnregisterAppSensitiveObject(FXDC* dc){
|
|
1902
1908
|
FXASSERT(dc!=0);
|
|
1903
|
-
FXTRACE((100,"%s:%d: FXRbUnregisterAppSensitiveObject(dc=0x%08x)\n",__FILE__,__LINE__,dc));
|
|
1909
|
+
FXTRACE((100,"%s:%d: FXRbUnregisterAppSensitiveObject(dc=0x%08x)\n",__FILE__,__LINE__,reinterpret_cast<unsigned int>(dc)));
|
|
1904
1910
|
st_delete(appSensitiveDCs,reinterpret_cast<st_data_t *>(&dc),reinterpret_cast<st_data_t *>(0));
|
|
1905
1911
|
FXASSERT(st_lookup(appSensitiveDCs,reinterpret_cast<st_data_t>(dc),reinterpret_cast<st_data_t *>(0))==0);
|
|
1906
1912
|
}
|
data/ext/fox16/core_wrap.cpp
CHANGED
|
@@ -1538,7 +1538,7 @@ VALUE FXWindow_getCursorPosition(FXWindow const *self){
|
|
|
1538
1538
|
bool FXWindow_acquireSelection(FXWindow *self,VALUE typesArray){
|
|
1539
1539
|
Check_Type(typesArray,T_ARRAY);
|
|
1540
1540
|
FXDragType *types=0;
|
|
1541
|
-
FXuint numtypes=
|
|
1541
|
+
FXuint numtypes=RARRAY_LEN(typesArray);
|
|
1542
1542
|
if(numtypes>0){
|
|
1543
1543
|
types=new FXDragType[numtypes];
|
|
1544
1544
|
for(FXuint i=0;i<numtypes;i++){
|
|
@@ -1552,7 +1552,7 @@ bool FXWindow_acquireSelection(FXWindow *self,VALUE typesArray){
|
|
|
1552
1552
|
bool FXWindow_acquireClipboard(FXWindow *self,VALUE typesArray){
|
|
1553
1553
|
Check_Type(typesArray,T_ARRAY);
|
|
1554
1554
|
FXDragType *types=0;
|
|
1555
|
-
FXuint numtypes=
|
|
1555
|
+
FXuint numtypes=RARRAY_LEN(typesArray);
|
|
1556
1556
|
if(numtypes>0){
|
|
1557
1557
|
types=new FXDragType[numtypes];
|
|
1558
1558
|
for(FXuint i=0;i<numtypes;i++){
|
|
@@ -1566,7 +1566,7 @@ bool FXWindow_acquireClipboard(FXWindow *self,VALUE typesArray){
|
|
|
1566
1566
|
bool FXWindow_beginDrag(FXWindow *self,VALUE typesArray){
|
|
1567
1567
|
Check_Type(typesArray,T_ARRAY);
|
|
1568
1568
|
FXDragType *types=0;
|
|
1569
|
-
FXuint numtypes=
|
|
1569
|
+
FXuint numtypes=RARRAY_LEN(typesArray);
|
|
1570
1570
|
if(numtypes>0){
|
|
1571
1571
|
types=new FXDragType[numtypes];
|
|
1572
1572
|
for(FXuint i=0;i<numtypes;i++){
|
|
@@ -2792,7 +2792,7 @@ static VALUE _wrap_FXRegion_allocate(VALUE self) {
|
|
|
2792
2792
|
static VALUE _wrap_new_FXRegion__SWIG_4(int argc, VALUE *argv, VALUE self) { FXPoint *arg1 = (FXPoint *) 0 ; FXuint arg2 ;
|
|
2793
2793
|
bool arg3 = (bool) 0 ; FXRegion *result; if ((argc < 1) || (argc > 2))
|
|
2794
2794
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); { Check_Type(argv[0], T_ARRAY);
|
|
2795
|
-
arg1 = new FXPoint[
|
|
2795
|
+
arg1 = new FXPoint[RARRAY_LEN(argv[0])]; arg2 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2796
2796
|
for (FXuint i = 0; i < arg2; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
2797
2797
|
arg1[i] = *pPoint; } } if (argc > 1) { arg3 = RTEST(argv[1]); } {
|
|
2798
2798
|
result = (FXRegion *)new FXRegion((FXPoint const *)arg1,arg2,arg3);
|
|
@@ -5219,8 +5219,8 @@ static VALUE _wrap_fxsaveGIF(int argc, VALUE *argv, VALUE self) { FXStream *arg1
|
|
|
5219
5219
|
FXint arg3 ; FXint arg4 ; FXbool arg5 = (FXbool) 1 ; bool result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 5))
|
|
5220
5220
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
|
|
5221
5221
|
SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXStream, 1); if (arg1 == NULL) rb_raise(rb_eTypeError, "null reference");
|
|
5222
|
-
{ arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,
|
|
5223
|
-
for(long i=0; i<
|
|
5222
|
+
{ arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
|
|
5223
|
+
for(long i=0; i<RARRAY_LEN(argv[1]); i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
|
|
5224
5224
|
} } arg3 = NUM2INT(argv[2]); arg4 = NUM2INT(argv[3]); if (argc > 4) { arg5 = to_FXbool(argv[4]); }
|
|
5225
5225
|
result = (bool)fxsaveGIF(*arg1,(FXColor const *)arg2,arg3,arg4,arg5); vresult = result ? Qtrue : Qfalse; FXFREE(&arg2);
|
|
5226
5226
|
return vresult; }
|
data/ext/fox16/dc_wrap.cpp
CHANGED
|
@@ -940,15 +940,15 @@ static VALUE _wrap_FXDC_drawPoint(int argc, VALUE *argv, VALUE self) { FXDC *arg
|
|
|
940
940
|
static VALUE _wrap_FXDC_drawPoints(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ;
|
|
941
941
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
942
942
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); {
|
|
943
|
-
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[
|
|
944
|
-
arg3 = static_cast<FXuint>(
|
|
943
|
+
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[RARRAY_LEN(argv[0])];
|
|
944
|
+
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) ); for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint;
|
|
945
945
|
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint); arg2[i] = *pPoint; } }
|
|
946
946
|
FXDC_drawPoints(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
947
947
|
static VALUE _wrap_FXDC_drawPointsRel(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ;
|
|
948
948
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
949
949
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); {
|
|
950
|
-
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[
|
|
951
|
-
arg3 = static_cast<FXuint>(
|
|
950
|
+
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[RARRAY_LEN(argv[0])];
|
|
951
|
+
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) ); for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint;
|
|
952
952
|
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint); arg2[i] = *pPoint; } }
|
|
953
953
|
FXDC_drawPointsRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
954
954
|
static VALUE _wrap_FXDC_drawLine(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXint arg2 ; FXint arg3 ;
|
|
@@ -958,21 +958,21 @@ static VALUE _wrap_FXDC_drawLine(int argc, VALUE *argv, VALUE self) { FXDC *arg1
|
|
|
958
958
|
static VALUE _wrap_FXDC_drawLines(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXPoint *arg2 = (FXPoint *) 0 ;
|
|
959
959
|
FXuint arg3 ; if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
960
960
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); { Check_Type(argv[0], T_ARRAY);
|
|
961
|
-
arg2 = new FXPoint[
|
|
961
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
962
962
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
963
963
|
arg2[i] = *pPoint; } } FXDC_drawLines(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
964
964
|
static VALUE _wrap_FXDC_drawLinesRel(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ;
|
|
965
965
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
966
966
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); {
|
|
967
|
-
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[
|
|
968
|
-
arg3 = static_cast<FXuint>(
|
|
967
|
+
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[RARRAY_LEN(argv[0])];
|
|
968
|
+
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) ); for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint;
|
|
969
969
|
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint); arg2[i] = *pPoint; } }
|
|
970
970
|
FXDC_drawLinesRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
971
971
|
static VALUE _wrap_FXDC_drawLineSegments(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ;
|
|
972
972
|
FXSegment *arg2 = (FXSegment *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
973
973
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); {
|
|
974
|
-
Check_Type(argv[0], T_ARRAY); arg2 = new FXSegment[
|
|
975
|
-
arg3 = static_cast<FXuint>(
|
|
974
|
+
Check_Type(argv[0], T_ARRAY); arg2 = new FXSegment[RARRAY_LEN(argv[0])];
|
|
975
|
+
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) ); for (FXuint i = 0; i < arg3; i++) { FXSegment *pSeg;
|
|
976
976
|
Data_Get_Struct(rb_ary_entry(argv[0], i), FXSegment, pSeg); arg2[i] = *pSeg; } }
|
|
977
977
|
FXDC_drawLineSegments(arg1,(FXSegment const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
978
978
|
static VALUE _wrap_FXDC_drawRectangle(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXint arg2 ; FXint arg3 ;
|
|
@@ -982,8 +982,8 @@ static VALUE _wrap_FXDC_drawRectangle(int argc, VALUE *argv, VALUE self) { FXDC
|
|
|
982
982
|
static VALUE _wrap_FXDC_drawRectangles(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ;
|
|
983
983
|
FXRectangle *arg2 = (FXRectangle *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
984
984
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); {
|
|
985
|
-
Check_Type(argv[0], T_ARRAY); arg2 = new FXRectangle[
|
|
986
|
-
arg3 = static_cast<FXuint>(
|
|
985
|
+
Check_Type(argv[0], T_ARRAY); arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
|
|
986
|
+
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) ); for (FXuint i = 0; i < arg3; i++) { FXRectangle *pRect;
|
|
987
987
|
Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect); arg2[i] = *pRect; } }
|
|
988
988
|
FXDC_drawRectangles(arg1,(FXRectangle const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
989
989
|
static VALUE _wrap_FXDC_drawRoundRectangle(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXint arg2 ;
|
|
@@ -999,7 +999,7 @@ static VALUE _wrap_FXDC_drawArc(int argc, VALUE *argv, VALUE self) { FXDC *arg1
|
|
|
999
999
|
static VALUE _wrap_FXDC_drawArcs(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXArc *arg2 = (FXArc *) 0 ;
|
|
1000
1000
|
FXuint arg3 ; if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1001
1001
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1002
|
-
arg2 = new FXArc[
|
|
1002
|
+
arg2 = new FXArc[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1003
1003
|
for (FXuint i = 0; i < arg3; i++) { FXArc *pArc; Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
|
|
1004
1004
|
arg2[i] = *pArc; } } FXDC_drawArcs(arg1,(FXArc const *)arg2,arg3); return Qnil; }
|
|
1005
1005
|
static VALUE _wrap_FXDC_drawEllipse(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXint arg2 ; FXint arg3 ;
|
|
@@ -1013,8 +1013,8 @@ static VALUE _wrap_FXDC_fillRectangle(int argc, VALUE *argv, VALUE self) { FXDC
|
|
|
1013
1013
|
static VALUE _wrap_FXDC_fillRectangles(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ;
|
|
1014
1014
|
FXRectangle *arg2 = (FXRectangle *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1015
1015
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); {
|
|
1016
|
-
Check_Type(argv[0], T_ARRAY); arg2 = new FXRectangle[
|
|
1017
|
-
arg3 = static_cast<FXuint>(
|
|
1016
|
+
Check_Type(argv[0], T_ARRAY); arg2 = new FXRectangle[RARRAY_LEN(argv[0])];
|
|
1017
|
+
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) ); for (FXuint i = 0; i < arg3; i++) { FXRectangle *pRect;
|
|
1018
1018
|
Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect); arg2[i] = *pRect; } }
|
|
1019
1019
|
FXDC_fillRectangles(arg1,(FXRectangle const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
1020
1020
|
static VALUE _wrap_FXDC_fillRoundRectangle(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXint arg2 ;
|
|
@@ -1039,49 +1039,49 @@ static VALUE _wrap_FXDC_fillArc(int argc, VALUE *argv, VALUE self) { FXDC *arg1
|
|
|
1039
1039
|
static VALUE _wrap_FXDC_fillArcs(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXArc *arg2 = (FXArc *) 0 ;
|
|
1040
1040
|
FXuint arg3 ; if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1041
1041
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1042
|
-
arg2 = new FXArc[
|
|
1042
|
+
arg2 = new FXArc[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1043
1043
|
for (FXuint i = 0; i < arg3; i++) { FXArc *pArc; Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
|
|
1044
1044
|
arg2[i] = *pArc; } } FXDC_fillArcs(arg1,(FXArc const *)arg2,arg3); return Qnil; }
|
|
1045
1045
|
static VALUE _wrap_FXDC_fillPolygon(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ;
|
|
1046
1046
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1047
1047
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); {
|
|
1048
|
-
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[
|
|
1049
|
-
arg3 = static_cast<FXuint>(
|
|
1048
|
+
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[RARRAY_LEN(argv[0])];
|
|
1049
|
+
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) ); for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint;
|
|
1050
1050
|
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint); arg2[i] = *pPoint; } }
|
|
1051
1051
|
FXDC_fillPolygon(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
1052
1052
|
static VALUE _wrap_FXDC_fillConcavePolygon(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ;
|
|
1053
1053
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1054
1054
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); {
|
|
1055
|
-
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[
|
|
1056
|
-
arg3 = static_cast<FXuint>(
|
|
1055
|
+
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[RARRAY_LEN(argv[0])];
|
|
1056
|
+
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) ); for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint;
|
|
1057
1057
|
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint); arg2[i] = *pPoint; } }
|
|
1058
1058
|
FXDC_fillConcavePolygon(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
1059
1059
|
static VALUE _wrap_FXDC_fillComplexPolygon(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ;
|
|
1060
1060
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1061
1061
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); {
|
|
1062
|
-
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[
|
|
1063
|
-
arg3 = static_cast<FXuint>(
|
|
1062
|
+
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[RARRAY_LEN(argv[0])];
|
|
1063
|
+
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) ); for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint;
|
|
1064
1064
|
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint); arg2[i] = *pPoint; } }
|
|
1065
1065
|
FXDC_fillComplexPolygon(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
1066
1066
|
static VALUE _wrap_FXDC_fillPolygonRel(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ;
|
|
1067
1067
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1068
1068
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); {
|
|
1069
|
-
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[
|
|
1070
|
-
arg3 = static_cast<FXuint>(
|
|
1069
|
+
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[RARRAY_LEN(argv[0])];
|
|
1070
|
+
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) ); for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint;
|
|
1071
1071
|
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint); arg2[i] = *pPoint; } }
|
|
1072
1072
|
FXDC_fillPolygonRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
1073
1073
|
static VALUE _wrap_FXDC_fillConcavePolygonRel(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ;
|
|
1074
1074
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1075
1075
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); {
|
|
1076
|
-
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[
|
|
1077
|
-
arg3 = static_cast<FXuint>(
|
|
1076
|
+
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[RARRAY_LEN(argv[0])];
|
|
1077
|
+
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) ); for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint;
|
|
1078
1078
|
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint); arg2[i] = *pPoint; } }
|
|
1079
1079
|
FXDC_fillConcavePolygonRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
1080
1080
|
static VALUE _wrap_FXDC_fillComplexPolygonRel(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ;
|
|
1081
1081
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1082
1082
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); {
|
|
1083
|
-
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[
|
|
1084
|
-
arg3 = static_cast<FXuint>(
|
|
1083
|
+
Check_Type(argv[0], T_ARRAY); arg2 = new FXPoint[RARRAY_LEN(argv[0])];
|
|
1084
|
+
arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) ); for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint;
|
|
1085
1085
|
Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint); arg2[i] = *pPoint; } }
|
|
1086
1086
|
FXDC_fillComplexPolygonRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
1087
1087
|
static VALUE _wrap_FXDC_drawHashBox(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXint arg2 ; FXint arg3 ;
|
|
@@ -1181,7 +1181,7 @@ static VALUE _wrap_FXDC_setBackground(int argc, VALUE *argv, VALUE self) { FXDC
|
|
|
1181
1181
|
static VALUE _wrap_FXDC_setDashes(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXuint arg2 ; FXchar *arg3 ;
|
|
1182
1182
|
FXuint arg4 ; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
|
1183
1183
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); arg2 = NUM2UINT(argv[0]); { Check_Type(argv[1], T_ARRAY);
|
|
1184
|
-
arg3 = new FXchar[
|
|
1184
|
+
arg3 = new FXchar[RARRAY_LEN(argv[1])]; arg4 = static_cast<FXuint>( RARRAY_LEN(argv[1]) );
|
|
1185
1185
|
for (FXuint i = 0; i < arg4; i++) { arg3[i] = NUM2INT(rb_ary_entry(argv[1], i)); } }
|
|
1186
1186
|
FXDC_setDashes(arg1,arg2,(FXchar const *)arg3,arg4); { delete [] arg3; } return Qnil; }
|
|
1187
1187
|
static VALUE _wrap_FXDC_setLineWidth(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXuint arg2 = (FXuint) 0 ;
|
|
@@ -1352,14 +1352,14 @@ static VALUE _wrap_FXDCWindow_drawPoints(int argc, VALUE *argv, VALUE self) { FX
|
|
|
1352
1352
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1353
1353
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1354
1354
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1355
|
-
arg2 = new FXPoint[
|
|
1355
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1356
1356
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
1357
1357
|
arg2[i] = *pPoint; } } FXDCWindow_drawPoints(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
1358
1358
|
static VALUE _wrap_FXDCWindow_drawPointsRel(int argc, VALUE *argv, VALUE self) { FXDCWindow *arg1 = (FXDCWindow *) 0 ;
|
|
1359
1359
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1360
1360
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1361
1361
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1362
|
-
arg2 = new FXPoint[
|
|
1362
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1363
1363
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
1364
1364
|
arg2[i] = *pPoint; } } FXDCWindow_drawPointsRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; }
|
|
1365
1365
|
return Qnil; }
|
|
@@ -1372,14 +1372,14 @@ static VALUE _wrap_FXDCWindow_drawLines(int argc, VALUE *argv, VALUE self) { FXD
|
|
|
1372
1372
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1373
1373
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1374
1374
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1375
|
-
arg2 = new FXPoint[
|
|
1375
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1376
1376
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
1377
1377
|
arg2[i] = *pPoint; } } FXDCWindow_drawLines(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
1378
1378
|
static VALUE _wrap_FXDCWindow_drawLinesRel(int argc, VALUE *argv, VALUE self) { FXDCWindow *arg1 = (FXDCWindow *) 0 ;
|
|
1379
1379
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1380
1380
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1381
1381
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1382
|
-
arg2 = new FXPoint[
|
|
1382
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1383
1383
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
1384
1384
|
arg2[i] = *pPoint; } } FXDCWindow_drawLinesRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; }
|
|
1385
1385
|
return Qnil; }
|
|
@@ -1387,7 +1387,7 @@ static VALUE _wrap_FXDCWindow_drawLineSegments(int argc, VALUE *argv, VALUE self
|
|
|
1387
1387
|
FXSegment *arg2 = (FXSegment *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1388
1388
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1389
1389
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1390
|
-
arg2 = new FXSegment[
|
|
1390
|
+
arg2 = new FXSegment[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1391
1391
|
for (FXuint i = 0; i < arg3; i++) { FXSegment *pSeg; Data_Get_Struct(rb_ary_entry(argv[0], i), FXSegment, pSeg);
|
|
1392
1392
|
arg2[i] = *pSeg; } } FXDCWindow_drawLineSegments(arg1,(FXSegment const *)arg2,arg3); { delete [] arg2; }
|
|
1393
1393
|
return Qnil; }
|
|
@@ -1400,7 +1400,7 @@ static VALUE _wrap_FXDCWindow_drawRectangles(int argc, VALUE *argv, VALUE self)
|
|
|
1400
1400
|
FXRectangle *arg2 = (FXRectangle *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1401
1401
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1402
1402
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1403
|
-
arg2 = new FXRectangle[
|
|
1403
|
+
arg2 = new FXRectangle[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1404
1404
|
for (FXuint i = 0; i < arg3; i++) { FXRectangle *pRect; Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
|
|
1405
1405
|
arg2[i] = *pRect; } } FXDCWindow_drawRectangles(arg1,(FXRectangle const *)arg2,arg3); { delete [] arg2; }
|
|
1406
1406
|
return Qnil; }
|
|
@@ -1420,7 +1420,7 @@ static VALUE _wrap_FXDCWindow_drawArcs(int argc, VALUE *argv, VALUE self) { FXDC
|
|
|
1420
1420
|
FXArc *arg2 = (FXArc *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1421
1421
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1422
1422
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1423
|
-
arg2 = new FXArc[
|
|
1423
|
+
arg2 = new FXArc[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1424
1424
|
for (FXuint i = 0; i < arg3; i++) { FXArc *pArc; Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
|
|
1425
1425
|
arg2[i] = *pArc; } } FXDCWindow_drawArcs(arg1,(FXArc const *)arg2,arg3); return Qnil; }
|
|
1426
1426
|
static VALUE _wrap_FXDCWindow_drawEllipse(int argc, VALUE *argv, VALUE self) { FXDCWindow *arg1 = (FXDCWindow *) 0 ;
|
|
@@ -1437,7 +1437,7 @@ static VALUE _wrap_FXDCWindow_fillRectangles(int argc, VALUE *argv, VALUE self)
|
|
|
1437
1437
|
FXRectangle *arg2 = (FXRectangle *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1438
1438
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1439
1439
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1440
|
-
arg2 = new FXRectangle[
|
|
1440
|
+
arg2 = new FXRectangle[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1441
1441
|
for (FXuint i = 0; i < arg3; i++) { FXRectangle *pRect; Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
|
|
1442
1442
|
arg2[i] = *pRect; } } FXDCWindow_fillRectangles(arg1,(FXRectangle const *)arg2,arg3); { delete [] arg2; }
|
|
1443
1443
|
return Qnil; }
|
|
@@ -1469,21 +1469,21 @@ static VALUE _wrap_FXDCWindow_fillArcs(int argc, VALUE *argv, VALUE self) { FXDC
|
|
|
1469
1469
|
FXArc *arg2 = (FXArc *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1470
1470
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1471
1471
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1472
|
-
arg2 = new FXArc[
|
|
1472
|
+
arg2 = new FXArc[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1473
1473
|
for (FXuint i = 0; i < arg3; i++) { FXArc *pArc; Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
|
|
1474
1474
|
arg2[i] = *pArc; } } FXDCWindow_fillArcs(arg1,(FXArc const *)arg2,arg3); return Qnil; }
|
|
1475
1475
|
static VALUE _wrap_FXDCWindow_fillPolygon(int argc, VALUE *argv, VALUE self) { FXDCWindow *arg1 = (FXDCWindow *) 0 ;
|
|
1476
1476
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1477
1477
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1478
1478
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1479
|
-
arg2 = new FXPoint[
|
|
1479
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1480
1480
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
1481
1481
|
arg2[i] = *pPoint; } } FXDCWindow_fillPolygon(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
1482
1482
|
static VALUE _wrap_FXDCWindow_fillConcavePolygon(int argc, VALUE *argv, VALUE self) { FXDCWindow *arg1 = (FXDCWindow *) 0 ;
|
|
1483
1483
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1484
1484
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1485
1485
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1486
|
-
arg2 = new FXPoint[
|
|
1486
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1487
1487
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
1488
1488
|
arg2[i] = *pPoint; } } FXDCWindow_fillConcavePolygon(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; }
|
|
1489
1489
|
return Qnil; }
|
|
@@ -1491,7 +1491,7 @@ static VALUE _wrap_FXDCWindow_fillComplexPolygon(int argc, VALUE *argv, VALUE se
|
|
|
1491
1491
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1492
1492
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1493
1493
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1494
|
-
arg2 = new FXPoint[
|
|
1494
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1495
1495
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
1496
1496
|
arg2[i] = *pPoint; } } FXDCWindow_fillComplexPolygon(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; }
|
|
1497
1497
|
return Qnil; }
|
|
@@ -1499,7 +1499,7 @@ static VALUE _wrap_FXDCWindow_fillPolygonRel(int argc, VALUE *argv, VALUE self)
|
|
|
1499
1499
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1500
1500
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1501
1501
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1502
|
-
arg2 = new FXPoint[
|
|
1502
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1503
1503
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
1504
1504
|
arg2[i] = *pPoint; } } FXDCWindow_fillPolygonRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; }
|
|
1505
1505
|
return Qnil; }
|
|
@@ -1507,7 +1507,7 @@ static VALUE _wrap_FXDCWindow_fillConcavePolygonRel(int argc, VALUE *argv, VALUE
|
|
|
1507
1507
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1508
1508
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1509
1509
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1510
|
-
arg2 = new FXPoint[
|
|
1510
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1511
1511
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
1512
1512
|
arg2[i] = *pPoint; } } FXDCWindow_fillConcavePolygonRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; }
|
|
1513
1513
|
return Qnil; }
|
|
@@ -1515,7 +1515,7 @@ static VALUE _wrap_FXDCWindow_fillComplexPolygonRel(int argc, VALUE *argv, VALUE
|
|
|
1515
1515
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
1516
1516
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1517
1517
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); { Check_Type(argv[0], T_ARRAY);
|
|
1518
|
-
arg2 = new FXPoint[
|
|
1518
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
1519
1519
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
1520
1520
|
arg2[i] = *pPoint; } } FXDCWindow_fillComplexPolygonRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; }
|
|
1521
1521
|
return Qnil; }
|
|
@@ -1626,7 +1626,7 @@ static VALUE _wrap_FXDCWindow_setBackground(int argc, VALUE *argv, VALUE self) {
|
|
|
1626
1626
|
static VALUE _wrap_FXDCWindow_setDashes(int argc, VALUE *argv, VALUE self) { FXDCWindow *arg1 = (FXDCWindow *) 0 ; FXuint arg2 ;
|
|
1627
1627
|
FXchar *arg3 ; FXuint arg4 ; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
|
1628
1628
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); arg2 = NUM2UINT(argv[0]); { Check_Type(argv[1], T_ARRAY);
|
|
1629
|
-
arg3 = new FXchar[
|
|
1629
|
+
arg3 = new FXchar[RARRAY_LEN(argv[1])]; arg4 = static_cast<FXuint>( RARRAY_LEN(argv[1]) );
|
|
1630
1630
|
for (FXuint i = 0; i < arg4; i++) { arg3[i] = NUM2INT(rb_ary_entry(argv[1], i)); } }
|
|
1631
1631
|
FXDCWindow_setDashes(arg1,arg2,(FXchar const *)arg3,arg4); { delete [] arg3; } return Qnil; }
|
|
1632
1632
|
static VALUE _wrap_FXDCWindow_setLineWidth(int argc, VALUE *argv, VALUE self) { FXDCWindow *arg1 = (FXDCWindow *) 0 ;
|
|
@@ -2005,14 +2005,14 @@ static VALUE _wrap_FXDCPrint_drawPoints(int argc, VALUE *argv, VALUE self) { FXD
|
|
|
2005
2005
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2006
2006
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2007
2007
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2008
|
-
arg2 = new FXPoint[
|
|
2008
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2009
2009
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
2010
2010
|
arg2[i] = *pPoint; } } FXDCPrint_drawPoints(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
2011
2011
|
static VALUE _wrap_FXDCPrint_drawPointsRel(int argc, VALUE *argv, VALUE self) { FXDCPrint *arg1 = (FXDCPrint *) 0 ;
|
|
2012
2012
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2013
2013
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2014
2014
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2015
|
-
arg2 = new FXPoint[
|
|
2015
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2016
2016
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
2017
2017
|
arg2[i] = *pPoint; } } FXDCPrint_drawPointsRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; }
|
|
2018
2018
|
return Qnil; }
|
|
@@ -2025,21 +2025,21 @@ static VALUE _wrap_FXDCPrint_drawLines(int argc, VALUE *argv, VALUE self) { FXDC
|
|
|
2025
2025
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2026
2026
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2027
2027
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2028
|
-
arg2 = new FXPoint[
|
|
2028
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2029
2029
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
2030
2030
|
arg2[i] = *pPoint; } } FXDCPrint_drawLines(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
2031
2031
|
static VALUE _wrap_FXDCPrint_drawLinesRel(int argc, VALUE *argv, VALUE self) { FXDCPrint *arg1 = (FXDCPrint *) 0 ;
|
|
2032
2032
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2033
2033
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2034
2034
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2035
|
-
arg2 = new FXPoint[
|
|
2035
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2036
2036
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
2037
2037
|
arg2[i] = *pPoint; } } FXDCPrint_drawLinesRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
2038
2038
|
static VALUE _wrap_FXDCPrint_drawLineSegments(int argc, VALUE *argv, VALUE self) { FXDCPrint *arg1 = (FXDCPrint *) 0 ;
|
|
2039
2039
|
FXSegment *arg2 = (FXSegment *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2040
2040
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2041
2041
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2042
|
-
arg2 = new FXSegment[
|
|
2042
|
+
arg2 = new FXSegment[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2043
2043
|
for (FXuint i = 0; i < arg3; i++) { FXSegment *pSeg; Data_Get_Struct(rb_ary_entry(argv[0], i), FXSegment, pSeg);
|
|
2044
2044
|
arg2[i] = *pSeg; } } FXDCPrint_drawLineSegments(arg1,(FXSegment const *)arg2,arg3); { delete [] arg2; }
|
|
2045
2045
|
return Qnil; }
|
|
@@ -2052,7 +2052,7 @@ static VALUE _wrap_FXDCPrint_drawRectangles(int argc, VALUE *argv, VALUE self) {
|
|
|
2052
2052
|
FXRectangle *arg2 = (FXRectangle *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2053
2053
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2054
2054
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2055
|
-
arg2 = new FXRectangle[
|
|
2055
|
+
arg2 = new FXRectangle[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2056
2056
|
for (FXuint i = 0; i < arg3; i++) { FXRectangle *pRect; Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
|
|
2057
2057
|
arg2[i] = *pRect; } } FXDCPrint_drawRectangles(arg1,(FXRectangle const *)arg2,arg3); { delete [] arg2; }
|
|
2058
2058
|
return Qnil; }
|
|
@@ -2072,7 +2072,7 @@ static VALUE _wrap_FXDCPrint_drawArcs(int argc, VALUE *argv, VALUE self) { FXDCP
|
|
|
2072
2072
|
FXArc *arg2 = (FXArc *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2073
2073
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2074
2074
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2075
|
-
arg2 = new FXArc[
|
|
2075
|
+
arg2 = new FXArc[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2076
2076
|
for (FXuint i = 0; i < arg3; i++) { FXArc *pArc; Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
|
|
2077
2077
|
arg2[i] = *pArc; } } FXDCPrint_drawArcs(arg1,(FXArc const *)arg2,arg3); return Qnil; }
|
|
2078
2078
|
static VALUE _wrap_FXDCPrint_drawEllipse(int argc, VALUE *argv, VALUE self) { FXDCPrint *arg1 = (FXDCPrint *) 0 ; FXint arg2 ;
|
|
@@ -2089,7 +2089,7 @@ static VALUE _wrap_FXDCPrint_fillRectangles(int argc, VALUE *argv, VALUE self) {
|
|
|
2089
2089
|
FXRectangle *arg2 = (FXRectangle *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2090
2090
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2091
2091
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2092
|
-
arg2 = new FXRectangle[
|
|
2092
|
+
arg2 = new FXRectangle[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2093
2093
|
for (FXuint i = 0; i < arg3; i++) { FXRectangle *pRect; Data_Get_Struct(rb_ary_entry(argv[0], i), FXRectangle, pRect);
|
|
2094
2094
|
arg2[i] = *pRect; } } FXDCPrint_fillRectangles(arg1,(FXRectangle const *)arg2,arg3); { delete [] arg2; }
|
|
2095
2095
|
return Qnil; }
|
|
@@ -2121,21 +2121,21 @@ static VALUE _wrap_FXDCPrint_fillArcs(int argc, VALUE *argv, VALUE self) { FXDCP
|
|
|
2121
2121
|
FXArc *arg2 = (FXArc *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2122
2122
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2123
2123
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2124
|
-
arg2 = new FXArc[
|
|
2124
|
+
arg2 = new FXArc[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2125
2125
|
for (FXuint i = 0; i < arg3; i++) { FXArc *pArc; Data_Get_Struct(rb_ary_entry(argv[0], i), FXArc, pArc);
|
|
2126
2126
|
arg2[i] = *pArc; } } FXDCPrint_fillArcs(arg1,(FXArc const *)arg2,arg3); return Qnil; }
|
|
2127
2127
|
static VALUE _wrap_FXDCPrint_fillPolygon(int argc, VALUE *argv, VALUE self) { FXDCPrint *arg1 = (FXDCPrint *) 0 ;
|
|
2128
2128
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2129
2129
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2130
2130
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2131
|
-
arg2 = new FXPoint[
|
|
2131
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2132
2132
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
2133
2133
|
arg2[i] = *pPoint; } } FXDCPrint_fillPolygon(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; } return Qnil; }
|
|
2134
2134
|
static VALUE _wrap_FXDCPrint_fillConcavePolygon(int argc, VALUE *argv, VALUE self) { FXDCPrint *arg1 = (FXDCPrint *) 0 ;
|
|
2135
2135
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2136
2136
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2137
2137
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2138
|
-
arg2 = new FXPoint[
|
|
2138
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2139
2139
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
2140
2140
|
arg2[i] = *pPoint; } } FXDCPrint_fillConcavePolygon(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; }
|
|
2141
2141
|
return Qnil; }
|
|
@@ -2143,7 +2143,7 @@ static VALUE _wrap_FXDCPrint_fillComplexPolygon(int argc, VALUE *argv, VALUE sel
|
|
|
2143
2143
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2144
2144
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2145
2145
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2146
|
-
arg2 = new FXPoint[
|
|
2146
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2147
2147
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
2148
2148
|
arg2[i] = *pPoint; } } FXDCPrint_fillComplexPolygon(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; }
|
|
2149
2149
|
return Qnil; }
|
|
@@ -2151,7 +2151,7 @@ static VALUE _wrap_FXDCPrint_fillPolygonRel(int argc, VALUE *argv, VALUE self) {
|
|
|
2151
2151
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2152
2152
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2153
2153
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2154
|
-
arg2 = new FXPoint[
|
|
2154
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2155
2155
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
2156
2156
|
arg2[i] = *pPoint; } } FXDCPrint_fillPolygonRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; }
|
|
2157
2157
|
return Qnil; }
|
|
@@ -2159,7 +2159,7 @@ static VALUE _wrap_FXDCPrint_fillConcavePolygonRel(int argc, VALUE *argv, VALUE
|
|
|
2159
2159
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2160
2160
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2161
2161
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2162
|
-
arg2 = new FXPoint[
|
|
2162
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2163
2163
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
2164
2164
|
arg2[i] = *pPoint; } } FXDCPrint_fillConcavePolygonRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; }
|
|
2165
2165
|
return Qnil; }
|
|
@@ -2167,7 +2167,7 @@ static VALUE _wrap_FXDCPrint_fillComplexPolygonRel(int argc, VALUE *argv, VALUE
|
|
|
2167
2167
|
FXPoint *arg2 = (FXPoint *) 0 ; FXuint arg3 ; if ((argc < 1) || (argc > 1))
|
|
2168
2168
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
2169
2169
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); { Check_Type(argv[0], T_ARRAY);
|
|
2170
|
-
arg2 = new FXPoint[
|
|
2170
|
+
arg2 = new FXPoint[RARRAY_LEN(argv[0])]; arg3 = static_cast<FXuint>( RARRAY_LEN(argv[0]) );
|
|
2171
2171
|
for (FXuint i = 0; i < arg3; i++) { FXPoint *pPoint; Data_Get_Struct(rb_ary_entry(argv[0], i), FXPoint, pPoint);
|
|
2172
2172
|
arg2[i] = *pPoint; } } FXDCPrint_fillComplexPolygonRel(arg1,(FXPoint const *)arg2,arg3); { delete [] arg2; }
|
|
2173
2173
|
return Qnil; }
|
|
@@ -2278,7 +2278,7 @@ static VALUE _wrap_FXDCPrint_setBackground(int argc, VALUE *argv, VALUE self) {
|
|
|
2278
2278
|
static VALUE _wrap_FXDCPrint_setDashes(int argc, VALUE *argv, VALUE self) { FXDCPrint *arg1 = (FXDCPrint *) 0 ; FXuint arg2 ;
|
|
2279
2279
|
FXchar *arg3 ; FXuint arg4 ; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
|
2280
2280
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); arg2 = NUM2UINT(argv[0]); { Check_Type(argv[1], T_ARRAY);
|
|
2281
|
-
arg3 = new FXchar[
|
|
2281
|
+
arg3 = new FXchar[RARRAY_LEN(argv[1])]; arg4 = static_cast<FXuint>( RARRAY_LEN(argv[1]) );
|
|
2282
2282
|
for (FXuint i = 0; i < arg4; i++) { arg3[i] = NUM2INT(rb_ary_entry(argv[1], i)); } }
|
|
2283
2283
|
FXDCPrint_setDashes(arg1,arg2,(FXchar const *)arg3,arg4); { delete [] arg3; } return Qnil; }
|
|
2284
2284
|
static VALUE _wrap_FXDCPrint_setLineWidth(int argc, VALUE *argv, VALUE self) { FXDCPrint *arg1 = (FXDCPrint *) 0 ;
|