class Fox::FXIconSource

Public Class Methods

new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_new_FXIconSource(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXIconSource *result = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXApp, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXApp *","FXIconSource", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXIconSource *)new_FXIconSource(arg1);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}

Public Instance Methods

load(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXIconSource_load(int argc, VALUE *argv, VALUE self) {
  FXIconSource *arg1 = (FXIconSource *) 0 ;
  FXStream *arg2 = 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_FXIconSource, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXIconSource *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXIconSource * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","load", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","load", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  FXIconSource_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}
loadIconData(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXIconSource_loadIconData(int argc, VALUE *argv, VALUE self) {
  FXIconSource *arg1 = (FXIconSource *) 0 ;
  void *arg2 = (void *) 0 ;
  FXString const &arg3_defvalue = FXString::null ;
  FXString *arg3 = (FXString *) &arg3_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  SwigValueWrapper< FXString > p3 ;
  FXIcon *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXIconSource, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXIconSource const *","loadIconData", 1, self )); 
  }
  arg1 = reinterpret_cast< FXIconSource * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void const *","loadIconData", 2, argv[0] )); 
  }
  if (argc > 1) {
    p3 = to_FXString(argv[1]); arg3 = &p3;
  }
  result = (FXIcon *)FXIconSource_loadIconData((FXIconSource const *)arg1,(void const *)arg2,(FXString const &)*arg3);
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXIcon, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
loadIconFile(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXIconSource_loadIconFile(int argc, VALUE *argv, VALUE self) {
  FXIconSource *arg1 = (FXIconSource *) 0 ;
  FXString *arg2 = 0 ;
  FXString const &arg3_defvalue = FXString::null ;
  FXString *arg3 = (FXString *) &arg3_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SwigValueWrapper< FXString > p2 ;
  SwigValueWrapper< FXString > p3 ;
  FXIcon *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXIconSource, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXIconSource const *","loadIconFile", 1, self )); 
  }
  arg1 = reinterpret_cast< FXIconSource * >(argp1);
  p2 = to_FXString(argv[0]); arg2 = &p2;
  if (argc > 1) {
    p3 = to_FXString(argv[1]); arg3 = &p3;
  }
  result = (FXIcon *)FXIconSource_loadIconFile((FXIconSource const *)arg1,(FXString const &)*arg2,(FXString const &)*arg3);
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXIcon, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
loadIconStream(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXIconSource_loadIconStream(int argc, VALUE *argv, VALUE self) {
  FXIconSource *arg1 = (FXIconSource *) 0 ;
  FXStream *arg2 = 0 ;
  FXString const &arg3_defvalue = FXString::null ;
  FXString *arg3 = (FXString *) &arg3_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  SwigValueWrapper< FXString > p3 ;
  FXIcon *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXIconSource, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXIconSource const *","loadIconStream", 1, self )); 
  }
  arg1 = reinterpret_cast< FXIconSource * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","loadIconStream", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadIconStream", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  if (argc > 1) {
    p3 = to_FXString(argv[1]); arg3 = &p3;
  }
  result = (FXIcon *)FXIconSource_loadIconStream((FXIconSource const *)arg1,*arg2,(FXString const &)*arg3);
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXIcon, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
loadImageData(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXIconSource_loadImageData(int argc, VALUE *argv, VALUE self) {
  FXIconSource *arg1 = (FXIconSource *) 0 ;
  void *arg2 = (void *) 0 ;
  FXString const &arg3_defvalue = FXString::null ;
  FXString *arg3 = (FXString *) &arg3_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  SwigValueWrapper< FXString > p3 ;
  FXImage *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXIconSource, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXIconSource const *","loadImageData", 1, self )); 
  }
  arg1 = reinterpret_cast< FXIconSource * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void const *","loadImageData", 2, argv[0] )); 
  }
  if (argc > 1) {
    p3 = to_FXString(argv[1]); arg3 = &p3;
  }
  result = (FXImage *)FXIconSource_loadImageData((FXIconSource const *)arg1,(void const *)arg2,(FXString const &)*arg3);
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXImage, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
loadImageFile(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXIconSource_loadImageFile(int argc, VALUE *argv, VALUE self) {
  FXIconSource *arg1 = (FXIconSource *) 0 ;
  FXString *arg2 = 0 ;
  FXString const &arg3_defvalue = FXString::null ;
  FXString *arg3 = (FXString *) &arg3_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SwigValueWrapper< FXString > p2 ;
  SwigValueWrapper< FXString > p3 ;
  FXImage *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXIconSource, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXIconSource const *","loadImageFile", 1, self )); 
  }
  arg1 = reinterpret_cast< FXIconSource * >(argp1);
  p2 = to_FXString(argv[0]); arg2 = &p2;
  if (argc > 1) {
    p3 = to_FXString(argv[1]); arg3 = &p3;
  }
  result = (FXImage *)FXIconSource_loadImageFile((FXIconSource const *)arg1,(FXString const &)*arg2,(FXString const &)*arg3);
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXImage, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
loadImageStream(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXIconSource_loadImageStream(int argc, VALUE *argv, VALUE self) {
  FXIconSource *arg1 = (FXIconSource *) 0 ;
  FXStream *arg2 = 0 ;
  FXString const &arg3_defvalue = FXString::null ;
  FXString *arg3 = (FXString *) &arg3_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  SwigValueWrapper< FXString > p3 ;
  FXImage *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXIconSource, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXIconSource const *","loadImageStream", 1, self )); 
  }
  arg1 = reinterpret_cast< FXIconSource * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","loadImageStream", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadImageStream", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  if (argc > 1) {
    p3 = to_FXString(argv[1]); arg3 = &p3;
  }
  result = (FXImage *)FXIconSource_loadImageStream((FXIconSource const *)arg1,*arg2,(FXString const &)*arg3);
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXImage, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
loadScaledIconData(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXIconSource_loadScaledIconData(int argc, VALUE *argv, VALUE self) {
  FXIconSource *arg1 = (FXIconSource *) 0 ;
  void *arg2 = (void *) 0 ;
  FXint arg3 = (FXint) 32 ;
  FXint arg4 = (FXint) 0 ;
  FXString const &arg5_defvalue = FXString::null ;
  FXString *arg5 = (FXString *) &arg5_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  SwigValueWrapper< FXString > p5 ;
  FXIcon *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXIconSource, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXIconSource const *","loadScaledIconData", 1, self )); 
  }
  arg1 = reinterpret_cast< FXIconSource * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void const *","loadScaledIconData", 2, argv[0] )); 
  }
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  if (argc > 3) {
    p5 = to_FXString(argv[3]); arg5 = &p5;
  }
  result = (FXIcon *)FXIconSource_loadScaledIconData((FXIconSource const *)arg1,(void const *)arg2,arg3,arg4,(FXString const &)*arg5);
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXIcon, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
loadScaledIconFile(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXIconSource_loadScaledIconFile(int argc, VALUE *argv, VALUE self) {
  FXIconSource *arg1 = (FXIconSource *) 0 ;
  FXString *arg2 = 0 ;
  FXint arg3 = (FXint) 32 ;
  FXint arg4 = (FXint) 0 ;
  FXString const &arg5_defvalue = FXString::null ;
  FXString *arg5 = (FXString *) &arg5_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SwigValueWrapper< FXString > p2 ;
  SwigValueWrapper< FXString > p5 ;
  FXIcon *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXIconSource, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXIconSource const *","loadScaledIconFile", 1, self )); 
  }
  arg1 = reinterpret_cast< FXIconSource * >(argp1);
  p2 = to_FXString(argv[0]); arg2 = &p2;
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  if (argc > 3) {
    p5 = to_FXString(argv[3]); arg5 = &p5;
  }
  result = (FXIcon *)FXIconSource_loadScaledIconFile((FXIconSource const *)arg1,(FXString const &)*arg2,arg3,arg4,(FXString const &)*arg5);
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXIcon, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
loadScaledIconStream(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXIconSource_loadScaledIconStream(int argc, VALUE *argv, VALUE self) {
  FXIconSource *arg1 = (FXIconSource *) 0 ;
  FXStream *arg2 = 0 ;
  FXint arg3 = (FXint) 32 ;
  FXint arg4 = (FXint) 0 ;
  FXString const &arg5_defvalue = FXString::null ;
  FXString *arg5 = (FXString *) &arg5_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  SwigValueWrapper< FXString > p5 ;
  FXIcon *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXIconSource, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXIconSource const *","loadScaledIconStream", 1, self )); 
  }
  arg1 = reinterpret_cast< FXIconSource * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","loadScaledIconStream", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadScaledIconStream", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  if (argc > 3) {
    p5 = to_FXString(argv[3]); arg5 = &p5;
  }
  result = (FXIcon *)FXIconSource_loadScaledIconStream((FXIconSource const *)arg1,*arg2,arg3,arg4,(FXString const &)*arg5);
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXIcon, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
loadScaledImageData(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXIconSource_loadScaledImageData(int argc, VALUE *argv, VALUE self) {
  FXIconSource *arg1 = (FXIconSource *) 0 ;
  void *arg2 = (void *) 0 ;
  FXint arg3 = (FXint) 32 ;
  FXint arg4 = (FXint) 0 ;
  FXString const &arg5_defvalue = FXString::null ;
  FXString *arg5 = (FXString *) &arg5_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  SwigValueWrapper< FXString > p5 ;
  FXImage *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXIconSource, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXIconSource const *","loadScaledImageData", 1, self )); 
  }
  arg1 = reinterpret_cast< FXIconSource * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void const *","loadScaledImageData", 2, argv[0] )); 
  }
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  if (argc > 3) {
    p5 = to_FXString(argv[3]); arg5 = &p5;
  }
  result = (FXImage *)FXIconSource_loadScaledImageData((FXIconSource const *)arg1,(void const *)arg2,arg3,arg4,(FXString const &)*arg5);
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXImage, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
loadScaledImageFile(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXIconSource_loadScaledImageFile(int argc, VALUE *argv, VALUE self) {
  FXIconSource *arg1 = (FXIconSource *) 0 ;
  FXString *arg2 = 0 ;
  FXint arg3 = (FXint) 32 ;
  FXint arg4 = (FXint) 0 ;
  FXString const &arg5_defvalue = FXString::null ;
  FXString *arg5 = (FXString *) &arg5_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SwigValueWrapper< FXString > p2 ;
  SwigValueWrapper< FXString > p5 ;
  FXImage *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXIconSource, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXIconSource const *","loadScaledImageFile", 1, self )); 
  }
  arg1 = reinterpret_cast< FXIconSource * >(argp1);
  p2 = to_FXString(argv[0]); arg2 = &p2;
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  if (argc > 3) {
    p5 = to_FXString(argv[3]); arg5 = &p5;
  }
  result = (FXImage *)FXIconSource_loadScaledImageFile((FXIconSource const *)arg1,(FXString const &)*arg2,arg3,arg4,(FXString const &)*arg5);
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXImage, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
loadScaledImageStream(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXIconSource_loadScaledImageStream(int argc, VALUE *argv, VALUE self) {
  FXIconSource *arg1 = (FXIconSource *) 0 ;
  FXStream *arg2 = 0 ;
  FXint arg3 = (FXint) 32 ;
  FXint arg4 = (FXint) 0 ;
  FXString const &arg5_defvalue = FXString::null ;
  FXString *arg5 = (FXString *) &arg5_defvalue ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  SwigValueWrapper< FXString > p5 ;
  FXImage *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXIconSource, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXIconSource const *","loadScaledImageStream", 1, self )); 
  }
  arg1 = reinterpret_cast< FXIconSource * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","loadScaledImageStream", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadScaledImageStream", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  if (argc > 3) {
    p5 = to_FXString(argv[3]); arg5 = &p5;
  }
  result = (FXImage *)FXIconSource_loadScaledImageStream((FXIconSource const *)arg1,*arg2,arg3,arg4,(FXString const &)*arg5);
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXImage, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
save(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXIconSource_save(int argc, VALUE *argv, VALUE self) {
  FXIconSource *arg1 = (FXIconSource *) 0 ;
  FXStream *arg2 = 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_FXIconSource, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXIconSource const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXIconSource * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","save", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","save", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  FXIconSource_save((FXIconSource const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}