Class: Notcurses::NcselectorOptions
- Inherits:
-
Object
- Object
- Notcurses::NcselectorOptions
- Defined in:
- ext/notcurses/src/notcurses_wrap.c,
ext/notcurses/src/notcurses_wrap.c
Overview
Proxy of C Notcurses::NcselectorOptions struct
Instance Method Summary collapse
-
#boxchannels(*args) ⇒ Object
call-seq: boxchannels -> uint64_t.
-
#boxchannels=(*args) ⇒ Object
call-seq: boxchannels=(x) -> uint64_t.
-
#defidx(*args) ⇒ Object
call-seq: defidx -> unsigned int.
-
#defidx=(*args) ⇒ Object
call-seq: defidx=(x) -> unsigned int.
-
#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: NcselectorOptions.new.
-
#items(*args) ⇒ Object
call-seq: items -> NcselectorItem.
-
#items=(*args) ⇒ Object
call-seq: items=(x) -> NcselectorItem.
-
#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
52130 52131 52132 52133 52134 52135 52136 52137 52138 52139 52140 52141 52142 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 52130
SWIGINTERN VALUE
_wrap_new_NcselectorOptions(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (struct ncselector_options *)calloc(1, sizeof(struct ncselector_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.
51962 51963 51964 51965 51966 51967 51968 51969 51970 51971 51972 51973 51974 51975 51976 51977 51978 51979 51980 51981 51982 51983 51984 51985 51986 51987 51988 51989 51990 51991 51992 51993 51994 51995 51996 51997 51998 51999 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51962
SWIGINTERN VALUE
_wrap_NcselectorOptions_boxchannels_get(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","boxchannels", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
51916 51917 51918 51919 51920 51921 51922 51923 51924 51925 51926 51927 51928 51929 51930 51931 51932 51933 51934 51935 51936 51937 51938 51939 51940 51941 51942 51943 51944 51945 51946 51947 51948 51949 51950 51951 51952 51953 51954 51955 51956 51957 51958 51959 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51916
SWIGINTERN VALUE
_wrap_NcselectorOptions_boxchannels_set(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","boxchannels", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#defidx(*args) ⇒ Object
call-seq:
defidx -> unsigned int
Get value of attribute.
51338 51339 51340 51341 51342 51343 51344 51345 51346 51347 51348 51349 51350 51351 51352 51353 51354 51355 51356 51357 51358 51359 51360 51361 51362 51363 51364 51365 51366 51367 51368 51369 51370 51371 51372 51373 51374 51375 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51338
SWIGINTERN VALUE
_wrap_NcselectorOptions_defidx_get(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","defidx", 1, self ));
}
arg1 = (struct ncselector_options *)(argp1);
result = (unsigned int) ((arg1)->defidx);
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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#defidx=(*args) ⇒ Object
call-seq:
defidx=(x) -> unsigned int
Set new value for attribute.
51292 51293 51294 51295 51296 51297 51298 51299 51300 51301 51302 51303 51304 51305 51306 51307 51308 51309 51310 51311 51312 51313 51314 51315 51316 51317 51318 51319 51320 51321 51322 51323 51324 51325 51326 51327 51328 51329 51330 51331 51332 51333 51334 51335 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51292
SWIGINTERN VALUE
_wrap_NcselectorOptions_defidx_set(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","defidx", 1, self ));
}
arg1 = (struct ncselector_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","defidx", 2, argv[0] ));
}
arg2 = (unsigned int)(val2);
if (arg1) (arg1)->defidx = 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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
51650 51651 51652 51653 51654 51655 51656 51657 51658 51659 51660 51661 51662 51663 51664 51665 51666 51667 51668 51669 51670 51671 51672 51673 51674 51675 51676 51677 51678 51679 51680 51681 51682 51683 51684 51685 51686 51687 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51650
SWIGINTERN VALUE
_wrap_NcselectorOptions_descchannels_get(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","descchannels", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
51604 51605 51606 51607 51608 51609 51610 51611 51612 51613 51614 51615 51616 51617 51618 51619 51620 51621 51622 51623 51624 51625 51626 51627 51628 51629 51630 51631 51632 51633 51634 51635 51636 51637 51638 51639 51640 51641 51642 51643 51644 51645 51646 51647 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51604
SWIGINTERN VALUE
_wrap_NcselectorOptions_descchannels_set(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","descchannels", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
52066 52067 52068 52069 52070 52071 52072 52073 52074 52075 52076 52077 52078 52079 52080 52081 52082 52083 52084 52085 52086 52087 52088 52089 52090 52091 52092 52093 52094 52095 52096 52097 52098 52099 52100 52101 52102 52103 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 52066
SWIGINTERN VALUE
_wrap_NcselectorOptions_flags_get(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","flags", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
52020 52021 52022 52023 52024 52025 52026 52027 52028 52029 52030 52031 52032 52033 52034 52035 52036 52037 52038 52039 52040 52041 52042 52043 52044 52045 52046 52047 52048 52049 52050 52051 52052 52053 52054 52055 52056 52057 52058 52059 52060 52061 52062 52063 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 52020
SWIGINTERN VALUE
_wrap_NcselectorOptions_flags_set(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","flags", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
51858 51859 51860 51861 51862 51863 51864 51865 51866 51867 51868 51869 51870 51871 51872 51873 51874 51875 51876 51877 51878 51879 51880 51881 51882 51883 51884 51885 51886 51887 51888 51889 51890 51891 51892 51893 51894 51895 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51858
SWIGINTERN VALUE
_wrap_NcselectorOptions_footchannels_get(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","footchannels", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
51812 51813 51814 51815 51816 51817 51818 51819 51820 51821 51822 51823 51824 51825 51826 51827 51828 51829 51830 51831 51832 51833 51834 51835 51836 51837 51838 51839 51840 51841 51842 51843 51844 51845 51846 51847 51848 51849 51850 51851 51852 51853 51854 51855 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51812
SWIGINTERN VALUE
_wrap_NcselectorOptions_footchannels_set(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","footchannels", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
51088 51089 51090 51091 51092 51093 51094 51095 51096 51097 51098 51099 51100 51101 51102 51103 51104 51105 51106 51107 51108 51109 51110 51111 51112 51113 51114 51115 51116 51117 51118 51119 51120 51121 51122 51123 51124 51125 51126 51127 51128 51129 51130 51131 51132 51133 51134 51135 51136 51137 51138 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51088
SWIGINTERN VALUE
_wrap_NcselectorOptions_footer_get(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","footer", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
51020 51021 51022 51023 51024 51025 51026 51027 51028 51029 51030 51031 51032 51033 51034 51035 51036 51037 51038 51039 51040 51041 51042 51043 51044 51045 51046 51047 51048 51049 51050 51051 51052 51053 51054 51055 51056 51057 51058 51059 51060 51061 51062 51063 51064 51065 51066 51067 51068 51069 51070 51071 51072 51073 51074 51075 51076 51077 51078 51079 51080 51081 51082 51083 51084 51085 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51020
SWIGINTERN VALUE
_wrap_NcselectorOptions_footer_set(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","footer", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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 -> NcselectorItem
Get value of attribute.
51222 51223 51224 51225 51226 51227 51228 51229 51230 51231 51232 51233 51234 51235 51236 51237 51238 51239 51240 51241 51242 51243 51244 51245 51246 51247 51248 51249 51250 51251 51252 51253 51254 51255 51256 51257 51258 51259 51260 51261 51262 51263 51264 51265 51266 51267 51268 51269 51270 51271 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51222
SWIGINTERN VALUE
_wrap_NcselectorOptions_items_get(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","items", 1, self ));
}
arg1 = (struct ncselector_options *)(argp1);
result = (struct ncselector_item *) ((arg1)->items);
{
VALUE hash = rb_hash_new();
VALUE obj;
if (strcmp("struct ncselector_item const *", "void") == 0) {
obj = Qnil;
} else {
obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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) -> NcselectorItem
Set new value for attribute.
51159 51160 51161 51162 51163 51164 51165 51166 51167 51168 51169 51170 51171 51172 51173 51174 51175 51176 51177 51178 51179 51180 51181 51182 51183 51184 51185 51186 51187 51188 51189 51190 51191 51192 51193 51194 51195 51196 51197 51198 51199 51200 51201 51202 51203 51204 51205 51206 51207 51208 51209 51210 51211 51212 51213 51214 51215 51216 51217 51218 51219 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51159
SWIGINTERN VALUE
_wrap_NcselectorOptions_items_set(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_options *) 0 ;
struct ncselector_item *arg2 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","items", 1, self ));
}
arg1 = (struct ncselector_options *)(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_ncselector_item, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncselector_item const *","items", 2, argv[0] ));
}
arg2 = (struct ncselector_item *)(argp2);
if (arg1) (arg1)->items = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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 ncselector_item const *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
51442 51443 51444 51445 51446 51447 51448 51449 51450 51451 51452 51453 51454 51455 51456 51457 51458 51459 51460 51461 51462 51463 51464 51465 51466 51467 51468 51469 51470 51471 51472 51473 51474 51475 51476 51477 51478 51479 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51442
SWIGINTERN VALUE
_wrap_NcselectorOptions_maxdisplay_get(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","maxdisplay", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
51396 51397 51398 51399 51400 51401 51402 51403 51404 51405 51406 51407 51408 51409 51410 51411 51412 51413 51414 51415 51416 51417 51418 51419 51420 51421 51422 51423 51424 51425 51426 51427 51428 51429 51430 51431 51432 51433 51434 51435 51436 51437 51438 51439 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51396
SWIGINTERN VALUE
_wrap_NcselectorOptions_maxdisplay_set(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","maxdisplay", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
51546 51547 51548 51549 51550 51551 51552 51553 51554 51555 51556 51557 51558 51559 51560 51561 51562 51563 51564 51565 51566 51567 51568 51569 51570 51571 51572 51573 51574 51575 51576 51577 51578 51579 51580 51581 51582 51583 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51546
SWIGINTERN VALUE
_wrap_NcselectorOptions_opchannels_get(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","opchannels", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
51500 51501 51502 51503 51504 51505 51506 51507 51508 51509 51510 51511 51512 51513 51514 51515 51516 51517 51518 51519 51520 51521 51522 51523 51524 51525 51526 51527 51528 51529 51530 51531 51532 51533 51534 51535 51536 51537 51538 51539 51540 51541 51542 51543 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51500
SWIGINTERN VALUE
_wrap_NcselectorOptions_opchannels_set(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","opchannels", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
50949 50950 50951 50952 50953 50954 50955 50956 50957 50958 50959 50960 50961 50962 50963 50964 50965 50966 50967 50968 50969 50970 50971 50972 50973 50974 50975 50976 50977 50978 50979 50980 50981 50982 50983 50984 50985 50986 50987 50988 50989 50990 50991 50992 50993 50994 50995 50996 50997 50998 50999 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 50949
SWIGINTERN VALUE
_wrap_NcselectorOptions_secondary_get(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","secondary", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
50881 50882 50883 50884 50885 50886 50887 50888 50889 50890 50891 50892 50893 50894 50895 50896 50897 50898 50899 50900 50901 50902 50903 50904 50905 50906 50907 50908 50909 50910 50911 50912 50913 50914 50915 50916 50917 50918 50919 50920 50921 50922 50923 50924 50925 50926 50927 50928 50929 50930 50931 50932 50933 50934 50935 50936 50937 50938 50939 50940 50941 50942 50943 50944 50945 50946 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 50881
SWIGINTERN VALUE
_wrap_NcselectorOptions_secondary_set(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","secondary", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
50810 50811 50812 50813 50814 50815 50816 50817 50818 50819 50820 50821 50822 50823 50824 50825 50826 50827 50828 50829 50830 50831 50832 50833 50834 50835 50836 50837 50838 50839 50840 50841 50842 50843 50844 50845 50846 50847 50848 50849 50850 50851 50852 50853 50854 50855 50856 50857 50858 50859 50860 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 50810
SWIGINTERN VALUE
_wrap_NcselectorOptions_title_get(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","title", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
50742 50743 50744 50745 50746 50747 50748 50749 50750 50751 50752 50753 50754 50755 50756 50757 50758 50759 50760 50761 50762 50763 50764 50765 50766 50767 50768 50769 50770 50771 50772 50773 50774 50775 50776 50777 50778 50779 50780 50781 50782 50783 50784 50785 50786 50787 50788 50789 50790 50791 50792 50793 50794 50795 50796 50797 50798 50799 50800 50801 50802 50803 50804 50805 50806 50807 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 50742
SWIGINTERN VALUE
_wrap_NcselectorOptions_title_set(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","title", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
51754 51755 51756 51757 51758 51759 51760 51761 51762 51763 51764 51765 51766 51767 51768 51769 51770 51771 51772 51773 51774 51775 51776 51777 51778 51779 51780 51781 51782 51783 51784 51785 51786 51787 51788 51789 51790 51791 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51754
SWIGINTERN VALUE
_wrap_NcselectorOptions_titlechannels_get(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","titlechannels", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_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.
51708 51709 51710 51711 51712 51713 51714 51715 51716 51717 51718 51719 51720 51721 51722 51723 51724 51725 51726 51727 51728 51729 51730 51731 51732 51733 51734 51735 51736 51737 51738 51739 51740 51741 51742 51743 51744 51745 51746 51747 51748 51749 51750 51751 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 51708
SWIGINTERN VALUE
_wrap_NcselectorOptions_titlechannels_set(int argc, VALUE *argv, VALUE self) {
struct ncselector_options *arg1 = (struct ncselector_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_ncselector_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector_options *","titlechannels", 1, self ));
}
arg1 = (struct ncselector_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 ncselector_options *");
if (!ty) ty = SWIGTYPE_p_ncselector_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|