class Fox::FXViewport

Public Class Methods

new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_new_FXViewport(int argc, VALUE *argv, VALUE self) {
  FXViewport *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (FXViewport *)new FXViewport();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}

Public Instance Methods

bottom(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_bottom_get(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","bottom", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  result = (FXdouble) ((arg1)->bottom);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}
bottom=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_bottom_set(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","bottom", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","bottom", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->bottom = arg2;
  return Qnil;
fail:
  return Qnil;
}
h(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_h_get(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXint 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","h", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  result = (FXint) ((arg1)->h);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}
h=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_h_set(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  FXint 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","h", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (arg1) (arg1)->h = arg2;
  return Qnil;
fail:
  return Qnil;
}
hither(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_hither_get(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","hither", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  result = (FXdouble) ((arg1)->hither);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}
hither=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_hither_set(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","hither", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","hither", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->hither = arg2;
  return Qnil;
fail:
  return Qnil;
}
left(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_left_get(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","left", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  result = (FXdouble) ((arg1)->left);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}
left=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_left_set(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","left", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","left", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->left = arg2;
  return Qnil;
fail:
  return Qnil;
}
right(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_right_get(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","right", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  result = (FXdouble) ((arg1)->right);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}
right=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_right_set(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","right", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","right", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->right = arg2;
  return Qnil;
fail:
  return Qnil;
}
top(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_top_get(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","top", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  result = (FXdouble) ((arg1)->top);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}
top=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_top_set(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","top", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","top", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->top = arg2;
  return Qnil;
fail:
  return Qnil;
}
w(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_w_get(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXint 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","w", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  result = (FXint) ((arg1)->w);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}
w=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_w_set(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  FXint 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","w", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  arg2 = NUM2INT(argv[0]);
  if (arg1) (arg1)->w = arg2;
  return Qnil;
fail:
  return Qnil;
}
yon(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_yon_get(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXdouble 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","yon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  result = (FXdouble) ((arg1)->yon);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}
yon=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXViewport_yon_set(int argc, VALUE *argv, VALUE self) {
  FXViewport *arg1 = (FXViewport *) 0 ;
  FXdouble arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 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_FXViewport, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXViewport *","yon", 1, self )); 
  }
  arg1 = reinterpret_cast< FXViewport * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","yon", 2, argv[0] ));
  } 
  arg2 = static_cast< FXdouble >(val2);
  if (arg1) (arg1)->yon = arg2;
  return Qnil;
fail:
  return Qnil;
}