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/ext/fox16/markfuncs.cpp
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
|
-
* $Id
|
|
2
|
+
* $Id$
|
|
3
3
|
***********************************************************************/
|
|
4
4
|
|
|
5
5
|
#include "FXRbCommon.h"
|
|
@@ -49,7 +49,7 @@ void FXRbAccelTable::markfunc(FXAccelTable* accelTable){
|
|
|
49
49
|
|
|
50
50
|
// Mark dependencies for the GC
|
|
51
51
|
void FXRbObject::markfunc(FXObject* obj){
|
|
52
|
-
FXTRACE((100,"%s::markfunc(0x%08x)\n",obj?obj->getClassName():"FXRbObject",obj));
|
|
52
|
+
FXTRACE((100,"%s::markfunc(0x%08x)\n",obj?obj->getClassName():"FXRbObject",reinterpret_cast<unsigned int>(obj)));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
|
|
@@ -1568,29 +1568,29 @@ void FXRbTGAImage::markfunc(FXTGAImage* self){
|
|
|
1568
1568
|
|
|
1569
1569
|
|
|
1570
1570
|
void FXRbBitmapFrame::markfunc(FXBitmapFrame* self){
|
|
1571
|
-
FXTRACE((100,"start FXRbBitmapFrame::markfunc(0x%08x)\n",self));
|
|
1571
|
+
FXTRACE((100,"start FXRbBitmapFrame::markfunc(0x%08x)\n",reinterpret_cast<unsigned int>(self)));
|
|
1572
1572
|
FXRbFrame::markfunc(self);
|
|
1573
1573
|
if(self!=0){
|
|
1574
1574
|
FXRbGcMark(self->getBitmap());
|
|
1575
1575
|
}
|
|
1576
|
-
FXTRACE((100,"end FXRbBitmapFrame::markfunc(0x%08x)\n",self));
|
|
1576
|
+
FXTRACE((100,"end FXRbBitmapFrame::markfunc(0x%08x)\n",reinterpret_cast<unsigned int>(self)));
|
|
1577
1577
|
}
|
|
1578
1578
|
|
|
1579
1579
|
|
|
1580
1580
|
void FXRbImageFrame::markfunc(FXImageFrame* self){
|
|
1581
|
-
FXTRACE((100,"start FXRbImageFrame::markfunc(0x%08x)\n",self));
|
|
1581
|
+
FXTRACE((100,"start FXRbImageFrame::markfunc(0x%08x)\n",reinterpret_cast<unsigned int>(self)));
|
|
1582
1582
|
FXRbFrame::markfunc(self);
|
|
1583
1583
|
if(self!=0){
|
|
1584
1584
|
FXRbGcMark(self->getImage());
|
|
1585
1585
|
}
|
|
1586
|
-
FXTRACE((100,"end FXRbImageFrame::markfunc(0x%08x)\n",self));
|
|
1586
|
+
FXTRACE((100,"end FXRbImageFrame::markfunc(0x%08x)\n",reinterpret_cast<unsigned int>(self)));
|
|
1587
1587
|
}
|
|
1588
1588
|
|
|
1589
1589
|
|
|
1590
1590
|
void FXRbGradientBar::markfunc(FXGradientBar* self){
|
|
1591
|
-
FXTRACE((100,"start FXRbGradientBar::markfunc(0x%08x)\n",self));
|
|
1591
|
+
FXTRACE((100,"start FXRbGradientBar::markfunc(0x%08x)\n",reinterpret_cast<unsigned int>(self)));
|
|
1592
1592
|
FXRbFrame::markfunc(self);
|
|
1593
|
-
FXTRACE((100,"end FXRbGradientBar::markfunc(0x%08x)\n",self));
|
|
1593
|
+
FXTRACE((100,"end FXRbGradientBar::markfunc(0x%08x)\n",reinterpret_cast<unsigned int>(self)));
|
|
1594
1594
|
}
|
|
1595
1595
|
|
|
1596
1596
|
#ifdef WITH_FXSCINTILLA
|
data/ext/fox16/table_wrap.cpp
CHANGED
|
@@ -1740,79 +1740,97 @@ static VALUE _wrap_FXTable_setColumnText(int argc, VALUE *argv, VALUE self) { FX
|
|
|
1740
1740
|
FXString *arg3 = 0 ; SwigValueWrapper<FXString > p3 ; if ((argc < 2) || (argc > 2))
|
|
1741
1741
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
|
1742
1742
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]);
|
|
1743
|
-
p3 = to_FXString(argv[1]); arg3 = &p3; (arg1
|
|
1743
|
+
p3 = to_FXString(argv[1]); arg3 = &p3; { if (arg2 < 0 || arg2 >= arg1->getNumColumns()) {
|
|
1744
|
+
rb_raise(rb_eIndexError, "table column out of bounds"); } } (arg1)->setColumnText(arg2,(FXString const &)*arg3);
|
|
1745
|
+
return Qnil; }
|
|
1744
1746
|
static VALUE _wrap_FXTable_getColumnText(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ; FXint arg2 ;
|
|
1745
1747
|
FXString result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
|
|
1746
1748
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1747
|
-
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]);
|
|
1749
|
+
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); {
|
|
1750
|
+
if (arg2 < 0 || arg2 >= arg1->getNumColumns()) { rb_raise(rb_eIndexError, "table column out of bounds"); } }
|
|
1748
1751
|
result = ((FXTable const *)arg1)->getColumnText(arg2); vresult = rb_str_new2((&result)->text()); return vresult; }
|
|
1749
1752
|
static VALUE _wrap_FXTable_setRowText(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ; FXint arg2 ;
|
|
1750
1753
|
FXString *arg3 = 0 ; SwigValueWrapper<FXString > p3 ; if ((argc < 2) || (argc > 2))
|
|
1751
1754
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
|
1752
1755
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]);
|
|
1753
|
-
p3 = to_FXString(argv[1]); arg3 = &p3; (arg1
|
|
1756
|
+
p3 = to_FXString(argv[1]); arg3 = &p3; { if (arg2 < 0 || arg2 >= arg1->getNumRows()) {
|
|
1757
|
+
rb_raise(rb_eIndexError, "table row out of bounds"); } } (arg1)->setRowText(arg2,(FXString const &)*arg3);
|
|
1758
|
+
return Qnil; }
|
|
1754
1759
|
static VALUE _wrap_FXTable_getRowText(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ; FXint arg2 ;
|
|
1755
1760
|
FXString result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
|
|
1756
1761
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1757
|
-
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]);
|
|
1762
|
+
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); {
|
|
1763
|
+
if (arg2 < 0 || arg2 >= arg1->getNumRows()) { rb_raise(rb_eIndexError, "table row out of bounds"); } }
|
|
1758
1764
|
result = ((FXTable const *)arg1)->getRowText(arg2); vresult = rb_str_new2((&result)->text()); return vresult; }
|
|
1759
1765
|
static VALUE _wrap_FXTable_setColumnIcon(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ; FXint arg2 ;
|
|
1760
1766
|
FXIcon *arg3 = (FXIcon *) 0 ; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
|
1761
1767
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]);
|
|
1762
|
-
SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_FXIcon, 1); (arg1
|
|
1768
|
+
SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_FXIcon, 1); { if (arg2 < 0 || arg2 >= arg1->getNumColumns()) {
|
|
1769
|
+
rb_raise(rb_eIndexError, "table column out of bounds"); } } (arg1)->setColumnIcon(arg2,arg3); return Qnil; }
|
|
1763
1770
|
static VALUE _wrap_FXTable_getColumnIcon(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ; FXint arg2 ;
|
|
1764
1771
|
FXIcon *result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
|
|
1765
1772
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1766
|
-
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]);
|
|
1773
|
+
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); {
|
|
1774
|
+
if (arg2 < 0 || arg2 >= arg1->getNumColumns()) { rb_raise(rb_eIndexError, "table column out of bounds"); } }
|
|
1767
1775
|
result = (FXIcon *)((FXTable const *)arg1)->getColumnIcon(arg2); {
|
|
1768
1776
|
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXIcon, (void **) &result); vresult = FXRbGetRubyObj(result, ty); }
|
|
1769
1777
|
return vresult; }
|
|
1770
1778
|
static VALUE _wrap_FXTable_setRowIcon(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ; FXint arg2 ;
|
|
1771
1779
|
FXIcon *arg3 = (FXIcon *) 0 ; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
|
1772
1780
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]);
|
|
1773
|
-
SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_FXIcon, 1); (arg1
|
|
1781
|
+
SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_FXIcon, 1); { if (arg2 < 0 || arg2 >= arg1->getNumRows()) {
|
|
1782
|
+
rb_raise(rb_eIndexError, "table row out of bounds"); } } (arg1)->setRowIcon(arg2,arg3); return Qnil; }
|
|
1774
1783
|
static VALUE _wrap_FXTable_getRowIcon(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ; FXint arg2 ;
|
|
1775
1784
|
FXIcon *result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
|
|
1776
1785
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1777
|
-
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]);
|
|
1786
|
+
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); {
|
|
1787
|
+
if (arg2 < 0 || arg2 >= arg1->getNumRows()) { rb_raise(rb_eIndexError, "table row out of bounds"); } }
|
|
1778
1788
|
result = (FXIcon *)((FXTable const *)arg1)->getRowIcon(arg2); {
|
|
1779
1789
|
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXIcon, (void **) &result); vresult = FXRbGetRubyObj(result, ty); }
|
|
1780
1790
|
return vresult; }
|
|
1781
1791
|
static VALUE _wrap_FXTable_setColumnIconPosition(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ;
|
|
1782
1792
|
FXint arg2 ; FXuint arg3 ; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
|
1783
|
-
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); arg3 = NUM2UINT(argv[1]);
|
|
1793
|
+
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); arg3 = NUM2UINT(argv[1]); {
|
|
1794
|
+
if (arg2 < 0 || arg2 >= arg1->getNumColumns()) { rb_raise(rb_eIndexError, "table column out of bounds"); } }
|
|
1784
1795
|
(arg1)->setColumnIconPosition(arg2,arg3); return Qnil; }
|
|
1785
1796
|
static VALUE _wrap_FXTable_getColumnIconPosition(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ;
|
|
1786
1797
|
FXint arg2 ; FXuint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
|
|
1787
1798
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1788
|
-
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]);
|
|
1799
|
+
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); {
|
|
1800
|
+
if (arg2 < 0 || arg2 >= arg1->getNumColumns()) { rb_raise(rb_eIndexError, "table column out of bounds"); } }
|
|
1789
1801
|
result = (FXuint)((FXTable const *)arg1)->getColumnIconPosition(arg2); vresult = UINT2NUM(result); return vresult; }
|
|
1790
1802
|
static VALUE _wrap_FXTable_setRowIconPosition(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ; FXint arg2 ;
|
|
1791
1803
|
FXuint arg3 ; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
|
1792
|
-
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); arg3 = NUM2UINT(argv[1]);
|
|
1804
|
+
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); arg3 = NUM2UINT(argv[1]); {
|
|
1805
|
+
if (arg2 < 0 || arg2 >= arg1->getNumRows()) { rb_raise(rb_eIndexError, "table row out of bounds"); } }
|
|
1793
1806
|
(arg1)->setRowIconPosition(arg2,arg3); return Qnil; }
|
|
1794
1807
|
static VALUE _wrap_FXTable_getRowIconPosition(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ; FXint arg2 ;
|
|
1795
1808
|
FXuint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
|
|
1796
1809
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1797
|
-
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]);
|
|
1810
|
+
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); {
|
|
1811
|
+
if (arg2 < 0 || arg2 >= arg1->getNumRows()) { rb_raise(rb_eIndexError, "table row out of bounds"); } }
|
|
1798
1812
|
result = (FXuint)((FXTable const *)arg1)->getRowIconPosition(arg2); vresult = UINT2NUM(result); return vresult; }
|
|
1799
1813
|
static VALUE _wrap_FXTable_setColumnJustify(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ; FXint arg2 ;
|
|
1800
1814
|
FXuint arg3 ; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
|
1801
|
-
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); arg3 = NUM2UINT(argv[1]);
|
|
1815
|
+
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); arg3 = NUM2UINT(argv[1]); {
|
|
1816
|
+
if (arg2 < 0 || arg2 >= arg1->getNumColumns()) { rb_raise(rb_eIndexError, "table column out of bounds"); } }
|
|
1802
1817
|
(arg1)->setColumnJustify(arg2,arg3); return Qnil; }
|
|
1803
1818
|
static VALUE _wrap_FXTable_getColumnJustify(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ; FXint arg2 ;
|
|
1804
1819
|
FXuint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
|
|
1805
1820
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1806
|
-
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]);
|
|
1821
|
+
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); {
|
|
1822
|
+
if (arg2 < 0 || arg2 >= arg1->getNumColumns()) { rb_raise(rb_eIndexError, "table column out of bounds"); } }
|
|
1807
1823
|
result = (FXuint)((FXTable const *)arg1)->getColumnJustify(arg2); vresult = UINT2NUM(result); return vresult; }
|
|
1808
1824
|
static VALUE _wrap_FXTable_setRowJustify(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ; FXint arg2 ;
|
|
1809
1825
|
FXuint arg3 ; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
|
1810
|
-
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); arg3 = NUM2UINT(argv[1]);
|
|
1826
|
+
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); arg3 = NUM2UINT(argv[1]); {
|
|
1827
|
+
if (arg2 < 0 || arg2 >= arg1->getNumRows()) { rb_raise(rb_eIndexError, "table row out of bounds"); } }
|
|
1811
1828
|
(arg1)->setRowJustify(arg2,arg3); return Qnil; }
|
|
1812
1829
|
static VALUE _wrap_FXTable_getRowJustify(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ; FXint arg2 ;
|
|
1813
1830
|
FXuint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
|
|
1814
1831
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
1815
|
-
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]);
|
|
1832
|
+
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTable, 1); arg2 = NUM2INT(argv[0]); {
|
|
1833
|
+
if (arg2 < 0 || arg2 >= arg1->getNumRows()) { rb_raise(rb_eIndexError, "table row out of bounds"); } }
|
|
1816
1834
|
result = (FXuint)((FXTable const *)arg1)->getRowJustify(arg2); vresult = UINT2NUM(result); return vresult; }
|
|
1817
1835
|
static VALUE _wrap_FXTable_setItemText(int argc, VALUE *argv, VALUE self) { FXTable *arg1 = (FXTable *) 0 ; FXint arg2 ;
|
|
1818
1836
|
FXint arg3 ; FXString *arg4 = 0 ; FXbool arg5 = (FXbool) 0 ; SwigValueWrapper<FXString > p4 ; if ((argc < 3) || (argc > 4))
|
data/ext/fox16/text_wrap.cpp
CHANGED
|
@@ -724,7 +724,7 @@ void FXText_setHiliteStyles(FXText *self,VALUE styles){
|
|
|
724
724
|
delete [] text->styles;
|
|
725
725
|
text->numStyles=0;
|
|
726
726
|
}
|
|
727
|
-
text->numStyles=
|
|
727
|
+
text->numStyles=RARRAY_LEN(styles);
|
|
728
728
|
if(text->numStyles>0){
|
|
729
729
|
text->styles=new FXHiliteStyle[text->numStyles];
|
|
730
730
|
for (long i=0; i<text->numStyles; i++){
|
data/ext/fox16/treelist_wrap.cpp
CHANGED
|
@@ -675,7 +675,7 @@ FXFoldingList *new_FXFoldingList(FXComposite *p,FXObject *tgt,FXSelector sel,FXu
|
|
|
675
675
|
}
|
|
676
676
|
void FXFoldingList_setHeaders(FXFoldingList *self,VALUE stringArray,FXint size){
|
|
677
677
|
Check_Type(stringArray,T_ARRAY);
|
|
678
|
-
long len=
|
|
678
|
+
long len=RARRAY_LEN(stringArray);
|
|
679
679
|
const FXchar **strings;
|
|
680
680
|
if(FXMALLOC(&strings,FXchar*,len+1)){
|
|
681
681
|
for(long i=0;i<len;i++){
|
|
@@ -1446,9 +1446,9 @@ static VALUE _wrap_FXFoldingList_fillItems(int argc, VALUE *argv, VALUE self) {
|
|
|
1446
1446
|
if ((argc < 2) || (argc > 6)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
|
1447
1447
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXFoldingList, 1);
|
|
1448
1448
|
SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXFoldingItem, 1); { arg3 = NULL; if(!NIL_P(argv[1])){
|
|
1449
|
-
Check_Type(argv[1], T_ARRAY); if (FXMALLOC(&arg3, FXchar *,
|
|
1450
|
-
for (long i = 0; i <
|
|
1451
|
-
arg3[i] = (FXchar *) StringValuePtr(e); } arg3[
|
|
1449
|
+
Check_Type(argv[1], T_ARRAY); if (FXMALLOC(&arg3, FXchar *, RARRAY_LEN(argv[1]))+1) {
|
|
1450
|
+
for (long i = 0; i < RARRAY_LEN(argv[1]); i++) { VALUE e = rb_ary_entry(argv[1], i);
|
|
1451
|
+
arg3[i] = (FXchar *) StringValuePtr(e); } arg3[RARRAY_LEN(argv[1])] = 0; } } } if (argc > 2) {
|
|
1452
1452
|
SWIG_ConvertPtr(argv[2], (void **) &arg4, SWIGTYPE_p_FXIcon, 1); } if (argc > 3) {
|
|
1453
1453
|
SWIG_ConvertPtr(argv[3], (void **) &arg5, SWIGTYPE_p_FXIcon, 1); } if (argc > 4) {
|
|
1454
1454
|
arg6 = (argv[4] == Qnil) ? NULL : (void *) argv[4]; } if (argc > 5) { arg7 = to_FXbool(argv[5]); }
|
|
@@ -2653,9 +2653,9 @@ static VALUE _wrap_FXTreeList_fillItems(int argc, VALUE *argv, VALUE self) { FXT
|
|
|
2653
2653
|
if ((argc < 2) || (argc > 6)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
|
2654
2654
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTreeList, 1);
|
|
2655
2655
|
SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXTreeItem, 1); { arg3 = NULL; if(!NIL_P(argv[1])){
|
|
2656
|
-
Check_Type(argv[1], T_ARRAY); if (FXMALLOC(&arg3, FXchar *,
|
|
2657
|
-
for (long i = 0; i <
|
|
2658
|
-
arg3[i] = (FXchar *) StringValuePtr(e); } arg3[
|
|
2656
|
+
Check_Type(argv[1], T_ARRAY); if (FXMALLOC(&arg3, FXchar *, RARRAY_LEN(argv[1]))+1) {
|
|
2657
|
+
for (long i = 0; i < RARRAY_LEN(argv[1]); i++) { VALUE e = rb_ary_entry(argv[1], i);
|
|
2658
|
+
arg3[i] = (FXchar *) StringValuePtr(e); } arg3[RARRAY_LEN(argv[1])] = 0; } } } if (argc > 2) {
|
|
2659
2659
|
SWIG_ConvertPtr(argv[2], (void **) &arg4, SWIGTYPE_p_FXIcon, 1); } if (argc > 3) {
|
|
2660
2660
|
SWIG_ConvertPtr(argv[3], (void **) &arg5, SWIGTYPE_p_FXIcon, 1); } if (argc > 4) {
|
|
2661
2661
|
arg6 = (argv[4] == Qnil) ? NULL : (void *) argv[4]; } if (argc > 5) { arg7 = to_FXbool(argv[5]); }
|
data/ext/fox16/ui_wrap.cpp
CHANGED
|
@@ -1013,7 +1013,7 @@ void FXFileSelector_setPatternList(FXFileSelector *self,VALUE ary){
|
|
|
1013
1013
|
patterns=FXString(StringValuePtr(ary));
|
|
1014
1014
|
}
|
|
1015
1015
|
else if(TYPE(ary)==T_ARRAY){
|
|
1016
|
-
for(long i=0; i<
|
|
1016
|
+
for(long i=0; i<RARRAY_LEN(ary); i++){
|
|
1017
1017
|
VALUE obj=rb_ary_entry(ary,i);
|
|
1018
1018
|
Check_Type(obj,T_STRING);
|
|
1019
1019
|
patterns+=FXString(StringValuePtr(obj))+FXString("\n");
|
|
@@ -4976,9 +4976,9 @@ static VALUE _wrap_FXComboBox_fillItems(int argc, VALUE *argv, VALUE self) { FXC
|
|
|
4976
4976
|
FXchar **arg2 = (FXchar **) 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
|
|
4977
4977
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
4978
4978
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXComboBox, 1); { arg2 = NULL; if(!NIL_P(argv[0])){
|
|
4979
|
-
Check_Type(argv[0], T_ARRAY); if (FXMALLOC(&arg2, FXchar *,
|
|
4980
|
-
for (long i = 0; i <
|
|
4981
|
-
arg2[i] = (FXchar *) StringValuePtr(e); } arg2[
|
|
4979
|
+
Check_Type(argv[0], T_ARRAY); if (FXMALLOC(&arg2, FXchar *, RARRAY_LEN(argv[0]))+1) {
|
|
4980
|
+
for (long i = 0; i < RARRAY_LEN(argv[0]); i++) { VALUE e = rb_ary_entry(argv[0], i);
|
|
4981
|
+
arg2[i] = (FXchar *) StringValuePtr(e); } arg2[RARRAY_LEN(argv[0])] = 0; } } }
|
|
4982
4982
|
result = (FXint)(arg1)->fillItems((FXchar const **)arg2); vresult = INT2NUM(result); FXFREE(&arg2); return vresult; }
|
|
4983
4983
|
static VALUE _wrap_FXComboBox_insertItem(int argc, VALUE *argv, VALUE self) { FXComboBox *arg1 = (FXComboBox *) 0 ; FXint arg2 ;
|
|
4984
4984
|
FXString *arg3 = 0 ; void *arg4 = (void *) 0 ; FXint result; SwigValueWrapper<FXString > p3 ; VALUE vresult = Qnil;
|
|
@@ -5441,9 +5441,9 @@ static VALUE _wrap_FXListBox_fillItems(int argc, VALUE *argv, VALUE self) { FXLi
|
|
|
5441
5441
|
FXchar **arg2 = (FXchar **) 0 ; FXIcon *arg3 = (FXIcon *) 0 ; void *arg4 = (void *) 0 ; FXint result; VALUE vresult = Qnil;
|
|
5442
5442
|
if ((argc < 1) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
|
|
5443
5443
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXListBox, 1); { arg2 = NULL; if(!NIL_P(argv[0])){
|
|
5444
|
-
Check_Type(argv[0], T_ARRAY); if (FXMALLOC(&arg2, FXchar *,
|
|
5445
|
-
for (long i = 0; i <
|
|
5446
|
-
arg2[i] = (FXchar *) StringValuePtr(e); } arg2[
|
|
5444
|
+
Check_Type(argv[0], T_ARRAY); if (FXMALLOC(&arg2, FXchar *, RARRAY_LEN(argv[0]))+1) {
|
|
5445
|
+
for (long i = 0; i < RARRAY_LEN(argv[0]); i++) { VALUE e = rb_ary_entry(argv[0], i);
|
|
5446
|
+
arg2[i] = (FXchar *) StringValuePtr(e); } arg2[RARRAY_LEN(argv[0])] = 0; } } } if (argc > 1) {
|
|
5447
5447
|
SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_FXIcon, 1); } if (argc > 2) {
|
|
5448
5448
|
arg4 = (argv[2] == Qnil) ? NULL : (void *) argv[2]; }
|
|
5449
5449
|
result = (FXint)(arg1)->fillItems((FXchar const **)arg2,arg3,arg4); vresult = INT2NUM(result); FXFREE(&arg2);
|
|
@@ -5900,9 +5900,9 @@ static VALUE _wrap_FXTreeListBox_fillItems(int argc, VALUE *argv, VALUE self) {
|
|
|
5900
5900
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
|
|
5901
5901
|
SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTreeListBox, 1);
|
|
5902
5902
|
SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXTreeItem, 1); { arg3 = NULL; if(!NIL_P(argv[1])){
|
|
5903
|
-
Check_Type(argv[1], T_ARRAY); if (FXMALLOC(&arg3, FXchar *,
|
|
5904
|
-
for (long i = 0; i <
|
|
5905
|
-
arg3[i] = (FXchar *) StringValuePtr(e); } arg3[
|
|
5903
|
+
Check_Type(argv[1], T_ARRAY); if (FXMALLOC(&arg3, FXchar *, RARRAY_LEN(argv[1]))+1) {
|
|
5904
|
+
for (long i = 0; i < RARRAY_LEN(argv[1]); i++) { VALUE e = rb_ary_entry(argv[1], i);
|
|
5905
|
+
arg3[i] = (FXchar *) StringValuePtr(e); } arg3[RARRAY_LEN(argv[1])] = 0; } } } if (argc > 2) {
|
|
5906
5906
|
SWIG_ConvertPtr(argv[2], (void **) &arg4, SWIGTYPE_p_FXIcon, 1); } if (argc > 3) {
|
|
5907
5907
|
SWIG_ConvertPtr(argv[3], (void **) &arg5, SWIGTYPE_p_FXIcon, 1); } if (argc > 4) {
|
|
5908
5908
|
arg6 = (argv[4] == Qnil) ? NULL : (void *) argv[4]; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/***********************************************************************
|
|
2
|
-
* $Id
|
|
2
|
+
* $Id$
|
|
3
3
|
***********************************************************************/
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -88,7 +88,7 @@ void FXRbScrollWindow::unregisterOwnedObjects(FXScrollWindow *self)
|
|
|
88
88
|
|
|
89
89
|
void FXRbTable::unregisterOwnedObjects(FXTable *self)
|
|
90
90
|
{
|
|
91
|
-
FXint
|
|
91
|
+
FXint r,c;
|
|
92
92
|
FXRbScrollArea::unregisterOwnedObjects(self);
|
|
93
93
|
FXRbHeader::unregisterOwnedObjects(self->getRowHeader());
|
|
94
94
|
FXRbHeader::unregisterOwnedObjects(self->getColumnHeader());
|
data/lib/fox16/kwargs.rb
CHANGED
data/lib/fox16/version.rb
CHANGED
data/rdoc-sources/FXTable.rb
CHANGED
|
@@ -608,18 +608,10 @@ module Fox
|
|
|
608
608
|
# Raises IndexError if _row_ is out of bounds.
|
|
609
609
|
def getRowHeight(row) ; end
|
|
610
610
|
|
|
611
|
-
# Set x-coordinate for column.
|
|
612
|
-
# Raises IndexError if _column_ is out of bounds.
|
|
613
|
-
def setColumnX(column, x) ; end
|
|
614
|
-
|
|
615
611
|
# Get x-coordinate of column.
|
|
616
612
|
# Raises IndexError if _column_ is out of bounds.
|
|
617
613
|
def getColumnX(column) ; end
|
|
618
614
|
|
|
619
|
-
# Set y-coordinate of row.
|
|
620
|
-
# Raises IndexError if _row_ is out of bounds.
|
|
621
|
-
def setRowY(row, y) ; end
|
|
622
|
-
|
|
623
615
|
# Get y-coordinate of row.
|
|
624
616
|
# Raises IndexError if _row_ is out of bounds.
|
|
625
617
|
def getRowY(row) ; end
|
|
@@ -645,51 +637,67 @@ module Fox
|
|
|
645
637
|
def fitColumnsToContents(col, nc=1); end
|
|
646
638
|
|
|
647
639
|
# Set column header at _index_ to _text_.
|
|
640
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
648
641
|
def setColumnText(index, text); end
|
|
649
642
|
|
|
650
643
|
# Return text of column header at _index_.
|
|
644
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
651
645
|
def getColumnText(index); end
|
|
652
646
|
|
|
653
647
|
# Set row header at _index_ to _text_.
|
|
648
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
654
649
|
def setRowText(index, text); end
|
|
655
650
|
|
|
656
651
|
# Return text of row header at _index_.
|
|
652
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
657
653
|
def getRowText(index); end
|
|
658
654
|
|
|
659
|
-
# Change column header icon
|
|
655
|
+
# Change column header icon.
|
|
656
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
660
657
|
def setColumnIcon(FXint index,FXIcon* icon);
|
|
661
658
|
|
|
662
|
-
# Return icon of column header at
|
|
659
|
+
# Return icon of column header at _index_.
|
|
660
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
663
661
|
def getColumnIcon(index); end
|
|
664
662
|
|
|
665
|
-
# Change row header icon
|
|
663
|
+
# Change row header icon.
|
|
664
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
666
665
|
def setRowIcon(index, icon); end
|
|
667
666
|
|
|
668
|
-
# Return icon of row header at
|
|
667
|
+
# Return icon of row header at _index_.
|
|
668
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
669
669
|
def getRowIcon(index); end
|
|
670
670
|
|
|
671
671
|
# Change column header icon position, e.g. FXHeaderItem::BEFORE, etc.
|
|
672
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
672
673
|
def setColumnIconPosition(index, mode); end
|
|
673
674
|
|
|
674
|
-
# Return icon position of column header at
|
|
675
|
+
# Return icon position of column header at _index_.
|
|
676
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
675
677
|
def getColumnIconPosition(index); end
|
|
676
678
|
|
|
677
679
|
# Change row header icon position, e.g. FXHeaderItem::BEFORE, etc.
|
|
680
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
678
681
|
def setRowIconPosition(index, mode); end
|
|
679
682
|
|
|
680
|
-
# Return icon position of row header at
|
|
683
|
+
# Return icon position of row header at _index_.
|
|
684
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
681
685
|
def getRowIconPosition(index); end
|
|
682
686
|
|
|
683
687
|
# Change column header justify, e.g. FXHeaderItem::RIGHT, etc.
|
|
688
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
684
689
|
def setColumnJustify(index, justify); end
|
|
685
690
|
|
|
686
|
-
# Return justify of column header at
|
|
691
|
+
# Return justify of column header at _index_.
|
|
692
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
687
693
|
def getColumnJustify(index); end
|
|
688
694
|
|
|
689
695
|
# Change row header justify, e.g. FXHeaderItem::RIGHT, etc.
|
|
696
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
690
697
|
def setRowJustify(index, justify); end
|
|
691
698
|
|
|
692
|
-
# Return justify of row header at
|
|
699
|
+
# Return justify of row header at _index_.
|
|
700
|
+
# Raises IndexError if _index_ is out of bounds.
|
|
693
701
|
def getRowJustify(index); end
|
|
694
702
|
|
|
695
703
|
#
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
require 'test/unit'
|
|
2
|
+
|
|
3
|
+
require 'fox16'
|
|
4
|
+
|
|
5
|
+
include Fox
|
|
6
|
+
|
|
7
|
+
class TC_FXRanged < Test::Unit::TestCase
|
|
8
|
+
|
|
9
|
+
WIDTH, HEIGHT, DEPTH = 2, 4, 6
|
|
10
|
+
|
|
11
|
+
def setup
|
|
12
|
+
@range = FXRanged.new(0, WIDTH, 0, HEIGHT, 0, DEPTH)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def test_lower_is_a_vector
|
|
16
|
+
assert_instance_of(FXVec3d, @range.lower)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def test_upper_is_a_vector
|
|
20
|
+
assert_instance_of(FXVec3d, @range.upper)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def test_width
|
|
24
|
+
assert_equal(@range.width, WIDTH)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def test_height
|
|
28
|
+
assert_equal(@range.height, HEIGHT)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def test_depth
|
|
32
|
+
assert_equal(@range.depth, DEPTH)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def test_longest
|
|
36
|
+
assert_equal([@range.width, @range.height, @range.depth].max, @range.longest)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def test_shortest
|
|
40
|
+
assert_equal([@range.width, @range.height, @range.depth].min, @range.shortest)
|
|
41
|
+
end
|
|
42
|
+
end
|
data/tests/TC_FXRangef.rb
CHANGED
|
@@ -12,37 +12,31 @@ class TC_FXRangef < Test::Unit::TestCase
|
|
|
12
12
|
@range = FXRangef.new(0, WIDTH, 0, HEIGHT, 0, DEPTH)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
def test_lower_is_a_vector
|
|
16
|
+
assert_instance_of(FXVec3f, @range.lower)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def test_upper_is_a_vector
|
|
20
|
+
assert_instance_of(FXVec3f, @range.upper)
|
|
21
|
+
end
|
|
22
|
+
|
|
15
23
|
def test_width
|
|
16
24
|
assert_equal(@range.width, WIDTH)
|
|
17
25
|
end
|
|
26
|
+
|
|
18
27
|
def test_height
|
|
19
28
|
assert_equal(@range.height, HEIGHT)
|
|
20
29
|
end
|
|
30
|
+
|
|
21
31
|
def test_depth
|
|
22
32
|
assert_equal(@range.depth, DEPTH)
|
|
23
33
|
end
|
|
34
|
+
|
|
24
35
|
def test_longest
|
|
25
36
|
assert_equal([@range.width, @range.height, @range.depth].max, @range.longest)
|
|
26
37
|
end
|
|
38
|
+
|
|
27
39
|
def test_shortest
|
|
28
40
|
assert_equal([@range.width, @range.height, @range.depth].min, @range.shortest)
|
|
29
41
|
end
|
|
30
|
-
def test_empty?
|
|
31
|
-
end
|
|
32
|
-
def test_overlaps?
|
|
33
|
-
end
|
|
34
|
-
def test_contains?
|
|
35
|
-
end
|
|
36
|
-
def test_include
|
|
37
|
-
end
|
|
38
|
-
def test_clipTo
|
|
39
|
-
end
|
|
40
|
-
def test_corners
|
|
41
|
-
end
|
|
42
|
-
def test_intersects?
|
|
43
|
-
end
|
|
44
|
-
def test_center
|
|
45
|
-
end
|
|
46
|
-
def test_diagonal
|
|
47
|
-
end
|
|
48
42
|
end
|