Class: Notcurses::Ncvgeom
- Inherits:
-
Object
- Object
- Notcurses::Ncvgeom
- Defined in:
- ext/notcurses/src/notcurses_wrap.c,
ext/notcurses/src/notcurses_wrap.c
Overview
Proxy of C Notcurses::Ncvgeom struct
Instance Method Summary collapse
-
#begx(*args) ⇒ Object
call-seq: begx -> unsigned int.
-
#begx=(*args) ⇒ Object
call-seq: begx=(x) -> unsigned int.
-
#begy(*args) ⇒ Object
call-seq: begy -> unsigned int.
-
#begy=(*args) ⇒ Object
call-seq: begy=(x) -> unsigned int.
-
#blitter(*args) ⇒ Object
call-seq: blitter -> int.
-
#blitter=(*args) ⇒ Object
call-seq: blitter=(x) -> int.
-
#cdimx(*args) ⇒ Object
call-seq: cdimx -> unsigned int.
-
#cdimx=(*args) ⇒ Object
call-seq: cdimx=(x) -> unsigned int.
-
#cdimy(*args) ⇒ Object
call-seq: cdimy -> unsigned int.
-
#cdimy=(*args) ⇒ Object
call-seq: cdimy=(x) -> unsigned int.
-
#initialize(*args) ⇒ Object
constructor
call-seq: Ncvgeom.new.
-
#lenx(*args) ⇒ Object
call-seq: lenx -> unsigned int.
-
#lenx=(*args) ⇒ Object
call-seq: lenx=(x) -> unsigned int.
-
#leny(*args) ⇒ Object
call-seq: leny -> unsigned int.
-
#leny=(*args) ⇒ Object
call-seq: leny=(x) -> unsigned int.
-
#maxpixelx(*args) ⇒ Object
call-seq: maxpixelx -> unsigned int.
-
#maxpixelx=(*args) ⇒ Object
call-seq: maxpixelx=(x) -> unsigned int.
-
#maxpixely(*args) ⇒ Object
call-seq: maxpixely -> unsigned int.
-
#maxpixely=(*args) ⇒ Object
call-seq: maxpixely=(x) -> unsigned int.
-
#pixx(*args) ⇒ Object
call-seq: pixx -> unsigned int.
-
#pixx=(*args) ⇒ Object
call-seq: pixx=(x) -> unsigned int.
-
#pixy(*args) ⇒ Object
call-seq: pixy -> unsigned int.
-
#pixy=(*args) ⇒ Object
call-seq: pixy=(x) -> unsigned int.
-
#rcellx(*args) ⇒ Object
call-seq: rcellx -> unsigned int.
-
#rcellx=(*args) ⇒ Object
call-seq: rcellx=(x) -> unsigned int.
-
#rcelly(*args) ⇒ Object
call-seq: rcelly -> unsigned int.
-
#rcelly=(*args) ⇒ Object
call-seq: rcelly=(x) -> unsigned int.
-
#rpixx(*args) ⇒ Object
call-seq: rpixx -> unsigned int.
-
#rpixx=(*args) ⇒ Object
call-seq: rpixx=(x) -> unsigned int.
-
#rpixy(*args) ⇒ Object
call-seq: rpixy -> unsigned int.
-
#rpixy=(*args) ⇒ Object
call-seq: rpixy=(x) -> unsigned int.
-
#scalex(*args) ⇒ Object
call-seq: scalex -> unsigned int.
-
#scalex=(*args) ⇒ Object
call-seq: scalex=(x) -> unsigned int.
-
#scaley(*args) ⇒ Object
call-seq: scaley -> unsigned int.
-
#scaley=(*args) ⇒ Object
call-seq: scaley=(x) -> unsigned int.
Constructor Details
#initialize(*args) ⇒ Object
45563 45564 45565 45566 45567 45568 45569 45570 45571 45572 45573 45574 45575 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 45563
SWIGINTERN VALUE
_wrap_new_Ncvgeom(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (struct ncvgeom *)calloc(1, sizeof(struct ncvgeom));
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#begx(*args) ⇒ Object
call-seq:
begx -> unsigned int
Get value of attribute.
44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44979
SWIGINTERN VALUE
_wrap_Ncvgeom_begx_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","begx", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->begx);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#begx=(*args) ⇒ Object
call-seq:
begx=(x) -> unsigned int
Set new value for attribute.
44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44933
SWIGINTERN VALUE
_wrap_Ncvgeom_begx_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","begx", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","begx", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->begx = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#begy(*args) ⇒ Object
call-seq:
begy -> unsigned int
Get value of attribute.
44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44875
SWIGINTERN VALUE
_wrap_Ncvgeom_begy_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","begy", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->begy);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#begy=(*args) ⇒ Object
call-seq:
begy=(x) -> unsigned int
Set new value for attribute.
44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44829
SWIGINTERN VALUE
_wrap_Ncvgeom_begy_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","begy", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","begy", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->begy = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#blitter(*args) ⇒ Object
call-seq:
blitter -> int
Get value of attribute.
45499 45500 45501 45502 45503 45504 45505 45506 45507 45508 45509 45510 45511 45512 45513 45514 45515 45516 45517 45518 45519 45520 45521 45522 45523 45524 45525 45526 45527 45528 45529 45530 45531 45532 45533 45534 45535 45536 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 45499
SWIGINTERN VALUE
_wrap_Ncvgeom_blitter_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
ncblitter_e 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","blitter", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (ncblitter_e) ((arg1)->blitter);
vresult = SWIG_From_int((int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#blitter=(*args) ⇒ Object
call-seq:
blitter=(x) -> int
Set new value for attribute.
45453 45454 45455 45456 45457 45458 45459 45460 45461 45462 45463 45464 45465 45466 45467 45468 45469 45470 45471 45472 45473 45474 45475 45476 45477 45478 45479 45480 45481 45482 45483 45484 45485 45486 45487 45488 45489 45490 45491 45492 45493 45494 45495 45496 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 45453
SWIGINTERN VALUE
_wrap_Ncvgeom_blitter_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
ncblitter_e arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","blitter", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ncblitter_e","blitter", 2, argv[0] ));
}
arg2 = (ncblitter_e)(val2);
if (arg1) (arg1)->blitter = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#cdimx(*args) ⇒ Object
call-seq:
cdimx -> unsigned int
Get value of attribute.
44147 44148 44149 44150 44151 44152 44153 44154 44155 44156 44157 44158 44159 44160 44161 44162 44163 44164 44165 44166 44167 44168 44169 44170 44171 44172 44173 44174 44175 44176 44177 44178 44179 44180 44181 44182 44183 44184 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44147
SWIGINTERN VALUE
_wrap_Ncvgeom_cdimx_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","cdimx", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->cdimx);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#cdimx=(*args) ⇒ Object
call-seq:
cdimx=(x) -> unsigned int
Set new value for attribute.
44101 44102 44103 44104 44105 44106 44107 44108 44109 44110 44111 44112 44113 44114 44115 44116 44117 44118 44119 44120 44121 44122 44123 44124 44125 44126 44127 44128 44129 44130 44131 44132 44133 44134 44135 44136 44137 44138 44139 44140 44141 44142 44143 44144 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44101
SWIGINTERN VALUE
_wrap_Ncvgeom_cdimx_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","cdimx", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","cdimx", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->cdimx = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#cdimy(*args) ⇒ Object
call-seq:
cdimy -> unsigned int
Get value of attribute.
44043 44044 44045 44046 44047 44048 44049 44050 44051 44052 44053 44054 44055 44056 44057 44058 44059 44060 44061 44062 44063 44064 44065 44066 44067 44068 44069 44070 44071 44072 44073 44074 44075 44076 44077 44078 44079 44080 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44043
SWIGINTERN VALUE
_wrap_Ncvgeom_cdimy_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","cdimy", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->cdimy);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#cdimy=(*args) ⇒ Object
call-seq:
cdimy=(x) -> unsigned int
Set new value for attribute.
43997 43998 43999 44000 44001 44002 44003 44004 44005 44006 44007 44008 44009 44010 44011 44012 44013 44014 44015 44016 44017 44018 44019 44020 44021 44022 44023 44024 44025 44026 44027 44028 44029 44030 44031 44032 44033 44034 44035 44036 44037 44038 44039 44040 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43997
SWIGINTERN VALUE
_wrap_Ncvgeom_cdimy_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","cdimy", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","cdimy", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->cdimy = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#lenx(*args) ⇒ Object
call-seq:
lenx -> unsigned int
Get value of attribute.
45187 45188 45189 45190 45191 45192 45193 45194 45195 45196 45197 45198 45199 45200 45201 45202 45203 45204 45205 45206 45207 45208 45209 45210 45211 45212 45213 45214 45215 45216 45217 45218 45219 45220 45221 45222 45223 45224 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 45187
SWIGINTERN VALUE
_wrap_Ncvgeom_lenx_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","lenx", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->lenx);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#lenx=(*args) ⇒ Object
call-seq:
lenx=(x) -> unsigned int
Set new value for attribute.
45141 45142 45143 45144 45145 45146 45147 45148 45149 45150 45151 45152 45153 45154 45155 45156 45157 45158 45159 45160 45161 45162 45163 45164 45165 45166 45167 45168 45169 45170 45171 45172 45173 45174 45175 45176 45177 45178 45179 45180 45181 45182 45183 45184 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 45141
SWIGINTERN VALUE
_wrap_Ncvgeom_lenx_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","lenx", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","lenx", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->lenx = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#leny(*args) ⇒ Object
call-seq:
leny -> unsigned int
Get value of attribute.
45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099 45100 45101 45102 45103 45104 45105 45106 45107 45108 45109 45110 45111 45112 45113 45114 45115 45116 45117 45118 45119 45120 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 45083
SWIGINTERN VALUE
_wrap_Ncvgeom_leny_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","leny", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->leny);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#leny=(*args) ⇒ Object
call-seq:
leny=(x) -> unsigned int
Set new value for attribute.
45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 45037
SWIGINTERN VALUE
_wrap_Ncvgeom_leny_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","leny", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","leny", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->leny = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#maxpixelx(*args) ⇒ Object
call-seq:
maxpixelx -> unsigned int
Get value of attribute.
45395 45396 45397 45398 45399 45400 45401 45402 45403 45404 45405 45406 45407 45408 45409 45410 45411 45412 45413 45414 45415 45416 45417 45418 45419 45420 45421 45422 45423 45424 45425 45426 45427 45428 45429 45430 45431 45432 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 45395
SWIGINTERN VALUE
_wrap_Ncvgeom_maxpixelx_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","maxpixelx", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->maxpixelx);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#maxpixelx=(*args) ⇒ Object
call-seq:
maxpixelx=(x) -> unsigned int
Set new value for attribute.
45349 45350 45351 45352 45353 45354 45355 45356 45357 45358 45359 45360 45361 45362 45363 45364 45365 45366 45367 45368 45369 45370 45371 45372 45373 45374 45375 45376 45377 45378 45379 45380 45381 45382 45383 45384 45385 45386 45387 45388 45389 45390 45391 45392 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 45349
SWIGINTERN VALUE
_wrap_Ncvgeom_maxpixelx_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","maxpixelx", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","maxpixelx", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->maxpixelx = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#maxpixely(*args) ⇒ Object
call-seq:
maxpixely -> unsigned int
Get value of attribute.
45291 45292 45293 45294 45295 45296 45297 45298 45299 45300 45301 45302 45303 45304 45305 45306 45307 45308 45309 45310 45311 45312 45313 45314 45315 45316 45317 45318 45319 45320 45321 45322 45323 45324 45325 45326 45327 45328 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 45291
SWIGINTERN VALUE
_wrap_Ncvgeom_maxpixely_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","maxpixely", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->maxpixely);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#maxpixely=(*args) ⇒ Object
call-seq:
maxpixely=(x) -> unsigned int
Set new value for attribute.
45245 45246 45247 45248 45249 45250 45251 45252 45253 45254 45255 45256 45257 45258 45259 45260 45261 45262 45263 45264 45265 45266 45267 45268 45269 45270 45271 45272 45273 45274 45275 45276 45277 45278 45279 45280 45281 45282 45283 45284 45285 45286 45287 45288 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 45245
SWIGINTERN VALUE
_wrap_Ncvgeom_maxpixely_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","maxpixely", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","maxpixely", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->maxpixely = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#pixx(*args) ⇒ Object
call-seq:
pixx -> unsigned int
Get value of attribute.
43939 43940 43941 43942 43943 43944 43945 43946 43947 43948 43949 43950 43951 43952 43953 43954 43955 43956 43957 43958 43959 43960 43961 43962 43963 43964 43965 43966 43967 43968 43969 43970 43971 43972 43973 43974 43975 43976 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43939
SWIGINTERN VALUE
_wrap_Ncvgeom_pixx_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","pixx", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->pixx);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#pixx=(*args) ⇒ Object
call-seq:
pixx=(x) -> unsigned int
Set new value for attribute.
43893 43894 43895 43896 43897 43898 43899 43900 43901 43902 43903 43904 43905 43906 43907 43908 43909 43910 43911 43912 43913 43914 43915 43916 43917 43918 43919 43920 43921 43922 43923 43924 43925 43926 43927 43928 43929 43930 43931 43932 43933 43934 43935 43936 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43893
SWIGINTERN VALUE
_wrap_Ncvgeom_pixx_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","pixx", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","pixx", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->pixx = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#pixy(*args) ⇒ Object
call-seq:
pixy -> unsigned int
Get value of attribute.
43835 43836 43837 43838 43839 43840 43841 43842 43843 43844 43845 43846 43847 43848 43849 43850 43851 43852 43853 43854 43855 43856 43857 43858 43859 43860 43861 43862 43863 43864 43865 43866 43867 43868 43869 43870 43871 43872 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43835
SWIGINTERN VALUE
_wrap_Ncvgeom_pixy_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","pixy", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->pixy);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#pixy=(*args) ⇒ Object
call-seq:
pixy=(x) -> unsigned int
Set new value for attribute.
43789 43790 43791 43792 43793 43794 43795 43796 43797 43798 43799 43800 43801 43802 43803 43804 43805 43806 43807 43808 43809 43810 43811 43812 43813 43814 43815 43816 43817 43818 43819 43820 43821 43822 43823 43824 43825 43826 43827 43828 43829 43830 43831 43832 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43789
SWIGINTERN VALUE
_wrap_Ncvgeom_pixy_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","pixy", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","pixy", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->pixy = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#rcellx(*args) ⇒ Object
call-seq:
rcellx -> unsigned int
Get value of attribute.
44563 44564 44565 44566 44567 44568 44569 44570 44571 44572 44573 44574 44575 44576 44577 44578 44579 44580 44581 44582 44583 44584 44585 44586 44587 44588 44589 44590 44591 44592 44593 44594 44595 44596 44597 44598 44599 44600 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44563
SWIGINTERN VALUE
_wrap_Ncvgeom_rcellx_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","rcellx", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->rcellx);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#rcellx=(*args) ⇒ Object
call-seq:
rcellx=(x) -> unsigned int
Set new value for attribute.
44517 44518 44519 44520 44521 44522 44523 44524 44525 44526 44527 44528 44529 44530 44531 44532 44533 44534 44535 44536 44537 44538 44539 44540 44541 44542 44543 44544 44545 44546 44547 44548 44549 44550 44551 44552 44553 44554 44555 44556 44557 44558 44559 44560 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44517
SWIGINTERN VALUE
_wrap_Ncvgeom_rcellx_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","rcellx", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","rcellx", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->rcellx = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#rcelly(*args) ⇒ Object
call-seq:
rcelly -> unsigned int
Get value of attribute.
44459 44460 44461 44462 44463 44464 44465 44466 44467 44468 44469 44470 44471 44472 44473 44474 44475 44476 44477 44478 44479 44480 44481 44482 44483 44484 44485 44486 44487 44488 44489 44490 44491 44492 44493 44494 44495 44496 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44459
SWIGINTERN VALUE
_wrap_Ncvgeom_rcelly_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","rcelly", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->rcelly);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#rcelly=(*args) ⇒ Object
call-seq:
rcelly=(x) -> unsigned int
Set new value for attribute.
44413 44414 44415 44416 44417 44418 44419 44420 44421 44422 44423 44424 44425 44426 44427 44428 44429 44430 44431 44432 44433 44434 44435 44436 44437 44438 44439 44440 44441 44442 44443 44444 44445 44446 44447 44448 44449 44450 44451 44452 44453 44454 44455 44456 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44413
SWIGINTERN VALUE
_wrap_Ncvgeom_rcelly_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","rcelly", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","rcelly", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->rcelly = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#rpixx(*args) ⇒ Object
call-seq:
rpixx -> unsigned int
Get value of attribute.
44355 44356 44357 44358 44359 44360 44361 44362 44363 44364 44365 44366 44367 44368 44369 44370 44371 44372 44373 44374 44375 44376 44377 44378 44379 44380 44381 44382 44383 44384 44385 44386 44387 44388 44389 44390 44391 44392 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44355
SWIGINTERN VALUE
_wrap_Ncvgeom_rpixx_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","rpixx", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->rpixx);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#rpixx=(*args) ⇒ Object
call-seq:
rpixx=(x) -> unsigned int
Set new value for attribute.
44309 44310 44311 44312 44313 44314 44315 44316 44317 44318 44319 44320 44321 44322 44323 44324 44325 44326 44327 44328 44329 44330 44331 44332 44333 44334 44335 44336 44337 44338 44339 44340 44341 44342 44343 44344 44345 44346 44347 44348 44349 44350 44351 44352 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44309
SWIGINTERN VALUE
_wrap_Ncvgeom_rpixx_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","rpixx", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","rpixx", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->rpixx = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#rpixy(*args) ⇒ Object
call-seq:
rpixy -> unsigned int
Get value of attribute.
44251 44252 44253 44254 44255 44256 44257 44258 44259 44260 44261 44262 44263 44264 44265 44266 44267 44268 44269 44270 44271 44272 44273 44274 44275 44276 44277 44278 44279 44280 44281 44282 44283 44284 44285 44286 44287 44288 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44251
SWIGINTERN VALUE
_wrap_Ncvgeom_rpixy_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","rpixy", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->rpixy);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#rpixy=(*args) ⇒ Object
call-seq:
rpixy=(x) -> unsigned int
Set new value for attribute.
44205 44206 44207 44208 44209 44210 44211 44212 44213 44214 44215 44216 44217 44218 44219 44220 44221 44222 44223 44224 44225 44226 44227 44228 44229 44230 44231 44232 44233 44234 44235 44236 44237 44238 44239 44240 44241 44242 44243 44244 44245 44246 44247 44248 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44205
SWIGINTERN VALUE
_wrap_Ncvgeom_rpixy_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","rpixy", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","rpixy", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->rpixy = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#scalex(*args) ⇒ Object
call-seq:
scalex -> unsigned int
Get value of attribute.
44771 44772 44773 44774 44775 44776 44777 44778 44779 44780 44781 44782 44783 44784 44785 44786 44787 44788 44789 44790 44791 44792 44793 44794 44795 44796 44797 44798 44799 44800 44801 44802 44803 44804 44805 44806 44807 44808 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44771
SWIGINTERN VALUE
_wrap_Ncvgeom_scalex_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","scalex", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->scalex);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#scalex=(*args) ⇒ Object
call-seq:
scalex=(x) -> unsigned int
Set new value for attribute.
44725 44726 44727 44728 44729 44730 44731 44732 44733 44734 44735 44736 44737 44738 44739 44740 44741 44742 44743 44744 44745 44746 44747 44748 44749 44750 44751 44752 44753 44754 44755 44756 44757 44758 44759 44760 44761 44762 44763 44764 44765 44766 44767 44768 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44725
SWIGINTERN VALUE
_wrap_Ncvgeom_scalex_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","scalex", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","scalex", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->scalex = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#scaley(*args) ⇒ Object
call-seq:
scaley -> unsigned int
Get value of attribute.
44667 44668 44669 44670 44671 44672 44673 44674 44675 44676 44677 44678 44679 44680 44681 44682 44683 44684 44685 44686 44687 44688 44689 44690 44691 44692 44693 44694 44695 44696 44697 44698 44699 44700 44701 44702 44703 44704 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44667
SWIGINTERN VALUE
_wrap_Ncvgeom_scaley_get(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","scaley", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
result = (unsigned int) ((arg1)->scaley);
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#scaley=(*args) ⇒ Object
call-seq:
scaley=(x) -> unsigned int
Set new value for attribute.
44621 44622 44623 44624 44625 44626 44627 44628 44629 44630 44631 44632 44633 44634 44635 44636 44637 44638 44639 44640 44641 44642 44643 44644 44645 44646 44647 44648 44649 44650 44651 44652 44653 44654 44655 44656 44657 44658 44659 44660 44661 44662 44663 44664 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 44621
SWIGINTERN VALUE
_wrap_Ncvgeom_scaley_set(int argc, VALUE *argv, VALUE self) {
struct ncvgeom *arg1 = (struct ncvgeom *) 0 ;
unsigned int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned int val2 ;
int ecode2 = 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_ncvgeom, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvgeom *","scaley", 1, self ));
}
arg1 = (struct ncvgeom *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","scaley", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->scaley = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncvgeom *");
if (!ty) ty = SWIGTYPE_p_ncvgeom;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|