class Fox::TextRange
Public Class Methods
new(*args)
click to toggle source
SWIGINTERN VALUE _wrap_new_TextRange(int argc, VALUE *argv, VALUE self) { int arg1 ; int arg2 ; size_t arg3 ; int val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; size_t val3 ; int ecode3 = 0 ; TextRange *result = 0 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","TextRange", 1, argv[0] )); } arg1 = static_cast< int >(val1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","TextRange", 2, argv[1] )); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_size_t(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","TextRange", 3, argv[2] )); } arg3 = static_cast< size_t >(val3); result = (TextRange *)new_TextRange(arg1,arg2,arg3); DATA_PTR(self) = result; return self; fail: return Qnil; }
Public Instance Methods
lpstrText(*args)
click to toggle source
SWIGINTERN VALUE _wrap_TextRange_lpstrText_get(int argc, VALUE *argv, VALUE self) { TextRange *arg1 = (TextRange *) 0 ; void *argp1 = 0 ; int res1 = 0 ; char *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_TextRange, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "TextRange *","lpstrText", 1, self )); } arg1 = reinterpret_cast< TextRange * >(argp1); result = (char *) ((arg1)->lpstrText); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; }