Class: Notcurses::NcplotOptions
- Inherits:
-
Object
- Object
- Notcurses::NcplotOptions
- Defined in:
- ext/notcurses/src/notcurses_wrap.c,
ext/notcurses/src/notcurses_wrap.c
Overview
Proxy of C Notcurses::NcplotOptions struct
Instance Method Summary collapse
-
#flags(*args) ⇒ Object
call-seq: flags -> uint64_t.
-
#flags=(*args) ⇒ Object
call-seq: flags=(x) -> uint64_t.
-
#gridtype(*args) ⇒ Object
call-seq: gridtype -> int.
-
#gridtype=(*args) ⇒ Object
call-seq: gridtype=(x) -> int.
-
#initialize(*args) ⇒ Object
constructor
call-seq: NcplotOptions.new.
-
#legendstyle(*args) ⇒ Object
call-seq: legendstyle -> uint16_t.
-
#legendstyle=(*args) ⇒ Object
call-seq: legendstyle=(x) -> uint16_t.
-
#maxchannels(*args) ⇒ Object
call-seq: maxchannels -> uint64_t.
-
#maxchannels=(*args) ⇒ Object
call-seq: maxchannels=(x) -> uint64_t.
-
#minchannels(*args) ⇒ Object
call-seq: minchannels -> uint64_t.
-
#minchannels=(*args) ⇒ Object
call-seq: minchannels=(x) -> uint64_t.
-
#rangex(*args) ⇒ Object
call-seq: rangex -> int.
-
#rangex=(*args) ⇒ Object
call-seq: rangex=(x) -> int.
-
#title(*args) ⇒ Object
call-seq: title -> char const *.
-
#title=(*args) ⇒ Object
call-seq: title=(x) -> char const *.
Constructor Details
#initialize(*args) ⇒ Object
64035 64036 64037 64038 64039 64040 64041 64042 64043 64044 64045 64046 64047 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 64035
SWIGINTERN VALUE
_wrap_new_NcplotOptions(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (struct ncplot_options *)calloc(1, sizeof(struct ncplot_options));
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#flags(*args) ⇒ Object
call-seq:
flags -> uint64_t
Get value of attribute.
63971 63972 63973 63974 63975 63976 63977 63978 63979 63980 63981 63982 63983 63984 63985 63986 63987 63988 63989 63990 63991 63992 63993 63994 63995 63996 63997 63998 63999 64000 64001 64002 64003 64004 64005 64006 64007 64008 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 63971
SWIGINTERN VALUE
_wrap_NcplotOptions_flags_get(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *arg1 = (struct ncplot_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_ncplot_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplot_options *","flags", 1, self ));
}
arg1 = (struct ncplot_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 ncplot_options *");
if (!ty) ty = SWIGTYPE_p_ncplot_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.
63925 63926 63927 63928 63929 63930 63931 63932 63933 63934 63935 63936 63937 63938 63939 63940 63941 63942 63943 63944 63945 63946 63947 63948 63949 63950 63951 63952 63953 63954 63955 63956 63957 63958 63959 63960 63961 63962 63963 63964 63965 63966 63967 63968 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 63925
SWIGINTERN VALUE
_wrap_NcplotOptions_flags_set(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *arg1 = (struct ncplot_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_ncplot_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplot_options *","flags", 1, self ));
}
arg1 = (struct ncplot_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 ncplot_options *");
if (!ty) ty = SWIGTYPE_p_ncplot_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#gridtype(*args) ⇒ Object
call-seq:
gridtype -> int
Get value of attribute.
63624 63625 63626 63627 63628 63629 63630 63631 63632 63633 63634 63635 63636 63637 63638 63639 63640 63641 63642 63643 63644 63645 63646 63647 63648 63649 63650 63651 63652 63653 63654 63655 63656 63657 63658 63659 63660 63661 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 63624
SWIGINTERN VALUE
_wrap_NcplotOptions_gridtype_get(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *arg1 = (struct ncplot_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
ncblitter_e result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ncplot_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplot_options *","gridtype", 1, self ));
}
arg1 = (struct ncplot_options *)(argp1);
result = (ncblitter_e) ((arg1)->gridtype);
vresult = SWIG_From_int((int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncplot_options *");
if (!ty) ty = SWIGTYPE_p_ncplot_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#gridtype=(*args) ⇒ Object
call-seq:
gridtype=(x) -> int
Set new value for attribute.
63578 63579 63580 63581 63582 63583 63584 63585 63586 63587 63588 63589 63590 63591 63592 63593 63594 63595 63596 63597 63598 63599 63600 63601 63602 63603 63604 63605 63606 63607 63608 63609 63610 63611 63612 63613 63614 63615 63616 63617 63618 63619 63620 63621 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 63578
SWIGINTERN VALUE
_wrap_NcplotOptions_gridtype_set(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *arg1 = (struct ncplot_options *) 0 ;
ncblitter_e arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ncplot_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplot_options *","gridtype", 1, self ));
}
arg1 = (struct ncplot_options *)(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ncblitter_e","gridtype", 2, argv[0] ));
}
arg2 = (ncblitter_e)(val2);
if (arg1) (arg1)->gridtype = 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 ncplot_options *");
if (!ty) ty = SWIGTYPE_p_ncplot_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#legendstyle(*args) ⇒ Object
call-seq:
legendstyle -> uint16_t
Get value of attribute.
63520 63521 63522 63523 63524 63525 63526 63527 63528 63529 63530 63531 63532 63533 63534 63535 63536 63537 63538 63539 63540 63541 63542 63543 63544 63545 63546 63547 63548 63549 63550 63551 63552 63553 63554 63555 63556 63557 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 63520
SWIGINTERN VALUE
_wrap_NcplotOptions_legendstyle_get(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *arg1 = (struct ncplot_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
uint16_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_ncplot_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplot_options *","legendstyle", 1, self ));
}
arg1 = (struct ncplot_options *)(argp1);
result = (uint16_t) ((arg1)->legendstyle);
vresult = SWIG_From_unsigned_SS_short((unsigned short)(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 ncplot_options *");
if (!ty) ty = SWIGTYPE_p_ncplot_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#legendstyle=(*args) ⇒ Object
call-seq:
legendstyle=(x) -> uint16_t
Set new value for attribute.
63474 63475 63476 63477 63478 63479 63480 63481 63482 63483 63484 63485 63486 63487 63488 63489 63490 63491 63492 63493 63494 63495 63496 63497 63498 63499 63500 63501 63502 63503 63504 63505 63506 63507 63508 63509 63510 63511 63512 63513 63514 63515 63516 63517 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 63474
SWIGINTERN VALUE
_wrap_NcplotOptions_legendstyle_set(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *arg1 = (struct ncplot_options *) 0 ;
uint16_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned short 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_ncplot_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplot_options *","legendstyle", 1, self ));
}
arg1 = (struct ncplot_options *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","legendstyle", 2, argv[0] ));
}
arg2 = (uint16_t)(val2);
if (arg1) (arg1)->legendstyle = 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 ncplot_options *");
if (!ty) ty = SWIGTYPE_p_ncplot_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#maxchannels(*args) ⇒ Object
call-seq:
maxchannels -> uint64_t
Get value of attribute.
63312 63313 63314 63315 63316 63317 63318 63319 63320 63321 63322 63323 63324 63325 63326 63327 63328 63329 63330 63331 63332 63333 63334 63335 63336 63337 63338 63339 63340 63341 63342 63343 63344 63345 63346 63347 63348 63349 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 63312
SWIGINTERN VALUE
_wrap_NcplotOptions_maxchannels_get(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *arg1 = (struct ncplot_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_ncplot_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplot_options *","maxchannels", 1, self ));
}
arg1 = (struct ncplot_options *)(argp1);
result = (uint64_t) ((arg1)->maxchannels);
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 ncplot_options *");
if (!ty) ty = SWIGTYPE_p_ncplot_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#maxchannels=(*args) ⇒ Object
call-seq:
maxchannels=(x) -> uint64_t
Set new value for attribute.
63266 63267 63268 63269 63270 63271 63272 63273 63274 63275 63276 63277 63278 63279 63280 63281 63282 63283 63284 63285 63286 63287 63288 63289 63290 63291 63292 63293 63294 63295 63296 63297 63298 63299 63300 63301 63302 63303 63304 63305 63306 63307 63308 63309 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 63266
SWIGINTERN VALUE
_wrap_NcplotOptions_maxchannels_set(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *arg1 = (struct ncplot_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_ncplot_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplot_options *","maxchannels", 1, self ));
}
arg1 = (struct ncplot_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","maxchannels", 2, argv[0] ));
}
arg2 = (uint64_t)(val2);
if (arg1) (arg1)->maxchannels = 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 ncplot_options *");
if (!ty) ty = SWIGTYPE_p_ncplot_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#minchannels(*args) ⇒ Object
call-seq:
minchannels -> uint64_t
Get value of attribute.
63416 63417 63418 63419 63420 63421 63422 63423 63424 63425 63426 63427 63428 63429 63430 63431 63432 63433 63434 63435 63436 63437 63438 63439 63440 63441 63442 63443 63444 63445 63446 63447 63448 63449 63450 63451 63452 63453 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 63416
SWIGINTERN VALUE
_wrap_NcplotOptions_minchannels_get(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *arg1 = (struct ncplot_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_ncplot_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplot_options *","minchannels", 1, self ));
}
arg1 = (struct ncplot_options *)(argp1);
result = (uint64_t) ((arg1)->minchannels);
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 ncplot_options *");
if (!ty) ty = SWIGTYPE_p_ncplot_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#minchannels=(*args) ⇒ Object
call-seq:
minchannels=(x) -> uint64_t
Set new value for attribute.
63370 63371 63372 63373 63374 63375 63376 63377 63378 63379 63380 63381 63382 63383 63384 63385 63386 63387 63388 63389 63390 63391 63392 63393 63394 63395 63396 63397 63398 63399 63400 63401 63402 63403 63404 63405 63406 63407 63408 63409 63410 63411 63412 63413 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 63370
SWIGINTERN VALUE
_wrap_NcplotOptions_minchannels_set(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *arg1 = (struct ncplot_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_ncplot_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplot_options *","minchannels", 1, self ));
}
arg1 = (struct ncplot_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","minchannels", 2, argv[0] ));
}
arg2 = (uint64_t)(val2);
if (arg1) (arg1)->minchannels = 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 ncplot_options *");
if (!ty) ty = SWIGTYPE_p_ncplot_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#rangex(*args) ⇒ Object
call-seq:
rangex -> int
Get value of attribute.
63728 63729 63730 63731 63732 63733 63734 63735 63736 63737 63738 63739 63740 63741 63742 63743 63744 63745 63746 63747 63748 63749 63750 63751 63752 63753 63754 63755 63756 63757 63758 63759 63760 63761 63762 63763 63764 63765 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 63728
SWIGINTERN VALUE
_wrap_NcplotOptions_rangex_get(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *arg1 = (struct ncplot_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ncplot_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplot_options *","rangex", 1, self ));
}
arg1 = (struct ncplot_options *)(argp1);
result = (int) ((arg1)->rangex);
vresult = SWIG_From_int((int)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncplot_options *");
if (!ty) ty = SWIGTYPE_p_ncplot_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#rangex=(*args) ⇒ Object
call-seq:
rangex=(x) -> int
Set new value for attribute.
63682 63683 63684 63685 63686 63687 63688 63689 63690 63691 63692 63693 63694 63695 63696 63697 63698 63699 63700 63701 63702 63703 63704 63705 63706 63707 63708 63709 63710 63711 63712 63713 63714 63715 63716 63717 63718 63719 63720 63721 63722 63723 63724 63725 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 63682
SWIGINTERN VALUE
_wrap_NcplotOptions_rangex_set(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *arg1 = (struct ncplot_options *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_ncplot_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplot_options *","rangex", 1, self ));
}
arg1 = (struct ncplot_options *)(argp1);
ecode2 = SWIG_AsVal_int(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","rangex", 2, argv[0] ));
}
arg2 = (int)(val2);
if (arg1) (arg1)->rangex = 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 ncplot_options *");
if (!ty) ty = SWIGTYPE_p_ncplot_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 -> char const *
Get value of attribute.
63854 63855 63856 63857 63858 63859 63860 63861 63862 63863 63864 63865 63866 63867 63868 63869 63870 63871 63872 63873 63874 63875 63876 63877 63878 63879 63880 63881 63882 63883 63884 63885 63886 63887 63888 63889 63890 63891 63892 63893 63894 63895 63896 63897 63898 63899 63900 63901 63902 63903 63904 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 63854
SWIGINTERN VALUE
_wrap_NcplotOptions_title_get(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *arg1 = (struct ncplot_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_ncplot_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplot_options *","title", 1, self ));
}
arg1 = (struct ncplot_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 ncplot_options *");
if (!ty) ty = SWIGTYPE_p_ncplot_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.
63786 63787 63788 63789 63790 63791 63792 63793 63794 63795 63796 63797 63798 63799 63800 63801 63802 63803 63804 63805 63806 63807 63808 63809 63810 63811 63812 63813 63814 63815 63816 63817 63818 63819 63820 63821 63822 63823 63824 63825 63826 63827 63828 63829 63830 63831 63832 63833 63834 63835 63836 63837 63838 63839 63840 63841 63842 63843 63844 63845 63846 63847 63848 63849 63850 63851 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 63786
SWIGINTERN VALUE
_wrap_NcplotOptions_title_set(int argc, VALUE *argv, VALUE self) {
struct ncplot_options *arg1 = (struct ncplot_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_ncplot_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplot_options *","title", 1, self ));
}
arg1 = (struct ncplot_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 ncplot_options *");
if (!ty) ty = SWIGTYPE_p_ncplot_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;
}
|