class Fox::FXGradient

Public Instance Methods

blend(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGradient_blend_get(int argc, VALUE *argv, VALUE self) {
  FXGradient *arg1 = (FXGradient *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXuchar 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_FXGradient, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGradient *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGradient * >(argp1);
  result = (FXuchar) ((arg1)->blend);
  vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
  return vresult;
fail:
  return Qnil;
}
blend=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGradient_blend_set(int argc, VALUE *argv, VALUE self) {
  FXGradient *arg1 = (FXGradient *) 0 ;
  FXuchar 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_FXGradient, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGradient *","blend", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGradient * >(argp1);
  arg2 = NUM2UINT(argv[0]);
  if (arg1) (arg1)->blend = arg2;
  return Qnil;
fail:
  return Qnil;
}
lower(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGradient_lower_get(int argc, VALUE *argv, VALUE self) {
  FXGradient *arg1 = (FXGradient *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble 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_FXGradient, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGradient *","lower", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGradient * >(argp1);
  result = (FXdouble) ((arg1)->lower);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}
lower=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGradient_lower_set(int argc, VALUE *argv, VALUE self) {
  FXGradient *arg1 = (FXGradient *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 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_FXGradient, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGradient *","lower", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGradient * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","lower", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->lower = arg2;
  return Qnil;
fail:
  return Qnil;
}
lowerColor(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGradient_lowerColor_get(int argc, VALUE *argv, VALUE self) {
  FXGradient *arg1 = (FXGradient *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXColor 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_FXGradient, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGradient *","lowerColor", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGradient * >(argp1);
  result = (FXColor) ((arg1)->lowerColor);
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}
lowerColor=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGradient_lowerColor_set(int argc, VALUE *argv, VALUE self) {
  FXGradient *arg1 = (FXGradient *) 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_FXGradient, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGradient *","lowerColor", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGradient * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (arg1) (arg1)->lowerColor = arg2;
  return Qnil;
fail:
  return Qnil;
}
middle(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGradient_middle_get(int argc, VALUE *argv, VALUE self) {
  FXGradient *arg1 = (FXGradient *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble 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_FXGradient, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGradient *","middle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGradient * >(argp1);
  result = (FXdouble) ((arg1)->middle);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}
middle=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGradient_middle_set(int argc, VALUE *argv, VALUE self) {
  FXGradient *arg1 = (FXGradient *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 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_FXGradient, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGradient *","middle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGradient * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","middle", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->middle = arg2;
  return Qnil;
fail:
  return Qnil;
}
upper(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGradient_upper_get(int argc, VALUE *argv, VALUE self) {
  FXGradient *arg1 = (FXGradient *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble 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_FXGradient, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGradient *","upper", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGradient * >(argp1);
  result = (FXdouble) ((arg1)->upper);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}
upper=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGradient_upper_set(int argc, VALUE *argv, VALUE self) {
  FXGradient *arg1 = (FXGradient *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 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_FXGradient, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGradient *","upper", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGradient * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","upper", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->upper = arg2;
  return Qnil;
fail:
  return Qnil;
}
upperColor(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGradient_upperColor_get(int argc, VALUE *argv, VALUE self) {
  FXGradient *arg1 = (FXGradient *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXColor 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_FXGradient, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGradient *","upperColor", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGradient * >(argp1);
  result = (FXColor) ((arg1)->upperColor);
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}
upperColor=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXGradient_upperColor_set(int argc, VALUE *argv, VALUE self) {
  FXGradient *arg1 = (FXGradient *) 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_FXGradient, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXGradient *","upperColor", 1, self )); 
  }
  arg1 = reinterpret_cast< FXGradient * >(argp1);
  arg2 = to_FXColor(argv[0]);
  if (arg1) (arg1)->upperColor = arg2;
  return Qnil;
fail:
  return Qnil;
}