class Fox::FXDrawable

Public Class Methods

new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_new_FXDrawable(int argc, VALUE *argv, VALUE self) {
  FXApp *arg1 = (FXApp *) 0 ;
  FXint arg2 ;
  FXint arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXDrawable *result = 0 ;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",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 *","FXDrawable", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< FXApp * >(argp1);
  arg2 = NUM2INT(argv[1]);
  arg3 = NUM2INT(argv[2]);
  {
    if (!arg1) {
      SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
    }
  }
  {
    result = (FXDrawable *)new_FXDrawable(arg1,arg2,arg3);
    DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
    if(rb_block_given_p()){
      rb_yield(self);
    }
  }
  return self;
fail:
  return Qnil;
}

Public Instance Methods

create(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXDrawable_create(int argc, VALUE *argv, VALUE self) {
  FXDrawable *arg1 = (FXDrawable *) 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_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDrawable *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDrawable * >(argp1);
  FXDrawable_create(arg1);
  return Qnil;
fail:
  return Qnil;
}
destroy(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXDrawable_destroy(int argc, VALUE *argv, VALUE self) {
  FXDrawable *arg1 = (FXDrawable *) 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_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDrawable *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDrawable * >(argp1);
  FXDrawable_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}
detach(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXDrawable_detach(int argc, VALUE *argv, VALUE self) {
  FXDrawable *arg1 = (FXDrawable *) 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_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDrawable *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDrawable * >(argp1);
  FXDrawable_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}
getHeight(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXDrawable_getHeight(int argc, VALUE *argv, VALUE self) {
  FXDrawable *arg1 = (FXDrawable *) 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_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDrawable const *","getHeight", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDrawable * >(argp1);
  result = (FXint)((FXDrawable const *)arg1)->getHeight();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}
getVisual(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXDrawable_getVisual(int argc, VALUE *argv, VALUE self) {
  FXDrawable *arg1 = (FXDrawable *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXVisual *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_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDrawable const *","getVisual", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDrawable * >(argp1);
  result = (FXVisual *)((FXDrawable const *)arg1)->getVisual();
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXVisual, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
getWidth(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXDrawable_getWidth(int argc, VALUE *argv, VALUE self) {
  FXDrawable *arg1 = (FXDrawable *) 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_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDrawable const *","getWidth", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDrawable * >(argp1);
  result = (FXint)((FXDrawable const *)arg1)->getWidth();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}
load(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXDrawable_load(int argc, VALUE *argv, VALUE self) {
  FXDrawable *arg1 = (FXDrawable *) 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_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDrawable *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDrawable * >(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);
  FXDrawable_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}
resize(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXDrawable_resize(int argc, VALUE *argv, VALUE self) {
  FXDrawable *arg1 = (FXDrawable *) 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_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDrawable *","resize", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDrawable * >(argp1);
  arg2 = NUM2INT(argv[0]);
  arg3 = NUM2INT(argv[1]);
  FXDrawable_resize(arg1,arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}
save(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXDrawable_save(int argc, VALUE *argv, VALUE self) {
  FXDrawable *arg1 = (FXDrawable *) 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_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDrawable const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDrawable * >(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);
  FXDrawable_save((FXDrawable const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}
setVisual(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXDrawable_setVisual(int argc, VALUE *argv, VALUE self) {
  FXDrawable *arg1 = (FXDrawable *) 0 ;
  FXVisual *arg2 = (FXVisual *) 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_FXDrawable, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDrawable *","setVisual", 1, self )); 
  }
  arg1 = reinterpret_cast< FXDrawable * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXVisual, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVisual *","setVisual", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< FXVisual * >(argp2);
  (arg1)->setVisual(arg2);
  return Qnil;
fail:
  return Qnil;
}