Class: Notcurses::NcmultiselectorOptions
- Inherits:
-
Object
- Object
- Notcurses::NcmultiselectorOptions
- Defined in:
- ext/notcurses/src/notcurses_wrap.c,
ext/notcurses/src/notcurses_wrap.c
Overview
Proxy of C Notcurses::NcmultiselectorOptions struct
Instance Method Summary collapse
-
#boxchannels(*args) ⇒ Object
call-seq: boxchannels -> uint64_t.
-
#boxchannels=(*args) ⇒ Object
call-seq: boxchannels=(x) -> uint64_t.
-
#descchannels(*args) ⇒ Object
call-seq: descchannels -> uint64_t.
-
#descchannels=(*args) ⇒ Object
call-seq: descchannels=(x) -> uint64_t.
-
#flags(*args) ⇒ Object
call-seq: flags -> uint64_t.
-
#flags=(*args) ⇒ Object
call-seq: flags=(x) -> uint64_t.
-
#footchannels(*args) ⇒ Object
call-seq: footchannels -> uint64_t.
-
#footchannels=(*args) ⇒ Object
call-seq: footchannels=(x) -> uint64_t.
-
#footer(*args) ⇒ Object
call-seq: footer -> char const *.
-
#footer=(*args) ⇒ Object
call-seq: footer=(x) -> char const *.
-
#initialize(*args) ⇒ Object
constructor
call-seq: NcmultiselectorOptions.new.
-
#items(*args) ⇒ Object
call-seq: items -> NcmselectorItem.
-
#items=(*args) ⇒ Object
call-seq: items=(x) -> NcmselectorItem.
-
#maxdisplay(*args) ⇒ Object
call-seq: maxdisplay -> unsigned int.
-
#maxdisplay=(*args) ⇒ Object
call-seq: maxdisplay=(x) -> unsigned int.
-
#opchannels(*args) ⇒ Object
call-seq: opchannels -> uint64_t.
-
#opchannels=(*args) ⇒ Object
call-seq: opchannels=(x) -> uint64_t.
-
#secondary(*args) ⇒ Object
call-seq: secondary -> char const *.
-
#secondary=(*args) ⇒ Object
call-seq: secondary=(x) -> char const *.
-
#title(*args) ⇒ Object
call-seq: title -> char const *.
-
#title=(*args) ⇒ Object
call-seq: title=(x) -> char const *.
-
#titlechannels(*args) ⇒ Object
call-seq: titlechannels -> uint64_t.
-
#titlechannels=(*args) ⇒ Object
call-seq: titlechannels=(x) -> uint64_t.
Constructor Details
#initialize(*args) ⇒ Object
54521 54522 54523 54524 54525 54526 54527 54528 54529 54530 54531 54532 54533 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 54521
SWIGINTERN VALUE
_wrap_new_NcmultiselectorOptions(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (struct ncmultiselector_options *)calloc(1, sizeof(struct ncmultiselector_options));
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#boxchannels(*args) ⇒ Object
call-seq:
boxchannels -> uint64_t
Get value of attribute.
54353 54354 54355 54356 54357 54358 54359 54360 54361 54362 54363 54364 54365 54366 54367 54368 54369 54370 54371 54372 54373 54374 54375 54376 54377 54378 54379 54380 54381 54382 54383 54384 54385 54386 54387 54388 54389 54390 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 54353
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_boxchannels_get(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","boxchannels", 1, self ));
}
arg1 = (struct ncmultiselector_options *)(argp1);
result = (uint64_t) ((arg1)->boxchannels);
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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#boxchannels=(*args) ⇒ Object
call-seq:
boxchannels=(x) -> uint64_t
Set new value for attribute.
54307 54308 54309 54310 54311 54312 54313 54314 54315 54316 54317 54318 54319 54320 54321 54322 54323 54324 54325 54326 54327 54328 54329 54330 54331 54332 54333 54334 54335 54336 54337 54338 54339 54340 54341 54342 54343 54344 54345 54346 54347 54348 54349 54350 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 54307
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_boxchannels_set(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","boxchannels", 1, self ));
}
arg1 = (struct ncmultiselector_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","boxchannels", 2, argv[0] ));
}
arg2 = (uint64_t)(val2);
if (arg1) (arg1)->boxchannels = 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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#descchannels(*args) ⇒ Object
call-seq:
descchannels -> uint64_t
Get value of attribute.
54041 54042 54043 54044 54045 54046 54047 54048 54049 54050 54051 54052 54053 54054 54055 54056 54057 54058 54059 54060 54061 54062 54063 54064 54065 54066 54067 54068 54069 54070 54071 54072 54073 54074 54075 54076 54077 54078 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 54041
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_descchannels_get(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","descchannels", 1, self ));
}
arg1 = (struct ncmultiselector_options *)(argp1);
result = (uint64_t) ((arg1)->descchannels);
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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#descchannels=(*args) ⇒ Object
call-seq:
descchannels=(x) -> uint64_t
Set new value for attribute.
53995 53996 53997 53998 53999 54000 54001 54002 54003 54004 54005 54006 54007 54008 54009 54010 54011 54012 54013 54014 54015 54016 54017 54018 54019 54020 54021 54022 54023 54024 54025 54026 54027 54028 54029 54030 54031 54032 54033 54034 54035 54036 54037 54038 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 53995
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_descchannels_set(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","descchannels", 1, self ));
}
arg1 = (struct ncmultiselector_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","descchannels", 2, argv[0] ));
}
arg2 = (uint64_t)(val2);
if (arg1) (arg1)->descchannels = 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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_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.
54457 54458 54459 54460 54461 54462 54463 54464 54465 54466 54467 54468 54469 54470 54471 54472 54473 54474 54475 54476 54477 54478 54479 54480 54481 54482 54483 54484 54485 54486 54487 54488 54489 54490 54491 54492 54493 54494 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 54457
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_flags_get(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","flags", 1, self ));
}
arg1 = (struct ncmultiselector_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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_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.
54411 54412 54413 54414 54415 54416 54417 54418 54419 54420 54421 54422 54423 54424 54425 54426 54427 54428 54429 54430 54431 54432 54433 54434 54435 54436 54437 54438 54439 54440 54441 54442 54443 54444 54445 54446 54447 54448 54449 54450 54451 54452 54453 54454 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 54411
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_flags_set(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","flags", 1, self ));
}
arg1 = (struct ncmultiselector_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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#footchannels(*args) ⇒ Object
call-seq:
footchannels -> uint64_t
Get value of attribute.
54249 54250 54251 54252 54253 54254 54255 54256 54257 54258 54259 54260 54261 54262 54263 54264 54265 54266 54267 54268 54269 54270 54271 54272 54273 54274 54275 54276 54277 54278 54279 54280 54281 54282 54283 54284 54285 54286 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 54249
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_footchannels_get(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","footchannels", 1, self ));
}
arg1 = (struct ncmultiselector_options *)(argp1);
result = (uint64_t) ((arg1)->footchannels);
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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#footchannels=(*args) ⇒ Object
call-seq:
footchannels=(x) -> uint64_t
Set new value for attribute.
54203 54204 54205 54206 54207 54208 54209 54210 54211 54212 54213 54214 54215 54216 54217 54218 54219 54220 54221 54222 54223 54224 54225 54226 54227 54228 54229 54230 54231 54232 54233 54234 54235 54236 54237 54238 54239 54240 54241 54242 54243 54244 54245 54246 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 54203
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_footchannels_set(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","footchannels", 1, self ));
}
arg1 = (struct ncmultiselector_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","footchannels", 2, argv[0] ));
}
arg2 = (uint64_t)(val2);
if (arg1) (arg1)->footchannels = 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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#footer(*args) ⇒ Object
call-seq:
footer -> char const *
Get value of attribute.
53583 53584 53585 53586 53587 53588 53589 53590 53591 53592 53593 53594 53595 53596 53597 53598 53599 53600 53601 53602 53603 53604 53605 53606 53607 53608 53609 53610 53611 53612 53613 53614 53615 53616 53617 53618 53619 53620 53621 53622 53623 53624 53625 53626 53627 53628 53629 53630 53631 53632 53633 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 53583
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_footer_get(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
char *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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","footer", 1, self ));
}
arg1 = (struct ncmultiselector_options *)(argp1);
result = (char *) ((arg1)->footer);
{
VALUE hash = rb_hash_new();
VALUE obj;
if (result == NULL) {
obj = Qnil;
} else {
// Convert C string to Ruby string
obj = rb_str_new2(result);
}
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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#footer=(*args) ⇒ Object
call-seq:
footer=(x) -> char const *
Set new value for attribute.
53515 53516 53517 53518 53519 53520 53521 53522 53523 53524 53525 53526 53527 53528 53529 53530 53531 53532 53533 53534 53535 53536 53537 53538 53539 53540 53541 53542 53543 53544 53545 53546 53547 53548 53549 53550 53551 53552 53553 53554 53555 53556 53557 53558 53559 53560 53561 53562 53563 53564 53565 53566 53567 53568 53569 53570 53571 53572 53573 53574 53575 53576 53577 53578 53579 53580 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 53515
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_footer_set(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_options *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","footer", 1, self ));
}
arg1 = (struct ncmultiselector_options *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","footer", 2, argv[0] ));
}
arg2 = (char *)(buf2);
if (arg2) {
size_t size = strlen((const char *)((const char *)(arg2))) + 1;
arg1->footer = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
} else {
arg1->footer = 0;
}
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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_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;
}
VALUE obj = arg2 ? rb_str_new2(arg2) : Qnil;
rb_hash_aset(vresult, ID2SYM(rb_intern("footer")), obj);
}
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
|
#items(*args) ⇒ Object
call-seq:
items -> NcmselectorItem
Get value of attribute.
53717 53718 53719 53720 53721 53722 53723 53724 53725 53726 53727 53728 53729 53730 53731 53732 53733 53734 53735 53736 53737 53738 53739 53740 53741 53742 53743 53744 53745 53746 53747 53748 53749 53750 53751 53752 53753 53754 53755 53756 53757 53758 53759 53760 53761 53762 53763 53764 53765 53766 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 53717
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_items_get(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
struct ncmselector_item *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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","items", 1, self ));
}
arg1 = (struct ncmultiselector_options *)(argp1);
result = (struct ncmselector_item *) ((arg1)->items);
{
VALUE hash = rb_hash_new();
VALUE obj;
if (strcmp("struct ncmselector_item const *", "void") == 0) {
obj = Qnil;
} else {
obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncmselector_item, 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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#items=(*args) ⇒ Object
call-seq:
items=(x) -> NcmselectorItem
Set new value for attribute.
53654 53655 53656 53657 53658 53659 53660 53661 53662 53663 53664 53665 53666 53667 53668 53669 53670 53671 53672 53673 53674 53675 53676 53677 53678 53679 53680 53681 53682 53683 53684 53685 53686 53687 53688 53689 53690 53691 53692 53693 53694 53695 53696 53697 53698 53699 53700 53701 53702 53703 53704 53705 53706 53707 53708 53709 53710 53711 53712 53713 53714 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 53654
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_items_set(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_options *) 0 ;
struct ncmselector_item *arg2 = (struct ncmselector_item *) 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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","items", 1, self ));
}
arg1 = (struct ncmultiselector_options *)(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_ncmselector_item, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncmselector_item const *","items", 2, argv[0] ));
}
arg2 = (struct ncmselector_item *)(argp2);
if (arg1) (arg1)->items = (struct ncmselector_item const *)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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_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 ncmselector_item const *");
if (!ty) ty = SWIGTYPE_p_ncmselector_item;
VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("items")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#maxdisplay(*args) ⇒ Object
call-seq:
maxdisplay -> unsigned int
Get value of attribute.
53833 53834 53835 53836 53837 53838 53839 53840 53841 53842 53843 53844 53845 53846 53847 53848 53849 53850 53851 53852 53853 53854 53855 53856 53857 53858 53859 53860 53861 53862 53863 53864 53865 53866 53867 53868 53869 53870 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 53833
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_maxdisplay_get(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","maxdisplay", 1, self ));
}
arg1 = (struct ncmultiselector_options *)(argp1);
result = (unsigned int) ((arg1)->maxdisplay);
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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#maxdisplay=(*args) ⇒ Object
call-seq:
maxdisplay=(x) -> unsigned int
Set new value for attribute.
53787 53788 53789 53790 53791 53792 53793 53794 53795 53796 53797 53798 53799 53800 53801 53802 53803 53804 53805 53806 53807 53808 53809 53810 53811 53812 53813 53814 53815 53816 53817 53818 53819 53820 53821 53822 53823 53824 53825 53826 53827 53828 53829 53830 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 53787
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_maxdisplay_set(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","maxdisplay", 1, self ));
}
arg1 = (struct ncmultiselector_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","maxdisplay", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->maxdisplay = 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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#opchannels(*args) ⇒ Object
call-seq:
opchannels -> uint64_t
Get value of attribute.
53937 53938 53939 53940 53941 53942 53943 53944 53945 53946 53947 53948 53949 53950 53951 53952 53953 53954 53955 53956 53957 53958 53959 53960 53961 53962 53963 53964 53965 53966 53967 53968 53969 53970 53971 53972 53973 53974 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 53937
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_opchannels_get(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","opchannels", 1, self ));
}
arg1 = (struct ncmultiselector_options *)(argp1);
result = (uint64_t) ((arg1)->opchannels);
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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#opchannels=(*args) ⇒ Object
call-seq:
opchannels=(x) -> uint64_t
Set new value for attribute.
53891 53892 53893 53894 53895 53896 53897 53898 53899 53900 53901 53902 53903 53904 53905 53906 53907 53908 53909 53910 53911 53912 53913 53914 53915 53916 53917 53918 53919 53920 53921 53922 53923 53924 53925 53926 53927 53928 53929 53930 53931 53932 53933 53934 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 53891
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_opchannels_set(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","opchannels", 1, self ));
}
arg1 = (struct ncmultiselector_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","opchannels", 2, argv[0] ));
}
arg2 = (uint64_t)(val2);
if (arg1) (arg1)->opchannels = 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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#secondary(*args) ⇒ Object
call-seq:
secondary -> char const *
Get value of attribute.
53444 53445 53446 53447 53448 53449 53450 53451 53452 53453 53454 53455 53456 53457 53458 53459 53460 53461 53462 53463 53464 53465 53466 53467 53468 53469 53470 53471 53472 53473 53474 53475 53476 53477 53478 53479 53480 53481 53482 53483 53484 53485 53486 53487 53488 53489 53490 53491 53492 53493 53494 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 53444
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_secondary_get(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
char *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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","secondary", 1, self ));
}
arg1 = (struct ncmultiselector_options *)(argp1);
result = (char *) ((arg1)->secondary);
{
VALUE hash = rb_hash_new();
VALUE obj;
if (result == NULL) {
obj = Qnil;
} else {
// Convert C string to Ruby string
obj = rb_str_new2(result);
}
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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#secondary=(*args) ⇒ Object
call-seq:
secondary=(x) -> char const *
Set new value for attribute.
53376 53377 53378 53379 53380 53381 53382 53383 53384 53385 53386 53387 53388 53389 53390 53391 53392 53393 53394 53395 53396 53397 53398 53399 53400 53401 53402 53403 53404 53405 53406 53407 53408 53409 53410 53411 53412 53413 53414 53415 53416 53417 53418 53419 53420 53421 53422 53423 53424 53425 53426 53427 53428 53429 53430 53431 53432 53433 53434 53435 53436 53437 53438 53439 53440 53441 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 53376
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_secondary_set(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_options *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","secondary", 1, self ));
}
arg1 = (struct ncmultiselector_options *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","secondary", 2, argv[0] ));
}
arg2 = (char *)(buf2);
if (arg2) {
size_t size = strlen((const char *)((const char *)(arg2))) + 1;
arg1->secondary = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
} else {
arg1->secondary = 0;
}
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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_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;
}
VALUE obj = arg2 ? rb_str_new2(arg2) : Qnil;
rb_hash_aset(vresult, ID2SYM(rb_intern("secondary")), obj);
}
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
|
#title(*args) ⇒ Object
call-seq:
title -> char const *
Get value of attribute.
53305 53306 53307 53308 53309 53310 53311 53312 53313 53314 53315 53316 53317 53318 53319 53320 53321 53322 53323 53324 53325 53326 53327 53328 53329 53330 53331 53332 53333 53334 53335 53336 53337 53338 53339 53340 53341 53342 53343 53344 53345 53346 53347 53348 53349 53350 53351 53352 53353 53354 53355 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 53305
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_title_get(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
char *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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","title", 1, self ));
}
arg1 = (struct ncmultiselector_options *)(argp1);
result = (char *) ((arg1)->title);
{
VALUE hash = rb_hash_new();
VALUE obj;
if (result == NULL) {
obj = Qnil;
} else {
// Convert C string to Ruby string
obj = rb_str_new2(result);
}
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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#title=(*args) ⇒ Object
call-seq:
title=(x) -> char const *
Set new value for attribute.
53237 53238 53239 53240 53241 53242 53243 53244 53245 53246 53247 53248 53249 53250 53251 53252 53253 53254 53255 53256 53257 53258 53259 53260 53261 53262 53263 53264 53265 53266 53267 53268 53269 53270 53271 53272 53273 53274 53275 53276 53277 53278 53279 53280 53281 53282 53283 53284 53285 53286 53287 53288 53289 53290 53291 53292 53293 53294 53295 53296 53297 53298 53299 53300 53301 53302 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 53237
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_title_set(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_options *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","title", 1, self ));
}
arg1 = (struct ncmultiselector_options *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","title", 2, argv[0] ));
}
arg2 = (char *)(buf2);
if (arg2) {
size_t size = strlen((const char *)((const char *)(arg2))) + 1;
arg1->title = (char const *)(char *)memcpy(malloc((size)*sizeof(char)), arg2, sizeof(char)*(size));
} else {
arg1->title = 0;
}
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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_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;
}
VALUE obj = arg2 ? rb_str_new2(arg2) : Qnil;
rb_hash_aset(vresult, ID2SYM(rb_intern("title")), obj);
}
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
|
#titlechannels(*args) ⇒ Object
call-seq:
titlechannels -> uint64_t
Get value of attribute.
54145 54146 54147 54148 54149 54150 54151 54152 54153 54154 54155 54156 54157 54158 54159 54160 54161 54162 54163 54164 54165 54166 54167 54168 54169 54170 54171 54172 54173 54174 54175 54176 54177 54178 54179 54180 54181 54182 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 54145
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_titlechannels_get(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","titlechannels", 1, self ));
}
arg1 = (struct ncmultiselector_options *)(argp1);
result = (uint64_t) ((arg1)->titlechannels);
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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#titlechannels=(*args) ⇒ Object
call-seq:
titlechannels=(x) -> uint64_t
Set new value for attribute.
54099 54100 54101 54102 54103 54104 54105 54106 54107 54108 54109 54110 54111 54112 54113 54114 54115 54116 54117 54118 54119 54120 54121 54122 54123 54124 54125 54126 54127 54128 54129 54130 54131 54132 54133 54134 54135 54136 54137 54138 54139 54140 54141 54142 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 54099
SWIGINTERN VALUE
_wrap_NcmultiselectorOptions_titlechannels_set(int argc, VALUE *argv, VALUE self) {
struct ncmultiselector_options *arg1 = (struct ncmultiselector_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_ncmultiselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector_options *","titlechannels", 1, self ));
}
arg1 = (struct ncmultiselector_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","titlechannels", 2, argv[0] ));
}
arg2 = (uint64_t)(val2);
if (arg1) (arg1)->titlechannels = 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 ncmultiselector_options *");
if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|