class Fox::FXSize

Public Class Methods

new(*args) click to toggle source
SWIGINTERN VALUE _wrap_new_FXSize(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_FXSize__SWIG_0(nargs, args, self);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSize, SWIG_POINTER_NO_NULL);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FXSize__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    {
      _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) {
        return _wrap_new_FXSize__SWIG_2(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "FXSize.new", 
    "    FXSize.new()\n"
    "    FXSize.new(FXSize const &s)\n"
    "    FXSize.new(FXshort ww, FXshort hh)\n");
  
  return Qnil;
}

Public Instance Methods

*(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXSize___mul__(int argc, VALUE *argv, VALUE self) {
  FXSize *arg1 = (FXSize *) 0 ;
  FXshort arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXSize 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_FXSize, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSize const *","operator *", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSize * >(argp1);
  arg2 = NUM2INT(argv[0]);
  result = FXSize_operator_Sm_((FXSize const *)arg1,arg2);
  vresult = SWIG_NewPointerObj((new FXSize(static_cast< const FXSize& >(result))), SWIGTYPE_p_FXSize, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
+(s) → FXSize click to toggle source

Add operator.

SWIGINTERN VALUE
_wrap_FXSize___add__(int argc, VALUE *argv, VALUE self) {
  FXSize *arg1 = (FXSize *) 0 ;
  FXSize *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  FXSize 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_FXSize, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSize const *","operator +", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSize * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSize,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSize const &","operator +", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSize const &","operator +", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXSize * >(argp2);
  result = FXSize_operator_Sa_((FXSize const *)arg1,(FXSize const &)*arg2);
  vresult = SWIG_NewPointerObj((new FXSize(static_cast< const FXSize& >(result))), SWIGTYPE_p_FXSize, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
-(s) → FXSize click to toggle source

Substraction operator.

SWIGINTERN VALUE
_wrap_FXSize___sub__(int argc, VALUE *argv, VALUE self) {
  FXSize *arg1 = (FXSize *) 0 ;
  FXSize *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  FXSize 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_FXSize, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSize const *","operator -", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSize * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSize,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSize const &","operator -", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSize const &","operator -", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXSize * >(argp2);
  result = FXSize_operator_Ss_((FXSize const *)arg1,(FXSize const &)*arg2);
  vresult = SWIG_NewPointerObj((new FXSize(static_cast< const FXSize& >(result))), SWIGTYPE_p_FXSize, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
-@ → FXSize click to toggle source

Negation operator.

SWIGINTERN VALUE
_wrap_FXSize___neg__(int argc, VALUE *argv, VALUE self) {
  FXSize *arg1 = (FXSize *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXSize 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_FXSize, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSize *","operator -", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSize * >(argp1);
  result = (arg1)->operator -();
  vresult = SWIG_NewPointerObj((new FXSize(static_cast< const FXSize& >(result))), SWIGTYPE_p_FXSize, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
/(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXSize___div__(int argc, VALUE *argv, VALUE self) {
  FXSize *arg1 = (FXSize *) 0 ;
  FXshort arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXSize 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_FXSize, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSize const *","operator /", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSize * >(argp1);
  arg2 = NUM2INT(argv[0]);
  result = FXSize_operator_Sd_((FXSize const *)arg1,arg2);
  vresult = SWIG_NewPointerObj((new FXSize(static_cast< const FXSize& >(result))), SWIGTYPE_p_FXSize, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
==(s) → bool click to toggle source

Equality comparison operator.

SWIGINTERN VALUE
_wrap_FXSize___eq__(int argc, VALUE *argv, VALUE self) {
  FXSize *arg1 = (FXSize *) 0 ;
  FXSize *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_FXSize, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSize const *","operator ==", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSize * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXSize,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXSize const &","operator ==", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXSize const &","operator ==", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXSize * >(argp2);
  result = (bool)FXSize_operator_Se__Se_((FXSize const *)arg1,(FXSize const &)*arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}
empty? → bool click to toggle source

Check if FXSize is empty.

SWIGINTERN VALUE
_wrap_FXSize_emptyq___(int argc, VALUE *argv, VALUE self) {
  FXSize *arg1 = (FXSize *) 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_FXSize, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSize const *","empty", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSize * >(argp1);
  result = (bool)((FXSize const *)arg1)->empty();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}
grow!(*args) click to toggle source
SWIGINTERN VALUE _wrap_FXSize_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;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSize, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
      }
      if (_v) {
        return _wrap_FXSize_growN_____SWIG_0(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSize, 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_FXSize_growN_____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSize, 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_FXSize_growN_____SWIG_2(nargs, args, self);
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 6, "FXSize.grow!", 
    "    FXSize FXSize.grow!(FXshort margin)\n"
    "    FXSize FXSize.grow!(FXshort hormargin, FXshort vermargin)\n"
    "    FXSize & FXSize.grow!(FXshort leftmargin, FXshort rightmargin, FXshort topmargin, FXshort bottommargin)\n");
  
  return Qnil;
}
h(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXSize_h_get(int argc, VALUE *argv, VALUE self) {
  FXSize *arg1 = (FXSize *) 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_FXSize, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSize *","h", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSize * >(argp1);
  result = (FXshort) ((arg1)->h);
  vresult = SWIG_From_short(static_cast< short >(result));
  return vresult;
fail:
  return Qnil;
}
h=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXSize_h_set(int argc, VALUE *argv, VALUE self) {
  FXSize *arg1 = (FXSize *) 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_FXSize, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSize *","h", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSize * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (arg1) (arg1)->h = arg2;
  return Qnil;
fail:
  return Qnil;
}
shrink!(*args) click to toggle source
SWIGINTERN VALUE _wrap_FXSize_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;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSize, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
      }
      if (_v) {
        return _wrap_FXSize_shrinkN_____SWIG_0(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSize, 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_FXSize_shrinkN_____SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXSize, 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_FXSize_shrinkN_____SWIG_2(nargs, args, self);
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 6, "FXSize.shrink!", 
    "    FXSize FXSize.shrink!(FXshort margin)\n"
    "    FXSize FXSize.shrink!(FXshort hormargin, FXshort vermargin)\n"
    "    FXSize & FXSize.shrink!(FXshort leftmargin, FXshort rightmargin, FXshort topmargin, FXshort bottommargin)\n");
  
  return Qnil;
}
w(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXSize_w_get(int argc, VALUE *argv, VALUE self) {
  FXSize *arg1 = (FXSize *) 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_FXSize, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSize *","w", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSize * >(argp1);
  result = (FXshort) ((arg1)->w);
  vresult = SWIG_From_short(static_cast< short >(result));
  return vresult;
fail:
  return Qnil;
}
w=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXSize_w_set(int argc, VALUE *argv, VALUE self) {
  FXSize *arg1 = (FXSize *) 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_FXSize, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSize *","w", 1, self )); 
  }
  arg1 = reinterpret_cast< FXSize * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (arg1) (arg1)->w = arg2;
  return Qnil;
fail:
  return Qnil;
}