fxruby 1.6.13 → 1.6.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) 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/build.html +16 -17
  5. data/doc/changes.html +40 -28
  6. data/doc/differences.html +9 -9
  7. data/doc/gems.html +6 -6
  8. data/doc/implementation.html +1 -1
  9. data/doc/infosources.html +3 -3
  10. data/doc/library.html +5 -5
  11. data/doc/opengl.html +5 -5
  12. data/doc/pt02.html +1 -1
  13. data/doc/scintilla.html +4 -4
  14. data/doc/subversion.html +1 -1
  15. data/examples/babelfish.rb +1 -1
  16. data/examples/custom_table_item.rb +170 -0
  17. data/examples/dilbert.rb +6 -7
  18. data/ext/fox16/FXRbApp.cpp +5 -1
  19. data/ext/fox16/FXRbDataTarget.cpp +2 -2
  20. data/ext/fox16/FXRuby.cpp +36 -14
  21. data/ext/fox16/core_wrap.cpp +13 -13
  22. data/ext/fox16/dc_wrap.cpp +7 -7
  23. data/ext/fox16/dialogs_wrap.cpp +16 -16
  24. data/ext/fox16/extconf.rb +31 -0
  25. data/ext/fox16/frames_wrap.cpp +59 -59
  26. data/ext/fox16/fx3d_wrap.cpp +1 -1
  27. data/ext/fox16/iconlist_wrap.cpp +10 -10
  28. data/ext/fox16/icons_wrap.cpp +25 -25
  29. data/ext/fox16/image_wrap.cpp +26 -26
  30. data/ext/fox16/include/FXRbApp.h +5 -3
  31. data/ext/fox16/include/FXRbDC.h +1 -1
  32. data/ext/fox16/label_wrap.cpp +6 -6
  33. data/ext/fox16/layout_wrap.cpp +1 -1
  34. data/ext/fox16/list_wrap.cpp +7 -7
  35. data/ext/fox16/mdi_wrap.cpp +5 -5
  36. data/ext/fox16/menu_wrap.cpp +6 -6
  37. data/ext/fox16/scintilla_wrap.cpp +3 -3
  38. data/ext/fox16/table_wrap.cpp +3 -3
  39. data/ext/fox16/text_wrap.cpp +8 -8
  40. data/ext/fox16/treelist_wrap.cpp +10 -9
  41. data/ext/fox16/ui_wrap.cpp +22 -22
  42. data/lib/fox16/kwargs.rb +11 -0
  43. data/lib/fox16/version.rb +1 -1
  44. data/rdoc-sources/FXImage.rb +12 -6
  45. data/rdoc-sources/FXToggleButton.rb +1 -0
  46. data/tests/output.ps +166 -0
  47. data/tests/stress1.rb +3 -5
  48. data/web/community.html +94 -0
  49. data/web/documentation.html +100 -0
  50. data/web/downloads.html +114 -93
  51. data/web/index.html +96 -0
  52. metadata +47 -52
  53. data/index.html +0 -14
  54. data/web/art/fxrubylogo.png +0 -0
  55. data/web/art/fxrubylogo_small.png +0 -0
  56. data/web/art/line.gif +0 -0
  57. data/web/art/oul_grey.gif +0 -0
  58. data/web/art/our.gif +0 -0
  59. data/web/home.html +0 -113
  60. data/web/menu.html +0 -50
  61. data/web/styles.css +0 -167
  62. data/web/top.html +0 -15
@@ -609,7 +609,7 @@ inline FXColor to_FXColor(VALUE obj){
609
609
  inline FXString to_FXString(VALUE obj){
610
610
  if(!NIL_P(obj)){
611
611
  Check_Type(obj,T_STRING);
612
- return FXString(STR2CSTR(obj));
612
+ return FXString(StringValuePtr(obj));
613
613
  }
614
614
  else{
615
615
  return FXString::null;
@@ -760,8 +760,8 @@ bool FXMemoryStream_open(FXMemoryStream *self,FXStreamDirection save_or_load,VAL
760
760
  FXuval size=0;
761
761
  FXuchar *data=0;
762
762
  if(!NIL_P(str)){
763
- size=RSTRING(str)->len;
764
- data=reinterpret_cast<FXuchar*>(STR2CSTR(str));
763
+ size=RSTRING_LEN(str);
764
+ data=reinterpret_cast<FXuchar*>(StringValuePtr(str));
765
765
  return self->open(save_or_load,size,data);
766
766
  }
767
767
  else{
@@ -779,7 +779,7 @@ VALUE FXMemoryStream_takeBuffer(FXMemoryStream *self){
779
779
  void FXMemoryStream_giveBuffer(FXMemoryStream *self,VALUE str){
780
780
  Check_Type(str,T_STRING);
781
781
  FXuchar* buffer=reinterpret_cast<FXuchar*>(StringValuePtr(str));
782
- FXuval sp=RSTRING(str)->len;
782
+ FXuval sp=RSTRING_LEN(str);
783
783
  self->giveBuffer(buffer,sp);
784
784
  }
785
785
 
@@ -952,7 +952,7 @@ void FXApp_addSignal(FXApp *self,VALUE sigObj,FXObject *tgt,FXSelector sel,FXboo
952
952
  FXint sig;
953
953
  switch(TYPE(sigObj)){
954
954
  case T_STRING:
955
- s=STR2CSTR(sigObj);
955
+ s=StringValuePtr(sigObj);
956
956
  sig=FXRbSignalNameToNumber(s);
957
957
  if(sig==0) rb_raise(rb_eArgError,"unrecognized signal name `%s'",s);
958
958
  break;
@@ -970,7 +970,7 @@ void FXApp_removeSignal(FXApp *self,VALUE sigObj){
970
970
  FXint sig;
971
971
  switch(TYPE(sigObj)){
972
972
  case T_STRING:
973
- s=STR2CSTR(sigObj);
973
+ s=StringValuePtr(sigObj);
974
974
  sig=FXRbSignalNameToNumber(s);
975
975
  if(sig==0) rb_raise(rb_eArgError,"unrecognized signal name `%s'",s);
976
976
  break;
@@ -1405,8 +1405,8 @@ VALUE FXFont_listFonts(FXString const &face,FXuint wt,FXuint sl,FXuint sw,FXuint
1405
1405
  }
1406
1406
  FXbool FXFont_hasChar(FXFont const *self,VALUE ch){
1407
1407
  if(TYPE(ch)==T_STRING){
1408
- if(RSTRING(ch)->len==1){
1409
- return self->hasChar(*(STR2CSTR(ch))); // FIXME: hasChar() expects an FXwchar
1408
+ if(RSTRING_LEN(ch)==1){
1409
+ return self->hasChar(*(StringValuePtr(ch))); // FIXME: hasChar() expects an FXwchar
1410
1410
  }
1411
1411
  else{
1412
1412
  rb_raise(rb_eArgError,"expected a string of length one");
@@ -1526,9 +1526,9 @@ VALUE FXWindow_inquireDNDTypes(FXWindow const *self,FXDNDOrigin origin){
1526
1526
  void FXWindow_setDNDData(FXWindow const *self,FXDNDOrigin origin,FXDragType type,VALUE str){
1527
1527
  Check_Type(str, T_STRING);
1528
1528
  FXuchar* data;
1529
- FXuint size = RSTRING(str)->len;
1529
+ FXuint size = RSTRING_LEN(str);
1530
1530
  if (FXMALLOC(&data, FXuchar, size)) {
1531
- memcpy((void *) data, (void *) RSTRING(str)->ptr, size);
1531
+ memcpy((void *) data, (void *) RSTRING_PTR(str), size);
1532
1532
  self->setDNDData(origin, type, data, size);
1533
1533
  } else {
1534
1534
  rb_raise(rb_eNoMemError, "couldn't copy drag-and-drop data");
@@ -1971,7 +1971,7 @@ static VALUE _wrap_FXStream_open(int argc, VALUE *argv, VALUE self) { FXStream *
1971
1971
  if ((argc < 1) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
1972
1972
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXStream, 1); arg2 = (int) NUM2INT(argv[0]); if (argc > 1) {
1973
1973
  arg3 = NUM2ULONG(argv[1]); } if (argc > 2) {
1974
- arg4 = NIL_P(argv[2]) ? 0 : reinterpret_cast<FXuchar*>(STR2CSTR(argv[2])); }
1974
+ arg4 = NIL_P(argv[2]) ? 0 : reinterpret_cast<FXuchar*>(StringValuePtr(argv[2])); }
1975
1975
  result = (bool)(arg1)->open((FXStreamDirection )arg2,arg3,arg4); vresult = result ? Qtrue : Qfalse; return vresult; }
1976
1976
  static VALUE _wrap_FXStream_getSpace(int argc, VALUE *argv, VALUE self) { FXStream *arg1 = (FXStream *) 0 ; FXuval result;
1977
1977
  VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc);
@@ -5070,7 +5070,7 @@ static VALUE _wrap_FXCURCursor_allocate(VALUE self) {
5070
5070
  static VALUE _wrap_new_FXCURCursor(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; void *arg2 = (void *) 0 ;
5071
5071
  FXCURCursor *result; if ((argc < 2) || (argc > 2)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
5072
5072
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); { if (argv[1] != Qnil) { Check_Type(argv[1], T_STRING);
5073
- arg2 = reinterpret_cast<void *>(RSTRING(argv[1])->ptr); } else { arg2 = NULL; } } {
5073
+ arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1])); } else { arg2 = NULL; } } {
5074
5074
  result = (FXCURCursor *)new_FXCURCursor(arg1,(void const *)arg2);
5075
5075
  DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
5076
5076
  static void
@@ -5125,7 +5125,7 @@ static VALUE _wrap_new_FXGIFCursor(int argc, VALUE *argv, VALUE self) { FXApp *a
5125
5125
  FXint arg3 = (FXint) -1 ; FXint arg4 = (FXint) -1 ; FXGIFCursor *result; if ((argc < 2) || (argc > 4))
5126
5126
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc);
5127
5127
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); { if (argv[1] != Qnil) { Check_Type(argv[1], T_STRING);
5128
- arg2 = reinterpret_cast<void *>(RSTRING(argv[1])->ptr); } else { arg2 = NULL; } } if (argc > 2) {
5128
+ arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1])); } else { arg2 = NULL; } } if (argc > 2) {
5129
5129
  arg3 = NUM2INT(argv[2]); } if (argc > 3) { arg4 = NUM2INT(argv[3]); } {
5130
5130
  result = (FXGIFCursor *)new_FXGIFCursor(arg1,(void const *)arg2,arg3,arg4);
5131
5131
  DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; }
@@ -566,7 +566,7 @@ inline FXColor to_FXColor(VALUE obj){
566
566
  inline FXString to_FXString(VALUE obj){
567
567
  if(!NIL_P(obj)){
568
568
  Check_Type(obj,T_STRING);
569
- return FXString(STR2CSTR(obj));
569
+ return FXString(StringValuePtr(obj));
570
570
  }
571
571
  else{
572
572
  return FXString::null;
@@ -1104,12 +1104,12 @@ static VALUE _wrap_FXDC_drawIconSunken(int argc, VALUE *argv, VALUE self) { FXDC
1104
1104
  static VALUE _wrap_FXDC_drawText(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXint arg2 ; FXint arg3 ;
1105
1105
  FXchar *arg4 ; FXuint arg5 ; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
1106
1106
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); {
1107
- Check_Type(argv[2], T_STRING); arg4 = STR2CSTR(argv[2]); arg5 = RSTRING(argv[2])->len; }
1107
+ Check_Type(argv[2], T_STRING); arg4 = StringValuePtr(argv[2]); arg5 = RSTRING_LEN(argv[2]); }
1108
1108
  FXDC_drawText(arg1,arg2,arg3,(FXchar const *)arg4,arg5); return Qnil; }
1109
1109
  static VALUE _wrap_FXDC_drawImageText(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXint arg2 ; FXint arg3 ;
1110
1110
  FXchar *arg4 ; FXuint arg5 ; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
1111
1111
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDC, 1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); {
1112
- Check_Type(argv[2], T_STRING); arg4 = STR2CSTR(argv[2]); arg5 = RSTRING(argv[2])->len; }
1112
+ Check_Type(argv[2], T_STRING); arg4 = StringValuePtr(argv[2]); arg5 = RSTRING_LEN(argv[2]); }
1113
1113
  FXDC_drawImageText(arg1,arg2,arg3,(FXchar const *)arg4,arg5); return Qnil; }
1114
1114
  static VALUE _wrap_FXDC_setForeground(int argc, VALUE *argv, VALUE self) { FXDC *arg1 = (FXDC *) 0 ; FXColor arg2 ;
1115
1115
  if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
@@ -1548,13 +1548,13 @@ static VALUE _wrap_FXDCWindow_drawText(int argc, VALUE *argv, VALUE self) { FXDC
1548
1548
  FXint arg3 ; FXchar *arg4 ; FXuint arg5 ; if ((argc < 3) || (argc > 3))
1549
1549
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
1550
1550
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); {
1551
- Check_Type(argv[2], T_STRING); arg4 = STR2CSTR(argv[2]); arg5 = RSTRING(argv[2])->len; }
1551
+ Check_Type(argv[2], T_STRING); arg4 = StringValuePtr(argv[2]); arg5 = RSTRING_LEN(argv[2]); }
1552
1552
  FXDCWindow_drawText(arg1,arg2,arg3,(FXchar const *)arg4,arg5); return Qnil; }
1553
1553
  static VALUE _wrap_FXDCWindow_drawImageText(int argc, VALUE *argv, VALUE self) { FXDCWindow *arg1 = (FXDCWindow *) 0 ;
1554
1554
  FXint arg2 ; FXint arg3 ; FXchar *arg4 ; FXuint arg5 ; if ((argc < 3) || (argc > 3))
1555
1555
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
1556
1556
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCWindow, 1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); {
1557
- Check_Type(argv[2], T_STRING); arg4 = STR2CSTR(argv[2]); arg5 = RSTRING(argv[2])->len; }
1557
+ Check_Type(argv[2], T_STRING); arg4 = StringValuePtr(argv[2]); arg5 = RSTRING_LEN(argv[2]); }
1558
1558
  FXDCWindow_drawImageText(arg1,arg2,arg3,(FXchar const *)arg4,arg5); return Qnil; }
1559
1559
  static VALUE _wrap_FXDCWindow_setForeground(int argc, VALUE *argv, VALUE self) { FXDCWindow *arg1 = (FXDCWindow *) 0 ;
1560
1560
  FXColor arg2 ; if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
@@ -2200,13 +2200,13 @@ static VALUE _wrap_FXDCPrint_drawText(int argc, VALUE *argv, VALUE self) { FXDCP
2200
2200
  FXint arg3 ; FXchar *arg4 ; FXuint arg5 ; if ((argc < 3) || (argc > 3))
2201
2201
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
2202
2202
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); {
2203
- Check_Type(argv[2], T_STRING); arg4 = STR2CSTR(argv[2]); arg5 = RSTRING(argv[2])->len; }
2203
+ Check_Type(argv[2], T_STRING); arg4 = StringValuePtr(argv[2]); arg5 = RSTRING_LEN(argv[2]); }
2204
2204
  FXDCPrint_drawText(arg1,arg2,arg3,(FXchar const *)arg4,arg5); return Qnil; }
2205
2205
  static VALUE _wrap_FXDCPrint_drawImageText(int argc, VALUE *argv, VALUE self) { FXDCPrint *arg1 = (FXDCPrint *) 0 ; FXint arg2 ;
2206
2206
  FXint arg3 ; FXchar *arg4 ; FXuint arg5 ; if ((argc < 3) || (argc > 3))
2207
2207
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
2208
2208
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDCPrint, 1); arg2 = NUM2INT(argv[0]); arg3 = NUM2INT(argv[1]); {
2209
- Check_Type(argv[2], T_STRING); arg4 = STR2CSTR(argv[2]); arg5 = RSTRING(argv[2])->len; }
2209
+ Check_Type(argv[2], T_STRING); arg4 = StringValuePtr(argv[2]); arg5 = RSTRING_LEN(argv[2]); }
2210
2210
  FXDCPrint_drawImageText(arg1,arg2,arg3,(FXchar const *)arg4,arg5); return Qnil; }
2211
2211
  static VALUE _wrap_FXDCPrint_setForeground(int argc, VALUE *argv, VALUE self) { FXDCPrint *arg1 = (FXDCPrint *) 0 ;
2212
2212
  FXColor arg2 ; if ((argc < 1) || (argc > 1)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
@@ -580,7 +580,7 @@ inline FXColor to_FXColor(VALUE obj){
580
580
  inline FXString to_FXString(VALUE obj){
581
581
  if(!NIL_P(obj)){
582
582
  Check_Type(obj,T_STRING);
583
- return FXString(STR2CSTR(obj));
583
+ return FXString(StringValuePtr(obj));
584
584
  }
585
585
  else{
586
586
  return FXString::null;
@@ -711,13 +711,13 @@ VALUE FXFileDialog_getFilenames(FXFileDialog const *self){
711
711
  void FXFileDialog_setPatternList(FXFileDialog *self,VALUE ary){
712
712
  FXString patterns;
713
713
  if(TYPE(ary)==T_STRING){
714
- patterns=FXString(STR2CSTR(ary));
714
+ patterns=FXString(StringValuePtr(ary));
715
715
  }
716
716
  else if(TYPE(ary)==T_ARRAY){
717
717
  for(long i=0; i<RARRAY(ary)->len; i++){
718
718
  VALUE obj=rb_ary_entry(ary,i);
719
719
  Check_Type(obj,T_STRING);
720
- patterns+=FXString(STR2CSTR(obj))+FXString("\n");
720
+ patterns+=FXString(StringValuePtr(obj))+FXString("\n");
721
721
  }
722
722
  }
723
723
  else{
@@ -4076,7 +4076,7 @@ static VALUE _wrap_FXProgressDialog_onCmdSetStringValue(int argc, VALUE *argv, V
4076
4076
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
4077
4077
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXProgressDialog, 1);
4078
4078
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
4079
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; }
4079
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
4080
4080
  result = (long)(arg1)->onCmdSetStringValue(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
4081
4081
  static VALUE _wrap_FXProgressDialog_onCmdGetStringValue(int argc, VALUE *argv, VALUE self) {
4082
4082
  FXProgressDialog *arg1 = (FXProgressDialog *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ;
@@ -5202,10 +5202,10 @@ static VALUE _wrap_new_FXChoiceBox__SWIG_0(int argc, VALUE *argv, VALUE self) {
5202
5202
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXWindow, 1); p2 = to_FXString(argv[1]); arg2 = &p2;
5203
5203
  p3 = to_FXString(argv[2]); arg3 = &p3; SWIG_ConvertPtr(argv[3], (void **) &arg4, SWIGTYPE_p_FXIcon, 1); { arg5 = NULL;
5204
5204
  if(!NIL_P(argv[4])){ Check_Type(argv[4], T_ARRAY); if (FXMALLOC(&arg5, FXchar *, RARRAY(argv[4])->len)+1) {
5205
- for (long i = 0; i < RARRAY(argv[4])->len; i++) { arg5[i] = (FXchar *) STR2CSTR(rb_ary_entry(argv[4], i)); }
5206
- arg5[RARRAY(argv[4])->len] = 0; } } } if (argc > 5) { arg6 = NUM2UINT(argv[5]); } if (argc > 6) {
5207
- arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); }
5208
- if (argc > 9) { arg10 = NUM2INT(argv[9]); } {
5205
+ for (long i = 0; i < RARRAY(argv[4])->len; i++) { VALUE e = rb_ary_entry(argv[4], i);
5206
+ arg5[i] = (FXchar *) StringValuePtr(e); } arg5[RARRAY(argv[4])->len] = 0; } } } if (argc > 5) {
5207
+ arg6 = NUM2UINT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); }
5208
+ if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); } {
5209
5209
  result = (FXChoiceBox *)new_FXChoiceBox__SWIG_0(arg1,(FXString const &)*arg2,(FXString const &)*arg3,arg4,(FXchar const **)arg5,arg6,arg7,arg8,arg9,arg10);
5210
5210
  DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } FXFREE(&arg5);
5211
5211
  return self; }
@@ -5227,10 +5227,10 @@ static VALUE _wrap_new_FXChoiceBox__SWIG_1(int argc, VALUE *argv, VALUE self) {
5227
5227
  SWIG_ConvertPtr(argv[0], (void **) &arg1, SWIGTYPE_p_FXApp, 1); p2 = to_FXString(argv[1]); arg2 = &p2;
5228
5228
  p3 = to_FXString(argv[2]); arg3 = &p3; SWIG_ConvertPtr(argv[3], (void **) &arg4, SWIGTYPE_p_FXIcon, 1); { arg5 = NULL;
5229
5229
  if(!NIL_P(argv[4])){ Check_Type(argv[4], T_ARRAY); if (FXMALLOC(&arg5, FXchar *, RARRAY(argv[4])->len)+1) {
5230
- for (long i = 0; i < RARRAY(argv[4])->len; i++) { arg5[i] = (FXchar *) STR2CSTR(rb_ary_entry(argv[4], i)); }
5231
- arg5[RARRAY(argv[4])->len] = 0; } } } if (argc > 5) { arg6 = NUM2UINT(argv[5]); } if (argc > 6) {
5232
- arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); } if (argc > 8) { arg9 = NUM2INT(argv[8]); }
5233
- if (argc > 9) { arg10 = NUM2INT(argv[9]); } {
5230
+ for (long i = 0; i < RARRAY(argv[4])->len; i++) { VALUE e = rb_ary_entry(argv[4], i);
5231
+ arg5[i] = (FXchar *) StringValuePtr(e); } arg5[RARRAY(argv[4])->len] = 0; } } } if (argc > 5) {
5232
+ arg6 = NUM2UINT(argv[5]); } if (argc > 6) { arg7 = NUM2INT(argv[6]); } if (argc > 7) { arg8 = NUM2INT(argv[7]); }
5233
+ if (argc > 8) { arg9 = NUM2INT(argv[8]); } if (argc > 9) { arg10 = NUM2INT(argv[9]); } {
5234
5234
  result = (FXChoiceBox *)new_FXChoiceBox__SWIG_1(arg1,(FXString const &)*arg2,(FXString const &)*arg3,arg4,(FXchar const **)arg5,arg6,arg7,arg8,arg9,arg10);
5235
5235
  DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } FXFREE(&arg5);
5236
5236
  return self; }
@@ -5283,8 +5283,8 @@ static VALUE _wrap_FXChoiceBox_ask__SWIG_0(int argc, VALUE *argv, VALUE self) {
5283
5283
  p3 = to_FXString(argv[2]); arg3 = &p3; p4 = to_FXString(argv[3]); arg4 = &p4;
5284
5284
  SWIG_ConvertPtr(argv[4], (void **) &arg5, SWIGTYPE_p_FXIcon, 1); { arg6 = NULL; if(!NIL_P(argv[5])){
5285
5285
  Check_Type(argv[5], T_ARRAY); if (FXMALLOC(&arg6, FXchar *, RARRAY(argv[5])->len)+1) {
5286
- for (long i = 0; i < RARRAY(argv[5])->len; i++) { arg6[i] = (FXchar *) STR2CSTR(rb_ary_entry(argv[5], i)); }
5287
- arg6[RARRAY(argv[5])->len] = 0; } } }
5286
+ for (long i = 0; i < RARRAY(argv[5])->len; i++) { VALUE e = rb_ary_entry(argv[5], i);
5287
+ arg6[i] = (FXchar *) StringValuePtr(e); } arg6[RARRAY(argv[5])->len] = 0; } } }
5288
5288
  result = (FXint)FXChoiceBox::ask(arg1,arg2,(FXString const &)*arg3,(FXString const &)*arg4,arg5,(FXchar const **)arg6);
5289
5289
  vresult = INT2NUM(result); FXFREE(&arg6); return vresult; }
5290
5290
  static VALUE _wrap_FXChoiceBox_ask__SWIG_1(int argc, VALUE *argv, VALUE self) { FXApp *arg1 = (FXApp *) 0 ; FXuint arg2 ;
@@ -5295,8 +5295,8 @@ static VALUE _wrap_FXChoiceBox_ask__SWIG_1(int argc, VALUE *argv, VALUE self) {
5295
5295
  p3 = to_FXString(argv[2]); arg3 = &p3; p4 = to_FXString(argv[3]); arg4 = &p4;
5296
5296
  SWIG_ConvertPtr(argv[4], (void **) &arg5, SWIGTYPE_p_FXIcon, 1); { arg6 = NULL; if(!NIL_P(argv[5])){
5297
5297
  Check_Type(argv[5], T_ARRAY); if (FXMALLOC(&arg6, FXchar *, RARRAY(argv[5])->len)+1) {
5298
- for (long i = 0; i < RARRAY(argv[5])->len; i++) { arg6[i] = (FXchar *) STR2CSTR(rb_ary_entry(argv[5], i)); }
5299
- arg6[RARRAY(argv[5])->len] = 0; } } }
5298
+ for (long i = 0; i < RARRAY(argv[5])->len; i++) { VALUE e = rb_ary_entry(argv[5], i);
5299
+ arg6[i] = (FXchar *) StringValuePtr(e); } arg6[RARRAY(argv[5])->len] = 0; } } }
5300
5300
  result = (FXint)FXChoiceBox::ask(arg1,arg2,(FXString const &)*arg3,(FXString const &)*arg4,arg5,(FXchar const **)arg6);
5301
5301
  vresult = INT2NUM(result); FXFREE(&arg6); return vresult; }
5302
5302
  static VALUE _wrap_FXChoiceBox_ask(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[6]; int ii; argc = nargs;
@@ -133,6 +133,32 @@ def do_unix_setup
133
133
  find_library("GL", "glXCreateContext", "/usr/X11R6/lib")
134
134
  find_library("GLU", "gluNewQuadric", "/usr/X11R6/lib")
135
135
  $libs = append_library($libs, "FOX-1.6")
136
+ $libs = append_library($libs, "Xrandr")
137
+ $CFLAGS = $CFLAGS + " -O0 -Iinclude"
138
+ if is_fxscintilla_build?
139
+ File.move('scintilla_wrap.cpp.bak', 'scintilla_wrap.cpp') if FileTest.exist?('scintilla_wrap.cpp.bak')
140
+ $CFLAGS = $CFLAGS + " -DWITH_FXSCINTILLA -DHAVE_FOX_1_6"
141
+ $libs = append_library($libs, "fxscintilla")
142
+ else
143
+ File.move('scintilla_wrap.cpp', 'scintilla_wrap.cpp.bak') if FileTest.exist?('scintilla_wrap.cpp')
144
+ end
145
+ end
146
+
147
+ def do_darwin_setup
148
+ $libs = append_library($libs, "stdc++")
149
+ have_header("sys/time.h")
150
+ have_header("signal.h")
151
+ have_library("png", "png_create_read_struct")
152
+ have_library("z", "deflate")
153
+ have_library("jpeg", "jpeg_mem_init")
154
+ have_library("tiff", "TIFFSetErrorHandler")
155
+ find_library("Xext", "XShmQueryVersion", "/usr/X11R6/lib")
156
+ find_library("X11", "XFindContext", "/usr/X11R6/lib")
157
+ find_library("GL", "glXCreateContext", "/usr/X11R6/lib")
158
+ find_library("GLU", "gluNewQuadric", "/usr/X11R6/lib")
159
+ $libs = append_library($libs, "FOX-1.6")
160
+ $libs = append_library($libs, "Xrandr")
161
+ $libs = append_library($libs, "png")
136
162
  $CFLAGS = $CFLAGS + " -O0 -Iinclude"
137
163
  if is_fxscintilla_build?
138
164
  File.move('scintilla_wrap.cpp.bak', 'scintilla_wrap.cpp') if FileTest.exist?('scintilla_wrap.cpp.bak')
@@ -170,9 +196,14 @@ if RUBY_PLATFORM =~ /cygwin/ || RUBY_PLATFORM =~ /mingw/
170
196
  do_cygwin_setup
171
197
  elsif RUBY_PLATFORM =~ /mswin32/
172
198
  do_mswin32_setup
199
+ elsif RUBY_PLATFORM =~ /darwin/
200
+ do_darwin_setup
173
201
  else
174
202
  do_unix_setup
175
203
  end
176
204
 
205
+ # Check for Ruby 1.9
206
+ $CFLAGS += " -DRUBY_1_9" if RUBY_VERSION =~ /1\.9\./
207
+
177
208
  # Last step: build the makefile
178
209
  create_makefile("fox16")
@@ -586,7 +586,7 @@ inline FXColor to_FXColor(VALUE obj){
586
586
  inline FXString to_FXString(VALUE obj){
587
587
  if(!NIL_P(obj)){
588
588
  Check_Type(obj,T_STRING);
589
- return FXString(STR2CSTR(obj));
589
+ return FXString(StringValuePtr(obj));
590
590
  }
591
591
  else{
592
592
  return FXString::null;
@@ -993,8 +993,8 @@ static VALUE _wrap_FXArrowButton_onCmdSetHelp(int argc, VALUE *argv, VALUE self)
993
993
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
994
994
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXArrowButton, 1);
995
995
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
996
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4);
997
- vresult = INT2NUM(result); return vresult; }
996
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
997
+ result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
998
998
  static VALUE _wrap_FXArrowButton_onCmdGetHelp(int argc, VALUE *argv, VALUE self) { FXArrowButton *arg1 = (FXArrowButton *) 0 ;
999
999
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
1000
1000
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -1006,8 +1006,8 @@ static VALUE _wrap_FXArrowButton_onCmdSetTip(int argc, VALUE *argv, VALUE self)
1006
1006
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
1007
1007
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXArrowButton, 1);
1008
1008
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
1009
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4);
1010
- vresult = INT2NUM(result); return vresult; }
1009
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
1010
+ result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
1011
1011
  static VALUE _wrap_FXArrowButton_onCmdGetTip(int argc, VALUE *argv, VALUE self) { FXArrowButton *arg1 = (FXArrowButton *) 0 ;
1012
1012
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
1013
1013
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -1322,8 +1322,8 @@ static VALUE _wrap_FXColorBar_onCmdSetHelp(int argc, VALUE *argv, VALUE self) {
1322
1322
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
1323
1323
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXColorBar, 1);
1324
1324
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
1325
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4);
1326
- vresult = INT2NUM(result); return vresult; }
1325
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
1326
+ result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
1327
1327
  static VALUE _wrap_FXColorBar_onCmdGetHelp(int argc, VALUE *argv, VALUE self) { FXColorBar *arg1 = (FXColorBar *) 0 ;
1328
1328
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
1329
1329
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -1335,8 +1335,8 @@ static VALUE _wrap_FXColorBar_onCmdSetTip(int argc, VALUE *argv, VALUE self) { F
1335
1335
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
1336
1336
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXColorBar, 1);
1337
1337
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
1338
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4);
1339
- vresult = INT2NUM(result); return vresult; }
1338
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
1339
+ result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
1340
1340
  static VALUE _wrap_FXColorBar_onCmdGetTip(int argc, VALUE *argv, VALUE self) { FXColorBar *arg1 = (FXColorBar *) 0 ;
1341
1341
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
1342
1342
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -1641,8 +1641,8 @@ static VALUE _wrap_FXColorRing_onCmdSetHelp(int argc, VALUE *argv, VALUE self) {
1641
1641
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
1642
1642
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXColorRing, 1);
1643
1643
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
1644
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4);
1645
- vresult = INT2NUM(result); return vresult; }
1644
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
1645
+ result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
1646
1646
  static VALUE _wrap_FXColorRing_onCmdGetHelp(int argc, VALUE *argv, VALUE self) { FXColorRing *arg1 = (FXColorRing *) 0 ;
1647
1647
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
1648
1648
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -1654,8 +1654,8 @@ static VALUE _wrap_FXColorRing_onCmdSetTip(int argc, VALUE *argv, VALUE self) {
1654
1654
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
1655
1655
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXColorRing, 1);
1656
1656
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
1657
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4);
1658
- vresult = INT2NUM(result); return vresult; }
1657
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
1658
+ result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
1659
1659
  static VALUE _wrap_FXColorRing_onCmdGetTip(int argc, VALUE *argv, VALUE self) { FXColorRing *arg1 = (FXColorRing *) 0 ;
1660
1660
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
1661
1661
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -1944,8 +1944,8 @@ static VALUE _wrap_FXColorWell_onCmdSetHelp(int argc, VALUE *argv, VALUE self) {
1944
1944
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
1945
1945
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXColorWell, 1);
1946
1946
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
1947
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4);
1948
- vresult = INT2NUM(result); return vresult; }
1947
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
1948
+ result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
1949
1949
  static VALUE _wrap_FXColorWell_onCmdGetHelp(int argc, VALUE *argv, VALUE self) { FXColorWell *arg1 = (FXColorWell *) 0 ;
1950
1950
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
1951
1951
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -1957,8 +1957,8 @@ static VALUE _wrap_FXColorWell_onCmdSetTip(int argc, VALUE *argv, VALUE self) {
1957
1957
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
1958
1958
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXColorWell, 1);
1959
1959
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
1960
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4);
1961
- vresult = INT2NUM(result); return vresult; }
1960
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
1961
+ result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
1962
1962
  static VALUE _wrap_FXColorWell_onCmdGetTip(int argc, VALUE *argv, VALUE self) { FXColorWell *arg1 = (FXColorWell *) 0 ;
1963
1963
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
1964
1964
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -2251,8 +2251,8 @@ static VALUE _wrap_FXColorWheel_onCmdSetHelp(int argc, VALUE *argv, VALUE self)
2251
2251
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
2252
2252
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXColorWheel, 1);
2253
2253
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
2254
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4);
2255
- vresult = INT2NUM(result); return vresult; }
2254
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
2255
+ result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
2256
2256
  static VALUE _wrap_FXColorWheel_onCmdGetHelp(int argc, VALUE *argv, VALUE self) { FXColorWheel *arg1 = (FXColorWheel *) 0 ;
2257
2257
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
2258
2258
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -2264,8 +2264,8 @@ static VALUE _wrap_FXColorWheel_onCmdSetTip(int argc, VALUE *argv, VALUE self) {
2264
2264
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
2265
2265
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXColorWheel, 1);
2266
2266
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
2267
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4);
2268
- vresult = INT2NUM(result); return vresult; }
2267
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
2268
+ result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
2269
2269
  static VALUE _wrap_FXColorWheel_onCmdGetTip(int argc, VALUE *argv, VALUE self) { FXColorWheel *arg1 = (FXColorWheel *) 0 ;
2270
2270
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
2271
2271
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -2652,8 +2652,8 @@ static VALUE _wrap_FXDial_onCmdSetHelp(int argc, VALUE *argv, VALUE self) { FXDi
2652
2652
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
2653
2653
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDial, 1);
2654
2654
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
2655
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4);
2656
- vresult = INT2NUM(result); return vresult; }
2655
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
2656
+ result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
2657
2657
  static VALUE _wrap_FXDial_onCmdGetHelp(int argc, VALUE *argv, VALUE self) { FXDial *arg1 = (FXDial *) 0 ;
2658
2658
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
2659
2659
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -2665,8 +2665,8 @@ static VALUE _wrap_FXDial_onCmdSetTip(int argc, VALUE *argv, VALUE self) { FXDia
2665
2665
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
2666
2666
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXDial, 1);
2667
2667
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
2668
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4);
2669
- vresult = INT2NUM(result); return vresult; }
2668
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
2669
+ result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
2670
2670
  static VALUE _wrap_FXDial_onCmdGetTip(int argc, VALUE *argv, VALUE self) { FXDial *arg1 = (FXDial *) 0 ;
2671
2671
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
2672
2672
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -3230,8 +3230,8 @@ static VALUE _wrap_FXHeader_fillItems(int argc, VALUE *argv, VALUE self) { FXHea
3230
3230
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc);
3231
3231
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXHeader, 1); { arg2 = NULL; if(!NIL_P(argv[0])){
3232
3232
  Check_Type(argv[0], T_ARRAY); if (FXMALLOC(&arg2, FXchar *, RARRAY(argv[0])->len)+1) {
3233
- for (long i = 0; i < RARRAY(argv[0])->len; i++) { arg2[i] = (FXchar *) STR2CSTR(rb_ary_entry(argv[0], i)); }
3234
- arg2[RARRAY(argv[0])->len] = 0; } } } if (argc > 1) {
3233
+ for (long i = 0; i < RARRAY(argv[0])->len; i++) { VALUE e = rb_ary_entry(argv[0], i);
3234
+ arg2[i] = (FXchar *) StringValuePtr(e); } arg2[RARRAY(argv[0])->len] = 0; } } } if (argc > 1) {
3235
3235
  SWIG_ConvertPtr(argv[1], (void **) &arg3, SWIGTYPE_p_FXIcon, 1); } if (argc > 2) { arg4 = NUM2INT(argv[2]); }
3236
3236
  if (argc > 3) { arg5 = (argv[3] == Qnil) ? NULL : (void *) argv[3]; } if (argc > 4) { arg6 = to_FXbool(argv[4]); }
3237
3237
  result = (FXint)(arg1)->fillItems((FXchar const **)arg2,arg3,arg4,arg5,arg6); vresult = INT2NUM(result); FXFREE(&arg2);
@@ -4290,8 +4290,8 @@ static VALUE _wrap_FXKnob_onCmdSetHelp(int argc, VALUE *argv, VALUE self) { FXKn
4290
4290
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
4291
4291
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXKnob, 1);
4292
4292
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
4293
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4);
4294
- vresult = INT2NUM(result); return vresult; }
4293
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
4294
+ result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
4295
4295
  static VALUE _wrap_FXKnob_onCmdGetHelp(int argc, VALUE *argv, VALUE self) { FXKnob *arg1 = (FXKnob *) 0 ;
4296
4296
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
4297
4297
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -4303,8 +4303,8 @@ static VALUE _wrap_FXKnob_onCmdSetTip(int argc, VALUE *argv, VALUE self) { FXKno
4303
4303
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
4304
4304
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXKnob, 1);
4305
4305
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
4306
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4);
4307
- vresult = INT2NUM(result); return vresult; }
4306
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
4307
+ result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
4308
4308
  static VALUE _wrap_FXKnob_onCmdGetTip(int argc, VALUE *argv, VALUE self) { FXKnob *arg1 = (FXKnob *) 0 ;
4309
4309
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
4310
4310
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -4950,8 +4950,8 @@ static VALUE _wrap_FXRuler_onCmdSetHelp(int argc, VALUE *argv, VALUE self) { FXR
4950
4950
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
4951
4951
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXRuler, 1);
4952
4952
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
4953
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4);
4954
- vresult = INT2NUM(result); return vresult; }
4953
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
4954
+ result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
4955
4955
  static VALUE _wrap_FXRuler_onCmdGetHelp(int argc, VALUE *argv, VALUE self) { FXRuler *arg1 = (FXRuler *) 0 ;
4956
4956
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
4957
4957
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -4963,8 +4963,8 @@ static VALUE _wrap_FXRuler_onCmdSetTip(int argc, VALUE *argv, VALUE self) { FXRu
4963
4963
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
4964
4964
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXRuler, 1);
4965
4965
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
4966
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4);
4967
- vresult = INT2NUM(result); return vresult; }
4966
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
4967
+ result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
4968
4968
  static VALUE _wrap_FXRuler_onCmdGetTip(int argc, VALUE *argv, VALUE self) { FXRuler *arg1 = (FXRuler *) 0 ;
4969
4969
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
4970
4970
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -6171,8 +6171,8 @@ static VALUE _wrap_FXSlider_onCmdSetHelp(int argc, VALUE *argv, VALUE self) { FX
6171
6171
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
6172
6172
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXSlider, 1);
6173
6173
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
6174
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4);
6175
- vresult = INT2NUM(result); return vresult; }
6174
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
6175
+ result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
6176
6176
  static VALUE _wrap_FXSlider_onCmdGetHelp(int argc, VALUE *argv, VALUE self) { FXSlider *arg1 = (FXSlider *) 0 ;
6177
6177
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
6178
6178
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -6184,8 +6184,8 @@ static VALUE _wrap_FXSlider_onCmdSetTip(int argc, VALUE *argv, VALUE self) { FXS
6184
6184
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
6185
6185
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXSlider, 1);
6186
6186
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
6187
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4);
6188
- vresult = INT2NUM(result); return vresult; }
6187
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
6188
+ result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
6189
6189
  static VALUE _wrap_FXSlider_onCmdGetTip(int argc, VALUE *argv, VALUE self) { FXSlider *arg1 = (FXSlider *) 0 ;
6190
6190
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
6191
6191
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -6614,8 +6614,8 @@ static VALUE _wrap_FXRealSlider_onCmdSetHelp(int argc, VALUE *argv, VALUE self)
6614
6614
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
6615
6615
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXRealSlider, 1);
6616
6616
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
6617
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4);
6618
- vresult = INT2NUM(result); return vresult; }
6617
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
6618
+ result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
6619
6619
  static VALUE _wrap_FXRealSlider_onCmdGetHelp(int argc, VALUE *argv, VALUE self) { FXRealSlider *arg1 = (FXRealSlider *) 0 ;
6620
6620
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
6621
6621
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -6627,8 +6627,8 @@ static VALUE _wrap_FXRealSlider_onCmdSetTip(int argc, VALUE *argv, VALUE self) {
6627
6627
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
6628
6628
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXRealSlider, 1);
6629
6629
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
6630
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4);
6631
- vresult = INT2NUM(result); return vresult; }
6630
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
6631
+ result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
6632
6632
  static VALUE _wrap_FXRealSlider_onCmdGetTip(int argc, VALUE *argv, VALUE self) { FXRealSlider *arg1 = (FXRealSlider *) 0 ;
6633
6633
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
6634
6634
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -6966,7 +6966,7 @@ static VALUE _wrap_FXStatusLine_onCmdSetStringValue(int argc, VALUE *argv, VALUE
6966
6966
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
6967
6967
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXStatusLine, 1);
6968
6968
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
6969
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; }
6969
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
6970
6970
  result = (long)(arg1)->onCmdSetStringValue(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
6971
6971
  #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
6972
6972
  static VALUE _wrap_FXStatusLine_allocate(VALUE self) {
@@ -7262,8 +7262,8 @@ static VALUE _wrap_FXTextField_onVerify(int argc, VALUE *argv, VALUE self) { FXT
7262
7262
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
7263
7263
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTextField, 1);
7264
7264
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]);
7265
- arg4 = static_cast<void*>(STR2CSTR(argv[2])); result = (long)(arg1)->onVerify(arg2,arg3,arg4); vresult = INT2NUM(result);
7266
- return vresult; }
7265
+ arg4 = static_cast<void*>(StringValuePtr(argv[2])); result = (long)(arg1)->onVerify(arg2,arg3,arg4);
7266
+ vresult = INT2NUM(result); return vresult; }
7267
7267
  static VALUE _wrap_FXTextField_onMotion(int argc, VALUE *argv, VALUE self) { FXTextField *arg1 = (FXTextField *) 0 ;
7268
7268
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
7269
7269
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -7342,7 +7342,7 @@ static VALUE _wrap_FXTextField_onCmdSetValue(int argc, VALUE *argv, VALUE self)
7342
7342
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
7343
7343
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTextField, 1);
7344
7344
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]);
7345
- arg4 = static_cast<void*>(STR2CSTR(argv[2])); result = (long)(arg1)->onCmdSetValue(arg2,arg3,arg4);
7345
+ arg4 = static_cast<void*>(StringValuePtr(argv[2])); result = (long)(arg1)->onCmdSetValue(arg2,arg3,arg4);
7346
7346
  vresult = INT2NUM(result); return vresult; }
7347
7347
  static VALUE _wrap_FXTextField_onCmdSetIntValue(int argc, VALUE *argv, VALUE self) { FXTextField *arg1 = (FXTextField *) 0 ;
7348
7348
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; FXint value4 ;
@@ -7363,7 +7363,7 @@ static VALUE _wrap_FXTextField_onCmdSetStringValue(int argc, VALUE *argv, VALUE
7363
7363
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
7364
7364
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTextField, 1);
7365
7365
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
7366
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; }
7366
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
7367
7367
  result = (long)(arg1)->onCmdSetStringValue(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
7368
7368
  static VALUE _wrap_FXTextField_onCmdGetIntValue(int argc, VALUE *argv, VALUE self) { FXTextField *arg1 = (FXTextField *) 0 ;
7369
7369
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
@@ -7503,7 +7503,7 @@ static VALUE _wrap_FXTextField_onCmdInsertString(int argc, VALUE *argv, VALUE se
7503
7503
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
7504
7504
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTextField, 1);
7505
7505
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]);
7506
- arg4 = static_cast<void*>(STR2CSTR(argv[2])); result = (long)(arg1)->onCmdInsertString(arg2,arg3,arg4);
7506
+ arg4 = static_cast<void*>(StringValuePtr(argv[2])); result = (long)(arg1)->onCmdInsertString(arg2,arg3,arg4);
7507
7507
  vresult = INT2NUM(result); return vresult; }
7508
7508
  static VALUE _wrap_FXTextField_onCmdBackspace(int argc, VALUE *argv, VALUE self) { FXTextField *arg1 = (FXTextField *) 0 ;
7509
7509
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
@@ -7560,8 +7560,8 @@ static VALUE _wrap_FXTextField_onCmdSetHelp(int argc, VALUE *argv, VALUE self) {
7560
7560
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
7561
7561
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTextField, 1);
7562
7562
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
7563
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4);
7564
- vresult = INT2NUM(result); return vresult; }
7563
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
7564
+ result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
7565
7565
  static VALUE _wrap_FXTextField_onCmdGetHelp(int argc, VALUE *argv, VALUE self) { FXTextField *arg1 = (FXTextField *) 0 ;
7566
7566
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
7567
7567
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -7573,8 +7573,8 @@ static VALUE _wrap_FXTextField_onCmdSetTip(int argc, VALUE *argv, VALUE self) {
7573
7573
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
7574
7574
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXTextField, 1);
7575
7575
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
7576
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4);
7577
- vresult = INT2NUM(result); return vresult; }
7576
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
7577
+ result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
7578
7578
  static VALUE _wrap_FXTextField_onCmdGetTip(int argc, VALUE *argv, VALUE self) { FXTextField *arg1 = (FXTextField *) 0 ;
7579
7579
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
7580
7580
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -8062,8 +8062,8 @@ static VALUE _wrap_FXToolBarTab_onCmdSetTip(int argc, VALUE *argv, VALUE self) {
8062
8062
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
8063
8063
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXToolBarTab, 1);
8064
8064
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
8065
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4);
8066
- vresult = INT2NUM(result); return vresult; }
8065
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
8066
+ result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
8067
8067
  static VALUE _wrap_FXToolBarTab_onCmdGetTip(int argc, VALUE *argv, VALUE self) { FXToolBarTab *arg1 = (FXToolBarTab *) 0 ;
8068
8068
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
8069
8069
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -8489,8 +8489,8 @@ static VALUE _wrap_FXGradientBar_onCmdSetHelp(int argc, VALUE *argv, VALUE self)
8489
8489
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
8490
8490
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXGradientBar, 1);
8491
8491
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
8492
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4);
8493
- vresult = INT2NUM(result); return vresult; }
8492
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
8493
+ result = (long)(arg1)->onCmdSetHelp(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
8494
8494
  static VALUE _wrap_FXGradientBar_onCmdGetHelp(int argc, VALUE *argv, VALUE self) { FXGradientBar *arg1 = (FXGradientBar *) 0 ;
8495
8495
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
8496
8496
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
@@ -8502,8 +8502,8 @@ static VALUE _wrap_FXGradientBar_onCmdSetTip(int argc, VALUE *argv, VALUE self)
8502
8502
  VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);
8503
8503
  SWIG_ConvertPtr(self, (void **) &arg1, SWIGTYPE_p_FXGradientBar, 1);
8504
8504
  SWIG_ConvertPtr(argv[0], (void **) &arg2, SWIGTYPE_p_FXObject, 1); arg3 = NUM2UINT(argv[1]); {
8505
- value4 = FXString(STR2CSTR(argv[2])); arg4 = (void *) &value4; } result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4);
8506
- vresult = INT2NUM(result); return vresult; }
8505
+ value4 = FXString(StringValuePtr(argv[2])); arg4 = (void *) &value4; }
8506
+ result = (long)(arg1)->onCmdSetTip(arg2,arg3,arg4); vresult = INT2NUM(result); return vresult; }
8507
8507
  static VALUE _wrap_FXGradientBar_onCmdGetTip(int argc, VALUE *argv, VALUE self) { FXGradientBar *arg1 = (FXGradientBar *) 0 ;
8508
8508
  FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; long result; VALUE vresult = Qnil;
8509
8509
  if ((argc < 3) || (argc > 3)) rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc);