Class: Notcurses::Nccapabilities
- Inherits:
-
Object
- Object
- Notcurses::Nccapabilities
- Defined in:
- ext/notcurses/src/notcurses_wrap.c,
ext/notcurses/src/notcurses_wrap.c
Overview
Proxy of C Notcurses::Nccapabilities struct
Instance Method Summary collapse
-
#braille(*args) ⇒ Object
call-seq: braille -> bool.
-
#braille=(*args) ⇒ Object
call-seq: braille=(x) -> bool.
-
#can_change_colors(*args) ⇒ Object
call-seq: can_change_colors -> bool.
-
#can_change_colors=(*args) ⇒ Object
call-seq: can_change_colors=(x) -> bool.
-
#colors(*args) ⇒ Object
call-seq: colors -> unsigned int.
-
#colors=(*args) ⇒ Object
call-seq: colors=(x) -> unsigned int.
-
#halfblocks(*args) ⇒ Object
call-seq: halfblocks -> bool.
-
#halfblocks=(*args) ⇒ Object
call-seq: halfblocks=(x) -> bool.
-
#initialize(*args) ⇒ Object
constructor
call-seq: Nccapabilities.new.
-
#quadrants(*args) ⇒ Object
call-seq: quadrants -> bool.
-
#quadrants=(*args) ⇒ Object
call-seq: quadrants=(x) -> bool.
-
#rgb(*args) ⇒ Object
call-seq: rgb -> bool.
-
#rgb=(*args) ⇒ Object
call-seq: rgb=(x) -> bool.
-
#sextants(*args) ⇒ Object
call-seq: sextants -> bool.
-
#sextants=(*args) ⇒ Object
call-seq: sextants=(x) -> bool.
-
#utf8(*args) ⇒ Object
call-seq: utf8 -> bool.
-
#utf8=(*args) ⇒ Object
call-seq: utf8=(x) -> bool.
Constructor Details
#initialize(*args) ⇒ Object
21899 21900 21901 21902 21903 21904 21905 21906 21907 21908 21909 21910 21911 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21899
SWIGINTERN VALUE
_wrap_new_Nccapabilities(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (struct nccapabilities *)calloc(1, sizeof(struct nccapabilities));
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#braille(*args) ⇒ Object
call-seq:
braille -> bool
Get value of attribute.
21835 21836 21837 21838 21839 21840 21841 21842 21843 21844 21845 21846 21847 21848 21849 21850 21851 21852 21853 21854 21855 21856 21857 21858 21859 21860 21861 21862 21863 21864 21865 21866 21867 21868 21869 21870 21871 21872 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21835
SWIGINTERN VALUE
_wrap_Nccapabilities_braille_get(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","braille", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
result = (bool) ((arg1)->braille);
vresult = SWIG_From_bool((bool)(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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#braille=(*args) ⇒ Object
call-seq:
braille=(x) -> bool
Set new value for attribute.
21789 21790 21791 21792 21793 21794 21795 21796 21797 21798 21799 21800 21801 21802 21803 21804 21805 21806 21807 21808 21809 21810 21811 21812 21813 21814 21815 21816 21817 21818 21819 21820 21821 21822 21823 21824 21825 21826 21827 21828 21829 21830 21831 21832 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21789
SWIGINTERN VALUE
_wrap_Nccapabilities_braille_set(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","braille", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","braille", 2, argv[0] ));
}
arg2 = (bool)(val2);
if (arg1) (arg1)->braille = 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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#can_change_colors(*args) ⇒ Object
call-seq:
can_change_colors -> bool
Get value of attribute.
21419 21420 21421 21422 21423 21424 21425 21426 21427 21428 21429 21430 21431 21432 21433 21434 21435 21436 21437 21438 21439 21440 21441 21442 21443 21444 21445 21446 21447 21448 21449 21450 21451 21452 21453 21454 21455 21456 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21419
SWIGINTERN VALUE
_wrap_Nccapabilities_can_change_colors_get(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","can_change_colors", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
result = (bool) ((arg1)->can_change_colors);
vresult = SWIG_From_bool((bool)(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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#can_change_colors=(*args) ⇒ Object
call-seq:
can_change_colors=(x) -> bool
Set new value for attribute.
21373 21374 21375 21376 21377 21378 21379 21380 21381 21382 21383 21384 21385 21386 21387 21388 21389 21390 21391 21392 21393 21394 21395 21396 21397 21398 21399 21400 21401 21402 21403 21404 21405 21406 21407 21408 21409 21410 21411 21412 21413 21414 21415 21416 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21373
SWIGINTERN VALUE
_wrap_Nccapabilities_can_change_colors_set(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","can_change_colors", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","can_change_colors", 2, argv[0] ));
}
arg2 = (bool)(val2);
if (arg1) (arg1)->can_change_colors = 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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#colors(*args) ⇒ Object
call-seq:
colors -> unsigned int
Get value of attribute.
21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117 21118 21119 21120 21121 21122 21123 21124 21125 21126 21127 21128 21129 21130 21131 21132 21133 21134 21135 21136 21137 21138 21139 21140 21141 21142 21143 21144 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21107
SWIGINTERN VALUE
_wrap_Nccapabilities_colors_get(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","colors", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
result = (unsigned int) ((arg1)->colors);
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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#colors=(*args) ⇒ Object
call-seq:
colors=(x) -> unsigned int
Set new value for attribute.
21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 21095 21096 21097 21098 21099 21100 21101 21102 21103 21104 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21061
SWIGINTERN VALUE
_wrap_Nccapabilities_colors_set(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","colors", 1, self ));
}
arg1 = (struct nccapabilities *)(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","colors", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->colors = 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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#halfblocks(*args) ⇒ Object
call-seq:
halfblocks -> bool
Get value of attribute.
21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21523
SWIGINTERN VALUE
_wrap_Nccapabilities_halfblocks_get(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","halfblocks", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
result = (bool) ((arg1)->halfblocks);
vresult = SWIG_From_bool((bool)(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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#halfblocks=(*args) ⇒ Object
call-seq:
halfblocks=(x) -> bool
Set new value for attribute.
21477 21478 21479 21480 21481 21482 21483 21484 21485 21486 21487 21488 21489 21490 21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 21501 21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21477
SWIGINTERN VALUE
_wrap_Nccapabilities_halfblocks_set(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","halfblocks", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","halfblocks", 2, argv[0] ));
}
arg2 = (bool)(val2);
if (arg1) (arg1)->halfblocks = 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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#quadrants(*args) ⇒ Object
call-seq:
quadrants -> bool
Get value of attribute.
21627 21628 21629 21630 21631 21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 21652 21653 21654 21655 21656 21657 21658 21659 21660 21661 21662 21663 21664 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21627
SWIGINTERN VALUE
_wrap_Nccapabilities_quadrants_get(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","quadrants", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
result = (bool) ((arg1)->quadrants);
vresult = SWIG_From_bool((bool)(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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#quadrants=(*args) ⇒ Object
call-seq:
quadrants=(x) -> bool
Set new value for attribute.
21581 21582 21583 21584 21585 21586 21587 21588 21589 21590 21591 21592 21593 21594 21595 21596 21597 21598 21599 21600 21601 21602 21603 21604 21605 21606 21607 21608 21609 21610 21611 21612 21613 21614 21615 21616 21617 21618 21619 21620 21621 21622 21623 21624 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21581
SWIGINTERN VALUE
_wrap_Nccapabilities_quadrants_set(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","quadrants", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","quadrants", 2, argv[0] ));
}
arg2 = (bool)(val2);
if (arg1) (arg1)->quadrants = 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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#rgb(*args) ⇒ Object
call-seq:
rgb -> bool
Get value of attribute.
21315 21316 21317 21318 21319 21320 21321 21322 21323 21324 21325 21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 21341 21342 21343 21344 21345 21346 21347 21348 21349 21350 21351 21352 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21315
SWIGINTERN VALUE
_wrap_Nccapabilities_rgb_get(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","rgb", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
result = (bool) ((arg1)->rgb);
vresult = SWIG_From_bool((bool)(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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#rgb=(*args) ⇒ Object
call-seq:
rgb=(x) -> bool
Set new value for attribute.
21269 21270 21271 21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 21283 21284 21285 21286 21287 21288 21289 21290 21291 21292 21293 21294 21295 21296 21297 21298 21299 21300 21301 21302 21303 21304 21305 21306 21307 21308 21309 21310 21311 21312 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21269
SWIGINTERN VALUE
_wrap_Nccapabilities_rgb_set(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","rgb", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","rgb", 2, argv[0] ));
}
arg2 = (bool)(val2);
if (arg1) (arg1)->rgb = 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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#sextants(*args) ⇒ Object
call-seq:
sextants -> bool
Get value of attribute.
21731 21732 21733 21734 21735 21736 21737 21738 21739 21740 21741 21742 21743 21744 21745 21746 21747 21748 21749 21750 21751 21752 21753 21754 21755 21756 21757 21758 21759 21760 21761 21762 21763 21764 21765 21766 21767 21768 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21731
SWIGINTERN VALUE
_wrap_Nccapabilities_sextants_get(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","sextants", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
result = (bool) ((arg1)->sextants);
vresult = SWIG_From_bool((bool)(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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#sextants=(*args) ⇒ Object
call-seq:
sextants=(x) -> bool
Set new value for attribute.
21685 21686 21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 21700 21701 21702 21703 21704 21705 21706 21707 21708 21709 21710 21711 21712 21713 21714 21715 21716 21717 21718 21719 21720 21721 21722 21723 21724 21725 21726 21727 21728 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21685
SWIGINTERN VALUE
_wrap_Nccapabilities_sextants_set(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","sextants", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","sextants", 2, argv[0] ));
}
arg2 = (bool)(val2);
if (arg1) (arg1)->sextants = 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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#utf8(*args) ⇒ Object
call-seq:
utf8 -> bool
Get value of attribute.
21211 21212 21213 21214 21215 21216 21217 21218 21219 21220 21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 21238 21239 21240 21241 21242 21243 21244 21245 21246 21247 21248 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21211
SWIGINTERN VALUE
_wrap_Nccapabilities_utf8_get(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","utf8", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
result = (bool) ((arg1)->utf8);
vresult = SWIG_From_bool((bool)(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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#utf8=(*args) ⇒ Object
call-seq:
utf8=(x) -> bool
Set new value for attribute.
21165 21166 21167 21168 21169 21170 21171 21172 21173 21174 21175 21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 21187 21188 21189 21190 21191 21192 21193 21194 21195 21196 21197 21198 21199 21200 21201 21202 21203 21204 21205 21206 21207 21208 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 21165
SWIGINTERN VALUE
_wrap_Nccapabilities_utf8_set(int argc, VALUE *argv, VALUE self) {
struct nccapabilities *arg1 = (struct nccapabilities *) 0 ;
bool arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool 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_nccapabilities, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nccapabilities *","utf8", 1, self ));
}
arg1 = (struct nccapabilities *)(argp1);
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","utf8", 2, argv[0] ));
}
arg2 = (bool)(val2);
if (arg1) (arg1)->utf8 = 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 nccapabilities *");
if (!ty) ty = SWIGTYPE_p_nccapabilities;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|