class Fox::FXJPGIcon

Public Class Methods

fileExt(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_fileExt(int argc, VALUE *argv, VALUE self) {
  VALUE result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (VALUE)FXJPGIcon_fileExt();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}
mimeType(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_mimeType(int argc, VALUE *argv, VALUE self) {
  VALUE result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (VALUE)FXJPGIcon_mimeType();
  vresult = result;
  return vresult;
fail:
  return Qnil;
}
new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_new_FXJPGIcon(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  void *arg2 = (void *) 0 ;
  FXColor arg3 = (FXColor) 0 ;
  FXuint arg4 = (FXuint) 0 ;
  FXint arg5 = (FXint) 1 ;
  FXint arg6 = (FXint) 1 ;
  FXint arg7 = (FXint) 75 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXJPGIcon *result = 0 ;
  
  if ((argc < 1) || (argc > 7)) {
    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 *","FXJPGIcon", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    {
      if (argv[1] != Qnil) {
        Check_Type(argv[1], T_STRING);
        arg2 = reinterpret_cast<void *>(RSTRING_PTR(argv[1]));
      } else {
        arg2 = NULL;
      }
    }
  }
  if (argc > 2) {
    arg3 = to_FXColor(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2UINT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  if (argc > 5) {
    arg6 = NUM2INT(argv[5]);
  }
  if (argc > 6) {
    arg7 = NUM2INT(argv[6]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXJPGIcon *)new_FXJPGIcon(arg1,(void const *)arg2,arg3,arg4,arg5,arg6,arg7);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}
new(a, *args, &blk) click to toggle source
# File lib/fox16/kwargs.rb, line 1119
def initialize(a, *args, &blk)
  argument_names = %w{pix clr opts width height quality}
  default_params = { :pix => nil, :clr => 0, :opts => 0, :width => 1, :height => 1, :quality => 75 }
  params = {}
  params = args.pop if args.last.is_a? Hash
  args.each_with_index { |e, i| params[argument_names[i].intern] = e }
  params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) }
  params = default_params.merge(params)
  old_initialize(a, params[:pix], params[:clr], params[:opts], params[:width], params[:height], params[:quality], &blk)
end
Also aliased as: old_initialize
supported_Sq_(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_supported_Sq_(int argc, VALUE *argv, VALUE self) {
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (bool)FXJPGIcon_isSupported();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}

Public Instance Methods

blend(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_blend(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXColor arg2 ;
  void *argp1 = 0 ;
  int res1 = 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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXJPGIcon_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
create(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_create(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  FXJPGIcon_create(arg1);
  return Qnil;
fail:
  return Qnil;
}
crop(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_crop(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 ;
  FXint arg5 ;
  FXColor arg6 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = NUM2INT(argv[2]);
  arg5 = NUM2INT(argv[3]);
  if (argc > 4) {
    arg6 = to_FXColor(argv[4]);
  }
  FXJPGIcon_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}
destroy(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_destroy(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  FXJPGIcon_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}
detach(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_detach(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  FXJPGIcon_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}
fade(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_fade(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXColor arg2 ;
  FXint arg3 = (FXint) 255 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXJPGIcon_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
fill(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_fill(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXColor arg2 ;
  void *argp1 = 0 ;
  int res1 = 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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXJPGIcon_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
getQuality(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_getQuality(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXint 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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon const *","getQuality", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  result = (FXint)((FXJPGIcon const *)arg1)->getQuality();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}
gradient(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_gradient(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  FXColor arg4 ;
  FXColor arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXJPGIcon_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}
hgradient(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_hgradient(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXJPGIcon_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
load(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_load(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(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);
  FXJPGIcon_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}
loadPixels(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(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 &","loadPixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","loadPixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXJPGIcon_loadPixels(arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}
mirror(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_mirror(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  bool arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","mirror", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","mirror", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  FXJPGIcon_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
old_initialize(a, *args, &blk)
Alias for: new
release(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_release(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  FXJPGIcon_release(arg1);
  return Qnil;
fail:
  return Qnil;
}
render(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_render(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  FXJPGIcon_render(arg1);
  return Qnil;
fail:
  return Qnil;
}
resize(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_resize(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXJPGIcon_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
restore(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_restore(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  FXJPGIcon_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}
rotate(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_rotate(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXint arg2 ;
  void *argp1 = 0 ;
  int res1 = 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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXJPGIcon_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
save(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_save(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(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);
  FXJPGIcon_save((FXJPGIcon const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}
savePixels(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_savePixels(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXStream *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(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 &","savePixels", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","savePixels", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXStream * >(argp2);
  result = (bool)FXJPGIcon_savePixels((FXJPGIcon const *)arg1,*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}
scale(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_scale(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXint arg4 = (FXint) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 2) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXJPGIcon_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}
setQuality(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_setQuality(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXint arg2 ;
  void *argp1 = 0 ;
  int res1 = 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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","setQuality", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  arg2 = NUM2INT(argv[0]);
  (arg1)->setQuality(arg2);
  return Qnil;
fail:
  return Qnil;
}
vgradient(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_vgradient(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXColor arg2 ;
  FXColor arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXJPGIcon_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
xshear(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_xshear(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXJPGIcon_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
yshear(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXJPGIcon_yshear(int argc, VALUE *argv, VALUE self) {
  FXJPGIcon *arg1 = (FXJPGIcon *) 0 ;
  FXint arg2 ;
  FXColor arg3 = (FXColor) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXJPGIcon, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXJPGIcon *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXJPGIcon * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXJPGIcon_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}