class Fox::FXId

Public Instance Methods

create(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXId_create(int argc, VALUE *argv, VALUE self) {
  FXId *arg1 = (FXId *) 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_FXId, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXId *","create", 1, self )); 
  }
  arg1 = reinterpret_cast< FXId * >(argp1);
  FXId_create(arg1);
  return Qnil;
fail:
  return Qnil;
}
created?(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXId_createdq___(int argc, VALUE *argv, VALUE self) {
  FXId *arg1 = (FXId *) 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_FXId, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXId const *","created", 1, self )); 
  }
  arg1 = reinterpret_cast< FXId * >(argp1);
  result = (bool)FXId_created((FXId const *)arg1);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}
destroy(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXId_destroy(int argc, VALUE *argv, VALUE self) {
  FXId *arg1 = (FXId *) 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_FXId, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXId *","destroy", 1, self )); 
  }
  arg1 = reinterpret_cast< FXId * >(argp1);
  FXId_destroy(arg1);
  return Qnil;
fail:
  return Qnil;
}
detach(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXId_detach(int argc, VALUE *argv, VALUE self) {
  FXId *arg1 = (FXId *) 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_FXId, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXId *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< FXId * >(argp1);
  FXId_detach(arg1);
  return Qnil;
fail:
  return Qnil;
}
getApp(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXId_getApp(int argc, VALUE *argv, VALUE self) {
  FXId *arg1 = (FXId *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXApp *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_FXId, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXId const *","getApp", 1, self )); 
  }
  arg1 = reinterpret_cast< FXId * >(argp1);
  result = (FXApp *)((FXId const *)arg1)->getApp();
  {
    swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXApp, (void **) &result);
    vresult = FXRbGetRubyObj(result, ty);
  }
  return vresult;
fail:
  return Qnil;
}
getUserData(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXId_getUserData(int argc, VALUE *argv, VALUE self) {
  FXId *arg1 = (FXId *) 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_FXId, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXId const *","getUserData", 1, self )); 
  }
  arg1 = reinterpret_cast< FXId * >(argp1);
  result = (VALUE)FXId_getUserData((FXId const *)arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}
load(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXId_load(int argc, VALUE *argv, VALUE self) {
  FXId *arg1 = (FXId *) 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_FXId, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXId *","load", 1, self )); 
  }
  arg1 = reinterpret_cast< FXId * >(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);
  FXId_load(arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}
runOnUiThread(&block) click to toggle source
# File lib/fox16/thread.rb, line 48
def runOnUiThread(&block)
  app.runOnUiThread(&block)
end
save(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXId_save(int argc, VALUE *argv, VALUE self) {
  FXId *arg1 = (FXId *) 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_FXId, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXId const *","save", 1, self )); 
  }
  arg1 = reinterpret_cast< FXId * >(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);
  FXId_save((FXId const *)arg1,*arg2);
  return Qnil;
fail:
  return Qnil;
}
setUserData(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXId_setUserData(int argc, VALUE *argv, VALUE self) {
  FXId *arg1 = (FXId *) 0 ;
  VALUE arg2 = (VALUE) 0 ;
  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_FXId, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXId *","setUserData", 1, self )); 
  }
  arg1 = reinterpret_cast< FXId * >(argp1);
  arg2 = argv[0];
  FXId_setUserData(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}
xid(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXId_xid(int argc, VALUE *argv, VALUE self) {
  FXId *arg1 = (FXId *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXID 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_FXId, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXId const *","id", 1, self )); 
  }
  arg1 = reinterpret_cast< FXId * >(argp1);
  result = ((FXId const *)arg1)->id();
  vresult = fxid_to_int(result);
  return vresult;
fail:
  return Qnil;
}