Class: Notcurses::NcvisualOptions
- Inherits:
-
Object
- Object
- Notcurses::NcvisualOptions
- Defined in:
- ext/notcurses/src/notcurses_wrap.c,
ext/notcurses/src/notcurses_wrap.c
Overview
Proxy of C Notcurses::NcvisualOptions 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.
-
#flags(*args) ⇒ Object
call-seq: flags -> uint64_t.
-
#flags=(*args) ⇒ Object
call-seq: flags=(x) -> uint64_t.
-
#initialize(*args) ⇒ Object
constructor
call-seq: NcvisualOptions.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.
-
#n(*args) ⇒ Object
call-seq: n -> struct ncplane *.
-
#n=(*args) ⇒ Object
call-seq: n=(x) -> struct ncplane *.
-
#pxoffx(*args) ⇒ Object
call-seq: pxoffx -> unsigned int.
-
#pxoffx=(*args) ⇒ Object
call-seq: pxoffx=(x) -> unsigned int.
-
#pxoffy(*args) ⇒ Object
call-seq: pxoffy -> unsigned int.
-
#pxoffy=(*args) ⇒ Object
call-seq: pxoffy=(x) -> unsigned int.
-
#scaling(*args) ⇒ Object
call-seq: scaling -> int.
-
#scaling=(*args) ⇒ Object
call-seq: scaling=(x) -> int.
-
#transcolor(*args) ⇒ Object
call-seq: transcolor -> uint32_t.
-
#transcolor=(*args) ⇒ Object
call-seq: transcolor=(x) -> uint32_t.
-
#x(*args) ⇒ Object
call-seq: x -> int.
-
#x=(*args) ⇒ Object
call-seq: x=(x) -> int.
-
#y(*args) ⇒ Object
call-seq: y -> int.
-
#y=(*args) ⇒ Object
call-seq: y=(x) -> int.
Constructor Details
#initialize(*args) ⇒ Object
43741 43742 43743 43744 43745 43746 43747 43748 43749 43750 43751 43752 43753 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43741
SWIGINTERN VALUE
_wrap_new_NcvisualOptions(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (struct ncvisual_options *)calloc(1, sizeof(struct ncvisual_options));
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#begx(*args) ⇒ Object
call-seq:
begx -> unsigned int
Get value of attribute.
42949 42950 42951 42952 42953 42954 42955 42956 42957 42958 42959 42960 42961 42962 42963 42964 42965 42966 42967 42968 42969 42970 42971 42972 42973 42974 42975 42976 42977 42978 42979 42980 42981 42982 42983 42984 42985 42986 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 42949
SWIGINTERN VALUE
_wrap_NcvisualOptions_begx_get(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","begx", 1, self ));
}
arg1 = (struct ncvisual_options *)(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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
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.
42903 42904 42905 42906 42907 42908 42909 42910 42911 42912 42913 42914 42915 42916 42917 42918 42919 42920 42921 42922 42923 42924 42925 42926 42927 42928 42929 42930 42931 42932 42933 42934 42935 42936 42937 42938 42939 42940 42941 42942 42943 42944 42945 42946 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 42903
SWIGINTERN VALUE
_wrap_NcvisualOptions_begx_set(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","begx", 1, self ));
}
arg1 = (struct ncvisual_options *)(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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
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.
42845 42846 42847 42848 42849 42850 42851 42852 42853 42854 42855 42856 42857 42858 42859 42860 42861 42862 42863 42864 42865 42866 42867 42868 42869 42870 42871 42872 42873 42874 42875 42876 42877 42878 42879 42880 42881 42882 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 42845
SWIGINTERN VALUE
_wrap_NcvisualOptions_begy_get(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","begy", 1, self ));
}
arg1 = (struct ncvisual_options *)(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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
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.
42799 42800 42801 42802 42803 42804 42805 42806 42807 42808 42809 42810 42811 42812 42813 42814 42815 42816 42817 42818 42819 42820 42821 42822 42823 42824 42825 42826 42827 42828 42829 42830 42831 42832 42833 42834 42835 42836 42837 42838 42839 42840 42841 42842 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 42799
SWIGINTERN VALUE
_wrap_NcvisualOptions_begy_set(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","begy", 1, self ));
}
arg1 = (struct ncvisual_options *)(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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
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.
43261 43262 43263 43264 43265 43266 43267 43268 43269 43270 43271 43272 43273 43274 43275 43276 43277 43278 43279 43280 43281 43282 43283 43284 43285 43286 43287 43288 43289 43290 43291 43292 43293 43294 43295 43296 43297 43298 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43261
SWIGINTERN VALUE
_wrap_NcvisualOptions_blitter_get(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","blitter", 1, self ));
}
arg1 = (struct ncvisual_options *)(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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
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.
43215 43216 43217 43218 43219 43220 43221 43222 43223 43224 43225 43226 43227 43228 43229 43230 43231 43232 43233 43234 43235 43236 43237 43238 43239 43240 43241 43242 43243 43244 43245 43246 43247 43248 43249 43250 43251 43252 43253 43254 43255 43256 43257 43258 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43215
SWIGINTERN VALUE
_wrap_NcvisualOptions_blitter_set(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","blitter", 1, self ));
}
arg1 = (struct ncvisual_options *)(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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#flags(*args) ⇒ Object
call-seq:
flags -> uint64_t
Get value of attribute.
43365 43366 43367 43368 43369 43370 43371 43372 43373 43374 43375 43376 43377 43378 43379 43380 43381 43382 43383 43384 43385 43386 43387 43388 43389 43390 43391 43392 43393 43394 43395 43396 43397 43398 43399 43400 43401 43402 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43365
SWIGINTERN VALUE
_wrap_NcvisualOptions_flags_get(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
uint64_t 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","flags", 1, self ));
}
arg1 = (struct ncvisual_options *)(argp1);
result = (uint64_t) ((arg1)->flags);
vresult = SWIG_From_unsigned_SS_long((unsigned long)(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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#flags=(*args) ⇒ Object
call-seq:
flags=(x) -> uint64_t
Set new value for attribute.
43319 43320 43321 43322 43323 43324 43325 43326 43327 43328 43329 43330 43331 43332 43333 43334 43335 43336 43337 43338 43339 43340 43341 43342 43343 43344 43345 43346 43347 43348 43349 43350 43351 43352 43353 43354 43355 43356 43357 43358 43359 43360 43361 43362 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43319
SWIGINTERN VALUE
_wrap_NcvisualOptions_flags_set(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 0 ;
uint64_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned long 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","flags", 1, self ));
}
arg1 = (struct ncvisual_options *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","flags", 2, argv[0] ));
}
arg2 = (uint64_t)(val2);
if (arg1) (arg1)->flags = 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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
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.
43157 43158 43159 43160 43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 43171 43172 43173 43174 43175 43176 43177 43178 43179 43180 43181 43182 43183 43184 43185 43186 43187 43188 43189 43190 43191 43192 43193 43194 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43157
SWIGINTERN VALUE
_wrap_NcvisualOptions_lenx_get(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","lenx", 1, self ));
}
arg1 = (struct ncvisual_options *)(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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
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.
43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 43130 43131 43132 43133 43134 43135 43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43111
SWIGINTERN VALUE
_wrap_NcvisualOptions_lenx_set(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","lenx", 1, self ));
}
arg1 = (struct ncvisual_options *)(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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
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.
43053 43054 43055 43056 43057 43058 43059 43060 43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 43090 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43053
SWIGINTERN VALUE
_wrap_NcvisualOptions_leny_get(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","leny", 1, self ));
}
arg1 = (struct ncvisual_options *)(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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
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.
43007 43008 43009 43010 43011 43012 43013 43014 43015 43016 43017 43018 43019 43020 43021 43022 43023 43024 43025 43026 43027 43028 43029 43030 43031 43032 43033 43034 43035 43036 43037 43038 43039 43040 43041 43042 43043 43044 43045 43046 43047 43048 43049 43050 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43007
SWIGINTERN VALUE
_wrap_NcvisualOptions_leny_set(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","leny", 1, self ));
}
arg1 = (struct ncvisual_options *)(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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#n(*args) ⇒ Object
call-seq:
n -> struct ncplane *
Get value of attribute.
42417 42418 42419 42420 42421 42422 42423 42424 42425 42426 42427 42428 42429 42430 42431 42432 42433 42434 42435 42436 42437 42438 42439 42440 42441 42442 42443 42444 42445 42446 42447 42448 42449 42450 42451 42452 42453 42454 42455 42456 42457 42458 42459 42460 42461 42462 42463 42464 42465 42466 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 42417
SWIGINTERN VALUE
_wrap_NcvisualOptions_n_get(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
struct ncplane *result = 0 ;
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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","n", 1, self ));
}
arg1 = (struct ncvisual_options *)(argp1);
result = (struct ncplane *) ((arg1)->n);
{
VALUE hash = rb_hash_new();
VALUE obj;
if (strcmp("struct ncplane *", "void") == 0) {
obj = Qnil;
} else {
obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
}
rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
vresult = hash;
}
{
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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#n=(*args) ⇒ Object
call-seq:
n=(x) -> struct ncplane *
Set new value for attribute.
42354 42355 42356 42357 42358 42359 42360 42361 42362 42363 42364 42365 42366 42367 42368 42369 42370 42371 42372 42373 42374 42375 42376 42377 42378 42379 42380 42381 42382 42383 42384 42385 42386 42387 42388 42389 42390 42391 42392 42393 42394 42395 42396 42397 42398 42399 42400 42401 42402 42403 42404 42405 42406 42407 42408 42409 42410 42411 42412 42413 42414 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 42354
SWIGINTERN VALUE
_wrap_NcvisualOptions_n_set(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 0 ;
struct ncplane *arg2 = (struct ncplane *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","n", 1, self ));
}
arg1 = (struct ncvisual_options *)(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_ncplane, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncplane *","n", 2, argv[0] ));
}
arg2 = (struct ncplane *)(argp2);
if (arg1) (arg1)->n = arg2;
vresult = rb_ary_new();
{
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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
{
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 ncplane *");
if (!ty) ty = SWIGTYPE_p_ncplane;
VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#pxoffx(*args) ⇒ Object
call-seq:
pxoffx -> unsigned int
Get value of attribute.
43677 43678 43679 43680 43681 43682 43683 43684 43685 43686 43687 43688 43689 43690 43691 43692 43693 43694 43695 43696 43697 43698 43699 43700 43701 43702 43703 43704 43705 43706 43707 43708 43709 43710 43711 43712 43713 43714 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43677
SWIGINTERN VALUE
_wrap_NcvisualOptions_pxoffx_get(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","pxoffx", 1, self ));
}
arg1 = (struct ncvisual_options *)(argp1);
result = (unsigned int) ((arg1)->pxoffx);
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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#pxoffx=(*args) ⇒ Object
call-seq:
pxoffx=(x) -> unsigned int
Set new value for attribute.
43631 43632 43633 43634 43635 43636 43637 43638 43639 43640 43641 43642 43643 43644 43645 43646 43647 43648 43649 43650 43651 43652 43653 43654 43655 43656 43657 43658 43659 43660 43661 43662 43663 43664 43665 43666 43667 43668 43669 43670 43671 43672 43673 43674 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43631
SWIGINTERN VALUE
_wrap_NcvisualOptions_pxoffx_set(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","pxoffx", 1, self ));
}
arg1 = (struct ncvisual_options *)(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","pxoffx", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->pxoffx = 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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#pxoffy(*args) ⇒ Object
call-seq:
pxoffy -> unsigned int
Get value of attribute.
43573 43574 43575 43576 43577 43578 43579 43580 43581 43582 43583 43584 43585 43586 43587 43588 43589 43590 43591 43592 43593 43594 43595 43596 43597 43598 43599 43600 43601 43602 43603 43604 43605 43606 43607 43608 43609 43610 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43573
SWIGINTERN VALUE
_wrap_NcvisualOptions_pxoffy_get(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","pxoffy", 1, self ));
}
arg1 = (struct ncvisual_options *)(argp1);
result = (unsigned int) ((arg1)->pxoffy);
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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#pxoffy=(*args) ⇒ Object
call-seq:
pxoffy=(x) -> unsigned int
Set new value for attribute.
43527 43528 43529 43530 43531 43532 43533 43534 43535 43536 43537 43538 43539 43540 43541 43542 43543 43544 43545 43546 43547 43548 43549 43550 43551 43552 43553 43554 43555 43556 43557 43558 43559 43560 43561 43562 43563 43564 43565 43566 43567 43568 43569 43570 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43527
SWIGINTERN VALUE
_wrap_NcvisualOptions_pxoffy_set(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","pxoffy", 1, self ));
}
arg1 = (struct ncvisual_options *)(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","pxoffy", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->pxoffy = 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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#scaling(*args) ⇒ Object
call-seq:
scaling -> int
Get value of attribute.
42533 42534 42535 42536 42537 42538 42539 42540 42541 42542 42543 42544 42545 42546 42547 42548 42549 42550 42551 42552 42553 42554 42555 42556 42557 42558 42559 42560 42561 42562 42563 42564 42565 42566 42567 42568 42569 42570 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 42533
SWIGINTERN VALUE
_wrap_NcvisualOptions_scaling_get(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
ncscale_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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","scaling", 1, self ));
}
arg1 = (struct ncvisual_options *)(argp1);
result = (ncscale_e) ((arg1)->scaling);
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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#scaling=(*args) ⇒ Object
call-seq:
scaling=(x) -> int
Set new value for attribute.
42487 42488 42489 42490 42491 42492 42493 42494 42495 42496 42497 42498 42499 42500 42501 42502 42503 42504 42505 42506 42507 42508 42509 42510 42511 42512 42513 42514 42515 42516 42517 42518 42519 42520 42521 42522 42523 42524 42525 42526 42527 42528 42529 42530 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 42487
SWIGINTERN VALUE
_wrap_NcvisualOptions_scaling_set(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 0 ;
ncscale_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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","scaling", 1, self ));
}
arg1 = (struct ncvisual_options *)(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ncscale_e","scaling", 2, argv[0] ));
}
arg2 = (ncscale_e)(val2);
if (arg1) (arg1)->scaling = 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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#transcolor(*args) ⇒ Object
call-seq:
transcolor -> uint32_t
Get value of attribute.
43469 43470 43471 43472 43473 43474 43475 43476 43477 43478 43479 43480 43481 43482 43483 43484 43485 43486 43487 43488 43489 43490 43491 43492 43493 43494 43495 43496 43497 43498 43499 43500 43501 43502 43503 43504 43505 43506 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43469
SWIGINTERN VALUE
_wrap_NcvisualOptions_transcolor_get(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
uint32_t 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","transcolor", 1, self ));
}
arg1 = (struct ncvisual_options *)(argp1);
result = (uint32_t) ((arg1)->transcolor);
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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#transcolor=(*args) ⇒ Object
call-seq:
transcolor=(x) -> uint32_t
Set new value for attribute.
43423 43424 43425 43426 43427 43428 43429 43430 43431 43432 43433 43434 43435 43436 43437 43438 43439 43440 43441 43442 43443 43444 43445 43446 43447 43448 43449 43450 43451 43452 43453 43454 43455 43456 43457 43458 43459 43460 43461 43462 43463 43464 43465 43466 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 43423
SWIGINTERN VALUE
_wrap_NcvisualOptions_transcolor_set(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 0 ;
uint32_t 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","transcolor", 1, self ));
}
arg1 = (struct ncvisual_options *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","transcolor", 2, argv[0] ));
}
arg2 = (uint32_t)(val2);
if (arg1) (arg1)->transcolor = 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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#x(*args) ⇒ Object
call-seq:
x -> int
Get value of attribute.
42741 42742 42743 42744 42745 42746 42747 42748 42749 42750 42751 42752 42753 42754 42755 42756 42757 42758 42759 42760 42761 42762 42763 42764 42765 42766 42767 42768 42769 42770 42771 42772 42773 42774 42775 42776 42777 42778 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 42741
SWIGINTERN VALUE
_wrap_NcvisualOptions_x_get(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","x", 1, self ));
}
arg1 = (struct ncvisual_options *)(argp1);
result = (int) ((arg1)->x);
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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#x=(*args) ⇒ Object
call-seq:
x=(x) -> int
Set new value for attribute.
42695 42696 42697 42698 42699 42700 42701 42702 42703 42704 42705 42706 42707 42708 42709 42710 42711 42712 42713 42714 42715 42716 42717 42718 42719 42720 42721 42722 42723 42724 42725 42726 42727 42728 42729 42730 42731 42732 42733 42734 42735 42736 42737 42738 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 42695
SWIGINTERN VALUE
_wrap_NcvisualOptions_x_set(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 0 ;
int 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","x", 1, self ));
}
arg1 = (struct ncvisual_options *)(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","x", 2, argv[0] ));
}
arg2 = (int)(val2);
if (arg1) (arg1)->x = 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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#y(*args) ⇒ Object
call-seq:
y -> int
Get value of attribute.
42637 42638 42639 42640 42641 42642 42643 42644 42645 42646 42647 42648 42649 42650 42651 42652 42653 42654 42655 42656 42657 42658 42659 42660 42661 42662 42663 42664 42665 42666 42667 42668 42669 42670 42671 42672 42673 42674 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 42637
SWIGINTERN VALUE
_wrap_NcvisualOptions_y_get(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","y", 1, self ));
}
arg1 = (struct ncvisual_options *)(argp1);
result = (int) ((arg1)->y);
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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#y=(*args) ⇒ Object
call-seq:
y=(x) -> int
Set new value for attribute.
42591 42592 42593 42594 42595 42596 42597 42598 42599 42600 42601 42602 42603 42604 42605 42606 42607 42608 42609 42610 42611 42612 42613 42614 42615 42616 42617 42618 42619 42620 42621 42622 42623 42624 42625 42626 42627 42628 42629 42630 42631 42632 42633 42634 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 42591
SWIGINTERN VALUE
_wrap_NcvisualOptions_y_set(int argc, VALUE *argv, VALUE self) {
struct ncvisual_options *arg1 = (struct ncvisual_options *) 0 ;
int 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_ncvisual_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual_options *","y", 1, self ));
}
arg1 = (struct ncvisual_options *)(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","y", 2, argv[0] ));
}
arg2 = (int)(val2);
if (arg1) (arg1)->y = 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 ncvisual_options *");
if (!ty) ty = SWIGTYPE_p_ncvisual_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|