class Fox::FXTriStateButton

Public Class Methods

new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_new_FXTriStateButton(int argc, VALUE *argv, VALUE self) {
  FXComposite *arg1 = (FXComposite *) 0 ;
  FXString *arg2 = 0 ;
  FXString *arg3 = 0 ;
  FXString *arg4 = 0 ;
  FXIcon *arg5 = (FXIcon *) 0 ;
  FXIcon *arg6 = (FXIcon *) 0 ;
  FXIcon *arg7 = (FXIcon *) 0 ;
  FXObject *arg8 = (FXObject *) 0 ;
  FXSelector arg9 = (FXSelector) 0 ;
  FXuint arg10 = (FXuint) TOGGLEBUTTON_NORMAL ;
  FXint arg11 = (FXint) 0 ;
  FXint arg12 = (FXint) 0 ;
  FXint arg13 = (FXint) 0 ;
  FXint arg14 = (FXint) 0 ;
  FXint arg15 = (FXint) DEFAULT_PAD ;
  FXint arg16 = (FXint) DEFAULT_PAD ;
  FXint arg17 = (FXint) DEFAULT_PAD ;
  FXint arg18 = (FXint) DEFAULT_PAD ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SwigValueWrapper< FXString > p2 ;
  SwigValueWrapper< FXString > p3 ;
  SwigValueWrapper< FXString > p4 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  FXTriStateButton *result = 0 ;
  
  if ((argc < 4) || (argc > 18)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXComposite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXComposite *","FXTriStateButton", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXComposite * >(argp1);
  p2 = to_FXString(argv[1]); arg2 = &p2;
  p3 = to_FXString(argv[2]); arg3 = &p3;
  p4 = to_FXString(argv[3]); arg4 = &p4;
  if (argc > 4) {
    res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_FXIcon, 0 |  0 );
    if (!SWIG_IsOK(res5)) {
      SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "FXIcon *","FXTriStateButton", 5, argv[4] )); 
    }
    arg5 = reinterpret_cast< FXIcon * >(argp5);
  }
  if (argc > 5) {
    res6 = SWIG_ConvertPtr(argv[5], &argp6,SWIGTYPE_p_FXIcon, 0 |  0 );
    if (!SWIG_IsOK(res6)) {
      SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "FXIcon *","FXTriStateButton", 6, argv[5] )); 
    }
    arg6 = reinterpret_cast< FXIcon * >(argp6);
  }
  if (argc > 6) {
    res7 = SWIG_ConvertPtr(argv[6], &argp7,SWIGTYPE_p_FXIcon, 0 |  0 );
    if (!SWIG_IsOK(res7)) {
      SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "FXIcon *","FXTriStateButton", 7, argv[6] )); 
    }
    arg7 = reinterpret_cast< FXIcon * >(argp7);
  }
  if (argc > 7) {
    res8 = SWIG_ConvertPtr(argv[7], &argp8,SWIGTYPE_p_FXObject, 0 |  0 );
    if (!SWIG_IsOK(res8)) {
      SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "FXObject *","FXTriStateButton", 8, argv[7] )); 
    }
    arg8 = reinterpret_cast< FXObject * >(argp8);
  }
  if (argc > 8) {
    arg9 = NUM2UINT(argv[8]);
  }
  if (argc > 9) {
    arg10 = NUM2UINT(argv[9]);
  }
  if (argc > 10) {
    arg11 = NUM2INT(argv[10]);
  }
  if (argc > 11) {
    arg12 = NUM2INT(argv[11]);
  }
  if (argc > 12) {
    arg13 = NUM2INT(argv[12]);
  }
  if (argc > 13) {
    arg14 = NUM2INT(argv[13]);
  }
  if (argc > 14) {
    arg15 = NUM2INT(argv[14]);
  }
  if (argc > 15) {
    arg16 = NUM2INT(argv[15]);
  }
  if (argc > 16) {
    arg17 = NUM2INT(argv[16]);
  }
  if (argc > 17) {
    arg18 = NUM2INT(argv[17]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXTriStateButton *)new_FXTriStateButton(arg1,(FXString const &)*arg2,(FXString const &)*arg3,(FXString const &)*arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15,arg16,arg17,arg18);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}
new(p, text1, text2, text3, *args, &blk) click to toggle source
# File lib/fox16/kwargs.rb, line 535
def initialize(p, text1, text2, text3, *args, &blk)
  argument_names = %w{icon1 icon2 icon3 target selector opts x y width height padLeft padRight padTop padBottom}
  default_params = { :icon1 => nil, :icon2 => nil, :icon3 => nil, :target => nil, :selector => 0, :opts => TOGGLEBUTTON_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD }
  params = {}
  params = args.pop if args.last.is_a? Hash
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
  if params.key? :padding
    value = params.delete(:padding)
    [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value }
  end
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
  params = default_params.merge(params)
  old_initialize(p, text1, text2, text3, params[:icon1], params[:icon2], params[:icon3], params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk)
end
Also aliased as: old_initialize

Public Instance Methods

getMaybeHelpText(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXTriStateButton_getMaybeHelpText(int argc, VALUE *argv, VALUE self) {
  FXTriStateButton *arg1 = (FXTriStateButton *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXString result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTriStateButton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTriStateButton const *","getMaybeHelpText", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTriStateButton * >(argp1);
  result = ((FXTriStateButton const *)arg1)->getMaybeHelpText();
  vresult = to_ruby((&result)->text());
  return vresult;
fail:
  return Qnil;
}
getMaybeIcon(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXTriStateButton_getMaybeIcon(int argc, VALUE *argv, VALUE self) {
  FXTriStateButton *arg1 = (FXTriStateButton *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXIcon *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTriStateButton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTriStateButton const *","getMaybeIcon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTriStateButton * >(argp1);
  result = (FXIcon *)((FXTriStateButton const *)arg1)->getMaybeIcon();
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXIcon, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
getMaybeText(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXTriStateButton_getMaybeText(int argc, VALUE *argv, VALUE self) {
  FXTriStateButton *arg1 = (FXTriStateButton *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXString result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTriStateButton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTriStateButton const *","getMaybeText", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTriStateButton * >(argp1);
  result = ((FXTriStateButton const *)arg1)->getMaybeText();
  vresult = to_ruby((&result)->text());
  return vresult;
fail:
  return Qnil;
}
getMaybeTipText(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXTriStateButton_getMaybeTipText(int argc, VALUE *argv, VALUE self) {
  FXTriStateButton *arg1 = (FXTriStateButton *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXString result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTriStateButton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTriStateButton const *","getMaybeTipText", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTriStateButton * >(argp1);
  result = ((FXTriStateButton const *)arg1)->getMaybeTipText();
  vresult = to_ruby((&result)->text());
  return vresult;
fail:
  return Qnil;
}
old_initialize(p, text1, text2, text3, *args, &blk)
Alias for: new
onPaint(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXTriStateButton_onPaint(int argc, VALUE *argv, VALUE self) {
  FXTriStateButton *arg1 = (FXTriStateButton *) 0 ;
  FXObject *arg2 = (FXObject *) 0 ;
  FXSelector arg3 ;
  void *arg4 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  long result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTriStateButton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTriStateButton *","onPaint", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTriStateButton * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onPaint", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXObject * >(argp2);
  arg3 = NUM2UINT(argv[1]);
  arg4 = to_FXEvent(argv[2]);
  result = (long)(arg1)->onPaint(arg2,arg3,arg4);
  vresult = SWIG_From_long(static_cast< long >(result));
  return vresult;
fail:
  return Qnil;
}
onQueryHelp(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXTriStateButton_onQueryHelp(int argc, VALUE *argv, VALUE self) {
  FXTriStateButton *arg1 = (FXTriStateButton *) 0 ;
  FXObject *arg2 = (FXObject *) 0 ;
  FXSelector arg3 ;
  void *arg4 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res4 ;
  long result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTriStateButton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTriStateButton *","onQueryHelp", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTriStateButton * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onQueryHelp", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXObject * >(argp2);
  arg3 = NUM2UINT(argv[1]);
  res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onQueryHelp", 4, argv[2] )); 
  }
  result = (long)(arg1)->onQueryHelp(arg2,arg3,arg4);
  vresult = SWIG_From_long(static_cast< long >(result));
  return vresult;
fail:
  return Qnil;
}
onQueryTip(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXTriStateButton_onQueryTip(int argc, VALUE *argv, VALUE self) {
  FXTriStateButton *arg1 = (FXTriStateButton *) 0 ;
  FXObject *arg2 = (FXObject *) 0 ;
  FXSelector arg3 ;
  void *arg4 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res4 ;
  long result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTriStateButton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTriStateButton *","onQueryTip", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTriStateButton * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onQueryTip", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXObject * >(argp2);
  arg3 = NUM2UINT(argv[1]);
  res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onQueryTip", 4, argv[2] )); 
  }
  result = (long)(arg1)->onQueryTip(arg2,arg3,arg4);
  vresult = SWIG_From_long(static_cast< long >(result));
  return vresult;
fail:
  return Qnil;
}
onUnknown(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXTriStateButton_onUnknown(int argc, VALUE *argv, VALUE self) {
  FXTriStateButton *arg1 = (FXTriStateButton *) 0 ;
  FXObject *arg2 = (FXObject *) 0 ;
  FXSelector arg3 ;
  void *arg4 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res4 ;
  long result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTriStateButton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTriStateButton *","onUnknown", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTriStateButton * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUnknown", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXObject * >(argp2);
  arg3 = NUM2UINT(argv[1]);
  res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","onUnknown", 4, argv[2] )); 
  }
  result = (long)(arg1)->onUnknown(arg2,arg3,arg4);
  vresult = SWIG_From_long(static_cast< long >(result));
  return vresult;
fail:
  return Qnil;
}
setMaybeHelpText(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXTriStateButton_setMaybeHelpText(int argc, VALUE *argv, VALUE self) {
  FXTriStateButton *arg1 = (FXTriStateButton *) 0 ;
  FXString *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SwigValueWrapper< FXString > p2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTriStateButton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTriStateButton *","setMaybeHelpText", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTriStateButton * >(argp1);
  p2 = to_FXString(argv[0]); arg2 = &p2;
  (arg1)->setMaybeHelpText((FXString const &)*arg2);
  return Qnil;
fail:
  return Qnil;
}
setMaybeIcon(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXTriStateButton_setMaybeIcon(int argc, VALUE *argv, VALUE self) {
  FXTriStateButton *arg1 = (FXTriStateButton *) 0 ;
  FXIcon *arg2 = (FXIcon *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTriStateButton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTriStateButton *","setMaybeIcon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTriStateButton * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon *","setMaybeIcon", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXIcon * >(argp2);
  (arg1)->setMaybeIcon(arg2);
  return Qnil;
fail:
  return Qnil;
}
setMaybeText(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXTriStateButton_setMaybeText(int argc, VALUE *argv, VALUE self) {
  FXTriStateButton *arg1 = (FXTriStateButton *) 0 ;
  FXString *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SwigValueWrapper< FXString > p2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTriStateButton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTriStateButton *","setMaybeText", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTriStateButton * >(argp1);
  p2 = to_FXString(argv[0]); arg2 = &p2;
  (arg1)->setMaybeText((FXString const &)*arg2);
  return Qnil;
fail:
  return Qnil;
}
setMaybeTipText(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXTriStateButton_setMaybeTipText(int argc, VALUE *argv, VALUE self) {
  FXTriStateButton *arg1 = (FXTriStateButton *) 0 ;
  FXString *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SwigValueWrapper< FXString > p2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTriStateButton, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTriStateButton *","setMaybeTipText", 1, self )); 
  }
  arg1 = reinterpret_cast< FXTriStateButton * >(argp1);
  p2 = to_FXString(argv[0]); arg2 = &p2;
  (arg1)->setMaybeTipText((FXString const &)*arg2);
  return Qnil;
fail:
  return Qnil;
}