class Fox::FXImage

Public Class Methods

new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_new_FXImage(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  VALUE arg2 = (VALUE) Qnil ;
  FXuint arg3 = (FXuint) 0 ;
  FXint arg4 = (FXint) 1 ;
  FXint arg5 = (FXint) 1 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXImage *result = 0 ;
  
  if ((argc < 1) || (argc > 5)) {
    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 *","FXImage", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  if (argc > 1) {
    arg2 = argv[1];
  }
  if (argc > 2) {
    arg3 = NUM2UINT(argv[2]);
  }
  if (argc > 3) {
    arg4 = NUM2INT(argv[3]);
  }
  if (argc > 4) {
    arg5 = NUM2INT(argv[4]);
  }
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXImage *)new_FXImage(arg1,arg2,arg3,arg4,arg5);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}
new(a, pix, *args) click to toggle source
# File lib/fox16/core.rb, line 694
def initialize(a, pix, *args)
  initialize_without_data_string(a, pix, *args)
  @data_string = (options & IMAGE_OWNED) != 0 ? nil : pix
end

Public Instance Methods

blend(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_blend(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXImage_blend(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
create(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_create(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  FXImage_create(arg1);
  return Qnil;
fail:
  return Qnil;
}
crop(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_crop(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","crop", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(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]);
  }
  FXImage_crop(arg1,arg2,arg3,arg4,arg5,arg6);
  return Qnil;
fail:
  return Qnil;
}
destroy(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_destroy(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  FXImage_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}
detach(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_detach(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  FXImage_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}
fade(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_fade(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","fade", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (argc > 1) {
    arg3 = NUM2INT(argv[1]);
  }
  FXImage_fade(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
fill(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_fill(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","fill", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  FXImage_fill(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
getData(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_getData(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXMemoryBuffer *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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage const *","getData", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  result = (FXMemoryBuffer *)FXImage_getData((FXImage const *)arg1);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXMemoryBuffer, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
getDataPtr(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_getDataPtr(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage const *","getDataPtr", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  result = (VALUE)FXImage_getDataPtr((FXImage const *)arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}
getOptions(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_getOptions(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXuint 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage const *","getOptions", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  result = (FXuint)((FXImage const *)arg1)->getOptions();
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}
getPixel(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_getPixel(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXColor result;
  VALUE vresult = Qnil;
  
  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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage const *","getPixel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  result = (FXColor)((FXImage const *)arg1)->getPixel(arg2,arg3);
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}
gradient(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_gradient(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","gradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  arg4 = to_FXColor(argv[2]);
  arg5 = to_FXColor(argv[3]);
  FXImage_gradient(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}
hasAlpha?(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_hasAlphaq___(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage const *","hasAlpha", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  result = (bool)((FXImage const *)arg1)->hasAlpha();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}
hgradient(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_hgradient(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","hgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXImage_hgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
initialize_without_data_string(a, pix, *args)
Alias for: new
load(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_load(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(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);
  FXImage_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}
loadPixels(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_loadPixels(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","loadPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(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)FXImage_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_FXImage_mirror(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","mirror", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(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);
  FXImage_mirror(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
pixel_string(*args) click to toggle source
SWIGINTERN VALUE _wrap_FXImage_pixel_string(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 4) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXImage, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_FXImage_pixel_string__SWIG_0(nargs, args, self);
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXImage, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
      }
      if (_v) {
        {
          _v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
        }
        if (_v) {
          return _wrap_FXImage_pixel_string__SWIG_1(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "pixel_string", 
    "    VALUE pixel_string()\n"
    "    VALUE pixel_string(FXlong offset, FXlong size)\n");
  
  return Qnil;
}
pixels(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_pixels(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","pixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  result = (VALUE)FXImage_pixels(arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}
release(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_release(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","release", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  FXImage_release(arg1);
  return Qnil;
fail:
  return Qnil;
}
render(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_render(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","render", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  FXImage_render(arg1);
  return Qnil;
fail:
  return Qnil;
}
resize(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_resize(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXImage_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
restore(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_restore(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","restore", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  FXImage_restore(arg1);
  return Qnil;
fail:
  return Qnil;
}
rotate(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_rotate(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","rotate", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  FXImage_rotate(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
save(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_save(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(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);
  FXImage_save((FXImage const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}
savePixels(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_savePixels(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage const *","savePixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(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)FXImage_savePixels((FXImage 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_FXImage_scale(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","scale", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  if (argc > 2) {
    arg4 = NUM2INT(argv[2]);
  }
  FXImage_scale(arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}
setOptions(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_setOptions(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXuint 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","setOptions", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2UINT(argv[0]);
  (arg1)->setOptions(arg2);
  return Qnil;
fail:
  return Qnil;
}
setPixel(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_setPixel(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  FXColor arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","setPixel", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  arg4 = to_FXColor(argv[2]);
  (arg1)->setPixel(arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}
setPixels(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_setPixels(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 0 ;
  VALUE arg2 = (VALUE) 0 ;
  FXuint arg3 = (FXuint) 0 ;
  VALUE arg4 = (VALUE) Qnil ;
  VALUE arg5 = (VALUE) Qnil ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","setPixels", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = argv[0];
  if (argc > 1) {
    arg3 = NUM2UINT(argv[1]);
  }
  if (argc > 2) {
    arg4 = argv[2];
  }
  if (argc > 3) {
    arg5 = argv[3];
  }
  FXImage_setPixels(arg1,arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}
setPixels_without_data_string(*args)
Alias for: setPixels
vgradient(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_vgradient(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","vgradient", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = to_FXColor(argv[0]);
  arg3 = to_FXColor(argv[1]);
  FXImage_vgradient(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
xshear(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_xshear(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","xshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXImage_xshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
yshear(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXImage_yshear(int argc, VALUE *argv, VALUE self) {
  FXImage *arg1 = (FXImage *) 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_FXImage, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXImage *","yshear", 1, self )); 
  }
  arg1 = reinterpret_cast< FXImage * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (argc > 1) {
    arg3 = to_FXColor(argv[1]);
  }
  FXImage_yshear(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}