fxruby 1.6.16 → 1.6.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. data/doc/apes02.html +2 -2
  2. data/doc/apes03.html +1 -1
  3. data/doc/book.html +1 -1
  4. data/doc/changes.html +53 -31
  5. data/doc/differences.html +9 -9
  6. data/doc/implementation.html +1 -1
  7. data/doc/library.html +5 -5
  8. data/doc/opengl.html +5 -5
  9. data/doc/pt02.html +1 -1
  10. data/doc/scintilla.html +4 -4
  11. data/doc/subversion.html +1 -1
  12. data/examples/dilbert.rb +1 -1
  13. data/ext/fox16/FXRbApp.cpp +5 -2
  14. data/ext/fox16/FXRbDataTarget.cpp +1 -1
  15. data/ext/fox16/FXRbGLViewer.cpp +1 -1
  16. data/ext/fox16/FXRuby.cpp +28 -22
  17. data/ext/fox16/core_wrap.cpp +6 -6
  18. data/ext/fox16/dc_wrap.cpp +60 -60
  19. data/ext/fox16/dialogs_wrap.cpp +17 -17
  20. data/ext/fox16/frames_wrap.cpp +3 -3
  21. data/ext/fox16/fx3d_wrap.cpp +18 -28
  22. data/ext/fox16/iconlist_wrap.cpp +6 -6
  23. data/ext/fox16/icons_wrap.cpp +26 -26
  24. data/ext/fox16/image_wrap.cpp +12 -12
  25. data/ext/fox16/include/FXMemoryBuffer.h +1 -1
  26. data/ext/fox16/include/FXRb4Splitter.h +1 -1
  27. data/ext/fox16/include/FXRb7Segment.h +1 -1
  28. data/ext/fox16/include/FXRbAccelTable.h +1 -1
  29. data/ext/fox16/include/FXRbApp.h +4 -4
  30. data/ext/fox16/include/FXRbArrowButton.h +1 -1
  31. data/ext/fox16/include/FXRbBMPIcon.h +1 -1
  32. data/ext/fox16/include/FXRbBMPImage.h +1 -1
  33. data/ext/fox16/include/FXRbBitmap.h +1 -1
  34. data/ext/fox16/include/FXRbBitmapFrame.h +1 -1
  35. data/ext/fox16/include/FXRbBitmapView.h +1 -1
  36. data/ext/fox16/include/FXRbButton.h +1 -1
  37. data/ext/fox16/include/FXRbCURCursor.h +1 -1
  38. data/ext/fox16/include/FXRbCanvas.h +1 -1
  39. data/ext/fox16/include/FXRbCheckButton.h +1 -1
  40. data/ext/fox16/include/FXRbChoiceBox.h +1 -1
  41. data/ext/fox16/include/FXRbColorBar.h +1 -1
  42. data/ext/fox16/include/FXRbColorDialog.h +1 -1
  43. data/ext/fox16/include/FXRbColorList.h +1 -1
  44. data/ext/fox16/include/FXRbColorRing.h +1 -1
  45. data/ext/fox16/include/FXRbColorSelector.h +1 -1
  46. data/ext/fox16/include/FXRbColorWell.h +1 -1
  47. data/ext/fox16/include/FXRbColorWheel.h +1 -1
  48. data/ext/fox16/include/FXRbComboBox.h +1 -1
  49. data/ext/fox16/include/FXRbCommon.h +1 -1
  50. data/ext/fox16/include/FXRbComposite.h +1 -1
  51. data/ext/fox16/include/FXRbCursor.h +1 -1
  52. data/ext/fox16/include/FXRbDC.h +1 -1
  53. data/ext/fox16/include/FXRbDCPrint.h +1 -1
  54. data/ext/fox16/include/FXRbDCWindow.h +1 -1
  55. data/ext/fox16/include/FXRbDataTarget.h +1 -1
  56. data/ext/fox16/include/FXRbDebugTarget.h +1 -1
  57. data/ext/fox16/include/FXRbDelegator.h +1 -1
  58. data/ext/fox16/include/FXRbDial.h +1 -1
  59. data/ext/fox16/include/FXRbDialogBox.h +1 -1
  60. data/ext/fox16/include/FXRbDict.h +1 -1
  61. data/ext/fox16/include/FXRbDirBox.h +1 -1
  62. data/ext/fox16/include/FXRbDirDialog.h +1 -1
  63. data/ext/fox16/include/FXRbDirList.h +1 -1
  64. data/ext/fox16/include/FXRbDirSelector.h +1 -1
  65. data/ext/fox16/include/FXRbDockBar.h +1 -1
  66. data/ext/fox16/include/FXRbDockHandler.h +1 -1
  67. data/ext/fox16/include/FXRbDockSite.h +1 -1
  68. data/ext/fox16/include/FXRbDockTitle.h +1 -1
  69. data/ext/fox16/include/FXRbDocument.h +1 -1
  70. data/ext/fox16/include/FXRbDragCorner.h +1 -1
  71. data/ext/fox16/include/FXRbDrawable.h +1 -1
  72. data/ext/fox16/include/FXRbDriveBox.h +1 -1
  73. data/ext/fox16/include/FXRbFileDialog.h +1 -1
  74. data/ext/fox16/include/FXRbFileDict.h +1 -1
  75. data/ext/fox16/include/FXRbFileList.h +1 -1
  76. data/ext/fox16/include/FXRbFileSelector.h +1 -1
  77. data/ext/fox16/include/FXRbFoldingList.h +1 -1
  78. data/ext/fox16/include/FXRbFont.h +1 -1
  79. data/ext/fox16/include/FXRbFontDialog.h +1 -1
  80. data/ext/fox16/include/FXRbFontSelector.h +1 -1
  81. data/ext/fox16/include/FXRbFrame.h +1 -1
  82. data/ext/fox16/include/FXRbGIFCursor.h +1 -1
  83. data/ext/fox16/include/FXRbGIFIcon.h +1 -1
  84. data/ext/fox16/include/FXRbGIFImage.h +1 -1
  85. data/ext/fox16/include/FXRbGLCanvas.h +1 -1
  86. data/ext/fox16/include/FXRbGLContext.h +1 -1
  87. data/ext/fox16/include/FXRbGLObject.h +1 -1
  88. data/ext/fox16/include/FXRbGLShape.h +1 -1
  89. data/ext/fox16/include/FXRbGLViewer.h +1 -1
  90. data/ext/fox16/include/FXRbGLVisual.h +1 -1
  91. data/ext/fox16/include/FXRbGradientBar.h +1 -1
  92. data/ext/fox16/include/FXRbGroupBox.h +1 -1
  93. data/ext/fox16/include/FXRbHeader.h +1 -1
  94. data/ext/fox16/include/FXRbHorizontalFrame.h +1 -1
  95. data/ext/fox16/include/FXRbICOIcon.h +1 -1
  96. data/ext/fox16/include/FXRbICOImage.h +1 -1
  97. data/ext/fox16/include/FXRbIcon.h +1 -1
  98. data/ext/fox16/include/FXRbIconList.h +1 -1
  99. data/ext/fox16/include/FXRbIconSource.h +1 -1
  100. data/ext/fox16/include/FXRbId.h +1 -1
  101. data/ext/fox16/include/FXRbImage.h +1 -1
  102. data/ext/fox16/include/FXRbImageFrame.h +1 -1
  103. data/ext/fox16/include/FXRbImageView.h +1 -1
  104. data/ext/fox16/include/FXRbInputDialog.h +1 -1
  105. data/ext/fox16/include/FXRbJPGIcon.h +1 -1
  106. data/ext/fox16/include/FXRbJPGImage.h +1 -1
  107. data/ext/fox16/include/FXRbKnob.h +1 -1
  108. data/ext/fox16/include/FXRbLabel.h +1 -1
  109. data/ext/fox16/include/FXRbList.h +1 -1
  110. data/ext/fox16/include/FXRbListBox.h +1 -1
  111. data/ext/fox16/include/FXRbMDIButton.h +1 -1
  112. data/ext/fox16/include/FXRbMDIChild.h +1 -1
  113. data/ext/fox16/include/FXRbMDIClient.h +1 -1
  114. data/ext/fox16/include/FXRbMainWindow.h +1 -1
  115. data/ext/fox16/include/FXRbMatrix.h +1 -1
  116. data/ext/fox16/include/FXRbMenuBar.h +1 -1
  117. data/ext/fox16/include/FXRbMenuButton.h +1 -1
  118. data/ext/fox16/include/FXRbMenuCaption.h +1 -1
  119. data/ext/fox16/include/FXRbMenuCascade.h +1 -1
  120. data/ext/fox16/include/FXRbMenuCheck.h +1 -1
  121. data/ext/fox16/include/FXRbMenuCommand.h +1 -1
  122. data/ext/fox16/include/FXRbMenuPane.h +1 -1
  123. data/ext/fox16/include/FXRbMenuRadio.h +1 -1
  124. data/ext/fox16/include/FXRbMenuSeparator.h +1 -1
  125. data/ext/fox16/include/FXRbMenuTitle.h +1 -1
  126. data/ext/fox16/include/FXRbMessageBox.h +1 -1
  127. data/ext/fox16/include/FXRbObject.h +1 -1
  128. data/ext/fox16/include/FXRbOptionMenu.h +1 -1
  129. data/ext/fox16/include/FXRbPCXIcon.h +1 -1
  130. data/ext/fox16/include/FXRbPCXImage.h +1 -1
  131. data/ext/fox16/include/FXRbPNGIcon.h +1 -1
  132. data/ext/fox16/include/FXRbPNGImage.h +1 -1
  133. data/ext/fox16/include/FXRbPPMIcon.h +1 -1
  134. data/ext/fox16/include/FXRbPPMImage.h +1 -1
  135. data/ext/fox16/include/FXRbPacker.h +1 -1
  136. data/ext/fox16/include/FXRbPicker.h +1 -1
  137. data/ext/fox16/include/FXRbPopup.h +1 -1
  138. data/ext/fox16/include/FXRbPrintDialog.h +1 -1
  139. data/ext/fox16/include/FXRbProgressBar.h +1 -1
  140. data/ext/fox16/include/FXRbProgressDialog.h +1 -1
  141. data/ext/fox16/include/FXRbRGBIcon.h +1 -1
  142. data/ext/fox16/include/FXRbRGBImage.h +1 -1
  143. data/ext/fox16/include/FXRbRadioButton.h +1 -1
  144. data/ext/fox16/include/FXRbRealSlider.h +1 -1
  145. data/ext/fox16/include/FXRbRealSpinner.h +1 -1
  146. data/ext/fox16/include/FXRbRecentFiles.h +1 -1
  147. data/ext/fox16/include/FXRbRegistry.h +1 -1
  148. data/ext/fox16/include/FXRbReplaceDialog.h +1 -1
  149. data/ext/fox16/include/FXRbRootWindow.h +1 -1
  150. data/ext/fox16/include/FXRbRuler.h +1 -1
  151. data/ext/fox16/include/FXRbScintilla.h +1 -1
  152. data/ext/fox16/include/FXRbScrollArea.h +1 -1
  153. data/ext/fox16/include/FXRbScrollBar.h +1 -1
  154. data/ext/fox16/include/FXRbScrollPane.h +1 -1
  155. data/ext/fox16/include/FXRbScrollWindow.h +1 -1
  156. data/ext/fox16/include/FXRbSearchDialog.h +1 -1
  157. data/ext/fox16/include/FXRbSeparator.h +1 -1
  158. data/ext/fox16/include/FXRbSettings.h +1 -1
  159. data/ext/fox16/include/FXRbShell.h +1 -1
  160. data/ext/fox16/include/FXRbShutter.h +1 -1
  161. data/ext/fox16/include/FXRbSlider.h +1 -1
  162. data/ext/fox16/include/FXRbSpinner.h +1 -1
  163. data/ext/fox16/include/FXRbSplashWindow.h +1 -1
  164. data/ext/fox16/include/FXRbSplitter.h +1 -1
  165. data/ext/fox16/include/FXRbSpring.h +1 -1
  166. data/ext/fox16/include/FXRbStatusBar.h +1 -1
  167. data/ext/fox16/include/FXRbStatusLine.h +1 -1
  168. data/ext/fox16/include/FXRbStream.h +1 -1
  169. data/ext/fox16/include/FXRbStringDict.h +1 -1
  170. data/ext/fox16/include/FXRbSwitcher.h +1 -1
  171. data/ext/fox16/include/FXRbTGAIcon.h +1 -1
  172. data/ext/fox16/include/FXRbTGAImage.h +1 -1
  173. data/ext/fox16/include/FXRbTIFIcon.h +1 -1
  174. data/ext/fox16/include/FXRbTIFImage.h +1 -1
  175. data/ext/fox16/include/FXRbTabBar.h +1 -1
  176. data/ext/fox16/include/FXRbTabBook.h +1 -1
  177. data/ext/fox16/include/FXRbTabItem.h +1 -1
  178. data/ext/fox16/include/FXRbTable.h +1 -1
  179. data/ext/fox16/include/FXRbText.h +1 -1
  180. data/ext/fox16/include/FXRbTextField.h +1 -1
  181. data/ext/fox16/include/FXRbToggleButton.h +1 -1
  182. data/ext/fox16/include/FXRbToolBar.h +1 -1
  183. data/ext/fox16/include/FXRbToolBarGrip.h +1 -1
  184. data/ext/fox16/include/FXRbToolBarShell.h +1 -1
  185. data/ext/fox16/include/FXRbToolBarTab.h +1 -1
  186. data/ext/fox16/include/FXRbToolTip.h +1 -1
  187. data/ext/fox16/include/FXRbTopWindow.h +1 -1
  188. data/ext/fox16/include/FXRbTranslator.h +1 -1
  189. data/ext/fox16/include/FXRbTreeList.h +1 -1
  190. data/ext/fox16/include/FXRbTreeListBox.h +1 -1
  191. data/ext/fox16/include/FXRbTriStateButton.h +1 -1
  192. data/ext/fox16/include/FXRbVerticalFrame.h +1 -1
  193. data/ext/fox16/include/FXRbVisual.h +1 -1
  194. data/ext/fox16/include/FXRbWindow.h +1 -1
  195. data/ext/fox16/include/FXRbWizard.h +1 -1
  196. data/ext/fox16/include/FXRbXBMIcon.h +1 -1
  197. data/ext/fox16/include/FXRbXBMImage.h +1 -1
  198. data/ext/fox16/include/FXRbXPMIcon.h +1 -1
  199. data/ext/fox16/include/FXRbXPMImage.h +1 -1
  200. data/ext/fox16/include/FXRuby.h +1 -1
  201. data/ext/fox16/list_wrap.cpp +8 -8
  202. data/ext/fox16/markfuncs.cpp +8 -8
  203. data/ext/fox16/table_wrap.cpp +34 -16
  204. data/ext/fox16/text_wrap.cpp +1 -1
  205. data/ext/fox16/treelist_wrap.cpp +7 -7
  206. data/ext/fox16/ui_wrap.cpp +10 -10
  207. data/ext/fox16/unregisterOwnedObjects.cpp +2 -2
  208. data/lib/fox16/kwargs.rb +4 -0
  209. data/lib/fox16/version.rb +1 -1
  210. data/rdoc-sources/FXTable.rb +24 -16
  211. data/tests/TC_FXRanged.rb +42 -0
  212. data/tests/TC_FXRangef.rb +12 -18
  213. data/tests/TC_FXTable.rb +193 -0
  214. metadata +4 -3
@@ -773,7 +773,7 @@ void FXFileDialog_setPatternList(FXFileDialog *self,VALUE ary){
773
773
  patterns=FXString(StringValuePtr(ary));
774
774
  }
775
775
  else if(TYPE(ary)==T_ARRAY){
776
- for(long i=0; i<RARRAY(ary)->len; i++){
776
+ for(long i=0; i<RARRAY_LEN(ary); i++){
777
777
  VALUE obj=rb_ary_entry(ary,i);
778
778
  Check_Type(obj,T_STRING);
779
779
  patterns+=FXString(StringValuePtr(obj))+FXString("\n");
@@ -5260,9 +5260,9 @@ static VALUE _wrap_new_FXChoiceBox__SWIG_0(int argc, VALUE *argv, VALUE self) {
5260
5260
  if ((argc < 5) || (argc > 10)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc);
5261
5261
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXWindow, 1); p2 = to_FXString(argv[1]); arg2 = &p2;
5262
5262
  p3 = to_FXString(argv[2]); arg3 = &p3; SWIG_ConvertPtr(argv[3], (void **) &arg4, SWIGTYPE_p_FXIcon, 1); { arg5 = NULL;
5263
- if(!NIL_P(argv[4])){ Check_Type(argv[4], T_ARRAY); if (FXMALLOC(&arg5, FXchar *, RARRAY(argv[4])->len)+1) {
5264
- for (long i = 0; i < RARRAY(argv[4])->len; i++) { VALUE e = rb_ary_entry(argv[4], i);
5265
- arg5[i] = (FXchar *) StringValuePtr(e); } arg5[RARRAY(argv[4])->len] = 0; } } } if (argc > 5) {
5263
+ if(!NIL_P(argv[4])){ Check_Type(argv[4], T_ARRAY); if (FXMALLOC(&arg5, FXchar *, RARRAY_LEN(argv[4]))+1) {
5264
+ for (long i = 0; i < RARRAY_LEN(argv[4]); i++) { VALUE e = rb_ary_entry(argv[4], i);
5265
+ arg5[i] = (FXchar *) StringValuePtr(e); } arg5[RARRAY_LEN(argv[4])] = 0; } } } if (argc > 5) {
5266
5266
  arg6 = NUM2UINT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); }
5267
5267
  if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); } {
5268
5268
  result = (FXChoiceBox *)new_FXChoiceBox__SWIG_0(arg1,(FXString const &)*arg2,(FXString const &)*arg3,arg4,(FXchar const **)arg5,arg6,arg7,arg8,arg9,arg10);
@@ -5285,9 +5285,9 @@ static VALUE _wrap_new_FXChoiceBox__SWIG_1(int argc, VALUE *argv, VALUE self) {
5285
5285
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc);
5286
5286
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); p2 = to_FXString(argv[1]); arg2 = &p2;
5287
5287
  p3 = to_FXString(argv[2]); arg3 = &p3; SWIG_ConvertPtr(argv[3], (void **) &arg4, SWIGTYPE_p_FXIcon, 1); { arg5 = NULL;
5288
- if(!NIL_P(argv[4])){ Check_Type(argv[4], T_ARRAY); if (FXMALLOC(&arg5, FXchar *, RARRAY(argv[4])->len)+1) {
5289
- for (long i = 0; i < RARRAY(argv[4])->len; i++) { VALUE e = rb_ary_entry(argv[4], i);
5290
- arg5[i] = (FXchar *) StringValuePtr(e); } arg5[RARRAY(argv[4])->len] = 0; } } } if (argc > 5) {
5288
+ if(!NIL_P(argv[4])){ Check_Type(argv[4], T_ARRAY); if (FXMALLOC(&arg5, FXchar *, RARRAY_LEN(argv[4]))+1) {
5289
+ for (long i = 0; i < RARRAY_LEN(argv[4]); i++) { VALUE e = rb_ary_entry(argv[4], i);
5290
+ arg5[i] = (FXchar *) StringValuePtr(e); } arg5[RARRAY_LEN(argv[4])] = 0; } } } if (argc > 5) {
5291
5291
  arg6 = NUM2UINT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); }
5292
5292
  if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); } {
5293
5293
  result = (FXChoiceBox *)new_FXChoiceBox__SWIG_1(arg1,(FXString const &)*arg2,(FXString const &)*arg3,arg4,(FXchar const **)arg5,arg6,arg7,arg8,arg9,arg10);
@@ -5301,7 +5301,7 @@ static VALUE _wrap_new_FXChoiceBox(int nargs, VALUE *args, VALUE self) { int arg
5301
5301
  _v = (NIL_P(argv[2]) || TYPE(argv[2]) == T_STRING) ? 1 : 0; } if (_v) { { void *ptr;
5302
5302
  _v = (NIL_P(argv[3]) || (TYPE(argv[3]) == T_DATA && SWIG_ConvertPtr(argv[3], &ptr, SWIGTYPE_p_FXIcon, 0) != -1)) ? 1 : 0; }
5303
5303
  if (_v) { { _v = (TYPE(argv[4]) == T_ARRAY) ? 1 : 0; if (_v != 0) {
5304
- for (long i = 0; i < RARRAY(argv[4])->len; i++) {
5304
+ for (long i = 0; i < RARRAY_LEN(argv[4]); i++) {
5305
5305
  if (TYPE(rb_ary_entry(argv[4], i)) != T_STRING) { _v = 0; break; } } } } if (_v) {
5306
5306
  if (argc <= 5) { return _wrap_new_FXChoiceBox__SWIG_0(nargs, args, self);} {
5307
5307
  _v = ((TYPE(argv[5]) == T_FIXNUM) || (TYPE(argv[5]) == T_BIGNUM)) ? 1 : 0; } if (_v) {
@@ -5320,7 +5320,7 @@ static VALUE _wrap_new_FXChoiceBox(int nargs, VALUE *args, VALUE self) { int arg
5320
5320
  _v = (NIL_P(argv[2]) || TYPE(argv[2]) == T_STRING) ? 1 : 0; } if (_v) { { void *ptr;
5321
5321
  _v = (NIL_P(argv[3]) || (TYPE(argv[3]) == T_DATA && SWIG_ConvertPtr(argv[3], &ptr, SWIGTYPE_p_FXIcon, 0) != -1)) ? 1 : 0; }
5322
5322
  if (_v) { { _v = (TYPE(argv[4]) == T_ARRAY) ? 1 : 0; if (_v != 0) {
5323
- for (long i = 0; i < RARRAY(argv[4])->len; i++) {
5323
+ for (long i = 0; i < RARRAY_LEN(argv[4]); i++) {
5324
5324
  if (TYPE(rb_ary_entry(argv[4], i)) != T_STRING) { _v = 0; break; } } } } if (_v) {
5325
5325
  if (argc <= 5) { return _wrap_new_FXChoiceBox__SWIG_1(nargs, args, self);} {
5326
5326
  _v = ((TYPE(argv[5]) == T_FIXNUM) || (TYPE(argv[5]) == T_BIGNUM)) ? 1 : 0; } if (_v) {
@@ -5341,9 +5341,9 @@ static VALUE _wrap_FXChoiceBox_ask__SWIG_0(int argc, VALUE *argv, VALUE self) {
5341
5341
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXWindow, 1); arg2 = NUM2UINT(argv[1]);
5342
5342
  p3 = to_FXString(argv[2]); arg3 = &p3; p4 = to_FXString(argv[3]); arg4 = &p4;
5343
5343
  SWIG_ConvertPtr(argv[4], (void **) &arg5, SWIGTYPE_p_FXIcon, 1); { arg6 = NULL; if(!NIL_P(argv[5])){
5344
- Check_Type(argv[5], T_ARRAY); if (FXMALLOC(&arg6, FXchar *, RARRAY(argv[5])->len)+1) {
5345
- for (long i = 0; i < RARRAY(argv[5])->len; i++) { VALUE e = rb_ary_entry(argv[5], i);
5346
- arg6[i] = (FXchar *) StringValuePtr(e); } arg6[RARRAY(argv[5])->len] = 0; } } }
5344
+ Check_Type(argv[5], T_ARRAY); if (FXMALLOC(&arg6, FXchar *, RARRAY_LEN(argv[5]))+1) {
5345
+ for (long i = 0; i < RARRAY_LEN(argv[5]); i++) { VALUE e = rb_ary_entry(argv[5], i);
5346
+ arg6[i] = (FXchar *) StringValuePtr(e); } arg6[RARRAY_LEN(argv[5])] = 0; } } }
5347
5347
  result = (FXint)FXChoiceBox::ask(arg1,arg2,(FXString const &)*arg3,(FXString const &)*arg4,arg5,(FXchar const **)arg6);
5348
5348
  vresult = INT2NUM(result); FXFREE(&arg6); return vresult; }
5349
5349
  static VALUE _wrap_FXChoiceBox_ask__SWIG_1(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; FXuint arg2 ;
@@ -5353,9 +5353,9 @@ static VALUE _wrap_FXChoiceBox_ask__SWIG_1(int argc, VALUE *argv, VALUE self) {
5353
5353
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); arg2 = NUM2UINT(argv[1]);
5354
5354
  p3 = to_FXString(argv[2]); arg3 = &p3; p4 = to_FXString(argv[3]); arg4 = &p4;
5355
5355
  SWIG_ConvertPtr(argv[4], (void **) &arg5, SWIGTYPE_p_FXIcon, 1); { arg6 = NULL; if(!NIL_P(argv[5])){
5356
- Check_Type(argv[5], T_ARRAY); if (FXMALLOC(&arg6, FXchar *, RARRAY(argv[5])->len)+1) {
5357
- for (long i = 0; i < RARRAY(argv[5])->len; i++) { VALUE e = rb_ary_entry(argv[5], i);
5358
- arg6[i] = (FXchar *) StringValuePtr(e); } arg6[RARRAY(argv[5])->len] = 0; } } }
5356
+ Check_Type(argv[5], T_ARRAY); if (FXMALLOC(&arg6, FXchar *, RARRAY_LEN(argv[5]))+1) {
5357
+ for (long i = 0; i < RARRAY_LEN(argv[5]); i++) { VALUE e = rb_ary_entry(argv[5], i);
5358
+ arg6[i] = (FXchar *) StringValuePtr(e); } arg6[RARRAY_LEN(argv[5])] = 0; } } }
5359
5359
  result = (FXint)FXChoiceBox::ask(arg1,arg2,(FXString const &)*arg3,(FXString const &)*arg4,arg5,(FXchar const **)arg6);
5360
5360
  vresult = INT2NUM(result); FXFREE(&arg6); return vresult; }
5361
5361
  static VALUE _wrap_FXChoiceBox_ask(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[6]; int ii; argc = nargs;
@@ -5366,7 +5366,7 @@ static VALUE _wrap_FXChoiceBox_ask(int nargs, VALUE *args, VALUE self) { int arg
5366
5366
  _v = (NIL_P(argv[3]) || TYPE(argv[3]) == T_STRING) ? 1 : 0; } if (_v) { { void *ptr;
5367
5367
  _v = (NIL_P(argv[4]) || (TYPE(argv[4]) == T_DATA && SWIG_ConvertPtr(argv[4], &ptr, SWIGTYPE_p_FXIcon, 0) != -1)) ? 1 : 0; }
5368
5368
  if (_v) { { _v = (TYPE(argv[5]) == T_ARRAY) ? 1 : 0; if (_v != 0) {
5369
- for (long i = 0; i < RARRAY(argv[5])->len; i++) {
5369
+ for (long i = 0; i < RARRAY_LEN(argv[5]); i++) {
5370
5370
  if (TYPE(rb_ary_entry(argv[5], i)) != T_STRING) { _v = 0; break; } } } } if (_v) {
5371
5371
  return _wrap_FXChoiceBox_ask__SWIG_0(nargs, args, self);} } } } } } } if (argc == 6) {
5372
5372
  int _v; { void *ptr;
@@ -5376,7 +5376,7 @@ static VALUE _wrap_FXChoiceBox_ask(int nargs, VALUE *args, VALUE self) { int arg
5376
5376
  _v = (NIL_P(argv[3]) || TYPE(argv[3]) == T_STRING) ? 1 : 0; } if (_v) { { void *ptr;
5377
5377
  _v = (NIL_P(argv[4]) || (TYPE(argv[4]) == T_DATA && SWIG_ConvertPtr(argv[4], &ptr, SWIGTYPE_p_FXIcon, 0) != -1)) ? 1 : 0; }
5378
5378
  if (_v) { { _v = (TYPE(argv[5]) == T_ARRAY) ? 1 : 0; if (_v != 0) {
5379
- for (long i = 0; i < RARRAY(argv[5])->len; i++) {
5379
+ for (long i = 0; i < RARRAY_LEN(argv[5]); i++) {
5380
5380
  if (TYPE(rb_ary_entry(argv[5], i)) != T_STRING) { _v = 0; break; } } } } if (_v) {
5381
5381
  return _wrap_FXChoiceBox_ask__SWIG_1(nargs, args, self);} } } } } } }
5382
5382
  rb_raise(rb_eArgError, "No matching function for overloaded 'FXChoiceBox_ask'"); return Qnil; }
@@ -3288,9 +3288,9 @@ static VALUE _wrap_FXHeader_fillItems(int argc, VALUE *argv, VALUE self) { FXHea
3288
3288
  FXbool arg6 = (FXbool) 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 5))
3289
3289
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
3290
3290
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXHeader, 1); { arg2 = NULL; if(!NIL_P(argv[0])){
3291
- Check_Type(argv[0], T_ARRAY); if (FXMALLOC(&arg2, FXchar *, RARRAY(argv[0])->len)+1) {
3292
- for (long i = 0; i < RARRAY(argv[0])->len; i++) { VALUE e = rb_ary_entry(argv[0], i);
3293
- arg2[i] = (FXchar *) StringValuePtr(e); } arg2[RARRAY(argv[0])->len] = 0; } } } if (argc > 1) {
3291
+ Check_Type(argv[0], T_ARRAY); if (FXMALLOC(&arg2, FXchar *, RARRAY_LEN(argv[0]))+1) {
3292
+ for (long i = 0; i < RARRAY_LEN(argv[0]); i++) { VALUE e = rb_ary_entry(argv[0], i);
3293
+ arg2[i] = (FXchar *) StringValuePtr(e); } arg2[RARRAY_LEN(argv[0])] = 0; } } } if (argc > 1) {
3294
3294
  SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_FXIcon, 1); } if (argc > 2) { arg4 = NUM2INT(argv[2]); }
3295
3295
  if (argc > 3) { arg5 = (argv[3] == Qnil) ? NULL : (void *) argv[3]; } if (argc > 4) { arg6 = to_FXbool(argv[4]); }
3296
3296
  result = (FXint)(arg1)->fillItems((FXchar const **)arg2,arg3,arg4,arg5,arg6); vresult = INT2NUM(result); FXFREE(&arg2);
@@ -1000,6 +1000,12 @@ void FXRangef___setitem__(FXRangef *self,FXint i,FXVec3f &slice){
1000
1000
  }
1001
1001
  (*self)[i]=slice;
1002
1002
  }
1003
+ FXVec3f FXRangef_upper(FXRangef const *self){
1004
+ return self->upper;
1005
+ }
1006
+ FXVec3f FXRangef_lower(FXRangef const *self){
1007
+ return self->lower;
1008
+ }
1003
1009
  bool FXRangef_overlaps(FXRangef const *self,FXRangef const &other){
1004
1010
  return FX::overlap(*self,other);
1005
1011
  }
@@ -4485,28 +4491,6 @@ static VALUE _wrap_FXMat4d_invert(int argc, VALUE *argv, VALUE self) { FXMat4d *
4485
4491
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXMat4d, 1); result = ((FXMat4d const *)arg1)->invert(); {
4486
4492
  FXMat4d * resultptr; resultptr = new FXMat4d((FXMat4d &)result);
4487
4493
  vresult = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_FXMat4d, 1); } return vresult; }
4488
- static VALUE _wrap_FXRangef_lower_set(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ;
4489
- FXVec3f *arg2 = (FXVec3f *) 0 ; FXVec3f tmp2 ; if ((argc < 1) || (argc > 1))
4490
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
4491
- SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXRangef, 1); { if (TYPE(argv[0]) == T_ARRAY) {
4492
- tmp2 = FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)));
4493
- arg2 = &tmp2; } else { SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXVec3f, 1); } }
4494
- if (arg1) (arg1)->lower = *arg2; return Qnil; }
4495
- static VALUE _wrap_FXRangef_lower_get(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXVec3f *result;
4496
- VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
4497
- SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXRangef, 1); result = (FXVec3f *)& ((arg1)->lower);
4498
- vresult = FXRbGetRubyObj(result, "FXVec3f *"); return vresult; }
4499
- static VALUE _wrap_FXRangef_upper_set(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ;
4500
- FXVec3f *arg2 = (FXVec3f *) 0 ; FXVec3f tmp2 ; if ((argc < 1) || (argc > 1))
4501
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
4502
- SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXRangef, 1); { if (TYPE(argv[0]) == T_ARRAY) {
4503
- tmp2 = FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)));
4504
- arg2 = &tmp2; } else { SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXVec3f, 1); } }
4505
- if (arg1) (arg1)->upper = *arg2; return Qnil; }
4506
- static VALUE _wrap_FXRangef_upper_get(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXVec3f *result;
4507
- VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
4508
- SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXRangef, 1); result = (FXVec3f *)& ((arg1)->upper);
4509
- vresult = FXRbGetRubyObj(result, "FXVec3f *"); return vresult; }
4510
4494
  static VALUE _wrap_new_FXRangef__SWIG_0(int argc, VALUE *argv, VALUE self) { FXRangef *result; if ((argc < 0) || (argc > 0))
4511
4495
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); { result = (FXRangef *)new FXRangef();
4512
4496
  DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
@@ -4567,6 +4551,14 @@ static VALUE _wrap_FXRangef___setitem__(int argc, VALUE *argv, VALUE self) { FXR
4567
4551
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXRangef, 1); arg2 = NUM2INT(argv[0]);
4568
4552
  SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_FXVec3f, 1); if (arg3 == NULL) rb_raise(rb_eTypeError, "null reference");
4569
4553
  FXRangef___setitem__(arg1,arg2,*arg3); return Qnil; }
4554
+ static VALUE _wrap_FXRangef_upper(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXVec3f result;
4555
+ VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
4556
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXRangef, 1); result = FXRangef_upper((FXRangef const *)arg1); {
4557
+ FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; }
4558
+ static VALUE _wrap_FXRangef_lower(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXVec3f result;
4559
+ VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
4560
+ SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXRangef, 1); result = FXRangef_lower((FXRangef const *)arg1); {
4561
+ FXVec3f* resultptr = new FXVec3f(result); vresult = FXRbGetRubyObj(resultptr, "FXVec3f *"); } return vresult; }
4570
4562
  static VALUE _wrap_FXRangef_width(int argc, VALUE *argv, VALUE self) { FXRangef *arg1 = (FXRangef *) 0 ; FXfloat result;
4571
4563
  VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
4572
4564
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXRangef, 1); result = (FXfloat)((FXRangef const *)arg1)->width();
@@ -7662,7 +7654,7 @@ static VALUE _wrap_FXGLObject_identify(int argc, VALUE *argv, VALUE self) { FXGL
7662
7654
  FXuint *arg2 = (FXuint *) 0 ; FXint arg3 ; FXGLObject *result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
7663
7655
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
7664
7656
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXGLObject, 1); { Check_Type(argv[0], T_ARRAY);
7665
- FXMALLOC(&arg2,FXuint,RARRAY(argv[0])->len); arg3=static_cast<FXint>(RARRAY(argv[0])->len); for(FXint i=0; i<arg3; i++){
7657
+ FXMALLOC(&arg2,FXuint,RARRAY_LEN(argv[0])); arg3=static_cast<FXint>(RARRAY_LEN(argv[0])); for(FXint i=0; i<arg3; i++){
7666
7658
  arg2[i]=NUM2UINT(rb_ary_entry(argv[0],i)); } } result = (FXGLObject *)FXGLObject_identify(arg1,arg2,arg3); {
7667
7659
  swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXGLObject, (void **) &result);
7668
7660
  vresult = FXRbGetRubyObj(result, ty); } { FXFREE(&arg2); } return vresult; }
@@ -7866,7 +7858,7 @@ static VALUE _wrap_FXGLShape_identify(int argc, VALUE *argv, VALUE self) { FXGLS
7866
7858
  FXuint *arg2 = (FXuint *) 0 ; FXint arg3 ; FXGLObject *result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 1))
7867
7859
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
7868
7860
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXGLShape, 1); { Check_Type(argv[0], T_ARRAY);
7869
- FXMALLOC(&arg2,FXuint,RARRAY(argv[0])->len); arg3=static_cast<FXint>(RARRAY(argv[0])->len); for(FXint i=0; i<arg3; i++){
7861
+ FXMALLOC(&arg2,FXuint,RARRAY_LEN(argv[0])); arg3=static_cast<FXint>(RARRAY_LEN(argv[0])); for(FXint i=0; i<arg3; i++){
7870
7862
  arg2[i]=NUM2UINT(rb_ary_entry(argv[0],i)); } } result = (FXGLObject *)FXGLShape_identify(arg1,arg2,arg3); {
7871
7863
  swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXGLObject, (void **) &result);
7872
7864
  vresult = FXRbGetRubyObj(result, ty); } { FXFREE(&arg2); } return vresult; }
@@ -9954,12 +9946,10 @@ SWIGEXPORT(void) Init_fx3d(void) {
9954
9946
  SWIG_TypeClientData(SWIGTYPE_p_FXRangef, (void *) &cFXRangef);
9955
9947
  rb_define_alloc_func(cFXRangef.klass, _wrap_FXRangef_allocate);
9956
9948
  rb_define_method(cFXRangef.klass, "initialize", VALUEFUNC(_wrap_new_FXRangef), -1);
9957
- rb_define_method(cFXRangef.klass, "lower=", VALUEFUNC(_wrap_FXRangef_lower_set), -1);
9958
- rb_define_method(cFXRangef.klass, "lower", VALUEFUNC(_wrap_FXRangef_lower_get), -1);
9959
- rb_define_method(cFXRangef.klass, "upper=", VALUEFUNC(_wrap_FXRangef_upper_set), -1);
9960
- rb_define_method(cFXRangef.klass, "upper", VALUEFUNC(_wrap_FXRangef_upper_get), -1);
9961
9949
  rb_define_method(cFXRangef.klass, "[]", VALUEFUNC(_wrap_FXRangef___getitem__), -1);
9962
9950
  rb_define_method(cFXRangef.klass, "[]=", VALUEFUNC(_wrap_FXRangef___setitem__), -1);
9951
+ rb_define_method(cFXRangef.klass, "upper", VALUEFUNC(_wrap_FXRangef_upper), -1);
9952
+ rb_define_method(cFXRangef.klass, "lower", VALUEFUNC(_wrap_FXRangef_lower), -1);
9963
9953
  rb_define_method(cFXRangef.klass, "width", VALUEFUNC(_wrap_FXRangef_width), -1);
9964
9954
  rb_define_method(cFXRangef.klass, "height", VALUEFUNC(_wrap_FXRangef_height), -1);
9965
9955
  rb_define_method(cFXRangef.klass, "depth", VALUEFUNC(_wrap_FXRangef_depth), -1);
@@ -1301,9 +1301,9 @@ static VALUE _wrap_FXIconList_setHeaders(int argc, VALUE *argv, VALUE self) { FX
1301
1301
  FXchar **arg2 = (FXchar **) 0 ; FXint arg3 = (FXint) 1 ; if ((argc < 1) || (argc > 2))
1302
1302
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
1303
1303
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXIconList, 1); { arg2 = NULL; if(!NIL_P(argv[0])){
1304
- Check_Type(argv[0], T_ARRAY); if (FXMALLOC(&arg2, FXchar *, RARRAY(argv[0])->len)+1) {
1305
- for (long i = 0; i < RARRAY(argv[0])->len; i++) { VALUE e = rb_ary_entry(argv[0], i);
1306
- arg2[i] = (FXchar *) StringValuePtr(e); } arg2[RARRAY(argv[0])->len] = 0; } } } if (argc > 1) {
1304
+ Check_Type(argv[0], T_ARRAY); if (FXMALLOC(&arg2, FXchar *, RARRAY_LEN(argv[0]))+1) {
1305
+ for (long i = 0; i < RARRAY_LEN(argv[0]); i++) { VALUE e = rb_ary_entry(argv[0], i);
1306
+ arg2[i] = (FXchar *) StringValuePtr(e); } arg2[RARRAY_LEN(argv[0])] = 0; } } } if (argc > 1) {
1307
1307
  arg3 = NUM2INT(argv[1]); } (arg1)->setHeaders((FXchar const **)arg2,arg3); FXFREE(&arg2); return Qnil; }
1308
1308
  static VALUE _wrap_FXIconList_appendHeader(int argc, VALUE *argv, VALUE self) { FXIconList *arg1 = (FXIconList *) 0 ;
1309
1309
  FXString *arg2 = 0 ; FXIcon *arg3 = (FXIcon *) 0 ; FXint arg4 = (FXint) 1 ; SwigValueWrapper<FXString > p2 ;
@@ -1413,9 +1413,9 @@ static VALUE _wrap_FXIconList_fillItems(int argc, VALUE *argv, VALUE self) { FXI
1413
1413
  FXbool arg6 = (FXbool) 0 ; FXint result; VALUE vresult = Qnil; if ((argc < 1) || (argc > 5))
1414
1414
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
1415
1415
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXIconList, 1); { arg2 = NULL; if(!NIL_P(argv[0])){
1416
- Check_Type(argv[0], T_ARRAY); if (FXMALLOC(&arg2, FXchar *, RARRAY(argv[0])->len)+1) {
1417
- for (long i = 0; i < RARRAY(argv[0])->len; i++) { VALUE e = rb_ary_entry(argv[0], i);
1418
- arg2[i] = (FXchar *) StringValuePtr(e); } arg2[RARRAY(argv[0])->len] = 0; } } } if (argc > 1) {
1416
+ Check_Type(argv[0], T_ARRAY); if (FXMALLOC(&arg2, FXchar *, RARRAY_LEN(argv[0]))+1) {
1417
+ for (long i = 0; i < RARRAY_LEN(argv[0]); i++) { VALUE e = rb_ary_entry(argv[0], i);
1418
+ arg2[i] = (FXchar *) StringValuePtr(e); } arg2[RARRAY_LEN(argv[0])] = 0; } } } if (argc > 1) {
1419
1419
  SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_FXIcon, 1); } if (argc > 2) {
1420
1420
  SWIG_ConvertPtr(argv[2], (void **) &arg4, SWIGTYPE_p_FXIcon, 1); } if (argc > 3) {
1421
1421
  arg5 = (argv[3] == Qnil) ? NULL : (void *) argv[3]; } if (argc > 4) { arg6 = to_FXbool(argv[4]); }
@@ -1101,7 +1101,7 @@ static void free_FXXPMIcon(FXXPMIcon *);
1101
1101
 
1102
1102
  // Confirm that the input is an array of strings
1103
1103
  Check_Type(strArray,T_ARRAY);
1104
- len=RARRAY(strArray)->len;
1104
+ len=RARRAY_LEN(strArray);
1105
1105
  for(i=0; i<len; i++){
1106
1106
  str=rb_ary_entry(strArray,i);
1107
1107
  Check_Type(str,T_STRING);
@@ -1139,11 +1139,11 @@ static VALUE _wrap_new_FXIcon(int argc, VALUE *argv, VALUE self) { FXApp *arg1 =
1139
1139
  FXColor arg3 = (FXColor) 0 ; FXuint arg4 = (FXuint) 0 ; FXint arg5 = (FXint) 1 ; FXint arg6 = (FXint) 1 ; FXIcon *result;
1140
1140
  if ((argc < 1) || (argc > 6)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
1141
1141
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); if (argc > 1) { { arg2=NULL; if(argv[1]!=Qnil){
1142
- Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY(argv[1])->len)){
1143
- for(long i=0; i<RARRAY(argv[1])->len; i++){
1144
- arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } } } } } if (argc > 2) {
1145
- arg3 = to_FXColor(argv[2]); } if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); }
1146
- if (argc > 5) { arg6 = NUM2INT(argv[5]); } { result = (FXIcon *)new_FXIcon(arg1,(FXColor const *)arg2,arg3,arg4,arg5,arg6);
1142
+ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
1143
+ for(long i=0; i<RARRAY_LEN(argv[1]); i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); }
1144
+ } } } } if (argc > 2) { arg3 = to_FXColor(argv[2]); } if (argc > 3) { arg4 = NUM2UINT(argv[3]); }
1145
+ if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) { arg6 = NUM2INT(argv[5]); } {
1146
+ result = (FXIcon *)new_FXIcon(arg1,(FXColor const *)arg2,arg3,arg4,arg5,arg6);
1147
1147
  DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } FXFREE(&arg2);
1148
1148
  return self; }
1149
1149
  static VALUE _wrap_FXIcon_getTransparentColor(int argc, VALUE *argv, VALUE self) { FXIcon *arg1 = (FXIcon *) 0 ; FXColor result;
@@ -1535,8 +1535,8 @@ static VALUE _wrap_fxsaveBMP(int argc, VALUE *argv, VALUE self) { FXStream *arg1
1535
1535
  FXint arg3 ; FXint arg4 ; bool result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4))
1536
1536
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
1537
1537
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXStream, 1); if (arg1 == NULL) rb_raise(rb_eTypeError, "null reference");
1538
- { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY(argv[1])->len)){
1539
- for(long i=0; i<RARRAY(argv[1])->len; i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
1538
+ { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
1539
+ for(long i=0; i<RARRAY_LEN(argv[1]); i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
1540
1540
  } } arg3 = NUM2INT(argv[2]); arg4 = NUM2INT(argv[3]);
1541
1541
  result = (bool)fxsaveBMP(*arg1,(FXColor const *)arg2,arg3,arg4); vresult = result ? Qtrue : Qfalse; FXFREE(&arg2);
1542
1542
  return vresult; }
@@ -1802,8 +1802,8 @@ static VALUE _wrap_fxsaveICO(int argc, VALUE *argv, VALUE self) { FXStream *arg1
1802
1802
  FXint arg3 ; FXint arg4 ; FXint arg5 = (FXint) -1 ; FXint arg6 = (FXint) -1 ; bool result; VALUE vresult = Qnil;
1803
1803
  if ((argc < 4) || (argc > 6)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
1804
1804
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXStream, 1); if (arg1 == NULL) rb_raise(rb_eTypeError, "null reference");
1805
- { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY(argv[1])->len)){
1806
- for(long i=0; i<RARRAY(argv[1])->len; i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
1805
+ { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
1806
+ for(long i=0; i<RARRAY_LEN(argv[1]); i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
1807
1807
  } } arg3 = NUM2INT(argv[2]); arg4 = NUM2INT(argv[3]); if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
1808
1808
  arg6 = NUM2INT(argv[5]); } result = (bool)fxsaveICO(*arg1,(FXColor const *)arg2,arg3,arg4,arg5,arg6);
1809
1809
  vresult = result ? Qtrue : Qfalse; FXFREE(&arg2); return vresult; }
@@ -1956,8 +1956,8 @@ static VALUE _wrap_fxsaveJPG(int argc, VALUE *argv, VALUE self) { FXStream *arg1
1956
1956
  FXint arg3 ; FXint arg4 ; FXint arg5 ; bool result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5))
1957
1957
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc);
1958
1958
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXStream, 1); if (arg1 == NULL) rb_raise(rb_eTypeError, "null reference");
1959
- { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY(argv[1])->len)){
1960
- for(long i=0; i<RARRAY(argv[1])->len; i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
1959
+ { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
1960
+ for(long i=0; i<RARRAY_LEN(argv[1]); i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
1961
1961
  } } arg3 = NUM2INT(argv[2]); arg4 = NUM2INT(argv[3]); arg5 = NUM2INT(argv[4]);
1962
1962
  result = (bool)fxsaveJPG(*arg1,(FXColor const *)arg2,arg3,arg4,arg5); vresult = result ? Qtrue : Qfalse; FXFREE(&arg2);
1963
1963
  return vresult; }
@@ -2098,8 +2098,8 @@ static VALUE _wrap_fxsavePCX(int argc, VALUE *argv, VALUE self) { FXStream *arg1
2098
2098
  FXint arg3 ; FXint arg4 ; bool result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4))
2099
2099
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
2100
2100
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXStream, 1); if (arg1 == NULL) rb_raise(rb_eTypeError, "null reference");
2101
- { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY(argv[1])->len)){
2102
- for(long i=0; i<RARRAY(argv[1])->len; i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2101
+ { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
2102
+ for(long i=0; i<RARRAY_LEN(argv[1]); i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2103
2103
  } } arg3 = NUM2INT(argv[2]); arg4 = NUM2INT(argv[3]);
2104
2104
  result = (bool)fxsavePCX(*arg1,(FXColor const *)arg2,arg3,arg4); vresult = result ? Qtrue : Qfalse; FXFREE(&arg2);
2105
2105
  return vresult; }
@@ -2243,8 +2243,8 @@ static VALUE _wrap_fxsavePNG(int argc, VALUE *argv, VALUE self) { FXStream *arg1
2243
2243
  FXint arg3 ; FXint arg4 ; bool result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4))
2244
2244
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
2245
2245
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXStream, 1); if (arg1 == NULL) rb_raise(rb_eTypeError, "null reference");
2246
- { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY(argv[1])->len)){
2247
- for(long i=0; i<RARRAY(argv[1])->len; i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2246
+ { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
2247
+ for(long i=0; i<RARRAY_LEN(argv[1]); i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2248
2248
  } } arg3 = NUM2INT(argv[2]); arg4 = NUM2INT(argv[3]);
2249
2249
  result = (bool)fxsavePNG(*arg1,(FXColor const *)arg2,arg3,arg4); vresult = result ? Qtrue : Qfalse; FXFREE(&arg2);
2250
2250
  return vresult; }
@@ -2385,8 +2385,8 @@ static VALUE _wrap_fxsavePPM(int argc, VALUE *argv, VALUE self) { FXStream *arg1
2385
2385
  FXint arg3 ; FXint arg4 ; bool result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4))
2386
2386
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
2387
2387
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXStream, 1); if (arg1 == NULL) rb_raise(rb_eTypeError, "null reference");
2388
- { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY(argv[1])->len)){
2389
- for(long i=0; i<RARRAY(argv[1])->len; i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2388
+ { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
2389
+ for(long i=0; i<RARRAY_LEN(argv[1]); i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2390
2390
  } } arg3 = NUM2INT(argv[2]); arg4 = NUM2INT(argv[3]);
2391
2391
  result = (bool)fxsavePPM(*arg1,(FXColor const *)arg2,arg3,arg4); vresult = result ? Qtrue : Qfalse; FXFREE(&arg2);
2392
2392
  return vresult; }
@@ -2527,8 +2527,8 @@ static VALUE _wrap_fxsaveRGB(int argc, VALUE *argv, VALUE self) { FXStream *arg1
2527
2527
  FXint arg3 ; FXint arg4 ; bool result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4))
2528
2528
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
2529
2529
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXStream, 1); if (arg1 == NULL) rb_raise(rb_eTypeError, "null reference");
2530
- { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY(argv[1])->len)){
2531
- for(long i=0; i<RARRAY(argv[1])->len; i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2530
+ { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
2531
+ for(long i=0; i<RARRAY_LEN(argv[1]); i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2532
2532
  } } arg3 = NUM2INT(argv[2]); arg4 = NUM2INT(argv[3]);
2533
2533
  result = (bool)fxsaveRGB(*arg1,(FXColor const *)arg2,arg3,arg4); vresult = result ? Qtrue : Qfalse; FXFREE(&arg2);
2534
2534
  return vresult; }
@@ -2669,8 +2669,8 @@ static VALUE _wrap_fxsaveTGA(int argc, VALUE *argv, VALUE self) { FXStream *arg1
2669
2669
  FXint arg3 ; FXint arg4 ; bool result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 4))
2670
2670
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
2671
2671
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXStream, 1); if (arg1 == NULL) rb_raise(rb_eTypeError, "null reference");
2672
- { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY(argv[1])->len)){
2673
- for(long i=0; i<RARRAY(argv[1])->len; i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2672
+ { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
2673
+ for(long i=0; i<RARRAY_LEN(argv[1]); i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2674
2674
  } } arg3 = NUM2INT(argv[2]); arg4 = NUM2INT(argv[3]);
2675
2675
  result = (bool)fxsaveTGA(*arg1,(FXColor const *)arg2,arg3,arg4); vresult = result ? Qtrue : Qfalse; FXFREE(&arg2);
2676
2676
  return vresult; }
@@ -2966,8 +2966,8 @@ static VALUE _wrap_new_FXXPMIcon(int argc, VALUE *argv, VALUE self) { FXApp *arg
2966
2966
  FXint arg6 = (FXint) 1 ; FXXPMIcon *result; if ((argc < 1) || (argc > 6))
2967
2967
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
2968
2968
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); if (argc > 1) { { arg2 = NULL; if (argv[1] != Qnil) {
2969
- Check_Type(argv[1], T_ARRAY); if (FXMALLOC(&arg2, FXchar *, RARRAY(argv[1])->len)) {
2970
- for (long i = 0; i < RARRAY(argv[1])->len; i++) { VALUE e = rb_ary_entry(argv[1], i);
2969
+ Check_Type(argv[1], T_ARRAY); if (FXMALLOC(&arg2, FXchar *, RARRAY_LEN(argv[1]))) {
2970
+ for (long i = 0; i < RARRAY_LEN(argv[1]); i++) { VALUE e = rb_ary_entry(argv[1], i);
2971
2971
  arg2[i] = (FXchar *) StringValuePtr(e); } } } } } if (argc > 2) { arg3 = to_FXColor(argv[2]); }
2972
2972
  if (argc > 3) { arg4 = NUM2UINT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
2973
2973
  arg6 = NUM2INT(argv[5]); } { result = (FXXPMIcon *)new_FXXPMIcon(arg1,(FXchar const **)arg2,arg3,arg4,arg5,arg6);
@@ -3091,8 +3091,8 @@ static VALUE _wrap_fxsaveXPM(int argc, VALUE *argv, VALUE self) { FXStream *arg1
3091
3091
  FXint arg3 ; FXint arg4 ; bool arg5 = (bool) true ; bool result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 5))
3092
3092
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
3093
3093
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXStream, 1); if (arg1 == NULL) rb_raise(rb_eTypeError, "null reference");
3094
- { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY(argv[1])->len)){
3095
- for(long i=0; i<RARRAY(argv[1])->len; i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
3094
+ { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
3095
+ for(long i=0; i<RARRAY_LEN(argv[1]); i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
3096
3096
  } } arg3 = NUM2INT(argv[2]); arg4 = NUM2INT(argv[3]); if (argc > 4) { arg5 = RTEST(argv[4]); }
3097
3097
  result = (bool)fxsaveXPM(*arg1,(FXColor const *)arg2,arg3,arg4,arg5); vresult = result ? Qtrue : Qfalse; FXFREE(&arg2);
3098
3098
  return vresult; }
@@ -694,8 +694,8 @@ FXImage *new_FXImage(FXApp *a,VALUE ary,FXuint opts,FXint w,FXint h){
694
694
  FXColor* pix=0;
695
695
  if(!NIL_P(ary)){
696
696
  Check_Type(ary,T_ARRAY);
697
- if(FXMALLOC(&pix,FXColor,RARRAY(ary)->len)){
698
- for(long i=0; i<RARRAY(ary)->len; i++){
697
+ if(FXMALLOC(&pix,FXColor,RARRAY_LEN(ary))){
698
+ for(long i=0; i<RARRAY_LEN(ary); i++){
699
699
  pix[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(ary,i)));
700
700
  }
701
701
  }
@@ -1145,8 +1145,8 @@ static VALUE _wrap_FXMemoryBuffer_allocate(VALUE self) {
1145
1145
  return vresult; }
1146
1146
  static VALUE _wrap_new_FXMemoryBuffer(int argc, VALUE *argv, VALUE self) { FXColor *arg1 = (FXColor *) 0 ; FXuint arg2 ;
1147
1147
  FXMemoryBuffer *result; if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); {
1148
- Check_Type(argv[0], T_ARRAY); FXMALLOC(&arg1,FXColor,RARRAY(argv[0])->len);
1149
- arg2=static_cast<FXuint>(RARRAY(argv[0])->len); for(FXint i=0; i<arg2; i++){
1148
+ Check_Type(argv[0], T_ARRAY); FXMALLOC(&arg1,FXColor,RARRAY_LEN(argv[0]));
1149
+ arg2=static_cast<FXuint>(RARRAY_LEN(argv[0])); for(FXint i=0; i<arg2; i++){
1150
1150
  arg1[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[0],i))); } }
1151
1151
  result = (FXMemoryBuffer *)new FXMemoryBuffer(arg1,arg2); DATA_PTR(self) = result; { FXFREE(&arg1); } return self; }
1152
1152
  static VALUE _wrap_FXMemoryBuffer_getSize(int argc, VALUE *argv, VALUE self) { FXMemoryBuffer *arg1 = (FXMemoryBuffer *) 0 ;
@@ -2620,8 +2620,8 @@ static VALUE _wrap_fxsaveTIF(int argc, VALUE *argv, VALUE self) { FXStream *arg1
2620
2620
  FXint arg3 ; FXint arg4 ; FXushort arg5 ; bool result; VALUE vresult = Qnil; if ((argc < 5) || (argc > 5))
2621
2621
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc);
2622
2622
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXStream, 1); if (arg1 == NULL) rb_raise(rb_eTypeError, "null reference");
2623
- { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY(argv[1])->len)){
2624
- for(long i=0; i<RARRAY(argv[1])->len; i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2623
+ { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
2624
+ for(long i=0; i<RARRAY_LEN(argv[1]); i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2625
2625
  } } arg3 = NUM2INT(argv[2]); arg4 = NUM2INT(argv[3]); arg5 = NUM2USHRT(argv[4]);
2626
2626
  result = (bool)fxsaveTIF(*arg1,(FXColor const *)arg2,arg3,arg4,arg5); vresult = result ? Qtrue : Qfalse; FXFREE(&arg2);
2627
2627
  return vresult; }
@@ -2776,8 +2776,8 @@ static VALUE _wrap_fxsaveXBM(int argc, VALUE *argv, VALUE self) { FXStream *arg1
2776
2776
  FXint arg3 ; FXint arg4 ; FXint arg5 = (FXint) -1 ; FXint arg6 = (FXint) -1 ; bool result; VALUE vresult = Qnil;
2777
2777
  if ((argc < 4) || (argc > 6)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
2778
2778
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXStream, 1); if (arg1 == NULL) rb_raise(rb_eTypeError, "null reference");
2779
- { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY(argv[1])->len)){
2780
- for(long i=0; i<RARRAY(argv[1])->len; i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2779
+ { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
2780
+ for(long i=0; i<RARRAY_LEN(argv[1]); i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2781
2781
  } } arg3 = NUM2INT(argv[2]); arg4 = NUM2INT(argv[3]); if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
2782
2782
  arg6 = NUM2INT(argv[5]); } result = (bool)fxsaveXBM(*arg1,(FXColor const *)arg2,arg3,arg4,arg5,arg6);
2783
2783
  vresult = result ? Qtrue : Qfalse; FXFREE(&arg2); return vresult; }
@@ -2786,8 +2786,8 @@ static VALUE _wrap_fxsavePS(int argc, VALUE *argv, VALUE self) { FXStream *arg1
2786
2786
  FXbool arg8 = (FXbool) 1 ; bool result; VALUE vresult = Qnil; if ((argc < 4) || (argc > 8))
2787
2787
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc);
2788
2788
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXStream, 1); if (arg1 == NULL) rb_raise(rb_eTypeError, "null reference");
2789
- { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY(argv[1])->len)){
2790
- for(long i=0; i<RARRAY(argv[1])->len; i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2789
+ { arg2=NULL; if(argv[1]!=Qnil){ Check_Type(argv[1],T_ARRAY); if(FXMALLOC(&arg2,FXColor,RARRAY_LEN(argv[1]))){
2790
+ for(long i=0; i<RARRAY_LEN(argv[1]); i++){ arg2[i]=static_cast<FXColor>(NUM2UINT(rb_ary_entry(argv[1],i))); } }
2791
2791
  } } arg3 = NUM2INT(argv[2]); arg4 = NUM2INT(argv[3]); if (argc > 4) { arg5 = NUM2INT(argv[4]); } if (argc > 5) {
2792
2792
  arg6 = NUM2INT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = to_FXbool(argv[7]); }
2793
2793
  result = (bool)fxsavePS(*arg1,(FXColor const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8); vresult = result ? Qtrue : Qfalse;
@@ -2816,8 +2816,8 @@ static VALUE _wrap_new_FXXPMImage(int argc, VALUE *argv, VALUE self) { FXApp *ar
2816
2816
  FXchar **arg2 = (FXchar **) 0 ; FXuint arg3 = (FXuint) 0 ; FXint arg4 = (FXint) 1 ; FXint arg5 = (FXint) 1 ;
2817
2817
  FXXPMImage *result; if ((argc < 1) || (argc > 5)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
2818
2818
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); if (argc > 1) { { arg2 = NULL; if (argv[1] != Qnil) {
2819
- Check_Type(argv[1], T_ARRAY); if (FXMALLOC(&arg2, FXchar *, RARRAY(argv[1])->len)) {
2820
- for (long i = 0; i < RARRAY(argv[1])->len; i++) { VALUE e = rb_ary_entry(argv[1], i);
2819
+ Check_Type(argv[1], T_ARRAY); if (FXMALLOC(&arg2, FXchar *, RARRAY_LEN(argv[1]))) {
2820
+ for (long i = 0; i < RARRAY_LEN(argv[1]); i++) { VALUE e = rb_ary_entry(argv[1], i);
2821
2821
  arg2[i] = (FXchar *) StringValuePtr(e); } } } } } if (argc > 2) { arg3 = NUM2UINT(argv[2]); }
2822
2822
  if (argc > 3) { arg4 = NUM2INT(argv[3]); } if (argc > 4) { arg5 = NUM2INT(argv[4]); } {
2823
2823
  result = (FXXPMImage *)new_FXXPMImage(arg1,(FXchar const **)arg2,arg3,arg4,arg5);
@@ -21,7 +21,7 @@
21
21
  ***********************************************************************/
22
22
 
23
23
  /***********************************************************************
24
- * $Id: FXMemoryBuffer.h 2190 2005-08-24 07:58:47Z lyle $
24
+ * $Id$
25
25
  ***********************************************************************/
26
26
 
27
27
  #ifndef FXMEMORYBUFFER_H
@@ -21,7 +21,7 @@
21
21
  ***********************************************************************/
22
22
 
23
23
  /***********************************************************************
24
- * $Id: FXRb4Splitter.h 2190 2005-08-24 07:58:47Z lyle $
24
+ * $Id$
25
25
  ***********************************************************************/
26
26
 
27
27
  #ifndef FXRB4SPLITTER_H
@@ -21,7 +21,7 @@
21
21
  ***********************************************************************/
22
22
 
23
23
  /***********************************************************************
24
- * $Id: FXRb7Segment.h 2190 2005-08-24 07:58:47Z lyle $
24
+ * $Id$
25
25
  ***********************************************************************/
26
26
 
27
27
  #ifndef FXRB7SEGMENT_H
@@ -21,7 +21,7 @@
21
21
  ***********************************************************************/
22
22
 
23
23
  /***********************************************************************
24
- * $Id: FXRbAccelTable.h 2190 2005-08-24 07:58:47Z lyle $
24
+ * $Id$
25
25
  ***********************************************************************/
26
26
 
27
27
  #ifndef FXRBACCELTABLE_H