class Fox::FXRectangle
Rectangle
Public Class Methods
Source
SWIGINTERN VALUE _wrap_new_FXRectangle(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_FXRectangle__SWIG_0(nargs, args, self);
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXPoint, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXSize, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_FXRectangle__SWIG_2(nargs, args, self);
}
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXPoint, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXPoint, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_FXRectangle__SWIG_3(nargs, args, self);
}
}
}
if (argc == 4) {
int _v = 0;
{
_v = (TYPE(argv[0]) == T_FIXNUM || TYPE(argv[0]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_new_FXRectangle__SWIG_1(nargs, args, self);
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "FXRectangle.new",
" FXRectangle.new()\n"
" FXRectangle.new(FXshort xx, FXshort yy, FXshort ww, FXshort hh)\n"
" FXRectangle.new(FXPoint const &p, FXSize const &s)\n"
" FXRectangle.new(FXPoint const &topleft, FXPoint const &bottomright)\n");
return Qnil;
}
Source
# File rdoc-sources/FXRectangle.rb, line 24 def initialize; end
Return an uninitialized FXRectangle instance.
Public Instance Methods
Source
SWIGINTERN VALUE
_wrap_FXRectangle___mul__(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
FXRectangle *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
FXRectangle 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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle const *","operator *", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRectangle, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRectangle const &","operator *", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRectangle const &","operator *", 2, argv[0]));
}
arg2 = reinterpret_cast< FXRectangle * >(argp2);
result = FXRectangle_operator_Sm_((FXRectangle const *)arg1,(FXRectangle const &)*arg2);
{
FXRectangle* resultptr = new FXRectangle(result);
vresult = FXRbGetRubyObj(resultptr, "FXRectangle *");
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXRectangle___add__(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
FXRectangle *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
FXRectangle 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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle const *","operator +", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRectangle, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRectangle const &","operator +", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRectangle const &","operator +", 2, argv[0]));
}
arg2 = reinterpret_cast< FXRectangle * >(argp2);
result = FXRectangle_operator_Sa_((FXRectangle const *)arg1,(FXRectangle const &)*arg2);
{
FXRectangle* resultptr = new FXRectangle(result);
vresult = FXRbGetRubyObj(resultptr, "FXRectangle *");
}
return vresult;
fail:
return Qnil;
}
Add operator.
Source
SWIGINTERN VALUE
_wrap_FXRectangle___eq__(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
FXRectangle *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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle const *","operator ==", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRectangle, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRectangle const &","operator ==", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRectangle const &","operator ==", 2, argv[0]));
}
arg2 = reinterpret_cast< FXRectangle * >(argp2);
result = (bool)FXRectangle_operator_Se__Se_((FXRectangle const *)arg1,(FXRectangle const &)*arg2);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Equality comparison operator.
Source
SWIGINTERN VALUE
_wrap_FXRectangle_bl(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXPoint 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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle const *","bl", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
result = ((FXRectangle const *)arg1)->bl();
vresult = SWIG_NewPointerObj((new FXPoint(result)), SWIGTYPE_p_FXPoint, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXRectangle_br(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXPoint 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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle const *","br", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
result = ((FXRectangle const *)arg1)->br();
vresult = SWIG_NewPointerObj((new FXPoint(result)), SWIGTYPE_p_FXPoint, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXRectangle_containsq___(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[4];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 4) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRectangle, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXPoint, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXRectangle_containsq_____SWIG_0(nargs, args, self);
}
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRectangle, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRectangle, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXRectangle_containsq_____SWIG_2(nargs, args, self);
}
}
}
if (argc == 3) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRectangle, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXRectangle_containsq_____SWIG_1(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "FXRectangle.contains?",
" bool FXRectangle.contains?(FXPoint const &p)\n"
" bool FXRectangle.contains?(FXshort xx, FXshort yy)\n"
" bool FXRectangle.contains?(FXRectangle const &r)\n");
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXRectangle_growN___(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[6];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 6) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRectangle, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXRectangle_growN_____SWIG_0(nargs, args, self);
}
}
}
if (argc == 3) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRectangle, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXRectangle_growN_____SWIG_1(nargs, args, self);
}
}
}
}
if (argc == 5) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRectangle, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXRectangle_growN_____SWIG_2(nargs, args, self);
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 6, "FXRectangle.grow!",
" FXRectangle FXRectangle.grow!(FXshort margin)\n"
" FXRectangle FXRectangle.grow!(FXshort hormargin, FXshort vermargin)\n"
" FXRectangle & FXRectangle.grow!(FXshort leftmargin, FXshort rightmargin, FXshort topmargin, FXshort bottommargin)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXRectangle_h_get(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXshort 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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle *","h", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
result = (FXshort) ((arg1)->h);
vresult = SWIG_From_short(static_cast< short >(result));
return vresult;
fail:
return Qnil;
}
Rectangle height [Integer]
Source
SWIGINTERN VALUE
_wrap_FXRectangle_h_set(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
FXshort 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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle *","h", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
arg2 = NUM2INT(argv[0]);
if (arg1) (arg1)->h = arg2;
return Qnil;
fail:
return Qnil;
}
Rectangle height [Integer]
Source
SWIGINTERN VALUE _wrap_FXRectangle_moveN___(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[4];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 4) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRectangle, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXPoint, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXRectangle_moveN_____SWIG_0(nargs, args, self);
}
}
}
if (argc == 3) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRectangle, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXRectangle_moveN_____SWIG_1(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "FXRectangle.move!",
" FXRectangle FXRectangle.move!(FXPoint const &p)\n"
" FXRectangle & FXRectangle.move!(FXshort dx, FXshort dy)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXRectangle_overlapsq___(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
FXRectangle *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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle const *","overlap", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXRectangle, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXRectangle const &","overlap", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXRectangle const &","overlap", 2, argv[0]));
}
arg2 = reinterpret_cast< FXRectangle * >(argp2);
result = (bool)FXRectangle_overlap((FXRectangle const *)arg1,(FXRectangle const &)*arg2);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXRectangle_shrinkN___(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[6];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 6) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRectangle, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXRectangle_shrinkN_____SWIG_0(nargs, args, self);
}
}
}
if (argc == 3) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRectangle, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXRectangle_shrinkN_____SWIG_1(nargs, args, self);
}
}
}
}
if (argc == 5) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXRectangle, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXRectangle_shrinkN_____SWIG_2(nargs, args, self);
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 6, "FXRectangle.shrink!",
" FXRectangle FXRectangle.shrink!(FXshort margin)\n"
" FXRectangle FXRectangle.shrink!(FXshort hormargin, FXshort vermargin)\n"
" FXRectangle & FXRectangle.shrink!(FXshort leftmargin, FXshort rightmargin, FXshort topmargin, FXshort bottommargin)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXRectangle_tl(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXPoint 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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle const *","tl", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
result = ((FXRectangle const *)arg1)->tl();
vresult = SWIG_NewPointerObj((new FXPoint(result)), SWIGTYPE_p_FXPoint, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXRectangle_tr(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXPoint 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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle const *","tr", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
result = ((FXRectangle const *)arg1)->tr();
vresult = SWIG_NewPointerObj((new FXPoint(result)), SWIGTYPE_p_FXPoint, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXRectangle_w_get(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXshort 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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle *","w", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
result = (FXshort) ((arg1)->w);
vresult = SWIG_From_short(static_cast< short >(result));
return vresult;
fail:
return Qnil;
}
Rectangle width [Integer]
Source
SWIGINTERN VALUE
_wrap_FXRectangle_w_set(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
FXshort 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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle *","w", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
arg2 = NUM2INT(argv[0]);
if (arg1) (arg1)->w = arg2;
return Qnil;
fail:
return Qnil;
}
Rectangle width [Integer]
Source
SWIGINTERN VALUE
_wrap_FXRectangle_x_get(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXshort 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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle *","x", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
result = (FXshort) ((arg1)->x);
vresult = SWIG_From_short(static_cast< short >(result));
return vresult;
fail:
return Qnil;
}
Upper left corner’s x-coordinate [Integer]
Source
SWIGINTERN VALUE
_wrap_FXRectangle_x_set(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
FXshort 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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle *","x", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
arg2 = NUM2INT(argv[0]);
if (arg1) (arg1)->x = arg2;
return Qnil;
fail:
return Qnil;
}
Upper left corner’s x-coordinate [Integer]
Source
SWIGINTERN VALUE
_wrap_FXRectangle_y_get(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXshort 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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle *","y", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
result = (FXshort) ((arg1)->y);
vresult = SWIG_From_short(static_cast< short >(result));
return vresult;
fail:
return Qnil;
}
Upper left corner’s y-coordinate [Integer]
Source
SWIGINTERN VALUE
_wrap_FXRectangle_y_set(int argc, VALUE *argv, VALUE self) {
FXRectangle *arg1 = (FXRectangle *) 0 ;
FXshort 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_FXRectangle, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXRectangle *","y", 1, self ));
}
arg1 = reinterpret_cast< FXRectangle * >(argp1);
arg2 = NUM2INT(argv[0]);
if (arg1) (arg1)->y = arg2;
return Qnil;
fail:
return Qnil;
}
Upper left corner’s y-coordinate [Integer]