class Fox::FXExtentf
Public Class Methods
new(*args)
click to toggle source
SWIGINTERN VALUE _wrap_new_FXExtentf(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[4]; int ii; argc = nargs; if (argc > 4) SWIG_fail; for (ii = 0; (ii < argc); ++ii) { argv[ii] = args[ii]; } if (argc == 0) { return _wrap_new_FXExtentf__SWIG_0(nargs, args, self); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentf, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXExtentf__SWIG_1(nargs, args, self); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec2f, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec2f, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_FXExtentf__SWIG_2(nargs, args, self); } } } if (argc == 4) { int _v; { int res = SWIG_AsVal_float(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_float(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_FXExtentf__SWIG_3(nargs, args, self); } } } } } fail: Ruby_Format_OverloadedError( argc, 4, "FXExtentf.new", " FXExtentf.new()\n" " FXExtentf.new(FXExtentf const &ext)\n" " FXExtentf.new(FXVec2f const &lo, FXVec2f const &hi)\n" " FXExtentf.new(FXfloat xlo, FXfloat xhi, FXfloat ylo, FXfloat yhi)\n"); return Qnil; }
Public Instance Methods
[](i) → FXVec2f
click to toggle source
Element accessor/slicing.
SWIGINTERN VALUE _wrap_FXExtentf___getitem__(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f *result = 0 ; 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","__getitem__", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); arg2 = NUM2INT(argv[0]); result = (FXVec2f *) &FXExtentf___getitem__((FXExtentf const *)arg1,arg2); vresult = FXRbGetRubyObj(result, "FXVec2f *"); return vresult; fail: return Qnil; }
[]=(i, v) → FXVec2f
click to toggle source
Element setter/slicing.
SWIGINTERN VALUE _wrap_FXExtentf___setitem__(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXint arg2 ; FXVec2f *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; FXVec2f *result = 0 ; VALUE vresult = Qnil; 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf *","__setitem__", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); arg2 = NUM2INT(argv[0]); res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec2f &","__setitem__", 3, argv[1] )); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f &","__setitem__", 3, argv[1])); } arg3 = reinterpret_cast< FXVec2f * >(argp3); result = (FXVec2f *) &FXExtentf___setitem__(arg1,arg2,*arg3); vresult = FXRbGetRubyObj(result, "FXVec2f *"); return vresult; fail: return Qnil; }
center(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_center(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","center", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = ((FXExtentf const *)arg1)->center(); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; }
contains(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_contains(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXfloat arg2 ; FXfloat arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; bool result; VALUE vresult = Qnil; 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","contains", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","contains", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","contains", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (bool)((FXExtentf const *)arg1)->contains(arg2,arg3); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
contains?(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_containsq___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentf, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec2f, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXExtentf_containsq_____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentf, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXExtentf, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXExtentf_containsq_____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "FXExtentf.contains?", " bool FXExtentf.contains?(FXVec2f const &p)\n" " bool FXExtentf.contains?(FXExtentf const &ext)\n"); return Qnil; }
corner(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_corner(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXint arg2 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","corner", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); arg2 = NUM2INT(argv[0]); result = ((FXExtentf const *)arg1)->corner(arg2); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; }
diagonal(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_diagonal(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","diagonal", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = ((FXExtentf const *)arg1)->diagonal(); vresult = SWIG_NewPointerObj((new FXVec2f(static_cast< const FXVec2f& >(result))), SWIGTYPE_p_FXVec2f, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; }
diameter(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_diameter(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","diameter", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXfloat)((FXExtentf const *)arg1)->diameter(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; }
empty? → bool
click to toggle source
Check if FXExtentf
is empty.
SWIGINTERN VALUE _wrap_FXExtentf_emptyq___(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","empty", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (bool)((FXExtentf const *)arg1)->empty(); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
height(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_height(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","height", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXfloat)((FXExtentf const *)arg1)->height(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; }
include(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_include(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXfloat arg2 ; FXfloat arg3 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; float val3 ; int ecode3 = 0 ; FXExtentf *result = 0 ; VALUE vresult = Qnil; 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf *","include", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); ecode2 = SWIG_AsVal_float(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","include", 2, argv[0] )); } arg2 = static_cast< FXfloat >(val2); ecode3 = SWIG_AsVal_float(argv[1], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","include", 3, argv[1] )); } arg3 = static_cast< FXfloat >(val3); result = (FXExtentf *) &(arg1)->include(arg2,arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXExtentf, 0 | 0 ); return vresult; fail: return Qnil; }
include!(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_includeN___(int nargs, VALUE *args, VALUE self) { int argc; VALUE argv[3]; int ii; argc = nargs + 1; argv[0] = self; if (argc > 3) SWIG_fail; for (ii = 1; (ii < argc); ++ii) { argv[ii] = args[ii-1]; } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentf, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec2f, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXExtentf_includeN_____SWIG_0(nargs, args, self); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXExtentf, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXExtentf, SWIG_POINTER_NO_NULL); _v = SWIG_CheckState(res); if (_v) { return _wrap_FXExtentf_includeN_____SWIG_1(nargs, args, self); } } } fail: Ruby_Format_OverloadedError( argc, 3, "FXExtentf.include!", " FXExtentf FXExtentf.include!(FXVec2f const &v)\n" " FXExtentf & FXExtentf.include!(FXExtentf const &ext)\n"); return Qnil; }
intersect_with(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_intersect_with(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXExtentf *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXExtentf 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","intersect_with", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXExtentf, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXExtentf const &","intersect_with", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentf const &","intersect_with", 2, argv[0])); } arg2 = reinterpret_cast< FXExtentf * >(argp2); result = FXExtentf_intersect_with((FXExtentf const *)arg1,(FXExtentf const &)*arg2); vresult = SWIG_NewPointerObj((new FXExtentf(static_cast< const FXExtentf& >(result))), SWIGTYPE_p_FXExtentf, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; }
longest(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_longest(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","longest", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXfloat)((FXExtentf const *)arg1)->longest(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; }
lower(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_lower_get(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f *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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf *","lower", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXVec2f *) & ((arg1)->lower); vresult = FXRbGetRubyObj(result, "FXVec2f *"); return vresult; fail: return Qnil; }
lower=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_lower_set(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf *","lower", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","lower", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","lower", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); if (arg1) (arg1)->lower = *arg2; return Qnil; fail: return Qnil; }
overlap?(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_overlapq___(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXExtentf *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","overlap", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXExtentf, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXExtentf const &","overlap", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentf const &","overlap", 2, argv[0])); } arg2 = reinterpret_cast< FXExtentf * >(argp2); result = (bool)FXExtentf_overlap((FXExtentf const *)arg1,(FXExtentf const &)*arg2); vresult = SWIG_From_bool(static_cast< bool >(result)); return vresult; fail: return Qnil; }
radius(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_radius(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","radius", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXfloat)((FXExtentf const *)arg1)->radius(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; }
shortest(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_shortest(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","shortest", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXfloat)((FXExtentf const *)arg1)->shortest(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; }
unite_with(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_unite_with(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXExtentf *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; FXExtentf 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","unite_with", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXExtentf, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXExtentf const &","unite_with", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXExtentf const &","unite_with", 2, argv[0])); } arg2 = reinterpret_cast< FXExtentf * >(argp2); result = FXExtentf_unite_with((FXExtentf const *)arg1,(FXExtentf const &)*arg2); vresult = SWIG_NewPointerObj((new FXExtentf(static_cast< const FXExtentf& >(result))), SWIGTYPE_p_FXExtentf, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; }
upper(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_upper_get(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXVec2f *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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf *","upper", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXVec2f *) & ((arg1)->upper); vresult = FXRbGetRubyObj(result, "FXVec2f *"); return vresult; fail: return Qnil; }
upper=(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_upper_set(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; FXVec2f *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf *","upper", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec2f, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec2f const &","upper", 2, argv[0] )); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec2f const &","upper", 2, argv[0])); } arg2 = reinterpret_cast< FXVec2f * >(argp2); if (arg1) (arg1)->upper = *arg2; return Qnil; fail: return Qnil; }
width(*args)
click to toggle source
SWIGINTERN VALUE _wrap_FXExtentf_width(int argc, VALUE *argv, VALUE self) { FXExtentf *arg1 = (FXExtentf *) 0 ; void *argp1 = 0 ; int res1 = 0 ; FXfloat 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_FXExtentf, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXExtentf const *","width", 1, self )); } arg1 = reinterpret_cast< FXExtentf * >(argp1); result = (FXfloat)((FXExtentf const *)arg1)->width(); vresult = SWIG_From_float(static_cast< float >(result)); return vresult; fail: return Qnil; }