class Fox::FXCursor
Public Class Methods
new(*args)
click to toggle source
SWIGINTERN VALUE _wrap_new_FXCursor(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[7]; int ii; argc = nargs; if (argc > 7) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if ((argc >= 1) && (argc <= 2)) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXApp, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 1) { return _wrap_new_FXCursor__SWIG_0(nargs, args, self); } { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXCursor__SWIG_0(nargs, args, self); } } } if ((argc >= 2) && (argc <= 6)) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXApp, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 2) { return _wrap_new_FXCursor__SWIG_2(nargs, args, self); } { _v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 3) { return _wrap_new_FXCursor__SWIG_2(nargs, args, self); } { _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 4) { return _wrap_new_FXCursor__SWIG_2(nargs, args, self); } { _v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 5) { return _wrap_new_FXCursor__SWIG_2(nargs, args, self); } { _v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0; } if (_v) { return _wrap_new_FXCursor__SWIG_2(nargs, args, self); } } } } } } } if ((argc >= 3) && (argc <= 7)) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXApp, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0); _v = SWIG_CheckState(res); if (_v) { if (argc <= 3) { return _wrap_new_FXCursor__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 4) { return _wrap_new_FXCursor__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 5) { return _wrap_new_FXCursor__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[5]) == T_FIXNUM || TYPE(argv[5]) == T_BIGNUM) ? 1 : 0; } if (_v) { if (argc <= 6) { return _wrap_new_FXCursor__SWIG_1(nargs, args, self); } { _v = (TYPE(argv[6]) == T_FIXNUM || TYPE(argv[6]) == T_BIGNUM) ? 1 : 0; } if (_v) { return _wrap_new_FXCursor__SWIG_1(nargs, args, self); } } } } } } } } fail: Ruby_Format_OverloadedError( argc, 7, "FXCursor.new", " FXCursor.new(FXApp *a, FXStockCursor curid)\n" " FXCursor.new(FXApp *a, FXuchar const *src, FXuchar const *msk, FXint w, FXint h, FXint hx, FXint hy)\n" " FXCursor.new(FXApp *a, FXColor const *pix, FXint w, FXint h, FXint hx, FXint hy)\n"); return Qnil; }
Public Instance Methods
create(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXCursor_create(int argc, VALUE *argv, VALUE self) { FXCursor *arg1 = (FXCursor *) 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_FXCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXCursor *","create", 1, self )); } arg1 = reinterpret_cast< FXCursor * >(argp1); FXCursor_create(arg1); return Qnil; fail: return Qnil; }
destroy(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXCursor_destroy(int argc, VALUE *argv, VALUE self) { FXCursor *arg1 = (FXCursor *) 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_FXCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXCursor *","destroy", 1, self )); } arg1 = reinterpret_cast< FXCursor * >(argp1); FXCursor_destroy(arg1); return Qnil; fail: return Qnil; }
detach(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXCursor_detach(int argc, VALUE *argv, VALUE self) { FXCursor *arg1 = (FXCursor *) 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_FXCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXCursor *","detach", 1, self )); } arg1 = reinterpret_cast< FXCursor * >(argp1); FXCursor_detach(arg1); return Qnil; fail: return Qnil; }
getHeight(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXCursor_getHeight(int argc, VALUE *argv, VALUE self) { FXCursor *arg1 = (FXCursor *) 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_FXCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXCursor const *","getHeight", 1, self )); } arg1 = reinterpret_cast< FXCursor * >(argp1); result = (FXint)((FXCursor const *)arg1)->getHeight(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; }
getHotX(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXCursor_getHotX(int argc, VALUE *argv, VALUE self) { FXCursor *arg1 = (FXCursor *) 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_FXCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXCursor const *","getHotX", 1, self )); } arg1 = reinterpret_cast< FXCursor * >(argp1); result = (FXint)((FXCursor const *)arg1)->getHotX(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; }
getHotY(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXCursor_getHotY(int argc, VALUE *argv, VALUE self) { FXCursor *arg1 = (FXCursor *) 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_FXCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXCursor const *","getHotY", 1, self )); } arg1 = reinterpret_cast< FXCursor * >(argp1); result = (FXint)((FXCursor const *)arg1)->getHotY(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; }
getWidth(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXCursor_getWidth(int argc, VALUE *argv, VALUE self) { FXCursor *arg1 = (FXCursor *) 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_FXCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXCursor const *","getWidth", 1, self )); } arg1 = reinterpret_cast< FXCursor * >(argp1); result = (FXint)((FXCursor const *)arg1)->getWidth(); vresult = SWIG_From_int(static_cast< int >(result)); return vresult; fail: return Qnil; }
isColor(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXCursor_isColor(int argc, VALUE *argv, VALUE self) { FXCursor *arg1 = (FXCursor *) 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_FXCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXCursor const *","isColor", 1, self )); } arg1 = reinterpret_cast< FXCursor * >(argp1); result = (bool)((FXCursor const *)arg1)->isColor(); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
load(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXCursor_load(int argc, VALUE *argv, VALUE self) { FXCursor *arg1 = (FXCursor *) 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_FXCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXCursor *","load", 1, self )); } arg1 = reinterpret_cast< FXCursor * >(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); FXCursor_load(arg1,*arg2); return Qnil; fail: return Qnil; }
loadPixels(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXCursor_loadPixels(int argc, VALUE *argv, VALUE self) { FXCursor *arg1 = (FXCursor *) 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_FXCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXCursor *","loadPixels", 1, self )); } arg1 = reinterpret_cast< FXCursor * >(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)FXCursor_loadPixels(arg1,*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
save(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXCursor_save(int argc, VALUE *argv, VALUE self) { FXCursor *arg1 = (FXCursor *) 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_FXCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXCursor const *","save", 1, self )); } arg1 = reinterpret_cast< FXCursor * >(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); FXCursor_save((FXCursor const *)arg1,*arg2); return Qnil; fail: return Qnil; }
savePixels(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXCursor_savePixels(int argc, VALUE *argv, VALUE self) { FXCursor *arg1 = (FXCursor *) 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_FXCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXCursor const *","savePixels", 1, self )); } arg1 = reinterpret_cast< FXCursor * >(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)FXCursor_savePixels((FXCursor const *)arg1,*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
setHotX(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXCursor_setHotX(int argc, VALUE *argv, VALUE self) { FXCursor *arg1 = (FXCursor *) 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_FXCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXCursor *","setHotX", 1, self )); } arg1 = reinterpret_cast< FXCursor * >(argp1); arg2 = NUM2INT(argv[0]); (arg1)->setHotX(arg2); return Qnil; fail: return Qnil; }
setHotY(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXCursor_setHotY(int argc, VALUE *argv, VALUE self) { FXCursor *arg1 = (FXCursor *) 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_FXCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXCursor *","setHotY", 1, self )); } arg1 = reinterpret_cast< FXCursor * >(argp1); arg2 = NUM2INT(argv[0]); (arg1)->setHotY(arg2); return Qnil; fail: return Qnil; }