class Fox::FXDocument
Public Class Methods
new(*args)
click to toggle source
SWIGINTERN VALUE _wrap_new_FXDocument(int argc, VALUE *argv, VALUE self) { FXDocument *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } { result = (FXDocument *)new_FXDocument(); DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result); if(rb_block_given_p()){ rb_yield(self); } } return self; fail: return Qnil; }
Public Instance Methods
getFilename(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXDocument_getFilename(int argc, VALUE *argv, VALUE self) { FXDocument *arg1 = (FXDocument *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXString *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_FXDocument, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDocument const *","getFilename", 1, self )); } arg1 = reinterpret_cast< FXDocument * >(argp1); result = (FXString *) &((FXDocument const *)arg1)->getFilename(); vresult = to_ruby(result->text()); return vresult; fail: return Qnil; }
getTitle(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXDocument_getTitle(int argc, VALUE *argv, VALUE self) { FXDocument *arg1 = (FXDocument *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXString *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_FXDocument, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDocument const *","getTitle", 1, self )); } arg1 = reinterpret_cast< FXDocument * >(argp1); result = (FXString *) &((FXDocument const *)arg1)->getTitle(); vresult = to_ruby(result->text()); return vresult; fail: return Qnil; }
isModified(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXDocument_isModified(int argc, VALUE *argv, VALUE self) { FXDocument *arg1 = (FXDocument *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXbool 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_FXDocument, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDocument const *","isModified", 1, self )); } arg1 = reinterpret_cast< FXDocument * >(argp1); result = (FXbool)((FXDocument const *)arg1)->isModified(); vresult = result ? Qtrue : Qfalse; return vresult; fail: return Qnil; }
load(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXDocument_load(int argc, VALUE *argv, VALUE self) { FXDocument *arg1 = (FXDocument *) 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_FXDocument, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDocument *","load", 1, self )); } arg1 = reinterpret_cast< FXDocument * >(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); FXDocument_load(arg1,*arg2); return Qnil; fail: return Qnil; }
onUpdFilename(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXDocument_onUpdFilename(int argc, VALUE *argv, VALUE self) { FXDocument *arg1 = (FXDocument *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDocument, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDocument *","onUpdFilename", 1, self )); } arg1 = reinterpret_cast< FXDocument * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdFilename", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdFilename(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; }
onUpdTitle(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXDocument_onUpdTitle(int argc, VALUE *argv, VALUE self) { FXDocument *arg1 = (FXDocument *) 0 ; FXObject *arg2 = (FXObject *) 0 ; FXSelector arg3 ; void *arg4 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long result; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDocument, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDocument *","onUpdTitle", 1, self )); } arg1 = reinterpret_cast< FXDocument * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onUpdTitle", 2, argv[0] )); } arg2 = reinterpret_cast< FXObject * >(argp2); arg3 = NUM2UINT(argv[1]); arg4 = 0; result = (long)(arg1)->onUpdTitle(arg2,arg3,arg4); vresult = SWIG_From_long(static_cast< long >(result)); return vresult; fail: return Qnil; }
save(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXDocument_save(int argc, VALUE *argv, VALUE self) { FXDocument *arg1 = (FXDocument *) 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_FXDocument, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDocument const *","save", 1, self )); } arg1 = reinterpret_cast< FXDocument * >(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); FXDocument_save((FXDocument const *)arg1,*arg2); return Qnil; fail: return Qnil; }
setFilename(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXDocument_setFilename(int argc, VALUE *argv, VALUE self) { FXDocument *arg1 = (FXDocument *) 0 ; FXString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXString > p2 ; 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_FXDocument, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDocument *","setFilename", 1, self )); } arg1 = reinterpret_cast< FXDocument * >(argp1); p2 = to_FXString(argv[0]); arg2 = &p2; (arg1)->setFilename((FXString const &)*arg2); return Qnil; fail: return Qnil; }
setModified(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXDocument_setModified(int argc, VALUE *argv, VALUE self) { FXDocument *arg1 = (FXDocument *) 0 ; FXbool arg2 = (FXbool) 1 ; void *argp1 = 0 ; int res1 = 0 ; if ((argc < 0) || (argc > 1)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXDocument, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDocument *","setModified", 1, self )); } arg1 = reinterpret_cast< FXDocument * >(argp1); if (argc > 0) { arg2 = to_FXbool(argv[0]); } (arg1)->setModified(arg2); return Qnil; fail: return Qnil; }
setTitle(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXDocument_setTitle(int argc, VALUE *argv, VALUE self) { FXDocument *arg1 = (FXDocument *) 0 ; FXString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; SwigValueWrapper< FXString > p2 ; 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_FXDocument, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXDocument *","setTitle", 1, self )); } arg1 = reinterpret_cast< FXDocument * >(argp1); p2 = to_FXString(argv[0]); arg2 = &p2; (arg1)->setTitle((FXString const &)*arg2); return Qnil; fail: return Qnil; }