class Fox::FXSegment
Line segment
Public Class Methods
Source
SWIGINTERN VALUE
_wrap_new_FXSegment(int argc, VALUE *argv, VALUE self) {
FXshort arg1 = (FXshort) 0 ;
FXshort arg2 = (FXshort) 0 ;
FXshort arg3 = (FXshort) 0 ;
FXshort arg4 = (FXshort) 0 ;
FXSegment *result = 0 ;
if ((argc < 0) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
if (argc > 0) {
arg1 = NUM2INT(argv[0]);
}
if (argc > 1) {
arg2 = NUM2INT(argv[1]);
}
if (argc > 2) {
arg3 = NUM2INT(argv[2]);
}
if (argc > 3) {
arg4 = NUM2INT(argv[3]);
}
result = (FXSegment *)new_FXSegment(arg1,arg2,arg3,arg4);
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
Public Instance Methods
Source
SWIGINTERN VALUE
_wrap_FXSegment_x1_get(int argc, VALUE *argv, VALUE self) {
FXSegment *arg1 = (FXSegment *) 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_FXSegment, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSegment *","x1", 1, self ));
}
arg1 = reinterpret_cast< FXSegment * >(argp1);
result = (FXshort) ((arg1)->x1);
vresult = SWIG_From_short(static_cast< short >(result));
return vresult;
fail:
return Qnil;
}
x-coordinate of the starting point [Integer]
Source
SWIGINTERN VALUE
_wrap_FXSegment_x1_set(int argc, VALUE *argv, VALUE self) {
FXSegment *arg1 = (FXSegment *) 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_FXSegment, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSegment *","x1", 1, self ));
}
arg1 = reinterpret_cast< FXSegment * >(argp1);
arg2 = NUM2INT(argv[0]);
if (arg1) (arg1)->x1 = arg2;
return Qnil;
fail:
return Qnil;
}
x-coordinate of the starting point [Integer]
Source
SWIGINTERN VALUE
_wrap_FXSegment_x2_get(int argc, VALUE *argv, VALUE self) {
FXSegment *arg1 = (FXSegment *) 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_FXSegment, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSegment *","x2", 1, self ));
}
arg1 = reinterpret_cast< FXSegment * >(argp1);
result = (FXshort) ((arg1)->x2);
vresult = SWIG_From_short(static_cast< short >(result));
return vresult;
fail:
return Qnil;
}
x-coordinate of the endpoint [Integer]
Source
SWIGINTERN VALUE
_wrap_FXSegment_x2_set(int argc, VALUE *argv, VALUE self) {
FXSegment *arg1 = (FXSegment *) 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_FXSegment, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSegment *","x2", 1, self ));
}
arg1 = reinterpret_cast< FXSegment * >(argp1);
arg2 = NUM2INT(argv[0]);
if (arg1) (arg1)->x2 = arg2;
return Qnil;
fail:
return Qnil;
}
x-coordinate of the endpoint [Integer]
Source
SWIGINTERN VALUE
_wrap_FXSegment_y1_get(int argc, VALUE *argv, VALUE self) {
FXSegment *arg1 = (FXSegment *) 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_FXSegment, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSegment *","y1", 1, self ));
}
arg1 = reinterpret_cast< FXSegment * >(argp1);
result = (FXshort) ((arg1)->y1);
vresult = SWIG_From_short(static_cast< short >(result));
return vresult;
fail:
return Qnil;
}
y-coordinate of the starting point [Integer]
Source
SWIGINTERN VALUE
_wrap_FXSegment_y1_set(int argc, VALUE *argv, VALUE self) {
FXSegment *arg1 = (FXSegment *) 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_FXSegment, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSegment *","y1", 1, self ));
}
arg1 = reinterpret_cast< FXSegment * >(argp1);
arg2 = NUM2INT(argv[0]);
if (arg1) (arg1)->y1 = arg2;
return Qnil;
fail:
return Qnil;
}
y-coordinate of the starting point [Integer]
Source
SWIGINTERN VALUE
_wrap_FXSegment_y2_get(int argc, VALUE *argv, VALUE self) {
FXSegment *arg1 = (FXSegment *) 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_FXSegment, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSegment *","y2", 1, self ));
}
arg1 = reinterpret_cast< FXSegment * >(argp1);
result = (FXshort) ((arg1)->y2);
vresult = SWIG_From_short(static_cast< short >(result));
return vresult;
fail:
return Qnil;
}
y-coordinate of the endpoint [Integer]
Source
SWIGINTERN VALUE
_wrap_FXSegment_y2_set(int argc, VALUE *argv, VALUE self) {
FXSegment *arg1 = (FXSegment *) 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_FXSegment, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXSegment *","y2", 1, self ));
}
arg1 = reinterpret_cast< FXSegment * >(argp1);
arg2 = NUM2INT(argv[0]);
if (arg1) (arg1)->y2 = arg2;
return Qnil;
fail:
return Qnil;
}
y-coordinate of the endpoint [Integer]