Module: Notcurses

Defined in:
lib/notcurses/swig_mixins/to_h.rb,
lib/notcurses.rb,
lib/notcurses/version.rb,
lib/notcurses/swig_mixins/struct_initializer.rb,
ext/notcurses/src/notcurses_wrap.c

Overview

There might be a better way, but this works.

Defined Under Namespace

Modules: SwigMixins Classes: ImaxdivT, Nccapabilities, Nccell, NcfdplaneOptions, Ncinput, NcmenuItem, NcmenuOptions, NcmenuSection, NcmselectorItem, NcmultiselectorOptions, Ncpalette, NcplaneOptions, NcplotOptions, NcprogbarOptions, NcreaderOptions, NcreelOptions, NcselectorItem, NcselectorOptions, Ncstats, NcsubprocOptions, NctabbedOptions, NctreeItem, NctreeOptions, Ncvgeom, NcvisualOptions, NotcursesOptions

Constant Summary collapse

VERSION =
"0.0.2"
NANOSECS_IN_SEC =
SWIG_From_unsigned_SS_long((unsigned long)(1000000000ul))
PRIU64 =
SWIG_FromCharPtr(PRIu64)
PRID64 =
SWIG_FromCharPtr(PRId64)
M_E =
SWIG_From_double((double)(2.7182818284590452354))
M_LOG2E =
SWIG_From_double((double)(1.4426950408889634074))
M_LOG10E =
SWIG_From_double((double)(0.43429448190325182765))
M_LN2 =
SWIG_From_double((double)(0.69314718055994530942))
M_LN10 =
SWIG_From_double((double)(2.30258509299404568402))
M_PI =
SWIG_From_double((double)(3.14159265358979323846))
M_PI_2 =
SWIG_From_double((double)(1.57079632679489661923))
M_PI_4 =
SWIG_From_double((double)(0.78539816339744830962))
M_1_PI =
SWIG_From_double((double)(0.31830988618379067154))
M_2_PI =
SWIG_From_double((double)(0.63661977236758134308))
M_2_SQRTPI =
SWIG_From_double((double)(1.12837916709551257390))
M_SQRT2 =
SWIG_From_double((double)(1.41421356237309504880))
M_SQRT1_2 =
SWIG_From_double((double)(0.70710678118654752440))
NOTCURSES_VERNUM_MAJOR =
SWIG_From_int((int)(3))
NOTCURSES_VERNUM_MINOR =
SWIG_From_int((int)(0))
NOTCURSES_VERNUM_PATCH =
SWIG_From_int((int)(6))
NOTCURSES_VERNUM_ORDERED =
SWIG_From_int((int)((((3) << 16u) +((0) << 8u) +(6))))
NOTCURSES_VERSION_MAJOR =
SWIG_FromCharPtr("3")
NOTCURSES_VERSION_MINOR =
SWIG_FromCharPtr("0")
NOTCURSES_VERSION_PATCH =
SWIG_FromCharPtr("6")
NOTCURSES_VERSION_TWEAK =
SWIG_FromCharPtr("")
PRETERUNICODEBASE =
SWIG_From_int((int)(1115000))
NCKEY_INVALID =
SWIG_From_int((int)(((0) +1115000)))
NCKEY_RESIZE =
SWIG_From_int((int)(((1) +1115000)))
NCKEY_UP =
SWIG_From_int((int)(((2) +1115000)))
NCKEY_RIGHT =
SWIG_From_int((int)(((3) +1115000)))
NCKEY_DOWN =
SWIG_From_int((int)(((4) +1115000)))
NCKEY_LEFT =
SWIG_From_int((int)(((5) +1115000)))
NCKEY_INS =
SWIG_From_int((int)(((6) +1115000)))
NCKEY_DEL =
SWIG_From_int((int)(((7) +1115000)))
NCKEY_BACKSPACE =
SWIG_From_int((int)(((8) +1115000)))
NCKEY_PGDOWN =
SWIG_From_int((int)(((9) +1115000)))
NCKEY_PGUP =
SWIG_From_int((int)(((10) +1115000)))
NCKEY_HOME =
SWIG_From_int((int)(((11) +1115000)))
NCKEY_END =
SWIG_From_int((int)(((12) +1115000)))
NCKEY_F00 =
SWIG_From_int((int)(((20) +1115000)))
NCKEY_F01 =
SWIG_From_int((int)(((21) +1115000)))
NCKEY_F02 =
SWIG_From_int((int)(((22) +1115000)))
NCKEY_F03 =
SWIG_From_int((int)(((23) +1115000)))
NCKEY_F04 =
SWIG_From_int((int)(((24) +1115000)))
NCKEY_F05 =
SWIG_From_int((int)(((25) +1115000)))
NCKEY_F06 =
SWIG_From_int((int)(((26) +1115000)))
NCKEY_F07 =
SWIG_From_int((int)(((27) +1115000)))
NCKEY_F08 =
SWIG_From_int((int)(((28) +1115000)))
NCKEY_F09 =
SWIG_From_int((int)(((29) +1115000)))
NCKEY_F10 =
SWIG_From_int((int)(((30) +1115000)))
NCKEY_F11 =
SWIG_From_int((int)(((31) +1115000)))
NCKEY_F12 =
SWIG_From_int((int)(((32) +1115000)))
NCKEY_F13 =
SWIG_From_int((int)(((33) +1115000)))
NCKEY_F14 =
SWIG_From_int((int)(((34) +1115000)))
NCKEY_F15 =
SWIG_From_int((int)(((35) +1115000)))
NCKEY_F16 =
SWIG_From_int((int)(((36) +1115000)))
NCKEY_F17 =
SWIG_From_int((int)(((37) +1115000)))
NCKEY_F18 =
SWIG_From_int((int)(((38) +1115000)))
NCKEY_F19 =
SWIG_From_int((int)(((39) +1115000)))
NCKEY_F20 =
SWIG_From_int((int)(((40) +1115000)))
NCKEY_F21 =
SWIG_From_int((int)(((41) +1115000)))
NCKEY_F22 =
SWIG_From_int((int)(((42) +1115000)))
NCKEY_F23 =
SWIG_From_int((int)(((43) +1115000)))
NCKEY_F24 =
SWIG_From_int((int)(((44) +1115000)))
NCKEY_F25 =
SWIG_From_int((int)(((45) +1115000)))
NCKEY_F26 =
SWIG_From_int((int)(((46) +1115000)))
NCKEY_F27 =
SWIG_From_int((int)(((47) +1115000)))
NCKEY_F28 =
SWIG_From_int((int)(((48) +1115000)))
NCKEY_F29 =
SWIG_From_int((int)(((49) +1115000)))
NCKEY_F30 =
SWIG_From_int((int)(((50) +1115000)))
NCKEY_F31 =
SWIG_From_int((int)(((51) +1115000)))
NCKEY_F32 =
SWIG_From_int((int)(((52) +1115000)))
NCKEY_F33 =
SWIG_From_int((int)(((53) +1115000)))
NCKEY_F34 =
SWIG_From_int((int)(((54) +1115000)))
NCKEY_F35 =
SWIG_From_int((int)(((55) +1115000)))
NCKEY_F36 =
SWIG_From_int((int)(((56) +1115000)))
NCKEY_F37 =
SWIG_From_int((int)(((57) +1115000)))
NCKEY_F38 =
SWIG_From_int((int)(((58) +1115000)))
NCKEY_F39 =
SWIG_From_int((int)(((59) +1115000)))
NCKEY_F40 =
SWIG_From_int((int)(((60) +1115000)))
NCKEY_F41 =
SWIG_From_int((int)(((61) +1115000)))
NCKEY_F42 =
SWIG_From_int((int)(((62) +1115000)))
NCKEY_F43 =
SWIG_From_int((int)(((63) +1115000)))
NCKEY_F44 =
SWIG_From_int((int)(((64) +1115000)))
NCKEY_F45 =
SWIG_From_int((int)(((65) +1115000)))
NCKEY_F46 =
SWIG_From_int((int)(((66) +1115000)))
NCKEY_F47 =
SWIG_From_int((int)(((67) +1115000)))
NCKEY_F48 =
SWIG_From_int((int)(((68) +1115000)))
NCKEY_F49 =
SWIG_From_int((int)(((69) +1115000)))
NCKEY_F50 =
SWIG_From_int((int)(((70) +1115000)))
NCKEY_F51 =
SWIG_From_int((int)(((71) +1115000)))
NCKEY_F52 =
SWIG_From_int((int)(((72) +1115000)))
NCKEY_F53 =
SWIG_From_int((int)(((73) +1115000)))
NCKEY_F54 =
SWIG_From_int((int)(((74) +1115000)))
NCKEY_F55 =
SWIG_From_int((int)(((75) +1115000)))
NCKEY_F56 =
SWIG_From_int((int)(((76) +1115000)))
NCKEY_F57 =
SWIG_From_int((int)(((77) +1115000)))
NCKEY_F58 =
SWIG_From_int((int)(((78) +1115000)))
NCKEY_F59 =
SWIG_From_int((int)(((79) +1115000)))
NCKEY_F60 =
SWIG_From_int((int)(((80) +1115000)))
NCKEY_ENTER =
SWIG_From_int((int)(((121) +1115000)))
NCKEY_CLS =
SWIG_From_int((int)(((122) +1115000)))
NCKEY_DLEFT =
SWIG_From_int((int)(((123) +1115000)))
NCKEY_DRIGHT =
SWIG_From_int((int)(((124) +1115000)))
NCKEY_ULEFT =
SWIG_From_int((int)(((125) +1115000)))
NCKEY_URIGHT =
SWIG_From_int((int)(((126) +1115000)))
NCKEY_CENTER =
SWIG_From_int((int)(((127) +1115000)))
NCKEY_BEGIN =
SWIG_From_int((int)(((128) +1115000)))
NCKEY_CANCEL =
SWIG_From_int((int)(((129) +1115000)))
NCKEY_CLOSE =
SWIG_From_int((int)(((130) +1115000)))
NCKEY_COMMAND =
SWIG_From_int((int)(((131) +1115000)))
NCKEY_COPY =
SWIG_From_int((int)(((132) +1115000)))
NCKEY_EXIT =
SWIG_From_int((int)(((133) +1115000)))
NCKEY_PRINT =
SWIG_From_int((int)(((134) +1115000)))
NCKEY_REFRESH =
SWIG_From_int((int)(((135) +1115000)))
NCKEY_SEPARATOR =
SWIG_From_int((int)(((136) +1115000)))
NCKEY_CAPS_LOCK =
SWIG_From_int((int)(((150) +1115000)))
NCKEY_SCROLL_LOCK =
SWIG_From_int((int)(((151) +1115000)))
NCKEY_NUM_LOCK =
SWIG_From_int((int)(((152) +1115000)))
NCKEY_PRINT_SCREEN =
SWIG_From_int((int)(((153) +1115000)))
NCKEY_PAUSE =
SWIG_From_int((int)(((154) +1115000)))
NCKEY_MENU =
SWIG_From_int((int)(((155) +1115000)))
NCKEY_MEDIA_PLAY =
SWIG_From_int((int)(((158) +1115000)))
NCKEY_MEDIA_PAUSE =
SWIG_From_int((int)(((159) +1115000)))
NCKEY_MEDIA_PPAUSE =
SWIG_From_int((int)(((160) +1115000)))
NCKEY_MEDIA_REV =
SWIG_From_int((int)(((161) +1115000)))
NCKEY_MEDIA_STOP =
SWIG_From_int((int)(((162) +1115000)))
NCKEY_MEDIA_FF =
SWIG_From_int((int)(((163) +1115000)))
NCKEY_MEDIA_REWIND =
SWIG_From_int((int)(((164) +1115000)))
NCKEY_MEDIA_NEXT =
SWIG_From_int((int)(((165) +1115000)))
NCKEY_MEDIA_PREV =
SWIG_From_int((int)(((166) +1115000)))
NCKEY_MEDIA_RECORD =
SWIG_From_int((int)(((167) +1115000)))
NCKEY_MEDIA_LVOL =
SWIG_From_int((int)(((168) +1115000)))
NCKEY_MEDIA_RVOL =
SWIG_From_int((int)(((169) +1115000)))
NCKEY_MEDIA_MUTE =
SWIG_From_int((int)(((170) +1115000)))
NCKEY_LSHIFT =
SWIG_From_int((int)(((171) +1115000)))
NCKEY_LCTRL =
SWIG_From_int((int)(((172) +1115000)))
NCKEY_LALT =
SWIG_From_int((int)(((173) +1115000)))
NCKEY_LSUPER =
SWIG_From_int((int)(((174) +1115000)))
NCKEY_LHYPER =
SWIG_From_int((int)(((175) +1115000)))
NCKEY_LMETA =
SWIG_From_int((int)(((176) +1115000)))
NCKEY_RSHIFT =
SWIG_From_int((int)(((177) +1115000)))
NCKEY_RCTRL =
SWIG_From_int((int)(((178) +1115000)))
NCKEY_RALT =
SWIG_From_int((int)(((179) +1115000)))
NCKEY_RSUPER =
SWIG_From_int((int)(((180) +1115000)))
NCKEY_RHYPER =
SWIG_From_int((int)(((181) +1115000)))
NCKEY_RMETA =
SWIG_From_int((int)(((182) +1115000)))
NCKEY_L3SHIFT =
SWIG_From_int((int)(((183) +1115000)))
NCKEY_L5SHIFT =
SWIG_From_int((int)(((184) +1115000)))
NCKEY_MOTION =
SWIG_From_int((int)(((200) +1115000)))
NCKEY_BUTTON1 =
SWIG_From_int((int)(((201) +1115000)))
NCKEY_BUTTON2 =
SWIG_From_int((int)(((202) +1115000)))
NCKEY_BUTTON3 =
SWIG_From_int((int)(((203) +1115000)))
NCKEY_BUTTON4 =
SWIG_From_int((int)(((204) +1115000)))
NCKEY_BUTTON5 =
SWIG_From_int((int)(((205) +1115000)))
NCKEY_BUTTON6 =
SWIG_From_int((int)(((206) +1115000)))
NCKEY_BUTTON7 =
SWIG_From_int((int)(((207) +1115000)))
NCKEY_BUTTON8 =
SWIG_From_int((int)(((208) +1115000)))
NCKEY_BUTTON9 =
SWIG_From_int((int)(((209) +1115000)))
NCKEY_BUTTON10 =
SWIG_From_int((int)(((210) +1115000)))
NCKEY_BUTTON11 =
SWIG_From_int((int)(((211) +1115000)))
NCKEY_SIGNAL =
SWIG_From_int((int)(((400) +1115000)))
NCKEY_EOF =
SWIG_From_int((int)(((500) +1115000)))
NCKEY_SCROLL_UP =
SWIG_From_int((int)(((204) +1115000)))
NCKEY_SCROLL_DOWN =
SWIG_From_int((int)(((205) +1115000)))
NCKEY_RETURN =
SWIG_From_int((int)(((121) +1115000)))
NCKEY_TAB =
SWIG_From_int((int)(0x09))
NCKEY_ESC =
SWIG_From_int((int)(0x1b))
NCKEY_SPACE =
SWIG_From_int((int)(0x20))
NCKEY_MOD_SHIFT =
SWIG_From_int((int)(1))
NCKEY_MOD_ALT =
SWIG_From_int((int)(2))
NCKEY_MOD_CTRL =
SWIG_From_int((int)(4))
NCKEY_MOD_SUPER =
SWIG_From_int((int)(8))
NCKEY_MOD_HYPER =
SWIG_From_int((int)(16))
NCKEY_MOD_META =
SWIG_From_int((int)(32))
NCKEY_MOD_CAPSLOCK =
SWIG_From_int((int)(64))
NCKEY_MOD_NUMLOCK =
SWIG_From_int((int)(128))
NCBOXLIGHTW =
SWIG_FromWCharPtr(L"┌┐└┘─│")
NCBOXHEAVYW =
SWIG_FromWCharPtr(L"┏┓┗┛━┃")
NCBOXROUNDW =
SWIG_FromWCharPtr(L"╭╮╰╯─│")
NCBOXDOUBLEW =
SWIG_FromWCharPtr(L"╔╗╚╝═║")
NCBOXASCIIW =
SWIG_FromWCharPtr(L"/\\\\/-|")
NCBOXOUTERW =
SWIG_FromWCharPtr(L"🭽🭾🭼🭿▁🭵🭶🭰")
NCWHITESQUARESW =
SWIG_FromWCharPtr(L"◲◱◳◰")
NCWHITECIRCLESW =
SWIG_FromWCharPtr(L"◶◵◷◴")
NCCIRCULARARCSW =
SWIG_FromWCharPtr(L"◜◝◟◞")
NCWHITETRIANGLESW =
SWIG_FromWCharPtr(L"◿◺◹◸")
NCBLACKTRIANGLESW =
SWIG_FromWCharPtr(L"◢◣◥◤")
NCSHADETRIANGLESW =
SWIG_FromWCharPtr(L"🮞🮟🮝🮜")
NCBLACKARROWHEADSW =
SWIG_FromWCharPtr(L"⮝⮟⮜⮞")
NCLIGHTARROWHEADSW =
SWIG_FromWCharPtr(L"⮙⮛⮘⮚")
NCARROWDOUBLEW =
SWIG_FromWCharPtr(L"⮅⮇⮄⮆")
NCARROWDASHEDW =
SWIG_FromWCharPtr(L"⭫⭭⭪⭬")
NCARROWCIRCLEDW =
SWIG_FromWCharPtr(L"⮉⮋⮈⮊")
NCARROWANTICLOCKW =
SWIG_FromWCharPtr(L"⮏⮍⮎⮌")
NCBOXDRAWW =
SWIG_FromWCharPtr(L"╵╷╴╶")
NCBOXDRAWHEAVYW =
SWIG_FromWCharPtr(L"╹╻╸╺")
NCARROWW =
SWIG_FromWCharPtr(L"⭡⭣⭠⭢⭧⭩⭦⭨")
NCDIAGONALSW =
SWIG_FromWCharPtr(L"🮣🮠🮡🮢🮤🮥🮦🮧")
NCDIGITSSUPERW =
SWIG_FromWCharPtr(L"⁰¹²³⁴⁵⁶⁷⁸⁹")
NCDIGITSSUBW =
SWIG_FromWCharPtr(L"₀₁₂₃₄₅₆₇₈₉")
NCASTERISKS5 =
SWIG_FromWCharPtr(L"🞯🞰🞱🞲🞳🞴")
NCASTERISKS6 =
SWIG_FromWCharPtr(L"🞵🞶🞷🞸🞹🞺")
NCASTERISKS8 =
SWIG_FromWCharPtr(L"🞻🞼✳🞽🞾🞿")
NCANGLESBR =
SWIG_FromWCharPtr(L"🭁🭂🭃🭄🭅🭆🭇🭈🭉🭊🭋")
NCANGLESTR =
SWIG_FromWCharPtr(L"🭒🭓🭔🭕🭖🭧🭢🭣🭤🭥🭦")
NCANGLESBL =
SWIG_FromWCharPtr(L"🭌🭍🭎🭏🭐🭑🬼🬽🬾🬿🭀")
NCANGLESTL =
SWIG_FromWCharPtr(L"🭝🭞🭟🭠🭡🭜🭗🭘🭙🭚🭛")
NCEIGHTHSB =
SWIG_FromWCharPtr(L" ▁▂▃▄▅▆▇█")
NCEIGHTHST =
SWIG_FromWCharPtr(L" ▔🮂🮃▀🮄🮅🮆█")
NCEIGHTHSL =
SWIG_FromWCharPtr(L"▏▎▍▌▋▊▉█")
NCEIGHTHSR =
SWIG_FromWCharPtr(L"▕🮇🮈▐🮉🮊🮋█")
NCHALFBLOCKS =
SWIG_FromWCharPtr(L" ▀▄█")
NCQUADBLOCKS =
SWIG_FromWCharPtr(L" ▘▝▀▖▌▞▛▗▚▐▜▄▙▟█")
NCSEXBLOCKS =
SWIG_FromWCharPtr(L" 🬀🬁🬂🬃🬄🬅🬆🬇🬈🬊🬋🬌🬍🬎🬏🬐🬑🬒🬓▌🬔🬕🬖🬗🬘🬙🬚🬛🬜🬝🬞🬟🬠🬡🬢🬣🬤🬥🬦🬧▐🬨🬩🬪🬫🬬🬭🬮🬯🬰🬱🬲🬳🬴🬵🬶🬷🬸🬹🬺🬻█")
NCSUITSBLACK =
SWIG_FromWCharPtr(L"\u2660\u2663\u2665\u2666")
NCSUITSWHITE =
SWIG_FromWCharPtr(L"\u2661\u2662\u2664\u2667")
NCCHESSBLACK =
SWIG_FromWCharPtr(L"\u265f\u265c\u265e\u265d\u265b\u265a")
NCCHESSWHITE =
SWIG_FromWCharPtr(L"\u265f\u265c\u265e\u265d\u265b\u265a")
NCDICE =
SWIG_FromWCharPtr(L"\u2680\u2681\u2682\u2683\u2684\u2685")
NCMUSICSYM =
SWIG_FromWCharPtr(L"\u2669\u266A\u266B\u266C\u266D\u266E\u266F")
NCBOXLIGHT =
SWIG_FromCharPtr("\342\224\214\342\224\220\342\224\224\342\224\230\342\224\200\342\224\202")
NCBOXHEAVY =
SWIG_FromCharPtr("\342\224\217\342\224\223\342\224\227\342\224\233\342\224\201\342\224\203")
NCBOXROUND =
SWIG_FromCharPtr("\342\225\255\342\225\256\342\225\260\342\225\257\342\224\200\342\224\202")
NCBOXDOUBLE =
SWIG_FromCharPtr("\342\225\224\342\225\227\342\225\232\342\225\235\342\225\220\342\225\221")
NCBOXASCII =
SWIG_FromCharPtr("/\\\\/-|")
NCBOXOUTER =
SWIG_FromCharPtr("\360\237\255\275\360\237\255\276\360\237\255\274\360\237\255\277\342\226\201\360\237\255\265\360\237\255\266\360\237\255\260")
NCBLIT_DEFAULT =
SWIG_From_int((int)(NCBLIT_DEFAULT))
NCBLIT_1x1 =
SWIG_From_int((int)(NCBLIT_1x1))
NCBLIT_2x1 =
SWIG_From_int((int)(NCBLIT_2x1))
NCBLIT_2x2 =
SWIG_From_int((int)(NCBLIT_2x2))
NCBLIT_3x2 =
SWIG_From_int((int)(NCBLIT_3x2))
NCBLIT_BRAILLE =
SWIG_From_int((int)(NCBLIT_BRAILLE))
NCBLIT_PIXEL =
SWIG_From_int((int)(NCBLIT_PIXEL))
NCBLIT_4x1 =
SWIG_From_int((int)(NCBLIT_4x1))
NCBLIT_8x1 =
SWIG_From_int((int)(NCBLIT_8x1))
NCALIGN_UNALIGNED =
SWIG_From_int((int)(NCALIGN_UNALIGNED))
NCALIGN_LEFT =
SWIG_From_int((int)(NCALIGN_LEFT))
NCALIGN_CENTER =
SWIG_From_int((int)(NCALIGN_CENTER))
NCALIGN_RIGHT =
SWIG_From_int((int)(NCALIGN_RIGHT))
NCSCALE_NONE =
SWIG_From_int((int)(NCSCALE_NONE))
NCSCALE_SCALE =
SWIG_From_int((int)(NCSCALE_SCALE))
NCSCALE_STRETCH =
SWIG_From_int((int)(NCSCALE_STRETCH))
NCSCALE_NONE_HIRES =
SWIG_From_int((int)(NCSCALE_NONE_HIRES))
NCSCALE_SCALE_HIRES =
SWIG_From_int((int)(NCSCALE_SCALE_HIRES))
NCALPHA_HIGHCONTRAST =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x30000000ull))
NCALPHA_TRANSPARENT =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x20000000ull))
NCALPHA_BLEND =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x10000000ull))
NCALPHA_OPAQUE =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x00000000ull))
NCPALETTESIZE =
SWIG_From_int((int)(256))
NC_NOBACKGROUND_MASK =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x8700000000000000ull))
NC_BGDEFAULT_MASK =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0000000040000000ull))
NC_BG_RGB_MASK =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0000000000ffffffull))
NC_BG_PALETTE =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0000000008000000ull))
NC_BG_ALPHA_MASK =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x30000000ull))
WCHAR_MAX_UTF8BYTES =
SWIG_From_int((int)(4))
NCSTYLE_MASK =
SWIG_From_unsigned_SS_int((unsigned int)(0xffffu))
NCSTYLE_ITALIC =
SWIG_From_unsigned_SS_int((unsigned int)(0x0010u))
NCSTYLE_UNDERLINE =
SWIG_From_unsigned_SS_int((unsigned int)(0x0008u))
NCSTYLE_UNDERCURL =
SWIG_From_unsigned_SS_int((unsigned int)(0x0004u))
NCSTYLE_BOLD =
SWIG_From_unsigned_SS_int((unsigned int)(0x0002u))
NCSTYLE_STRUCK =
SWIG_From_unsigned_SS_int((unsigned int)(0x0001u))
NCSTYLE_NONE =
SWIG_From_int((int)(0))
NCLOGLEVEL_SILENT =
SWIG_From_int((int)(NCLOGLEVEL_SILENT))
NCLOGLEVEL_PANIC =
SWIG_From_int((int)(NCLOGLEVEL_PANIC))
NCLOGLEVEL_FATAL =
SWIG_From_int((int)(NCLOGLEVEL_FATAL))
NCLOGLEVEL_ERROR =
SWIG_From_int((int)(NCLOGLEVEL_ERROR))
NCLOGLEVEL_WARNING =
SWIG_From_int((int)(NCLOGLEVEL_WARNING))
NCLOGLEVEL_INFO =
SWIG_From_int((int)(NCLOGLEVEL_INFO))
NCLOGLEVEL_VERBOSE =
SWIG_From_int((int)(NCLOGLEVEL_VERBOSE))
NCLOGLEVEL_DEBUG =
SWIG_From_int((int)(NCLOGLEVEL_DEBUG))
NCLOGLEVEL_TRACE =
SWIG_From_int((int)(NCLOGLEVEL_TRACE))
NCOPTION_INHIBIT_SETLOCALE =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0001ull))
NCOPTION_NO_CLEAR_BITMAPS =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0002ull))
NCOPTION_NO_WINCH_SIGHANDLER =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0004ull))
NCOPTION_NO_QUIT_SIGHANDLERS =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0008ull))
NCOPTION_PRESERVE_CURSOR =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0010ull))
NCOPTION_SUPPRESS_BANNERS =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0020ull))
NCOPTION_NO_ALTERNATE_SCREEN =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0040ull))
NCOPTION_NO_FONT_CHANGES =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0080ull))
NCOPTION_DRAIN_INPUT =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0100ull))
NCOPTION_SCROLLING =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0200ull))
NCOPTION_CLI_MODE =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)((0x0040ull|0x0002ull|0x0010ull|0x0200ull)))
NCTYPE_UNKNOWN =
SWIG_From_int((int)(NCTYPE_UNKNOWN))
NCTYPE_PRESS =
SWIG_From_int((int)(NCTYPE_PRESS))
NCTYPE_REPEAT =
SWIG_From_int((int)(NCTYPE_REPEAT))
NCTYPE_RELEASE =
SWIG_From_int((int)(NCTYPE_RELEASE))
NCMICE_NO_EVENTS =
SWIG_From_int((int)(0))
NCMICE_MOVE_EVENT =
SWIG_From_int((int)(0x1))
NCMICE_BUTTON_EVENT =
SWIG_From_int((int)(0x2))
NCMICE_DRAG_EVENT =
SWIG_From_int((int)(0x4))
NCMICE_ALL_EVENTS =
SWIG_From_int((int)(0x7))
NCPLANE_OPTION_HORALIGNED =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0001ull))
NCPLANE_OPTION_VERALIGNED =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0002ull))
NCPLANE_OPTION_MARGINALIZED =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0004ull))
NCPLANE_OPTION_FIXED =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0008ull))
NCPLANE_OPTION_AUTOGROW =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0010ull))
NCPLANE_OPTION_VSCROLL =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0020ull))
NCPIXEL_NONE =
SWIG_From_int((int)(NCPIXEL_NONE))
NCPIXEL_SIXEL =
SWIG_From_int((int)(NCPIXEL_SIXEL))
NCPIXEL_LINUXFB =
SWIG_From_int((int)(NCPIXEL_LINUXFB))
NCPIXEL_ITERM2 =
SWIG_From_int((int)(NCPIXEL_ITERM2))
NCPIXEL_KITTY_STATIC =
SWIG_From_int((int)(NCPIXEL_KITTY_STATIC))
NCPIXEL_KITTY_ANIMATED =
SWIG_From_int((int)(NCPIXEL_KITTY_ANIMATED))
NCPIXEL_KITTY_SELFREF =
SWIG_From_int((int)(NCPIXEL_KITTY_SELFREF))
NCBOXMASK_TOP =
SWIG_From_int((int)(0x0001))
NCBOXMASK_RIGHT =
SWIG_From_int((int)(0x0002))
NCBOXMASK_BOTTOM =
SWIG_From_int((int)(0x0004))
NCBOXMASK_LEFT =
SWIG_From_int((int)(0x0008))
NCBOXGRAD_TOP =
SWIG_From_int((int)(0x0010))
NCBOXGRAD_RIGHT =
SWIG_From_int((int)(0x0020))
NCBOXGRAD_BOTTOM =
SWIG_From_int((int)(0x0040))
NCBOXGRAD_LEFT =
SWIG_From_int((int)(0x0080))
NCBOXCORNER_MASK =
SWIG_From_int((int)(0x0300))
NCBOXCORNER_SHIFT =
SWIG_From_unsigned_SS_int((unsigned int)(8u))
NCVISUAL_OPTION_NODEGRADE =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0001ull))
NCVISUAL_OPTION_BLEND =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0002ull))
NCVISUAL_OPTION_HORALIGNED =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0004ull))
NCVISUAL_OPTION_VERALIGNED =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0008ull))
NCVISUAL_OPTION_ADDALPHA =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0010ull))
NCVISUAL_OPTION_CHILDPLANE =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0020ull))
NCVISUAL_OPTION_NOINTERPOLATE =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0040ull))
NCREEL_OPTION_INFINITESCROLL =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0001ull))
NCREEL_OPTION_CIRCULAR =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0002ull))
NCPREFIXCOLUMNS =
SWIG_From_int((int)(7))
NCIPREFIXCOLUMNS =
SWIG_From_int((int)(8))
NCBPREFIXCOLUMNS =
SWIG_From_int((int)(9))
NCPREFIXSTRLEN =
SWIG_From_int((int)((7+1)))
NCIPREFIXSTRLEN =
SWIG_From_int((int)((8+1)))
NCBPREFIXSTRLEN =
SWIG_From_int((int)((9+1)))
NCMENU_OPTION_BOTTOM =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0001ull))
NCMENU_OPTION_HIDING =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0002ull))
NCPROGBAR_OPTION_RETROGRADE =
SWIG_From_unsigned_SS_int((unsigned int)(0x0001u))
NCTABBED_OPTION_BOTTOM =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0001ull))
NCPLOT_OPTION_LABELTICKSD =
SWIG_From_unsigned_SS_int((unsigned int)(0x0001u))
NCPLOT_OPTION_EXPONENTIALD =
SWIG_From_unsigned_SS_int((unsigned int)(0x0002u))
NCPLOT_OPTION_VERTICALI =
SWIG_From_unsigned_SS_int((unsigned int)(0x0004u))
NCPLOT_OPTION_NODEGRADE =
SWIG_From_unsigned_SS_int((unsigned int)(0x0008u))
NCPLOT_OPTION_DETECTMAXONLY =
SWIG_From_unsigned_SS_int((unsigned int)(0x0010u))
NCPLOT_OPTION_PRINTSAMPLE =
SWIG_From_unsigned_SS_int((unsigned int)(0x0020u))
NCREADER_OPTION_HORSCROLL =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0001ull))
NCREADER_OPTION_VERSCROLL =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0002ull))
NCREADER_OPTION_NOCMDKEYS =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0004ull))
NCREADER_OPTION_CURSOR =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0008ull))
NCDIRECT_OPTION_INHIBIT_SETLOCALE =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0001ull))
NCDIRECT_OPTION_INHIBIT_CBREAK =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0002ull))
NCDIRECT_OPTION_DRAIN_INPUT =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0004ull))
NCDIRECT_OPTION_NO_QUIT_SIGHANDLERS =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0008ull))
NCDIRECT_OPTION_VERBOSE =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0010ull))
NCDIRECT_OPTION_VERY_VERBOSE =
SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(0x0020ull))

Class Method Summary collapse

Class Method Details

.acos(*args) ⇒ Object

call-seq:

acos(x) -> double

A module function.



3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
# File 'ext/notcurses/src/notcurses_wrap.c', line 3356

SWIGINTERN VALUE
_wrap_acos(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","acos", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)acos(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.asin(*args) ⇒ Object

call-seq:

asin(x) -> double

A module function.



3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
# File 'ext/notcurses/src/notcurses_wrap.c', line 3389

SWIGINTERN VALUE
_wrap_asin(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","asin", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)asin(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.atan(*args) ⇒ Object

call-seq:

atan(x) -> double

A module function.



3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
# File 'ext/notcurses/src/notcurses_wrap.c', line 3422

SWIGINTERN VALUE
_wrap_atan(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","atan", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)atan(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.atan2(*args) ⇒ Object

call-seq:

atan2(y, x) -> double

A module function.



3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
# File 'ext/notcurses/src/notcurses_wrap.c', line 3455

SWIGINTERN VALUE
_wrap_atan2(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","atan2", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  ecode2 = SWIG_AsVal_double(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","atan2", 2, argv[1] ));
  } 
  arg2 = (double)(val2);
  result = (double)atan2(arg1,arg2);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.cdata(*args) ⇒ Object

call-seq:

cdata(ptr, nelements=1) -> SWIGCDATA

A module function.



2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
# File 'ext/notcurses/src/notcurses_wrap.c', line 2802

SWIGINTERN VALUE
_wrap_cdata(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  size_t arg2 = (size_t) 1 ;
  int res1 ;
  size_t val2 ;
  int ecode2 = 0 ;
  SWIGCDATA result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","cdata_void", 1, argv[0] )); 
  }
  if (argc > 1) {
    ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
    if (!SWIG_IsOK(ecode2)) {
      SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","cdata_void", 2, argv[1] ));
    } 
    arg2 = (size_t)(val2);
  }
  result = cdata_void(arg1,arg2);
  vresult = SWIG_FromCharPtrAndSize((&result)->data,(&result)->len);
  return vresult;
fail:
  return Qnil;
}

.ceil(*args) ⇒ Object

call-seq:

ceil(x) -> double

A module function.



3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
# File 'ext/notcurses/src/notcurses_wrap.c', line 3801

SWIGINTERN VALUE
_wrap_ceil(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","ceil", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)ceil(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.cos(*args) ⇒ Object

call-seq:

cos(x) -> double

A module function.



3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
# File 'ext/notcurses/src/notcurses_wrap.c', line 3257

SWIGINTERN VALUE
_wrap_cos(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","cos", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)cos(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.cosh(*args) ⇒ Object

call-seq:

cosh(x) -> double

A module function.



3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
# File 'ext/notcurses/src/notcurses_wrap.c', line 3496

SWIGINTERN VALUE
_wrap_cosh(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","cosh", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)cosh(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.exp(*args) ⇒ Object

call-seq:

exp(x) -> double

A module function.



3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
# File 'ext/notcurses/src/notcurses_wrap.c', line 3595

SWIGINTERN VALUE
_wrap_exp(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","exp", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)exp(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.fabs(*args) ⇒ Object

call-seq:

fabs(x) -> double

A module function.



3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
# File 'ext/notcurses/src/notcurses_wrap.c', line 3768

SWIGINTERN VALUE
_wrap_fabs(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","fabs", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)fabs(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.floor(*args) ⇒ Object

call-seq:

floor(x) -> double

A module function.



3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
# File 'ext/notcurses/src/notcurses_wrap.c', line 3834

SWIGINTERN VALUE
_wrap_floor(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","floor", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)floor(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.fmod(*args) ⇒ Object

call-seq:

fmod(x, y) -> double

A module function.



3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
# File 'ext/notcurses/src/notcurses_wrap.c', line 3867

SWIGINTERN VALUE
_wrap_fmod(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","fmod", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  ecode2 = SWIG_AsVal_double(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","fmod", 2, argv[1] ));
  } 
  arg2 = (double)(val2);
  result = (double)fmod(arg1,arg2);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.imaxabs(*args) ⇒ Object

call-seq:

imaxabs(n) -> intmax_t

A module function.



3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
# File 'ext/notcurses/src/notcurses_wrap.c', line 3079

SWIGINTERN VALUE
_wrap_imaxabs(int argc, VALUE *argv, VALUE self) {
  intmax_t arg1 ;
  long val1 ;
  int ecode1 = 0 ;
  intmax_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "intmax_t","imaxabs", 1, argv[0] ));
  } 
  arg1 = (intmax_t)(val1);
  result = (intmax_t)imaxabs(arg1);
  vresult = SWIG_From_long((long)(result));
  return vresult;
fail:
  return Qnil;
}

.imaxdiv(*args) ⇒ Object

call-seq:

imaxdiv(numer, denom) -> ImaxdivT

A module function.



3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
# File 'ext/notcurses/src/notcurses_wrap.c', line 3112

SWIGINTERN VALUE
_wrap_imaxdiv(int argc, VALUE *argv, VALUE self) {
  intmax_t arg1 ;
  intmax_t arg2 ;
  long val1 ;
  int ecode1 = 0 ;
  long val2 ;
  int ecode2 = 0 ;
  imaxdiv_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "intmax_t","imaxdiv", 1, argv[0] ));
  } 
  arg1 = (intmax_t)(val1);
  ecode2 = SWIG_AsVal_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "intmax_t","imaxdiv", 2, argv[1] ));
  } 
  arg2 = (intmax_t)(val2);
  result = imaxdiv(arg1,arg2);
  vresult = SWIG_NewPointerObj((imaxdiv_t *)memcpy((imaxdiv_t *)calloc(1,sizeof(imaxdiv_t)),&result,sizeof(imaxdiv_t)), SWIGTYPE_p_imaxdiv_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

.log(*args) ⇒ Object

call-seq:

log(x) -> double

A module function.



3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
# File 'ext/notcurses/src/notcurses_wrap.c', line 3628

SWIGINTERN VALUE
_wrap_log(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","log", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)log(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.log_10(*args) ⇒ Object

call-seq:

log_10(x) -> double

A module function.



3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
# File 'ext/notcurses/src/notcurses_wrap.c', line 3661

SWIGINTERN VALUE
_wrap_log_10(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","log10", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)log10(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.memmove(*args) ⇒ Object

call-seq:

memmove(data, indata)

A module function.



2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
# File 'ext/notcurses/src/notcurses_wrap.c', line 2843

SWIGINTERN VALUE
_wrap_memmove(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  void *arg2 = (void *) 0 ;
  size_t arg3 ;
  int res1 ;
  int res2 ;
  char *buf2 = 0 ;
  size_t size2 = 0 ;
  int alloc2 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","memmove", 1, argv[0] )); 
  }
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, &size2, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void const *","memmove", 2, argv[1] ));
  }
  arg2 = (void *)(buf2);
  arg3 = (size_t)(size2);
  memmove(arg1,(void const *)arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}

.ncblit_bgrx(*args) ⇒ Object

call-seq:

ncblit_bgrx(data, linesize, vopts) -> int

A module function.



47049
47050
47051
47052
47053
47054
47055
47056
47057
47058
47059
47060
47061
47062
47063
47064
47065
47066
47067
47068
47069
47070
47071
47072
47073
47074
47075
47076
47077
47078
47079
47080
47081
47082
47083
47084
47085
47086
47087
47088
47089
47090
47091
47092
47093
47094
47095
47096
47097
47098
47099
47100
47101
47102
47103
47104
47105
47106
47107
47108
47109
47110
47111
47112
47113
47114
47115
47116
# File 'ext/notcurses/src/notcurses_wrap.c', line 47049

SWIGINTERN VALUE
_wrap_ncblit_bgrx(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int arg2 ;
  struct ncvisual_options *arg3 = (struct ncvisual_options *) 0 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void const *","ncblit_bgrx", 1, argv[0] )); 
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncblit_bgrx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_ncvisual_options, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "struct ncvisual_options const *","ncblit_bgrx", 3, argv[2] )); 
  }
  arg3 = (struct ncvisual_options *)(argp3);
  result = (int)ncblit_bgrx((void const *)arg1,arg2,(struct ncvisual_options const *)arg3);
  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("void const *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("data")), 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 ncvisual_options const *");
    if (!ty) ty = SWIGTYPE_p_ncvisual_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vopts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncblit_rgb_loose(*args) ⇒ Object

call-seq:

ncblit_rgb_loose(data, linesize, vopts, alpha) -> int

A module function.



47215
47216
47217
47218
47219
47220
47221
47222
47223
47224
47225
47226
47227
47228
47229
47230
47231
47232
47233
47234
47235
47236
47237
47238
47239
47240
47241
47242
47243
47244
47245
47246
47247
47248
47249
47250
47251
47252
47253
47254
47255
47256
47257
47258
47259
47260
47261
47262
47263
47264
47265
47266
47267
47268
47269
47270
47271
47272
47273
47274
47275
47276
47277
47278
47279
47280
47281
47282
47283
47284
47285
47286
47287
47288
47289
47290
# File 'ext/notcurses/src/notcurses_wrap.c', line 47215

SWIGINTERN VALUE
_wrap_ncblit_rgb_loose(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int arg2 ;
  struct ncvisual_options *arg3 = (struct ncvisual_options *) 0 ;
  int arg4 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void const *","ncblit_rgb_loose", 1, argv[0] )); 
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncblit_rgb_loose", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_ncvisual_options, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "struct ncvisual_options const *","ncblit_rgb_loose", 3, argv[2] )); 
  }
  arg3 = (struct ncvisual_options *)(argp3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncblit_rgb_loose", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  result = (int)ncblit_rgb_loose((void const *)arg1,arg2,(struct ncvisual_options const *)arg3,arg4);
  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("void const *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("data")), 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 ncvisual_options const *");
    if (!ty) ty = SWIGTYPE_p_ncvisual_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vopts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncblit_rgb_packed(*args) ⇒ Object

call-seq:

ncblit_rgb_packed(data, linesize, vopts, alpha) -> int

A module function.



47128
47129
47130
47131
47132
47133
47134
47135
47136
47137
47138
47139
47140
47141
47142
47143
47144
47145
47146
47147
47148
47149
47150
47151
47152
47153
47154
47155
47156
47157
47158
47159
47160
47161
47162
47163
47164
47165
47166
47167
47168
47169
47170
47171
47172
47173
47174
47175
47176
47177
47178
47179
47180
47181
47182
47183
47184
47185
47186
47187
47188
47189
47190
47191
47192
47193
47194
47195
47196
47197
47198
47199
47200
47201
47202
47203
# File 'ext/notcurses/src/notcurses_wrap.c', line 47128

SWIGINTERN VALUE
_wrap_ncblit_rgb_packed(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int arg2 ;
  struct ncvisual_options *arg3 = (struct ncvisual_options *) 0 ;
  int arg4 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void const *","ncblit_rgb_packed", 1, argv[0] )); 
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncblit_rgb_packed", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_ncvisual_options, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "struct ncvisual_options const *","ncblit_rgb_packed", 3, argv[2] )); 
  }
  arg3 = (struct ncvisual_options *)(argp3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncblit_rgb_packed", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  result = (int)ncblit_rgb_packed((void const *)arg1,arg2,(struct ncvisual_options const *)arg3,arg4);
  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("void const *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("data")), 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 ncvisual_options const *");
    if (!ty) ty = SWIGTYPE_p_ncvisual_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vopts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncblit_rgba(*args) ⇒ Object

call-seq:

ncblit_rgba(data, linesize, vopts) -> int

A module function.



46970
46971
46972
46973
46974
46975
46976
46977
46978
46979
46980
46981
46982
46983
46984
46985
46986
46987
46988
46989
46990
46991
46992
46993
46994
46995
46996
46997
46998
46999
47000
47001
47002
47003
47004
47005
47006
47007
47008
47009
47010
47011
47012
47013
47014
47015
47016
47017
47018
47019
47020
47021
47022
47023
47024
47025
47026
47027
47028
47029
47030
47031
47032
47033
47034
47035
47036
47037
# File 'ext/notcurses/src/notcurses_wrap.c', line 46970

SWIGINTERN VALUE
_wrap_ncblit_rgba(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int arg2 ;
  struct ncvisual_options *arg3 = (struct ncvisual_options *) 0 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void const *","ncblit_rgba", 1, argv[0] )); 
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncblit_rgba", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_ncvisual_options, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "struct ncvisual_options const *","ncblit_rgba", 3, argv[2] )); 
  }
  arg3 = (struct ncvisual_options *)(argp3);
  result = (int)ncblit_rgba((void const *)arg1,arg2,(struct ncvisual_options const *)arg3);
  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("void const *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("data")), 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 ncvisual_options const *");
    if (!ty) ty = SWIGTYPE_p_ncvisual_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vopts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncbprefix(*args) ⇒ Object

call-seq:

ncbprefix(val, decimal, buf, omitdec) -> char const *

A module function.



49786
49787
49788
49789
49790
49791
49792
49793
49794
49795
49796
49797
49798
49799
49800
49801
49802
49803
49804
49805
49806
49807
49808
49809
49810
49811
49812
49813
49814
49815
49816
49817
49818
49819
49820
49821
49822
49823
49824
49825
49826
49827
49828
49829
49830
49831
49832
49833
49834
49835
49836
49837
49838
49839
49840
49841
49842
49843
49844
49845
49846
49847
49848
49849
49850
49851
49852
49853
49854
49855
49856
49857
49858
49859
49860
# File 'ext/notcurses/src/notcurses_wrap.c', line 49786

SWIGINTERN VALUE
_wrap_ncbprefix(int argc, VALUE *argv, VALUE self) {
  uintmax_t arg1 ;
  uintmax_t arg2 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uintmax_t","ncbprefix", 1, argv[0] ));
  } 
  arg1 = (uintmax_t)(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintmax_t","ncbprefix", 2, argv[1] ));
  } 
  arg2 = (uintmax_t)(val2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","ncbprefix", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncbprefix", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  result = (char *)ncbprefix(arg1,arg2,arg3,arg4);
  {
    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;
    }
    
    VALUE obj = arg3 ? rb_str_new2(arg3) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("buf")), obj);
  }
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.ncbprefixfmt(*args) ⇒ Object

call-seq:

ncbprefixfmt(x) -> int

A module function.



4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
# File 'ext/notcurses/src/notcurses_wrap.c', line 4185

SWIGINTERN VALUE
_wrap_ncbprefixfmt(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","ncbprefixfmt", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  result = (int)ncbprefixfmt((char const *)arg1);
  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;
    }
    
    VALUE obj = arg1 ? rb_str_new2(arg1) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("x")), obj);
  }
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.nccapability_canchangecolor(*args) ⇒ Object

call-seq:

nccapability_canchangecolor(caps) -> bool

A module function.



22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
# File 'ext/notcurses/src/notcurses_wrap.c', line 22199

SWIGINTERN VALUE
_wrap_nccapability_canchangecolor(int argc, VALUE *argv, VALUE self) {
  nccapabilities *arg1 = (nccapabilities *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccapabilities, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccapabilities const *","nccapability_canchangecolor", 1, argv[0] )); 
  }
  arg1 = (nccapabilities *)(argp1);
  result = (bool)nccapability_canchangecolor((struct nccapabilities const *)arg1);
  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("nccapabilities const *");
    if (!ty) ty = SWIGTYPE_p_nccapabilities;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("caps")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_bchannel(*args) ⇒ Object

call-seq:

nccell_bchannel(cl) -> uint32_t

A module function.



10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
# File 'ext/notcurses/src/notcurses_wrap.c', line 10671

SWIGINTERN VALUE
_wrap_nccell_bchannel(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_bchannel", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (uint32_t)nccell_bchannel((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_bg_alpha(*args) ⇒ Object

call-seq:

nccell_bg_alpha(cl) -> uint32_t

A module function.



35801
35802
35803
35804
35805
35806
35807
35808
35809
35810
35811
35812
35813
35814
35815
35816
35817
35818
35819
35820
35821
35822
35823
35824
35825
35826
35827
35828
35829
35830
35831
35832
35833
35834
35835
35836
35837
35838
# File 'ext/notcurses/src/notcurses_wrap.c', line 35801

SWIGINTERN VALUE
_wrap_nccell_bg_alpha(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_bg_alpha", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (uint32_t)nccell_bg_alpha((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_bg_default_p(*args) ⇒ Object

call-seq:

nccell_bg_default_p(cl) -> bool

A module function.



36978
36979
36980
36981
36982
36983
36984
36985
36986
36987
36988
36989
36990
36991
36992
36993
36994
36995
36996
36997
36998
36999
37000
37001
37002
37003
37004
37005
37006
37007
37008
37009
37010
37011
37012
37013
37014
37015
# File 'ext/notcurses/src/notcurses_wrap.c', line 36978

SWIGINTERN VALUE
_wrap_nccell_bg_default_p(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_bg_default_p", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (bool)nccell_bg_default_p((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_bg_palindex(*args) ⇒ Object

call-seq:

nccell_bg_palindex(cl) -> uint32_t

A module function.



36831
36832
36833
36834
36835
36836
36837
36838
36839
36840
36841
36842
36843
36844
36845
36846
36847
36848
36849
36850
36851
36852
36853
36854
36855
36856
36857
36858
36859
36860
36861
36862
36863
36864
36865
36866
36867
36868
# File 'ext/notcurses/src/notcurses_wrap.c', line 36831

SWIGINTERN VALUE
_wrap_nccell_bg_palindex(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_bg_palindex", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (uint32_t)nccell_bg_palindex((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_bg_palindex_p(*args) ⇒ Object

call-seq:

nccell_bg_palindex_p(cl) -> bool

A module function.



37027
37028
37029
37030
37031
37032
37033
37034
37035
37036
37037
37038
37039
37040
37041
37042
37043
37044
37045
37046
37047
37048
37049
37050
37051
37052
37053
37054
37055
37056
37057
37058
37059
37060
37061
37062
37063
37064
# File 'ext/notcurses/src/notcurses_wrap.c', line 37027

SWIGINTERN VALUE
_wrap_nccell_bg_palindex_p(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_bg_palindex_p", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (bool)nccell_bg_palindex_p((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_bg_rgb(*args) ⇒ Object

call-seq:

nccell_bg_rgb(cl) -> uint32_t

A module function.



35703
35704
35705
35706
35707
35708
35709
35710
35711
35712
35713
35714
35715
35716
35717
35718
35719
35720
35721
35722
35723
35724
35725
35726
35727
35728
35729
35730
35731
35732
35733
35734
35735
35736
35737
35738
35739
35740
# File 'ext/notcurses/src/notcurses_wrap.c', line 35703

SWIGINTERN VALUE
_wrap_nccell_bg_rgb(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_bg_rgb", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (uint32_t)nccell_bg_rgb((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_bg_rgb8(*args) ⇒ Object

call-seq:

nccell_bg_rgb8(cl, r, g, b) -> uint32_t

A module function.



36058
36059
36060
36061
36062
36063
36064
36065
36066
36067
36068
36069
36070
36071
36072
36073
36074
36075
36076
36077
36078
36079
36080
36081
36082
36083
36084
36085
36086
36087
36088
36089
36090
36091
36092
36093
36094
36095
36096
36097
36098
36099
36100
36101
36102
36103
36104
36105
36106
36107
36108
36109
36110
36111
36112
36113
36114
36115
36116
36117
36118
36119
36120
36121
36122
36123
36124
36125
36126
36127
36128
36129
36130
36131
36132
36133
36134
36135
36136
36137
36138
36139
36140
36141
36142
36143
36144
36145
36146
36147
36148
36149
36150
36151
36152
36153
36154
36155
36156
36157
36158
36159
36160
36161
36162
36163
36164
36165
36166
36167
36168
36169
36170
36171
36172
36173
36174
36175
36176
36177
36178
36179
36180
36181
36182
36183
36184
36185
36186
36187
36188
36189
36190
36191
36192
36193
36194
36195
36196
36197
36198
36199
36200
36201
36202
36203
36204
36205
36206
36207
36208
36209
36210
36211
36212
36213
36214
36215
36216
36217
36218
36219
36220
36221
36222
36223
36224
36225
36226
36227
36228
36229
36230
36231
36232
36233
36234
36235
36236
36237
36238
36239
36240
36241
36242
36243
36244
36245
36246
36247
36248
36249
36250
36251
36252
36253
36254
# File 'ext/notcurses/src/notcurses_wrap.c', line 36058

SWIGINTERN VALUE
_wrap_nccell_bg_rgb8(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  unsigned int *arg4 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_bg_rgb8", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg4 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (unsigned int) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg4 = (unsigned int) NUM2DBL(argv[3]);
      } else {
        *arg4 = (unsigned int) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (uint32_t)nccell_bg_rgb8((struct nccell const *)arg1,arg2,arg3,arg4);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("r")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("g")), converted_value);
      free(arg3);
    }
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("b")), converted_value);
      free(arg4);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_channels(*args) ⇒ Object

call-seq:

nccell_channels(c) -> uint64_t

A module function.



10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
# File 'ext/notcurses/src/notcurses_wrap.c', line 10622

SWIGINTERN VALUE
_wrap_nccell_channels(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_channels", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (uint64_t)nccell_channels((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_char_initializer(*args) ⇒ Object

call-seq:

nccell_char_initializer(cell, c)

A module function.



4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
# File 'ext/notcurses/src/notcurses_wrap.c', line 4305

SWIGINTERN VALUE
_wrap_nccell_char_initializer(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_char_initializer", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","nccell_char_initializer", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  nccell_char_initializer(arg1,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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cell")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_cols(*args) ⇒ Object

call-seq:

nccell_cols(c) -> unsigned int

A module function.



10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
# File 'ext/notcurses/src/notcurses_wrap.c', line 10769

SWIGINTERN VALUE
_wrap_nccell_cols(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_cols", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (unsigned int)nccell_cols((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_double_wide_p(*args) ⇒ Object

call-seq:

nccell_double_wide_p(c) -> bool

A module function.



10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
# File 'ext/notcurses/src/notcurses_wrap.c', line 10389

SWIGINTERN VALUE
_wrap_nccell_double_wide_p(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_double_wide_p", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (bool)nccell_double_wide_p((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_duplicate(*args) ⇒ Object

call-seq:

nccell_duplicate(n, targ, c) -> int

A module function.



9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
# File 'ext/notcurses/src/notcurses_wrap.c', line 9627

SWIGINTERN VALUE
_wrap_nccell_duplicate(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  nccell *arg3 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nccell_duplicate", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell *","nccell_duplicate", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "nccell const *","nccell_duplicate", 3, argv[2] )); 
  }
  arg3 = (nccell *)(argp3);
  result = (int)nccell_duplicate(arg1,arg2,(struct nccell const *)arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("targ")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_extended_gcluster(*args) ⇒ Object

call-seq:

nccell_extended_gcluster(n, c) -> char const *

A module function.



10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
# File 'ext/notcurses/src/notcurses_wrap.c', line 10536

SWIGINTERN VALUE
_wrap_nccell_extended_gcluster(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","nccell_extended_gcluster", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell const *","nccell_extended_gcluster", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  result = (char *)nccell_extended_gcluster((struct ncplane const *)arg1,(struct nccell const *)arg2);
  {
    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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_extract(*args) ⇒ Object

call-seq:

nccell_extract(n, c, stylemask, channels) -> char *

A module function.



10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
# File 'ext/notcurses/src/notcurses_wrap.c', line 10904

SWIGINTERN VALUE
_wrap_nccell_extract(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  uint16_t *arg3 = (uint16_t *) 0 ;
  uint64_t *arg4 = (uint64_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","nccell_extract", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell const *","nccell_extract", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  {
    arg3 = (uint16_t *) malloc(sizeof(uint16_t));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint16_t)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (uint16_t) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("uint16_t", "double") == 0) {
        *arg3 = (uint16_t) NUM2DBL(argv[2]);
      } else {
        *arg3 = (uint16_t) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg4 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (uint64_t) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg4 = (uint64_t) NUM2DBL(argv[3]);
      } else {
        *arg4 = (uint64_t) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (char *)nccell_extract((struct ncplane const *)arg1,(struct nccell const *)arg2,arg3,arg4);
  {
    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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint16_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("uint16_t", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("stylemask")), converted_value);
      free(arg3);
    }
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg4);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_fchannel(*args) ⇒ Object

call-seq:

nccell_fchannel(cl) -> uint32_t

A module function.



10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
# File 'ext/notcurses/src/notcurses_wrap.c', line 10720

SWIGINTERN VALUE
_wrap_nccell_fchannel(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_fchannel", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (uint32_t)nccell_fchannel((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_fg_alpha(*args) ⇒ Object

call-seq:

nccell_fg_alpha(cl) -> uint32_t

A module function.



35752
35753
35754
35755
35756
35757
35758
35759
35760
35761
35762
35763
35764
35765
35766
35767
35768
35769
35770
35771
35772
35773
35774
35775
35776
35777
35778
35779
35780
35781
35782
35783
35784
35785
35786
35787
35788
35789
# File 'ext/notcurses/src/notcurses_wrap.c', line 35752

SWIGINTERN VALUE
_wrap_nccell_fg_alpha(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_fg_alpha", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (uint32_t)nccell_fg_alpha((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_fg_default_p(*args) ⇒ Object

call-seq:

nccell_fg_default_p(cl) -> bool

A module function.



36880
36881
36882
36883
36884
36885
36886
36887
36888
36889
36890
36891
36892
36893
36894
36895
36896
36897
36898
36899
36900
36901
36902
36903
36904
36905
36906
36907
36908
36909
36910
36911
36912
36913
36914
36915
36916
36917
# File 'ext/notcurses/src/notcurses_wrap.c', line 36880

SWIGINTERN VALUE
_wrap_nccell_fg_default_p(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_fg_default_p", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (bool)nccell_fg_default_p((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_fg_palindex(*args) ⇒ Object

call-seq:

nccell_fg_palindex(cl) -> uint32_t

A module function.



36524
36525
36526
36527
36528
36529
36530
36531
36532
36533
36534
36535
36536
36537
36538
36539
36540
36541
36542
36543
36544
36545
36546
36547
36548
36549
36550
36551
36552
36553
36554
36555
36556
36557
36558
36559
36560
36561
# File 'ext/notcurses/src/notcurses_wrap.c', line 36524

SWIGINTERN VALUE
_wrap_nccell_fg_palindex(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_fg_palindex", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (uint32_t)nccell_fg_palindex((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_fg_palindex_p(*args) ⇒ Object

call-seq:

nccell_fg_palindex_p(cl) -> bool

A module function.



36929
36930
36931
36932
36933
36934
36935
36936
36937
36938
36939
36940
36941
36942
36943
36944
36945
36946
36947
36948
36949
36950
36951
36952
36953
36954
36955
36956
36957
36958
36959
36960
36961
36962
36963
36964
36965
36966
# File 'ext/notcurses/src/notcurses_wrap.c', line 36929

SWIGINTERN VALUE
_wrap_nccell_fg_palindex_p(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_fg_palindex_p", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (bool)nccell_fg_palindex_p((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_fg_rgb(*args) ⇒ Object

call-seq:

nccell_fg_rgb(cl) -> uint32_t

A module function.



35654
35655
35656
35657
35658
35659
35660
35661
35662
35663
35664
35665
35666
35667
35668
35669
35670
35671
35672
35673
35674
35675
35676
35677
35678
35679
35680
35681
35682
35683
35684
35685
35686
35687
35688
35689
35690
35691
# File 'ext/notcurses/src/notcurses_wrap.c', line 35654

SWIGINTERN VALUE
_wrap_nccell_fg_rgb(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_fg_rgb", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (uint32_t)nccell_fg_rgb((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_fg_rgb8(*args) ⇒ Object

call-seq:

nccell_fg_rgb8(cl, r, g, b) -> uint32_t

A module function.



35850
35851
35852
35853
35854
35855
35856
35857
35858
35859
35860
35861
35862
35863
35864
35865
35866
35867
35868
35869
35870
35871
35872
35873
35874
35875
35876
35877
35878
35879
35880
35881
35882
35883
35884
35885
35886
35887
35888
35889
35890
35891
35892
35893
35894
35895
35896
35897
35898
35899
35900
35901
35902
35903
35904
35905
35906
35907
35908
35909
35910
35911
35912
35913
35914
35915
35916
35917
35918
35919
35920
35921
35922
35923
35924
35925
35926
35927
35928
35929
35930
35931
35932
35933
35934
35935
35936
35937
35938
35939
35940
35941
35942
35943
35944
35945
35946
35947
35948
35949
35950
35951
35952
35953
35954
35955
35956
35957
35958
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968
35969
35970
35971
35972
35973
35974
35975
35976
35977
35978
35979
35980
35981
35982
35983
35984
35985
35986
35987
35988
35989
35990
35991
35992
35993
35994
35995
35996
35997
35998
35999
36000
36001
36002
36003
36004
36005
36006
36007
36008
36009
36010
36011
36012
36013
36014
36015
36016
36017
36018
36019
36020
36021
36022
36023
36024
36025
36026
36027
36028
36029
36030
36031
36032
36033
36034
36035
36036
36037
36038
36039
36040
36041
36042
36043
36044
36045
36046
# File 'ext/notcurses/src/notcurses_wrap.c', line 35850

SWIGINTERN VALUE
_wrap_nccell_fg_rgb8(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  unsigned int *arg4 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_fg_rgb8", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg4 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (unsigned int) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg4 = (unsigned int) NUM2DBL(argv[3]);
      } else {
        *arg4 = (unsigned int) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (uint32_t)nccell_fg_rgb8((struct nccell const *)arg1,arg2,arg3,arg4);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("r")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("g")), converted_value);
      free(arg3);
    }
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("b")), converted_value);
      free(arg4);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_init(*args) ⇒ Object

call-seq:

nccell_init(c)

A module function.



9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
# File 'ext/notcurses/src/notcurses_wrap.c', line 9370

SWIGINTERN VALUE
_wrap_nccell_init(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_init", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  nccell_init(arg1);
  {
    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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_initializer(*args) ⇒ Object

call-seq:

nccell_initializer(cell, c, s, chan)

A module function.



4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
# File 'ext/notcurses/src/notcurses_wrap.c', line 4234

SWIGINTERN VALUE
_wrap_nccell_initializer(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  uint32_t arg2 ;
  uint16_t arg3 ;
  uint64_t arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned short val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_initializer", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","nccell_initializer", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_short(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint16_t","nccell_initializer", 3, argv[2] ));
  } 
  arg3 = (uint16_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint64_t","nccell_initializer", 4, argv[3] ));
  } 
  arg4 = (uint64_t)(val4);
  nccell_initializer(arg1,arg2,arg3,arg4);
  {
    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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cell")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_load(*args) ⇒ Object

call-seq:

nccell_load(n, c, gcluster) -> int

A module function.



9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
# File 'ext/notcurses/src/notcurses_wrap.c', line 9417

SWIGINTERN VALUE
_wrap_nccell_load(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  char *arg3 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nccell_load", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell *","nccell_load", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","nccell_load", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  result = (int)nccell_load(arg1,arg2,(char const *)arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), 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 = arg3 ? rb_str_new2(arg3) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("gcluster")), obj);
  }
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.nccell_load_char(*args) ⇒ Object

call-seq:

nccell_load_char(n, c, ch) -> int

A module function.



11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
# File 'ext/notcurses/src/notcurses_wrap.c', line 11217

SWIGINTERN VALUE
_wrap_nccell_load_char(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  char arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  char val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nccell_load_char", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell *","nccell_load_char", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  ecode3 = SWIG_AsVal_char(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "char","nccell_load_char", 3, argv[2] ));
  } 
  arg3 = (char)(val3);
  result = (int)nccell_load_char(arg1,arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_load_egc_32(*args) ⇒ Object

call-seq:

nccell_load_egc_32(n, c, egc) -> int

A module function.



11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
# File 'ext/notcurses/src/notcurses_wrap.c', line 11298

SWIGINTERN VALUE
_wrap_nccell_load_egc_32(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  uint32_t arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nccell_load_egc32", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell *","nccell_load_egc32", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint32_t","nccell_load_egc32", 3, argv[2] ));
  } 
  arg3 = (uint32_t)(val3);
  result = (int)nccell_load_egc32(arg1,arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_load_ucs_32(*args) ⇒ Object

call-seq:

nccell_load_ucs_32(n, c, u) -> int

A module function.



11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
# File 'ext/notcurses/src/notcurses_wrap.c', line 11379

SWIGINTERN VALUE
_wrap_nccell_load_ucs_32(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  uint32_t arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nccell_load_ucs32", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell *","nccell_load_ucs32", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint32_t","nccell_load_ucs32", 3, argv[2] ));
  } 
  arg3 = (uint32_t)(val3);
  result = (int)nccell_load_ucs32(arg1,arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_off_styles(*args) ⇒ Object

call-seq:

nccell_off_styles(c, stylebits)

A module function.



9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
# File 'ext/notcurses/src/notcurses_wrap.c', line 9955

SWIGINTERN VALUE
_wrap_nccell_off_styles(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_off_styles", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","nccell_off_styles", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  nccell_off_styles(arg1,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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_on_styles(*args) ⇒ Object

call-seq:

nccell_on_styles(c, stylebits)

A module function.



9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
# File 'ext/notcurses/src/notcurses_wrap.c', line 9900

SWIGINTERN VALUE
_wrap_nccell_on_styles(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_on_styles", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","nccell_on_styles", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  nccell_on_styles(arg1,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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_prime(*args) ⇒ Object

call-seq:

nccell_prime(n, c, gcluster, stylemask, channels) -> int

A module function.



9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
# File 'ext/notcurses/src/notcurses_wrap.c', line 9514

SWIGINTERN VALUE
_wrap_nccell_prime(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  char *arg3 = (char *) 0 ;
  uint16_t arg4 ;
  uint64_t arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  unsigned short val4 ;
  int ecode4 = 0 ;
  unsigned long val5 ;
  int ecode5 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nccell_prime", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell *","nccell_prime", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","nccell_prime", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  ecode4 = SWIG_AsVal_unsigned_SS_short(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint16_t","nccell_prime", 4, argv[3] ));
  } 
  arg4 = (uint16_t)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_long(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint64_t","nccell_prime", 5, argv[4] ));
  } 
  arg5 = (uint64_t)(val5);
  result = (int)nccell_prime(arg1,arg2,(char const *)arg3,arg4,arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), 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 = arg3 ? rb_str_new2(arg3) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("gcluster")), obj);
  }
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.nccell_release(*args) ⇒ Object

call-seq:

nccell_release(n, c)

A module function.



9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
# File 'ext/notcurses/src/notcurses_wrap.c', line 9724

SWIGINTERN VALUE
_wrap_nccell_release(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nccell_release", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell *","nccell_release", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  nccell_release(arg1,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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_bchannel(*args) ⇒ Object

call-seq:

nccell_set_bchannel(c, channel) -> uint64_t

A module function.



10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
# File 'ext/notcurses/src/notcurses_wrap.c', line 10218

SWIGINTERN VALUE
_wrap_nccell_set_bchannel(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_bchannel", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","nccell_set_bchannel", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  result = (uint64_t)nccell_set_bchannel(arg1,arg2);
  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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_bg_alpha(*args) ⇒ Object

call-seq:

nccell_set_bg_alpha(c, alpha) -> int

A module function.



10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
# File 'ext/notcurses/src/notcurses_wrap.c', line 10161

SWIGINTERN VALUE
_wrap_nccell_set_bg_alpha(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_bg_alpha", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","nccell_set_bg_alpha", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)nccell_set_bg_alpha(arg1,arg2);
  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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_bg_default(*args) ⇒ Object

call-seq:

nccell_set_bg_default(c)

A module function.



10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
# File 'ext/notcurses/src/notcurses_wrap.c', line 10057

SWIGINTERN VALUE
_wrap_nccell_set_bg_default(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_bg_default", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  nccell_set_bg_default(arg1);
  {
    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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_bg_palindex(*args) ⇒ Object

call-seq:

nccell_set_bg_palindex(cl, idx) -> int

A module function.



36774
36775
36776
36777
36778
36779
36780
36781
36782
36783
36784
36785
36786
36787
36788
36789
36790
36791
36792
36793
36794
36795
36796
36797
36798
36799
36800
36801
36802
36803
36804
36805
36806
36807
36808
36809
36810
36811
36812
36813
36814
36815
36816
36817
36818
36819
# File 'ext/notcurses/src/notcurses_wrap.c', line 36774

SWIGINTERN VALUE
_wrap_nccell_set_bg_palindex(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_bg_palindex", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","nccell_set_bg_palindex", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)nccell_set_bg_palindex(arg1,arg2);
  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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_bg_rgb(*args) ⇒ Object

call-seq:

nccell_set_bg_rgb(c, channel) -> int

A module function.



36717
36718
36719
36720
36721
36722
36723
36724
36725
36726
36727
36728
36729
36730
36731
36732
36733
36734
36735
36736
36737
36738
36739
36740
36741
36742
36743
36744
36745
36746
36747
36748
36749
36750
36751
36752
36753
36754
36755
36756
36757
36758
36759
36760
36761
36762
# File 'ext/notcurses/src/notcurses_wrap.c', line 36717

SWIGINTERN VALUE
_wrap_nccell_set_bg_rgb(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_bg_rgb", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","nccell_set_bg_rgb", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  result = (int)nccell_set_bg_rgb(arg1,arg2);
  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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_bg_rgb8(*args) ⇒ Object

call-seq:

nccell_set_bg_rgb8(cl, r, g, b) -> int

A module function.



36573
36574
36575
36576
36577
36578
36579
36580
36581
36582
36583
36584
36585
36586
36587
36588
36589
36590
36591
36592
36593
36594
36595
36596
36597
36598
36599
36600
36601
36602
36603
36604
36605
36606
36607
36608
36609
36610
36611
36612
36613
36614
36615
36616
36617
36618
36619
36620
36621
36622
36623
36624
36625
36626
36627
36628
36629
36630
36631
36632
36633
36634
# File 'ext/notcurses/src/notcurses_wrap.c', line 36573

SWIGINTERN VALUE
_wrap_nccell_set_bg_rgb8(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  unsigned int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_bg_rgb8", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","nccell_set_bg_rgb8", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","nccell_set_bg_rgb8", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","nccell_set_bg_rgb8", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (int)nccell_set_bg_rgb8(arg1,arg2,arg3,arg4);
  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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_bg_rgb_8_clipped(*args) ⇒ Object

call-seq:

nccell_set_bg_rgb_8_clipped(cl, r, g, b)

A module function.



36646
36647
36648
36649
36650
36651
36652
36653
36654
36655
36656
36657
36658
36659
36660
36661
36662
36663
36664
36665
36666
36667
36668
36669
36670
36671
36672
36673
36674
36675
36676
36677
36678
36679
36680
36681
36682
36683
36684
36685
36686
36687
36688
36689
36690
36691
36692
36693
36694
36695
36696
36697
36698
36699
36700
36701
36702
36703
36704
36705
# File 'ext/notcurses/src/notcurses_wrap.c', line 36646

SWIGINTERN VALUE
_wrap_nccell_set_bg_rgb_8_clipped(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_bg_rgb8_clipped", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","nccell_set_bg_rgb8_clipped", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","nccell_set_bg_rgb8_clipped", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","nccell_set_bg_rgb8_clipped", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  nccell_set_bg_rgb8_clipped(arg1,arg2,arg3,arg4);
  {
    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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_channels(*args) ⇒ Object

call-seq:

nccell_set_channels(c, channels) -> uint64_t

A module function.



10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
# File 'ext/notcurses/src/notcurses_wrap.c', line 10332

SWIGINTERN VALUE
_wrap_nccell_set_channels(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  uint64_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_channels", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","nccell_set_channels", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  result = (uint64_t)nccell_set_channels(arg1,arg2);
  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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_fchannel(*args) ⇒ Object

call-seq:

nccell_set_fchannel(c, channel) -> uint64_t

A module function.



10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
# File 'ext/notcurses/src/notcurses_wrap.c', line 10275

SWIGINTERN VALUE
_wrap_nccell_set_fchannel(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_fchannel", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","nccell_set_fchannel", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  result = (uint64_t)nccell_set_fchannel(arg1,arg2);
  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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_fg_alpha(*args) ⇒ Object

call-seq:

nccell_set_fg_alpha(c, alpha) -> int

A module function.



10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
# File 'ext/notcurses/src/notcurses_wrap.c', line 10104

SWIGINTERN VALUE
_wrap_nccell_set_fg_alpha(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_fg_alpha", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","nccell_set_fg_alpha", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)nccell_set_fg_alpha(arg1,arg2);
  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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_fg_default(*args) ⇒ Object

call-seq:

nccell_set_fg_default(c)

A module function.



10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
# File 'ext/notcurses/src/notcurses_wrap.c', line 10010

SWIGINTERN VALUE
_wrap_nccell_set_fg_default(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_fg_default", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  nccell_set_fg_default(arg1);
  {
    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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_fg_palindex(*args) ⇒ Object

call-seq:

nccell_set_fg_palindex(cl, idx) -> int

A module function.



36467
36468
36469
36470
36471
36472
36473
36474
36475
36476
36477
36478
36479
36480
36481
36482
36483
36484
36485
36486
36487
36488
36489
36490
36491
36492
36493
36494
36495
36496
36497
36498
36499
36500
36501
36502
36503
36504
36505
36506
36507
36508
36509
36510
36511
36512
# File 'ext/notcurses/src/notcurses_wrap.c', line 36467

SWIGINTERN VALUE
_wrap_nccell_set_fg_palindex(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_fg_palindex", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","nccell_set_fg_palindex", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)nccell_set_fg_palindex(arg1,arg2);
  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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_fg_rgb(*args) ⇒ Object

call-seq:

nccell_set_fg_rgb(c, channel) -> int

A module function.



36410
36411
36412
36413
36414
36415
36416
36417
36418
36419
36420
36421
36422
36423
36424
36425
36426
36427
36428
36429
36430
36431
36432
36433
36434
36435
36436
36437
36438
36439
36440
36441
36442
36443
36444
36445
36446
36447
36448
36449
36450
36451
36452
36453
36454
36455
# File 'ext/notcurses/src/notcurses_wrap.c', line 36410

SWIGINTERN VALUE
_wrap_nccell_set_fg_rgb(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_fg_rgb", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","nccell_set_fg_rgb", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  result = (int)nccell_set_fg_rgb(arg1,arg2);
  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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_fg_rgb8(*args) ⇒ Object

call-seq:

nccell_set_fg_rgb8(cl, r, g, b) -> int

A module function.



36266
36267
36268
36269
36270
36271
36272
36273
36274
36275
36276
36277
36278
36279
36280
36281
36282
36283
36284
36285
36286
36287
36288
36289
36290
36291
36292
36293
36294
36295
36296
36297
36298
36299
36300
36301
36302
36303
36304
36305
36306
36307
36308
36309
36310
36311
36312
36313
36314
36315
36316
36317
36318
36319
36320
36321
36322
36323
36324
36325
36326
36327
# File 'ext/notcurses/src/notcurses_wrap.c', line 36266

SWIGINTERN VALUE
_wrap_nccell_set_fg_rgb8(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  unsigned int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_fg_rgb8", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","nccell_set_fg_rgb8", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","nccell_set_fg_rgb8", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","nccell_set_fg_rgb8", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (int)nccell_set_fg_rgb8(arg1,arg2,arg3,arg4);
  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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_fg_rgb_8_clipped(*args) ⇒ Object

call-seq:

nccell_set_fg_rgb_8_clipped(cl, r, g, b)

A module function.



36339
36340
36341
36342
36343
36344
36345
36346
36347
36348
36349
36350
36351
36352
36353
36354
36355
36356
36357
36358
36359
36360
36361
36362
36363
36364
36365
36366
36367
36368
36369
36370
36371
36372
36373
36374
36375
36376
36377
36378
36379
36380
36381
36382
36383
36384
36385
36386
36387
36388
36389
36390
36391
36392
36393
36394
36395
36396
36397
36398
# File 'ext/notcurses/src/notcurses_wrap.c', line 36339

SWIGINTERN VALUE
_wrap_nccell_set_fg_rgb_8_clipped(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_fg_rgb8_clipped", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","nccell_set_fg_rgb8_clipped", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","nccell_set_fg_rgb8_clipped", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","nccell_set_fg_rgb8_clipped", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  nccell_set_fg_rgb8_clipped(arg1,arg2,arg3,arg4);
  {
    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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_set_styles(*args) ⇒ Object

call-seq:

nccell_set_styles(c, stylebits)

A module function.



9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
# File 'ext/notcurses/src/notcurses_wrap.c', line 9796

SWIGINTERN VALUE
_wrap_nccell_set_styles(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_set_styles", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","nccell_set_styles", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  nccell_set_styles(arg1,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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_strdup(*args) ⇒ Object

call-seq:

nccell_strdup(n, c) -> char *

A module function.



10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
# File 'ext/notcurses/src/notcurses_wrap.c', line 10818

SWIGINTERN VALUE
_wrap_nccell_strdup(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","nccell_strdup", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell const *","nccell_strdup", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  result = (char *)nccell_strdup((struct ncplane const *)arg1,(struct nccell const *)arg2);
  {
    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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_styles(*args) ⇒ Object

call-seq:

nccell_styles(c) -> uint16_t

A module function.



9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
# File 'ext/notcurses/src/notcurses_wrap.c', line 9851

SWIGINTERN VALUE
_wrap_nccell_styles(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint16_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_styles", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (uint16_t)nccell_styles((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_trivial_initializer(*args) ⇒ Object

call-seq:

nccell_trivial_initializer(cell)

A module function.



4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
# File 'ext/notcurses/src/notcurses_wrap.c', line 4360

SWIGINTERN VALUE
_wrap_nccell_trivial_initializer(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell *","nccell_trivial_initializer", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  nccell_trivial_initializer(arg1);
  {
    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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cell")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_wide_left_p(*args) ⇒ Object

call-seq:

nccell_wide_left_p(c) -> bool

A module function.



10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
# File 'ext/notcurses/src/notcurses_wrap.c', line 10487

SWIGINTERN VALUE
_wrap_nccell_wide_left_p(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_wide_left_p", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (bool)nccell_wide_left_p((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccell_wide_right_p(*args) ⇒ Object

call-seq:

nccell_wide_right_p(c) -> bool

A module function.



10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
# File 'ext/notcurses/src/notcurses_wrap.c', line 10438

SWIGINTERN VALUE
_wrap_nccell_wide_right_p(int argc, VALUE *argv, VALUE self) {
  nccell *arg1 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "nccell const *","nccell_wide_right_p", 1, argv[0] )); 
  }
  arg1 = (nccell *)(argp1);
  result = (bool)nccell_wide_right_p((struct nccell const *)arg1);
  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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccellcmp(*args) ⇒ Object

call-seq:

nccellcmp(n1, c1, n2, c2) -> bool

A module function.



11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
# File 'ext/notcurses/src/notcurses_wrap.c', line 11096

SWIGINTERN VALUE
_wrap_nccellcmp(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  struct ncplane *arg3 = (struct ncplane *) 0 ;
  nccell *arg4 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","nccellcmp", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell const *","nccellcmp", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "struct ncplane const *","nccellcmp", 3, argv[2] )); 
  }
  arg3 = (struct ncplane *)(argp3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "nccell const *","nccellcmp", 4, argv[3] )); 
  }
  arg4 = (nccell *)(argp4);
  result = (bool)nccellcmp((struct ncplane const *)arg1,(struct nccell const *)arg2,(struct ncplane const *)arg3,(struct nccell const *)arg4);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n1")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c1")), obj);
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n2")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c2")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccells_ascii_box(*args) ⇒ Object

call-seq:

nccells_ascii_box(n, attr, channels, ul, ur, ll, lr, hl, vl) -> int

A module function.



39961
39962
39963
39964
39965
39966
39967
39968
39969
39970
39971
39972
39973
39974
39975
39976
39977
39978
39979
39980
39981
39982
39983
39984
39985
39986
39987
39988
39989
39990
39991
39992
39993
39994
39995
39996
39997
39998
39999
40000
40001
40002
40003
40004
40005
40006
40007
40008
40009
40010
40011
40012
40013
40014
40015
40016
40017
40018
40019
40020
40021
40022
40023
40024
40025
40026
40027
40028
40029
40030
40031
40032
40033
40034
40035
40036
40037
40038
40039
40040
40041
40042
40043
40044
40045
40046
40047
40048
40049
40050
40051
40052
40053
40054
40055
40056
40057
40058
40059
40060
40061
40062
40063
40064
40065
40066
40067
40068
40069
40070
40071
40072
40073
40074
40075
40076
40077
40078
40079
40080
40081
40082
40083
40084
40085
40086
40087
40088
40089
40090
40091
40092
40093
40094
40095
40096
40097
40098
40099
40100
40101
40102
40103
40104
40105
40106
40107
40108
40109
40110
40111
40112
40113
40114
40115
40116
40117
40118
40119
40120
40121
40122
40123
40124
40125
40126
40127
40128
40129
40130
40131
40132
40133
40134
40135
40136
40137
40138
40139
40140
40141
40142
40143
40144
40145
40146
40147
40148
40149
40150
40151
40152
40153
40154
40155
40156
40157
40158
# File 'ext/notcurses/src/notcurses_wrap.c', line 39961

SWIGINTERN VALUE
_wrap_nccells_ascii_box(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint16_t arg2 ;
  uint64_t arg3 ;
  nccell *arg4 = (nccell *) 0 ;
  nccell *arg5 = (nccell *) 0 ;
  nccell *arg6 = (nccell *) 0 ;
  nccell *arg7 = (nccell *) 0 ;
  nccell *arg8 = (nccell *) 0 ;
  nccell *arg9 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 9) || (argc > 9)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nccells_ascii_box", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","nccells_ascii_box", 2, argv[1] ));
  } 
  arg2 = (uint16_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","nccells_ascii_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "nccell *","nccells_ascii_box", 4, argv[3] )); 
  }
  arg4 = (nccell *)(argp4);
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "nccell *","nccells_ascii_box", 5, argv[4] )); 
  }
  arg5 = (nccell *)(argp5);
  res6 = SWIG_ConvertPtr(argv[5], &argp6,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "nccell *","nccells_ascii_box", 6, argv[5] )); 
  }
  arg6 = (nccell *)(argp6);
  res7 = SWIG_ConvertPtr(argv[6], &argp7,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "nccell *","nccells_ascii_box", 7, argv[6] )); 
  }
  arg7 = (nccell *)(argp7);
  res8 = SWIG_ConvertPtr(argv[7], &argp8,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "nccell *","nccells_ascii_box", 8, argv[7] )); 
  }
  arg8 = (nccell *)(argp8);
  res9 = SWIG_ConvertPtr(argv[8], &argp9,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), Ruby_Format_TypeError( "", "nccell *","nccells_ascii_box", 9, argv[8] )); 
  }
  arg9 = (nccell *)(argp9);
  result = (int)nccells_ascii_box(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ul")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ur")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg6, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ll")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg7, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("lr")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg8, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("hl")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg9, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccells_double_box(*args) ⇒ Object

call-seq:

nccells_double_box(n, attr, channels, ul, ur, ll, lr, hl, vl) -> int

A module function.



40170
40171
40172
40173
40174
40175
40176
40177
40178
40179
40180
40181
40182
40183
40184
40185
40186
40187
40188
40189
40190
40191
40192
40193
40194
40195
40196
40197
40198
40199
40200
40201
40202
40203
40204
40205
40206
40207
40208
40209
40210
40211
40212
40213
40214
40215
40216
40217
40218
40219
40220
40221
40222
40223
40224
40225
40226
40227
40228
40229
40230
40231
40232
40233
40234
40235
40236
40237
40238
40239
40240
40241
40242
40243
40244
40245
40246
40247
40248
40249
40250
40251
40252
40253
40254
40255
40256
40257
40258
40259
40260
40261
40262
40263
40264
40265
40266
40267
40268
40269
40270
40271
40272
40273
40274
40275
40276
40277
40278
40279
40280
40281
40282
40283
40284
40285
40286
40287
40288
40289
40290
40291
40292
40293
40294
40295
40296
40297
40298
40299
40300
40301
40302
40303
40304
40305
40306
40307
40308
40309
40310
40311
40312
40313
40314
40315
40316
40317
40318
40319
40320
40321
40322
40323
40324
40325
40326
40327
40328
40329
40330
40331
40332
40333
40334
40335
40336
40337
40338
40339
40340
40341
40342
40343
40344
40345
40346
40347
40348
40349
40350
40351
40352
40353
40354
40355
40356
40357
40358
40359
40360
40361
40362
40363
40364
40365
40366
40367
# File 'ext/notcurses/src/notcurses_wrap.c', line 40170

SWIGINTERN VALUE
_wrap_nccells_double_box(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint16_t arg2 ;
  uint64_t arg3 ;
  nccell *arg4 = (nccell *) 0 ;
  nccell *arg5 = (nccell *) 0 ;
  nccell *arg6 = (nccell *) 0 ;
  nccell *arg7 = (nccell *) 0 ;
  nccell *arg8 = (nccell *) 0 ;
  nccell *arg9 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 9) || (argc > 9)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nccells_double_box", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","nccells_double_box", 2, argv[1] ));
  } 
  arg2 = (uint16_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","nccells_double_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "nccell *","nccells_double_box", 4, argv[3] )); 
  }
  arg4 = (nccell *)(argp4);
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "nccell *","nccells_double_box", 5, argv[4] )); 
  }
  arg5 = (nccell *)(argp5);
  res6 = SWIG_ConvertPtr(argv[5], &argp6,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "nccell *","nccells_double_box", 6, argv[5] )); 
  }
  arg6 = (nccell *)(argp6);
  res7 = SWIG_ConvertPtr(argv[6], &argp7,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "nccell *","nccells_double_box", 7, argv[6] )); 
  }
  arg7 = (nccell *)(argp7);
  res8 = SWIG_ConvertPtr(argv[7], &argp8,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "nccell *","nccells_double_box", 8, argv[7] )); 
  }
  arg8 = (nccell *)(argp8);
  res9 = SWIG_ConvertPtr(argv[8], &argp9,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), Ruby_Format_TypeError( "", "nccell *","nccells_double_box", 9, argv[8] )); 
  }
  arg9 = (nccell *)(argp9);
  result = (int)nccells_double_box(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ul")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ur")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg6, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ll")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg7, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("lr")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg8, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("hl")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg9, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccells_heavy_box(*args) ⇒ Object

call-seq:

nccells_heavy_box(n, attr, channels, ul, ur, ll, lr, hl, vl) -> int

A module function.



40797
40798
40799
40800
40801
40802
40803
40804
40805
40806
40807
40808
40809
40810
40811
40812
40813
40814
40815
40816
40817
40818
40819
40820
40821
40822
40823
40824
40825
40826
40827
40828
40829
40830
40831
40832
40833
40834
40835
40836
40837
40838
40839
40840
40841
40842
40843
40844
40845
40846
40847
40848
40849
40850
40851
40852
40853
40854
40855
40856
40857
40858
40859
40860
40861
40862
40863
40864
40865
40866
40867
40868
40869
40870
40871
40872
40873
40874
40875
40876
40877
40878
40879
40880
40881
40882
40883
40884
40885
40886
40887
40888
40889
40890
40891
40892
40893
40894
40895
40896
40897
40898
40899
40900
40901
40902
40903
40904
40905
40906
40907
40908
40909
40910
40911
40912
40913
40914
40915
40916
40917
40918
40919
40920
40921
40922
40923
40924
40925
40926
40927
40928
40929
40930
40931
40932
40933
40934
40935
40936
40937
40938
40939
40940
40941
40942
40943
40944
40945
40946
40947
40948
40949
40950
40951
40952
40953
40954
40955
40956
40957
40958
40959
40960
40961
40962
40963
40964
40965
40966
40967
40968
40969
40970
40971
40972
40973
40974
40975
40976
40977
40978
40979
40980
40981
40982
40983
40984
40985
40986
40987
40988
40989
40990
40991
40992
40993
40994
# File 'ext/notcurses/src/notcurses_wrap.c', line 40797

SWIGINTERN VALUE
_wrap_nccells_heavy_box(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint16_t arg2 ;
  uint64_t arg3 ;
  nccell *arg4 = (nccell *) 0 ;
  nccell *arg5 = (nccell *) 0 ;
  nccell *arg6 = (nccell *) 0 ;
  nccell *arg7 = (nccell *) 0 ;
  nccell *arg8 = (nccell *) 0 ;
  nccell *arg9 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 9) || (argc > 9)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nccells_heavy_box", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","nccells_heavy_box", 2, argv[1] ));
  } 
  arg2 = (uint16_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","nccells_heavy_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "nccell *","nccells_heavy_box", 4, argv[3] )); 
  }
  arg4 = (nccell *)(argp4);
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "nccell *","nccells_heavy_box", 5, argv[4] )); 
  }
  arg5 = (nccell *)(argp5);
  res6 = SWIG_ConvertPtr(argv[5], &argp6,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "nccell *","nccells_heavy_box", 6, argv[5] )); 
  }
  arg6 = (nccell *)(argp6);
  res7 = SWIG_ConvertPtr(argv[6], &argp7,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "nccell *","nccells_heavy_box", 7, argv[6] )); 
  }
  arg7 = (nccell *)(argp7);
  res8 = SWIG_ConvertPtr(argv[7], &argp8,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "nccell *","nccells_heavy_box", 8, argv[7] )); 
  }
  arg8 = (nccell *)(argp8);
  res9 = SWIG_ConvertPtr(argv[8], &argp9,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), Ruby_Format_TypeError( "", "nccell *","nccells_heavy_box", 9, argv[8] )); 
  }
  arg9 = (nccell *)(argp9);
  result = (int)nccells_heavy_box(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ul")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ur")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg6, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ll")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg7, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("lr")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg8, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("hl")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg9, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccells_light_box(*args) ⇒ Object

call-seq:

nccells_light_box(n, attr, channels, ul, ur, ll, lr, hl, vl) -> int

A module function.



40588
40589
40590
40591
40592
40593
40594
40595
40596
40597
40598
40599
40600
40601
40602
40603
40604
40605
40606
40607
40608
40609
40610
40611
40612
40613
40614
40615
40616
40617
40618
40619
40620
40621
40622
40623
40624
40625
40626
40627
40628
40629
40630
40631
40632
40633
40634
40635
40636
40637
40638
40639
40640
40641
40642
40643
40644
40645
40646
40647
40648
40649
40650
40651
40652
40653
40654
40655
40656
40657
40658
40659
40660
40661
40662
40663
40664
40665
40666
40667
40668
40669
40670
40671
40672
40673
40674
40675
40676
40677
40678
40679
40680
40681
40682
40683
40684
40685
40686
40687
40688
40689
40690
40691
40692
40693
40694
40695
40696
40697
40698
40699
40700
40701
40702
40703
40704
40705
40706
40707
40708
40709
40710
40711
40712
40713
40714
40715
40716
40717
40718
40719
40720
40721
40722
40723
40724
40725
40726
40727
40728
40729
40730
40731
40732
40733
40734
40735
40736
40737
40738
40739
40740
40741
40742
40743
40744
40745
40746
40747
40748
40749
40750
40751
40752
40753
40754
40755
40756
40757
40758
40759
40760
40761
40762
40763
40764
40765
40766
40767
40768
40769
40770
40771
40772
40773
40774
40775
40776
40777
40778
40779
40780
40781
40782
40783
40784
40785
# File 'ext/notcurses/src/notcurses_wrap.c', line 40588

SWIGINTERN VALUE
_wrap_nccells_light_box(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint16_t arg2 ;
  uint64_t arg3 ;
  nccell *arg4 = (nccell *) 0 ;
  nccell *arg5 = (nccell *) 0 ;
  nccell *arg6 = (nccell *) 0 ;
  nccell *arg7 = (nccell *) 0 ;
  nccell *arg8 = (nccell *) 0 ;
  nccell *arg9 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 9) || (argc > 9)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nccells_light_box", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","nccells_light_box", 2, argv[1] ));
  } 
  arg2 = (uint16_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","nccells_light_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "nccell *","nccells_light_box", 4, argv[3] )); 
  }
  arg4 = (nccell *)(argp4);
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "nccell *","nccells_light_box", 5, argv[4] )); 
  }
  arg5 = (nccell *)(argp5);
  res6 = SWIG_ConvertPtr(argv[5], &argp6,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "nccell *","nccells_light_box", 6, argv[5] )); 
  }
  arg6 = (nccell *)(argp6);
  res7 = SWIG_ConvertPtr(argv[6], &argp7,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "nccell *","nccells_light_box", 7, argv[6] )); 
  }
  arg7 = (nccell *)(argp7);
  res8 = SWIG_ConvertPtr(argv[7], &argp8,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "nccell *","nccells_light_box", 8, argv[7] )); 
  }
  arg8 = (nccell *)(argp8);
  res9 = SWIG_ConvertPtr(argv[8], &argp9,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), Ruby_Format_TypeError( "", "nccell *","nccells_light_box", 9, argv[8] )); 
  }
  arg9 = (nccell *)(argp9);
  result = (int)nccells_light_box(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ul")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ur")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg6, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ll")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg7, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("lr")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg8, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("hl")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg9, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nccells_load_box(*args) ⇒ Object

call-seq:

nccells_load_box(n, styles, channels, ul, ur, ll, lr, hl, vl, gclusters) -> int

A module function.



39728
39729
39730
39731
39732
39733
39734
39735
39736
39737
39738
39739
39740
39741
39742
39743
39744
39745
39746
39747
39748
39749
39750
39751
39752
39753
39754
39755
39756
39757
39758
39759
39760
39761
39762
39763
39764
39765
39766
39767
39768
39769
39770
39771
39772
39773
39774
39775
39776
39777
39778
39779
39780
39781
39782
39783
39784
39785
39786
39787
39788
39789
39790
39791
39792
39793
39794
39795
39796
39797
39798
39799
39800
39801
39802
39803
39804
39805
39806
39807
39808
39809
39810
39811
39812
39813
39814
39815
39816
39817
39818
39819
39820
39821
39822
39823
39824
39825
39826
39827
39828
39829
39830
39831
39832
39833
39834
39835
39836
39837
39838
39839
39840
39841
39842
39843
39844
39845
39846
39847
39848
39849
39850
39851
39852
39853
39854
39855
39856
39857
39858
39859
39860
39861
39862
39863
39864
39865
39866
39867
39868
39869
39870
39871
39872
39873
39874
39875
39876
39877
39878
39879
39880
39881
39882
39883
39884
39885
39886
39887
39888
39889
39890
39891
39892
39893
39894
39895
39896
39897
39898
39899
39900
39901
39902
39903
39904
39905
39906
39907
39908
39909
39910
39911
39912
39913
39914
39915
39916
39917
39918
39919
39920
39921
39922
39923
39924
39925
39926
39927
39928
39929
39930
39931
39932
39933
39934
39935
39936
39937
39938
39939
39940
39941
39942
39943
39944
39945
39946
39947
39948
39949
# File 'ext/notcurses/src/notcurses_wrap.c', line 39728

SWIGINTERN VALUE
_wrap_nccells_load_box(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint16_t arg2 ;
  uint64_t arg3 ;
  nccell *arg4 = (nccell *) 0 ;
  nccell *arg5 = (nccell *) 0 ;
  nccell *arg6 = (nccell *) 0 ;
  nccell *arg7 = (nccell *) 0 ;
  nccell *arg8 = (nccell *) 0 ;
  nccell *arg9 = (nccell *) 0 ;
  char *arg10 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  int res10 ;
  char *buf10 = 0 ;
  int alloc10 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 10) || (argc > 10)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 10)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nccells_load_box", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","nccells_load_box", 2, argv[1] ));
  } 
  arg2 = (uint16_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","nccells_load_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "nccell *","nccells_load_box", 4, argv[3] )); 
  }
  arg4 = (nccell *)(argp4);
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "nccell *","nccells_load_box", 5, argv[4] )); 
  }
  arg5 = (nccell *)(argp5);
  res6 = SWIG_ConvertPtr(argv[5], &argp6,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "nccell *","nccells_load_box", 6, argv[5] )); 
  }
  arg6 = (nccell *)(argp6);
  res7 = SWIG_ConvertPtr(argv[6], &argp7,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "nccell *","nccells_load_box", 7, argv[6] )); 
  }
  arg7 = (nccell *)(argp7);
  res8 = SWIG_ConvertPtr(argv[7], &argp8,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "nccell *","nccells_load_box", 8, argv[7] )); 
  }
  arg8 = (nccell *)(argp8);
  res9 = SWIG_ConvertPtr(argv[8], &argp9,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), Ruby_Format_TypeError( "", "nccell *","nccells_load_box", 9, argv[8] )); 
  }
  arg9 = (nccell *)(argp9);
  res10 = SWIG_AsCharPtrAndSize(argv[9], &buf10, NULL, &alloc10);
  if (!SWIG_IsOK(res10)) {
    SWIG_exception_fail(SWIG_ArgError(res10), Ruby_Format_TypeError( "", "char const *","nccells_load_box", 10, argv[9] ));
  }
  arg10 = (char *)(buf10);
  result = (int)nccells_load_box(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,(char const *)arg10);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ul")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ur")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg6, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ll")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg7, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("lr")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg8, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("hl")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg9, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vl")), 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 = arg10 ? rb_str_new2(arg10) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("gclusters")), obj);
  }
  if (alloc10 == SWIG_NEWOBJ) free((char*)buf10);
  return vresult;
fail:
  if (alloc10 == SWIG_NEWOBJ) free((char*)buf10);
  return Qnil;
}

.nccells_rounded_box(*args) ⇒ Object

call-seq:

nccells_rounded_box(n, attr, channels, ul, ur, ll, lr, hl, vl) -> int

A module function.



40379
40380
40381
40382
40383
40384
40385
40386
40387
40388
40389
40390
40391
40392
40393
40394
40395
40396
40397
40398
40399
40400
40401
40402
40403
40404
40405
40406
40407
40408
40409
40410
40411
40412
40413
40414
40415
40416
40417
40418
40419
40420
40421
40422
40423
40424
40425
40426
40427
40428
40429
40430
40431
40432
40433
40434
40435
40436
40437
40438
40439
40440
40441
40442
40443
40444
40445
40446
40447
40448
40449
40450
40451
40452
40453
40454
40455
40456
40457
40458
40459
40460
40461
40462
40463
40464
40465
40466
40467
40468
40469
40470
40471
40472
40473
40474
40475
40476
40477
40478
40479
40480
40481
40482
40483
40484
40485
40486
40487
40488
40489
40490
40491
40492
40493
40494
40495
40496
40497
40498
40499
40500
40501
40502
40503
40504
40505
40506
40507
40508
40509
40510
40511
40512
40513
40514
40515
40516
40517
40518
40519
40520
40521
40522
40523
40524
40525
40526
40527
40528
40529
40530
40531
40532
40533
40534
40535
40536
40537
40538
40539
40540
40541
40542
40543
40544
40545
40546
40547
40548
40549
40550
40551
40552
40553
40554
40555
40556
40557
40558
40559
40560
40561
40562
40563
40564
40565
40566
40567
40568
40569
40570
40571
40572
40573
40574
40575
40576
# File 'ext/notcurses/src/notcurses_wrap.c', line 40379

SWIGINTERN VALUE
_wrap_nccells_rounded_box(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint16_t arg2 ;
  uint64_t arg3 ;
  nccell *arg4 = (nccell *) 0 ;
  nccell *arg5 = (nccell *) 0 ;
  nccell *arg6 = (nccell *) 0 ;
  nccell *arg7 = (nccell *) 0 ;
  nccell *arg8 = (nccell *) 0 ;
  nccell *arg9 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  void *argp8 = 0 ;
  int res8 = 0 ;
  void *argp9 = 0 ;
  int res9 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 9) || (argc > 9)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nccells_rounded_box", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","nccells_rounded_box", 2, argv[1] ));
  } 
  arg2 = (uint16_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","nccells_rounded_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "nccell *","nccells_rounded_box", 4, argv[3] )); 
  }
  arg4 = (nccell *)(argp4);
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "nccell *","nccells_rounded_box", 5, argv[4] )); 
  }
  arg5 = (nccell *)(argp5);
  res6 = SWIG_ConvertPtr(argv[5], &argp6,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "nccell *","nccells_rounded_box", 6, argv[5] )); 
  }
  arg6 = (nccell *)(argp6);
  res7 = SWIG_ConvertPtr(argv[6], &argp7,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "nccell *","nccells_rounded_box", 7, argv[6] )); 
  }
  arg7 = (nccell *)(argp7);
  res8 = SWIG_ConvertPtr(argv[7], &argp8,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res8)) {
    SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "nccell *","nccells_rounded_box", 8, argv[7] )); 
  }
  arg8 = (nccell *)(argp8);
  res9 = SWIG_ConvertPtr(argv[8], &argp9,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res9)) {
    SWIG_exception_fail(SWIG_ArgError(res9), Ruby_Format_TypeError( "", "nccell *","nccells_rounded_box", 9, argv[8] )); 
  }
  arg9 = (nccell *)(argp9);
  result = (int)nccells_rounded_box(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ul")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ur")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg6, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ll")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg7, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("lr")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg8, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("hl")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg9, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vl")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannel_alpha(*args) ⇒ Object

call-seq:

ncchannel_alpha(channel) -> unsigned int

A module function.



5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
# File 'ext/notcurses/src/notcurses_wrap.c', line 5209

SWIGINTERN VALUE
_wrap_ncchannel_alpha(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncchannel_alpha", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (unsigned int)ncchannel_alpha(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannel_b(*args) ⇒ Object

call-seq:

ncchannel_b(channel) -> unsigned int

A module function.



5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
# File 'ext/notcurses/src/notcurses_wrap.c', line 5690

SWIGINTERN VALUE
_wrap_ncchannel_b(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncchannel_b", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (unsigned int)ncchannel_b(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannel_default_p(*args) ⇒ Object

call-seq:

ncchannel_default_p(channel) -> bool

A module function.



5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
# File 'ext/notcurses/src/notcurses_wrap.c', line 5328

SWIGINTERN VALUE
_wrap_ncchannel_default_p(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncchannel_default_p", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (bool)ncchannel_default_p(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannel_g(*args) ⇒ Object

call-seq:

ncchannel_g(channel) -> unsigned int

A module function.



5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
# File 'ext/notcurses/src/notcurses_wrap.c', line 5657

SWIGINTERN VALUE
_wrap_ncchannel_g(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncchannel_g", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (unsigned int)ncchannel_g(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannel_initializer(*args) ⇒ Object

call-seq:

ncchannel_initializer(r, g, b) -> uint32_t

A module function.



3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
# File 'ext/notcurses/src/notcurses_wrap.c', line 3908

SWIGINTERN VALUE
_wrap_ncchannel_initializer(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  uint32_t arg2 ;
  uint32_t arg3 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncchannel_initializer", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","ncchannel_initializer", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint32_t","ncchannel_initializer", 3, argv[2] ));
  } 
  arg3 = (uint32_t)(val3);
  result = (uint32_t)ncchannel_initializer(arg1,arg2,arg3);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannel_palindex(*args) ⇒ Object

call-seq:

ncchannel_palindex(channel) -> unsigned int

A module function.



5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
# File 'ext/notcurses/src/notcurses_wrap.c', line 5472

SWIGINTERN VALUE
_wrap_ncchannel_palindex(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncchannel_palindex", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (unsigned int)ncchannel_palindex(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannel_palindex_p(*args) ⇒ Object

call-seq:

ncchannel_palindex_p(channel) -> bool

A module function.



5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
# File 'ext/notcurses/src/notcurses_wrap.c', line 5439

SWIGINTERN VALUE
_wrap_ncchannel_palindex_p(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncchannel_palindex_p", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (bool)ncchannel_palindex_p(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannel_r(*args) ⇒ Object

call-seq:

ncchannel_r(channel) -> unsigned int

A module function.



5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
# File 'ext/notcurses/src/notcurses_wrap.c', line 5624

SWIGINTERN VALUE
_wrap_ncchannel_r(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncchannel_r", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (unsigned int)ncchannel_r(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannel_rgb(*args) ⇒ Object

call-seq:

ncchannel_rgb(channel) -> uint32_t

A module function.



5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
# File 'ext/notcurses/src/notcurses_wrap.c', line 5723

SWIGINTERN VALUE
_wrap_ncchannel_rgb(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncchannel_rgb", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (uint32_t)ncchannel_rgb(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannel_rgb8(*args) ⇒ Object

call-seq:

ncchannel_rgb8(channel, r, g, b) -> uint32_t

A module function.



5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
# File 'ext/notcurses/src/notcurses_wrap.c', line 5756

SWIGINTERN VALUE
_wrap_ncchannel_rgb8(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  unsigned int *arg4 = (unsigned int *) 0 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncchannel_rgb8", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg4 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (unsigned int) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg4 = (unsigned int) NUM2DBL(argv[3]);
      } else {
        *arg4 = (unsigned int) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (uint32_t)ncchannel_rgb8(arg1,arg2,arg3,arg4);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("r")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("g")), converted_value);
      free(arg3);
    }
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("b")), converted_value);
      free(arg4);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannel_rgb_p(*args) ⇒ Object

call-seq:

ncchannel_rgb_p(channel) -> bool

A module function.



5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
# File 'ext/notcurses/src/notcurses_wrap.c', line 5591

SWIGINTERN VALUE
_wrap_ncchannel_rgb_p(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncchannel_rgb_p", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (bool)ncchannel_rgb_p(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannel_set(*args) ⇒ Object

call-seq:

ncchannel_set(channel, rgb) -> int

A module function.



6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
# File 'ext/notcurses/src/notcurses_wrap.c', line 6050

SWIGINTERN VALUE
_wrap_ncchannel_set(int argc, VALUE *argv, VALUE self) {
  uint32_t *arg1 = (uint32_t *) 0 ;
  uint32_t arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint32_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg1 = (uint32_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint32_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","ncchannel_set", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  result = (int)ncchannel_set(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channel")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannel_set_alpha(*args) ⇒ Object

call-seq:

ncchannel_set_alpha(channel, alpha) -> int

A module function.



5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
# File 'ext/notcurses/src/notcurses_wrap.c', line 5242

SWIGINTERN VALUE
_wrap_ncchannel_set_alpha(int argc, VALUE *argv, VALUE self) {
  uint32_t *arg1 = (uint32_t *) 0 ;
  unsigned int arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint32_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg1 = (uint32_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint32_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncchannel_set_alpha", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncchannel_set_alpha(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channel")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannel_set_default(*args) ⇒ Object

call-seq:

ncchannel_set_default(channel) -> uint32_t

A module function.



5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
# File 'ext/notcurses/src/notcurses_wrap.c', line 5361

SWIGINTERN VALUE
_wrap_ncchannel_set_default(int argc, VALUE *argv, VALUE self) {
  uint32_t *arg1 = (uint32_t *) 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  {
    arg1 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint32_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg1 = (uint32_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint32_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (uint32_t)ncchannel_set_default(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channel")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannel_set_palindex(*args) ⇒ Object

call-seq:

ncchannel_set_palindex(channel, idx) -> int

A module function.



5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
# File 'ext/notcurses/src/notcurses_wrap.c', line 5505

SWIGINTERN VALUE
_wrap_ncchannel_set_palindex(int argc, VALUE *argv, VALUE self) {
  uint32_t *arg1 = (uint32_t *) 0 ;
  unsigned int arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint32_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg1 = (uint32_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint32_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncchannel_set_palindex", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncchannel_set_palindex(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channel")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannel_set_rgb8(*args) ⇒ Object

call-seq:

ncchannel_set_rgb8(channel, r, g, b) -> int

A module function.



5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
# File 'ext/notcurses/src/notcurses_wrap.c', line 5948

SWIGINTERN VALUE
_wrap_ncchannel_set_rgb8(int argc, VALUE *argv, VALUE self) {
  uint32_t *arg1 = (uint32_t *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  unsigned int arg4 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  {
    arg1 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint32_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg1 = (uint32_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint32_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncchannel_set_rgb8", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncchannel_set_rgb8", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncchannel_set_rgb8", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (int)ncchannel_set_rgb8(arg1,arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channel")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannel_set_rgb_8_clipped(*args) ⇒ Object

call-seq:

ncchannel_set_rgb_8_clipped(channel, r, g, b)

A module function.



6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
# File 'ext/notcurses/src/notcurses_wrap.c', line 6136

SWIGINTERN VALUE
_wrap_ncchannel_set_rgb_8_clipped(int argc, VALUE *argv, VALUE self) {
  uint32_t *arg1 = (uint32_t *) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  {
    arg1 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint32_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg1 = (uint32_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint32_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncchannel_set_rgb8_clipped", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncchannel_set_rgb8_clipped", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncchannel_set_rgb8_clipped", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  ncchannel_set_rgb8_clipped(arg1,arg2,arg3,arg4);
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channel")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_bchannel(*args) ⇒ Object

call-seq:

ncchannels_bchannel(channels) -> uint32_t

A module function.



6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
# File 'ext/notcurses/src/notcurses_wrap.c', line 6236

SWIGINTERN VALUE
_wrap_ncchannels_bchannel(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_bchannel", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (uint32_t)ncchannels_bchannel(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_bg_alpha(*args) ⇒ Object

call-seq:

ncchannels_bg_alpha(channels) -> unsigned int

A module function.



6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
# File 'ext/notcurses/src/notcurses_wrap.c', line 6401

SWIGINTERN VALUE
_wrap_ncchannels_bg_alpha(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_bg_alpha", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (unsigned int)ncchannels_bg_alpha(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_bg_default_p(*args) ⇒ Object

call-seq:

ncchannels_bg_default_p(channels) -> bool

A module function.



8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
# File 'ext/notcurses/src/notcurses_wrap.c', line 8301

SWIGINTERN VALUE
_wrap_ncchannels_bg_default_p(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_bg_default_p", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (bool)ncchannels_bg_default_p(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_bg_palindex(*args) ⇒ Object

call-seq:

ncchannels_bg_palindex(channels) -> unsigned int

A module function.



7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
# File 'ext/notcurses/src/notcurses_wrap.c', line 7004

SWIGINTERN VALUE
_wrap_ncchannels_bg_palindex(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_bg_palindex", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (unsigned int)ncchannels_bg_palindex(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_bg_palindex_p(*args) ⇒ Object

call-seq:

ncchannels_bg_palindex_p(channels) -> bool

A module function.



8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
# File 'ext/notcurses/src/notcurses_wrap.c', line 8334

SWIGINTERN VALUE
_wrap_ncchannels_bg_palindex_p(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_bg_palindex_p", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (bool)ncchannels_bg_palindex_p(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_bg_rgb(*args) ⇒ Object

call-seq:

ncchannels_bg_rgb(channels) -> uint32_t

A module function.



7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
# File 'ext/notcurses/src/notcurses_wrap.c', line 7070

SWIGINTERN VALUE
_wrap_ncchannels_bg_rgb(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_bg_rgb", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (uint32_t)ncchannels_bg_rgb(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_bg_rgb8(*args) ⇒ Object

call-seq:

ncchannels_bg_rgb8(channels, r, g, b) -> uint32_t

A module function.



7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
# File 'ext/notcurses/src/notcurses_wrap.c', line 7295

SWIGINTERN VALUE
_wrap_ncchannels_bg_rgb8(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  unsigned int *arg4 = (unsigned int *) 0 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_bg_rgb8", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg4 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (unsigned int) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg4 = (unsigned int) NUM2DBL(argv[3]);
      } else {
        *arg4 = (unsigned int) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (uint32_t)ncchannels_bg_rgb8(arg1,arg2,arg3,arg4);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("r")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("g")), converted_value);
      free(arg3);
    }
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("b")), converted_value);
      free(arg4);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_bg_rgb_p(*args) ⇒ Object

call-seq:

ncchannels_bg_rgb_p(channels) -> bool

A module function.



6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
# File 'ext/notcurses/src/notcurses_wrap.c', line 6335

SWIGINTERN VALUE
_wrap_ncchannels_bg_rgb_p(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_bg_rgb_p", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (bool)ncchannels_bg_rgb_p(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_channels(*args) ⇒ Object

call-seq:

ncchannels_channels(channels) -> uint64_t

A module function.



6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
# File 'ext/notcurses/src/notcurses_wrap.c', line 6302

SWIGINTERN VALUE
_wrap_ncchannels_channels(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_channels", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (uint64_t)ncchannels_channels(arg1);
  vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_combine(*args) ⇒ Object

call-seq:

ncchannels_combine(fchan, bchan) -> uint64_t

A module function.



6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
# File 'ext/notcurses/src/notcurses_wrap.c', line 6930

SWIGINTERN VALUE
_wrap_ncchannels_combine(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  uint32_t arg2 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncchannels_combine", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","ncchannels_combine", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  result = (uint64_t)ncchannels_combine(arg1,arg2);
  vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_fchannel(*args) ⇒ Object

call-seq:

ncchannels_fchannel(channels) -> uint32_t

A module function.



6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
# File 'ext/notcurses/src/notcurses_wrap.c', line 6269

SWIGINTERN VALUE
_wrap_ncchannels_fchannel(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_fchannel", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (uint32_t)ncchannels_fchannel(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_fg_alpha(*args) ⇒ Object

call-seq:

ncchannels_fg_alpha(channels) -> unsigned int

A module function.



6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
# File 'ext/notcurses/src/notcurses_wrap.c', line 6778

SWIGINTERN VALUE
_wrap_ncchannels_fg_alpha(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_fg_alpha", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (unsigned int)ncchannels_fg_alpha(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_fg_default_p(*args) ⇒ Object

call-seq:

ncchannels_fg_default_p(channels) -> bool

A module function.



8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
# File 'ext/notcurses/src/notcurses_wrap.c', line 8235

SWIGINTERN VALUE
_wrap_ncchannels_fg_default_p(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_fg_default_p", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (bool)ncchannels_fg_default_p(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_fg_palindex(*args) ⇒ Object

call-seq:

ncchannels_fg_palindex(channels) -> unsigned int

A module function.



6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
# File 'ext/notcurses/src/notcurses_wrap.c', line 6971

SWIGINTERN VALUE
_wrap_ncchannels_fg_palindex(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_fg_palindex", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (unsigned int)ncchannels_fg_palindex(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_fg_palindex_p(*args) ⇒ Object

call-seq:

ncchannels_fg_palindex_p(channels) -> bool

A module function.



8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
# File 'ext/notcurses/src/notcurses_wrap.c', line 8268

SWIGINTERN VALUE
_wrap_ncchannels_fg_palindex_p(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_fg_palindex_p", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (bool)ncchannels_fg_palindex_p(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_fg_rgb(*args) ⇒ Object

call-seq:

ncchannels_fg_rgb(channels) -> uint32_t

A module function.



7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
# File 'ext/notcurses/src/notcurses_wrap.c', line 7037

SWIGINTERN VALUE
_wrap_ncchannels_fg_rgb(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_fg_rgb", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (uint32_t)ncchannels_fg_rgb(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_fg_rgb8(*args) ⇒ Object

call-seq:

ncchannels_fg_rgb8(channels, r, g, b) -> uint32_t

A module function.



7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
# File 'ext/notcurses/src/notcurses_wrap.c', line 7103

SWIGINTERN VALUE
_wrap_ncchannels_fg_rgb8(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  unsigned int *arg4 = (unsigned int *) 0 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_fg_rgb8", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg4 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (unsigned int) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg4 = (unsigned int) NUM2DBL(argv[3]);
      } else {
        *arg4 = (unsigned int) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (uint32_t)ncchannels_fg_rgb8(arg1,arg2,arg3,arg4);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("r")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("g")), converted_value);
      free(arg3);
    }
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("b")), converted_value);
      free(arg4);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_fg_rgb_p(*args) ⇒ Object

call-seq:

ncchannels_fg_rgb_p(channels) -> bool

A module function.



6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
# File 'ext/notcurses/src/notcurses_wrap.c', line 6368

SWIGINTERN VALUE
_wrap_ncchannels_fg_rgb_p(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_fg_rgb_p", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (bool)ncchannels_fg_rgb_p(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_initializer(*args) ⇒ Object

call-seq:

ncchannels_initializer(fr, fg, fb, br, bg, bb) -> uint64_t

A module function.



3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
# File 'ext/notcurses/src/notcurses_wrap.c', line 3957

SWIGINTERN VALUE
_wrap_ncchannels_initializer(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  uint32_t arg2 ;
  uint32_t arg3 ;
  uint32_t arg4 ;
  uint32_t arg5 ;
  uint32_t arg6 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncchannels_initializer", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","ncchannels_initializer", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint32_t","ncchannels_initializer", 3, argv[2] ));
  } 
  arg3 = (uint32_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","ncchannels_initializer", 4, argv[3] ));
  } 
  arg4 = (uint32_t)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint32_t","ncchannels_initializer", 5, argv[4] ));
  } 
  arg5 = (uint32_t)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "uint32_t","ncchannels_initializer", 6, argv[5] ));
  } 
  arg6 = (uint32_t)(val6);
  result = (uint64_t)ncchannels_initializer(arg1,arg2,arg3,arg4,arg5,arg6);
  vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_reverse(*args) ⇒ Object

call-seq:

ncchannels_reverse(channels) -> uint64_t

A module function.



6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
# File 'ext/notcurses/src/notcurses_wrap.c', line 6897

SWIGINTERN VALUE
_wrap_ncchannels_reverse(int argc, VALUE *argv, VALUE self) {
  uint64_t arg1 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","ncchannels_reverse", 1, argv[0] ));
  } 
  arg1 = (uint64_t)(val1);
  result = (uint64_t)ncchannels_reverse(arg1);
  vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_bchannel(*args) ⇒ Object

call-seq:

ncchannels_set_bchannel(channels, channel) -> uint64_t

A module function.



6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
# File 'ext/notcurses/src/notcurses_wrap.c', line 6434

SWIGINTERN VALUE
_wrap_ncchannels_set_bchannel(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  uint32_t arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","ncchannels_set_bchannel", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  result = (uint64_t)ncchannels_set_bchannel(arg1,arg2);
  vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_bg_alpha(*args) ⇒ Object

call-seq:

ncchannels_set_bg_alpha(channels, alpha) -> int

A module function.



6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
# File 'ext/notcurses/src/notcurses_wrap.c', line 6692

SWIGINTERN VALUE
_wrap_ncchannels_set_bg_alpha(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  unsigned int arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncchannels_set_bg_alpha", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncchannels_set_bg_alpha(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_bg_default(*args) ⇒ Object

call-seq:

ncchannels_set_bg_default(channels) -> uint64_t

A module function.



8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
# File 'ext/notcurses/src/notcurses_wrap.c', line 8445

SWIGINTERN VALUE
_wrap_ncchannels_set_bg_default(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (uint64_t)ncchannels_set_bg_default(arg1);
  vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_bg_palindex(*args) ⇒ Object

call-seq:

ncchannels_set_bg_palindex(channels, idx) -> int

A module function.



8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
# File 'ext/notcurses/src/notcurses_wrap.c', line 8063

SWIGINTERN VALUE
_wrap_ncchannels_set_bg_palindex(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  unsigned int arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncchannels_set_bg_palindex", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncchannels_set_bg_palindex(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_bg_rgb(*args) ⇒ Object

call-seq:

ncchannels_set_bg_rgb(channels, rgb) -> int

A module function.



8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
# File 'ext/notcurses/src/notcurses_wrap.c', line 8149

SWIGINTERN VALUE
_wrap_ncchannels_set_bg_rgb(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  unsigned int arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncchannels_set_bg_rgb", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncchannels_set_bg_rgb(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_bg_rgb8(*args) ⇒ Object

call-seq:

ncchannels_set_bg_rgb8(channels, r, g, b) -> int

A module function.



7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
# File 'ext/notcurses/src/notcurses_wrap.c', line 7861

SWIGINTERN VALUE
_wrap_ncchannels_set_bg_rgb8(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  unsigned int arg4 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncchannels_set_bg_rgb8", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncchannels_set_bg_rgb8", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncchannels_set_bg_rgb8", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (int)ncchannels_set_bg_rgb8(arg1,arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_bg_rgb_8_clipped(*args) ⇒ Object

call-seq:

ncchannels_set_bg_rgb_8_clipped(channels, r, g, b)

A module function.



7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
# File 'ext/notcurses/src/notcurses_wrap.c', line 7963

SWIGINTERN VALUE
_wrap_ncchannels_set_bg_rgb_8_clipped(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncchannels_set_bg_rgb8_clipped", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncchannels_set_bg_rgb8_clipped", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncchannels_set_bg_rgb8_clipped", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  ncchannels_set_bg_rgb8_clipped(arg1,arg2,arg3,arg4);
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_channels(*args) ⇒ Object

call-seq:

ncchannels_set_channels(dst, channels) -> uint64_t

A module function.



6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
# File 'ext/notcurses/src/notcurses_wrap.c', line 6606

SWIGINTERN VALUE
_wrap_ncchannels_set_channels(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  uint64_t arg2 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncchannels_set_channels", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  result = (uint64_t)ncchannels_set_channels(arg1,arg2);
  vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("dst")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_fchannel(*args) ⇒ Object

call-seq:

ncchannels_set_fchannel(channels, channel) -> uint64_t

A module function.



6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
# File 'ext/notcurses/src/notcurses_wrap.c', line 6520

SWIGINTERN VALUE
_wrap_ncchannels_set_fchannel(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  uint32_t arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","ncchannels_set_fchannel", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  result = (uint64_t)ncchannels_set_fchannel(arg1,arg2);
  vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_fg_alpha(*args) ⇒ Object

call-seq:

ncchannels_set_fg_alpha(channels, alpha) -> int

A module function.



6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
# File 'ext/notcurses/src/notcurses_wrap.c', line 6811

SWIGINTERN VALUE
_wrap_ncchannels_set_fg_alpha(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  unsigned int arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncchannels_set_fg_alpha", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncchannels_set_fg_alpha(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_fg_default(*args) ⇒ Object

call-seq:

ncchannels_set_fg_default(channels) -> uint64_t

A module function.



8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
# File 'ext/notcurses/src/notcurses_wrap.c', line 8367

SWIGINTERN VALUE
_wrap_ncchannels_set_fg_default(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (uint64_t)ncchannels_set_fg_default(arg1);
  vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_fg_palindex(*args) ⇒ Object

call-seq:

ncchannels_set_fg_palindex(channels, idx) -> int

A module function.



7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
# File 'ext/notcurses/src/notcurses_wrap.c', line 7689

SWIGINTERN VALUE
_wrap_ncchannels_set_fg_palindex(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  unsigned int arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncchannels_set_fg_palindex", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncchannels_set_fg_palindex(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_fg_rgb(*args) ⇒ Object

call-seq:

ncchannels_set_fg_rgb(channels, rgb) -> int

A module function.



7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
# File 'ext/notcurses/src/notcurses_wrap.c', line 7775

SWIGINTERN VALUE
_wrap_ncchannels_set_fg_rgb(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  unsigned int arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncchannels_set_fg_rgb", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncchannels_set_fg_rgb(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_fg_rgb8(*args) ⇒ Object

call-seq:

ncchannels_set_fg_rgb8(channels, r, g, b) -> int

A module function.



7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
# File 'ext/notcurses/src/notcurses_wrap.c', line 7487

SWIGINTERN VALUE
_wrap_ncchannels_set_fg_rgb8(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  unsigned int arg4 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncchannels_set_fg_rgb8", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncchannels_set_fg_rgb8", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncchannels_set_fg_rgb8", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (int)ncchannels_set_fg_rgb8(arg1,arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncchannels_set_fg_rgb_8_clipped(*args) ⇒ Object

call-seq:

ncchannels_set_fg_rgb_8_clipped(channels, r, g, b)

A module function.



7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
# File 'ext/notcurses/src/notcurses_wrap.c', line 7589

SWIGINTERN VALUE
_wrap_ncchannels_set_fg_rgb_8_clipped(int argc, VALUE *argv, VALUE self) {
  uint64_t *arg1 = (uint64_t *) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  {
    arg1 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint64_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg1 = (uint64_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint64_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncchannels_set_fg_rgb8_clipped", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncchannels_set_fg_rgb8_clipped", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncchannels_set_fg_rgb8_clipped", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  ncchannels_set_fg_rgb8_clipped(arg1,arg2,arg3,arg4);
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_ascii_box(*args) ⇒ Object

call-seq:

ncdirect_ascii_box(n, ul, ur, ll, lr, ylen, xlen, ctlword) -> int

A module function.



70924
70925
70926
70927
70928
70929
70930
70931
70932
70933
70934
70935
70936
70937
70938
70939
70940
70941
70942
70943
70944
70945
70946
70947
70948
70949
70950
70951
70952
70953
70954
70955
70956
70957
70958
70959
70960
70961
70962
70963
70964
70965
70966
70967
70968
70969
70970
70971
70972
70973
70974
70975
70976
70977
70978
70979
70980
70981
70982
70983
70984
70985
70986
70987
70988
70989
70990
70991
70992
70993
70994
70995
70996
70997
70998
70999
71000
71001
71002
71003
71004
71005
71006
71007
71008
71009
71010
71011
71012
71013
71014
71015
71016
71017
# File 'ext/notcurses/src/notcurses_wrap.c', line 70924

SWIGINTERN VALUE
_wrap_ncdirect_ascii_box(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  uint64_t arg2 ;
  uint64_t arg3 ;
  uint64_t arg4 ;
  uint64_t arg5 ;
  unsigned int arg6 ;
  unsigned int arg7 ;
  unsigned int arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  unsigned long val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  unsigned int val8 ;
  int ecode8 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 8) || (argc > 8)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_ascii_box", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncdirect_ascii_box", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncdirect_ascii_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint64_t","ncdirect_ascii_box", 4, argv[3] ));
  } 
  arg4 = (uint64_t)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_long(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint64_t","ncdirect_ascii_box", 5, argv[4] ));
  } 
  arg5 = (uint64_t)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "unsigned int","ncdirect_ascii_box", 6, argv[5] ));
  } 
  arg6 = (unsigned int)(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_int(argv[6], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "unsigned int","ncdirect_ascii_box", 7, argv[6] ));
  } 
  arg7 = (unsigned int)(val7);
  ecode8 = SWIG_AsVal_unsigned_SS_int(argv[7], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "unsigned int","ncdirect_ascii_box", 8, argv[7] ));
  } 
  arg8 = (unsigned int)(val8);
  result = (int)ncdirect_ascii_box(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_box(*args) ⇒ Object

call-seq:

ncdirect_box(n, ul, ur, ll, lr, wchars, ylen, xlen, ctlword) -> int

A module function.



70564
70565
70566
70567
70568
70569
70570
70571
70572
70573
70574
70575
70576
70577
70578
70579
70580
70581
70582
70583
70584
70585
70586
70587
70588
70589
70590
70591
70592
70593
70594
70595
70596
70597
70598
70599
70600
70601
70602
70603
70604
70605
70606
70607
70608
70609
70610
70611
70612
70613
70614
70615
70616
70617
70618
70619
70620
70621
70622
70623
70624
70625
70626
70627
70628
70629
70630
70631
70632
70633
70634
70635
70636
70637
70638
70639
70640
70641
70642
70643
70644
70645
70646
70647
70648
70649
70650
70651
70652
70653
70654
70655
70656
70657
70658
70659
70660
70661
70662
70663
70664
70665
70666
70667
70668
70669
70670
70671
70672
70673
70674
70675
70676
70677
70678
70679
70680
70681
70682
70683
70684
70685
70686
70687
70688
70689
70690
70691
70692
70693
70694
70695
70696
70697
70698
70699
70700
70701
70702
# File 'ext/notcurses/src/notcurses_wrap.c', line 70564

SWIGINTERN VALUE
_wrap_ncdirect_box(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  uint64_t arg2 ;
  uint64_t arg3 ;
  uint64_t arg4 ;
  uint64_t arg5 ;
  wchar_t *arg6 = (wchar_t *) 0 ;
  unsigned int arg7 ;
  unsigned int arg8 ;
  unsigned int arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  unsigned long val5 ;
  int ecode5 = 0 ;
  int res6 ;
  wchar_t *buf6 = 0 ;
  int alloc6 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  unsigned int val8 ;
  int ecode8 = 0 ;
  unsigned int val9 ;
  int ecode9 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 9) || (argc > 9)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_box", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncdirect_box", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncdirect_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint64_t","ncdirect_box", 4, argv[3] ));
  } 
  arg4 = (uint64_t)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_long(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint64_t","ncdirect_box", 5, argv[4] ));
  } 
  arg5 = (uint64_t)(val5);
  res6 = SWIG_AsWCharPtrAndSize(argv[5], &buf6, NULL, &alloc6);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "wchar_t const *","ncdirect_box", 6, argv[5] ));
  }
  arg6 = (wchar_t *)(buf6);
  ecode7 = SWIG_AsVal_unsigned_SS_int(argv[6], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "unsigned int","ncdirect_box", 7, argv[6] ));
  } 
  arg7 = (unsigned int)(val7);
  ecode8 = SWIG_AsVal_unsigned_SS_int(argv[7], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "unsigned int","ncdirect_box", 8, argv[7] ));
  } 
  arg8 = (unsigned int)(val8);
  ecode9 = SWIG_AsVal_unsigned_SS_int(argv[8], &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "unsigned int","ncdirect_box", 9, argv[8] ));
  } 
  arg9 = (unsigned int)(val9);
  result = (int)ncdirect_box(arg1,arg2,arg3,arg4,arg5,(wchar_t const *)arg6,arg7,arg8,arg9);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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;
    if (arg6 == NULL) {
      obj = Qnil;
    } else {
      // Convert wchar_t* to UTF-8 encoded Ruby string
      setlocale(LC_ALL, "");
      size_t utf8_len = wcstombs(NULL, arg6, 0);  // Get required buffer size
      if (utf8_len != (size_t)-1) {
        char *utf8_str = (char*)malloc(utf8_len + 1);
        if (utf8_str) {
          wcstombs(utf8_str, arg6, utf8_len + 1);
          obj = rb_str_new2(utf8_str);
          rb_enc_associate(obj, rb_utf8_encoding());
          free(utf8_str);
        } else {
          obj = Qnil; // Handle allocation failure
        }
      } else {
        obj = Qnil; // Handle conversion failure
      }
    }
    
    rb_hash_aset(vresult, ID2SYM(rb_intern("wchars")), obj);
  }
  if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
  return vresult;
fail:
  if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
  return Qnil;
}

.ncdirect_canbraille(*args) ⇒ Object

call-seq:

ncdirect_canbraille(nc) -> bool

A module function.



72938
72939
72940
72941
72942
72943
72944
72945
72946
72947
72948
72949
72950
72951
72952
72953
72954
72955
72956
72957
72958
72959
72960
72961
72962
72963
72964
72965
72966
72967
72968
72969
72970
72971
72972
72973
72974
72975
# File 'ext/notcurses/src/notcurses_wrap.c', line 72938

SWIGINTERN VALUE
_wrap_ncdirect_canbraille(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_canbraille", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (bool)ncdirect_canbraille((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_canchangecolor(*args) ⇒ Object

call-seq:

ncdirect_canchangecolor(n) -> bool

A module function.



72497
72498
72499
72500
72501
72502
72503
72504
72505
72506
72507
72508
72509
72510
72511
72512
72513
72514
72515
72516
72517
72518
72519
72520
72521
72522
72523
72524
72525
72526
72527
72528
72529
72530
72531
72532
72533
72534
# File 'ext/notcurses/src/notcurses_wrap.c', line 72497

SWIGINTERN VALUE
_wrap_ncdirect_canchangecolor(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_canchangecolor", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (bool)ncdirect_canchangecolor((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_canfade(*args) ⇒ Object

call-seq:

ncdirect_canfade(n) -> bool

A module function.



72546
72547
72548
72549
72550
72551
72552
72553
72554
72555
72556
72557
72558
72559
72560
72561
72562
72563
72564
72565
72566
72567
72568
72569
72570
72571
72572
72573
72574
72575
72576
72577
72578
72579
72580
72581
72582
72583
# File 'ext/notcurses/src/notcurses_wrap.c', line 72546

SWIGINTERN VALUE
_wrap_ncdirect_canfade(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_canfade", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (bool)ncdirect_canfade((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_canget_cursor(*args) ⇒ Object

call-seq:

ncdirect_canget_cursor(nc) -> bool

A module function.



72987
72988
72989
72990
72991
72992
72993
72994
72995
72996
72997
72998
72999
73000
73001
73002
73003
73004
73005
73006
73007
73008
73009
73010
73011
73012
73013
73014
73015
73016
73017
73018
73019
73020
73021
73022
73023
73024
# File 'ext/notcurses/src/notcurses_wrap.c', line 72987

SWIGINTERN VALUE
_wrap_ncdirect_canget_cursor(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_canget_cursor", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (bool)ncdirect_canget_cursor((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_canhalfblock(*args) ⇒ Object

call-seq:

ncdirect_canhalfblock(nc) -> bool

A module function.



72791
72792
72793
72794
72795
72796
72797
72798
72799
72800
72801
72802
72803
72804
72805
72806
72807
72808
72809
72810
72811
72812
72813
72814
72815
72816
72817
72818
72819
72820
72821
72822
72823
72824
72825
72826
72827
72828
# File 'ext/notcurses/src/notcurses_wrap.c', line 72791

SWIGINTERN VALUE
_wrap_ncdirect_canhalfblock(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_canhalfblock", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (bool)ncdirect_canhalfblock((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_canopen_images(*args) ⇒ Object

call-seq:

ncdirect_canopen_images(n) -> bool

A module function.



72595
72596
72597
72598
72599
72600
72601
72602
72603
72604
72605
72606
72607
72608
72609
72610
72611
72612
72613
72614
72615
72616
72617
72618
72619
72620
72621
72622
72623
72624
72625
72626
72627
72628
72629
72630
72631
72632
# File 'ext/notcurses/src/notcurses_wrap.c', line 72595

SWIGINTERN VALUE
_wrap_ncdirect_canopen_images(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_canopen_images", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (bool)ncdirect_canopen_images((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_canopen_videos(*args) ⇒ Object

call-seq:

ncdirect_canopen_videos(n) -> bool

A module function.



72644
72645
72646
72647
72648
72649
72650
72651
72652
72653
72654
72655
72656
72657
72658
72659
72660
72661
72662
72663
72664
72665
72666
72667
72668
72669
72670
72671
72672
72673
72674
72675
72676
72677
72678
72679
72680
72681
# File 'ext/notcurses/src/notcurses_wrap.c', line 72644

SWIGINTERN VALUE
_wrap_ncdirect_canopen_videos(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_canopen_videos", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (bool)ncdirect_canopen_videos((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_canquadrant(*args) ⇒ Object

call-seq:

ncdirect_canquadrant(nc) -> bool

A module function.



72840
72841
72842
72843
72844
72845
72846
72847
72848
72849
72850
72851
72852
72853
72854
72855
72856
72857
72858
72859
72860
72861
72862
72863
72864
72865
72866
72867
72868
72869
72870
72871
72872
72873
72874
72875
72876
72877
# File 'ext/notcurses/src/notcurses_wrap.c', line 72840

SWIGINTERN VALUE
_wrap_ncdirect_canquadrant(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_canquadrant", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (bool)ncdirect_canquadrant((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_cansextant(*args) ⇒ Object

call-seq:

ncdirect_cansextant(nc) -> bool

A module function.



72889
72890
72891
72892
72893
72894
72895
72896
72897
72898
72899
72900
72901
72902
72903
72904
72905
72906
72907
72908
72909
72910
72911
72912
72913
72914
72915
72916
72917
72918
72919
72920
72921
72922
72923
72924
72925
72926
# File 'ext/notcurses/src/notcurses_wrap.c', line 72889

SWIGINTERN VALUE
_wrap_ncdirect_cansextant(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_cansextant", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (bool)ncdirect_cansextant((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_cantruecolor(*args) ⇒ Object

call-seq:

ncdirect_cantruecolor(n) -> bool

A module function.



72448
72449
72450
72451
72452
72453
72454
72455
72456
72457
72458
72459
72460
72461
72462
72463
72464
72465
72466
72467
72468
72469
72470
72471
72472
72473
72474
72475
72476
72477
72478
72479
72480
72481
72482
72483
72484
72485
# File 'ext/notcurses/src/notcurses_wrap.c', line 72448

SWIGINTERN VALUE
_wrap_ncdirect_cantruecolor(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_cantruecolor", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (bool)ncdirect_cantruecolor((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_canutf8(*args) ⇒ Object

call-seq:

ncdirect_canutf8(n) -> bool

A module function.



72693
72694
72695
72696
72697
72698
72699
72700
72701
72702
72703
72704
72705
72706
72707
72708
72709
72710
72711
72712
72713
72714
72715
72716
72717
72718
72719
72720
72721
72722
72723
72724
72725
72726
72727
72728
72729
72730
# File 'ext/notcurses/src/notcurses_wrap.c', line 72693

SWIGINTERN VALUE
_wrap_ncdirect_canutf8(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_canutf8", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (bool)ncdirect_canutf8((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_capabilities(*args) ⇒ Object

call-seq:

ncdirect_capabilities(n) -> Nccapabilities

A module function.



70309
70310
70311
70312
70313
70314
70315
70316
70317
70318
70319
70320
70321
70322
70323
70324
70325
70326
70327
70328
70329
70330
70331
70332
70333
70334
70335
70336
70337
70338
70339
70340
70341
70342
70343
70344
70345
70346
70347
70348
70349
70350
70351
70352
70353
70354
70355
70356
70357
70358
# File 'ext/notcurses/src/notcurses_wrap.c', line 70309

SWIGINTERN VALUE
_wrap_ncdirect_capabilities(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  nccapabilities *result = 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(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_capabilities", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (nccapabilities *)ncdirect_capabilities((struct ncdirect const *)arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("nccapabilities const *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nccapabilities, 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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_check_pixel_support(*args) ⇒ Object

call-seq:

ncdirect_check_pixel_support(n) -> int

A module function.



72742
72743
72744
72745
72746
72747
72748
72749
72750
72751
72752
72753
72754
72755
72756
72757
72758
72759
72760
72761
72762
72763
72764
72765
72766
72767
72768
72769
72770
72771
72772
72773
72774
72775
72776
72777
72778
72779
# File 'ext/notcurses/src/notcurses_wrap.c', line 72742

SWIGINTERN VALUE
_wrap_ncdirect_check_pixel_support(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_check_pixel_support", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (int)ncdirect_check_pixel_support((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_clear(*args) ⇒ Object

call-seq:

ncdirect_clear(nc) -> int

A module function.



70260
70261
70262
70263
70264
70265
70266
70267
70268
70269
70270
70271
70272
70273
70274
70275
70276
70277
70278
70279
70280
70281
70282
70283
70284
70285
70286
70287
70288
70289
70290
70291
70292
70293
70294
70295
70296
70297
# File 'ext/notcurses/src/notcurses_wrap.c', line 70260

SWIGINTERN VALUE
_wrap_ncdirect_clear(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_clear", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (int)ncdirect_clear(arg1);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_core_init(*args) ⇒ Object

call-seq:

ncdirect_core_init(termtype, fp, flags) -> struct ncdirect *

A module function.



68188
68189
68190
68191
68192
68193
68194
68195
68196
68197
68198
68199
68200
68201
68202
68203
68204
68205
68206
68207
68208
68209
68210
68211
68212
68213
68214
68215
68216
68217
68218
68219
68220
68221
68222
68223
68224
68225
68226
68227
68228
68229
68230
68231
68232
68233
68234
68235
68236
68237
68238
68239
68240
68241
68242
68243
68244
68245
68246
68247
68248
68249
68250
68251
68252
68253
68254
68255
68256
68257
68258
68259
68260
68261
68262
68263
68264
68265
68266
68267
68268
68269
68270
68271
68272
68273
68274
68275
68276
# File 'ext/notcurses/src/notcurses_wrap.c', line 68188

SWIGINTERN VALUE
_wrap_ncdirect_core_init(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  FILE *arg2 = (FILE *) 0 ;
  uint64_t arg3 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  struct ncdirect *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","ncdirect_core_init", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  {
    if (argv[1] == Qnil) {
      arg2 = NULL;
    } else if (rb_respond_to(argv[1], rb_intern("fileno"))) {
      int fd = NUM2INT(rb_funcall(argv[1], rb_intern("fileno"), 0));
      const char* mode = get_file_mode(fd);
      arg2 = fdopen(dup(fd), mode);
      if (!arg2) {
        rb_raise(rb_eIOError, "Unable to get FILE* from Ruby IO object");
      }
    } else {
      SWIG_exception(SWIG_TypeError, "Expected IO object or nil");
    }
  }
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncdirect_core_init", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  result = (struct ncdirect *)ncdirect_core_init((char const *)arg1,arg2,arg3);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncdirect *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncdirect, 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;
    }
    
    VALUE obj = arg1 ? rb_str_new2(arg1) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("termtype")), 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("FILE *");
    if (!ty) ty = SWIGTYPE_p_FILE;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("fp")), obj);
  }
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.ncdirect_cursor_disable(*args) ⇒ Object

call-seq:

ncdirect_cursor_disable(nc) -> int

A module function.



69730
69731
69732
69733
69734
69735
69736
69737
69738
69739
69740
69741
69742
69743
69744
69745
69746
69747
69748
69749
69750
69751
69752
69753
69754
69755
69756
69757
69758
69759
69760
69761
69762
69763
69764
69765
69766
69767
# File 'ext/notcurses/src/notcurses_wrap.c', line 69730

SWIGINTERN VALUE
_wrap_ncdirect_cursor_disable(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_cursor_disable", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (int)ncdirect_cursor_disable(arg1);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_cursor_down(*args) ⇒ Object

call-seq:

ncdirect_cursor_down(nc, num) -> int

A module function.



69950
69951
69952
69953
69954
69955
69956
69957
69958
69959
69960
69961
69962
69963
69964
69965
69966
69967
69968
69969
69970
69971
69972
69973
69974
69975
69976
69977
69978
69979
69980
69981
69982
69983
69984
69985
69986
69987
69988
69989
69990
69991
69992
69993
69994
69995
# File 'ext/notcurses/src/notcurses_wrap.c', line 69950

SWIGINTERN VALUE
_wrap_ncdirect_cursor_down(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_cursor_down", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncdirect_cursor_down", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (int)ncdirect_cursor_down(arg1,arg2);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_cursor_enable(*args) ⇒ Object

call-seq:

ncdirect_cursor_enable(nc) -> int

A module function.



69681
69682
69683
69684
69685
69686
69687
69688
69689
69690
69691
69692
69693
69694
69695
69696
69697
69698
69699
69700
69701
69702
69703
69704
69705
69706
69707
69708
69709
69710
69711
69712
69713
69714
69715
69716
69717
69718
# File 'ext/notcurses/src/notcurses_wrap.c', line 69681

SWIGINTERN VALUE
_wrap_ncdirect_cursor_enable(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_cursor_enable", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (int)ncdirect_cursor_enable(arg1);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_cursor_left(*args) ⇒ Object

call-seq:

ncdirect_cursor_left(nc, num) -> int

A module function.



69836
69837
69838
69839
69840
69841
69842
69843
69844
69845
69846
69847
69848
69849
69850
69851
69852
69853
69854
69855
69856
69857
69858
69859
69860
69861
69862
69863
69864
69865
69866
69867
69868
69869
69870
69871
69872
69873
69874
69875
69876
69877
69878
69879
69880
69881
# File 'ext/notcurses/src/notcurses_wrap.c', line 69836

SWIGINTERN VALUE
_wrap_ncdirect_cursor_left(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_cursor_left", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncdirect_cursor_left", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (int)ncdirect_cursor_left(arg1,arg2);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_cursor_move_yx(*args) ⇒ Object

call-seq:

ncdirect_cursor_move_yx(n, y, x) -> int

A module function.



69616
69617
69618
69619
69620
69621
69622
69623
69624
69625
69626
69627
69628
69629
69630
69631
69632
69633
69634
69635
69636
69637
69638
69639
69640
69641
69642
69643
69644
69645
69646
69647
69648
69649
69650
69651
69652
69653
69654
69655
69656
69657
69658
69659
69660
69661
69662
69663
69664
69665
69666
69667
69668
69669
# File 'ext/notcurses/src/notcurses_wrap.c', line 69616

SWIGINTERN VALUE
_wrap_ncdirect_cursor_move_yx(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  int arg2 ;
  int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_cursor_move_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncdirect_cursor_move_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncdirect_cursor_move_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  result = (int)ncdirect_cursor_move_yx(arg1,arg2,arg3);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_cursor_pop(*args) ⇒ Object

call-seq:

ncdirect_cursor_pop(n) -> int

A module function.



70211
70212
70213
70214
70215
70216
70217
70218
70219
70220
70221
70222
70223
70224
70225
70226
70227
70228
70229
70230
70231
70232
70233
70234
70235
70236
70237
70238
70239
70240
70241
70242
70243
70244
70245
70246
70247
70248
# File 'ext/notcurses/src/notcurses_wrap.c', line 70211

SWIGINTERN VALUE
_wrap_ncdirect_cursor_pop(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_cursor_pop", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (int)ncdirect_cursor_pop(arg1);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_cursor_push(*args) ⇒ Object

call-seq:

ncdirect_cursor_push(n) -> int

A module function.



70162
70163
70164
70165
70166
70167
70168
70169
70170
70171
70172
70173
70174
70175
70176
70177
70178
70179
70180
70181
70182
70183
70184
70185
70186
70187
70188
70189
70190
70191
70192
70193
70194
70195
70196
70197
70198
70199
# File 'ext/notcurses/src/notcurses_wrap.c', line 70162

SWIGINTERN VALUE
_wrap_ncdirect_cursor_push(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_cursor_push", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (int)ncdirect_cursor_push(arg1);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_cursor_right(*args) ⇒ Object

call-seq:

ncdirect_cursor_right(nc, num) -> int

A module function.



69893
69894
69895
69896
69897
69898
69899
69900
69901
69902
69903
69904
69905
69906
69907
69908
69909
69910
69911
69912
69913
69914
69915
69916
69917
69918
69919
69920
69921
69922
69923
69924
69925
69926
69927
69928
69929
69930
69931
69932
69933
69934
69935
69936
69937
69938
# File 'ext/notcurses/src/notcurses_wrap.c', line 69893

SWIGINTERN VALUE
_wrap_ncdirect_cursor_right(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_cursor_right", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncdirect_cursor_right", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (int)ncdirect_cursor_right(arg1,arg2);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_cursor_up(*args) ⇒ Object

call-seq:

ncdirect_cursor_up(nc, num) -> int

A module function.



69779
69780
69781
69782
69783
69784
69785
69786
69787
69788
69789
69790
69791
69792
69793
69794
69795
69796
69797
69798
69799
69800
69801
69802
69803
69804
69805
69806
69807
69808
69809
69810
69811
69812
69813
69814
69815
69816
69817
69818
69819
69820
69821
69822
69823
69824
# File 'ext/notcurses/src/notcurses_wrap.c', line 69779

SWIGINTERN VALUE
_wrap_ncdirect_cursor_up(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_cursor_up", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncdirect_cursor_up", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (int)ncdirect_cursor_up(arg1,arg2);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_cursor_yx(*args) ⇒ Object

call-seq:

ncdirect_cursor_yx(n, y, x) -> int

A module function.



70007
70008
70009
70010
70011
70012
70013
70014
70015
70016
70017
70018
70019
70020
70021
70022
70023
70024
70025
70026
70027
70028
70029
70030
70031
70032
70033
70034
70035
70036
70037
70038
70039
70040
70041
70042
70043
70044
70045
70046
70047
70048
70049
70050
70051
70052
70053
70054
70055
70056
70057
70058
70059
70060
70061
70062
70063
70064
70065
70066
70067
70068
70069
70070
70071
70072
70073
70074
70075
70076
70077
70078
70079
70080
70081
70082
70083
70084
70085
70086
70087
70088
70089
70090
70091
70092
70093
70094
70095
70096
70097
70098
70099
70100
70101
70102
70103
70104
70105
70106
70107
70108
70109
70110
70111
70112
70113
70114
70115
70116
70117
70118
70119
70120
70121
70122
70123
70124
70125
70126
70127
70128
70129
70130
70131
70132
70133
70134
70135
70136
70137
70138
70139
70140
70141
70142
70143
70144
70145
70146
70147
70148
70149
70150
# File 'ext/notcurses/src/notcurses_wrap.c', line 70007

SWIGINTERN VALUE
_wrap_ncdirect_cursor_yx(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_cursor_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (int)ncdirect_cursor_yx(arg1,arg2,arg3);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("y")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("x")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_detected_terminal(*args) ⇒ Object

call-seq:

ncdirect_detected_terminal(n) -> char *

A module function.



72386
72387
72388
72389
72390
72391
72392
72393
72394
72395
72396
72397
72398
72399
72400
72401
72402
72403
72404
72405
72406
72407
72408
72409
72410
72411
72412
72413
72414
72415
72416
72417
72418
72419
72420
72421
72422
72423
72424
72425
72426
72427
72428
72429
72430
72431
72432
72433
72434
72435
72436
# File 'ext/notcurses/src/notcurses_wrap.c', line 72386

SWIGINTERN VALUE
_wrap_ncdirect_detected_terminal(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 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(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_detected_terminal", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (char *)ncdirect_detected_terminal((struct ncdirect const *)arg1);
  {
    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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_dim_x(*args) ⇒ Object

call-seq:

ncdirect_dim_x(nc) -> unsigned int

A module function.



69249
69250
69251
69252
69253
69254
69255
69256
69257
69258
69259
69260
69261
69262
69263
69264
69265
69266
69267
69268
69269
69270
69271
69272
69273
69274
69275
69276
69277
69278
69279
69280
69281
69282
69283
69284
69285
69286
# File 'ext/notcurses/src/notcurses_wrap.c', line 69249

SWIGINTERN VALUE
_wrap_ncdirect_dim_x(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_dim_x", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (unsigned int)ncdirect_dim_x(arg1);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_dim_y(*args) ⇒ Object

call-seq:

ncdirect_dim_y(nc) -> unsigned int

A module function.



69298
69299
69300
69301
69302
69303
69304
69305
69306
69307
69308
69309
69310
69311
69312
69313
69314
69315
69316
69317
69318
69319
69320
69321
69322
69323
69324
69325
69326
69327
69328
69329
69330
69331
69332
69333
69334
69335
# File 'ext/notcurses/src/notcurses_wrap.c', line 69298

SWIGINTERN VALUE
_wrap_ncdirect_dim_y(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_dim_y", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (unsigned int)ncdirect_dim_y(arg1);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_double_box(*args) ⇒ Object

call-seq:

ncdirect_double_box(n, ul, ur, ll, lr, ylen, xlen, ctlword) -> int

A module function.



71134
71135
71136
71137
71138
71139
71140
71141
71142
71143
71144
71145
71146
71147
71148
71149
71150
71151
71152
71153
71154
71155
71156
71157
71158
71159
71160
71161
71162
71163
71164
71165
71166
71167
71168
71169
71170
71171
71172
71173
71174
71175
71176
71177
71178
71179
71180
71181
71182
71183
71184
71185
71186
71187
71188
71189
71190
71191
71192
71193
71194
71195
71196
71197
71198
71199
71200
71201
71202
71203
71204
71205
71206
71207
71208
71209
71210
71211
71212
71213
71214
71215
71216
71217
71218
71219
71220
71221
71222
71223
71224
71225
71226
71227
# File 'ext/notcurses/src/notcurses_wrap.c', line 71134

SWIGINTERN VALUE
_wrap_ncdirect_double_box(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  uint64_t arg2 ;
  uint64_t arg3 ;
  uint64_t arg4 ;
  uint64_t arg5 ;
  unsigned int arg6 ;
  unsigned int arg7 ;
  unsigned int arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  unsigned long val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  unsigned int val8 ;
  int ecode8 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 8) || (argc > 8)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_double_box", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncdirect_double_box", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncdirect_double_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint64_t","ncdirect_double_box", 4, argv[3] ));
  } 
  arg4 = (uint64_t)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_long(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint64_t","ncdirect_double_box", 5, argv[4] ));
  } 
  arg5 = (uint64_t)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "unsigned int","ncdirect_double_box", 6, argv[5] ));
  } 
  arg6 = (unsigned int)(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_int(argv[6], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "unsigned int","ncdirect_double_box", 7, argv[6] ));
  } 
  arg7 = (unsigned int)(val7);
  ecode8 = SWIG_AsVal_unsigned_SS_int(argv[7], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "unsigned int","ncdirect_double_box", 8, argv[7] ));
  } 
  arg8 = (unsigned int)(val8);
  result = (int)ncdirect_double_box(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_flush(*args) ⇒ Object

call-seq:

ncdirect_flush(nc) -> int

A module function.



68956
68957
68958
68959
68960
68961
68962
68963
68964
68965
68966
68967
68968
68969
68970
68971
68972
68973
68974
68975
68976
68977
68978
68979
68980
68981
68982
68983
68984
68985
68986
68987
68988
68989
68990
68991
68992
68993
# File 'ext/notcurses/src/notcurses_wrap.c', line 68956

SWIGINTERN VALUE
_wrap_ncdirect_flush(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_flush", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (int)ncdirect_flush((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_get(*args) ⇒ Object

call-seq:

ncdirect_get(n, absdl, ni) -> uint32_t

A module function.



71239
71240
71241
71242
71243
71244
71245
71246
71247
71248
71249
71250
71251
71252
71253
71254
71255
71256
71257
71258
71259
71260
71261
71262
71263
71264
71265
71266
71267
71268
71269
71270
71271
71272
71273
71274
71275
71276
71277
71278
71279
71280
71281
71282
71283
71284
71285
71286
71287
71288
71289
71290
71291
71292
71293
71294
71295
71296
71297
71298
71299
71300
71301
71302
71303
71304
71305
71306
71307
71308
71309
71310
71311
71312
71313
71314
71315
71316
71317
71318
71319
71320
71321
71322
71323
71324
71325
71326
71327
71328
71329
71330
# File 'ext/notcurses/src/notcurses_wrap.c', line 71239

SWIGINTERN VALUE
_wrap_ncdirect_get(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  struct timespec *arg2 = (struct timespec *) 0 ;
  ncinput *arg3 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_get", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  {
    if (argv[1] == Qnil) {
      arg2 = NULL;
    } else if (rb_obj_is_kind_of(argv[1], rb_cTime)) {
      static struct timespec ts;
      VALUE seconds = rb_funcall(argv[1], rb_intern("to_f"), 0);
      ts.tv_sec = NUM2LONG(rb_funcall(seconds, rb_intern("floor"), 0));
      ts.tv_nsec = NUM2LONG(rb_funcall(rb_funcall(rb_funcall(seconds, rb_intern("-"), 1, seconds), rb_intern("*"), 1, INT2NUM(1000000000)), rb_intern("floor"), 0));
      arg2 = &ts;
    } else {
      SWIG_exception(SWIG_TypeError, "Expected Time or nil");
    }
  }
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "ncinput *","ncdirect_get", 3, argv[2] )); 
  }
  arg3 = (ncinput *)(argp3);
  result = (uint32_t)ncdirect_get(arg1,(struct timespec const *)arg2,arg3);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 timespec const *");
    if (!ty) ty = SWIGTYPE_p_timespec;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("absdl")), 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("ncinput *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ni")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_get_blocking(*args) ⇒ Object

call-seq:

ncdirect_get_blocking(n, ni) -> uint32_t

A module function.



71464
71465
71466
71467
71468
71469
71470
71471
71472
71473
71474
71475
71476
71477
71478
71479
71480
71481
71482
71483
71484
71485
71486
71487
71488
71489
71490
71491
71492
71493
71494
71495
71496
71497
71498
71499
71500
71501
71502
71503
71504
71505
71506
71507
71508
71509
71510
71511
71512
71513
71514
71515
71516
71517
71518
71519
71520
71521
71522
71523
71524
71525
# File 'ext/notcurses/src/notcurses_wrap.c', line 71464

SWIGINTERN VALUE
_wrap_ncdirect_get_blocking(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  ncinput *arg2 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_get_blocking", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncinput *","ncdirect_get_blocking", 2, argv[1] )); 
  }
  arg2 = (ncinput *)(argp2);
  result = (uint32_t)ncdirect_get_blocking(arg1,arg2);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncinput *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ni")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_get_nblock(*args) ⇒ Object

call-seq:

ncdirect_get_nblock(n, ni) -> uint32_t

A module function.



71391
71392
71393
71394
71395
71396
71397
71398
71399
71400
71401
71402
71403
71404
71405
71406
71407
71408
71409
71410
71411
71412
71413
71414
71415
71416
71417
71418
71419
71420
71421
71422
71423
71424
71425
71426
71427
71428
71429
71430
71431
71432
71433
71434
71435
71436
71437
71438
71439
71440
71441
71442
71443
71444
71445
71446
71447
71448
71449
71450
71451
71452
# File 'ext/notcurses/src/notcurses_wrap.c', line 71391

SWIGINTERN VALUE
_wrap_ncdirect_get_nblock(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  ncinput *arg2 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_get_nblock", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncinput *","ncdirect_get_nblock", 2, argv[1] )); 
  }
  arg2 = (ncinput *)(argp2);
  result = (uint32_t)ncdirect_get_nblock(arg1,arg2);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncinput *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ni")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_heavy_box(*args) ⇒ Object

call-seq:

ncdirect_heavy_box(n, ul, ur, ll, lr, ylen, xlen, ctlword) -> int

A module function.



70819
70820
70821
70822
70823
70824
70825
70826
70827
70828
70829
70830
70831
70832
70833
70834
70835
70836
70837
70838
70839
70840
70841
70842
70843
70844
70845
70846
70847
70848
70849
70850
70851
70852
70853
70854
70855
70856
70857
70858
70859
70860
70861
70862
70863
70864
70865
70866
70867
70868
70869
70870
70871
70872
70873
70874
70875
70876
70877
70878
70879
70880
70881
70882
70883
70884
70885
70886
70887
70888
70889
70890
70891
70892
70893
70894
70895
70896
70897
70898
70899
70900
70901
70902
70903
70904
70905
70906
70907
70908
70909
70910
70911
70912
# File 'ext/notcurses/src/notcurses_wrap.c', line 70819

SWIGINTERN VALUE
_wrap_ncdirect_heavy_box(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  uint64_t arg2 ;
  uint64_t arg3 ;
  uint64_t arg4 ;
  uint64_t arg5 ;
  unsigned int arg6 ;
  unsigned int arg7 ;
  unsigned int arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  unsigned long val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  unsigned int val8 ;
  int ecode8 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 8) || (argc > 8)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_heavy_box", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncdirect_heavy_box", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncdirect_heavy_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint64_t","ncdirect_heavy_box", 4, argv[3] ));
  } 
  arg4 = (uint64_t)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_long(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint64_t","ncdirect_heavy_box", 5, argv[4] ));
  } 
  arg5 = (uint64_t)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "unsigned int","ncdirect_heavy_box", 6, argv[5] ));
  } 
  arg6 = (unsigned int)(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_int(argv[6], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "unsigned int","ncdirect_heavy_box", 7, argv[6] ));
  } 
  arg7 = (unsigned int)(val7);
  ecode8 = SWIG_AsVal_unsigned_SS_int(argv[7], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "unsigned int","ncdirect_heavy_box", 8, argv[7] ));
  } 
  arg8 = (unsigned int)(val8);
  result = (int)ncdirect_heavy_box(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_hline_interp(*args) ⇒ Object

call-seq:

ncdirect_hline_interp(n, egc, len, h1, h2) -> int

A module function.



70370
70371
70372
70373
70374
70375
70376
70377
70378
70379
70380
70381
70382
70383
70384
70385
70386
70387
70388
70389
70390
70391
70392
70393
70394
70395
70396
70397
70398
70399
70400
70401
70402
70403
70404
70405
70406
70407
70408
70409
70410
70411
70412
70413
70414
70415
70416
70417
70418
70419
70420
70421
70422
70423
70424
70425
70426
70427
70428
70429
70430
70431
70432
70433
70434
70435
70436
70437
70438
70439
70440
70441
70442
70443
70444
70445
70446
70447
70448
70449
70450
70451
70452
70453
70454
70455
# File 'ext/notcurses/src/notcurses_wrap.c', line 70370

SWIGINTERN VALUE
_wrap_ncdirect_hline_interp(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  char *arg2 = (char *) 0 ;
  unsigned int arg3 ;
  uint64_t arg4 ;
  uint64_t arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  unsigned long val5 ;
  int ecode5 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_hline_interp", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncdirect_hline_interp", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncdirect_hline_interp", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint64_t","ncdirect_hline_interp", 4, argv[3] ));
  } 
  arg4 = (uint64_t)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_long(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint64_t","ncdirect_hline_interp", 5, argv[4] ));
  } 
  arg5 = (uint64_t)(val5);
  result = (int)ncdirect_hline_interp(arg1,(char const *)arg2,arg3,arg4,arg5);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("egc")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncdirect_init(*args) ⇒ Object

call-seq:

ncdirect_init(termtype, fp, flags) -> struct ncdirect *

A module function.



68088
68089
68090
68091
68092
68093
68094
68095
68096
68097
68098
68099
68100
68101
68102
68103
68104
68105
68106
68107
68108
68109
68110
68111
68112
68113
68114
68115
68116
68117
68118
68119
68120
68121
68122
68123
68124
68125
68126
68127
68128
68129
68130
68131
68132
68133
68134
68135
68136
68137
68138
68139
68140
68141
68142
68143
68144
68145
68146
68147
68148
68149
68150
68151
68152
68153
68154
68155
68156
68157
68158
68159
68160
68161
68162
68163
68164
68165
68166
68167
68168
68169
68170
68171
68172
68173
68174
68175
68176
# File 'ext/notcurses/src/notcurses_wrap.c', line 68088

SWIGINTERN VALUE
_wrap_ncdirect_init(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  FILE *arg2 = (FILE *) 0 ;
  uint64_t arg3 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  struct ncdirect *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","ncdirect_init", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  {
    if (argv[1] == Qnil) {
      arg2 = NULL;
    } else if (rb_respond_to(argv[1], rb_intern("fileno"))) {
      int fd = NUM2INT(rb_funcall(argv[1], rb_intern("fileno"), 0));
      const char* mode = get_file_mode(fd);
      arg2 = fdopen(dup(fd), mode);
      if (!arg2) {
        rb_raise(rb_eIOError, "Unable to get FILE* from Ruby IO object");
      }
    } else {
      SWIG_exception(SWIG_TypeError, "Expected IO object or nil");
    }
  }
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncdirect_init", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  result = (struct ncdirect *)ncdirect_init((char const *)arg1,arg2,arg3);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncdirect *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncdirect, 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;
    }
    
    VALUE obj = arg1 ? rb_str_new2(arg1) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("termtype")), 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("FILE *");
    if (!ty) ty = SWIGTYPE_p_FILE;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("fp")), obj);
  }
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.ncdirect_inputready_fd(*args) ⇒ Object

call-seq:

ncdirect_inputready_fd(n) -> int

A module function.



71342
71343
71344
71345
71346
71347
71348
71349
71350
71351
71352
71353
71354
71355
71356
71357
71358
71359
71360
71361
71362
71363
71364
71365
71366
71367
71368
71369
71370
71371
71372
71373
71374
71375
71376
71377
71378
71379
# File 'ext/notcurses/src/notcurses_wrap.c', line 71342

SWIGINTERN VALUE
_wrap_ncdirect_inputready_fd(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_inputready_fd", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (int)ncdirect_inputready_fd(arg1);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_light_box(*args) ⇒ Object

call-seq:

ncdirect_light_box(n, ul, ur, ll, lr, ylen, xlen, ctlword) -> int

A module function.



70714
70715
70716
70717
70718
70719
70720
70721
70722
70723
70724
70725
70726
70727
70728
70729
70730
70731
70732
70733
70734
70735
70736
70737
70738
70739
70740
70741
70742
70743
70744
70745
70746
70747
70748
70749
70750
70751
70752
70753
70754
70755
70756
70757
70758
70759
70760
70761
70762
70763
70764
70765
70766
70767
70768
70769
70770
70771
70772
70773
70774
70775
70776
70777
70778
70779
70780
70781
70782
70783
70784
70785
70786
70787
70788
70789
70790
70791
70792
70793
70794
70795
70796
70797
70798
70799
70800
70801
70802
70803
70804
70805
70806
70807
# File 'ext/notcurses/src/notcurses_wrap.c', line 70714

SWIGINTERN VALUE
_wrap_ncdirect_light_box(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  uint64_t arg2 ;
  uint64_t arg3 ;
  uint64_t arg4 ;
  uint64_t arg5 ;
  unsigned int arg6 ;
  unsigned int arg7 ;
  unsigned int arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  unsigned long val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  unsigned int val8 ;
  int ecode8 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 8) || (argc > 8)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_light_box", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncdirect_light_box", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncdirect_light_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint64_t","ncdirect_light_box", 4, argv[3] ));
  } 
  arg4 = (uint64_t)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_long(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint64_t","ncdirect_light_box", 5, argv[4] ));
  } 
  arg5 = (uint64_t)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "unsigned int","ncdirect_light_box", 6, argv[5] ));
  } 
  arg6 = (unsigned int)(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_int(argv[6], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "unsigned int","ncdirect_light_box", 7, argv[6] ));
  } 
  arg7 = (unsigned int)(val7);
  ecode8 = SWIG_AsVal_unsigned_SS_int(argv[7], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "unsigned int","ncdirect_light_box", 8, argv[7] ));
  } 
  arg8 = (unsigned int)(val8);
  result = (int)ncdirect_light_box(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_off_styles(*args) ⇒ Object

call-seq:

ncdirect_off_styles(n, stylebits) -> int

A module function.



69510
69511
69512
69513
69514
69515
69516
69517
69518
69519
69520
69521
69522
69523
69524
69525
69526
69527
69528
69529
69530
69531
69532
69533
69534
69535
69536
69537
69538
69539
69540
69541
69542
69543
69544
69545
69546
69547
69548
69549
69550
69551
69552
69553
69554
69555
# File 'ext/notcurses/src/notcurses_wrap.c', line 69510

SWIGINTERN VALUE
_wrap_ncdirect_off_styles(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_off_styles", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncdirect_off_styles", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncdirect_off_styles(arg1,arg2);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_on_styles(*args) ⇒ Object

call-seq:

ncdirect_on_styles(n, stylebits) -> int

A module function.



69453
69454
69455
69456
69457
69458
69459
69460
69461
69462
69463
69464
69465
69466
69467
69468
69469
69470
69471
69472
69473
69474
69475
69476
69477
69478
69479
69480
69481
69482
69483
69484
69485
69486
69487
69488
69489
69490
69491
69492
69493
69494
69495
69496
69497
69498
# File 'ext/notcurses/src/notcurses_wrap.c', line 69453

SWIGINTERN VALUE
_wrap_ncdirect_on_styles(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_on_styles", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncdirect_on_styles", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncdirect_on_styles(arg1,arg2);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_palette_size(*args) ⇒ Object

call-seq:

ncdirect_palette_size(nc) -> unsigned int

A module function.



68602
68603
68604
68605
68606
68607
68608
68609
68610
68611
68612
68613
68614
68615
68616
68617
68618
68619
68620
68621
68622
68623
68624
68625
68626
68627
68628
68629
68630
68631
68632
68633
68634
68635
68636
68637
68638
68639
# File 'ext/notcurses/src/notcurses_wrap.c', line 68602

SWIGINTERN VALUE
_wrap_ncdirect_palette_size(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_palette_size", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (unsigned int)ncdirect_palette_size((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_printf_aligned(*args) ⇒ Object

call-seq:

ncdirect_printf_aligned(n, y, align, fmt) -> int

A module function.



68866
68867
68868
68869
68870
68871
68872
68873
68874
68875
68876
68877
68878
68879
68880
68881
68882
68883
68884
68885
68886
68887
68888
68889
68890
68891
68892
68893
68894
68895
68896
68897
68898
68899
68900
68901
68902
68903
68904
68905
68906
68907
68908
68909
68910
68911
68912
68913
68914
68915
68916
68917
68918
68919
68920
68921
68922
68923
68924
68925
68926
68927
68928
68929
68930
68931
68932
68933
68934
68935
68936
68937
68938
68939
68940
68941
68942
68943
68944
# File 'ext/notcurses/src/notcurses_wrap.c', line 68866

SWIGINTERN VALUE
_wrap_ncdirect_printf_aligned(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  int arg2 ;
  ncalign_e arg3 ;
  char *arg4 = (char *) 0 ;
  void *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 ;
  char *buf4 = 0 ;
  int alloc4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if (argc < 4) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_printf_aligned", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncdirect_printf_aligned", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "ncalign_e","ncdirect_printf_aligned", 3, argv[2] ));
  } 
  arg3 = (ncalign_e)(val3);
  res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","ncdirect_printf_aligned", 4, argv[3] ));
  }
  arg4 = (char *)(buf4);
  result = (int)ncdirect_printf_aligned(arg1,arg2,arg3,(char const *)arg4,arg5);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 = arg4 ? rb_str_new2(arg4) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("fmt")), obj);
  }
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return vresult;
fail:
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return Qnil;
}

.ncdirect_putegc(*args) ⇒ Object

call-seq:

ncdirect_putegc(nc, channels, utf8, sbytes) -> int

A module function.



68732
68733
68734
68735
68736
68737
68738
68739
68740
68741
68742
68743
68744
68745
68746
68747
68748
68749
68750
68751
68752
68753
68754
68755
68756
68757
68758
68759
68760
68761
68762
68763
68764
68765
68766
68767
68768
68769
68770
68771
68772
68773
68774
68775
68776
68777
68778
68779
68780
68781
68782
68783
68784
68785
68786
68787
68788
68789
68790
68791
68792
68793
68794
68795
68796
68797
68798
68799
68800
68801
68802
68803
68804
68805
68806
68807
68808
68809
68810
68811
68812
68813
68814
68815
68816
68817
68818
68819
68820
68821
68822
68823
68824
68825
68826
68827
68828
68829
68830
68831
68832
68833
68834
68835
68836
68837
68838
68839
68840
68841
68842
68843
68844
68845
68846
68847
68848
68849
68850
68851
68852
68853
68854
# File 'ext/notcurses/src/notcurses_wrap.c', line 68732

SWIGINTERN VALUE
_wrap_ncdirect_putegc(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  uint64_t arg2 ;
  char *arg3 = (char *) 0 ;
  int *arg4 = (int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_putegc", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncdirect_putegc", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","ncdirect_putegc", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  {
    arg4 = (int *) malloc(sizeof(int));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (int) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg4 = (int) NUM2DBL(argv[3]);
      } else {
        *arg4 = (int) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (int)ncdirect_putegc(arg1,arg2,(char const *)arg3,arg4);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), 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 = arg3 ? rb_str_new2(arg3) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("utf8")), obj);
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("sbytes")), converted_value);
      free(arg4);
    }
  }
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.ncdirect_putstr(*args) ⇒ Object

call-seq:

ncdirect_putstr(nc, channels, utf8) -> int

A module function.



68651
68652
68653
68654
68655
68656
68657
68658
68659
68660
68661
68662
68663
68664
68665
68666
68667
68668
68669
68670
68671
68672
68673
68674
68675
68676
68677
68678
68679
68680
68681
68682
68683
68684
68685
68686
68687
68688
68689
68690
68691
68692
68693
68694
68695
68696
68697
68698
68699
68700
68701
68702
68703
68704
68705
68706
68707
68708
68709
68710
68711
68712
68713
68714
68715
68716
68717
68718
68719
68720
# File 'ext/notcurses/src/notcurses_wrap.c', line 68651

SWIGINTERN VALUE
_wrap_ncdirect_putstr(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  uint64_t arg2 ;
  char *arg3 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_putstr", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncdirect_putstr", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","ncdirect_putstr", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  result = (int)ncdirect_putstr(arg1,arg2,(char const *)arg3);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), 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 = arg3 ? rb_str_new2(arg3) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("utf8")), obj);
  }
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.ncdirect_raster_frame(*args) ⇒ Object

call-seq:

ncdirect_raster_frame(n, ncdv, align) -> int

A module function.



71800
71801
71802
71803
71804
71805
71806
71807
71808
71809
71810
71811
71812
71813
71814
71815
71816
71817
71818
71819
71820
71821
71822
71823
71824
71825
71826
71827
71828
71829
71830
71831
71832
71833
71834
71835
71836
71837
71838
71839
71840
71841
71842
71843
71844
71845
71846
71847
71848
71849
71850
71851
71852
71853
71854
71855
71856
71857
71858
71859
71860
71861
71862
71863
71864
71865
71866
71867
71868
71869
# File 'ext/notcurses/src/notcurses_wrap.c', line 71800

SWIGINTERN VALUE
_wrap_ncdirect_raster_frame(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  ncdirectv *arg2 = (ncdirectv *) 0 ;
  ncalign_e arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_raster_frame", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncdirectv *","ncdirect_raster_frame", 2, argv[1] )); 
  }
  arg2 = (ncdirectv *)(argp2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "ncalign_e","ncdirect_raster_frame", 3, argv[2] ));
  } 
  arg3 = (ncalign_e)(val3);
  result = (int)ncdirect_raster_frame(arg1,arg2,arg3);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncdirectv *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ncdv")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_readline(*args) ⇒ Object

call-seq:

ncdirect_readline(nc, prompt) -> char *

A module function.



68288
68289
68290
68291
68292
68293
68294
68295
68296
68297
68298
68299
68300
68301
68302
68303
68304
68305
68306
68307
68308
68309
68310
68311
68312
68313
68314
68315
68316
68317
68318
68319
68320
68321
68322
68323
68324
68325
68326
68327
68328
68329
68330
68331
68332
68333
68334
68335
68336
68337
68338
68339
68340
68341
68342
68343
68344
68345
68346
68347
68348
68349
68350
68351
68352
68353
68354
68355
68356
68357
68358
68359
68360
68361
68362
# File 'ext/notcurses/src/notcurses_wrap.c', line 68288

SWIGINTERN VALUE
_wrap_ncdirect_readline(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_readline", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncdirect_readline", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (char *)ncdirect_readline(arg1,(char const *)arg2);
  {
    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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), 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("prompt")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncdirect_render_frame(*args) ⇒ Object

call-seq:

ncdirect_render_frame(n, filename, blitter, scale, maxy, maxx) -> ncdirectv *

A module function.



71683
71684
71685
71686
71687
71688
71689
71690
71691
71692
71693
71694
71695
71696
71697
71698
71699
71700
71701
71702
71703
71704
71705
71706
71707
71708
71709
71710
71711
71712
71713
71714
71715
71716
71717
71718
71719
71720
71721
71722
71723
71724
71725
71726
71727
71728
71729
71730
71731
71732
71733
71734
71735
71736
71737
71738
71739
71740
71741
71742
71743
71744
71745
71746
71747
71748
71749
71750
71751
71752
71753
71754
71755
71756
71757
71758
71759
71760
71761
71762
71763
71764
71765
71766
71767
71768
71769
71770
71771
71772
71773
71774
71775
71776
71777
71778
71779
71780
71781
71782
71783
71784
71785
71786
71787
71788
# File 'ext/notcurses/src/notcurses_wrap.c', line 71683

SWIGINTERN VALUE
_wrap_ncdirect_render_frame(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  char *arg2 = (char *) 0 ;
  ncblitter_e arg3 ;
  ncscale_e arg4 ;
  int arg5 ;
  int arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  ncdirectv *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_render_frame", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncdirect_render_frame", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "ncblitter_e","ncdirect_render_frame", 3, argv[2] ));
  } 
  arg3 = (ncblitter_e)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "ncscale_e","ncdirect_render_frame", 4, argv[3] ));
  } 
  arg4 = (ncscale_e)(val4);
  ecode5 = SWIG_AsVal_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","ncdirect_render_frame", 5, argv[4] ));
  } 
  arg5 = (int)(val5);
  ecode6 = SWIG_AsVal_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","ncdirect_render_frame", 6, argv[5] ));
  } 
  arg6 = (int)(val6);
  result = (ncdirectv *)ncdirect_render_frame(arg1,(char const *)arg2,arg3,arg4,arg5,arg6);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("ncdirectv *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("filename")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncdirect_render_image(*args) ⇒ Object

call-seq:

ncdirect_render_image(n, filename, align, blitter, scale) -> int

A module function.



71586
71587
71588
71589
71590
71591
71592
71593
71594
71595
71596
71597
71598
71599
71600
71601
71602
71603
71604
71605
71606
71607
71608
71609
71610
71611
71612
71613
71614
71615
71616
71617
71618
71619
71620
71621
71622
71623
71624
71625
71626
71627
71628
71629
71630
71631
71632
71633
71634
71635
71636
71637
71638
71639
71640
71641
71642
71643
71644
71645
71646
71647
71648
71649
71650
71651
71652
71653
71654
71655
71656
71657
71658
71659
71660
71661
71662
71663
71664
71665
71666
71667
71668
71669
71670
71671
# File 'ext/notcurses/src/notcurses_wrap.c', line 71586

SWIGINTERN VALUE
_wrap_ncdirect_render_image(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  char *arg2 = (char *) 0 ;
  ncalign_e arg3 ;
  ncblitter_e arg4 ;
  ncscale_e arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_render_image", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncdirect_render_image", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "ncalign_e","ncdirect_render_image", 3, argv[2] ));
  } 
  arg3 = (ncalign_e)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "ncblitter_e","ncdirect_render_image", 4, argv[3] ));
  } 
  arg4 = (ncblitter_e)(val4);
  ecode5 = SWIG_AsVal_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "ncscale_e","ncdirect_render_image", 5, argv[4] ));
  } 
  arg5 = (ncscale_e)(val5);
  result = (int)ncdirect_render_image(arg1,(char const *)arg2,arg3,arg4,arg5);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("filename")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncdirect_rounded_box(*args) ⇒ Object

call-seq:

ncdirect_rounded_box(n, ul, ur, ll, lr, ylen, xlen, ctlword) -> int

A module function.



71029
71030
71031
71032
71033
71034
71035
71036
71037
71038
71039
71040
71041
71042
71043
71044
71045
71046
71047
71048
71049
71050
71051
71052
71053
71054
71055
71056
71057
71058
71059
71060
71061
71062
71063
71064
71065
71066
71067
71068
71069
71070
71071
71072
71073
71074
71075
71076
71077
71078
71079
71080
71081
71082
71083
71084
71085
71086
71087
71088
71089
71090
71091
71092
71093
71094
71095
71096
71097
71098
71099
71100
71101
71102
71103
71104
71105
71106
71107
71108
71109
71110
71111
71112
71113
71114
71115
71116
71117
71118
71119
71120
71121
71122
# File 'ext/notcurses/src/notcurses_wrap.c', line 71029

SWIGINTERN VALUE
_wrap_ncdirect_rounded_box(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  uint64_t arg2 ;
  uint64_t arg3 ;
  uint64_t arg4 ;
  uint64_t arg5 ;
  unsigned int arg6 ;
  unsigned int arg7 ;
  unsigned int arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  unsigned long val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  unsigned int val8 ;
  int ecode8 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 8) || (argc > 8)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_rounded_box", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncdirect_rounded_box", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncdirect_rounded_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint64_t","ncdirect_rounded_box", 4, argv[3] ));
  } 
  arg4 = (uint64_t)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_long(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint64_t","ncdirect_rounded_box", 5, argv[4] ));
  } 
  arg5 = (uint64_t)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "unsigned int","ncdirect_rounded_box", 6, argv[5] ));
  } 
  arg6 = (unsigned int)(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_int(argv[6], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "unsigned int","ncdirect_rounded_box", 7, argv[6] ));
  } 
  arg7 = (unsigned int)(val7);
  ecode8 = SWIG_AsVal_unsigned_SS_int(argv[7], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "unsigned int","ncdirect_rounded_box", 8, argv[7] ));
  } 
  arg8 = (unsigned int)(val8);
  result = (int)ncdirect_rounded_box(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_set_bg_default(*args) ⇒ Object

call-seq:

ncdirect_set_bg_default(nc) -> int

A module function.



69200
69201
69202
69203
69204
69205
69206
69207
69208
69209
69210
69211
69212
69213
69214
69215
69216
69217
69218
69219
69220
69221
69222
69223
69224
69225
69226
69227
69228
69229
69230
69231
69232
69233
69234
69235
69236
69237
# File 'ext/notcurses/src/notcurses_wrap.c', line 69200

SWIGINTERN VALUE
_wrap_ncdirect_set_bg_default(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_set_bg_default", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (int)ncdirect_set_bg_default(arg1);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_set_bg_palindex(*args) ⇒ Object

call-seq:

ncdirect_set_bg_palindex(nc, pidx) -> int

A module function.



68545
68546
68547
68548
68549
68550
68551
68552
68553
68554
68555
68556
68557
68558
68559
68560
68561
68562
68563
68564
68565
68566
68567
68568
68569
68570
68571
68572
68573
68574
68575
68576
68577
68578
68579
68580
68581
68582
68583
68584
68585
68586
68587
68588
68589
68590
# File 'ext/notcurses/src/notcurses_wrap.c', line 68545

SWIGINTERN VALUE
_wrap_ncdirect_set_bg_palindex(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_set_bg_palindex", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncdirect_set_bg_palindex", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (int)ncdirect_set_bg_palindex(arg1,arg2);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_set_bg_rgb(*args) ⇒ Object

call-seq:

ncdirect_set_bg_rgb(nc, rgb) -> int

A module function.



68431
68432
68433
68434
68435
68436
68437
68438
68439
68440
68441
68442
68443
68444
68445
68446
68447
68448
68449
68450
68451
68452
68453
68454
68455
68456
68457
68458
68459
68460
68461
68462
68463
68464
68465
68466
68467
68468
68469
68470
68471
68472
68473
68474
68475
68476
# File 'ext/notcurses/src/notcurses_wrap.c', line 68431

SWIGINTERN VALUE
_wrap_ncdirect_set_bg_rgb(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_set_bg_rgb", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncdirect_set_bg_rgb", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncdirect_set_bg_rgb(arg1,arg2);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_set_bg_rgb8(*args) ⇒ Object

call-seq:

ncdirect_set_bg_rgb8(nc, r, g, b) -> int

A module function.



69005
69006
69007
69008
69009
69010
69011
69012
69013
69014
69015
69016
69017
69018
69019
69020
69021
69022
69023
69024
69025
69026
69027
69028
69029
69030
69031
69032
69033
69034
69035
69036
69037
69038
69039
69040
69041
69042
69043
69044
69045
69046
69047
69048
69049
69050
69051
69052
69053
69054
69055
69056
69057
69058
69059
69060
69061
69062
69063
69064
69065
69066
# File 'ext/notcurses/src/notcurses_wrap.c', line 69005

SWIGINTERN VALUE
_wrap_ncdirect_set_bg_rgb8(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  unsigned int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_set_bg_rgb8", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncdirect_set_bg_rgb8", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncdirect_set_bg_rgb8", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncdirect_set_bg_rgb8", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (int)ncdirect_set_bg_rgb8(arg1,arg2,arg3,arg4);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_set_fg_default(*args) ⇒ Object

call-seq:

ncdirect_set_fg_default(nc) -> int

A module function.



69151
69152
69153
69154
69155
69156
69157
69158
69159
69160
69161
69162
69163
69164
69165
69166
69167
69168
69169
69170
69171
69172
69173
69174
69175
69176
69177
69178
69179
69180
69181
69182
69183
69184
69185
69186
69187
69188
# File 'ext/notcurses/src/notcurses_wrap.c', line 69151

SWIGINTERN VALUE
_wrap_ncdirect_set_fg_default(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_set_fg_default", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (int)ncdirect_set_fg_default(arg1);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_set_fg_palindex(*args) ⇒ Object

call-seq:

ncdirect_set_fg_palindex(nc, pidx) -> int

A module function.



68488
68489
68490
68491
68492
68493
68494
68495
68496
68497
68498
68499
68500
68501
68502
68503
68504
68505
68506
68507
68508
68509
68510
68511
68512
68513
68514
68515
68516
68517
68518
68519
68520
68521
68522
68523
68524
68525
68526
68527
68528
68529
68530
68531
68532
68533
# File 'ext/notcurses/src/notcurses_wrap.c', line 68488

SWIGINTERN VALUE
_wrap_ncdirect_set_fg_palindex(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_set_fg_palindex", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncdirect_set_fg_palindex", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (int)ncdirect_set_fg_palindex(arg1,arg2);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_set_fg_rgb(*args) ⇒ Object

call-seq:

ncdirect_set_fg_rgb(nc, rgb) -> int

A module function.



68374
68375
68376
68377
68378
68379
68380
68381
68382
68383
68384
68385
68386
68387
68388
68389
68390
68391
68392
68393
68394
68395
68396
68397
68398
68399
68400
68401
68402
68403
68404
68405
68406
68407
68408
68409
68410
68411
68412
68413
68414
68415
68416
68417
68418
68419
# File 'ext/notcurses/src/notcurses_wrap.c', line 68374

SWIGINTERN VALUE
_wrap_ncdirect_set_fg_rgb(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_set_fg_rgb", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncdirect_set_fg_rgb", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncdirect_set_fg_rgb(arg1,arg2);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_set_fg_rgb8(*args) ⇒ Object

call-seq:

ncdirect_set_fg_rgb8(nc, r, g, b) -> int

A module function.



69078
69079
69080
69081
69082
69083
69084
69085
69086
69087
69088
69089
69090
69091
69092
69093
69094
69095
69096
69097
69098
69099
69100
69101
69102
69103
69104
69105
69106
69107
69108
69109
69110
69111
69112
69113
69114
69115
69116
69117
69118
69119
69120
69121
69122
69123
69124
69125
69126
69127
69128
69129
69130
69131
69132
69133
69134
69135
69136
69137
69138
69139
# File 'ext/notcurses/src/notcurses_wrap.c', line 69078

SWIGINTERN VALUE
_wrap_ncdirect_set_fg_rgb8(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  unsigned int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_set_fg_rgb8", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncdirect_set_fg_rgb8", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncdirect_set_fg_rgb8", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncdirect_set_fg_rgb8", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (int)ncdirect_set_fg_rgb8(arg1,arg2,arg3,arg4);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_set_styles(*args) ⇒ Object

call-seq:

ncdirect_set_styles(n, stylebits) -> int

A module function.



69396
69397
69398
69399
69400
69401
69402
69403
69404
69405
69406
69407
69408
69409
69410
69411
69412
69413
69414
69415
69416
69417
69418
69419
69420
69421
69422
69423
69424
69425
69426
69427
69428
69429
69430
69431
69432
69433
69434
69435
69436
69437
69438
69439
69440
69441
# File 'ext/notcurses/src/notcurses_wrap.c', line 69396

SWIGINTERN VALUE
_wrap_ncdirect_set_styles(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_set_styles", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncdirect_set_styles", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncdirect_set_styles(arg1,arg2);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_stop(*args) ⇒ Object

call-seq:

ncdirect_stop(nc) -> int

A module function.



71537
71538
71539
71540
71541
71542
71543
71544
71545
71546
71547
71548
71549
71550
71551
71552
71553
71554
71555
71556
71557
71558
71559
71560
71561
71562
71563
71564
71565
71566
71567
71568
71569
71570
71571
71572
71573
71574
# File 'ext/notcurses/src/notcurses_wrap.c', line 71537

SWIGINTERN VALUE
_wrap_ncdirect_stop(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_stop", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (int)ncdirect_stop(arg1);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_stream(*args) ⇒ Object

call-seq:

ncdirect_stream(n, filename, streamer, vopts, curry) -> int

A module function.



72243
72244
72245
72246
72247
72248
72249
72250
72251
72252
72253
72254
72255
72256
72257
72258
72259
72260
72261
72262
72263
72264
72265
72266
72267
72268
72269
72270
72271
72272
72273
72274
72275
72276
72277
72278
72279
72280
72281
72282
72283
72284
72285
72286
72287
72288
72289
72290
72291
72292
72293
72294
72295
72296
72297
72298
72299
72300
72301
72302
72303
72304
72305
72306
72307
72308
72309
72310
72311
72312
72313
72314
72315
72316
72317
72318
72319
72320
72321
72322
72323
72324
72325
72326
72327
72328
72329
72330
72331
72332
72333
72334
72335
72336
72337
72338
72339
72340
72341
72342
72343
72344
72345
72346
72347
72348
72349
72350
72351
72352
72353
72354
72355
72356
72357
72358
72359
72360
72361
72362
72363
72364
72365
72366
72367
72368
72369
72370
72371
72372
72373
72374
# File 'ext/notcurses/src/notcurses_wrap.c', line 72243

SWIGINTERN VALUE
_wrap_ncdirect_stream(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  char *arg2 = (char *) 0 ;
  ncstreamcb arg3 = (ncstreamcb) 0 ;
  struct ncvisual_options *arg4 = (struct ncvisual_options *) 0 ;
  void *arg5 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int res5 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_stream", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncdirect_stream", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  {
    if (!NIL_P(argv[2])) {
      arg3 = (ncstreamcb)rb_proc_new((VALUE (*)(ANYARGS))call_ruby_proc, argv[2]);
    } else {
      arg3 = NULL;
    }
  }
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_ncvisual_options, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "struct ncvisual_options *","ncdirect_stream", 4, argv[3] )); 
  }
  arg4 = (struct ncvisual_options *)(argp4);
  res5 = SWIG_ConvertPtr(argv[4],SWIG_as_voidptrptr(&arg5), 0, 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "void *","ncdirect_stream", 5, argv[4] )); 
  }
  result = (int)ncdirect_stream(arg1,(char const *)arg2,arg3,arg4,arg5);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("filename")), 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("ncstreamcb");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_ncvisual_p_struct_ncvisual_options_p_q_const__struct_timespec_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("streamer")), 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 ncvisual_options *");
    if (!ty) ty = SWIGTYPE_p_ncvisual_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vopts")), 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("void *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("curry")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncdirect_styles(*args) ⇒ Object

call-seq:

ncdirect_styles(n) -> uint16_t

A module function.



69567
69568
69569
69570
69571
69572
69573
69574
69575
69576
69577
69578
69579
69580
69581
69582
69583
69584
69585
69586
69587
69588
69589
69590
69591
69592
69593
69594
69595
69596
69597
69598
69599
69600
69601
69602
69603
69604
# File 'ext/notcurses/src/notcurses_wrap.c', line 69567

SWIGINTERN VALUE
_wrap_ncdirect_styles(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint16_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_styles", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (uint16_t)ncdirect_styles((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_supported_styles(*args) ⇒ Object

call-seq:

ncdirect_supported_styles(nc) -> uint16_t

A module function.



69347
69348
69349
69350
69351
69352
69353
69354
69355
69356
69357
69358
69359
69360
69361
69362
69363
69364
69365
69366
69367
69368
69369
69370
69371
69372
69373
69374
69375
69376
69377
69378
69379
69380
69381
69382
69383
69384
# File 'ext/notcurses/src/notcurses_wrap.c', line 69347

SWIGINTERN VALUE
_wrap_ncdirect_supported_styles(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint16_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect const *","ncdirect_supported_styles", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  result = (uint16_t)ncdirect_supported_styles((struct ncdirect const *)arg1);
  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 ncdirect const *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirect_vline_interp(*args) ⇒ Object

call-seq:

ncdirect_vline_interp(n, egc, len, h1, h2) -> int

A module function.



70467
70468
70469
70470
70471
70472
70473
70474
70475
70476
70477
70478
70479
70480
70481
70482
70483
70484
70485
70486
70487
70488
70489
70490
70491
70492
70493
70494
70495
70496
70497
70498
70499
70500
70501
70502
70503
70504
70505
70506
70507
70508
70509
70510
70511
70512
70513
70514
70515
70516
70517
70518
70519
70520
70521
70522
70523
70524
70525
70526
70527
70528
70529
70530
70531
70532
70533
70534
70535
70536
70537
70538
70539
70540
70541
70542
70543
70544
70545
70546
70547
70548
70549
70550
70551
70552
# File 'ext/notcurses/src/notcurses_wrap.c', line 70467

SWIGINTERN VALUE
_wrap_ncdirect_vline_interp(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  char *arg2 = (char *) 0 ;
  unsigned int arg3 ;
  uint64_t arg4 ;
  uint64_t arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  unsigned long val5 ;
  int ecode5 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirect_vline_interp", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncdirect_vline_interp", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncdirect_vline_interp", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint64_t","ncdirect_vline_interp", 4, argv[3] ));
  } 
  arg4 = (uint64_t)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_long(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint64_t","ncdirect_vline_interp", 5, argv[4] ));
  } 
  arg5 = (uint64_t)(val5);
  result = (int)ncdirect_vline_interp(arg1,(char const *)arg2,arg3,arg4,arg5);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("egc")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncdirectf_free(*args) ⇒ Object

call-seq:

ncdirectf_free(frame)

A module function.



71966
71967
71968
71969
71970
71971
71972
71973
71974
71975
71976
71977
71978
71979
71980
71981
71982
71983
71984
71985
71986
71987
71988
71989
71990
71991
71992
71993
71994
71995
71996
71997
71998
71999
72000
72001
# File 'ext/notcurses/src/notcurses_wrap.c', line 71966

SWIGINTERN VALUE
_wrap_ncdirectf_free(int argc, VALUE *argv, VALUE self) {
  ncdirectf *arg1 = (ncdirectf *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncdirectf *","ncdirectf_free", 1, argv[0] )); 
  }
  arg1 = (ncdirectf *)(argp1);
  ncdirectf_free(arg1);
  {
    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("ncdirectf *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("frame")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirectf_from_file(*args) ⇒ Object

call-seq:

ncdirectf_from_file(n, filename) -> ncdirectf *

A module function.



71881
71882
71883
71884
71885
71886
71887
71888
71889
71890
71891
71892
71893
71894
71895
71896
71897
71898
71899
71900
71901
71902
71903
71904
71905
71906
71907
71908
71909
71910
71911
71912
71913
71914
71915
71916
71917
71918
71919
71920
71921
71922
71923
71924
71925
71926
71927
71928
71929
71930
71931
71932
71933
71934
71935
71936
71937
71938
71939
71940
71941
71942
71943
71944
71945
71946
71947
71948
71949
71950
71951
71952
71953
71954
# File 'ext/notcurses/src/notcurses_wrap.c', line 71881

SWIGINTERN VALUE
_wrap_ncdirectf_from_file(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  ncdirectf *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirectf_from_file", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncdirectf_from_file", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (ncdirectf *)ncdirectf_from_file(arg1,(char const *)arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("ncdirectf *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncvisual, 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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("filename")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncdirectf_geom(*args) ⇒ Object

call-seq:

ncdirectf_geom(n, frame, vopts, geom) -> int

A module function.



72122
72123
72124
72125
72126
72127
72128
72129
72130
72131
72132
72133
72134
72135
72136
72137
72138
72139
72140
72141
72142
72143
72144
72145
72146
72147
72148
72149
72150
72151
72152
72153
72154
72155
72156
72157
72158
72159
72160
72161
72162
72163
72164
72165
72166
72167
72168
72169
72170
72171
72172
72173
72174
72175
72176
72177
72178
72179
72180
72181
72182
72183
72184
72185
72186
72187
72188
72189
72190
72191
72192
72193
72194
72195
72196
72197
72198
72199
72200
72201
72202
72203
72204
72205
72206
72207
72208
72209
72210
72211
72212
72213
72214
72215
72216
72217
72218
72219
72220
72221
72222
72223
72224
72225
72226
72227
72228
72229
72230
72231
# File 'ext/notcurses/src/notcurses_wrap.c', line 72122

SWIGINTERN VALUE
_wrap_ncdirectf_geom(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  ncdirectf *arg2 = (ncdirectf *) 0 ;
  struct ncvisual_options *arg3 = (struct ncvisual_options *) 0 ;
  ncvgeom *arg4 = (ncvgeom *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirectf_geom", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncdirectf *","ncdirectf_geom", 2, argv[1] )); 
  }
  arg2 = (ncdirectf *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_ncvisual_options, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "struct ncvisual_options const *","ncdirectf_geom", 3, argv[2] )); 
  }
  arg3 = (struct ncvisual_options *)(argp3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_ncvgeom, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "ncvgeom *","ncdirectf_geom", 4, argv[3] )); 
  }
  arg4 = (ncvgeom *)(argp4);
  result = (int)ncdirectf_geom(arg1,arg2,(struct ncvisual_options const *)arg3,arg4);
  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 ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncdirectf *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("frame")), 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 ncvisual_options const *");
    if (!ty) ty = SWIGTYPE_p_ncvisual_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vopts")), 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("ncvgeom *");
    if (!ty) ty = SWIGTYPE_p_ncvgeom;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("geom")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdirectf_render(*args) ⇒ Object

call-seq:

ncdirectf_render(n, frame, vopts) -> ncdirectv *

A module function.



72013
72014
72015
72016
72017
72018
72019
72020
72021
72022
72023
72024
72025
72026
72027
72028
72029
72030
72031
72032
72033
72034
72035
72036
72037
72038
72039
72040
72041
72042
72043
72044
72045
72046
72047
72048
72049
72050
72051
72052
72053
72054
72055
72056
72057
72058
72059
72060
72061
72062
72063
72064
72065
72066
72067
72068
72069
72070
72071
72072
72073
72074
72075
72076
72077
72078
72079
72080
72081
72082
72083
72084
72085
72086
72087
72088
72089
72090
72091
72092
72093
72094
72095
72096
72097
72098
72099
72100
72101
72102
72103
72104
72105
72106
72107
72108
72109
72110
# File 'ext/notcurses/src/notcurses_wrap.c', line 72013

SWIGINTERN VALUE
_wrap_ncdirectf_render(int argc, VALUE *argv, VALUE self) {
  struct ncdirect *arg1 = (struct ncdirect *) 0 ;
  ncdirectf *arg2 = (ncdirectf *) 0 ;
  struct ncvisual_options *arg3 = (struct ncvisual_options *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  ncdirectv *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdirect, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdirect *","ncdirectf_render", 1, argv[0] )); 
  }
  arg1 = (struct ncdirect *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncdirectf *","ncdirectf_render", 2, argv[1] )); 
  }
  arg2 = (ncdirectf *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_ncvisual_options, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "struct ncvisual_options const *","ncdirectf_render", 3, argv[2] )); 
  }
  arg3 = (struct ncvisual_options *)(argp3);
  result = (ncdirectv *)ncdirectf_render(arg1,arg2,(struct ncvisual_options const *)arg3);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("ncdirectv *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncdirect *");
    if (!ty) ty = SWIGTYPE_p_ncdirect;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncdirectf *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("frame")), 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 ncvisual_options const *");
    if (!ty) ty = SWIGTYPE_p_ncvisual_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vopts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdplot_add_sample(*args) ⇒ Object

call-seq:

ncdplot_add_sample(n, x, y) -> int

A module function.



64454
64455
64456
64457
64458
64459
64460
64461
64462
64463
64464
64465
64466
64467
64468
64469
64470
64471
64472
64473
64474
64475
64476
64477
64478
64479
64480
64481
64482
64483
64484
64485
64486
64487
64488
64489
64490
64491
64492
64493
64494
64495
64496
64497
64498
64499
64500
64501
64502
64503
64504
64505
64506
64507
# File 'ext/notcurses/src/notcurses_wrap.c', line 64454

SWIGINTERN VALUE
_wrap_ncdplot_add_sample(int argc, VALUE *argv, VALUE self) {
  struct ncdplot *arg1 = (struct ncdplot *) 0 ;
  uint64_t arg2 ;
  double arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdplot, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdplot *","ncdplot_add_sample", 1, argv[0] )); 
  }
  arg1 = (struct ncdplot *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncdplot_add_sample", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  ecode3 = SWIG_AsVal_double(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","ncdplot_add_sample", 3, argv[2] ));
  } 
  arg3 = (double)(val3);
  result = (int)ncdplot_add_sample(arg1,arg2,arg3);
  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 ncdplot *");
    if (!ty) ty = SWIGTYPE_p_ncdplot;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdplot_create(*args) ⇒ Object

call-seq:

ncdplot_create(n, opts, miny, maxy) -> struct ncdplot *

A module function.



64166
64167
64168
64169
64170
64171
64172
64173
64174
64175
64176
64177
64178
64179
64180
64181
64182
64183
64184
64185
64186
64187
64188
64189
64190
64191
64192
64193
64194
64195
64196
64197
64198
64199
64200
64201
64202
64203
64204
64205
64206
64207
64208
64209
64210
64211
64212
64213
64214
64215
64216
64217
64218
64219
64220
64221
64222
64223
64224
64225
64226
64227
64228
64229
64230
64231
64232
64233
64234
64235
64236
64237
64238
64239
64240
64241
64242
64243
64244
64245
64246
64247
64248
64249
64250
64251
64252
64253
64254
64255
# File 'ext/notcurses/src/notcurses_wrap.c', line 64166

SWIGINTERN VALUE
_wrap_ncdplot_create(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncplot_options *arg2 = (ncplot_options *) 0 ;
  double arg3 ;
  double arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  double val4 ;
  int ecode4 = 0 ;
  struct ncdplot *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncdplot_create", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplot_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncplot_options const *","ncdplot_create", 2, argv[1] )); 
  }
  arg2 = (ncplot_options *)(argp2);
  ecode3 = SWIG_AsVal_double(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","ncdplot_create", 3, argv[2] ));
  } 
  arg3 = (double)(val3);
  ecode4 = SWIG_AsVal_double(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "double","ncdplot_create", 4, argv[3] ));
  } 
  arg4 = (double)(val4);
  result = (struct ncdplot *)ncdplot_create(arg1,(struct ncplot_options const *)arg2,arg3,arg4);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncdplot *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncdplot, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncplot_options const *");
    if (!ty) ty = SWIGTYPE_p_ncplot_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdplot_destroy(*args) ⇒ Object

call-seq:

ncdplot_destroy(n)

A module function.



64916
64917
64918
64919
64920
64921
64922
64923
64924
64925
64926
64927
64928
64929
64930
64931
64932
64933
64934
64935
64936
64937
64938
64939
64940
64941
64942
64943
64944
64945
64946
64947
64948
64949
64950
64951
# File 'ext/notcurses/src/notcurses_wrap.c', line 64916

SWIGINTERN VALUE
_wrap_ncdplot_destroy(int argc, VALUE *argv, VALUE self) {
  struct ncdplot *arg1 = (struct ncdplot *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncdplot, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdplot *","ncdplot_destroy", 1, argv[0] )); 
  }
  arg1 = (struct ncdplot *)(argp1);
  ncdplot_destroy(arg1);
  {
    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 ncdplot *");
    if (!ty) ty = SWIGTYPE_p_ncdplot;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdplot_plane(*args) ⇒ Object

call-seq:

ncdplot_plane(n) -> struct ncplane *

A module function.



64328
64329
64330
64331
64332
64333
64334
64335
64336
64337
64338
64339
64340
64341
64342
64343
64344
64345
64346
64347
64348
64349
64350
64351
64352
64353
64354
64355
64356
64357
64358
64359
64360
64361
64362
64363
64364
64365
64366
64367
64368
64369
64370
64371
64372
64373
64374
64375
64376
64377
# File 'ext/notcurses/src/notcurses_wrap.c', line 64328

SWIGINTERN VALUE
_wrap_ncdplot_plane(int argc, VALUE *argv, VALUE self) {
  struct ncdplot *arg1 = (struct ncdplot *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncdplot, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdplot *","ncdplot_plane", 1, argv[0] )); 
  }
  arg1 = (struct ncdplot *)(argp1);
  result = (struct ncplane *)ncdplot_plane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncdplot *");
    if (!ty) ty = SWIGTYPE_p_ncdplot;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncdplot_sample(*args) ⇒ Object

call-seq:

ncdplot_sample(n, x, y) -> int

A module function.



64759
64760
64761
64762
64763
64764
64765
64766
64767
64768
64769
64770
64771
64772
64773
64774
64775
64776
64777
64778
64779
64780
64781
64782
64783
64784
64785
64786
64787
64788
64789
64790
64791
64792
64793
64794
64795
64796
64797
64798
64799
64800
64801
64802
64803
64804
64805
64806
64807
64808
64809
64810
64811
64812
64813
64814
64815
64816
64817
64818
64819
64820
64821
64822
64823
64824
64825
64826
64827
64828
64829
64830
64831
64832
64833
64834
64835
64836
64837
64838
64839
64840
64841
64842
64843
64844
64845
64846
64847
64848
64849
64850
64851
64852
64853
64854
64855
64856
64857
# File 'ext/notcurses/src/notcurses_wrap.c', line 64759

SWIGINTERN VALUE
_wrap_ncdplot_sample(int argc, VALUE *argv, VALUE self) {
  struct ncdplot *arg1 = (struct ncdplot *) 0 ;
  uint64_t arg2 ;
  double *arg3 = (double *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdplot, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdplot const *","ncdplot_sample", 1, argv[0] )); 
  }
  arg1 = (struct ncdplot *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncdplot_sample", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  {
    arg3 = (double *) malloc(sizeof(double));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(double)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (double) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("double", "double") == 0) {
        *arg3 = (double) NUM2DBL(argv[2]);
      } else {
        *arg3 = (double) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (int)ncdplot_sample((struct ncdplot const *)arg1,arg2,arg3);
  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 ncdplot const *");
    if (!ty) ty = SWIGTYPE_p_ncdplot;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(double)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("double", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("y")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncdplot_set_sample(*args) ⇒ Object

call-seq:

ncdplot_set_sample(n, x, y) -> int

A module function.



64584
64585
64586
64587
64588
64589
64590
64591
64592
64593
64594
64595
64596
64597
64598
64599
64600
64601
64602
64603
64604
64605
64606
64607
64608
64609
64610
64611
64612
64613
64614
64615
64616
64617
64618
64619
64620
64621
64622
64623
64624
64625
64626
64627
64628
64629
64630
64631
64632
64633
64634
64635
64636
64637
# File 'ext/notcurses/src/notcurses_wrap.c', line 64584

SWIGINTERN VALUE
_wrap_ncdplot_set_sample(int argc, VALUE *argv, VALUE self) {
  struct ncdplot *arg1 = (struct ncdplot *) 0 ;
  uint64_t arg2 ;
  double arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  double val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncdplot, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncdplot *","ncdplot_set_sample", 1, argv[0] )); 
  }
  arg1 = (struct ncdplot *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncdplot_set_sample", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  ecode3 = SWIG_AsVal_double(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","ncdplot_set_sample", 3, argv[2] ));
  } 
  arg3 = (double)(val3);
  result = (int)ncdplot_set_sample(arg1,arg2,arg3);
  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 ncdplot *");
    if (!ty) ty = SWIGTYPE_p_ncdplot;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncfadectx_free(*args) ⇒ Object

call-seq:

ncfadectx_free(nctx)

A module function.



39681
39682
39683
39684
39685
39686
39687
39688
39689
39690
39691
39692
39693
39694
39695
39696
39697
39698
39699
39700
39701
39702
39703
39704
39705
39706
39707
39708
39709
39710
39711
39712
39713
39714
39715
39716
# File 'ext/notcurses/src/notcurses_wrap.c', line 39681

SWIGINTERN VALUE
_wrap_ncfadectx_free(int argc, VALUE *argv, VALUE self) {
  struct ncfadectx *arg1 = (struct ncfadectx *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncfadectx, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncfadectx *","ncfadectx_free", 1, argv[0] )); 
  }
  arg1 = (struct ncfadectx *)(argp1);
  ncfadectx_free(arg1);
  {
    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 ncfadectx *");
    if (!ty) ty = SWIGTYPE_p_ncfadectx;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nctx")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncfadectx_iterations(*args) ⇒ Object

call-seq:

ncfadectx_iterations(nctx) -> int

A module function.



39253
39254
39255
39256
39257
39258
39259
39260
39261
39262
39263
39264
39265
39266
39267
39268
39269
39270
39271
39272
39273
39274
39275
39276
39277
39278
39279
39280
39281
39282
39283
39284
39285
39286
39287
39288
39289
39290
# File 'ext/notcurses/src/notcurses_wrap.c', line 39253

SWIGINTERN VALUE
_wrap_ncfadectx_iterations(int argc, VALUE *argv, VALUE self) {
  struct ncfadectx *arg1 = (struct ncfadectx *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncfadectx, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncfadectx const *","ncfadectx_iterations", 1, argv[0] )); 
  }
  arg1 = (struct ncfadectx *)(argp1);
  result = (int)ncfadectx_iterations((struct ncfadectx const *)arg1);
  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 ncfadectx const *");
    if (!ty) ty = SWIGTYPE_p_ncfadectx;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nctx")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncfadectx_setup(*args) ⇒ Object

call-seq:

ncfadectx_setup(n) -> struct ncfadectx *

A module function.



39192
39193
39194
39195
39196
39197
39198
39199
39200
39201
39202
39203
39204
39205
39206
39207
39208
39209
39210
39211
39212
39213
39214
39215
39216
39217
39218
39219
39220
39221
39222
39223
39224
39225
39226
39227
39228
39229
39230
39231
39232
39233
39234
39235
39236
39237
39238
39239
39240
39241
# File 'ext/notcurses/src/notcurses_wrap.c', line 39192

SWIGINTERN VALUE
_wrap_ncfadectx_setup(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncfadectx *result = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncfadectx_setup", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (struct ncfadectx *)ncfadectx_setup(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncfadectx *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncfadectx, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncfdplane_create(*args) ⇒ Object

call-seq:

ncfdplane_create(n, opts, fd, cbfxn, donecbfxn) -> struct ncfdplane *

A module function.



65356
65357
65358
65359
65360
65361
65362
65363
65364
65365
65366
65367
65368
65369
65370
65371
65372
65373
65374
65375
65376
65377
65378
65379
65380
65381
65382
65383
65384
65385
65386
65387
65388
65389
65390
65391
65392
65393
65394
65395
65396
65397
65398
65399
65400
65401
65402
65403
65404
65405
65406
65407
65408
65409
65410
65411
65412
65413
65414
65415
65416
65417
65418
65419
65420
65421
65422
65423
65424
65425
65426
65427
65428
65429
65430
65431
65432
65433
65434
65435
65436
65437
65438
65439
65440
65441
65442
65443
65444
65445
65446
65447
65448
65449
65450
65451
65452
65453
65454
65455
65456
65457
65458
65459
65460
65461
65462
65463
65464
65465
65466
65467
65468
65469
65470
65471
65472
65473
65474
65475
65476
65477
65478
65479
65480
65481
65482
65483
65484
# File 'ext/notcurses/src/notcurses_wrap.c', line 65356

SWIGINTERN VALUE
_wrap_ncfdplane_create(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncfdplane_options *arg2 = (ncfdplane_options *) 0 ;
  int arg3 ;
  ncfdplane_callback arg4 = (ncfdplane_callback) 0 ;
  ncfdplane_done_cb arg5 = (ncfdplane_done_cb) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  struct ncfdplane *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncfdplane_create", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncfdplane_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncfdplane_options const *","ncfdplane_create", 2, argv[1] )); 
  }
  arg2 = (ncfdplane_options *)(argp2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncfdplane_create", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  {
    int res = SWIG_ConvertFunctionPtr(argv[3], (void**)(&arg4), SWIGTYPE_p_f_p_struct_ncfdplane_p_q_const__void_size_t_p_void__int);
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "ncfdplane_callback","ncfdplane_create", 4, argv[3] )); 
    }
  }
  {
    if (!NIL_P(argv[4])) {
      arg5 = (ncfdplane_done_cb)rb_proc_new((VALUE (*)(ANYARGS))call_ruby_proc, argv[4]);
    } else {
      arg5 = NULL;
    }
  }
  result = (struct ncfdplane *)ncfdplane_create(arg1,(struct ncfdplane_options const *)arg2,arg3,arg4,arg5);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncfdplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncfdplane, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncfdplane_options const *");
    if (!ty) ty = SWIGTYPE_p_ncfdplane_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), 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("ncfdplane_callback");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_ncfdplane_p_q_const__void_size_t_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cbfxn")), 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("ncfdplane_done_cb");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_ncfdplane_int_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("donecbfxn")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncfdplane_destroy(*args) ⇒ Object

call-seq:

ncfdplane_destroy(n) -> int

A module function.



65557
65558
65559
65560
65561
65562
65563
65564
65565
65566
65567
65568
65569
65570
65571
65572
65573
65574
65575
65576
65577
65578
65579
65580
65581
65582
65583
65584
65585
65586
65587
65588
65589
65590
65591
65592
65593
65594
# File 'ext/notcurses/src/notcurses_wrap.c', line 65557

SWIGINTERN VALUE
_wrap_ncfdplane_destroy(int argc, VALUE *argv, VALUE self) {
  struct ncfdplane *arg1 = (struct ncfdplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncfdplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncfdplane *","ncfdplane_destroy", 1, argv[0] )); 
  }
  arg1 = (struct ncfdplane *)(argp1);
  result = (int)ncfdplane_destroy(arg1);
  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 ncfdplane *");
    if (!ty) ty = SWIGTYPE_p_ncfdplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncfdplane_plane(*args) ⇒ Object

call-seq:

ncfdplane_plane(n) -> struct ncplane *

A module function.



65496
65497
65498
65499
65500
65501
65502
65503
65504
65505
65506
65507
65508
65509
65510
65511
65512
65513
65514
65515
65516
65517
65518
65519
65520
65521
65522
65523
65524
65525
65526
65527
65528
65529
65530
65531
65532
65533
65534
65535
65536
65537
65538
65539
65540
65541
65542
65543
65544
65545
# File 'ext/notcurses/src/notcurses_wrap.c', line 65496

SWIGINTERN VALUE
_wrap_ncfdplane_plane(int argc, VALUE *argv, VALUE self) {
  struct ncfdplane *arg1 = (struct ncfdplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncfdplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncfdplane *","ncfdplane_plane", 1, argv[0] )); 
  }
  arg1 = (struct ncfdplane *)(argp1);
  result = (struct ncplane *)ncfdplane_plane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncfdplane *");
    if (!ty) ty = SWIGTYPE_p_ncfdplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncinput_alt_p(*args) ⇒ Object

call-seq:

ncinput_alt_p(n) -> bool

A module function.



15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
# File 'ext/notcurses/src/notcurses_wrap.c', line 15021

SWIGINTERN VALUE
_wrap_ncinput_alt_p(int argc, VALUE *argv, VALUE self) {
  ncinput *arg1 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncinput const *","ncinput_alt_p", 1, argv[0] )); 
  }
  arg1 = (ncinput *)(argp1);
  result = (bool)ncinput_alt_p((struct ncinput const *)arg1);
  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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncinput_capslock_p(*args) ⇒ Object

call-seq:

ncinput_capslock_p(n) -> bool

A module function.



15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
# File 'ext/notcurses/src/notcurses_wrap.c', line 15217

SWIGINTERN VALUE
_wrap_ncinput_capslock_p(int argc, VALUE *argv, VALUE self) {
  ncinput *arg1 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncinput const *","ncinput_capslock_p", 1, argv[0] )); 
  }
  arg1 = (ncinput *)(argp1);
  result = (bool)ncinput_capslock_p((struct ncinput const *)arg1);
  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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncinput_ctrl_p(*args) ⇒ Object

call-seq:

ncinput_ctrl_p(n) -> bool

A module function.



14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
# File 'ext/notcurses/src/notcurses_wrap.c', line 14972

SWIGINTERN VALUE
_wrap_ncinput_ctrl_p(int argc, VALUE *argv, VALUE self) {
  ncinput *arg1 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncinput const *","ncinput_ctrl_p", 1, argv[0] )); 
  }
  arg1 = (ncinput *)(argp1);
  result = (bool)ncinput_ctrl_p((struct ncinput const *)arg1);
  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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncinput_equal_p(*args) ⇒ Object

call-seq:

ncinput_equal_p(n1, n2) -> bool

A module function.



15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
# File 'ext/notcurses/src/notcurses_wrap.c', line 15315

SWIGINTERN VALUE
_wrap_ncinput_equal_p(int argc, VALUE *argv, VALUE self) {
  ncinput *arg1 = (ncinput *) 0 ;
  ncinput *arg2 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncinput const *","ncinput_equal_p", 1, argv[0] )); 
  }
  arg1 = (ncinput *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncinput const *","ncinput_equal_p", 2, argv[1] )); 
  }
  arg2 = (ncinput *)(argp2);
  result = (bool)ncinput_equal_p((struct ncinput const *)arg1,(struct ncinput const *)arg2);
  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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n1")), 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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n2")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncinput_hyper_p(*args) ⇒ Object

call-seq:

ncinput_hyper_p(n) -> bool

A module function.



15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
# File 'ext/notcurses/src/notcurses_wrap.c', line 15168

SWIGINTERN VALUE
_wrap_ncinput_hyper_p(int argc, VALUE *argv, VALUE self) {
  ncinput *arg1 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncinput const *","ncinput_hyper_p", 1, argv[0] )); 
  }
  arg1 = (ncinput *)(argp1);
  result = (bool)ncinput_hyper_p((struct ncinput const *)arg1);
  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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncinput_meta_p(*args) ⇒ Object

call-seq:

ncinput_meta_p(n) -> bool

A module function.



15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
# File 'ext/notcurses/src/notcurses_wrap.c', line 15070

SWIGINTERN VALUE
_wrap_ncinput_meta_p(int argc, VALUE *argv, VALUE self) {
  ncinput *arg1 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncinput const *","ncinput_meta_p", 1, argv[0] )); 
  }
  arg1 = (ncinput *)(argp1);
  result = (bool)ncinput_meta_p((struct ncinput const *)arg1);
  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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncinput_nomod_p(*args) ⇒ Object

call-seq:

ncinput_nomod_p(ni) -> bool

A module function.



15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
# File 'ext/notcurses/src/notcurses_wrap.c', line 15797

SWIGINTERN VALUE
_wrap_ncinput_nomod_p(int argc, VALUE *argv, VALUE self) {
  ncinput *arg1 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncinput const *","ncinput_nomod_p", 1, argv[0] )); 
  }
  arg1 = (ncinput *)(argp1);
  result = (bool)ncinput_nomod_p((struct ncinput const *)arg1);
  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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ni")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncinput_numlock_p(*args) ⇒ Object

call-seq:

ncinput_numlock_p(n) -> bool

A module function.



15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
# File 'ext/notcurses/src/notcurses_wrap.c', line 15266

SWIGINTERN VALUE
_wrap_ncinput_numlock_p(int argc, VALUE *argv, VALUE self) {
  ncinput *arg1 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncinput const *","ncinput_numlock_p", 1, argv[0] )); 
  }
  arg1 = (ncinput *)(argp1);
  result = (bool)ncinput_numlock_p((struct ncinput const *)arg1);
  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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncinput_shift_p(*args) ⇒ Object

call-seq:

ncinput_shift_p(n) -> bool

A module function.



14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
# File 'ext/notcurses/src/notcurses_wrap.c', line 14923

SWIGINTERN VALUE
_wrap_ncinput_shift_p(int argc, VALUE *argv, VALUE self) {
  ncinput *arg1 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncinput const *","ncinput_shift_p", 1, argv[0] )); 
  }
  arg1 = (ncinput *)(argp1);
  result = (bool)ncinput_shift_p((struct ncinput const *)arg1);
  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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncinput_super_p(*args) ⇒ Object

call-seq:

ncinput_super_p(n) -> bool

A module function.



15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
# File 'ext/notcurses/src/notcurses_wrap.c', line 15119

SWIGINTERN VALUE
_wrap_ncinput_super_p(int argc, VALUE *argv, VALUE self) {
  ncinput *arg1 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncinput const *","ncinput_super_p", 1, argv[0] )); 
  }
  arg1 = (ncinput *)(argp1);
  result = (bool)ncinput_super_p((struct ncinput const *)arg1);
  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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nciprefix(*args) ⇒ Object

call-seq:

nciprefix(val, decimal, buf, omitdec) -> char const *

A module function.



49700
49701
49702
49703
49704
49705
49706
49707
49708
49709
49710
49711
49712
49713
49714
49715
49716
49717
49718
49719
49720
49721
49722
49723
49724
49725
49726
49727
49728
49729
49730
49731
49732
49733
49734
49735
49736
49737
49738
49739
49740
49741
49742
49743
49744
49745
49746
49747
49748
49749
49750
49751
49752
49753
49754
49755
49756
49757
49758
49759
49760
49761
49762
49763
49764
49765
49766
49767
49768
49769
49770
49771
49772
49773
49774
# File 'ext/notcurses/src/notcurses_wrap.c', line 49700

SWIGINTERN VALUE
_wrap_nciprefix(int argc, VALUE *argv, VALUE self) {
  uintmax_t arg1 ;
  uintmax_t arg2 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uintmax_t","nciprefix", 1, argv[0] ));
  } 
  arg1 = (uintmax_t)(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintmax_t","nciprefix", 2, argv[1] ));
  } 
  arg2 = (uintmax_t)(val2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","nciprefix", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","nciprefix", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  result = (char *)nciprefix(arg1,arg2,arg3,arg4);
  {
    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;
    }
    
    VALUE obj = arg3 ? rb_str_new2(arg3) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("buf")), obj);
  }
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.nciprefixfmt(*args) ⇒ Object

call-seq:

nciprefixfmt(x) -> int

A module function.



4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
# File 'ext/notcurses/src/notcurses_wrap.c', line 4136

SWIGINTERN VALUE
_wrap_nciprefixfmt(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","nciprefixfmt", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  result = (int)nciprefixfmt((char const *)arg1);
  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;
    }
    
    VALUE obj = arg1 ? rb_str_new2(arg1) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("x")), obj);
  }
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.nckey_mouse_p(*args) ⇒ Object

call-seq:

nckey_mouse_p(r) -> bool

A module function.



13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
# File 'ext/notcurses/src/notcurses_wrap.c', line 13670

SWIGINTERN VALUE
_wrap_nckey_mouse_p(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","nckey_mouse_p", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (bool)nckey_mouse_p(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

.nckey_pua_p(*args) ⇒ Object

call-seq:

nckey_pua_p(w) -> bool

A module function.



4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
# File 'ext/notcurses/src/notcurses_wrap.c', line 4836

SWIGINTERN VALUE
_wrap_nckey_pua_p(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","nckey_pua_p", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (bool)nckey_pua_p(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

.nckey_supppuaa_p(*args) ⇒ Object

call-seq:

nckey_supppuaa_p(w) -> bool

A module function.



4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
# File 'ext/notcurses/src/notcurses_wrap.c', line 4869

SWIGINTERN VALUE
_wrap_nckey_supppuaa_p(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","nckey_supppuaa_p", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (bool)nckey_supppuaa_p(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

.nckey_supppuab_p(*args) ⇒ Object

call-seq:

nckey_supppuab_p(w) -> bool

A module function.



4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
# File 'ext/notcurses/src/notcurses_wrap.c', line 4902

SWIGINTERN VALUE
_wrap_nckey_supppuab_p(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","nckey_supppuab_p", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (bool)nckey_supppuab_p(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

.nckey_synthesized_p(*args) ⇒ Object

call-seq:

nckey_synthesized_p(w) -> bool

A module function.



4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
# File 'ext/notcurses/src/notcurses_wrap.c', line 4803

SWIGINTERN VALUE
_wrap_nckey_synthesized_p(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","nckey_synthesized_p", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (bool)nckey_synthesized_p(arg1);
  vresult = SWIG_From_bool((bool)(result));
  return vresult;
fail:
  return Qnil;
}

.ncmenu_create(*args) ⇒ Object

call-seq:

ncmenu_create(n, opts) -> struct ncmenu *

A module function.



58324
58325
58326
58327
58328
58329
58330
58331
58332
58333
58334
58335
58336
58337
58338
58339
58340
58341
58342
58343
58344
58345
58346
58347
58348
58349
58350
58351
58352
58353
58354
58355
58356
58357
58358
58359
58360
58361
58362
58363
58364
58365
58366
58367
58368
58369
58370
58371
58372
58373
58374
58375
58376
58377
58378
58379
58380
58381
58382
58383
58384
58385
58386
58387
58388
58389
58390
58391
58392
58393
58394
58395
58396
58397
# File 'ext/notcurses/src/notcurses_wrap.c', line 58324

SWIGINTERN VALUE
_wrap_ncmenu_create(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncmenu_options *arg2 = (ncmenu_options *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  struct ncmenu *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncmenu_create", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncmenu_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncmenu_options const *","ncmenu_create", 2, argv[1] )); 
  }
  arg2 = (ncmenu_options *)(argp2);
  result = (struct ncmenu *)ncmenu_create(arg1,(struct ncmenu_options const *)arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncmenu *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncmenu, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncmenu_options const *");
    if (!ty) ty = SWIGTYPE_p_ncmenu_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmenu_destroy(*args) ⇒ Object

call-seq:

ncmenu_destroy(n)

A module function.



59146
59147
59148
59149
59150
59151
59152
59153
59154
59155
59156
59157
59158
59159
59160
59161
59162
59163
59164
59165
59166
59167
59168
59169
59170
59171
59172
59173
59174
59175
59176
59177
59178
59179
59180
59181
# File 'ext/notcurses/src/notcurses_wrap.c', line 59146

SWIGINTERN VALUE
_wrap_ncmenu_destroy(int argc, VALUE *argv, VALUE self) {
  struct ncmenu *arg1 = (struct ncmenu *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncmenu, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmenu *","ncmenu_destroy", 1, argv[0] )); 
  }
  arg1 = (struct ncmenu *)(argp1);
  ncmenu_destroy(arg1);
  {
    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 ncmenu *");
    if (!ty) ty = SWIGTYPE_p_ncmenu;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmenu_item_set_status(*args) ⇒ Object

call-seq:

ncmenu_item_set_status(n, section, item, enabled) -> int

A module function.



58711
58712
58713
58714
58715
58716
58717
58718
58719
58720
58721
58722
58723
58724
58725
58726
58727
58728
58729
58730
58731
58732
58733
58734
58735
58736
58737
58738
58739
58740
58741
58742
58743
58744
58745
58746
58747
58748
58749
58750
58751
58752
58753
58754
58755
58756
58757
58758
58759
58760
58761
58762
58763
58764
58765
58766
58767
58768
58769
58770
58771
58772
58773
58774
58775
58776
58777
58778
58779
58780
58781
58782
58783
58784
58785
58786
58787
58788
58789
58790
58791
58792
58793
58794
58795
58796
58797
58798
58799
58800
58801
58802
58803
58804
# File 'ext/notcurses/src/notcurses_wrap.c', line 58711

SWIGINTERN VALUE
_wrap_ncmenu_item_set_status(int argc, VALUE *argv, VALUE self) {
  struct ncmenu *arg1 = (struct ncmenu *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncmenu, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmenu *","ncmenu_item_set_status", 1, argv[0] )); 
  }
  arg1 = (struct ncmenu *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncmenu_item_set_status", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","ncmenu_item_set_status", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  ecode4 = SWIG_AsVal_bool(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","ncmenu_item_set_status", 4, argv[3] ));
  } 
  arg4 = (bool)(val4);
  result = (int)ncmenu_item_set_status(arg1,(char const *)arg2,(char const *)arg3,arg4);
  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 ncmenu *");
    if (!ty) ty = SWIGTYPE_p_ncmenu;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("section")), 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 = arg3 ? rb_str_new2(arg3) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("item")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.ncmenu_mouse_selected(*args) ⇒ Object

call-seq:

ncmenu_mouse_selected(n, click, ni) -> char const *

A module function.



58902
58903
58904
58905
58906
58907
58908
58909
58910
58911
58912
58913
58914
58915
58916
58917
58918
58919
58920
58921
58922
58923
58924
58925
58926
58927
58928
58929
58930
58931
58932
58933
58934
58935
58936
58937
58938
58939
58940
58941
58942
58943
58944
58945
58946
58947
58948
58949
58950
58951
58952
58953
58954
58955
58956
58957
58958
58959
58960
58961
58962
58963
58964
58965
58966
58967
58968
58969
58970
58971
58972
58973
58974
58975
58976
58977
58978
58979
58980
58981
58982
58983
58984
58985
58986
58987
58988
58989
58990
58991
58992
58993
58994
58995
58996
58997
58998
58999
59000
# File 'ext/notcurses/src/notcurses_wrap.c', line 58902

SWIGINTERN VALUE
_wrap_ncmenu_mouse_selected(int argc, VALUE *argv, VALUE self) {
  struct ncmenu *arg1 = (struct ncmenu *) 0 ;
  ncinput *arg2 = (ncinput *) 0 ;
  ncinput *arg3 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncmenu, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmenu const *","ncmenu_mouse_selected", 1, argv[0] )); 
  }
  arg1 = (struct ncmenu *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncinput const *","ncmenu_mouse_selected", 2, argv[1] )); 
  }
  arg2 = (ncinput *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "ncinput *","ncmenu_mouse_selected", 3, argv[2] )); 
  }
  arg3 = (ncinput *)(argp3);
  result = (char *)ncmenu_mouse_selected((struct ncmenu const *)arg1,(struct ncinput const *)arg2,arg3);
  {
    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 ncmenu const *");
    if (!ty) ty = SWIGTYPE_p_ncmenu;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("click")), 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("ncinput *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ni")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmenu_nextitem(*args) ⇒ Object

call-seq:

ncmenu_nextitem(n) -> int

A module function.



58613
58614
58615
58616
58617
58618
58619
58620
58621
58622
58623
58624
58625
58626
58627
58628
58629
58630
58631
58632
58633
58634
58635
58636
58637
58638
58639
58640
58641
58642
58643
58644
58645
58646
58647
58648
58649
58650
# File 'ext/notcurses/src/notcurses_wrap.c', line 58613

SWIGINTERN VALUE
_wrap_ncmenu_nextitem(int argc, VALUE *argv, VALUE self) {
  struct ncmenu *arg1 = (struct ncmenu *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncmenu, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmenu *","ncmenu_nextitem", 1, argv[0] )); 
  }
  arg1 = (struct ncmenu *)(argp1);
  result = (int)ncmenu_nextitem(arg1);
  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 ncmenu *");
    if (!ty) ty = SWIGTYPE_p_ncmenu;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmenu_nextsection(*args) ⇒ Object

call-seq:

ncmenu_nextsection(n) -> int

A module function.



58515
58516
58517
58518
58519
58520
58521
58522
58523
58524
58525
58526
58527
58528
58529
58530
58531
58532
58533
58534
58535
58536
58537
58538
58539
58540
58541
58542
58543
58544
58545
58546
58547
58548
58549
58550
58551
58552
# File 'ext/notcurses/src/notcurses_wrap.c', line 58515

SWIGINTERN VALUE
_wrap_ncmenu_nextsection(int argc, VALUE *argv, VALUE self) {
  struct ncmenu *arg1 = (struct ncmenu *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncmenu, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmenu *","ncmenu_nextsection", 1, argv[0] )); 
  }
  arg1 = (struct ncmenu *)(argp1);
  result = (int)ncmenu_nextsection(arg1);
  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 ncmenu *");
    if (!ty) ty = SWIGTYPE_p_ncmenu;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmenu_offer_input(*args) ⇒ Object

call-seq:

ncmenu_offer_input(n, nc) -> bool

A module function.



59073
59074
59075
59076
59077
59078
59079
59080
59081
59082
59083
59084
59085
59086
59087
59088
59089
59090
59091
59092
59093
59094
59095
59096
59097
59098
59099
59100
59101
59102
59103
59104
59105
59106
59107
59108
59109
59110
59111
59112
59113
59114
59115
59116
59117
59118
59119
59120
59121
59122
59123
59124
59125
59126
59127
59128
59129
59130
59131
59132
59133
59134
# File 'ext/notcurses/src/notcurses_wrap.c', line 59073

SWIGINTERN VALUE
_wrap_ncmenu_offer_input(int argc, VALUE *argv, VALUE self) {
  struct ncmenu *arg1 = (struct ncmenu *) 0 ;
  ncinput *arg2 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncmenu, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmenu *","ncmenu_offer_input", 1, argv[0] )); 
  }
  arg1 = (struct ncmenu *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncinput const *","ncmenu_offer_input", 2, argv[1] )); 
  }
  arg2 = (ncinput *)(argp2);
  result = (bool)ncmenu_offer_input(arg1,(struct ncinput const *)arg2);
  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 ncmenu *");
    if (!ty) ty = SWIGTYPE_p_ncmenu;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmenu_plane(*args) ⇒ Object

call-seq:

ncmenu_plane(n) -> struct ncplane *

A module function.



59012
59013
59014
59015
59016
59017
59018
59019
59020
59021
59022
59023
59024
59025
59026
59027
59028
59029
59030
59031
59032
59033
59034
59035
59036
59037
59038
59039
59040
59041
59042
59043
59044
59045
59046
59047
59048
59049
59050
59051
59052
59053
59054
59055
59056
59057
59058
59059
59060
59061
# File 'ext/notcurses/src/notcurses_wrap.c', line 59012

SWIGINTERN VALUE
_wrap_ncmenu_plane(int argc, VALUE *argv, VALUE self) {
  struct ncmenu *arg1 = (struct ncmenu *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncmenu, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmenu *","ncmenu_plane", 1, argv[0] )); 
  }
  arg1 = (struct ncmenu *)(argp1);
  result = (struct ncplane *)ncmenu_plane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncmenu *");
    if (!ty) ty = SWIGTYPE_p_ncmenu;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmenu_previtem(*args) ⇒ Object

call-seq:

ncmenu_previtem(n) -> int

A module function.



58662
58663
58664
58665
58666
58667
58668
58669
58670
58671
58672
58673
58674
58675
58676
58677
58678
58679
58680
58681
58682
58683
58684
58685
58686
58687
58688
58689
58690
58691
58692
58693
58694
58695
58696
58697
58698
58699
# File 'ext/notcurses/src/notcurses_wrap.c', line 58662

SWIGINTERN VALUE
_wrap_ncmenu_previtem(int argc, VALUE *argv, VALUE self) {
  struct ncmenu *arg1 = (struct ncmenu *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncmenu, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmenu *","ncmenu_previtem", 1, argv[0] )); 
  }
  arg1 = (struct ncmenu *)(argp1);
  result = (int)ncmenu_previtem(arg1);
  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 ncmenu *");
    if (!ty) ty = SWIGTYPE_p_ncmenu;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmenu_prevsection(*args) ⇒ Object

call-seq:

ncmenu_prevsection(n) -> int

A module function.



58564
58565
58566
58567
58568
58569
58570
58571
58572
58573
58574
58575
58576
58577
58578
58579
58580
58581
58582
58583
58584
58585
58586
58587
58588
58589
58590
58591
58592
58593
58594
58595
58596
58597
58598
58599
58600
58601
# File 'ext/notcurses/src/notcurses_wrap.c', line 58564

SWIGINTERN VALUE
_wrap_ncmenu_prevsection(int argc, VALUE *argv, VALUE self) {
  struct ncmenu *arg1 = (struct ncmenu *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncmenu, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmenu *","ncmenu_prevsection", 1, argv[0] )); 
  }
  arg1 = (struct ncmenu *)(argp1);
  result = (int)ncmenu_prevsection(arg1);
  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 ncmenu *");
    if (!ty) ty = SWIGTYPE_p_ncmenu;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmenu_rollup(*args) ⇒ Object

call-seq:

ncmenu_rollup(n) -> int

A module function.



58466
58467
58468
58469
58470
58471
58472
58473
58474
58475
58476
58477
58478
58479
58480
58481
58482
58483
58484
58485
58486
58487
58488
58489
58490
58491
58492
58493
58494
58495
58496
58497
58498
58499
58500
58501
58502
58503
# File 'ext/notcurses/src/notcurses_wrap.c', line 58466

SWIGINTERN VALUE
_wrap_ncmenu_rollup(int argc, VALUE *argv, VALUE self) {
  struct ncmenu *arg1 = (struct ncmenu *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncmenu, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmenu *","ncmenu_rollup", 1, argv[0] )); 
  }
  arg1 = (struct ncmenu *)(argp1);
  result = (int)ncmenu_rollup(arg1);
  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 ncmenu *");
    if (!ty) ty = SWIGTYPE_p_ncmenu;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmenu_selected(*args) ⇒ Object

call-seq:

ncmenu_selected(n, ni) -> char const *

A module function.



58816
58817
58818
58819
58820
58821
58822
58823
58824
58825
58826
58827
58828
58829
58830
58831
58832
58833
58834
58835
58836
58837
58838
58839
58840
58841
58842
58843
58844
58845
58846
58847
58848
58849
58850
58851
58852
58853
58854
58855
58856
58857
58858
58859
58860
58861
58862
58863
58864
58865
58866
58867
58868
58869
58870
58871
58872
58873
58874
58875
58876
58877
58878
58879
58880
58881
58882
58883
58884
58885
58886
58887
58888
58889
58890
# File 'ext/notcurses/src/notcurses_wrap.c', line 58816

SWIGINTERN VALUE
_wrap_ncmenu_selected(int argc, VALUE *argv, VALUE self) {
  struct ncmenu *arg1 = (struct ncmenu *) 0 ;
  ncinput *arg2 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncmenu, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmenu const *","ncmenu_selected", 1, argv[0] )); 
  }
  arg1 = (struct ncmenu *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncinput *","ncmenu_selected", 2, argv[1] )); 
  }
  arg2 = (ncinput *)(argp2);
  result = (char *)ncmenu_selected((struct ncmenu const *)arg1,arg2);
  {
    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 ncmenu const *");
    if (!ty) ty = SWIGTYPE_p_ncmenu;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncinput *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ni")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmenu_unroll(*args) ⇒ Object

call-seq:

ncmenu_unroll(n, sectionidx) -> int

A module function.



58409
58410
58411
58412
58413
58414
58415
58416
58417
58418
58419
58420
58421
58422
58423
58424
58425
58426
58427
58428
58429
58430
58431
58432
58433
58434
58435
58436
58437
58438
58439
58440
58441
58442
58443
58444
58445
58446
58447
58448
58449
58450
58451
58452
58453
58454
# File 'ext/notcurses/src/notcurses_wrap.c', line 58409

SWIGINTERN VALUE
_wrap_ncmenu_unroll(int argc, VALUE *argv, VALUE self) {
  struct ncmenu *arg1 = (struct ncmenu *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncmenu, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmenu *","ncmenu_unroll", 1, argv[0] )); 
  }
  arg1 = (struct ncmenu *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncmenu_unroll", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (int)ncmenu_unroll(arg1,arg2);
  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 ncmenu *");
    if (!ty) ty = SWIGTYPE_p_ncmenu;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmetricfwidth(*args) ⇒ Object

call-seq:

ncmetricfwidth(x, cols) -> int

A module function.



4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
# File 'ext/notcurses/src/notcurses_wrap.c', line 4030

SWIGINTERN VALUE
_wrap_ncmetricfwidth(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  int arg2 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","ncmetricfwidth", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncmetricfwidth", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (int)ncmetricfwidth((char const *)arg1,arg2);
  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;
    }
    
    VALUE obj = arg1 ? rb_str_new2(arg1) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("x")), obj);
  }
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.ncmultiselector_create(*args) ⇒ Object

call-seq:

ncmultiselector_create(n, opts) -> struct ncmultiselector *

A module function.



54551
54552
54553
54554
54555
54556
54557
54558
54559
54560
54561
54562
54563
54564
54565
54566
54567
54568
54569
54570
54571
54572
54573
54574
54575
54576
54577
54578
54579
54580
54581
54582
54583
54584
54585
54586
54587
54588
54589
54590
54591
54592
54593
54594
54595
54596
54597
54598
54599
54600
54601
54602
54603
54604
54605
54606
54607
54608
54609
54610
54611
54612
54613
54614
54615
54616
54617
54618
54619
54620
54621
54622
54623
54624
# File 'ext/notcurses/src/notcurses_wrap.c', line 54551

SWIGINTERN VALUE
_wrap_ncmultiselector_create(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncmultiselector_options *arg2 = (ncmultiselector_options *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  struct ncmultiselector *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncmultiselector_create", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncmultiselector_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncmultiselector_options const *","ncmultiselector_create", 2, argv[1] )); 
  }
  arg2 = (ncmultiselector_options *)(argp2);
  result = (struct ncmultiselector *)ncmultiselector_create(arg1,(struct ncmultiselector_options const *)arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncmultiselector *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncmultiselector, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncmultiselector_options const *");
    if (!ty) ty = SWIGTYPE_p_ncmultiselector_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmultiselector_destroy(*args) ⇒ Object

call-seq:

ncmultiselector_destroy(n)

A module function.



54851
54852
54853
54854
54855
54856
54857
54858
54859
54860
54861
54862
54863
54864
54865
54866
54867
54868
54869
54870
54871
54872
54873
54874
54875
54876
54877
54878
54879
54880
54881
54882
54883
54884
54885
54886
# File 'ext/notcurses/src/notcurses_wrap.c', line 54851

SWIGINTERN VALUE
_wrap_ncmultiselector_destroy(int argc, VALUE *argv, VALUE self) {
  struct ncmultiselector *arg1 = (struct ncmultiselector *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncmultiselector, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector *","ncmultiselector_destroy", 1, argv[0] )); 
  }
  arg1 = (struct ncmultiselector *)(argp1);
  ncmultiselector_destroy(arg1);
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncmultiselector *");
    if (!ty) ty = SWIGTYPE_p_ncmultiselector;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmultiselector_offer_input(*args) ⇒ Object

call-seq:

ncmultiselector_offer_input(n, nc) -> bool

A module function.



54778
54779
54780
54781
54782
54783
54784
54785
54786
54787
54788
54789
54790
54791
54792
54793
54794
54795
54796
54797
54798
54799
54800
54801
54802
54803
54804
54805
54806
54807
54808
54809
54810
54811
54812
54813
54814
54815
54816
54817
54818
54819
54820
54821
54822
54823
54824
54825
54826
54827
54828
54829
54830
54831
54832
54833
54834
54835
54836
54837
54838
54839
# File 'ext/notcurses/src/notcurses_wrap.c', line 54778

SWIGINTERN VALUE
_wrap_ncmultiselector_offer_input(int argc, VALUE *argv, VALUE self) {
  struct ncmultiselector *arg1 = (struct ncmultiselector *) 0 ;
  ncinput *arg2 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncmultiselector, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector *","ncmultiselector_offer_input", 1, argv[0] )); 
  }
  arg1 = (struct ncmultiselector *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncinput const *","ncmultiselector_offer_input", 2, argv[1] )); 
  }
  arg2 = (ncinput *)(argp2);
  result = (bool)ncmultiselector_offer_input(arg1,(struct ncinput const *)arg2);
  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 ncmultiselector *");
    if (!ty) ty = SWIGTYPE_p_ncmultiselector;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmultiselector_plane(*args) ⇒ Object

call-seq:

ncmultiselector_plane(n) -> struct ncplane *

A module function.



54717
54718
54719
54720
54721
54722
54723
54724
54725
54726
54727
54728
54729
54730
54731
54732
54733
54734
54735
54736
54737
54738
54739
54740
54741
54742
54743
54744
54745
54746
54747
54748
54749
54750
54751
54752
54753
54754
54755
54756
54757
54758
54759
54760
54761
54762
54763
54764
54765
54766
# File 'ext/notcurses/src/notcurses_wrap.c', line 54717

SWIGINTERN VALUE
_wrap_ncmultiselector_plane(int argc, VALUE *argv, VALUE self) {
  struct ncmultiselector *arg1 = (struct ncmultiselector *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncmultiselector, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector *","ncmultiselector_plane", 1, argv[0] )); 
  }
  arg1 = (struct ncmultiselector *)(argp1);
  result = (struct ncplane *)ncmultiselector_plane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncmultiselector *");
    if (!ty) ty = SWIGTYPE_p_ncmultiselector;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncmultiselector_selected(*args) ⇒ Object

call-seq:

ncmultiselector_selected(n, selected, count) -> int

A module function.



54636
54637
54638
54639
54640
54641
54642
54643
54644
54645
54646
54647
54648
54649
54650
54651
54652
54653
54654
54655
54656
54657
54658
54659
54660
54661
54662
54663
54664
54665
54666
54667
54668
54669
54670
54671
54672
54673
54674
54675
54676
54677
54678
54679
54680
54681
54682
54683
54684
54685
54686
54687
54688
54689
54690
54691
54692
54693
54694
54695
54696
54697
54698
54699
54700
54701
54702
54703
54704
54705
# File 'ext/notcurses/src/notcurses_wrap.c', line 54636

SWIGINTERN VALUE
_wrap_ncmultiselector_selected(int argc, VALUE *argv, VALUE self) {
  struct ncmultiselector *arg1 = (struct ncmultiselector *) 0 ;
  bool *arg2 = (bool *) 0 ;
  unsigned int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncmultiselector, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncmultiselector *","ncmultiselector_selected", 1, argv[0] )); 
  }
  arg1 = (struct ncmultiselector *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_bool, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "bool *","ncmultiselector_selected", 2, argv[1] )); 
  }
  arg2 = (bool *)(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncmultiselector_selected", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  result = (int)ncmultiselector_selected(arg1,arg2,arg3);
  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 ncmultiselector *");
    if (!ty) ty = SWIGTYPE_p_ncmultiselector;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("bool *");
    if (!ty) ty = SWIGTYPE_p_bool;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("selected")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncnmetric(*args) ⇒ Object

call-seq:

ncnmetric(val, s, decimal, buf, omitdec, mult, uprefix) -> char const *

A module function.



49504
49505
49506
49507
49508
49509
49510
49511
49512
49513
49514
49515
49516
49517
49518
49519
49520
49521
49522
49523
49524
49525
49526
49527
49528
49529
49530
49531
49532
49533
49534
49535
49536
49537
49538
49539
49540
49541
49542
49543
49544
49545
49546
49547
49548
49549
49550
49551
49552
49553
49554
49555
49556
49557
49558
49559
49560
49561
49562
49563
49564
49565
49566
49567
49568
49569
49570
49571
49572
49573
49574
49575
49576
49577
49578
49579
49580
49581
49582
49583
49584
49585
49586
49587
49588
49589
49590
49591
49592
49593
49594
49595
49596
49597
49598
49599
49600
49601
49602
# File 'ext/notcurses/src/notcurses_wrap.c', line 49504

SWIGINTERN VALUE
_wrap_ncnmetric(int argc, VALUE *argv, VALUE self) {
  uintmax_t arg1 ;
  size_t arg2 ;
  uintmax_t arg3 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  uintmax_t arg6 ;
  int arg7 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  int res4 ;
  char *buf4 = 0 ;
  int alloc4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  unsigned long val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 7) || (argc > 7)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uintmax_t","ncnmetric", 1, argv[0] ));
  } 
  arg1 = (uintmax_t)(val1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","ncnmetric", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uintmax_t","ncnmetric", 3, argv[2] ));
  } 
  arg3 = (uintmax_t)(val3);
  res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char *","ncnmetric", 4, argv[3] ));
  }
  arg4 = (char *)(buf4);
  ecode5 = SWIG_AsVal_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","ncnmetric", 5, argv[4] ));
  } 
  arg5 = (int)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_long(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "uintmax_t","ncnmetric", 6, argv[5] ));
  } 
  arg6 = (uintmax_t)(val6);
  ecode7 = SWIG_AsVal_int(argv[6], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","ncnmetric", 7, argv[6] ));
  } 
  arg7 = (int)(val7);
  result = (char *)ncnmetric(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  {
    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;
    }
    
    VALUE obj = arg4 ? rb_str_new2(arg4) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("buf")), obj);
  }
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return vresult;
fail:
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return Qnil;
}

.ncpalette_free(*args) ⇒ Object

call-seq:

ncpalette_free(p)

A module function.



20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
# File 'ext/notcurses/src/notcurses_wrap.c', line 20996

SWIGINTERN VALUE
_wrap_ncpalette_free(int argc, VALUE *argv, VALUE self) {
  ncpalette *arg1 = (ncpalette *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncpalette, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncpalette *","ncpalette_free", 1, argv[0] )); 
  }
  arg1 = (ncpalette *)(argp1);
  ncpalette_free(arg1);
  {
    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("ncpalette *");
    if (!ty) ty = SWIGTYPE_p_ncpalette;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("p")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncpalette_get(*args) ⇒ Object

call-seq:

ncpalette_get(p, idx, palent) -> int

A module function.



20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
# File 'ext/notcurses/src/notcurses_wrap.c', line 20670

SWIGINTERN VALUE
_wrap_ncpalette_get(int argc, VALUE *argv, VALUE self) {
  ncpalette *arg1 = (ncpalette *) 0 ;
  int arg2 ;
  uint32_t *arg3 = (uint32_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncpalette, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncpalette const *","ncpalette_get", 1, argv[0] )); 
  }
  arg1 = (ncpalette *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncpalette_get", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  {
    arg3 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (uint32_t) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg3 = (uint32_t) NUM2DBL(argv[2]);
      } else {
        *arg3 = (uint32_t) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (int)ncpalette_get((struct ncpalette const *)arg1,arg2,arg3);
  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("ncpalette const *");
    if (!ty) ty = SWIGTYPE_p_ncpalette;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("p")), obj);
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("palent")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncpalette_get_rgb8(*args) ⇒ Object

call-seq:

ncpalette_get_rgb8(p, idx, r, g, b) -> int

A module function.



20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
# File 'ext/notcurses/src/notcurses_wrap.c', line 20780

SWIGINTERN VALUE
_wrap_ncpalette_get_rgb8(int argc, VALUE *argv, VALUE self) {
  ncpalette *arg1 = (ncpalette *) 0 ;
  int arg2 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  unsigned int *arg4 = (unsigned int *) 0 ;
  unsigned int *arg5 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncpalette, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncpalette const *","ncpalette_get_rgb8", 1, argv[0] )); 
  }
  arg1 = (ncpalette *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncpalette_get_rgb8", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg4 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (unsigned int) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg4 = (unsigned int) NUM2DBL(argv[3]);
      } else {
        *arg4 = (unsigned int) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg5 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg5 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg5 = (unsigned int) NUM2INT(argv[4]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg5 = (unsigned int) NUM2DBL(argv[4]);
      } else {
        *arg5 = (unsigned int) NUM2LL(argv[4]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (int)ncpalette_get_rgb8((struct ncpalette const *)arg1,arg2,arg3,arg4,arg5);
  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("ncpalette const *");
    if (!ty) ty = SWIGTYPE_p_ncpalette;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("p")), obj);
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("r")), converted_value);
      free(arg3);
    }
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("g")), converted_value);
      free(arg4);
    }
  }
  {
    if (arg5 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg5);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg5);
        } else {
          converted_value = LL2NUM(*arg5);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("b")), converted_value);
      free(arg5);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncpalette_new(*args) ⇒ Object

call-seq:

ncpalette_new(nc) -> Ncpalette

A module function.



20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
# File 'ext/notcurses/src/notcurses_wrap.c', line 20390

SWIGINTERN VALUE
_wrap_ncpalette_new(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ncpalette *result = 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(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","ncpalette_new", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (ncpalette *)ncpalette_new(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("ncpalette *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncpalette, 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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncpalette_set(*args) ⇒ Object

call-seq:

ncpalette_set(p, idx, rgb) -> int

A module function.



20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
# File 'ext/notcurses/src/notcurses_wrap.c', line 20605

SWIGINTERN VALUE
_wrap_ncpalette_set(int argc, VALUE *argv, VALUE self) {
  ncpalette *arg1 = (ncpalette *) 0 ;
  int arg2 ;
  unsigned int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncpalette, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncpalette *","ncpalette_set", 1, argv[0] )); 
  }
  arg1 = (ncpalette *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncpalette_set", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncpalette_set", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  result = (int)ncpalette_set(arg1,arg2,arg3);
  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("ncpalette *");
    if (!ty) ty = SWIGTYPE_p_ncpalette;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("p")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncpalette_set_rgb8(*args) ⇒ Object

call-seq:

ncpalette_set_rgb8(p, idx, r, g, b) -> int

A module function.



20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
# File 'ext/notcurses/src/notcurses_wrap.c', line 20524

SWIGINTERN VALUE
_wrap_ncpalette_set_rgb8(int argc, VALUE *argv, VALUE self) {
  ncpalette *arg1 = (ncpalette *) 0 ;
  int arg2 ;
  unsigned int arg3 ;
  unsigned int arg4 ;
  unsigned int arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncpalette, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "ncpalette *","ncpalette_set_rgb8", 1, argv[0] )); 
  }
  arg1 = (ncpalette *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncpalette_set_rgb8", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncpalette_set_rgb8", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncpalette_set_rgb8", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncpalette_set_rgb8", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  result = (int)ncpalette_set_rgb8(arg1,arg2,arg3,arg4,arg5);
  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("ncpalette *");
    if (!ty) ty = SWIGTYPE_p_ncpalette;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("p")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncpalette_use(*args) ⇒ Object

call-seq:

ncpalette_use(nc, p) -> int

A module function.



20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
# File 'ext/notcurses/src/notcurses_wrap.c', line 20451

SWIGINTERN VALUE
_wrap_ncpalette_use(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  ncpalette *arg2 = (ncpalette *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","ncpalette_use", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncpalette, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncpalette const *","ncpalette_use", 2, argv[1] )); 
  }
  arg2 = (ncpalette *)(argp2);
  result = (int)ncpalette_use(arg1,(struct ncpalette const *)arg2);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), 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("ncpalette const *");
    if (!ty) ty = SWIGTYPE_p_ncpalette;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("p")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncpile_bottom(*args) ⇒ Object

call-seq:

ncpile_bottom(n) -> struct ncplane *

A module function.



13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
# File 'ext/notcurses/src/notcurses_wrap.c', line 13102

SWIGINTERN VALUE
_wrap_ncpile_bottom(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncpile_bottom", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (struct ncplane *)ncpile_bottom(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncpile_create(*args) ⇒ Object

call-seq:

ncpile_create(nc, nopts) -> struct ncplane *

A module function.



18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
# File 'ext/notcurses/src/notcurses_wrap.c', line 18874

SWIGINTERN VALUE
_wrap_ncpile_create(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  ncplane_options *arg2 = (ncplane_options *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  struct ncplane *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","ncpile_create", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncplane_options const *","ncpile_create", 2, argv[1] )); 
  }
  arg2 = (ncplane_options *)(argp2);
  result = (struct ncplane *)ncpile_create(arg1,(struct ncplane_options const *)arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), 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("ncplane_options const *");
    if (!ty) ty = SWIGTYPE_p_ncplane_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nopts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncpile_rasterize(*args) ⇒ Object

call-seq:

ncpile_rasterize(n) -> int

A module function.



13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
# File 'ext/notcurses/src/notcurses_wrap.c', line 13334

SWIGINTERN VALUE
_wrap_ncpile_rasterize(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncpile_rasterize", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (int)ncpile_rasterize(arg1);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncpile_render(*args) ⇒ Object

call-seq:

ncpile_render(n) -> int

A module function.



13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
# File 'ext/notcurses/src/notcurses_wrap.c', line 13285

SWIGINTERN VALUE
_wrap_ncpile_render(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncpile_render", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (int)ncpile_render(arg1);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncpile_render_to_buffer(*args) ⇒ Object

call-seq:

ncpile_render_to_buffer(p, buf, buflen) -> int

A module function.



13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
# File 'ext/notcurses/src/notcurses_wrap.c', line 13432

SWIGINTERN VALUE
_wrap_ncpile_render_to_buffer(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  char **arg2 = (char **) 0 ;
  size_t *arg3 = (size_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncpile_render_to_buffer", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_p_char, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char **","ncpile_render_to_buffer", 2, argv[1] )); 
  }
  arg2 = (char **)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_size_t, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "size_t *","ncpile_render_to_buffer", 3, argv[2] )); 
  }
  arg3 = (size_t *)(argp3);
  result = (int)ncpile_render_to_buffer(arg1,arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("p")), 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("char **");
    if (!ty) ty = SWIGTYPE_p_p_char;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("buf")), obj);
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(size_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("size_t", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("buflen")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncpile_render_to_file(*args) ⇒ Object

call-seq:

ncpile_render_to_file(p, fp) -> int

A module function.



13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
# File 'ext/notcurses/src/notcurses_wrap.c', line 13543

SWIGINTERN VALUE
_wrap_ncpile_render_to_file(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  FILE *arg2 = (FILE *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncpile_render_to_file", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    if (argv[1] == Qnil) {
      arg2 = NULL;
    } else if (rb_respond_to(argv[1], rb_intern("fileno"))) {
      int fd = NUM2INT(rb_funcall(argv[1], rb_intern("fileno"), 0));
      const char* mode = get_file_mode(fd);
      arg2 = fdopen(dup(fd), mode);
      if (!arg2) {
        rb_raise(rb_eIOError, "Unable to get FILE* from Ruby IO object");
      }
    } else {
      SWIG_exception(SWIG_TypeError, "Expected IO object or nil");
    }
  }
  result = (int)ncpile_render_to_file(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("p")), 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("FILE *");
    if (!ty) ty = SWIGTYPE_p_FILE;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("fp")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncpile_top(*args) ⇒ Object

call-seq:

ncpile_top(n) -> struct ncplane *

A module function.



13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
# File 'ext/notcurses/src/notcurses_wrap.c', line 13041

SWIGINTERN VALUE
_wrap_ncpile_top(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncpile_top", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (struct ncplane *)ncpile_top(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncpixel(*args) ⇒ Object

call-seq:

ncpixel(r, g, b) -> uint32_t

A module function.



47778
47779
47780
47781
47782
47783
47784
47785
47786
47787
47788
47789
47790
47791
47792
47793
47794
47795
47796
47797
47798
47799
47800
47801
47802
47803
47804
47805
47806
47807
47808
47809
47810
47811
47812
47813
47814
47815
# File 'ext/notcurses/src/notcurses_wrap.c', line 47778

SWIGINTERN VALUE
_wrap_ncpixel(int argc, VALUE *argv, VALUE self) {
  unsigned int arg1 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned int","ncpixel", 1, argv[0] ));
  } 
  arg1 = (unsigned int)(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncpixel", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncpixel", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  result = (uint32_t)ncpixel(arg1,arg2,arg3);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncpixel_a(*args) ⇒ Object

call-seq:

ncpixel_a(pixel) -> unsigned int

A module function.



47302
47303
47304
47305
47306
47307
47308
47309
47310
47311
47312
47313
47314
47315
47316
47317
47318
47319
47320
47321
47322
47323
# File 'ext/notcurses/src/notcurses_wrap.c', line 47302

SWIGINTERN VALUE
_wrap_ncpixel_a(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncpixel_a", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (unsigned int)ncpixel_a(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncpixel_b(*args) ⇒ Object

call-seq:

ncpixel_b(pixel) -> unsigned int

A module function.



47401
47402
47403
47404
47405
47406
47407
47408
47409
47410
47411
47412
47413
47414
47415
47416
47417
47418
47419
47420
47421
47422
# File 'ext/notcurses/src/notcurses_wrap.c', line 47401

SWIGINTERN VALUE
_wrap_ncpixel_b(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncpixel_b", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (unsigned int)ncpixel_b(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncpixel_g(*args) ⇒ Object

call-seq:

ncpixel_g(pixel) -> unsigned int

A module function.



47368
47369
47370
47371
47372
47373
47374
47375
47376
47377
47378
47379
47380
47381
47382
47383
47384
47385
47386
47387
47388
47389
# File 'ext/notcurses/src/notcurses_wrap.c', line 47368

SWIGINTERN VALUE
_wrap_ncpixel_g(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncpixel_g", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (unsigned int)ncpixel_g(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncpixel_r(*args) ⇒ Object

call-seq:

ncpixel_r(pixel) -> unsigned int

A module function.



47335
47336
47337
47338
47339
47340
47341
47342
47343
47344
47345
47346
47347
47348
47349
47350
47351
47352
47353
47354
47355
47356
# File 'ext/notcurses/src/notcurses_wrap.c', line 47335

SWIGINTERN VALUE
_wrap_ncpixel_r(int argc, VALUE *argv, VALUE self) {
  uint32_t arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint32_t","ncpixel_r", 1, argv[0] ));
  } 
  arg1 = (uint32_t)(val1);
  result = (unsigned int)ncpixel_r(arg1);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}

.ncpixel_set_a(*args) ⇒ Object

call-seq:

ncpixel_set_a(pixel, a) -> int

A module function.



47434
47435
47436
47437
47438
47439
47440
47441
47442
47443
47444
47445
47446
47447
47448
47449
47450
47451
47452
47453
47454
47455
47456
47457
47458
47459
47460
47461
47462
47463
47464
47465
47466
47467
47468
47469
47470
47471
47472
47473
47474
47475
47476
47477
47478
47479
47480
47481
47482
47483
47484
47485
47486
47487
47488
47489
47490
47491
47492
47493
47494
47495
47496
47497
47498
47499
47500
47501
47502
47503
47504
47505
47506
47507
47508
# File 'ext/notcurses/src/notcurses_wrap.c', line 47434

SWIGINTERN VALUE
_wrap_ncpixel_set_a(int argc, VALUE *argv, VALUE self) {
  uint32_t *arg1 = (uint32_t *) 0 ;
  unsigned int arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint32_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg1 = (uint32_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint32_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncpixel_set_a", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncpixel_set_a(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("pixel")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncpixel_set_b(*args) ⇒ Object

call-seq:

ncpixel_set_b(pixel, b) -> int

A module function.



47692
47693
47694
47695
47696
47697
47698
47699
47700
47701
47702
47703
47704
47705
47706
47707
47708
47709
47710
47711
47712
47713
47714
47715
47716
47717
47718
47719
47720
47721
47722
47723
47724
47725
47726
47727
47728
47729
47730
47731
47732
47733
47734
47735
47736
47737
47738
47739
47740
47741
47742
47743
47744
47745
47746
47747
47748
47749
47750
47751
47752
47753
47754
47755
47756
47757
47758
47759
47760
47761
47762
47763
47764
47765
47766
# File 'ext/notcurses/src/notcurses_wrap.c', line 47692

SWIGINTERN VALUE
_wrap_ncpixel_set_b(int argc, VALUE *argv, VALUE self) {
  uint32_t *arg1 = (uint32_t *) 0 ;
  unsigned int arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint32_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg1 = (uint32_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint32_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncpixel_set_b", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncpixel_set_b(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("pixel")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncpixel_set_g(*args) ⇒ Object

call-seq:

ncpixel_set_g(pixel, g) -> int

A module function.



47606
47607
47608
47609
47610
47611
47612
47613
47614
47615
47616
47617
47618
47619
47620
47621
47622
47623
47624
47625
47626
47627
47628
47629
47630
47631
47632
47633
47634
47635
47636
47637
47638
47639
47640
47641
47642
47643
47644
47645
47646
47647
47648
47649
47650
47651
47652
47653
47654
47655
47656
47657
47658
47659
47660
47661
47662
47663
47664
47665
47666
47667
47668
47669
47670
47671
47672
47673
47674
47675
47676
47677
47678
47679
47680
# File 'ext/notcurses/src/notcurses_wrap.c', line 47606

SWIGINTERN VALUE
_wrap_ncpixel_set_g(int argc, VALUE *argv, VALUE self) {
  uint32_t *arg1 = (uint32_t *) 0 ;
  unsigned int arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint32_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg1 = (uint32_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint32_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncpixel_set_g", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncpixel_set_g(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("pixel")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncpixel_set_r(*args) ⇒ Object

call-seq:

ncpixel_set_r(pixel, r) -> int

A module function.



47520
47521
47522
47523
47524
47525
47526
47527
47528
47529
47530
47531
47532
47533
47534
47535
47536
47537
47538
47539
47540
47541
47542
47543
47544
47545
47546
47547
47548
47549
47550
47551
47552
47553
47554
47555
47556
47557
47558
47559
47560
47561
47562
47563
47564
47565
47566
47567
47568
47569
47570
47571
47572
47573
47574
47575
47576
47577
47578
47579
47580
47581
47582
47583
47584
47585
47586
47587
47588
47589
47590
47591
47592
47593
47594
# File 'ext/notcurses/src/notcurses_wrap.c', line 47520

SWIGINTERN VALUE
_wrap_ncpixel_set_r(int argc, VALUE *argv, VALUE self) {
  uint32_t *arg1 = (uint32_t *) 0 ;
  unsigned int arg2 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  {
    arg1 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint32_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg1 = (uint32_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint32_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncpixel_set_r", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncpixel_set_r(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("pixel")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncpixel_set_rgb8(*args) ⇒ Object

call-seq:

ncpixel_set_rgb8(pixel, r, g, b) -> int

A module function.



47827
47828
47829
47830
47831
47832
47833
47834
47835
47836
47837
47838
47839
47840
47841
47842
47843
47844
47845
47846
47847
47848
47849
47850
47851
47852
47853
47854
47855
47856
47857
47858
47859
47860
47861
47862
47863
47864
47865
47866
47867
47868
47869
47870
47871
47872
47873
47874
47875
47876
47877
47878
47879
47880
47881
47882
47883
47884
47885
47886
47887
47888
47889
47890
47891
47892
47893
47894
47895
47896
47897
47898
47899
47900
47901
47902
47903
47904
47905
47906
47907
47908
47909
47910
47911
47912
47913
47914
47915
47916
47917
# File 'ext/notcurses/src/notcurses_wrap.c', line 47827

SWIGINTERN VALUE
_wrap_ncpixel_set_rgb8(int argc, VALUE *argv, VALUE self) {
  uint32_t *arg1 = (uint32_t *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  unsigned int arg4 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  {
    arg1 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint32_t) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg1 = (uint32_t) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint32_t) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncpixel_set_rgb8", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncpixel_set_rgb8", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncpixel_set_rgb8", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (int)ncpixel_set_rgb8(arg1,arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("pixel")), converted_value);
      free(arg1);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_above(*args) ⇒ Object

call-seq:

ncplane_above(n) -> struct ncplane *

A module function.



28622
28623
28624
28625
28626
28627
28628
28629
28630
28631
28632
28633
28634
28635
28636
28637
28638
28639
28640
28641
28642
28643
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
28654
28655
28656
28657
28658
28659
28660
28661
28662
28663
28664
28665
28666
28667
28668
28669
28670
28671
# File 'ext/notcurses/src/notcurses_wrap.c', line 28622

SWIGINTERN VALUE
_wrap_ncplane_above(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_above", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (struct ncplane *)ncplane_above(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_abs_x(*args) ⇒ Object

call-seq:

ncplane_abs_x(n) -> int

A module function.



27837
27838
27839
27840
27841
27842
27843
27844
27845
27846
27847
27848
27849
27850
27851
27852
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
27872
27873
27874
# File 'ext/notcurses/src/notcurses_wrap.c', line 27837

SWIGINTERN VALUE
_wrap_ncplane_abs_x(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_abs_x", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (int)ncplane_abs_x((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_abs_y(*args) ⇒ Object

call-seq:

ncplane_abs_y(n) -> int

A module function.



27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
# File 'ext/notcurses/src/notcurses_wrap.c', line 27788

SWIGINTERN VALUE
_wrap_ncplane_abs_y(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_abs_y", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (int)ncplane_abs_y((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_abs_yx(*args) ⇒ Object

call-seq:

ncplane_abs_yx(n, y, x)

A module function.



27634
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
# File 'ext/notcurses/src/notcurses_wrap.c', line 27634

SWIGINTERN VALUE
_wrap_ncplane_abs_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int *arg2 = (int *) 0 ;
  int *arg3 = (int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_abs_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    arg2 = (int *) malloc(sizeof(int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg2 = (int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (int *) malloc(sizeof(int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg3 = (int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ncplane_abs_yx((struct ncplane const *)arg1,arg2,arg3);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("y")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("x")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_as_rgba(*args) ⇒ Object

call-seq:

ncplane_as_rgba(n, blit, begy, begx, leny, lenx, pxdimy, pxdimx) -> uint32_t *

A module function.



29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863
29864
29865
29866
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876
29877
29878
29879
29880
29881
29882
29883
29884
29885
29886
29887
29888
29889
29890
29891
29892
29893
29894
29895
29896
29897
29898
29899
29900
29901
29902
29903
29904
29905
29906
29907
29908
29909
29910
29911
29912
29913
29914
29915
29916
29917
29918
29919
29920
29921
29922
29923
29924
29925
29926
29927
29928
29929
29930
29931
29932
29933
29934
29935
29936
29937
29938
29939
29940
29941
29942
29943
29944
29945
29946
29947
29948
29949
29950
29951
29952
29953
29954
29955
29956
29957
29958
29959
29960
29961
29962
29963
29964
29965
29966
29967
29968
29969
29970
29971
29972
29973
29974
29975
29976
29977
29978
29979
29980
29981
29982
29983
29984
29985
29986
29987
29988
29989
29990
29991
29992
29993
29994
29995
29996
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010
30011
30012
# File 'ext/notcurses/src/notcurses_wrap.c', line 29817

SWIGINTERN VALUE
_wrap_ncplane_as_rgba(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncblitter_e arg2 ;
  int arg3 ;
  int arg4 ;
  unsigned int arg5 ;
  unsigned int arg6 ;
  unsigned int *arg7 = (unsigned int *) 0 ;
  unsigned int *arg8 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  uint32_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 8) || (argc > 8)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_as_rgba", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ncblitter_e","ncplane_as_rgba", 2, argv[1] ));
  } 
  arg2 = (ncblitter_e)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_as_rgba", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncplane_as_rgba", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncplane_as_rgba", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "unsigned int","ncplane_as_rgba", 6, argv[5] ));
  } 
  arg6 = (unsigned int)(val6);
  {
    arg7 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg7 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg7 = (unsigned int) NUM2INT(argv[6]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg7 = (unsigned int) NUM2DBL(argv[6]);
      } else {
        *arg7 = (unsigned int) NUM2LL(argv[6]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg8 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg8 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg8 = (unsigned int) NUM2INT(argv[7]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg8 = (unsigned int) NUM2DBL(argv[7]);
      } else {
        *arg8 = (unsigned int) NUM2LL(argv[7]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (uint32_t *)ncplane_as_rgba((struct ncplane const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("uint32_t *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_unsigned_int, 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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg7 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg7);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg7);
        } else {
          converted_value = LL2NUM(*arg7);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("pxdimy")), converted_value);
      free(arg7);
    }
  }
  {
    if (arg8 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg8);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg8);
        } else {
          converted_value = LL2NUM(*arg8);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("pxdimx")), converted_value);
      free(arg8);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_ascii_box(*args) ⇒ Object

call-seq:

ncplane_ascii_box(n, styles, channels, ylen, xlen, ctlword) -> int

A module function.



41346
41347
41348
41349
41350
41351
41352
41353
41354
41355
41356
41357
41358
41359
41360
41361
41362
41363
41364
41365
41366
41367
41368
41369
41370
41371
41372
41373
41374
41375
41376
41377
41378
41379
41380
41381
41382
41383
41384
41385
41386
41387
41388
41389
41390
41391
41392
41393
41394
41395
41396
41397
41398
41399
41400
41401
41402
41403
41404
41405
41406
41407
41408
41409
41410
41411
41412
41413
41414
41415
41416
41417
41418
41419
41420
41421
41422
41423
# File 'ext/notcurses/src/notcurses_wrap.c', line 41346

SWIGINTERN VALUE
_wrap_ncplane_ascii_box(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint16_t arg2 ;
  uint64_t arg3 ;
  unsigned int arg4 ;
  unsigned int arg5 ;
  unsigned int arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_ascii_box", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","ncplane_ascii_box", 2, argv[1] ));
  } 
  arg2 = (uint16_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncplane_ascii_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_ascii_box", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncplane_ascii_box", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "unsigned int","ncplane_ascii_box", 6, argv[5] ));
  } 
  arg6 = (unsigned int)(val6);
  result = (int)ncplane_ascii_box(arg1,arg2,arg3,arg4,arg5,arg6);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_at_cursor(*args) ⇒ Object

call-seq:

ncplane_at_cursor(n, stylemask, channels) -> char *

A module function.



28911
28912
28913
28914
28915
28916
28917
28918
28919
28920
28921
28922
28923
28924
28925
28926
28927
28928
28929
28930
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940
28941
28942
28943
28944
28945
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956
28957
28958
28959
28960
28961
28962
28963
28964
28965
28966
28967
28968
28969
28970
28971
28972
28973
28974
28975
28976
28977
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996
28997
28998
28999
29000
29001
29002
29003
29004
29005
29006
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020
29021
29022
29023
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045
29046
29047
29048
29049
29050
29051
29052
29053
29054
29055
29056
29057
29058
29059
29060
29061
29062
29063
29064
29065
29066
29067
# File 'ext/notcurses/src/notcurses_wrap.c', line 28911

SWIGINTERN VALUE
_wrap_ncplane_at_cursor(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint16_t *arg2 = (uint16_t *) 0 ;
  uint64_t *arg3 = (uint64_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_at_cursor", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    arg2 = (uint16_t *) malloc(sizeof(uint16_t));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint16_t)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (uint16_t) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("uint16_t", "double") == 0) {
        *arg2 = (uint16_t) NUM2DBL(argv[1]);
      } else {
        *arg2 = (uint16_t) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (uint64_t) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg3 = (uint64_t) NUM2DBL(argv[2]);
      } else {
        *arg3 = (uint64_t) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (char *)ncplane_at_cursor(arg1,arg2,arg3);
  {
    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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint16_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("uint16_t", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("stylemask")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_at_cursor_cell(*args) ⇒ Object

call-seq:

ncplane_at_cursor_cell(n, c) -> int

A module function.



29079
29080
29081
29082
29083
29084
29085
29086
29087
29088
29089
29090
29091
29092
29093
29094
29095
29096
29097
29098
29099
29100
29101
29102
29103
29104
29105
29106
29107
29108
29109
29110
29111
29112
29113
29114
29115
29116
29117
29118
29119
29120
29121
29122
29123
29124
29125
29126
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138
29139
29140
# File 'ext/notcurses/src/notcurses_wrap.c', line 29079

SWIGINTERN VALUE
_wrap_ncplane_at_cursor_cell(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_at_cursor_cell", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell *","ncplane_at_cursor_cell", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  result = (int)ncplane_at_cursor_cell(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_at_yx(*args) ⇒ Object

call-seq:

ncplane_at_yx(n, y, x, stylemask, channels) -> char *

A module function.



29152
29153
29154
29155
29156
29157
29158
29159
29160
29161
29162
29163
29164
29165
29166
29167
29168
29169
29170
29171
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189
29190
29191
29192
29193
29194
29195
29196
29197
29198
29199
29200
29201
29202
29203
29204
29205
29206
29207
29208
29209
29210
29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221
29222
29223
29224
29225
29226
29227
29228
29229
29230
29231
29232
29233
29234
29235
29236
29237
29238
29239
29240
29241
29242
29243
29244
29245
29246
29247
29248
29249
29250
29251
29252
29253
29254
29255
29256
29257
29258
29259
29260
29261
29262
29263
29264
29265
29266
29267
29268
29269
29270
29271
29272
29273
29274
29275
29276
29277
29278
29279
29280
29281
29282
29283
29284
29285
29286
29287
29288
29289
29290
29291
29292
29293
29294
29295
29296
29297
29298
29299
29300
29301
29302
29303
29304
29305
29306
29307
29308
29309
29310
29311
29312
29313
29314
29315
29316
29317
29318
29319
29320
29321
29322
29323
29324
# File 'ext/notcurses/src/notcurses_wrap.c', line 29152

SWIGINTERN VALUE
_wrap_ncplane_at_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  uint16_t *arg4 = (uint16_t *) 0 ;
  uint64_t *arg5 = (uint64_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_at_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_at_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_at_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  {
    arg4 = (uint16_t *) malloc(sizeof(uint16_t));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint16_t)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (uint16_t) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("uint16_t", "double") == 0) {
        *arg4 = (uint16_t) NUM2DBL(argv[3]);
      } else {
        *arg4 = (uint16_t) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg5 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg5 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg5 = (uint64_t) NUM2INT(argv[4]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg5 = (uint64_t) NUM2DBL(argv[4]);
      } else {
        *arg5 = (uint64_t) NUM2LL(argv[4]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (char *)ncplane_at_yx((struct ncplane const *)arg1,arg2,arg3,arg4,arg5);
  {
    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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint16_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("uint16_t", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("stylemask")), converted_value);
      free(arg4);
    }
  }
  {
    if (arg5 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg5);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg5);
        } else {
          converted_value = LL2NUM(*arg5);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg5);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_at_yx_cell(*args) ⇒ Object

call-seq:

ncplane_at_yx_cell(n, y, x, c) -> int

A module function.



29336
29337
29338
29339
29340
29341
29342
29343
29344
29345
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371
29372
29373
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384
29385
29386
29387
29388
29389
29390
29391
29392
29393
29394
29395
29396
29397
29398
29399
29400
29401
29402
29403
29404
29405
29406
29407
29408
29409
29410
29411
29412
29413
# File 'ext/notcurses/src/notcurses_wrap.c', line 29336

SWIGINTERN VALUE
_wrap_ncplane_at_yx_cell(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  nccell *arg4 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_at_yx_cell", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_at_yx_cell", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_at_yx_cell", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "nccell *","ncplane_at_yx_cell", 4, argv[3] )); 
  }
  arg4 = (nccell *)(argp4);
  result = (int)ncplane_at_yx_cell(arg1,arg2,arg3,arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_autogrow_p(*args) ⇒ Object

call-seq:

ncplane_autogrow_p(n) -> bool

A module function.



20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
# File 'ext/notcurses/src/notcurses_wrap.c', line 20159

SWIGINTERN VALUE
_wrap_ncplane_autogrow_p(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_autogrow_p", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (bool)ncplane_autogrow_p((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_base(*args) ⇒ Object

call-seq:

ncplane_base(n, c) -> int

A module function.



27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
# File 'ext/notcurses/src/notcurses_wrap.c', line 27179

SWIGINTERN VALUE
_wrap_ncplane_base(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_base", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell *","ncplane_base", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  result = (int)ncplane_base(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_bchannel(*args) ⇒ Object

call-seq:

ncplane_bchannel(n) -> uint32_t

A module function.



37076
37077
37078
37079
37080
37081
37082
37083
37084
37085
37086
37087
37088
37089
37090
37091
37092
37093
37094
37095
37096
37097
37098
37099
37100
37101
37102
37103
37104
37105
37106
37107
37108
37109
37110
37111
37112
37113
# File 'ext/notcurses/src/notcurses_wrap.c', line 37076

SWIGINTERN VALUE
_wrap_ncplane_bchannel(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_bchannel", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (uint32_t)ncplane_bchannel((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_below(*args) ⇒ Object

call-seq:

ncplane_below(n) -> struct ncplane *

A module function.



28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574
28575
28576
28577
28578
28579
28580
28581
28582
28583
28584
28585
28586
28587
28588
28589
28590
28591
28592
28593
28594
28595
28596
28597
28598
28599
28600
28601
28602
28603
28604
28605
28606
28607
28608
28609
28610
# File 'ext/notcurses/src/notcurses_wrap.c', line 28561

SWIGINTERN VALUE
_wrap_ncplane_below(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_below", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (struct ncplane *)ncplane_below(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_bg_alpha(*args) ⇒ Object

call-seq:

ncplane_bg_alpha(n) -> uint32_t

A module function.



37704
37705
37706
37707
37708
37709
37710
37711
37712
37713
37714
37715
37716
37717
37718
37719
37720
37721
37722
37723
37724
37725
37726
37727
37728
37729
37730
37731
37732
37733
37734
37735
37736
37737
37738
37739
37740
37741
# File 'ext/notcurses/src/notcurses_wrap.c', line 37704

SWIGINTERN VALUE
_wrap_ncplane_bg_alpha(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_bg_alpha", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (uint32_t)ncplane_bg_alpha((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_bg_default_p(*args) ⇒ Object

call-seq:

ncplane_bg_default_p(n) -> bool

A module function.



37753
37754
37755
37756
37757
37758
37759
37760
37761
37762
37763
37764
37765
37766
37767
37768
37769
37770
37771
37772
37773
37774
37775
37776
37777
37778
37779
37780
37781
37782
37783
37784
37785
37786
37787
37788
37789
37790
# File 'ext/notcurses/src/notcurses_wrap.c', line 37753

SWIGINTERN VALUE
_wrap_ncplane_bg_default_p(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_bg_default_p", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (bool)ncplane_bg_default_p((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_bg_rgb(*args) ⇒ Object

call-seq:

ncplane_bg_rgb(n) -> uint32_t

A module function.



37557
37558
37559
37560
37561
37562
37563
37564
37565
37566
37567
37568
37569
37570
37571
37572
37573
37574
37575
37576
37577
37578
37579
37580
37581
37582
37583
37584
37585
37586
37587
37588
37589
37590
37591
37592
37593
37594
# File 'ext/notcurses/src/notcurses_wrap.c', line 37557

SWIGINTERN VALUE
_wrap_ncplane_bg_rgb(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_bg_rgb", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (uint32_t)ncplane_bg_rgb((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_bg_rgb8(*args) ⇒ Object

call-seq:

ncplane_bg_rgb8(n, r, g, b) -> uint32_t

A module function.



38010
38011
38012
38013
38014
38015
38016
38017
38018
38019
38020
38021
38022
38023
38024
38025
38026
38027
38028
38029
38030
38031
38032
38033
38034
38035
38036
38037
38038
38039
38040
38041
38042
38043
38044
38045
38046
38047
38048
38049
38050
38051
38052
38053
38054
38055
38056
38057
38058
38059
38060
38061
38062
38063
38064
38065
38066
38067
38068
38069
38070
38071
38072
38073
38074
38075
38076
38077
38078
38079
38080
38081
38082
38083
38084
38085
38086
38087
38088
38089
38090
38091
38092
38093
38094
38095
38096
38097
38098
38099
38100
38101
38102
38103
38104
38105
38106
38107
38108
38109
38110
38111
38112
38113
38114
38115
38116
38117
38118
38119
38120
38121
38122
38123
38124
38125
38126
38127
38128
38129
38130
38131
38132
38133
38134
38135
38136
38137
38138
38139
38140
38141
38142
38143
38144
38145
38146
38147
38148
38149
38150
38151
38152
38153
38154
38155
38156
38157
38158
38159
38160
38161
38162
38163
38164
38165
38166
38167
38168
38169
38170
38171
38172
38173
38174
38175
38176
38177
38178
38179
38180
38181
38182
38183
38184
38185
38186
38187
38188
38189
38190
38191
38192
38193
38194
38195
38196
38197
38198
38199
38200
38201
38202
38203
38204
38205
38206
# File 'ext/notcurses/src/notcurses_wrap.c', line 38010

SWIGINTERN VALUE
_wrap_ncplane_bg_rgb8(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  unsigned int *arg4 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_bg_rgb8", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg4 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (unsigned int) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg4 = (unsigned int) NUM2DBL(argv[3]);
      } else {
        *arg4 = (unsigned int) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (uint32_t)ncplane_bg_rgb8((struct ncplane const *)arg1,arg2,arg3,arg4);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("r")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("g")), converted_value);
      free(arg3);
    }
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("b")), converted_value);
      free(arg4);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_box(*args) ⇒ Object

call-seq:

ncplane_box(n, ul, ur, ll, lr, hline, vline, ystop, xstop, ctlword) -> int

A module function.



34148
34149
34150
34151
34152
34153
34154
34155
34156
34157
34158
34159
34160
34161
34162
34163
34164
34165
34166
34167
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177
34178
34179
34180
34181
34182
34183
34184
34185
34186
34187
34188
34189
34190
34191
34192
34193
34194
34195
34196
34197
34198
34199
34200
34201
34202
34203
34204
34205
34206
34207
34208
34209
34210
34211
34212
34213
34214
34215
34216
34217
34218
34219
34220
34221
34222
34223
34224
34225
34226
34227
34228
34229
34230
34231
34232
34233
34234
34235
34236
34237
34238
34239
34240
34241
34242
34243
34244
34245
34246
34247
34248
34249
34250
34251
34252
34253
34254
34255
34256
34257
34258
34259
34260
34261
34262
34263
34264
34265
34266
34267
34268
34269
34270
34271
34272
34273
34274
34275
34276
34277
34278
34279
34280
34281
34282
34283
34284
34285
34286
34287
34288
34289
34290
34291
34292
34293
34294
34295
34296
34297
34298
34299
34300
34301
34302
34303
34304
34305
34306
34307
34308
34309
34310
34311
34312
34313
34314
34315
34316
34317
34318
34319
34320
34321
34322
34323
34324
34325
34326
34327
34328
34329
34330
34331
34332
34333
34334
34335
34336
34337
34338
34339
34340
34341
34342
34343
34344
34345
34346
34347
34348
34349
34350
34351
34352
34353
# File 'ext/notcurses/src/notcurses_wrap.c', line 34148

SWIGINTERN VALUE
_wrap_ncplane_box(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  nccell *arg3 = (nccell *) 0 ;
  nccell *arg4 = (nccell *) 0 ;
  nccell *arg5 = (nccell *) 0 ;
  nccell *arg6 = (nccell *) 0 ;
  nccell *arg7 = (nccell *) 0 ;
  unsigned int arg8 ;
  unsigned int arg9 ;
  unsigned int arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  unsigned int val8 ;
  int ecode8 = 0 ;
  unsigned int val9 ;
  int ecode9 = 0 ;
  unsigned int val10 ;
  int ecode10 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 10) || (argc > 10)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 10)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_box", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell const *","ncplane_box", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "nccell const *","ncplane_box", 3, argv[2] )); 
  }
  arg3 = (nccell *)(argp3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "nccell const *","ncplane_box", 4, argv[3] )); 
  }
  arg4 = (nccell *)(argp4);
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "nccell const *","ncplane_box", 5, argv[4] )); 
  }
  arg5 = (nccell *)(argp5);
  res6 = SWIG_ConvertPtr(argv[5], &argp6,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "nccell const *","ncplane_box", 6, argv[5] )); 
  }
  arg6 = (nccell *)(argp6);
  res7 = SWIG_ConvertPtr(argv[6], &argp7,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "nccell const *","ncplane_box", 7, argv[6] )); 
  }
  arg7 = (nccell *)(argp7);
  ecode8 = SWIG_AsVal_unsigned_SS_int(argv[7], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "unsigned int","ncplane_box", 8, argv[7] ));
  } 
  arg8 = (unsigned int)(val8);
  ecode9 = SWIG_AsVal_unsigned_SS_int(argv[8], &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "unsigned int","ncplane_box", 9, argv[8] ));
  } 
  arg9 = (unsigned int)(val9);
  ecode10 = SWIG_AsVal_unsigned_SS_int(argv[9], &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), Ruby_Format_TypeError( "", "unsigned int","ncplane_box", 10, argv[9] ));
  } 
  arg10 = (unsigned int)(val10);
  result = (int)ncplane_box(arg1,(struct nccell const *)arg2,(struct nccell const *)arg3,(struct nccell const *)arg4,(struct nccell const *)arg5,(struct nccell const *)arg6,(struct nccell const *)arg7,arg8,arg9,arg10);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ul")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ur")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ll")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("lr")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg6, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("hline")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg7, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vline")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_box_sized(*args) ⇒ Object

call-seq:

ncplane_box_sized(n, ul, ur, ll, lr, hline, vline, ystop, xstop, ctlword) -> int

A module function.



34365
34366
34367
34368
34369
34370
34371
34372
34373
34374
34375
34376
34377
34378
34379
34380
34381
34382
34383
34384
34385
34386
34387
34388
34389
34390
34391
34392
34393
34394
34395
34396
34397
34398
34399
34400
34401
34402
34403
34404
34405
34406
34407
34408
34409
34410
34411
34412
34413
34414
34415
34416
34417
34418
34419
34420
34421
34422
34423
34424
34425
34426
34427
34428
34429
34430
34431
34432
34433
34434
34435
34436
34437
34438
34439
34440
34441
34442
34443
34444
34445
34446
34447
34448
34449
34450
34451
34452
34453
34454
34455
34456
34457
34458
34459
34460
34461
34462
34463
34464
34465
34466
34467
34468
34469
34470
34471
34472
34473
34474
34475
34476
34477
34478
34479
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489
34490
34491
34492
34493
34494
34495
34496
34497
34498
34499
34500
34501
34502
34503
34504
34505
34506
34507
34508
34509
34510
34511
34512
34513
34514
34515
34516
34517
34518
34519
34520
34521
34522
34523
34524
34525
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535
34536
34537
34538
34539
34540
34541
34542
34543
34544
34545
34546
34547
34548
34549
34550
34551
34552
34553
34554
34555
34556
34557
34558
34559
34560
34561
34562
34563
34564
34565
34566
34567
34568
34569
34570
# File 'ext/notcurses/src/notcurses_wrap.c', line 34365

SWIGINTERN VALUE
_wrap_ncplane_box_sized(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  nccell *arg3 = (nccell *) 0 ;
  nccell *arg4 = (nccell *) 0 ;
  nccell *arg5 = (nccell *) 0 ;
  nccell *arg6 = (nccell *) 0 ;
  nccell *arg7 = (nccell *) 0 ;
  unsigned int arg8 ;
  unsigned int arg9 ;
  unsigned int arg10 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  unsigned int val8 ;
  int ecode8 = 0 ;
  unsigned int val9 ;
  int ecode9 = 0 ;
  unsigned int val10 ;
  int ecode10 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 10) || (argc > 10)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 10)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_box_sized", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell const *","ncplane_box_sized", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "nccell const *","ncplane_box_sized", 3, argv[2] )); 
  }
  arg3 = (nccell *)(argp3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "nccell const *","ncplane_box_sized", 4, argv[3] )); 
  }
  arg4 = (nccell *)(argp4);
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "nccell const *","ncplane_box_sized", 5, argv[4] )); 
  }
  arg5 = (nccell *)(argp5);
  res6 = SWIG_ConvertPtr(argv[5], &argp6,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "nccell const *","ncplane_box_sized", 6, argv[5] )); 
  }
  arg6 = (nccell *)(argp6);
  res7 = SWIG_ConvertPtr(argv[6], &argp7,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "nccell const *","ncplane_box_sized", 7, argv[6] )); 
  }
  arg7 = (nccell *)(argp7);
  ecode8 = SWIG_AsVal_unsigned_SS_int(argv[7], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "unsigned int","ncplane_box_sized", 8, argv[7] ));
  } 
  arg8 = (unsigned int)(val8);
  ecode9 = SWIG_AsVal_unsigned_SS_int(argv[8], &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "unsigned int","ncplane_box_sized", 9, argv[8] ));
  } 
  arg9 = (unsigned int)(val9);
  ecode10 = SWIG_AsVal_unsigned_SS_int(argv[9], &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), Ruby_Format_TypeError( "", "unsigned int","ncplane_box_sized", 10, argv[9] ));
  } 
  arg10 = (unsigned int)(val10);
  result = (int)ncplane_box_sized(arg1,(struct nccell const *)arg2,(struct nccell const *)arg3,(struct nccell const *)arg4,(struct nccell const *)arg5,(struct nccell const *)arg6,(struct nccell const *)arg7,arg8,arg9,arg10);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ul")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ur")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ll")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("lr")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg6, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("hline")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg7, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vline")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_center_abs(*args) ⇒ Object

call-seq:

ncplane_center_abs(n, y, x)

A module function.



29663
29664
29665
29666
29667
29668
29669
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681
29682
29683
29684
29685
29686
29687
29688
29689
29690
29691
29692
29693
29694
29695
29696
29697
29698
29699
29700
29701
29702
29703
29704
29705
29706
29707
29708
29709
29710
29711
29712
29713
29714
29715
29716
29717
29718
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730
29731
29732
29733
29734
29735
29736
29737
29738
29739
29740
29741
29742
29743
29744
29745
29746
29747
29748
29749
29750
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
# File 'ext/notcurses/src/notcurses_wrap.c', line 29663

SWIGINTERN VALUE
_wrap_ncplane_center_abs(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int *arg2 = (int *) 0 ;
  int *arg3 = (int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_center_abs", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    arg2 = (int *) malloc(sizeof(int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg2 = (int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (int *) malloc(sizeof(int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg3 = (int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ncplane_center_abs((struct ncplane const *)arg1,arg2,arg3);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("y")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("x")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_channels(*args) ⇒ Object

call-seq:

ncplane_channels(n) -> uint64_t

A module function.



30632
30633
30634
30635
30636
30637
30638
30639
30640
30641
30642
30643
30644
30645
30646
30647
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
# File 'ext/notcurses/src/notcurses_wrap.c', line 30632

SWIGINTERN VALUE
_wrap_ncplane_channels(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_channels", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (uint64_t)ncplane_channels((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_contents(*args) ⇒ Object

call-seq:

ncplane_contents(n, begy, begx, leny, lenx) -> char *

A module function.



29425
29426
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440
29441
29442
29443
29444
29445
29446
29447
29448
29449
29450
29451
29452
29453
29454
29455
29456
29457
29458
29459
29460
29461
29462
29463
29464
29465
29466
29467
29468
29469
29470
29471
29472
29473
29474
29475
29476
29477
29478
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488
29489
29490
29491
29492
29493
29494
29495
29496
29497
29498
29499
29500
29501
29502
29503
29504
29505
29506
29507
# File 'ext/notcurses/src/notcurses_wrap.c', line 29425

SWIGINTERN VALUE
_wrap_ncplane_contents(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  unsigned int arg4 ;
  unsigned int arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_contents", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_contents", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_contents", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_contents", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncplane_contents", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  result = (char *)ncplane_contents(arg1,arg2,arg3,arg4,arg5);
  {
    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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_create(*args) ⇒ Object

call-seq:

ncplane_create(n, nopts) -> struct ncplane *

A module function.



18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
# File 'ext/notcurses/src/notcurses_wrap.c', line 18789

SWIGINTERN VALUE
_wrap_ncplane_create(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncplane_options *arg2 = (ncplane_options *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  struct ncplane *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_create", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncplane_options const *","ncplane_create", 2, argv[1] )); 
  }
  arg2 = (ncplane_options *)(argp2);
  result = (struct ncplane *)ncplane_create(arg1,(struct ncplane_options const *)arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncplane_options const *");
    if (!ty) ty = SWIGTYPE_p_ncplane_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nopts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_cursor_move_rel(*args) ⇒ Object

call-seq:

ncplane_cursor_move_rel(n, y, x) -> int

A module function.



30268
30269
30270
30271
30272
30273
30274
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300
30301
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321
# File 'ext/notcurses/src/notcurses_wrap.c', line 30268

SWIGINTERN VALUE
_wrap_ncplane_cursor_move_rel(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_cursor_move_rel", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_cursor_move_rel", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_cursor_move_rel", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  result = (int)ncplane_cursor_move_rel(arg1,arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_cursor_move_yx(*args) ⇒ Object

call-seq:

ncplane_cursor_move_yx(n, y, x) -> int

A module function.



30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224
30225
30226
30227
30228
30229
30230
30231
30232
30233
30234
30235
30236
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
# File 'ext/notcurses/src/notcurses_wrap.c', line 30203

SWIGINTERN VALUE
_wrap_ncplane_cursor_move_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_cursor_move_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_cursor_move_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_cursor_move_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  result = (int)ncplane_cursor_move_yx(arg1,arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_cursor_x(*args) ⇒ Object

call-seq:

ncplane_cursor_x(n) -> unsigned int

A module function.



30583
30584
30585
30586
30587
30588
30589
30590
30591
30592
30593
30594
30595
30596
30597
30598
30599
30600
30601
30602
30603
30604
30605
30606
30607
30608
30609
30610
30611
30612
30613
30614
30615
30616
30617
30618
30619
30620
# File 'ext/notcurses/src/notcurses_wrap.c', line 30583

SWIGINTERN VALUE
_wrap_ncplane_cursor_x(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_cursor_x", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (unsigned int)ncplane_cursor_x((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_cursor_y(*args) ⇒ Object

call-seq:

ncplane_cursor_y(n) -> unsigned int

A module function.



30534
30535
30536
30537
30538
30539
30540
30541
30542
30543
30544
30545
30546
30547
30548
30549
30550
30551
30552
30553
30554
30555
30556
30557
30558
30559
30560
30561
30562
30563
30564
30565
30566
30567
30568
30569
30570
30571
# File 'ext/notcurses/src/notcurses_wrap.c', line 30534

SWIGINTERN VALUE
_wrap_ncplane_cursor_y(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_cursor_y", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (unsigned int)ncplane_cursor_y((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_cursor_yx(*args) ⇒ Object

call-seq:

ncplane_cursor_yx(n, y, x)

A module function.



30380
30381
30382
30383
30384
30385
30386
30387
30388
30389
30390
30391
30392
30393
30394
30395
30396
30397
30398
30399
30400
30401
30402
30403
30404
30405
30406
30407
30408
30409
30410
30411
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
30431
30432
30433
30434
30435
30436
30437
30438
30439
30440
30441
30442
30443
30444
30445
30446
30447
30448
30449
30450
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518
30519
30520
30521
30522
# File 'ext/notcurses/src/notcurses_wrap.c', line 30380

SWIGINTERN VALUE
_wrap_ncplane_cursor_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_cursor_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ncplane_cursor_yx((struct ncplane const *)arg1,arg2,arg3);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("y")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("x")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_descendant_p(*args) ⇒ Object

call-seq:

ncplane_descendant_p(n, ancestor) -> int

A module function.



28008
28009
28010
28011
28012
28013
28014
28015
28016
28017
28018
28019
28020
28021
28022
28023
28024
28025
28026
28027
28028
28029
28030
28031
28032
28033
28034
28035
28036
28037
28038
28039
28040
28041
28042
28043
28044
28045
28046
28047
28048
28049
28050
28051
28052
28053
28054
28055
28056
28057
28058
28059
28060
28061
28062
28063
28064
28065
28066
28067
28068
28069
# File 'ext/notcurses/src/notcurses_wrap.c', line 28008

SWIGINTERN VALUE
_wrap_ncplane_descendant_p(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct ncplane *arg2 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_descendant_p", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_descendant_p", 2, argv[1] )); 
  }
  arg2 = (struct ncplane *)(argp2);
  result = (int)ncplane_descendant_p((struct ncplane const *)arg1,(struct ncplane const *)arg2);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ancestor")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_destroy(*args) ⇒ Object

call-seq:

ncplane_destroy(n) -> int

A module function.



26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
# File 'ext/notcurses/src/notcurses_wrap.c', line 26968

SWIGINTERN VALUE
_wrap_ncplane_destroy(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_destroy", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (int)ncplane_destroy(arg1);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_dim_x(*args) ⇒ Object

call-seq:

ncplane_dim_x(n) -> unsigned int

A module function.



16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
# File 'ext/notcurses/src/notcurses_wrap.c', line 16864

SWIGINTERN VALUE
_wrap_ncplane_dim_x(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_dim_x", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (unsigned int)ncplane_dim_x((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_dim_y(*args) ⇒ Object

call-seq:

ncplane_dim_y(n) -> unsigned int

A module function.



16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
# File 'ext/notcurses/src/notcurses_wrap.c', line 16815

SWIGINTERN VALUE
_wrap_ncplane_dim_y(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_dim_y", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (unsigned int)ncplane_dim_y((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_dim_yx(*args) ⇒ Object

call-seq:

ncplane_dim_yx(n, y, x)

A module function.



16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
# File 'ext/notcurses/src/notcurses_wrap.c', line 16327

SWIGINTERN VALUE
_wrap_ncplane_dim_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_dim_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ncplane_dim_yx((struct ncplane const *)arg1,arg2,arg3);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("y")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("x")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_double_box(*args) ⇒ Object

call-seq:

ncplane_double_box(n, styles, channels, ylen, xlen, ctlword) -> int

A module function.



41257
41258
41259
41260
41261
41262
41263
41264
41265
41266
41267
41268
41269
41270
41271
41272
41273
41274
41275
41276
41277
41278
41279
41280
41281
41282
41283
41284
41285
41286
41287
41288
41289
41290
41291
41292
41293
41294
41295
41296
41297
41298
41299
41300
41301
41302
41303
41304
41305
41306
41307
41308
41309
41310
41311
41312
41313
41314
41315
41316
41317
41318
41319
41320
41321
41322
41323
41324
41325
41326
41327
41328
41329
41330
41331
41332
41333
41334
# File 'ext/notcurses/src/notcurses_wrap.c', line 41257

SWIGINTERN VALUE
_wrap_ncplane_double_box(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint16_t arg2 ;
  uint64_t arg3 ;
  unsigned int arg4 ;
  unsigned int arg5 ;
  unsigned int arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_double_box", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","ncplane_double_box", 2, argv[1] ));
  } 
  arg2 = (uint16_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncplane_double_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_double_box", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncplane_double_box", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "unsigned int","ncplane_double_box", 6, argv[5] ));
  } 
  arg6 = (unsigned int)(val6);
  result = (int)ncplane_double_box(arg1,arg2,arg3,arg4,arg5,arg6);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_double_box_sized(*args) ⇒ Object

call-seq:

ncplane_double_box_sized(n, styles, channels, ylen, xlen, ctlword) -> int

A module function.



41508
41509
41510
41511
41512
41513
41514
41515
41516
41517
41518
41519
41520
41521
41522
41523
41524
41525
41526
41527
41528
41529
41530
41531
41532
41533
41534
41535
41536
41537
41538
41539
41540
41541
41542
41543
41544
41545
41546
41547
41548
41549
41550
41551
41552
41553
41554
41555
41556
41557
41558
41559
41560
41561
41562
41563
41564
41565
41566
41567
41568
41569
41570
41571
41572
41573
41574
41575
41576
41577
41578
41579
41580
41581
41582
41583
41584
41585
# File 'ext/notcurses/src/notcurses_wrap.c', line 41508

SWIGINTERN VALUE
_wrap_ncplane_double_box_sized(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint16_t arg2 ;
  uint64_t arg3 ;
  unsigned int arg4 ;
  unsigned int arg5 ;
  unsigned int arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_double_box_sized", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","ncplane_double_box_sized", 2, argv[1] ));
  } 
  arg2 = (uint16_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncplane_double_box_sized", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_double_box_sized", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncplane_double_box_sized", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "unsigned int","ncplane_double_box_sized", 6, argv[5] ));
  } 
  arg6 = (unsigned int)(val6);
  result = (int)ncplane_double_box_sized(arg1,arg2,arg3,arg4,arg5,arg6);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_dup(*args) ⇒ Object

call-seq:

ncplane_dup(n, opaque) -> struct ncplane *

A module function.



19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
# File 'ext/notcurses/src/notcurses_wrap.c', line 19580

SWIGINTERN VALUE
_wrap_ncplane_dup(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  struct ncplane *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_dup", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","ncplane_dup", 2, argv[1] )); 
  }
  result = (struct ncplane *)ncplane_dup((struct ncplane const *)arg1,arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("void *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opaque")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_erase(*args) ⇒ Object

call-seq:

ncplane_erase(n)

A module function.



35526
35527
35528
35529
35530
35531
35532
35533
35534
35535
35536
35537
35538
35539
35540
35541
35542
35543
35544
35545
35546
35547
35548
35549
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559
35560
35561
# File 'ext/notcurses/src/notcurses_wrap.c', line 35526

SWIGINTERN VALUE
_wrap_ncplane_erase(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_erase", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ncplane_erase(arg1);
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_erase_region(*args) ⇒ Object

call-seq:

ncplane_erase_region(n, ystart, xstart, ylen, xlen) -> int

A module function.



35573
35574
35575
35576
35577
35578
35579
35580
35581
35582
35583
35584
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595
35596
35597
35598
35599
35600
35601
35602
35603
35604
35605
35606
35607
35608
35609
35610
35611
35612
35613
35614
35615
35616
35617
35618
35619
35620
35621
35622
35623
35624
35625
35626
35627
35628
35629
35630
35631
35632
35633
35634
35635
35636
35637
35638
35639
35640
35641
35642
# File 'ext/notcurses/src/notcurses_wrap.c', line 35573

SWIGINTERN VALUE
_wrap_ncplane_erase_region(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_erase_region", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_erase_region", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_erase_region", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncplane_erase_region", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  ecode5 = SWIG_AsVal_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","ncplane_erase_region", 5, argv[4] ));
  } 
  arg5 = (int)(val5);
  result = (int)ncplane_erase_region(arg1,arg2,arg3,arg4,arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_fadein(*args) ⇒ Object

call-seq:

ncplane_fadein(n, ts, fader, curry) -> int

A module function.



39067
39068
39069
39070
39071
39072
39073
39074
39075
39076
39077
39078
39079
39080
39081
39082
39083
39084
39085
39086
39087
39088
39089
39090
39091
39092
39093
39094
39095
39096
39097
39098
39099
39100
39101
39102
39103
39104
39105
39106
39107
39108
39109
39110
39111
39112
39113
39114
39115
39116
39117
39118
39119
39120
39121
39122
39123
39124
39125
39126
39127
39128
39129
39130
39131
39132
39133
39134
39135
39136
39137
39138
39139
39140
39141
39142
39143
39144
39145
39146
39147
39148
39149
39150
39151
39152
39153
39154
39155
39156
39157
39158
39159
39160
39161
39162
39163
39164
39165
39166
39167
39168
39169
39170
39171
39172
39173
39174
39175
39176
39177
39178
39179
39180
# File 'ext/notcurses/src/notcurses_wrap.c', line 39067

SWIGINTERN VALUE
_wrap_ncplane_fadein(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct timespec *arg2 = (struct timespec *) 0 ;
  fadecb arg3 = (fadecb) 0 ;
  void *arg4 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res4 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_fadein", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    if (argv[1] == Qnil) {
      arg2 = NULL;
    } else if (rb_obj_is_kind_of(argv[1], rb_cTime)) {
      static struct timespec ts;
      VALUE seconds = rb_funcall(argv[1], rb_intern("to_f"), 0);
      ts.tv_sec = NUM2LONG(rb_funcall(seconds, rb_intern("floor"), 0));
      ts.tv_nsec = NUM2LONG(rb_funcall(rb_funcall(rb_funcall(seconds, rb_intern("-"), 1, seconds), rb_intern("*"), 1, INT2NUM(1000000000)), rb_intern("floor"), 0));
      arg2 = &ts;
    } else {
      SWIG_exception(SWIG_TypeError, "Expected Time or nil");
    }
  }
  {
    if (!NIL_P(argv[2])) {
      arg3 = (fadecb)rb_proc_new((VALUE (*)(ANYARGS))call_ruby_proc, argv[2]);
    } else {
      arg3 = NULL;
    }
  }
  res4 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg4), 0, 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","ncplane_fadein", 4, argv[3] )); 
  }
  result = (int)ncplane_fadein(arg1,(struct timespec const *)arg2,arg3,arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 timespec const *");
    if (!ty) ty = SWIGTYPE_p_timespec;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ts")), 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("fadecb");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_notcurses_p_struct_ncplane_p_q_const__struct_timespec_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("fader")), 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("void *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("curry")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_fadein_iteration(*args) ⇒ Object

call-seq:

ncplane_fadein_iteration(n, nctx, iter, fader, curry) -> int

A module function.



39429
39430
39431
39432
39433
39434
39435
39436
39437
39438
39439
39440
39441
39442
39443
39444
39445
39446
39447
39448
39449
39450
39451
39452
39453
39454
39455
39456
39457
39458
39459
39460
39461
39462
39463
39464
39465
39466
39467
39468
39469
39470
39471
39472
39473
39474
39475
39476
39477
39478
39479
39480
39481
39482
39483
39484
39485
39486
39487
39488
39489
39490
39491
39492
39493
39494
39495
39496
39497
39498
39499
39500
39501
39502
39503
39504
39505
39506
39507
39508
39509
39510
39511
39512
39513
39514
39515
39516
39517
39518
39519
39520
39521
39522
39523
39524
39525
39526
39527
39528
39529
39530
39531
39532
39533
39534
39535
39536
39537
39538
39539
39540
39541
39542
39543
39544
# File 'ext/notcurses/src/notcurses_wrap.c', line 39429

SWIGINTERN VALUE
_wrap_ncplane_fadein_iteration(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct ncfadectx *arg2 = (struct ncfadectx *) 0 ;
  int arg3 ;
  fadecb arg4 = (fadecb) 0 ;
  void *arg5 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res5 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_fadein_iteration", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncfadectx, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncfadectx *","ncplane_fadein_iteration", 2, argv[1] )); 
  }
  arg2 = (struct ncfadectx *)(argp2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_fadein_iteration", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  {
    if (!NIL_P(argv[3])) {
      arg4 = (fadecb)rb_proc_new((VALUE (*)(ANYARGS))call_ruby_proc, argv[3]);
    } else {
      arg4 = NULL;
    }
  }
  res5 = SWIG_ConvertPtr(argv[4],SWIG_as_voidptrptr(&arg5), 0, 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "void *","ncplane_fadein_iteration", 5, argv[4] )); 
  }
  result = (int)ncplane_fadein_iteration(arg1,arg2,arg3,arg4,arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 ncfadectx *");
    if (!ty) ty = SWIGTYPE_p_ncfadectx;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nctx")), 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("fadecb");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_notcurses_p_struct_ncplane_p_q_const__struct_timespec_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("fader")), 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("void *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("curry")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_fadeout(*args) ⇒ Object

call-seq:

ncplane_fadeout(n, ts, fader, curry) -> int

A module function.



38942
38943
38944
38945
38946
38947
38948
38949
38950
38951
38952
38953
38954
38955
38956
38957
38958
38959
38960
38961
38962
38963
38964
38965
38966
38967
38968
38969
38970
38971
38972
38973
38974
38975
38976
38977
38978
38979
38980
38981
38982
38983
38984
38985
38986
38987
38988
38989
38990
38991
38992
38993
38994
38995
38996
38997
38998
38999
39000
39001
39002
39003
39004
39005
39006
39007
39008
39009
39010
39011
39012
39013
39014
39015
39016
39017
39018
39019
39020
39021
39022
39023
39024
39025
39026
39027
39028
39029
39030
39031
39032
39033
39034
39035
39036
39037
39038
39039
39040
39041
39042
39043
39044
39045
39046
39047
39048
39049
39050
39051
39052
39053
39054
39055
# File 'ext/notcurses/src/notcurses_wrap.c', line 38942

SWIGINTERN VALUE
_wrap_ncplane_fadeout(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct timespec *arg2 = (struct timespec *) 0 ;
  fadecb arg3 = (fadecb) 0 ;
  void *arg4 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res4 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_fadeout", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    if (argv[1] == Qnil) {
      arg2 = NULL;
    } else if (rb_obj_is_kind_of(argv[1], rb_cTime)) {
      static struct timespec ts;
      VALUE seconds = rb_funcall(argv[1], rb_intern("to_f"), 0);
      ts.tv_sec = NUM2LONG(rb_funcall(seconds, rb_intern("floor"), 0));
      ts.tv_nsec = NUM2LONG(rb_funcall(rb_funcall(rb_funcall(seconds, rb_intern("-"), 1, seconds), rb_intern("*"), 1, INT2NUM(1000000000)), rb_intern("floor"), 0));
      arg2 = &ts;
    } else {
      SWIG_exception(SWIG_TypeError, "Expected Time or nil");
    }
  }
  {
    if (!NIL_P(argv[2])) {
      arg3 = (fadecb)rb_proc_new((VALUE (*)(ANYARGS))call_ruby_proc, argv[2]);
    } else {
      arg3 = NULL;
    }
  }
  res4 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg4), 0, 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","ncplane_fadeout", 4, argv[3] )); 
  }
  result = (int)ncplane_fadeout(arg1,(struct timespec const *)arg2,arg3,arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 timespec const *");
    if (!ty) ty = SWIGTYPE_p_timespec;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ts")), 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("fadecb");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_notcurses_p_struct_ncplane_p_q_const__struct_timespec_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("fader")), 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("void *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("curry")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_fadeout_iteration(*args) ⇒ Object

call-seq:

ncplane_fadeout_iteration(n, nctx, iter, fader, curry) -> int

A module function.



39302
39303
39304
39305
39306
39307
39308
39309
39310
39311
39312
39313
39314
39315
39316
39317
39318
39319
39320
39321
39322
39323
39324
39325
39326
39327
39328
39329
39330
39331
39332
39333
39334
39335
39336
39337
39338
39339
39340
39341
39342
39343
39344
39345
39346
39347
39348
39349
39350
39351
39352
39353
39354
39355
39356
39357
39358
39359
39360
39361
39362
39363
39364
39365
39366
39367
39368
39369
39370
39371
39372
39373
39374
39375
39376
39377
39378
39379
39380
39381
39382
39383
39384
39385
39386
39387
39388
39389
39390
39391
39392
39393
39394
39395
39396
39397
39398
39399
39400
39401
39402
39403
39404
39405
39406
39407
39408
39409
39410
39411
39412
39413
39414
39415
39416
39417
# File 'ext/notcurses/src/notcurses_wrap.c', line 39302

SWIGINTERN VALUE
_wrap_ncplane_fadeout_iteration(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct ncfadectx *arg2 = (struct ncfadectx *) 0 ;
  int arg3 ;
  fadecb arg4 = (fadecb) 0 ;
  void *arg5 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res5 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_fadeout_iteration", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncfadectx, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncfadectx *","ncplane_fadeout_iteration", 2, argv[1] )); 
  }
  arg2 = (struct ncfadectx *)(argp2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_fadeout_iteration", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  {
    if (!NIL_P(argv[3])) {
      arg4 = (fadecb)rb_proc_new((VALUE (*)(ANYARGS))call_ruby_proc, argv[3]);
    } else {
      arg4 = NULL;
    }
  }
  res5 = SWIG_ConvertPtr(argv[4],SWIG_as_voidptrptr(&arg5), 0, 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "void *","ncplane_fadeout_iteration", 5, argv[4] )); 
  }
  result = (int)ncplane_fadeout_iteration(arg1,arg2,arg3,arg4,arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 ncfadectx *");
    if (!ty) ty = SWIGTYPE_p_ncfadectx;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nctx")), 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("fadecb");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_notcurses_p_struct_ncplane_p_q_const__struct_timespec_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("fader")), 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("void *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("curry")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_fchannel(*args) ⇒ Object

call-seq:

ncplane_fchannel(n) -> uint32_t

A module function.



37125
37126
37127
37128
37129
37130
37131
37132
37133
37134
37135
37136
37137
37138
37139
37140
37141
37142
37143
37144
37145
37146
37147
37148
37149
37150
37151
37152
37153
37154
37155
37156
37157
37158
37159
37160
37161
37162
# File 'ext/notcurses/src/notcurses_wrap.c', line 37125

SWIGINTERN VALUE
_wrap_ncplane_fchannel(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_fchannel", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (uint32_t)ncplane_fchannel((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_fg_alpha(*args) ⇒ Object

call-seq:

ncplane_fg_alpha(n) -> uint32_t

A module function.



37606
37607
37608
37609
37610
37611
37612
37613
37614
37615
37616
37617
37618
37619
37620
37621
37622
37623
37624
37625
37626
37627
37628
37629
37630
37631
37632
37633
37634
37635
37636
37637
37638
37639
37640
37641
37642
37643
# File 'ext/notcurses/src/notcurses_wrap.c', line 37606

SWIGINTERN VALUE
_wrap_ncplane_fg_alpha(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_fg_alpha", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (uint32_t)ncplane_fg_alpha((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_fg_default_p(*args) ⇒ Object

call-seq:

ncplane_fg_default_p(n) -> bool

A module function.



37655
37656
37657
37658
37659
37660
37661
37662
37663
37664
37665
37666
37667
37668
37669
37670
37671
37672
37673
37674
37675
37676
37677
37678
37679
37680
37681
37682
37683
37684
37685
37686
37687
37688
37689
37690
37691
37692
# File 'ext/notcurses/src/notcurses_wrap.c', line 37655

SWIGINTERN VALUE
_wrap_ncplane_fg_default_p(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_fg_default_p", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (bool)ncplane_fg_default_p((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_fg_rgb(*args) ⇒ Object

call-seq:

ncplane_fg_rgb(n) -> uint32_t

A module function.



37508
37509
37510
37511
37512
37513
37514
37515
37516
37517
37518
37519
37520
37521
37522
37523
37524
37525
37526
37527
37528
37529
37530
37531
37532
37533
37534
37535
37536
37537
37538
37539
37540
37541
37542
37543
37544
37545
# File 'ext/notcurses/src/notcurses_wrap.c', line 37508

SWIGINTERN VALUE
_wrap_ncplane_fg_rgb(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_fg_rgb", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (uint32_t)ncplane_fg_rgb((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_fg_rgb8(*args) ⇒ Object

call-seq:

ncplane_fg_rgb8(n, r, g, b) -> uint32_t

A module function.



37802
37803
37804
37805
37806
37807
37808
37809
37810
37811
37812
37813
37814
37815
37816
37817
37818
37819
37820
37821
37822
37823
37824
37825
37826
37827
37828
37829
37830
37831
37832
37833
37834
37835
37836
37837
37838
37839
37840
37841
37842
37843
37844
37845
37846
37847
37848
37849
37850
37851
37852
37853
37854
37855
37856
37857
37858
37859
37860
37861
37862
37863
37864
37865
37866
37867
37868
37869
37870
37871
37872
37873
37874
37875
37876
37877
37878
37879
37880
37881
37882
37883
37884
37885
37886
37887
37888
37889
37890
37891
37892
37893
37894
37895
37896
37897
37898
37899
37900
37901
37902
37903
37904
37905
37906
37907
37908
37909
37910
37911
37912
37913
37914
37915
37916
37917
37918
37919
37920
37921
37922
37923
37924
37925
37926
37927
37928
37929
37930
37931
37932
37933
37934
37935
37936
37937
37938
37939
37940
37941
37942
37943
37944
37945
37946
37947
37948
37949
37950
37951
37952
37953
37954
37955
37956
37957
37958
37959
37960
37961
37962
37963
37964
37965
37966
37967
37968
37969
37970
37971
37972
37973
37974
37975
37976
37977
37978
37979
37980
37981
37982
37983
37984
37985
37986
37987
37988
37989
37990
37991
37992
37993
37994
37995
37996
37997
37998
# File 'ext/notcurses/src/notcurses_wrap.c', line 37802

SWIGINTERN VALUE
_wrap_ncplane_fg_rgb8(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  unsigned int *arg4 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_fg_rgb8", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg4 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (unsigned int) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg4 = (unsigned int) NUM2DBL(argv[3]);
      } else {
        *arg4 = (unsigned int) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (uint32_t)ncplane_fg_rgb8((struct ncplane const *)arg1,arg2,arg3,arg4);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("r")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("g")), converted_value);
      free(arg3);
    }
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("b")), converted_value);
      free(arg4);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_format(*args) ⇒ Object

call-seq:

ncplane_format(n, y, x, ylen, xlen, stylemask) -> int

A module function.



35130
35131
35132
35133
35134
35135
35136
35137
35138
35139
35140
35141
35142
35143
35144
35145
35146
35147
35148
35149
35150
35151
35152
35153
35154
35155
35156
35157
35158
35159
35160
35161
35162
35163
35164
35165
35166
35167
35168
35169
35170
35171
35172
35173
35174
35175
35176
35177
35178
35179
35180
35181
35182
35183
35184
35185
35186
35187
35188
35189
35190
35191
35192
35193
35194
35195
35196
35197
35198
35199
35200
35201
35202
35203
35204
35205
35206
35207
# File 'ext/notcurses/src/notcurses_wrap.c', line 35130

SWIGINTERN VALUE
_wrap_ncplane_format(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  unsigned int arg4 ;
  unsigned int arg5 ;
  uint16_t arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  unsigned short val6 ;
  int ecode6 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_format", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_format", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_format", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_format", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncplane_format", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_short(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "uint16_t","ncplane_format", 6, argv[5] ));
  } 
  arg6 = (uint16_t)(val6);
  result = (int)ncplane_format(arg1,arg2,arg3,arg4,arg5,arg6);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_gradient(*args) ⇒ Object

call-seq:

ncplane_gradient(n, y, x, ylen, xlen, egc, styles, ul, ur, ll, lr) -> int

A module function.



34872
34873
34874
34875
34876
34877
34878
34879
34880
34881
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
34919
34920
34921
34922
34923
34924
34925
34926
34927
34928
34929
34930
34931
34932
34933
34934
34935
34936
34937
34938
34939
34940
34941
34942
34943
34944
34945
34946
34947
34948
34949
34950
34951
34952
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968
34969
34970
34971
34972
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987
34988
34989
34990
34991
34992
34993
34994
34995
34996
34997
34998
34999
35000
35001
35002
35003
35004
35005
# File 'ext/notcurses/src/notcurses_wrap.c', line 34872

SWIGINTERN VALUE
_wrap_ncplane_gradient(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  unsigned int arg4 ;
  unsigned int arg5 ;
  char *arg6 = (char *) 0 ;
  uint16_t arg7 ;
  uint64_t arg8 ;
  uint64_t arg9 ;
  uint64_t arg10 ;
  uint64_t arg11 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  int res6 ;
  char *buf6 = 0 ;
  int alloc6 = 0 ;
  unsigned short val7 ;
  int ecode7 = 0 ;
  unsigned long val8 ;
  int ecode8 = 0 ;
  unsigned long val9 ;
  int ecode9 = 0 ;
  unsigned long val10 ;
  int ecode10 = 0 ;
  unsigned long val11 ;
  int ecode11 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 11) || (argc > 11)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 11)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_gradient", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_gradient", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_gradient", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_gradient", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncplane_gradient", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  res6 = SWIG_AsCharPtrAndSize(argv[5], &buf6, NULL, &alloc6);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "char const *","ncplane_gradient", 6, argv[5] ));
  }
  arg6 = (char *)(buf6);
  ecode7 = SWIG_AsVal_unsigned_SS_short(argv[6], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint16_t","ncplane_gradient", 7, argv[6] ));
  } 
  arg7 = (uint16_t)(val7);
  ecode8 = SWIG_AsVal_unsigned_SS_long(argv[7], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "uint64_t","ncplane_gradient", 8, argv[7] ));
  } 
  arg8 = (uint64_t)(val8);
  ecode9 = SWIG_AsVal_unsigned_SS_long(argv[8], &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint64_t","ncplane_gradient", 9, argv[8] ));
  } 
  arg9 = (uint64_t)(val9);
  ecode10 = SWIG_AsVal_unsigned_SS_long(argv[9], &val10);
  if (!SWIG_IsOK(ecode10)) {
    SWIG_exception_fail(SWIG_ArgError(ecode10), Ruby_Format_TypeError( "", "uint64_t","ncplane_gradient", 10, argv[9] ));
  } 
  arg10 = (uint64_t)(val10);
  ecode11 = SWIG_AsVal_unsigned_SS_long(argv[10], &val11);
  if (!SWIG_IsOK(ecode11)) {
    SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "uint64_t","ncplane_gradient", 11, argv[10] ));
  } 
  arg11 = (uint64_t)(val11);
  result = (int)ncplane_gradient(arg1,arg2,arg3,arg4,arg5,(char const *)arg6,arg7,arg8,arg9,arg10,arg11);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 = arg6 ? rb_str_new2(arg6) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("egc")), obj);
  }
  if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
  return vresult;
fail:
  if (alloc6 == SWIG_NEWOBJ) free((char*)buf6);
  return Qnil;
}

.ncplane_gradient_2x1(*args) ⇒ Object

call-seq:

ncplane_gradient_2x1(n, y, x, ylen, xlen, ul, ur, ll, lr) -> int

A module function.



35017
35018
35019
35020
35021
35022
35023
35024
35025
35026
35027
35028
35029
35030
35031
35032
35033
35034
35035
35036
35037
35038
35039
35040
35041
35042
35043
35044
35045
35046
35047
35048
35049
35050
35051
35052
35053
35054
35055
35056
35057
35058
35059
35060
35061
35062
35063
35064
35065
35066
35067
35068
35069
35070
35071
35072
35073
35074
35075
35076
35077
35078
35079
35080
35081
35082
35083
35084
35085
35086
35087
35088
35089
35090
35091
35092
35093
35094
35095
35096
35097
35098
35099
35100
35101
35102
35103
35104
35105
35106
35107
35108
35109
35110
35111
35112
35113
35114
35115
35116
35117
35118
# File 'ext/notcurses/src/notcurses_wrap.c', line 35017

SWIGINTERN VALUE
_wrap_ncplane_gradient_2x1(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  unsigned int arg4 ;
  unsigned int arg5 ;
  uint32_t arg6 ;
  uint32_t arg7 ;
  uint32_t arg8 ;
  uint32_t arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  unsigned int val7 ;
  int ecode7 = 0 ;
  unsigned int val8 ;
  int ecode8 = 0 ;
  unsigned int val9 ;
  int ecode9 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 9) || (argc > 9)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_gradient2x1", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_gradient2x1", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_gradient2x1", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_gradient2x1", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncplane_gradient2x1", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "uint32_t","ncplane_gradient2x1", 6, argv[5] ));
  } 
  arg6 = (uint32_t)(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_int(argv[6], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","ncplane_gradient2x1", 7, argv[6] ));
  } 
  arg7 = (uint32_t)(val7);
  ecode8 = SWIG_AsVal_unsigned_SS_int(argv[7], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "uint32_t","ncplane_gradient2x1", 8, argv[7] ));
  } 
  arg8 = (uint32_t)(val8);
  ecode9 = SWIG_AsVal_unsigned_SS_int(argv[8], &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","ncplane_gradient2x1", 9, argv[8] ));
  } 
  arg9 = (uint32_t)(val9);
  result = (int)ncplane_gradient2x1(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_greyscale(*args) ⇒ Object

call-seq:

ncplane_greyscale(n)

A module function.



50345
50346
50347
50348
50349
50350
50351
50352
50353
50354
50355
50356
50357
50358
50359
50360
50361
50362
50363
50364
50365
50366
50367
50368
50369
50370
50371
50372
50373
50374
50375
50376
50377
50378
50379
50380
# File 'ext/notcurses/src/notcurses_wrap.c', line 50345

SWIGINTERN VALUE
_wrap_ncplane_greyscale(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_greyscale", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ncplane_greyscale(arg1);
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_halign(*args) ⇒ Object

call-seq:

ncplane_halign(n, align, c) -> int

A module function.



30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085
30086
30087
30088
30089
30090
30091
30092
30093
30094
30095
30096
30097
30098
30099
30100
30101
30102
30103
30104
30105
30106
30107
30108
30109
30110
30111
30112
30113
30114
30115
30116
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126
# File 'ext/notcurses/src/notcurses_wrap.c', line 30073

SWIGINTERN VALUE
_wrap_ncplane_halign(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncalign_e arg2 ;
  int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_halign", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ncalign_e","ncplane_halign", 2, argv[1] ));
  } 
  arg2 = (ncalign_e)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_halign", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  result = (int)ncplane_halign((struct ncplane const *)arg1,arg2,arg3);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_hline(*args) ⇒ Object

call-seq:

ncplane_hline(n, c, len) -> int

A module function.



33889
33890
33891
33892
33893
33894
33895
33896
33897
33898
33899
33900
33901
33902
33903
33904
33905
33906
33907
33908
33909
33910
33911
33912
33913
33914
33915
33916
33917
33918
33919
33920
33921
33922
33923
33924
33925
33926
33927
33928
33929
33930
33931
33932
33933
33934
33935
33936
33937
33938
33939
33940
33941
33942
33943
33944
33945
33946
33947
33948
33949
33950
33951
33952
33953
33954
33955
33956
33957
33958
# File 'ext/notcurses/src/notcurses_wrap.c', line 33889

SWIGINTERN VALUE
_wrap_ncplane_hline(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  unsigned int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_hline", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell const *","ncplane_hline", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncplane_hline", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  result = (int)ncplane_hline(arg1,(struct nccell const *)arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_hline_interp(*args) ⇒ Object

call-seq:

ncplane_hline_interp(n, c, len, c1, c2) -> int

A module function.



33792
33793
33794
33795
33796
33797
33798
33799
33800
33801
33802
33803
33804
33805
33806
33807
33808
33809
33810
33811
33812
33813
33814
33815
33816
33817
33818
33819
33820
33821
33822
33823
33824
33825
33826
33827
33828
33829
33830
33831
33832
33833
33834
33835
33836
33837
33838
33839
33840
33841
33842
33843
33844
33845
33846
33847
33848
33849
33850
33851
33852
33853
33854
33855
33856
33857
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
33869
33870
33871
33872
33873
33874
33875
33876
33877
# File 'ext/notcurses/src/notcurses_wrap.c', line 33792

SWIGINTERN VALUE
_wrap_ncplane_hline_interp(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  unsigned int arg3 ;
  uint64_t arg4 ;
  uint64_t arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  unsigned long val5 ;
  int ecode5 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_hline_interp", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell const *","ncplane_hline_interp", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncplane_hline_interp", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint64_t","ncplane_hline_interp", 4, argv[3] ));
  } 
  arg4 = (uint64_t)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_long(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint64_t","ncplane_hline_interp", 5, argv[4] ));
  } 
  arg5 = (uint64_t)(val5);
  result = (int)ncplane_hline_interp(arg1,(struct nccell const *)arg2,arg3,arg4,arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_home(*args) ⇒ Object

call-seq:

ncplane_home(n)

A module function.



30333
30334
30335
30336
30337
30338
30339
30340
30341
30342
30343
30344
30345
30346
30347
30348
30349
30350
30351
30352
30353
30354
30355
30356
30357
30358
30359
30360
30361
30362
30363
30364
30365
30366
30367
30368
# File 'ext/notcurses/src/notcurses_wrap.c', line 30333

SWIGINTERN VALUE
_wrap_ncplane_home(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_home", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ncplane_home(arg1);
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_mergedown(*args) ⇒ Object

call-seq:

ncplane_mergedown(src, dst, begsrcy, begsrcx, leny, lenx, dsty, dstx) -> int

A module function.



35405
35406
35407
35408
35409
35410
35411
35412
35413
35414
35415
35416
35417
35418
35419
35420
35421
35422
35423
35424
35425
35426
35427
35428
35429
35430
35431
35432
35433
35434
35435
35436
35437
35438
35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452
35453
35454
35455
35456
35457
35458
35459
35460
35461
35462
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478
35479
35480
35481
35482
35483
35484
35485
35486
35487
35488
35489
35490
35491
35492
35493
35494
35495
35496
35497
35498
35499
35500
35501
35502
35503
35504
35505
35506
35507
35508
35509
35510
35511
35512
35513
35514
# File 'ext/notcurses/src/notcurses_wrap.c', line 35405

SWIGINTERN VALUE
_wrap_ncplane_mergedown(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct ncplane *arg2 = (struct ncplane *) 0 ;
  int arg3 ;
  int arg4 ;
  unsigned int arg5 ;
  unsigned int arg6 ;
  int arg7 ;
  int arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  int val8 ;
  int ecode8 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 8) || (argc > 8)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_mergedown", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_mergedown", 2, argv[1] )); 
  }
  arg2 = (struct ncplane *)(argp2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_mergedown", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncplane_mergedown", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncplane_mergedown", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "unsigned int","ncplane_mergedown", 6, argv[5] ));
  } 
  arg6 = (unsigned int)(val6);
  ecode7 = SWIG_AsVal_int(argv[6], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","ncplane_mergedown", 7, argv[6] ));
  } 
  arg7 = (int)(val7);
  ecode8 = SWIG_AsVal_int(argv[7], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "int","ncplane_mergedown", 8, argv[7] ));
  } 
  arg8 = (int)(val8);
  result = (int)ncplane_mergedown(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("src")), obj);
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("dst")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_mergedown_simple(*args) ⇒ Object

call-seq:

ncplane_mergedown_simple(src, dst) -> int

A module function.



35332
35333
35334
35335
35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353
35354
35355
35356
35357
35358
35359
35360
35361
35362
35363
35364
35365
35366
35367
35368
35369
35370
35371
35372
35373
35374
35375
35376
35377
35378
35379
35380
35381
35382
35383
35384
35385
35386
35387
35388
35389
35390
35391
35392
35393
# File 'ext/notcurses/src/notcurses_wrap.c', line 35332

SWIGINTERN VALUE
_wrap_ncplane_mergedown_simple(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct ncplane *arg2 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_mergedown_simple", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_mergedown_simple", 2, argv[1] )); 
  }
  arg2 = (struct ncplane *)(argp2);
  result = (int)ncplane_mergedown_simple(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("src")), obj);
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("dst")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_move_above(*args) ⇒ Object

call-seq:

ncplane_move_above(n, above) -> int

A module function.



28081
28082
28083
28084
28085
28086
28087
28088
28089
28090
28091
28092
28093
28094
28095
28096
28097
28098
28099
28100
28101
28102
28103
28104
28105
28106
28107
28108
28109
28110
28111
28112
28113
28114
28115
28116
28117
28118
28119
28120
28121
28122
28123
28124
28125
28126
28127
28128
28129
28130
28131
28132
28133
28134
28135
28136
28137
28138
28139
28140
28141
28142
# File 'ext/notcurses/src/notcurses_wrap.c', line 28081

SWIGINTERN VALUE
_wrap_ncplane_move_above(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct ncplane *arg2 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_move_above", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_move_above", 2, argv[1] )); 
  }
  arg2 = (struct ncplane *)(argp2);
  result = (int)ncplane_move_above(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("above")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_move_below(*args) ⇒ Object

call-seq:

ncplane_move_below(n, below) -> int

A module function.



28154
28155
28156
28157
28158
28159
28160
28161
28162
28163
28164
28165
28166
28167
28168
28169
28170
28171
28172
28173
28174
28175
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192
28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209
28210
28211
28212
28213
28214
28215
# File 'ext/notcurses/src/notcurses_wrap.c', line 28154

SWIGINTERN VALUE
_wrap_ncplane_move_below(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct ncplane *arg2 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_move_below", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_move_below", 2, argv[1] )); 
  }
  arg2 = (struct ncplane *)(argp2);
  result = (int)ncplane_move_below(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("below")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_move_bottom(*args) ⇒ Object

call-seq:

ncplane_move_bottom(n)

A module function.



28274
28275
28276
28277
28278
28279
28280
28281
28282
28283
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306
28307
28308
28309
# File 'ext/notcurses/src/notcurses_wrap.c', line 28274

SWIGINTERN VALUE
_wrap_ncplane_move_bottom(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_move_bottom", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ncplane_move_bottom(arg1);
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_move_family_above(*args) ⇒ Object

call-seq:

ncplane_move_family_above(n, targ) -> int

A module function.



28321
28322
28323
28324
28325
28326
28327
28328
28329
28330
28331
28332
28333
28334
28335
28336
28337
28338
28339
28340
28341
28342
28343
28344
28345
28346
28347
28348
28349
28350
28351
28352
28353
28354
28355
28356
28357
28358
28359
28360
28361
28362
28363
28364
28365
28366
28367
28368
28369
28370
28371
28372
28373
28374
28375
28376
28377
28378
28379
28380
28381
28382
# File 'ext/notcurses/src/notcurses_wrap.c', line 28321

SWIGINTERN VALUE
_wrap_ncplane_move_family_above(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct ncplane *arg2 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_move_family_above", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_move_family_above", 2, argv[1] )); 
  }
  arg2 = (struct ncplane *)(argp2);
  result = (int)ncplane_move_family_above(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("targ")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_move_family_below(*args) ⇒ Object

call-seq:

ncplane_move_family_below(n, targ) -> int

A module function.



28394
28395
28396
28397
28398
28399
28400
28401
28402
28403
28404
28405
28406
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420
28421
28422
28423
28424
28425
28426
28427
28428
28429
28430
28431
28432
28433
28434
28435
28436
28437
28438
28439
28440
28441
28442
28443
28444
28445
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
# File 'ext/notcurses/src/notcurses_wrap.c', line 28394

SWIGINTERN VALUE
_wrap_ncplane_move_family_below(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct ncplane *arg2 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_move_family_below", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_move_family_below", 2, argv[1] )); 
  }
  arg2 = (struct ncplane *)(argp2);
  result = (int)ncplane_move_family_below(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("targ")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_move_family_bottom(*args) ⇒ Object

call-seq:

ncplane_move_family_bottom(n)

A module function.



28514
28515
28516
28517
28518
28519
28520
28521
28522
28523
28524
28525
28526
28527
28528
28529
28530
28531
28532
28533
28534
28535
28536
28537
28538
28539
28540
28541
28542
28543
28544
28545
28546
28547
28548
28549
# File 'ext/notcurses/src/notcurses_wrap.c', line 28514

SWIGINTERN VALUE
_wrap_ncplane_move_family_bottom(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_move_family_bottom", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ncplane_move_family_bottom(arg1);
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_move_family_top(*args) ⇒ Object

call-seq:

ncplane_move_family_top(n)

A module function.



28467
28468
28469
28470
28471
28472
28473
28474
28475
28476
28477
28478
28479
28480
28481
28482
28483
28484
28485
28486
28487
28488
28489
28490
28491
28492
28493
28494
28495
28496
28497
28498
28499
28500
28501
28502
# File 'ext/notcurses/src/notcurses_wrap.c', line 28467

SWIGINTERN VALUE
_wrap_ncplane_move_family_top(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_move_family_top", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ncplane_move_family_top(arg1);
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_move_rel(*args) ⇒ Object

call-seq:

ncplane_move_rel(n, y, x) -> int

A module function.



27569
27570
27571
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614
27615
27616
27617
27618
27619
27620
27621
27622
# File 'ext/notcurses/src/notcurses_wrap.c', line 27569

SWIGINTERN VALUE
_wrap_ncplane_move_rel(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_move_rel", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_move_rel", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_move_rel", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  result = (int)ncplane_move_rel(arg1,arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_move_top(*args) ⇒ Object

call-seq:

ncplane_move_top(n)

A module function.



28227
28228
28229
28230
28231
28232
28233
28234
28235
28236
28237
28238
28239
28240
28241
28242
28243
28244
28245
28246
28247
28248
28249
28250
28251
28252
28253
28254
28255
28256
28257
28258
28259
28260
28261
28262
# File 'ext/notcurses/src/notcurses_wrap.c', line 28227

SWIGINTERN VALUE
_wrap_ncplane_move_top(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_move_top", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ncplane_move_top(arg1);
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_move_yx(*args) ⇒ Object

call-seq:

ncplane_move_yx(n, y, x) -> int

A module function.



27504
27505
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556
27557
# File 'ext/notcurses/src/notcurses_wrap.c', line 27504

SWIGINTERN VALUE
_wrap_ncplane_move_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_move_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_move_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_move_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  result = (int)ncplane_move_yx(arg1,arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_name(*args) ⇒ Object

call-seq:

ncplane_name(n) -> char *

A module function.



19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
# File 'ext/notcurses/src/notcurses_wrap.c', line 19348

SWIGINTERN VALUE
_wrap_ncplane_name(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_name", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (char *)ncplane_name((struct ncplane const *)arg1);
  {
    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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_notcurses(*args) ⇒ Object

call-seq:

ncplane_notcurses(n) -> struct notcurses *

A module function.



16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
# File 'ext/notcurses/src/notcurses_wrap.c', line 16205

SWIGINTERN VALUE
_wrap_ncplane_notcurses(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct notcurses *result = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_notcurses", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (struct notcurses *)ncplane_notcurses((struct ncplane const *)arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct notcurses *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_notcurses, 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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_notcurses_const(*args) ⇒ Object

call-seq:

ncplane_notcurses_const(n) -> struct notcurses const *

A module function.



16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
# File 'ext/notcurses/src/notcurses_wrap.c', line 16266

SWIGINTERN VALUE
_wrap_ncplane_notcurses_const(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct notcurses *result = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_notcurses_const", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (struct notcurses *)ncplane_notcurses_const((struct ncplane const *)arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct notcurses const *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_notcurses, 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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_off_styles(*args) ⇒ Object

call-seq:

ncplane_off_styles(n, stylebits)

A module function.



37453
37454
37455
37456
37457
37458
37459
37460
37461
37462
37463
37464
37465
37466
37467
37468
37469
37470
37471
37472
37473
37474
37475
37476
37477
37478
37479
37480
37481
37482
37483
37484
37485
37486
37487
37488
37489
37490
37491
37492
37493
37494
37495
37496
# File 'ext/notcurses/src/notcurses_wrap.c', line 37453

SWIGINTERN VALUE
_wrap_ncplane_off_styles(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_off_styles", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncplane_off_styles", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ncplane_off_styles(arg1,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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_on_styles(*args) ⇒ Object

call-seq:

ncplane_on_styles(n, stylebits)

A module function.



37398
37399
37400
37401
37402
37403
37404
37405
37406
37407
37408
37409
37410
37411
37412
37413
37414
37415
37416
37417
37418
37419
37420
37421
37422
37423
37424
37425
37426
37427
37428
37429
37430
37431
37432
37433
37434
37435
37436
37437
37438
37439
37440
37441
# File 'ext/notcurses/src/notcurses_wrap.c', line 37398

SWIGINTERN VALUE
_wrap_ncplane_on_styles(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_on_styles", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncplane_on_styles", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ncplane_on_styles(arg1,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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_parent(*args) ⇒ Object

call-seq:

ncplane_parent(n) -> struct ncplane *

A module function.



27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933
27934
27935
# File 'ext/notcurses/src/notcurses_wrap.c', line 27886

SWIGINTERN VALUE
_wrap_ncplane_parent(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_parent", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (struct ncplane *)ncplane_parent(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_parent_const(*args) ⇒ Object

call-seq:

ncplane_parent_const(n) -> struct ncplane const *

A module function.



27947
27948
27949
27950
27951
27952
27953
27954
27955
27956
27957
27958
27959
27960
27961
27962
27963
27964
27965
27966
27967
27968
27969
27970
27971
27972
27973
27974
27975
27976
27977
27978
27979
27980
27981
27982
27983
27984
27985
27986
27987
27988
27989
27990
27991
27992
27993
27994
27995
27996
# File 'ext/notcurses/src/notcurses_wrap.c', line 27947

SWIGINTERN VALUE
_wrap_ncplane_parent_const(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_parent_const", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (struct ncplane *)ncplane_parent_const((struct ncplane const *)arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane const *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_perimeter(*args) ⇒ Object

call-seq:

ncplane_perimeter(n, ul, ur, ll, lr, hline, vline, ctlword) -> int

A module function.



34582
34583
34584
34585
34586
34587
34588
34589
34590
34591
34592
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603
34604
34605
34606
34607
34608
34609
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633
34634
34635
34636
34637
34638
34639
34640
34641
34642
34643
34644
34645
34646
34647
34648
34649
34650
34651
34652
34653
34654
34655
34656
34657
34658
34659
34660
34661
34662
34663
34664
34665
34666
34667
34668
34669
34670
34671
34672
34673
34674
34675
34676
34677
34678
34679
34680
34681
34682
34683
34684
34685
34686
34687
34688
34689
34690
34691
34692
34693
34694
34695
34696
34697
34698
34699
34700
34701
34702
34703
34704
34705
34706
34707
34708
34709
34710
34711
34712
34713
34714
34715
34716
34717
34718
34719
34720
34721
34722
34723
34724
34725
34726
34727
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737
34738
34739
34740
34741
34742
34743
34744
34745
34746
34747
34748
34749
34750
34751
34752
34753
34754
34755
34756
34757
34758
34759
34760
34761
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
# File 'ext/notcurses/src/notcurses_wrap.c', line 34582

SWIGINTERN VALUE
_wrap_ncplane_perimeter(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  nccell *arg3 = (nccell *) 0 ;
  nccell *arg4 = (nccell *) 0 ;
  nccell *arg5 = (nccell *) 0 ;
  nccell *arg6 = (nccell *) 0 ;
  nccell *arg7 = (nccell *) 0 ;
  unsigned int arg8 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  void *argp7 = 0 ;
  int res7 = 0 ;
  unsigned int val8 ;
  int ecode8 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 8) || (argc > 8)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_perimeter", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell const *","ncplane_perimeter", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "nccell const *","ncplane_perimeter", 3, argv[2] )); 
  }
  arg3 = (nccell *)(argp3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "nccell const *","ncplane_perimeter", 4, argv[3] )); 
  }
  arg4 = (nccell *)(argp4);
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "nccell const *","ncplane_perimeter", 5, argv[4] )); 
  }
  arg5 = (nccell *)(argp5);
  res6 = SWIG_ConvertPtr(argv[5], &argp6,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "nccell const *","ncplane_perimeter", 6, argv[5] )); 
  }
  arg6 = (nccell *)(argp6);
  res7 = SWIG_ConvertPtr(argv[6], &argp7,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res7)) {
    SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "nccell const *","ncplane_perimeter", 7, argv[6] )); 
  }
  arg7 = (nccell *)(argp7);
  ecode8 = SWIG_AsVal_unsigned_SS_int(argv[7], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "unsigned int","ncplane_perimeter", 8, argv[7] ));
  } 
  arg8 = (unsigned int)(val8);
  result = (int)ncplane_perimeter(arg1,(struct nccell const *)arg2,(struct nccell const *)arg3,(struct nccell const *)arg4,(struct nccell const *)arg5,(struct nccell const *)arg6,(struct nccell const *)arg7,arg8);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ul")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ur")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ll")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("lr")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg6, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("hline")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg7, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vline")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_perimeter_double(*args) ⇒ Object

call-seq:

ncplane_perimeter_double(n, stylemask, channels, ctlword) -> int

A module function.



41435
41436
41437
41438
41439
41440
41441
41442
41443
41444
41445
41446
41447
41448
41449
41450
41451
41452
41453
41454
41455
41456
41457
41458
41459
41460
41461
41462
41463
41464
41465
41466
41467
41468
41469
41470
41471
41472
41473
41474
41475
41476
41477
41478
41479
41480
41481
41482
41483
41484
41485
41486
41487
41488
41489
41490
41491
41492
41493
41494
41495
41496
# File 'ext/notcurses/src/notcurses_wrap.c', line 41435

SWIGINTERN VALUE
_wrap_ncplane_perimeter_double(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint16_t arg2 ;
  uint64_t arg3 ;
  unsigned int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_perimeter_double", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","ncplane_perimeter_double", 2, argv[1] ));
  } 
  arg2 = (uint16_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncplane_perimeter_double", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_perimeter_double", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (int)ncplane_perimeter_double(arg1,arg2,arg3,arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_perimeter_rounded(*args) ⇒ Object

call-seq:

ncplane_perimeter_rounded(n, stylemask, channels, ctlword) -> int

A module function.



41095
41096
41097
41098
41099
41100
41101
41102
41103
41104
41105
41106
41107
41108
41109
41110
41111
41112
41113
41114
41115
41116
41117
41118
41119
41120
41121
41122
41123
41124
41125
41126
41127
41128
41129
41130
41131
41132
41133
41134
41135
41136
41137
41138
41139
41140
41141
41142
41143
41144
41145
41146
41147
41148
41149
41150
41151
41152
41153
41154
41155
41156
# File 'ext/notcurses/src/notcurses_wrap.c', line 41095

SWIGINTERN VALUE
_wrap_ncplane_perimeter_rounded(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint16_t arg2 ;
  uint64_t arg3 ;
  unsigned int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_perimeter_rounded", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","ncplane_perimeter_rounded", 2, argv[1] ));
  } 
  arg2 = (uint16_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncplane_perimeter_rounded", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_perimeter_rounded", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (int)ncplane_perimeter_rounded(arg1,arg2,arg3,arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_pixel_geom(*args) ⇒ Object

call-seq:

ncplane_pixel_geom(n, pxy, pxx, celldimy, celldimx, maxbmapy, maxbmapx)

A module function.



16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
# File 'ext/notcurses/src/notcurses_wrap.c', line 16913

SWIGINTERN VALUE
_wrap_ncplane_pixel_geom(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  unsigned int *arg4 = (unsigned int *) 0 ;
  unsigned int *arg5 = (unsigned int *) 0 ;
  unsigned int *arg6 = (unsigned int *) 0 ;
  unsigned int *arg7 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 7) || (argc > 7)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_pixel_geom", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg4 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (unsigned int) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg4 = (unsigned int) NUM2DBL(argv[3]);
      } else {
        *arg4 = (unsigned int) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg5 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg5 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg5 = (unsigned int) NUM2INT(argv[4]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg5 = (unsigned int) NUM2DBL(argv[4]);
      } else {
        *arg5 = (unsigned int) NUM2LL(argv[4]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg6 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg6 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg6 = (unsigned int) NUM2INT(argv[5]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg6 = (unsigned int) NUM2DBL(argv[5]);
      } else {
        *arg6 = (unsigned int) NUM2LL(argv[5]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg7 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg7 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg7 = (unsigned int) NUM2INT(argv[6]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg7 = (unsigned int) NUM2DBL(argv[6]);
      } else {
        *arg7 = (unsigned int) NUM2LL(argv[6]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ncplane_pixel_geom((struct ncplane const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("pxy")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("pxx")), converted_value);
      free(arg3);
    }
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("celldimy")), converted_value);
      free(arg4);
    }
  }
  {
    if (arg5 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg5);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg5);
        } else {
          converted_value = LL2NUM(*arg5);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("celldimx")), converted_value);
      free(arg5);
    }
  }
  {
    if (arg6 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg6);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg6);
        } else {
          converted_value = LL2NUM(*arg6);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("maxbmapy")), converted_value);
      free(arg6);
    }
  }
  {
    if (arg7 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg7);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg7);
        } else {
          converted_value = LL2NUM(*arg7);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("maxbmapx")), converted_value);
      free(arg7);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_polyfill_yx(*args) ⇒ Object

call-seq:

ncplane_polyfill_yx(n, y, x, c) -> int

A module function.



34783
34784
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796
34797
34798
34799
34800
34801
34802
34803
34804
34805
34806
34807
34808
34809
34810
34811
34812
34813
34814
34815
34816
34817
34818
34819
34820
34821
34822
34823
34824
34825
34826
34827
34828
34829
34830
34831
34832
34833
34834
34835
34836
34837
34838
34839
34840
34841
34842
34843
34844
34845
34846
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857
34858
34859
34860
# File 'ext/notcurses/src/notcurses_wrap.c', line 34783

SWIGINTERN VALUE
_wrap_ncplane_polyfill_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  nccell *arg4 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_polyfill_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_polyfill_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_polyfill_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "nccell const *","ncplane_polyfill_yx", 4, argv[3] )); 
  }
  arg4 = (nccell *)(argp4);
  result = (int)ncplane_polyfill_yx(arg1,arg2,arg3,(struct nccell const *)arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_printf(*args) ⇒ Object

call-seq:

ncplane_printf(n, format) -> int

A module function.



33337
33338
33339
33340
33341
33342
33343
33344
33345
33346
33347
33348
33349
33350
33351
33352
33353
33354
33355
33356
33357
33358
33359
33360
33361
33362
33363
33364
33365
33366
33367
33368
33369
33370
33371
33372
33373
33374
33375
33376
33377
33378
33379
33380
33381
33382
33383
33384
33385
33386
33387
33388
33389
33390
33391
33392
33393
33394
33395
33396
33397
33398
33399
# File 'ext/notcurses/src/notcurses_wrap.c', line 33337

SWIGINTERN VALUE
_wrap_ncplane_printf(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  char *arg2 = (char *) 0 ;
  void *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if (argc < 2) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_printf", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncplane_printf", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (int)ncplane_printf(arg1,(char const *)arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("format")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncplane_printf_aligned(*args) ⇒ Object

call-seq:

ncplane_printf_aligned(n, y, align, format) -> int

A module function.



33501
33502
33503
33504
33505
33506
33507
33508
33509
33510
33511
33512
33513
33514
33515
33516
33517
33518
33519
33520
33521
33522
33523
33524
33525
33526
33527
33528
33529
33530
33531
33532
33533
33534
33535
33536
33537
33538
33539
33540
33541
33542
33543
33544
33545
33546
33547
33548
33549
33550
33551
33552
33553
33554
33555
33556
33557
33558
33559
33560
33561
33562
33563
33564
33565
33566
33567
33568
33569
33570
33571
33572
33573
33574
33575
33576
33577
33578
33579
# File 'ext/notcurses/src/notcurses_wrap.c', line 33501

SWIGINTERN VALUE
_wrap_ncplane_printf_aligned(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  ncalign_e arg3 ;
  char *arg4 = (char *) 0 ;
  void *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 ;
  char *buf4 = 0 ;
  int alloc4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if (argc < 4) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_printf_aligned", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_printf_aligned", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "ncalign_e","ncplane_printf_aligned", 3, argv[2] ));
  } 
  arg3 = (ncalign_e)(val3);
  res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","ncplane_printf_aligned", 4, argv[3] ));
  }
  arg4 = (char *)(buf4);
  result = (int)ncplane_printf_aligned(arg1,arg2,arg3,(char const *)arg4,arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 = arg4 ? rb_str_new2(arg4) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("format")), obj);
  }
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return vresult;
fail:
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return Qnil;
}

.ncplane_printf_stained(*args) ⇒ Object

call-seq:

ncplane_printf_stained(n, format) -> int

A module function.



33591
33592
33593
33594
33595
33596
33597
33598
33599
33600
33601
33602
33603
33604
33605
33606
33607
33608
33609
33610
33611
33612
33613
33614
33615
33616
33617
33618
33619
33620
33621
33622
33623
33624
33625
33626
33627
33628
33629
33630
33631
33632
33633
33634
33635
33636
33637
33638
33639
33640
33641
33642
33643
33644
33645
33646
33647
33648
33649
33650
33651
33652
33653
# File 'ext/notcurses/src/notcurses_wrap.c', line 33591

SWIGINTERN VALUE
_wrap_ncplane_printf_stained(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  char *arg2 = (char *) 0 ;
  void *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if (argc < 2) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_printf_stained", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncplane_printf_stained", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (int)ncplane_printf_stained(arg1,(char const *)arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("format")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncplane_printf_yx(*args) ⇒ Object

call-seq:

ncplane_printf_yx(n, y, x, format) -> int

A module function.



33411
33412
33413
33414
33415
33416
33417
33418
33419
33420
33421
33422
33423
33424
33425
33426
33427
33428
33429
33430
33431
33432
33433
33434
33435
33436
33437
33438
33439
33440
33441
33442
33443
33444
33445
33446
33447
33448
33449
33450
33451
33452
33453
33454
33455
33456
33457
33458
33459
33460
33461
33462
33463
33464
33465
33466
33467
33468
33469
33470
33471
33472
33473
33474
33475
33476
33477
33478
33479
33480
33481
33482
33483
33484
33485
33486
33487
33488
33489
# File 'ext/notcurses/src/notcurses_wrap.c', line 33411

SWIGINTERN VALUE
_wrap_ncplane_printf_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  void *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 ;
  char *buf4 = 0 ;
  int alloc4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if (argc < 4) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_printf_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_printf_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_printf_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","ncplane_printf_yx", 4, argv[3] ));
  }
  arg4 = (char *)(buf4);
  result = (int)ncplane_printf_yx(arg1,arg2,arg3,(char const *)arg4,arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 = arg4 ? rb_str_new2(arg4) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("format")), obj);
  }
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return vresult;
fail:
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return Qnil;
}

.ncplane_pulse(*args) ⇒ Object

call-seq:

ncplane_pulse(n, ts, fader, curry) -> int

A module function.



39556
39557
39558
39559
39560
39561
39562
39563
39564
39565
39566
39567
39568
39569
39570
39571
39572
39573
39574
39575
39576
39577
39578
39579
39580
39581
39582
39583
39584
39585
39586
39587
39588
39589
39590
39591
39592
39593
39594
39595
39596
39597
39598
39599
39600
39601
39602
39603
39604
39605
39606
39607
39608
39609
39610
39611
39612
39613
39614
39615
39616
39617
39618
39619
39620
39621
39622
39623
39624
39625
39626
39627
39628
39629
39630
39631
39632
39633
39634
39635
39636
39637
39638
39639
39640
39641
39642
39643
39644
39645
39646
39647
39648
39649
39650
39651
39652
39653
39654
39655
39656
39657
39658
39659
39660
39661
39662
39663
39664
39665
39666
39667
39668
39669
# File 'ext/notcurses/src/notcurses_wrap.c', line 39556

SWIGINTERN VALUE
_wrap_ncplane_pulse(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct timespec *arg2 = (struct timespec *) 0 ;
  fadecb arg3 = (fadecb) 0 ;
  void *arg4 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res4 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_pulse", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    if (argv[1] == Qnil) {
      arg2 = NULL;
    } else if (rb_obj_is_kind_of(argv[1], rb_cTime)) {
      static struct timespec ts;
      VALUE seconds = rb_funcall(argv[1], rb_intern("to_f"), 0);
      ts.tv_sec = NUM2LONG(rb_funcall(seconds, rb_intern("floor"), 0));
      ts.tv_nsec = NUM2LONG(rb_funcall(rb_funcall(rb_funcall(seconds, rb_intern("-"), 1, seconds), rb_intern("*"), 1, INT2NUM(1000000000)), rb_intern("floor"), 0));
      arg2 = &ts;
    } else {
      SWIG_exception(SWIG_TypeError, "Expected Time or nil");
    }
  }
  {
    if (!NIL_P(argv[2])) {
      arg3 = (fadecb)rb_proc_new((VALUE (*)(ANYARGS))call_ruby_proc, argv[2]);
    } else {
      arg3 = NULL;
    }
  }
  res4 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg4), 0, 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","ncplane_pulse", 4, argv[3] )); 
  }
  result = (int)ncplane_pulse(arg1,(struct timespec const *)arg2,arg3,arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 timespec const *");
    if (!ty) ty = SWIGTYPE_p_timespec;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ts")), 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("fadecb");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_notcurses_p_struct_ncplane_p_q_const__struct_timespec_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("fader")), 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("void *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("curry")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_putc(*args) ⇒ Object

call-seq:

ncplane_putc(n, c) -> int

A module function.



30819
30820
30821
30822
30823
30824
30825
30826
30827
30828
30829
30830
30831
30832
30833
30834
30835
30836
30837
30838
30839
30840
30841
30842
30843
30844
30845
30846
30847
30848
30849
30850
30851
30852
30853
30854
30855
30856
30857
30858
30859
30860
30861
30862
30863
30864
30865
30866
30867
30868
30869
30870
30871
30872
30873
30874
30875
30876
30877
30878
30879
30880
# File 'ext/notcurses/src/notcurses_wrap.c', line 30819

SWIGINTERN VALUE
_wrap_ncplane_putc(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putc", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell const *","ncplane_putc", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  result = (int)ncplane_putc(arg1,(struct nccell const *)arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_putc_yx(*args) ⇒ Object

call-seq:

ncplane_putc_yx(n, y, x, c) -> int

A module function.



30730
30731
30732
30733
30734
30735
30736
30737
30738
30739
30740
30741
30742
30743
30744
30745
30746
30747
30748
30749
30750
30751
30752
30753
30754
30755
30756
30757
30758
30759
30760
30761
30762
30763
30764
30765
30766
30767
30768
30769
30770
30771
30772
30773
30774
30775
30776
30777
30778
30779
30780
30781
30782
30783
30784
30785
30786
30787
30788
30789
30790
30791
30792
30793
30794
30795
30796
30797
30798
30799
30800
30801
30802
30803
30804
30805
30806
30807
# File 'ext/notcurses/src/notcurses_wrap.c', line 30730

SWIGINTERN VALUE
_wrap_ncplane_putc_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  nccell *arg4 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putc_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_putc_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_putc_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "nccell const *","ncplane_putc_yx", 4, argv[3] )); 
  }
  arg4 = (nccell *)(argp4);
  result = (int)ncplane_putc_yx(arg1,arg2,arg3,(struct nccell const *)arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_putchar(*args) ⇒ Object

call-seq:

ncplane_putchar(n, c) -> int

A module function.



30965
30966
30967
30968
30969
30970
30971
30972
30973
30974
30975
30976
30977
30978
30979
30980
30981
30982
30983
30984
30985
30986
30987
30988
30989
30990
30991
30992
30993
30994
30995
30996
30997
30998
30999
31000
31001
31002
31003
31004
31005
31006
31007
31008
31009
31010
# File 'ext/notcurses/src/notcurses_wrap.c', line 30965

SWIGINTERN VALUE
_wrap_ncplane_putchar(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  char arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putchar", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_char(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "char","ncplane_putchar", 2, argv[1] ));
  } 
  arg2 = (char)(val2);
  result = (int)ncplane_putchar(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_putchar_stained(*args) ⇒ Object

call-seq:

ncplane_putchar_stained(n, c) -> int

A module function.



31022
31023
31024
31025
31026
31027
31028
31029
31030
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040
31041
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
# File 'ext/notcurses/src/notcurses_wrap.c', line 31022

SWIGINTERN VALUE
_wrap_ncplane_putchar_stained(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  char arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putchar_stained", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_char(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "char","ncplane_putchar_stained", 2, argv[1] ));
  } 
  arg2 = (char)(val2);
  result = (int)ncplane_putchar_stained(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_putchar_yx(*args) ⇒ Object

call-seq:

ncplane_putchar_yx(n, y, x, c) -> int

A module function.



30892
30893
30894
30895
30896
30897
30898
30899
30900
30901
30902
30903
30904
30905
30906
30907
30908
30909
30910
30911
30912
30913
30914
30915
30916
30917
30918
30919
30920
30921
30922
30923
30924
30925
30926
30927
30928
30929
30930
30931
30932
30933
30934
30935
30936
30937
30938
30939
30940
30941
30942
30943
30944
30945
30946
30947
30948
30949
30950
30951
30952
30953
# File 'ext/notcurses/src/notcurses_wrap.c', line 30892

SWIGINTERN VALUE
_wrap_ncplane_putchar_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  char arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  char val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putchar_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_putchar_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_putchar_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_char(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "char","ncplane_putchar_yx", 4, argv[3] ));
  } 
  arg4 = (char)(val4);
  result = (int)ncplane_putchar_yx(arg1,arg2,arg3,arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_putegc(*args) ⇒ Object

call-seq:

ncplane_putegc(n, gclust, sbytes) -> int

A module function.



31206
31207
31208
31209
31210
31211
31212
31213
31214
31215
31216
31217
31218
31219
31220
31221
31222
31223
31224
31225
31226
31227
31228
31229
31230
31231
31232
31233
31234
31235
31236
31237
31238
31239
31240
31241
31242
31243
31244
31245
31246
31247
31248
31249
31250
31251
31252
31253
31254
31255
31256
31257
31258
31259
31260
31261
31262
31263
31264
31265
31266
31267
31268
31269
31270
31271
31272
31273
31274
31275
31276
31277
31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300
31301
31302
31303
31304
31305
# File 'ext/notcurses/src/notcurses_wrap.c', line 31206

SWIGINTERN VALUE
_wrap_ncplane_putegc(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t *arg3 = (size_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putegc", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncplane_putegc", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_size_t, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "size_t *","ncplane_putegc", 3, argv[2] )); 
  }
  arg3 = (size_t *)(argp3);
  result = (int)ncplane_putegc(arg1,(char const *)arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("gclust")), obj);
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(size_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("size_t", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("sbytes")), converted_value);
      free(arg3);
    }
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncplane_putegc_stained(*args) ⇒ Object

call-seq:

ncplane_putegc_stained(n, gclust, sbytes) -> int

A module function.



31317
31318
31319
31320
31321
31322
31323
31324
31325
31326
31327
31328
31329
31330
31331
31332
31333
31334
31335
31336
31337
31338
31339
31340
31341
31342
31343
31344
31345
31346
31347
31348
31349
31350
31351
31352
31353
31354
31355
31356
31357
31358
31359
31360
31361
31362
31363
31364
31365
31366
31367
31368
31369
31370
31371
31372
31373
31374
31375
31376
31377
31378
31379
31380
31381
31382
31383
31384
31385
31386
31387
31388
31389
31390
31391
31392
31393
31394
31395
31396
31397
31398
31399
31400
31401
31402
31403
31404
31405
31406
31407
31408
31409
31410
31411
31412
31413
31414
31415
31416
# File 'ext/notcurses/src/notcurses_wrap.c', line 31317

SWIGINTERN VALUE
_wrap_ncplane_putegc_stained(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  char *arg2 = (char *) 0 ;
  size_t *arg3 = (size_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putegc_stained", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncplane_putegc_stained", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_size_t, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "size_t *","ncplane_putegc_stained", 3, argv[2] )); 
  }
  arg3 = (size_t *)(argp3);
  result = (int)ncplane_putegc_stained(arg1,(char const *)arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("gclust")), obj);
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(size_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("size_t", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("sbytes")), converted_value);
      free(arg3);
    }
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncplane_putegc_yx(*args) ⇒ Object

call-seq:

ncplane_putegc_yx(n, y, x, gclust, sbytes) -> int

A module function.



31079
31080
31081
31082
31083
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093
31094
31095
31096
31097
31098
31099
31100
31101
31102
31103
31104
31105
31106
31107
31108
31109
31110
31111
31112
31113
31114
31115
31116
31117
31118
31119
31120
31121
31122
31123
31124
31125
31126
31127
31128
31129
31130
31131
31132
31133
31134
31135
31136
31137
31138
31139
31140
31141
31142
31143
31144
31145
31146
31147
31148
31149
31150
31151
31152
31153
31154
31155
31156
31157
31158
31159
31160
31161
31162
31163
31164
31165
31166
31167
31168
31169
31170
31171
31172
31173
31174
31175
31176
31177
31178
31179
31180
31181
31182
31183
31184
31185
31186
31187
31188
31189
31190
31191
31192
31193
31194
# File 'ext/notcurses/src/notcurses_wrap.c', line 31079

SWIGINTERN VALUE
_wrap_ncplane_putegc_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  size_t *arg5 = (size_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 ;
  char *buf4 = 0 ;
  int alloc4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putegc_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_putegc_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_putegc_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","ncplane_putegc_yx", 4, argv[3] ));
  }
  arg4 = (char *)(buf4);
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_size_t, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "size_t *","ncplane_putegc_yx", 5, argv[4] )); 
  }
  arg5 = (size_t *)(argp5);
  result = (int)ncplane_putegc_yx(arg1,arg2,arg3,(char const *)arg4,arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 = arg4 ? rb_str_new2(arg4) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("gclust")), obj);
  }
  {
    if (arg5 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(size_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg5);
        break;
      case 8:
        if (strcmp("size_t", "double") == 0) {
          converted_value = DBL2NUM(*arg5);
        } else {
          converted_value = LL2NUM(*arg5);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("sbytes")), converted_value);
      free(arg5);
    }
  }
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return vresult;
fail:
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return Qnil;
}

.ncplane_putnstr(*args) ⇒ Object

call-seq:

ncplane_putnstr(n, s, gclustarr) -> int

A module function.



32441
32442
32443
32444
32445
32446
32447
32448
32449
32450
32451
32452
32453
32454
32455
32456
32457
32458
32459
32460
32461
32462
32463
32464
32465
32466
32467
32468
32469
32470
32471
32472
32473
32474
32475
32476
32477
32478
32479
32480
32481
32482
32483
32484
32485
32486
32487
32488
32489
32490
32491
32492
32493
32494
32495
32496
32497
32498
32499
32500
32501
32502
32503
32504
32505
32506
32507
32508
32509
32510
# File 'ext/notcurses/src/notcurses_wrap.c', line 32441

SWIGINTERN VALUE
_wrap_ncplane_putnstr(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  size_t arg2 ;
  char *arg3 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putnstr", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","ncplane_putnstr", 2, argv[1] ));
  } 
  arg2 = (size_t)(val2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","ncplane_putnstr", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  result = (int)ncplane_putnstr(arg1,arg2,(char const *)arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 = arg3 ? rb_str_new2(arg3) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("gclustarr")), obj);
  }
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.ncplane_putnstr_aligned(*args) ⇒ Object

call-seq:

ncplane_putnstr_aligned(n, y, align, s, str) -> int

A module function.



32247
32248
32249
32250
32251
32252
32253
32254
32255
32256
32257
32258
32259
32260
32261
32262
32263
32264
32265
32266
32267
32268
32269
32270
32271
32272
32273
32274
32275
32276
32277
32278
32279
32280
32281
32282
32283
32284
32285
32286
32287
32288
32289
32290
32291
32292
32293
32294
32295
32296
32297
32298
32299
32300
32301
32302
32303
32304
32305
32306
32307
32308
32309
32310
32311
32312
32313
32314
32315
32316
32317
32318
32319
32320
32321
32322
32323
32324
32325
32326
32327
32328
32329
32330
32331
32332
# File 'ext/notcurses/src/notcurses_wrap.c', line 32247

SWIGINTERN VALUE
_wrap_ncplane_putnstr_aligned(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  ncalign_e arg3 ;
  size_t arg4 ;
  char *arg5 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  int res5 ;
  char *buf5 = 0 ;
  int alloc5 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putnstr_aligned", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_putnstr_aligned", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "ncalign_e","ncplane_putnstr_aligned", 3, argv[2] ));
  } 
  arg3 = (ncalign_e)(val3);
  ecode4 = SWIG_AsVal_size_t(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","ncplane_putnstr_aligned", 4, argv[3] ));
  } 
  arg4 = (size_t)(val4);
  res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","ncplane_putnstr_aligned", 5, argv[4] ));
  }
  arg5 = (char *)(buf5);
  result = (int)ncplane_putnstr_aligned(arg1,arg2,arg3,arg4,(char const *)arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 = arg5 ? rb_str_new2(arg5) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("str")), obj);
  }
  if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
  return vresult;
fail:
  if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
  return Qnil;
}

.ncplane_putnstr_yx(*args) ⇒ Object

call-seq:

ncplane_putnstr_yx(n, y, x, s, gclusters) -> int

A module function.



32344
32345
32346
32347
32348
32349
32350
32351
32352
32353
32354
32355
32356
32357
32358
32359
32360
32361
32362
32363
32364
32365
32366
32367
32368
32369
32370
32371
32372
32373
32374
32375
32376
32377
32378
32379
32380
32381
32382
32383
32384
32385
32386
32387
32388
32389
32390
32391
32392
32393
32394
32395
32396
32397
32398
32399
32400
32401
32402
32403
32404
32405
32406
32407
32408
32409
32410
32411
32412
32413
32414
32415
32416
32417
32418
32419
32420
32421
32422
32423
32424
32425
32426
32427
32428
32429
# File 'ext/notcurses/src/notcurses_wrap.c', line 32344

SWIGINTERN VALUE
_wrap_ncplane_putnstr_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  size_t arg4 ;
  char *arg5 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  int res5 ;
  char *buf5 = 0 ;
  int alloc5 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putnstr_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_putnstr_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_putnstr_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_size_t(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","ncplane_putnstr_yx", 4, argv[3] ));
  } 
  arg4 = (size_t)(val4);
  res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","ncplane_putnstr_yx", 5, argv[4] ));
  }
  arg5 = (char *)(buf5);
  result = (int)ncplane_putnstr_yx(arg1,arg2,arg3,arg4,(char const *)arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 = arg5 ? rb_str_new2(arg5) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("gclusters")), obj);
  }
  if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
  return vresult;
fail:
  if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
  return Qnil;
}

.ncplane_putstr(*args) ⇒ Object

call-seq:

ncplane_putstr(n, gclustarr) -> int

A module function.



32012
32013
32014
32015
32016
32017
32018
32019
32020
32021
32022
32023
32024
32025
32026
32027
32028
32029
32030
32031
32032
32033
32034
32035
32036
32037
32038
32039
32040
32041
32042
32043
32044
32045
32046
32047
32048
32049
32050
32051
32052
32053
32054
32055
32056
32057
32058
32059
32060
32061
32062
32063
32064
32065
32066
32067
32068
32069
32070
32071
32072
32073
# File 'ext/notcurses/src/notcurses_wrap.c', line 32012

SWIGINTERN VALUE
_wrap_ncplane_putstr(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putstr", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncplane_putstr", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (int)ncplane_putstr(arg1,(char const *)arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("gclustarr")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncplane_putstr_aligned(*args) ⇒ Object

call-seq:

ncplane_putstr_aligned(n, y, align, s) -> int

A module function.



32085
32086
32087
32088
32089
32090
32091
32092
32093
32094
32095
32096
32097
32098
32099
32100
32101
32102
32103
32104
32105
32106
32107
32108
32109
32110
32111
32112
32113
32114
32115
32116
32117
32118
32119
32120
32121
32122
32123
32124
32125
32126
32127
32128
32129
32130
32131
32132
32133
32134
32135
32136
32137
32138
32139
32140
32141
32142
32143
32144
32145
32146
32147
32148
32149
32150
32151
32152
32153
32154
32155
32156
32157
32158
32159
32160
32161
32162
# File 'ext/notcurses/src/notcurses_wrap.c', line 32085

SWIGINTERN VALUE
_wrap_ncplane_putstr_aligned(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  ncalign_e arg3 ;
  char *arg4 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 ;
  char *buf4 = 0 ;
  int alloc4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putstr_aligned", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_putstr_aligned", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "ncalign_e","ncplane_putstr_aligned", 3, argv[2] ));
  } 
  arg3 = (ncalign_e)(val3);
  res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","ncplane_putstr_aligned", 4, argv[3] ));
  }
  arg4 = (char *)(buf4);
  result = (int)ncplane_putstr_aligned(arg1,arg2,arg3,(char const *)arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 = arg4 ? rb_str_new2(arg4) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("s")), obj);
  }
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return vresult;
fail:
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return Qnil;
}

.ncplane_putstr_stained(*args) ⇒ Object

call-seq:

ncplane_putstr_stained(n, gclusters) -> int

A module function.



32174
32175
32176
32177
32178
32179
32180
32181
32182
32183
32184
32185
32186
32187
32188
32189
32190
32191
32192
32193
32194
32195
32196
32197
32198
32199
32200
32201
32202
32203
32204
32205
32206
32207
32208
32209
32210
32211
32212
32213
32214
32215
32216
32217
32218
32219
32220
32221
32222
32223
32224
32225
32226
32227
32228
32229
32230
32231
32232
32233
32234
32235
# File 'ext/notcurses/src/notcurses_wrap.c', line 32174

SWIGINTERN VALUE
_wrap_ncplane_putstr_stained(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putstr_stained", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncplane_putstr_stained", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (int)ncplane_putstr_stained(arg1,(char const *)arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("gclusters")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncplane_putstr_yx(*args) ⇒ Object

call-seq:

ncplane_putstr_yx(n, y, x, gclusters) -> int

A module function.



31923
31924
31925
31926
31927
31928
31929
31930
31931
31932
31933
31934
31935
31936
31937
31938
31939
31940
31941
31942
31943
31944
31945
31946
31947
31948
31949
31950
31951
31952
31953
31954
31955
31956
31957
31958
31959
31960
31961
31962
31963
31964
31965
31966
31967
31968
31969
31970
31971
31972
31973
31974
31975
31976
31977
31978
31979
31980
31981
31982
31983
31984
31985
31986
31987
31988
31989
31990
31991
31992
31993
31994
31995
31996
31997
31998
31999
32000
# File 'ext/notcurses/src/notcurses_wrap.c', line 31923

SWIGINTERN VALUE
_wrap_ncplane_putstr_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 ;
  char *buf4 = 0 ;
  int alloc4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putstr_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_putstr_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_putstr_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","ncplane_putstr_yx", 4, argv[3] ));
  }
  arg4 = (char *)(buf4);
  result = (int)ncplane_putstr_yx(arg1,arg2,arg3,(char const *)arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 = arg4 ? rb_str_new2(arg4) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("gclusters")), obj);
  }
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return vresult;
fail:
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return Qnil;
}

.ncplane_puttext(*args) ⇒ Object

call-seq:

ncplane_puttext(n, y, align, text, bytes) -> int

A module function.



33665
33666
33667
33668
33669
33670
33671
33672
33673
33674
33675
33676
33677
33678
33679
33680
33681
33682
33683
33684
33685
33686
33687
33688
33689
33690
33691
33692
33693
33694
33695
33696
33697
33698
33699
33700
33701
33702
33703
33704
33705
33706
33707
33708
33709
33710
33711
33712
33713
33714
33715
33716
33717
33718
33719
33720
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731
33732
33733
33734
33735
33736
33737
33738
33739
33740
33741
33742
33743
33744
33745
33746
33747
33748
33749
33750
33751
33752
33753
33754
33755
33756
33757
33758
33759
33760
33761
33762
33763
33764
33765
33766
33767
33768
33769
33770
33771
33772
33773
33774
33775
33776
33777
33778
33779
33780
# File 'ext/notcurses/src/notcurses_wrap.c', line 33665

SWIGINTERN VALUE
_wrap_ncplane_puttext(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  ncalign_e arg3 ;
  char *arg4 = (char *) 0 ;
  size_t *arg5 = (size_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 ;
  char *buf4 = 0 ;
  int alloc4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_puttext", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_puttext", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "ncalign_e","ncplane_puttext", 3, argv[2] ));
  } 
  arg3 = (ncalign_e)(val3);
  res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","ncplane_puttext", 4, argv[3] ));
  }
  arg4 = (char *)(buf4);
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_size_t, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "size_t *","ncplane_puttext", 5, argv[4] )); 
  }
  arg5 = (size_t *)(argp5);
  result = (int)ncplane_puttext(arg1,arg2,arg3,(char const *)arg4,arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 = arg4 ? rb_str_new2(arg4) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("text")), obj);
  }
  {
    if (arg5 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(size_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg5);
        break;
      case 8:
        if (strcmp("size_t", "double") == 0) {
          converted_value = DBL2NUM(*arg5);
        } else {
          converted_value = LL2NUM(*arg5);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("bytes")), converted_value);
      free(arg5);
    }
  }
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return vresult;
fail:
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return Qnil;
}

.ncplane_pututf_32_yx(*args) ⇒ Object

call-seq:

ncplane_pututf_32_yx(n, y, x, u) -> int

A module function.



32930
32931
32932
32933
32934
32935
32936
32937
32938
32939
32940
32941
32942
32943
32944
32945
32946
32947
32948
32949
32950
32951
32952
32953
32954
32955
32956
32957
32958
32959
32960
32961
32962
32963
32964
32965
32966
32967
32968
32969
32970
32971
32972
32973
32974
32975
32976
32977
32978
32979
32980
32981
32982
32983
32984
32985
32986
32987
32988
32989
32990
32991
# File 'ext/notcurses/src/notcurses_wrap.c', line 32930

SWIGINTERN VALUE
_wrap_ncplane_pututf_32_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  uint32_t arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_pututf32_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_pututf32_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_pututf32_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","ncplane_pututf32_yx", 4, argv[3] ));
  } 
  arg4 = (uint32_t)(val4);
  result = (int)ncplane_pututf32_yx(arg1,arg2,arg3,arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_putwc(*args) ⇒ Object

call-seq:

ncplane_putwc(n, w) -> int

A module function.



33076
33077
33078
33079
33080
33081
33082
33083
33084
33085
33086
33087
33088
33089
33090
33091
33092
33093
33094
33095
33096
33097
33098
33099
33100
33101
33102
33103
33104
33105
33106
33107
33108
33109
33110
33111
33112
33113
33114
33115
33116
33117
33118
33119
33120
33121
# File 'ext/notcurses/src/notcurses_wrap.c', line 33076

SWIGINTERN VALUE
_wrap_ncplane_putwc(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  wchar_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  wchar_t val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putwc", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_wchar_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "wchar_t","ncplane_putwc", 2, argv[1] ));
  } 
  arg2 = (wchar_t)(val2);
  result = (int)ncplane_putwc(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_putwc_stained(*args) ⇒ Object

call-seq:

ncplane_putwc_stained(n, w) -> int

A module function.



33280
33281
33282
33283
33284
33285
33286
33287
33288
33289
33290
33291
33292
33293
33294
33295
33296
33297
33298
33299
33300
33301
33302
33303
33304
33305
33306
33307
33308
33309
33310
33311
33312
33313
33314
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
# File 'ext/notcurses/src/notcurses_wrap.c', line 33280

SWIGINTERN VALUE
_wrap_ncplane_putwc_stained(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  wchar_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  wchar_t val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putwc_stained", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_wchar_t(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "wchar_t","ncplane_putwc_stained", 2, argv[1] ));
  } 
  arg2 = (wchar_t)(val2);
  result = (int)ncplane_putwc_stained(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_putwc_utf_32(*args) ⇒ Object

call-seq:

ncplane_putwc_utf_32(n, w, wchars) -> int

A module function.



33133
33134
33135
33136
33137
33138
33139
33140
33141
33142
33143
33144
33145
33146
33147
33148
33149
33150
33151
33152
33153
33154
33155
33156
33157
33158
33159
33160
33161
33162
33163
33164
33165
33166
33167
33168
33169
33170
33171
33172
33173
33174
33175
33176
33177
33178
33179
33180
33181
33182
33183
33184
33185
33186
33187
33188
33189
33190
33191
33192
33193
33194
33195
33196
33197
33198
33199
33200
33201
33202
33203
33204
33205
33206
33207
33208
33209
33210
33211
33212
33213
33214
33215
33216
33217
33218
33219
33220
33221
33222
33223
33224
33225
33226
33227
33228
33229
33230
33231
33232
33233
33234
33235
33236
33237
33238
33239
33240
33241
33242
33243
33244
33245
33246
33247
33248
33249
33250
33251
33252
33253
33254
33255
33256
33257
33258
33259
33260
33261
33262
33263
33264
33265
33266
33267
33268
# File 'ext/notcurses/src/notcurses_wrap.c', line 33133

SWIGINTERN VALUE
_wrap_ncplane_putwc_utf_32(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  wchar_t *arg2 = (wchar_t *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  wchar_t *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putwc_utf32", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsWCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "wchar_t const *","ncplane_putwc_utf32", 2, argv[1] ));
  }
  arg2 = (wchar_t *)(buf2);
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (int)ncplane_putwc_utf32(arg1,(wchar_t const *)arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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;
    if (arg2 == NULL) {
      obj = Qnil;
    } else {
      // Convert wchar_t* to UTF-8 encoded Ruby string
      setlocale(LC_ALL, "");
      size_t utf8_len = wcstombs(NULL, arg2, 0);  // Get required buffer size
      if (utf8_len != (size_t)-1) {
        char *utf8_str = (char*)malloc(utf8_len + 1);
        if (utf8_str) {
          wcstombs(utf8_str, arg2, utf8_len + 1);
          obj = rb_str_new2(utf8_str);
          rb_enc_associate(obj, rb_utf8_encoding());
          free(utf8_str);
        } else {
          obj = Qnil; // Handle allocation failure
        }
      } else {
        obj = Qnil; // Handle conversion failure
      }
    }
    
    rb_hash_aset(vresult, ID2SYM(rb_intern("w")), obj);
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("wchars")), converted_value);
      free(arg3);
    }
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncplane_putwc_yx(*args) ⇒ Object

call-seq:

ncplane_putwc_yx(n, y, x, w) -> int

A module function.



33003
33004
33005
33006
33007
33008
33009
33010
33011
33012
33013
33014
33015
33016
33017
33018
33019
33020
33021
33022
33023
33024
33025
33026
33027
33028
33029
33030
33031
33032
33033
33034
33035
33036
33037
33038
33039
33040
33041
33042
33043
33044
33045
33046
33047
33048
33049
33050
33051
33052
33053
33054
33055
33056
33057
33058
33059
33060
33061
33062
33063
33064
# File 'ext/notcurses/src/notcurses_wrap.c', line 33003

SWIGINTERN VALUE
_wrap_ncplane_putwc_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  wchar_t arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  wchar_t val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putwc_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_putwc_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_putwc_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_wchar_t(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "wchar_t","ncplane_putwc_yx", 4, argv[3] ));
  } 
  arg4 = (wchar_t)(val4);
  result = (int)ncplane_putwc_yx(arg1,arg2,arg3,arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_putwegc(*args) ⇒ Object

call-seq:

ncplane_putwegc(n, gclust, sbytes) -> int

A module function.



31511
31512
31513
31514
31515
31516
31517
31518
31519
31520
31521
31522
31523
31524
31525
31526
31527
31528
31529
31530
31531
31532
31533
31534
31535
31536
31537
31538
31539
31540
31541
31542
31543
31544
31545
31546
31547
31548
31549
31550
31551
31552
31553
31554
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565
31566
31567
31568
31569
31570
31571
31572
31573
31574
31575
31576
31577
31578
31579
31580
31581
31582
31583
31584
31585
31586
31587
31588
31589
31590
31591
31592
31593
31594
31595
31596
31597
31598
31599
31600
31601
31602
31603
31604
31605
31606
31607
31608
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627
31628
31629
31630
31631
# File 'ext/notcurses/src/notcurses_wrap.c', line 31511

SWIGINTERN VALUE
_wrap_ncplane_putwegc(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  wchar_t *arg2 = (wchar_t *) 0 ;
  size_t *arg3 = (size_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  wchar_t *buf2 = 0 ;
  int alloc2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putwegc", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsWCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "wchar_t const *","ncplane_putwegc", 2, argv[1] ));
  }
  arg2 = (wchar_t *)(buf2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_size_t, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "size_t *","ncplane_putwegc", 3, argv[2] )); 
  }
  arg3 = (size_t *)(argp3);
  result = (int)ncplane_putwegc(arg1,(wchar_t const *)arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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;
    if (arg2 == NULL) {
      obj = Qnil;
    } else {
      // Convert wchar_t* to UTF-8 encoded Ruby string
      setlocale(LC_ALL, "");
      size_t utf8_len = wcstombs(NULL, arg2, 0);  // Get required buffer size
      if (utf8_len != (size_t)-1) {
        char *utf8_str = (char*)malloc(utf8_len + 1);
        if (utf8_str) {
          wcstombs(utf8_str, arg2, utf8_len + 1);
          obj = rb_str_new2(utf8_str);
          rb_enc_associate(obj, rb_utf8_encoding());
          free(utf8_str);
        } else {
          obj = Qnil; // Handle allocation failure
        }
      } else {
        obj = Qnil; // Handle conversion failure
      }
    }
    
    rb_hash_aset(vresult, ID2SYM(rb_intern("gclust")), obj);
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(size_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("size_t", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("sbytes")), converted_value);
      free(arg3);
    }
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncplane_putwegc_stained(*args) ⇒ Object

call-seq:

ncplane_putwegc_stained(n, gclust, sbytes) -> int

A module function.



31791
31792
31793
31794
31795
31796
31797
31798
31799
31800
31801
31802
31803
31804
31805
31806
31807
31808
31809
31810
31811
31812
31813
31814
31815
31816
31817
31818
31819
31820
31821
31822
31823
31824
31825
31826
31827
31828
31829
31830
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846
31847
31848
31849
31850
31851
31852
31853
31854
31855
31856
31857
31858
31859
31860
31861
31862
31863
31864
31865
31866
31867
31868
31869
31870
31871
31872
31873
31874
31875
31876
31877
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893
31894
31895
31896
31897
31898
31899
31900
31901
31902
31903
31904
31905
31906
31907
31908
31909
31910
31911
# File 'ext/notcurses/src/notcurses_wrap.c', line 31791

SWIGINTERN VALUE
_wrap_ncplane_putwegc_stained(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  wchar_t *arg2 = (wchar_t *) 0 ;
  size_t *arg3 = (size_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  wchar_t *buf2 = 0 ;
  int alloc2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putwegc_stained", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsWCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "wchar_t const *","ncplane_putwegc_stained", 2, argv[1] ));
  }
  arg2 = (wchar_t *)(buf2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_size_t, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "size_t *","ncplane_putwegc_stained", 3, argv[2] )); 
  }
  arg3 = (size_t *)(argp3);
  result = (int)ncplane_putwegc_stained(arg1,(wchar_t const *)arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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;
    if (arg2 == NULL) {
      obj = Qnil;
    } else {
      // Convert wchar_t* to UTF-8 encoded Ruby string
      setlocale(LC_ALL, "");
      size_t utf8_len = wcstombs(NULL, arg2, 0);  // Get required buffer size
      if (utf8_len != (size_t)-1) {
        char *utf8_str = (char*)malloc(utf8_len + 1);
        if (utf8_str) {
          wcstombs(utf8_str, arg2, utf8_len + 1);
          obj = rb_str_new2(utf8_str);
          rb_enc_associate(obj, rb_utf8_encoding());
          free(utf8_str);
        } else {
          obj = Qnil; // Handle allocation failure
        }
      } else {
        obj = Qnil; // Handle conversion failure
      }
    }
    
    rb_hash_aset(vresult, ID2SYM(rb_intern("gclust")), obj);
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(size_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("size_t", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("sbytes")), converted_value);
      free(arg3);
    }
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncplane_putwegc_yx(*args) ⇒ Object

call-seq:

ncplane_putwegc_yx(n, y, x, gclust, sbytes) -> int

A module function.



31643
31644
31645
31646
31647
31648
31649
31650
31651
31652
31653
31654
31655
31656
31657
31658
31659
31660
31661
31662
31663
31664
31665
31666
31667
31668
31669
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
31722
31723
31724
31725
31726
31727
31728
31729
31730
31731
31732
31733
31734
31735
31736
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746
31747
31748
31749
31750
31751
31752
31753
31754
31755
31756
31757
31758
31759
31760
31761
31762
31763
31764
31765
31766
31767
31768
31769
31770
31771
31772
31773
31774
31775
31776
31777
31778
31779
# File 'ext/notcurses/src/notcurses_wrap.c', line 31643

SWIGINTERN VALUE
_wrap_ncplane_putwegc_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  wchar_t *arg4 = (wchar_t *) 0 ;
  size_t *arg5 = (size_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 ;
  wchar_t *buf4 = 0 ;
  int alloc4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putwegc_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_putwegc_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_putwegc_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  res4 = SWIG_AsWCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "wchar_t const *","ncplane_putwegc_yx", 4, argv[3] ));
  }
  arg4 = (wchar_t *)(buf4);
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_size_t, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "size_t *","ncplane_putwegc_yx", 5, argv[4] )); 
  }
  arg5 = (size_t *)(argp5);
  result = (int)ncplane_putwegc_yx(arg1,arg2,arg3,(wchar_t const *)arg4,arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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;
    if (arg4 == NULL) {
      obj = Qnil;
    } else {
      // Convert wchar_t* to UTF-8 encoded Ruby string
      setlocale(LC_ALL, "");
      size_t utf8_len = wcstombs(NULL, arg4, 0);  // Get required buffer size
      if (utf8_len != (size_t)-1) {
        char *utf8_str = (char*)malloc(utf8_len + 1);
        if (utf8_str) {
          wcstombs(utf8_str, arg4, utf8_len + 1);
          obj = rb_str_new2(utf8_str);
          rb_enc_associate(obj, rb_utf8_encoding());
          free(utf8_str);
        } else {
          obj = Qnil; // Handle allocation failure
        }
      } else {
        obj = Qnil; // Handle conversion failure
      }
    }
    
    rb_hash_aset(vresult, ID2SYM(rb_intern("gclust")), obj);
  }
  {
    if (arg5 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(size_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg5);
        break;
      case 8:
        if (strcmp("size_t", "double") == 0) {
          converted_value = DBL2NUM(*arg5);
        } else {
          converted_value = LL2NUM(*arg5);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("sbytes")), converted_value);
      free(arg5);
    }
  }
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return vresult;
fail:
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return Qnil;
}

.ncplane_putwstr(*args) ⇒ Object

call-seq:

ncplane_putwstr(n, gclustarr) -> int

A module function.



32836
32837
32838
32839
32840
32841
32842
32843
32844
32845
32846
32847
32848
32849
32850
32851
32852
32853
32854
32855
32856
32857
32858
32859
32860
32861
32862
32863
32864
32865
32866
32867
32868
32869
32870
32871
32872
32873
32874
32875
32876
32877
32878
32879
32880
32881
32882
32883
32884
32885
32886
32887
32888
32889
32890
32891
32892
32893
32894
32895
32896
32897
32898
32899
32900
32901
32902
32903
32904
32905
32906
32907
32908
32909
32910
32911
32912
32913
32914
32915
32916
32917
32918
# File 'ext/notcurses/src/notcurses_wrap.c', line 32836

SWIGINTERN VALUE
_wrap_ncplane_putwstr(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  wchar_t *arg2 = (wchar_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  wchar_t *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putwstr", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsWCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "wchar_t const *","ncplane_putwstr", 2, argv[1] ));
  }
  arg2 = (wchar_t *)(buf2);
  result = (int)ncplane_putwstr(arg1,(wchar_t const *)arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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;
    if (arg2 == NULL) {
      obj = Qnil;
    } else {
      // Convert wchar_t* to UTF-8 encoded Ruby string
      setlocale(LC_ALL, "");
      size_t utf8_len = wcstombs(NULL, arg2, 0);  // Get required buffer size
      if (utf8_len != (size_t)-1) {
        char *utf8_str = (char*)malloc(utf8_len + 1);
        if (utf8_str) {
          wcstombs(utf8_str, arg2, utf8_len + 1);
          obj = rb_str_new2(utf8_str);
          rb_enc_associate(obj, rb_utf8_encoding());
          free(utf8_str);
        } else {
          obj = Qnil; // Handle allocation failure
        }
      } else {
        obj = Qnil; // Handle conversion failure
      }
    }
    
    rb_hash_aset(vresult, ID2SYM(rb_intern("gclustarr")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncplane_putwstr_aligned(*args) ⇒ Object

call-seq:

ncplane_putwstr_aligned(n, y, align, gclustarr) -> int

A module function.



32632
32633
32634
32635
32636
32637
32638
32639
32640
32641
32642
32643
32644
32645
32646
32647
32648
32649
32650
32651
32652
32653
32654
32655
32656
32657
32658
32659
32660
32661
32662
32663
32664
32665
32666
32667
32668
32669
32670
32671
32672
32673
32674
32675
32676
32677
32678
32679
32680
32681
32682
32683
32684
32685
32686
32687
32688
32689
32690
32691
32692
32693
32694
32695
32696
32697
32698
32699
32700
32701
32702
32703
32704
32705
32706
32707
32708
32709
32710
32711
32712
32713
32714
32715
32716
32717
32718
32719
32720
32721
32722
32723
32724
32725
32726
32727
32728
32729
32730
# File 'ext/notcurses/src/notcurses_wrap.c', line 32632

SWIGINTERN VALUE
_wrap_ncplane_putwstr_aligned(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  ncalign_e arg3 ;
  wchar_t *arg4 = (wchar_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 ;
  wchar_t *buf4 = 0 ;
  int alloc4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putwstr_aligned", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_putwstr_aligned", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "ncalign_e","ncplane_putwstr_aligned", 3, argv[2] ));
  } 
  arg3 = (ncalign_e)(val3);
  res4 = SWIG_AsWCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "wchar_t const *","ncplane_putwstr_aligned", 4, argv[3] ));
  }
  arg4 = (wchar_t *)(buf4);
  result = (int)ncplane_putwstr_aligned(arg1,arg2,arg3,(wchar_t const *)arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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;
    if (arg4 == NULL) {
      obj = Qnil;
    } else {
      // Convert wchar_t* to UTF-8 encoded Ruby string
      setlocale(LC_ALL, "");
      size_t utf8_len = wcstombs(NULL, arg4, 0);  // Get required buffer size
      if (utf8_len != (size_t)-1) {
        char *utf8_str = (char*)malloc(utf8_len + 1);
        if (utf8_str) {
          wcstombs(utf8_str, arg4, utf8_len + 1);
          obj = rb_str_new2(utf8_str);
          rb_enc_associate(obj, rb_utf8_encoding());
          free(utf8_str);
        } else {
          obj = Qnil; // Handle allocation failure
        }
      } else {
        obj = Qnil; // Handle conversion failure
      }
    }
    
    rb_hash_aset(vresult, ID2SYM(rb_intern("gclustarr")), obj);
  }
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return vresult;
fail:
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return Qnil;
}

.ncplane_putwstr_stained(*args) ⇒ Object

call-seq:

ncplane_putwstr_stained(n, gclustarr) -> int

A module function.



32742
32743
32744
32745
32746
32747
32748
32749
32750
32751
32752
32753
32754
32755
32756
32757
32758
32759
32760
32761
32762
32763
32764
32765
32766
32767
32768
32769
32770
32771
32772
32773
32774
32775
32776
32777
32778
32779
32780
32781
32782
32783
32784
32785
32786
32787
32788
32789
32790
32791
32792
32793
32794
32795
32796
32797
32798
32799
32800
32801
32802
32803
32804
32805
32806
32807
32808
32809
32810
32811
32812
32813
32814
32815
32816
32817
32818
32819
32820
32821
32822
32823
32824
# File 'ext/notcurses/src/notcurses_wrap.c', line 32742

SWIGINTERN VALUE
_wrap_ncplane_putwstr_stained(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  wchar_t *arg2 = (wchar_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  wchar_t *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putwstr_stained", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsWCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "wchar_t const *","ncplane_putwstr_stained", 2, argv[1] ));
  }
  arg2 = (wchar_t *)(buf2);
  result = (int)ncplane_putwstr_stained(arg1,(wchar_t const *)arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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;
    if (arg2 == NULL) {
      obj = Qnil;
    } else {
      // Convert wchar_t* to UTF-8 encoded Ruby string
      setlocale(LC_ALL, "");
      size_t utf8_len = wcstombs(NULL, arg2, 0);  // Get required buffer size
      if (utf8_len != (size_t)-1) {
        char *utf8_str = (char*)malloc(utf8_len + 1);
        if (utf8_str) {
          wcstombs(utf8_str, arg2, utf8_len + 1);
          obj = rb_str_new2(utf8_str);
          rb_enc_associate(obj, rb_utf8_encoding());
          free(utf8_str);
        } else {
          obj = Qnil; // Handle allocation failure
        }
      } else {
        obj = Qnil; // Handle conversion failure
      }
    }
    
    rb_hash_aset(vresult, ID2SYM(rb_intern("gclustarr")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncplane_putwstr_yx(*args) ⇒ Object

call-seq:

ncplane_putwstr_yx(n, y, x, gclustarr) -> int

A module function.



32522
32523
32524
32525
32526
32527
32528
32529
32530
32531
32532
32533
32534
32535
32536
32537
32538
32539
32540
32541
32542
32543
32544
32545
32546
32547
32548
32549
32550
32551
32552
32553
32554
32555
32556
32557
32558
32559
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569
32570
32571
32572
32573
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587
32588
32589
32590
32591
32592
32593
32594
32595
32596
32597
32598
32599
32600
32601
32602
32603
32604
32605
32606
32607
32608
32609
32610
32611
32612
32613
32614
32615
32616
32617
32618
32619
32620
# File 'ext/notcurses/src/notcurses_wrap.c', line 32522

SWIGINTERN VALUE
_wrap_ncplane_putwstr_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  wchar_t *arg4 = (wchar_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 ;
  wchar_t *buf4 = 0 ;
  int alloc4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_putwstr_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_putwstr_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_putwstr_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  res4 = SWIG_AsWCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "wchar_t const *","ncplane_putwstr_yx", 4, argv[3] ));
  }
  arg4 = (wchar_t *)(buf4);
  result = (int)ncplane_putwstr_yx(arg1,arg2,arg3,(wchar_t const *)arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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;
    if (arg4 == NULL) {
      obj = Qnil;
    } else {
      // Convert wchar_t* to UTF-8 encoded Ruby string
      setlocale(LC_ALL, "");
      size_t utf8_len = wcstombs(NULL, arg4, 0);  // Get required buffer size
      if (utf8_len != (size_t)-1) {
        char *utf8_str = (char*)malloc(utf8_len + 1);
        if (utf8_str) {
          wcstombs(utf8_str, arg4, utf8_len + 1);
          obj = rb_str_new2(utf8_str);
          rb_enc_associate(obj, rb_utf8_encoding());
          free(utf8_str);
        } else {
          obj = Qnil; // Handle allocation failure
        }
      } else {
        obj = Qnil; // Handle conversion failure
      }
    }
    
    rb_hash_aset(vresult, ID2SYM(rb_intern("gclustarr")), obj);
  }
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return vresult;
fail:
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return Qnil;
}

.ncplane_qrcode(*args) ⇒ Object

call-seq:

ncplane_qrcode(n, ymax, xmax, data, len) -> int

A module function.



66673
66674
66675
66676
66677
66678
66679
66680
66681
66682
66683
66684
66685
66686
66687
66688
66689
66690
66691
66692
66693
66694
66695
66696
66697
66698
66699
66700
66701
66702
66703
66704
66705
66706
66707
66708
66709
66710
66711
66712
66713
66714
66715
66716
66717
66718
66719
66720
66721
66722
66723
66724
66725
66726
66727
66728
66729
66730
66731
66732
66733
66734
66735
66736
66737
66738
66739
66740
66741
66742
66743
66744
66745
66746
66747
66748
66749
66750
66751
66752
66753
66754
66755
66756
66757
66758
66759
66760
66761
66762
66763
66764
66765
66766
66767
66768
66769
66770
66771
66772
66773
66774
66775
66776
66777
66778
66779
66780
66781
66782
66783
66784
66785
66786
66787
66788
66789
66790
66791
66792
66793
66794
66795
66796
66797
66798
66799
66800
66801
66802
66803
66804
66805
66806
66807
66808
66809
66810
66811
66812
66813
66814
66815
66816
66817
66818
66819
66820
66821
66822
66823
66824
66825
66826
66827
66828
66829
66830
66831
66832
66833
66834
66835
66836
66837
66838
66839
66840
66841
66842
66843
66844
66845
66846
# File 'ext/notcurses/src/notcurses_wrap.c', line 66673

SWIGINTERN VALUE
_wrap_ncplane_qrcode(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  void *arg4 = (void *) 0 ;
  size_t arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res4 ;
  size_t val5 ;
  int ecode5 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_qrcode", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  res4 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg4), 0, 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void const *","ncplane_qrcode", 4, argv[3] )); 
  }
  ecode5 = SWIG_AsVal_size_t(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "size_t","ncplane_qrcode", 5, argv[4] ));
  } 
  arg5 = (size_t)(val5);
  result = (int)ncplane_qrcode(arg1,arg2,arg3,(void const *)arg4,arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("ymax")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("xmax")), converted_value);
      free(arg3);
    }
  }
  {
    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("void const *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("data")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_reparent(*args) ⇒ Object

call-seq:

ncplane_reparent(n, newparent) -> struct ncplane *

A module function.



19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
# File 'ext/notcurses/src/notcurses_wrap.c', line 19410

SWIGINTERN VALUE
_wrap_ncplane_reparent(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct ncplane *arg2 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  struct ncplane *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_reparent", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_reparent", 2, argv[1] )); 
  }
  arg2 = (struct ncplane *)(argp2);
  result = (struct ncplane *)ncplane_reparent(arg1,arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("newparent")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_reparent_family(*args) ⇒ Object

call-seq:

ncplane_reparent_family(n, newparent) -> struct ncplane *

A module function.



19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
# File 'ext/notcurses/src/notcurses_wrap.c', line 19495

SWIGINTERN VALUE
_wrap_ncplane_reparent_family(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct ncplane *arg2 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  struct ncplane *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_reparent_family", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_reparent_family", 2, argv[1] )); 
  }
  arg2 = (struct ncplane *)(argp2);
  result = (struct ncplane *)ncplane_reparent_family(arg1,arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("newparent")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_resize(*args) ⇒ Object

call-seq:

ncplane_resize(n, keepy, keepx, keepleny, keeplenx, yoff, xoff, ylen, xlen) -> int

A module function.



26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
# File 'ext/notcurses/src/notcurses_wrap.c', line 26790

SWIGINTERN VALUE
_wrap_ncplane_resize(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  unsigned int arg4 ;
  unsigned int arg5 ;
  int arg6 ;
  int arg7 ;
  unsigned int arg8 ;
  unsigned int arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  int val7 ;
  int ecode7 = 0 ;
  unsigned int val8 ;
  int ecode8 = 0 ;
  unsigned int val9 ;
  int ecode9 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 9) || (argc > 9)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_resize", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_resize", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_resize", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_resize", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncplane_resize", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  ecode6 = SWIG_AsVal_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","ncplane_resize", 6, argv[5] ));
  } 
  arg6 = (int)(val6);
  ecode7 = SWIG_AsVal_int(argv[6], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","ncplane_resize", 7, argv[6] ));
  } 
  arg7 = (int)(val7);
  ecode8 = SWIG_AsVal_unsigned_SS_int(argv[7], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "unsigned int","ncplane_resize", 8, argv[7] ));
  } 
  arg8 = (unsigned int)(val8);
  ecode9 = SWIG_AsVal_unsigned_SS_int(argv[8], &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "unsigned int","ncplane_resize", 9, argv[8] ));
  } 
  arg9 = (unsigned int)(val9);
  result = (int)ncplane_resize(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_resize_marginalized(*args) ⇒ Object

call-seq:

ncplane_resize_marginalized(n) -> int

A module function.



19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
# File 'ext/notcurses/src/notcurses_wrap.c', line 19008

SWIGINTERN VALUE
_wrap_ncplane_resize_marginalized(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_resize_marginalized", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (int)ncplane_resize_marginalized(arg1);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_resize_maximize(*args) ⇒ Object

call-seq:

ncplane_resize_maximize(n) -> int

A module function.



18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
# File 'ext/notcurses/src/notcurses_wrap.c', line 18959

SWIGINTERN VALUE
_wrap_ncplane_resize_maximize(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_resize_maximize", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (int)ncplane_resize_maximize(arg1);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_resize_placewithin(*args) ⇒ Object

call-seq:

ncplane_resize_placewithin(n) -> int

A module function.



19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
# File 'ext/notcurses/src/notcurses_wrap.c', line 19106

SWIGINTERN VALUE
_wrap_ncplane_resize_placewithin(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_resize_placewithin", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (int)ncplane_resize_placewithin(arg1);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_resize_realign(*args) ⇒ Object

call-seq:

ncplane_resize_realign(n) -> int

A module function.



19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
# File 'ext/notcurses/src/notcurses_wrap.c', line 19057

SWIGINTERN VALUE
_wrap_ncplane_resize_realign(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_resize_realign", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (int)ncplane_resize_realign(arg1);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_resize_simple(*args) ⇒ Object

call-seq:

ncplane_resize_simple(n, ylen, xlen) -> int

A module function.



26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954
26955
26956
# File 'ext/notcurses/src/notcurses_wrap.c', line 26903

SWIGINTERN VALUE
_wrap_ncplane_resize_simple(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_resize_simple", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncplane_resize_simple", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncplane_resize_simple", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  result = (int)ncplane_resize_simple(arg1,arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_resizecb(*args) ⇒ Object

call-seq:

ncplane_resizecb(n) -> int (*)(struct ncplane *)

A module function.



19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
# File 'ext/notcurses/src/notcurses_wrap.c', line 19226

SWIGINTERN VALUE
_wrap_ncplane_resizecb(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int (*result)(struct ncplane *) = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_resizecb", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (int (*)(struct ncplane *))ncplane_resizecb((struct ncplane const *)arg1);
  vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_ncplane__int);
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_rotate_ccw(*args) ⇒ Object

call-seq:

ncplane_rotate_ccw(n) -> int

A module function.



28862
28863
28864
28865
28866
28867
28868
28869
28870
28871
28872
28873
28874
28875
28876
28877
28878
28879
28880
28881
28882
28883
28884
28885
28886
28887
28888
28889
28890
28891
28892
28893
28894
28895
28896
28897
28898
28899
# File 'ext/notcurses/src/notcurses_wrap.c', line 28862

SWIGINTERN VALUE
_wrap_ncplane_rotate_ccw(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_rotate_ccw", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (int)ncplane_rotate_ccw(arg1);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_rotate_cw(*args) ⇒ Object

call-seq:

ncplane_rotate_cw(n) -> int

A module function.



28813
28814
28815
28816
28817
28818
28819
28820
28821
28822
28823
28824
28825
28826
28827
28828
28829
28830
28831
28832
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846
28847
28848
28849
28850
# File 'ext/notcurses/src/notcurses_wrap.c', line 28813

SWIGINTERN VALUE
_wrap_ncplane_rotate_cw(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_rotate_cw", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (int)ncplane_rotate_cw(arg1);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_rounded_box(*args) ⇒ Object

call-seq:

ncplane_rounded_box(n, styles, channels, ystop, xstop, ctlword) -> int

A module function.



41006
41007
41008
41009
41010
41011
41012
41013
41014
41015
41016
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042
41043
41044
41045
41046
41047
41048
41049
41050
41051
41052
41053
41054
41055
41056
41057
41058
41059
41060
41061
41062
41063
41064
41065
41066
41067
41068
41069
41070
41071
41072
41073
41074
41075
41076
41077
41078
41079
41080
41081
41082
41083
# File 'ext/notcurses/src/notcurses_wrap.c', line 41006

SWIGINTERN VALUE
_wrap_ncplane_rounded_box(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint16_t arg2 ;
  uint64_t arg3 ;
  unsigned int arg4 ;
  unsigned int arg5 ;
  unsigned int arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_rounded_box", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","ncplane_rounded_box", 2, argv[1] ));
  } 
  arg2 = (uint16_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncplane_rounded_box", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_rounded_box", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncplane_rounded_box", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "unsigned int","ncplane_rounded_box", 6, argv[5] ));
  } 
  arg6 = (unsigned int)(val6);
  result = (int)ncplane_rounded_box(arg1,arg2,arg3,arg4,arg5,arg6);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_rounded_box_sized(*args) ⇒ Object

call-seq:

ncplane_rounded_box_sized(n, styles, channels, ylen, xlen, ctlword) -> int

A module function.



41168
41169
41170
41171
41172
41173
41174
41175
41176
41177
41178
41179
41180
41181
41182
41183
41184
41185
41186
41187
41188
41189
41190
41191
41192
41193
41194
41195
41196
41197
41198
41199
41200
41201
41202
41203
41204
41205
41206
41207
41208
41209
41210
41211
41212
41213
41214
41215
41216
41217
41218
41219
41220
41221
41222
41223
41224
41225
41226
41227
41228
41229
41230
41231
41232
41233
41234
41235
41236
41237
41238
41239
41240
41241
41242
41243
41244
41245
# File 'ext/notcurses/src/notcurses_wrap.c', line 41168

SWIGINTERN VALUE
_wrap_ncplane_rounded_box_sized(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint16_t arg2 ;
  uint64_t arg3 ;
  unsigned int arg4 ;
  unsigned int arg5 ;
  unsigned int arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned short val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_rounded_box_sized", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_short(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint16_t","ncplane_rounded_box_sized", 2, argv[1] ));
  } 
  arg2 = (uint16_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncplane_rounded_box_sized", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_rounded_box_sized", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncplane_rounded_box_sized", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "unsigned int","ncplane_rounded_box_sized", 6, argv[5] ));
  } 
  arg6 = (unsigned int)(val6);
  result = (int)ncplane_rounded_box_sized(arg1,arg2,arg3,arg4,arg5,arg6);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_scrolling_p(*args) ⇒ Object

call-seq:

ncplane_scrolling_p(n) -> bool

A module function.



20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
# File 'ext/notcurses/src/notcurses_wrap.c', line 20053

SWIGINTERN VALUE
_wrap_ncplane_scrolling_p(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_scrolling_p", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (bool)ncplane_scrolling_p((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_scrollup(*args) ⇒ Object

call-seq:

ncplane_scrollup(n, r) -> int

A module function.



28683
28684
28685
28686
28687
28688
28689
28690
28691
28692
28693
28694
28695
28696
28697
28698
28699
28700
28701
28702
28703
28704
28705
28706
28707
28708
28709
28710
28711
28712
28713
28714
28715
28716
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728
# File 'ext/notcurses/src/notcurses_wrap.c', line 28683

SWIGINTERN VALUE
_wrap_ncplane_scrollup(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_scrollup", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_scrollup", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (int)ncplane_scrollup(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_scrollup_child(*args) ⇒ Object

call-seq:

ncplane_scrollup_child(n, child) -> int

A module function.



28740
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754
28755
28756
28757
28758
28759
28760
28761
28762
28763
28764
28765
28766
28767
28768
28769
28770
28771
28772
28773
28774
28775
28776
28777
28778
28779
28780
28781
28782
28783
28784
28785
28786
28787
28788
28789
28790
28791
28792
28793
28794
28795
28796
28797
28798
28799
28800
28801
# File 'ext/notcurses/src/notcurses_wrap.c', line 28740

SWIGINTERN VALUE
_wrap_ncplane_scrollup_child(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct ncplane *arg2 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_scrollup_child", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_scrollup_child", 2, argv[1] )); 
  }
  arg2 = (struct ncplane *)(argp2);
  result = (int)ncplane_scrollup_child(arg1,(struct ncplane const *)arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("child")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_autogrow(*args) ⇒ Object

call-seq:

ncplane_set_autogrow(n, growp) -> bool

A module function.



20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
# File 'ext/notcurses/src/notcurses_wrap.c', line 20102

SWIGINTERN VALUE
_wrap_ncplane_set_autogrow(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_autogrow", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncplane_set_autogrow", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (bool)ncplane_set_autogrow(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_base(*args) ⇒ Object

call-seq:

ncplane_set_base(n, egc, stylemask, channels) -> int

A module function.



27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
# File 'ext/notcurses/src/notcurses_wrap.c', line 27090

SWIGINTERN VALUE
_wrap_ncplane_set_base(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  char *arg2 = (char *) 0 ;
  uint16_t arg3 ;
  uint64_t arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  unsigned short val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_base", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncplane_set_base", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  ecode3 = SWIG_AsVal_unsigned_SS_short(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint16_t","ncplane_set_base", 3, argv[2] ));
  } 
  arg3 = (uint16_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint64_t","ncplane_set_base", 4, argv[3] ));
  } 
  arg4 = (uint64_t)(val4);
  result = (int)ncplane_set_base(arg1,(char const *)arg2,arg3,arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("egc")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncplane_set_base_cell(*args) ⇒ Object

call-seq:

ncplane_set_base_cell(n, c) -> int

A module function.



27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
# File 'ext/notcurses/src/notcurses_wrap.c', line 27017

SWIGINTERN VALUE
_wrap_ncplane_set_base_cell(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_base_cell", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell const *","ncplane_set_base_cell", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  result = (int)ncplane_set_base_cell(arg1,(struct nccell const *)arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_bchannel(*args) ⇒ Object

call-seq:

ncplane_set_bchannel(n, channel) -> uint64_t

A module function.



37229
37230
37231
37232
37233
37234
37235
37236
37237
37238
37239
37240
37241
37242
37243
37244
37245
37246
37247
37248
37249
37250
37251
37252
37253
37254
37255
37256
37257
37258
37259
37260
37261
37262
37263
37264
37265
37266
37267
37268
37269
37270
37271
37272
37273
37274
# File 'ext/notcurses/src/notcurses_wrap.c', line 37229

SWIGINTERN VALUE
_wrap_ncplane_set_bchannel(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_bchannel", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","ncplane_set_bchannel", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  result = (uint64_t)ncplane_set_bchannel(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_bg_alpha(*args) ⇒ Object

call-seq:

ncplane_set_bg_alpha(n, alpha) -> int

A module function.



38885
38886
38887
38888
38889
38890
38891
38892
38893
38894
38895
38896
38897
38898
38899
38900
38901
38902
38903
38904
38905
38906
38907
38908
38909
38910
38911
38912
38913
38914
38915
38916
38917
38918
38919
38920
38921
38922
38923
38924
38925
38926
38927
38928
38929
38930
# File 'ext/notcurses/src/notcurses_wrap.c', line 38885

SWIGINTERN VALUE
_wrap_ncplane_set_bg_alpha(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_bg_alpha", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_set_bg_alpha", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (int)ncplane_set_bg_alpha(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_bg_default(*args) ⇒ Object

call-seq:

ncplane_set_bg_default(n)

A module function.



38667
38668
38669
38670
38671
38672
38673
38674
38675
38676
38677
38678
38679
38680
38681
38682
38683
38684
38685
38686
38687
38688
38689
38690
38691
38692
38693
38694
38695
38696
38697
38698
38699
38700
38701
38702
# File 'ext/notcurses/src/notcurses_wrap.c', line 38667

SWIGINTERN VALUE
_wrap_ncplane_set_bg_default(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_bg_default", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ncplane_set_bg_default(arg1);
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_bg_palindex(*args) ⇒ Object

call-seq:

ncplane_set_bg_palindex(n, idx) -> int

A module function.



38771
38772
38773
38774
38775
38776
38777
38778
38779
38780
38781
38782
38783
38784
38785
38786
38787
38788
38789
38790
38791
38792
38793
38794
38795
38796
38797
38798
38799
38800
38801
38802
38803
38804
38805
38806
38807
38808
38809
38810
38811
38812
38813
38814
38815
38816
# File 'ext/notcurses/src/notcurses_wrap.c', line 38771

SWIGINTERN VALUE
_wrap_ncplane_set_bg_palindex(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_bg_palindex", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncplane_set_bg_palindex", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncplane_set_bg_palindex(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_bg_rgb(*args) ⇒ Object

call-seq:

ncplane_set_bg_rgb(n, channel) -> int

A module function.



38563
38564
38565
38566
38567
38568
38569
38570
38571
38572
38573
38574
38575
38576
38577
38578
38579
38580
38581
38582
38583
38584
38585
38586
38587
38588
38589
38590
38591
38592
38593
38594
38595
38596
38597
38598
38599
38600
38601
38602
38603
38604
38605
38606
38607
38608
# File 'ext/notcurses/src/notcurses_wrap.c', line 38563

SWIGINTERN VALUE
_wrap_ncplane_set_bg_rgb(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_bg_rgb", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","ncplane_set_bg_rgb", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  result = (int)ncplane_set_bg_rgb(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_bg_rgb8(*args) ⇒ Object

call-seq:

ncplane_set_bg_rgb8(n, r, g, b) -> int

A module function.



38291
38292
38293
38294
38295
38296
38297
38298
38299
38300
38301
38302
38303
38304
38305
38306
38307
38308
38309
38310
38311
38312
38313
38314
38315
38316
38317
38318
38319
38320
38321
38322
38323
38324
38325
38326
38327
38328
38329
38330
38331
38332
38333
38334
38335
38336
38337
38338
38339
38340
38341
38342
38343
38344
38345
38346
38347
38348
38349
38350
38351
38352
# File 'ext/notcurses/src/notcurses_wrap.c', line 38291

SWIGINTERN VALUE
_wrap_ncplane_set_bg_rgb8(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  unsigned int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_bg_rgb8", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncplane_set_bg_rgb8", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncplane_set_bg_rgb8", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_set_bg_rgb8", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (int)ncplane_set_bg_rgb8(arg1,arg2,arg3,arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_bg_rgb_8_clipped(*args) ⇒ Object

call-seq:

ncplane_set_bg_rgb_8_clipped(n, r, g, b)

A module function.



38364
38365
38366
38367
38368
38369
38370
38371
38372
38373
38374
38375
38376
38377
38378
38379
38380
38381
38382
38383
38384
38385
38386
38387
38388
38389
38390
38391
38392
38393
38394
38395
38396
38397
38398
38399
38400
38401
38402
38403
38404
38405
38406
38407
38408
38409
38410
38411
38412
38413
38414
38415
38416
38417
38418
38419
38420
38421
38422
38423
# File 'ext/notcurses/src/notcurses_wrap.c', line 38364

SWIGINTERN VALUE
_wrap_ncplane_set_bg_rgb_8_clipped(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_bg_rgb8_clipped", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_set_bg_rgb8_clipped", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_set_bg_rgb8_clipped", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncplane_set_bg_rgb8_clipped", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  ncplane_set_bg_rgb8_clipped(arg1,arg2,arg3,arg4);
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_channels(*args) ⇒ Object

call-seq:

ncplane_set_channels(n, channels)

A module function.



37174
37175
37176
37177
37178
37179
37180
37181
37182
37183
37184
37185
37186
37187
37188
37189
37190
37191
37192
37193
37194
37195
37196
37197
37198
37199
37200
37201
37202
37203
37204
37205
37206
37207
37208
37209
37210
37211
37212
37213
37214
37215
37216
37217
# File 'ext/notcurses/src/notcurses_wrap.c', line 37174

SWIGINTERN VALUE
_wrap_ncplane_set_channels(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint64_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_channels", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncplane_set_channels", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  ncplane_set_channels(arg1,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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_fchannel(*args) ⇒ Object

call-seq:

ncplane_set_fchannel(n, channel) -> uint64_t

A module function.



37286
37287
37288
37289
37290
37291
37292
37293
37294
37295
37296
37297
37298
37299
37300
37301
37302
37303
37304
37305
37306
37307
37308
37309
37310
37311
37312
37313
37314
37315
37316
37317
37318
37319
37320
37321
37322
37323
37324
37325
37326
37327
37328
37329
37330
37331
# File 'ext/notcurses/src/notcurses_wrap.c', line 37286

SWIGINTERN VALUE
_wrap_ncplane_set_fchannel(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_fchannel", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","ncplane_set_fchannel", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  result = (uint64_t)ncplane_set_fchannel(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_fg_alpha(*args) ⇒ Object

call-seq:

ncplane_set_fg_alpha(n, alpha) -> int

A module function.



38828
38829
38830
38831
38832
38833
38834
38835
38836
38837
38838
38839
38840
38841
38842
38843
38844
38845
38846
38847
38848
38849
38850
38851
38852
38853
38854
38855
38856
38857
38858
38859
38860
38861
38862
38863
38864
38865
38866
38867
38868
38869
38870
38871
38872
38873
# File 'ext/notcurses/src/notcurses_wrap.c', line 38828

SWIGINTERN VALUE
_wrap_ncplane_set_fg_alpha(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_fg_alpha", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_set_fg_alpha", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  result = (int)ncplane_set_fg_alpha(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_fg_default(*args) ⇒ Object

call-seq:

ncplane_set_fg_default(n)

A module function.



38620
38621
38622
38623
38624
38625
38626
38627
38628
38629
38630
38631
38632
38633
38634
38635
38636
38637
38638
38639
38640
38641
38642
38643
38644
38645
38646
38647
38648
38649
38650
38651
38652
38653
38654
38655
# File 'ext/notcurses/src/notcurses_wrap.c', line 38620

SWIGINTERN VALUE
_wrap_ncplane_set_fg_default(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_fg_default", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ncplane_set_fg_default(arg1);
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_fg_palindex(*args) ⇒ Object

call-seq:

ncplane_set_fg_palindex(n, idx) -> int

A module function.



38714
38715
38716
38717
38718
38719
38720
38721
38722
38723
38724
38725
38726
38727
38728
38729
38730
38731
38732
38733
38734
38735
38736
38737
38738
38739
38740
38741
38742
38743
38744
38745
38746
38747
38748
38749
38750
38751
38752
38753
38754
38755
38756
38757
38758
38759
# File 'ext/notcurses/src/notcurses_wrap.c', line 38714

SWIGINTERN VALUE
_wrap_ncplane_set_fg_palindex(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_fg_palindex", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncplane_set_fg_palindex", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)ncplane_set_fg_palindex(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_fg_rgb(*args) ⇒ Object

call-seq:

ncplane_set_fg_rgb(n, channel) -> int

A module function.



38506
38507
38508
38509
38510
38511
38512
38513
38514
38515
38516
38517
38518
38519
38520
38521
38522
38523
38524
38525
38526
38527
38528
38529
38530
38531
38532
38533
38534
38535
38536
38537
38538
38539
38540
38541
38542
38543
38544
38545
38546
38547
38548
38549
38550
38551
# File 'ext/notcurses/src/notcurses_wrap.c', line 38506

SWIGINTERN VALUE
_wrap_ncplane_set_fg_rgb(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  uint32_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_fg_rgb", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","ncplane_set_fg_rgb", 2, argv[1] ));
  } 
  arg2 = (uint32_t)(val2);
  result = (int)ncplane_set_fg_rgb(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_fg_rgb8(*args) ⇒ Object

call-seq:

ncplane_set_fg_rgb8(n, r, g, b) -> int

A module function.



38218
38219
38220
38221
38222
38223
38224
38225
38226
38227
38228
38229
38230
38231
38232
38233
38234
38235
38236
38237
38238
38239
38240
38241
38242
38243
38244
38245
38246
38247
38248
38249
38250
38251
38252
38253
38254
38255
38256
38257
38258
38259
38260
38261
38262
38263
38264
38265
38266
38267
38268
38269
38270
38271
38272
38273
38274
38275
38276
38277
38278
38279
# File 'ext/notcurses/src/notcurses_wrap.c', line 38218

SWIGINTERN VALUE
_wrap_ncplane_set_fg_rgb8(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  unsigned int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_fg_rgb8", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncplane_set_fg_rgb8", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncplane_set_fg_rgb8", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_set_fg_rgb8", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  result = (int)ncplane_set_fg_rgb8(arg1,arg2,arg3,arg4);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_fg_rgb_8_clipped(*args) ⇒ Object

call-seq:

ncplane_set_fg_rgb_8_clipped(n, r, g, b)

A module function.



38435
38436
38437
38438
38439
38440
38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455
38456
38457
38458
38459
38460
38461
38462
38463
38464
38465
38466
38467
38468
38469
38470
38471
38472
38473
38474
38475
38476
38477
38478
38479
38480
38481
38482
38483
38484
38485
38486
38487
38488
38489
38490
38491
38492
38493
38494
# File 'ext/notcurses/src/notcurses_wrap.c', line 38435

SWIGINTERN VALUE
_wrap_ncplane_set_fg_rgb_8_clipped(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_fg_rgb8_clipped", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_set_fg_rgb8_clipped", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_set_fg_rgb8_clipped", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncplane_set_fg_rgb8_clipped", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  ncplane_set_fg_rgb8_clipped(arg1,arg2,arg3,arg4);
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_name(*args) ⇒ Object

call-seq:

ncplane_set_name(n, name) -> int

A module function.



19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
# File 'ext/notcurses/src/notcurses_wrap.c', line 19275

SWIGINTERN VALUE
_wrap_ncplane_set_name(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_name", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncplane_set_name", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (int)ncplane_set_name(arg1,(char const *)arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("name")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncplane_set_resizecb(*args) ⇒ Object

call-seq:

ncplane_set_resizecb(n, resizecb)

A module function.



19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
# File 'ext/notcurses/src/notcurses_wrap.c', line 19155

SWIGINTERN VALUE
_wrap_ncplane_set_resizecb(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int (*arg2)(struct ncplane *) = (int (*)(struct ncplane *)) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_resizecb", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_struct_ncplane__int);
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "int (*)(struct ncplane *)","ncplane_set_resizecb", 2, argv[1] )); 
    }
  }
  ncplane_set_resizecb(arg1,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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("int (*)(struct ncplane *)");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_ncplane__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("resizecb")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_scrolling(*args) ⇒ Object

call-seq:

ncplane_set_scrolling(n, scrollp) -> bool

A module function.



19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
# File 'ext/notcurses/src/notcurses_wrap.c', line 19996

SWIGINTERN VALUE
_wrap_ncplane_set_scrolling(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_scrolling", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncplane_set_scrolling", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (bool)ncplane_set_scrolling(arg1,arg2);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_styles(*args) ⇒ Object

call-seq:

ncplane_set_styles(n, stylebits)

A module function.



37343
37344
37345
37346
37347
37348
37349
37350
37351
37352
37353
37354
37355
37356
37357
37358
37359
37360
37361
37362
37363
37364
37365
37366
37367
37368
37369
37370
37371
37372
37373
37374
37375
37376
37377
37378
37379
37380
37381
37382
37383
37384
37385
37386
# File 'ext/notcurses/src/notcurses_wrap.c', line 37343

SWIGINTERN VALUE
_wrap_ncplane_set_styles(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_styles", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncplane_set_styles", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ncplane_set_styles(arg1,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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_set_userptr(*args) ⇒ Object

call-seq:

ncplane_set_userptr(n, opaque) -> void *

A module function.



29519
29520
29521
29522
29523
29524
29525
29526
29527
29528
29529
29530
29531
29532
29533
29534
29535
29536
29537
29538
29539
29540
29541
29542
29543
29544
29545
29546
29547
29548
29549
29550
29551
29552
29553
29554
29555
29556
29557
29558
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569
29570
29571
29572
29573
29574
29575
29576
29577
29578
29579
29580
29581
29582
29583
29584
29585
29586
29587
29588
29589
29590
# File 'ext/notcurses/src/notcurses_wrap.c', line 29519

SWIGINTERN VALUE
_wrap_ncplane_set_userptr(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_set_userptr", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","ncplane_set_userptr", 2, argv[1] )); 
  }
  result = (void *)ncplane_set_userptr(arg1,arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("void *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_void, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("void *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opaque")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_stain(*args) ⇒ Object

call-seq:

ncplane_stain(n, y, x, ylen, xlen, ul, ur, ll, lr) -> int

A module function.



35219
35220
35221
35222
35223
35224
35225
35226
35227
35228
35229
35230
35231
35232
35233
35234
35235
35236
35237
35238
35239
35240
35241
35242
35243
35244
35245
35246
35247
35248
35249
35250
35251
35252
35253
35254
35255
35256
35257
35258
35259
35260
35261
35262
35263
35264
35265
35266
35267
35268
35269
35270
35271
35272
35273
35274
35275
35276
35277
35278
35279
35280
35281
35282
35283
35284
35285
35286
35287
35288
35289
35290
35291
35292
35293
35294
35295
35296
35297
35298
35299
35300
35301
35302
35303
35304
35305
35306
35307
35308
35309
35310
35311
35312
35313
35314
35315
35316
35317
35318
35319
35320
# File 'ext/notcurses/src/notcurses_wrap.c', line 35219

SWIGINTERN VALUE
_wrap_ncplane_stain(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  unsigned int arg4 ;
  unsigned int arg5 ;
  uint64_t arg6 ;
  uint64_t arg7 ;
  uint64_t arg8 ;
  uint64_t arg9 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  unsigned long val6 ;
  int ecode6 = 0 ;
  unsigned long val7 ;
  int ecode7 = 0 ;
  unsigned long val8 ;
  int ecode8 = 0 ;
  unsigned long val9 ;
  int ecode9 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 9) || (argc > 9)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 9)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_stain", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncplane_stain", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_stain", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","ncplane_stain", 4, argv[3] ));
  } 
  arg4 = (unsigned int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncplane_stain", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_long(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "uint64_t","ncplane_stain", 6, argv[5] ));
  } 
  arg6 = (uint64_t)(val6);
  ecode7 = SWIG_AsVal_unsigned_SS_long(argv[6], &val7);
  if (!SWIG_IsOK(ecode7)) {
    SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint64_t","ncplane_stain", 7, argv[6] ));
  } 
  arg7 = (uint64_t)(val7);
  ecode8 = SWIG_AsVal_unsigned_SS_long(argv[7], &val8);
  if (!SWIG_IsOK(ecode8)) {
    SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "uint64_t","ncplane_stain", 8, argv[7] ));
  } 
  arg8 = (uint64_t)(val8);
  ecode9 = SWIG_AsVal_unsigned_SS_long(argv[8], &val9);
  if (!SWIG_IsOK(ecode9)) {
    SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint64_t","ncplane_stain", 9, argv[8] ));
  } 
  arg9 = (uint64_t)(val9);
  result = (int)ncplane_stain(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_styles(*args) ⇒ Object

call-seq:

ncplane_styles(n) -> uint16_t

A module function.



30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709
30710
30711
30712
30713
30714
30715
30716
30717
30718
# File 'ext/notcurses/src/notcurses_wrap.c', line 30681

SWIGINTERN VALUE
_wrap_ncplane_styles(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint16_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_styles", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (uint16_t)ncplane_styles((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_translate(*args) ⇒ Object

call-seq:

ncplane_translate(src, dst, y, x)

A module function.



19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
# File 'ext/notcurses/src/notcurses_wrap.c', line 19663

SWIGINTERN VALUE
_wrap_ncplane_translate(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct ncplane *arg2 = (struct ncplane *) 0 ;
  int *arg3 = (int *) 0 ;
  int *arg4 = (int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_translate", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_translate", 2, argv[1] )); 
  }
  arg2 = (struct ncplane *)(argp2);
  {
    arg3 = (int *) malloc(sizeof(int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg3 = (int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg4 = (int *) malloc(sizeof(int));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (int) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg4 = (int) NUM2DBL(argv[3]);
      } else {
        *arg4 = (int) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ncplane_translate((struct ncplane const *)arg1,(struct ncplane const *)arg2,arg3,arg4);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("src")), obj);
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("dst")), obj);
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("y")), converted_value);
      free(arg3);
    }
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("x")), converted_value);
      free(arg4);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_translate_abs(*args) ⇒ Object

call-seq:

ncplane_translate_abs(n, y, x) -> bool

A module function.



19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
# File 'ext/notcurses/src/notcurses_wrap.c', line 19841

SWIGINTERN VALUE
_wrap_ncplane_translate_abs(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int *arg2 = (int *) 0 ;
  int *arg3 = (int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_translate_abs", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    arg2 = (int *) malloc(sizeof(int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg2 = (int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (int *) malloc(sizeof(int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg3 = (int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (bool)ncplane_translate_abs((struct ncplane const *)arg1,arg2,arg3);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("y")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("x")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_userptr(*args) ⇒ Object

call-seq:

ncplane_userptr(n) -> void *

A module function.



29602
29603
29604
29605
29606
29607
29608
29609
29610
29611
29612
29613
29614
29615
29616
29617
29618
29619
29620
29621
29622
29623
29624
29625
29626
29627
29628
29629
29630
29631
29632
29633
29634
29635
29636
29637
29638
29639
29640
29641
29642
29643
29644
29645
29646
29647
29648
29649
29650
29651
# File 'ext/notcurses/src/notcurses_wrap.c', line 29602

SWIGINTERN VALUE
_wrap_ncplane_userptr(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *result = 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(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_userptr", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (void *)ncplane_userptr(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("void *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_void, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_valign(*args) ⇒ Object

call-seq:

ncplane_valign(n, align, r) -> int

A module function.



30138
30139
30140
30141
30142
30143
30144
30145
30146
30147
30148
30149
30150
30151
30152
30153
30154
30155
30156
30157
30158
30159
30160
30161
30162
30163
30164
30165
30166
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176
30177
30178
30179
30180
30181
30182
30183
30184
30185
30186
30187
30188
30189
30190
30191
# File 'ext/notcurses/src/notcurses_wrap.c', line 30138

SWIGINTERN VALUE
_wrap_ncplane_valign(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncalign_e arg2 ;
  int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_valign", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ncalign_e","ncplane_valign", 2, argv[1] ));
  } 
  arg2 = (ncalign_e)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncplane_valign", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  result = (int)ncplane_valign((struct ncplane const *)arg1,arg2,arg3);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_vline(*args) ⇒ Object

call-seq:

ncplane_vline(n, c, len) -> int

A module function.



34067
34068
34069
34070
34071
34072
34073
34074
34075
34076
34077
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092
34093
34094
34095
34096
34097
34098
34099
34100
34101
34102
34103
34104
34105
34106
34107
34108
34109
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136
# File 'ext/notcurses/src/notcurses_wrap.c', line 34067

SWIGINTERN VALUE
_wrap_ncplane_vline(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  unsigned int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_vline", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell const *","ncplane_vline", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncplane_vline", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  result = (int)ncplane_vline(arg1,(struct nccell const *)arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_vline_interp(*args) ⇒ Object

call-seq:

ncplane_vline_interp(n, c, len, c1, c2) -> int

A module function.



33970
33971
33972
33973
33974
33975
33976
33977
33978
33979
33980
33981
33982
33983
33984
33985
33986
33987
33988
33989
33990
33991
33992
33993
33994
33995
33996
33997
33998
33999
34000
34001
34002
34003
34004
34005
34006
34007
34008
34009
34010
34011
34012
34013
34014
34015
34016
34017
34018
34019
34020
34021
34022
34023
34024
34025
34026
34027
34028
34029
34030
34031
34032
34033
34034
34035
34036
34037
34038
34039
34040
34041
34042
34043
34044
34045
34046
34047
34048
34049
34050
34051
34052
34053
34054
34055
# File 'ext/notcurses/src/notcurses_wrap.c', line 33970

SWIGINTERN VALUE
_wrap_ncplane_vline_interp(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nccell *arg2 = (nccell *) 0 ;
  unsigned int arg3 ;
  uint64_t arg4 ;
  uint64_t arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  unsigned long val5 ;
  int ecode5 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncplane_vline_interp", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nccell, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nccell const *","ncplane_vline_interp", 2, argv[1] )); 
  }
  arg2 = (nccell *)(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncplane_vline_interp", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint64_t","ncplane_vline_interp", 4, argv[3] ));
  } 
  arg4 = (uint64_t)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_long(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "uint64_t","ncplane_vline_interp", 5, argv[4] ));
  } 
  arg5 = (uint64_t)(val5);
  result = (int)ncplane_vline_interp(arg1,(struct nccell const *)arg2,arg3,arg4,arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nccell const *");
    if (!ty) ty = SWIGTYPE_p_nccell;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("c")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_x(*args) ⇒ Object

call-seq:

ncplane_x(n) -> int

A module function.



27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
# File 'ext/notcurses/src/notcurses_wrap.c', line 27455

SWIGINTERN VALUE
_wrap_ncplane_x(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_x", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (int)ncplane_x((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_y(*args) ⇒ Object

call-seq:

ncplane_y(n) -> int

A module function.



27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
# File 'ext/notcurses/src/notcurses_wrap.c', line 27406

SWIGINTERN VALUE
_wrap_ncplane_y(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_y", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  result = (int)ncplane_y((struct ncplane const *)arg1);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncplane_yx(*args) ⇒ Object

call-seq:

ncplane_yx(n, y, x)

A module function.



27252
27253
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
27293
27294
27295
27296
27297
27298
27299
27300
27301
27302
27303
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394
# File 'ext/notcurses/src/notcurses_wrap.c', line 27252

SWIGINTERN VALUE
_wrap_ncplane_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int *arg2 = (int *) 0 ;
  int *arg3 = (int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncplane_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  {
    arg2 = (int *) malloc(sizeof(int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg2 = (int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (int *) malloc(sizeof(int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg3 = (int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ncplane_yx((struct ncplane const *)arg1,arg2,arg3);
  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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("y")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("x")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncprefixfmt(*args) ⇒ Object

call-seq:

ncprefixfmt(x) -> int

A module function.



4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
# File 'ext/notcurses/src/notcurses_wrap.c', line 4087

SWIGINTERN VALUE
_wrap_ncprefixfmt(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","ncprefixfmt", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  result = (int)ncprefixfmt((char const *)arg1);
  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;
    }
    
    VALUE obj = arg1 ? rb_str_new2(arg1) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("x")), obj);
  }
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.ncprogbar_create(*args) ⇒ Object

call-seq:

ncprogbar_create(n, opts) -> struct ncprogbar *

A module function.



59767
59768
59769
59770
59771
59772
59773
59774
59775
59776
59777
59778
59779
59780
59781
59782
59783
59784
59785
59786
59787
59788
59789
59790
59791
59792
59793
59794
59795
59796
59797
59798
59799
59800
59801
59802
59803
59804
59805
59806
59807
59808
59809
59810
59811
59812
59813
59814
59815
59816
59817
59818
59819
59820
59821
59822
59823
59824
59825
59826
59827
59828
59829
59830
59831
59832
59833
59834
59835
59836
59837
59838
59839
59840
# File 'ext/notcurses/src/notcurses_wrap.c', line 59767

SWIGINTERN VALUE
_wrap_ncprogbar_create(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncprogbar_options *arg2 = (ncprogbar_options *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  struct ncprogbar *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncprogbar_create", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncprogbar_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncprogbar_options const *","ncprogbar_create", 2, argv[1] )); 
  }
  arg2 = (ncprogbar_options *)(argp2);
  result = (struct ncprogbar *)ncprogbar_create(arg1,(struct ncprogbar_options const *)arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncprogbar *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncprogbar, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncprogbar_options const *");
    if (!ty) ty = SWIGTYPE_p_ncprogbar_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncprogbar_destroy(*args) ⇒ Object

call-seq:

ncprogbar_destroy(n)

A module function.



60019
60020
60021
60022
60023
60024
60025
60026
60027
60028
60029
60030
60031
60032
60033
60034
60035
60036
60037
60038
60039
60040
60041
60042
60043
60044
60045
60046
60047
60048
60049
60050
60051
60052
60053
60054
# File 'ext/notcurses/src/notcurses_wrap.c', line 60019

SWIGINTERN VALUE
_wrap_ncprogbar_destroy(int argc, VALUE *argv, VALUE self) {
  struct ncprogbar *arg1 = (struct ncprogbar *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncprogbar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncprogbar *","ncprogbar_destroy", 1, argv[0] )); 
  }
  arg1 = (struct ncprogbar *)(argp1);
  ncprogbar_destroy(arg1);
  {
    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 ncprogbar *");
    if (!ty) ty = SWIGTYPE_p_ncprogbar;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncprogbar_plane(*args) ⇒ Object

call-seq:

ncprogbar_plane(n) -> struct ncplane *

A module function.



59852
59853
59854
59855
59856
59857
59858
59859
59860
59861
59862
59863
59864
59865
59866
59867
59868
59869
59870
59871
59872
59873
59874
59875
59876
59877
59878
59879
59880
59881
59882
59883
59884
59885
59886
59887
59888
59889
59890
59891
59892
59893
59894
59895
59896
59897
59898
59899
59900
59901
# File 'ext/notcurses/src/notcurses_wrap.c', line 59852

SWIGINTERN VALUE
_wrap_ncprogbar_plane(int argc, VALUE *argv, VALUE self) {
  struct ncprogbar *arg1 = (struct ncprogbar *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncprogbar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncprogbar *","ncprogbar_plane", 1, argv[0] )); 
  }
  arg1 = (struct ncprogbar *)(argp1);
  result = (struct ncplane *)ncprogbar_plane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncprogbar *");
    if (!ty) ty = SWIGTYPE_p_ncprogbar;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncprogbar_progress(*args) ⇒ Object

call-seq:

ncprogbar_progress(n) -> double

A module function.



59970
59971
59972
59973
59974
59975
59976
59977
59978
59979
59980
59981
59982
59983
59984
59985
59986
59987
59988
59989
59990
59991
59992
59993
59994
59995
59996
59997
59998
59999
60000
60001
60002
60003
60004
60005
60006
60007
# File 'ext/notcurses/src/notcurses_wrap.c', line 59970

SWIGINTERN VALUE
_wrap_ncprogbar_progress(int argc, VALUE *argv, VALUE self) {
  struct ncprogbar *arg1 = (struct ncprogbar *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncprogbar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncprogbar const *","ncprogbar_progress", 1, argv[0] )); 
  }
  arg1 = (struct ncprogbar *)(argp1);
  result = (double)ncprogbar_progress((struct ncprogbar const *)arg1);
  vresult = SWIG_From_double((double)(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 ncprogbar const *");
    if (!ty) ty = SWIGTYPE_p_ncprogbar;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncprogbar_set_progress(*args) ⇒ Object

call-seq:

ncprogbar_set_progress(n, p) -> int

A module function.



59913
59914
59915
59916
59917
59918
59919
59920
59921
59922
59923
59924
59925
59926
59927
59928
59929
59930
59931
59932
59933
59934
59935
59936
59937
59938
59939
59940
59941
59942
59943
59944
59945
59946
59947
59948
59949
59950
59951
59952
59953
59954
59955
59956
59957
59958
# File 'ext/notcurses/src/notcurses_wrap.c', line 59913

SWIGINTERN VALUE
_wrap_ncprogbar_set_progress(int argc, VALUE *argv, VALUE self) {
  struct ncprogbar *arg1 = (struct ncprogbar *) 0 ;
  double arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncprogbar, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncprogbar *","ncprogbar_set_progress", 1, argv[0] )); 
  }
  arg1 = (struct ncprogbar *)(argp1);
  ecode2 = SWIG_AsVal_double(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","ncprogbar_set_progress", 2, argv[1] ));
  } 
  arg2 = (double)(val2);
  result = (int)ncprogbar_set_progress(arg1,arg2);
  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 ncprogbar *");
    if (!ty) ty = SWIGTYPE_p_ncprogbar;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncqprefix(*args) ⇒ Object

call-seq:

ncqprefix(val, decimal, buf, omitdec) -> char const *

A module function.



49614
49615
49616
49617
49618
49619
49620
49621
49622
49623
49624
49625
49626
49627
49628
49629
49630
49631
49632
49633
49634
49635
49636
49637
49638
49639
49640
49641
49642
49643
49644
49645
49646
49647
49648
49649
49650
49651
49652
49653
49654
49655
49656
49657
49658
49659
49660
49661
49662
49663
49664
49665
49666
49667
49668
49669
49670
49671
49672
49673
49674
49675
49676
49677
49678
49679
49680
49681
49682
49683
49684
49685
49686
49687
49688
# File 'ext/notcurses/src/notcurses_wrap.c', line 49614

SWIGINTERN VALUE
_wrap_ncqprefix(int argc, VALUE *argv, VALUE self) {
  uintmax_t arg1 ;
  uintmax_t arg2 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  unsigned long val1 ;
  int ecode1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uintmax_t","ncqprefix", 1, argv[0] ));
  } 
  arg1 = (uintmax_t)(val1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintmax_t","ncqprefix", 2, argv[1] ));
  } 
  arg2 = (uintmax_t)(val2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","ncqprefix", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncqprefix", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  result = (char *)ncqprefix(arg1,arg2,arg3,arg4);
  {
    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;
    }
    
    VALUE obj = arg3 ? rb_str_new2(arg3) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("buf")), obj);
  }
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.ncreader_clear(*args) ⇒ Object

call-seq:

ncreader_clear(n) -> int

A module function.



67309
67310
67311
67312
67313
67314
67315
67316
67317
67318
67319
67320
67321
67322
67323
67324
67325
67326
67327
67328
67329
67330
67331
67332
67333
67334
67335
67336
67337
67338
67339
67340
67341
67342
67343
67344
67345
67346
# File 'ext/notcurses/src/notcurses_wrap.c', line 67309

SWIGINTERN VALUE
_wrap_ncreader_clear(int argc, VALUE *argv, VALUE self) {
  struct ncreader *arg1 = (struct ncreader *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncreader, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreader *","ncreader_clear", 1, argv[0] )); 
  }
  arg1 = (struct ncreader *)(argp1);
  result = (int)ncreader_clear(arg1);
  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 ncreader *");
    if (!ty) ty = SWIGTYPE_p_ncreader;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreader_contents(*args) ⇒ Object

call-seq:

ncreader_contents(n) -> char *

A module function.



67761
67762
67763
67764
67765
67766
67767
67768
67769
67770
67771
67772
67773
67774
67775
67776
67777
67778
67779
67780
67781
67782
67783
67784
67785
67786
67787
67788
67789
67790
67791
67792
67793
67794
67795
67796
67797
67798
67799
67800
67801
67802
67803
67804
67805
67806
67807
67808
67809
67810
67811
# File 'ext/notcurses/src/notcurses_wrap.c', line 67761

SWIGINTERN VALUE
_wrap_ncreader_contents(int argc, VALUE *argv, VALUE self) {
  struct ncreader *arg1 = (struct ncreader *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 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(argv[0], &argp1,SWIGTYPE_p_ncreader, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreader const *","ncreader_contents", 1, argv[0] )); 
  }
  arg1 = (struct ncreader *)(argp1);
  result = (char *)ncreader_contents((struct ncreader const *)arg1);
  {
    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 ncreader const *");
    if (!ty) ty = SWIGTYPE_p_ncreader;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreader_create(*args) ⇒ Object

call-seq:

ncreader_create(n, opts) -> struct ncreader *

A module function.



67224
67225
67226
67227
67228
67229
67230
67231
67232
67233
67234
67235
67236
67237
67238
67239
67240
67241
67242
67243
67244
67245
67246
67247
67248
67249
67250
67251
67252
67253
67254
67255
67256
67257
67258
67259
67260
67261
67262
67263
67264
67265
67266
67267
67268
67269
67270
67271
67272
67273
67274
67275
67276
67277
67278
67279
67280
67281
67282
67283
67284
67285
67286
67287
67288
67289
67290
67291
67292
67293
67294
67295
67296
67297
# File 'ext/notcurses/src/notcurses_wrap.c', line 67224

SWIGINTERN VALUE
_wrap_ncreader_create(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncreader_options *arg2 = (ncreader_options *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  struct ncreader *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncreader_create", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncreader_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncreader_options const *","ncreader_create", 2, argv[1] )); 
  }
  arg2 = (ncreader_options *)(argp2);
  result = (struct ncreader *)ncreader_create(arg1,(struct ncreader_options const *)arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncreader *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncreader, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncreader_options const *");
    if (!ty) ty = SWIGTYPE_p_ncreader_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreader_destroy(*args) ⇒ Object

call-seq:

ncreader_destroy(n, contents)

A module function.



67823
67824
67825
67826
67827
67828
67829
67830
67831
67832
67833
67834
67835
67836
67837
67838
67839
67840
67841
67842
67843
67844
67845
67846
67847
67848
67849
67850
67851
67852
67853
67854
67855
67856
67857
67858
67859
67860
67861
67862
67863
67864
67865
67866
67867
67868
67869
67870
67871
67872
67873
67874
67875
67876
67877
67878
67879
67880
67881
67882
67883
# File 'ext/notcurses/src/notcurses_wrap.c', line 67823

SWIGINTERN VALUE
_wrap_ncreader_destroy(int argc, VALUE *argv, VALUE self) {
  struct ncreader *arg1 = (struct ncreader *) 0 ;
  char **arg2 = (char **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncreader, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreader *","ncreader_destroy", 1, argv[0] )); 
  }
  arg1 = (struct ncreader *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_p_char, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char **","ncreader_destroy", 2, argv[1] )); 
  }
  arg2 = (char **)(argp2);
  ncreader_destroy(arg1,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 ncreader *");
    if (!ty) ty = SWIGTYPE_p_ncreader;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("char **");
    if (!ty) ty = SWIGTYPE_p_p_char;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("contents")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreader_move_down(*args) ⇒ Object

call-seq:

ncreader_move_down(n) -> int

A module function.



67639
67640
67641
67642
67643
67644
67645
67646
67647
67648
67649
67650
67651
67652
67653
67654
67655
67656
67657
67658
67659
67660
67661
67662
67663
67664
67665
67666
67667
67668
67669
67670
67671
67672
67673
67674
67675
67676
# File 'ext/notcurses/src/notcurses_wrap.c', line 67639

SWIGINTERN VALUE
_wrap_ncreader_move_down(int argc, VALUE *argv, VALUE self) {
  struct ncreader *arg1 = (struct ncreader *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncreader, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreader *","ncreader_move_down", 1, argv[0] )); 
  }
  arg1 = (struct ncreader *)(argp1);
  result = (int)ncreader_move_down(arg1);
  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 ncreader *");
    if (!ty) ty = SWIGTYPE_p_ncreader;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreader_move_left(*args) ⇒ Object

call-seq:

ncreader_move_left(n) -> int

A module function.



67492
67493
67494
67495
67496
67497
67498
67499
67500
67501
67502
67503
67504
67505
67506
67507
67508
67509
67510
67511
67512
67513
67514
67515
67516
67517
67518
67519
67520
67521
67522
67523
67524
67525
67526
67527
67528
67529
# File 'ext/notcurses/src/notcurses_wrap.c', line 67492

SWIGINTERN VALUE
_wrap_ncreader_move_left(int argc, VALUE *argv, VALUE self) {
  struct ncreader *arg1 = (struct ncreader *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncreader, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreader *","ncreader_move_left", 1, argv[0] )); 
  }
  arg1 = (struct ncreader *)(argp1);
  result = (int)ncreader_move_left(arg1);
  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 ncreader *");
    if (!ty) ty = SWIGTYPE_p_ncreader;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreader_move_right(*args) ⇒ Object

call-seq:

ncreader_move_right(n) -> int

A module function.



67541
67542
67543
67544
67545
67546
67547
67548
67549
67550
67551
67552
67553
67554
67555
67556
67557
67558
67559
67560
67561
67562
67563
67564
67565
67566
67567
67568
67569
67570
67571
67572
67573
67574
67575
67576
67577
67578
# File 'ext/notcurses/src/notcurses_wrap.c', line 67541

SWIGINTERN VALUE
_wrap_ncreader_move_right(int argc, VALUE *argv, VALUE self) {
  struct ncreader *arg1 = (struct ncreader *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncreader, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreader *","ncreader_move_right", 1, argv[0] )); 
  }
  arg1 = (struct ncreader *)(argp1);
  result = (int)ncreader_move_right(arg1);
  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 ncreader *");
    if (!ty) ty = SWIGTYPE_p_ncreader;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreader_move_up(*args) ⇒ Object

call-seq:

ncreader_move_up(n) -> int

A module function.



67590
67591
67592
67593
67594
67595
67596
67597
67598
67599
67600
67601
67602
67603
67604
67605
67606
67607
67608
67609
67610
67611
67612
67613
67614
67615
67616
67617
67618
67619
67620
67621
67622
67623
67624
67625
67626
67627
# File 'ext/notcurses/src/notcurses_wrap.c', line 67590

SWIGINTERN VALUE
_wrap_ncreader_move_up(int argc, VALUE *argv, VALUE self) {
  struct ncreader *arg1 = (struct ncreader *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncreader, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreader *","ncreader_move_up", 1, argv[0] )); 
  }
  arg1 = (struct ncreader *)(argp1);
  result = (int)ncreader_move_up(arg1);
  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 ncreader *");
    if (!ty) ty = SWIGTYPE_p_ncreader;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreader_offer_input(*args) ⇒ Object

call-seq:

ncreader_offer_input(n, ni) -> bool

A module function.



67419
67420
67421
67422
67423
67424
67425
67426
67427
67428
67429
67430
67431
67432
67433
67434
67435
67436
67437
67438
67439
67440
67441
67442
67443
67444
67445
67446
67447
67448
67449
67450
67451
67452
67453
67454
67455
67456
67457
67458
67459
67460
67461
67462
67463
67464
67465
67466
67467
67468
67469
67470
67471
67472
67473
67474
67475
67476
67477
67478
67479
67480
# File 'ext/notcurses/src/notcurses_wrap.c', line 67419

SWIGINTERN VALUE
_wrap_ncreader_offer_input(int argc, VALUE *argv, VALUE self) {
  struct ncreader *arg1 = (struct ncreader *) 0 ;
  ncinput *arg2 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncreader, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreader *","ncreader_offer_input", 1, argv[0] )); 
  }
  arg1 = (struct ncreader *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncinput const *","ncreader_offer_input", 2, argv[1] )); 
  }
  arg2 = (ncinput *)(argp2);
  result = (bool)ncreader_offer_input(arg1,(struct ncinput const *)arg2);
  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 ncreader *");
    if (!ty) ty = SWIGTYPE_p_ncreader;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ni")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreader_plane(*args) ⇒ Object

call-seq:

ncreader_plane(n) -> struct ncplane *

A module function.



67358
67359
67360
67361
67362
67363
67364
67365
67366
67367
67368
67369
67370
67371
67372
67373
67374
67375
67376
67377
67378
67379
67380
67381
67382
67383
67384
67385
67386
67387
67388
67389
67390
67391
67392
67393
67394
67395
67396
67397
67398
67399
67400
67401
67402
67403
67404
67405
67406
67407
# File 'ext/notcurses/src/notcurses_wrap.c', line 67358

SWIGINTERN VALUE
_wrap_ncreader_plane(int argc, VALUE *argv, VALUE self) {
  struct ncreader *arg1 = (struct ncreader *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncreader, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreader *","ncreader_plane", 1, argv[0] )); 
  }
  arg1 = (struct ncreader *)(argp1);
  result = (struct ncplane *)ncreader_plane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncreader *");
    if (!ty) ty = SWIGTYPE_p_ncreader;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreader_write_egc(*args) ⇒ Object

call-seq:

ncreader_write_egc(n, egc) -> int

A module function.



67688
67689
67690
67691
67692
67693
67694
67695
67696
67697
67698
67699
67700
67701
67702
67703
67704
67705
67706
67707
67708
67709
67710
67711
67712
67713
67714
67715
67716
67717
67718
67719
67720
67721
67722
67723
67724
67725
67726
67727
67728
67729
67730
67731
67732
67733
67734
67735
67736
67737
67738
67739
67740
67741
67742
67743
67744
67745
67746
67747
67748
67749
# File 'ext/notcurses/src/notcurses_wrap.c', line 67688

SWIGINTERN VALUE
_wrap_ncreader_write_egc(int argc, VALUE *argv, VALUE self) {
  struct ncreader *arg1 = (struct ncreader *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncreader, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreader *","ncreader_write_egc", 1, argv[0] )); 
  }
  arg1 = (struct ncreader *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncreader_write_egc", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (int)ncreader_write_egc(arg1,(char const *)arg2);
  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 ncreader *");
    if (!ty) ty = SWIGTYPE_p_ncreader;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("egc")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncreel_add(*args) ⇒ Object

call-seq:

ncreel_add(nr, after, before, cb, opaque) -> struct nctablet *

A module function.



48753
48754
48755
48756
48757
48758
48759
48760
48761
48762
48763
48764
48765
48766
48767
48768
48769
48770
48771
48772
48773
48774
48775
48776
48777
48778
48779
48780
48781
48782
48783
48784
48785
48786
48787
48788
48789
48790
48791
48792
48793
48794
48795
48796
48797
48798
48799
48800
48801
48802
48803
48804
48805
48806
48807
48808
48809
48810
48811
48812
48813
48814
48815
48816
48817
48818
48819
48820
48821
48822
48823
48824
48825
48826
48827
48828
48829
48830
48831
48832
48833
48834
48835
48836
48837
48838
48839
48840
48841
48842
48843
48844
48845
48846
48847
48848
48849
48850
48851
48852
48853
48854
48855
48856
48857
48858
48859
48860
48861
48862
48863
48864
48865
48866
48867
48868
48869
48870
48871
48872
48873
48874
48875
48876
48877
48878
48879
48880
48881
48882
48883
48884
48885
48886
48887
48888
48889
48890
48891
48892
48893
48894
48895
48896
# File 'ext/notcurses/src/notcurses_wrap.c', line 48753

SWIGINTERN VALUE
_wrap_ncreel_add(int argc, VALUE *argv, VALUE self) {
  struct ncreel *arg1 = (struct ncreel *) 0 ;
  struct nctablet *arg2 = (struct nctablet *) 0 ;
  struct nctablet *arg3 = (struct nctablet *) 0 ;
  tabletcb arg4 = (tabletcb) 0 ;
  void *arg5 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res5 ;
  struct nctablet *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncreel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreel *","ncreel_add", 1, argv[0] )); 
  }
  arg1 = (struct ncreel *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nctablet, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct nctablet *","ncreel_add", 2, argv[1] )); 
  }
  arg2 = (struct nctablet *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_nctablet, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "struct nctablet *","ncreel_add", 3, argv[2] )); 
  }
  arg3 = (struct nctablet *)(argp3);
  {
    if (!NIL_P(argv[3])) {
      arg4 = (tabletcb)rb_proc_new((VALUE (*)(ANYARGS))call_ruby_proc, argv[3]);
    } else {
      arg4 = NULL;
    }
  }
  res5 = SWIG_ConvertPtr(argv[4],SWIG_as_voidptrptr(&arg5), 0, 0);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "void *","ncreel_add", 5, argv[4] )); 
  }
  result = (struct nctablet *)ncreel_add(arg1,arg2,arg3,arg4,arg5);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct nctablet *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nctablet, 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 ncreel *");
    if (!ty) ty = SWIGTYPE_p_ncreel;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nr")), 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 nctablet *");
    if (!ty) ty = SWIGTYPE_p_nctablet;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("after")), 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 nctablet *");
    if (!ty) ty = SWIGTYPE_p_nctablet;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("before")), 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("tabletcb");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_nctablet_bool__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cb")), 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("void *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opaque")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreel_create(*args) ⇒ Object

call-seq:

ncreel_create(n, popts) -> struct ncreel *

A module function.



48607
48608
48609
48610
48611
48612
48613
48614
48615
48616
48617
48618
48619
48620
48621
48622
48623
48624
48625
48626
48627
48628
48629
48630
48631
48632
48633
48634
48635
48636
48637
48638
48639
48640
48641
48642
48643
48644
48645
48646
48647
48648
48649
48650
48651
48652
48653
48654
48655
48656
48657
48658
48659
48660
48661
48662
48663
48664
48665
48666
48667
48668
48669
48670
48671
48672
48673
48674
48675
48676
48677
48678
48679
48680
# File 'ext/notcurses/src/notcurses_wrap.c', line 48607

SWIGINTERN VALUE
_wrap_ncreel_create(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncreel_options *arg2 = (ncreel_options *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  struct ncreel *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncreel_create", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncreel_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncreel_options const *","ncreel_create", 2, argv[1] )); 
  }
  arg2 = (ncreel_options *)(argp2);
  result = (struct ncreel *)ncreel_create(arg1,(struct ncreel_options const *)arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncreel *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncreel, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncreel_options const *");
    if (!ty) ty = SWIGTYPE_p_ncreel_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("popts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreel_del(*args) ⇒ Object

call-seq:

ncreel_del(nr, t) -> int

A module function.



48957
48958
48959
48960
48961
48962
48963
48964
48965
48966
48967
48968
48969
48970
48971
48972
48973
48974
48975
48976
48977
48978
48979
48980
48981
48982
48983
48984
48985
48986
48987
48988
48989
48990
48991
48992
48993
48994
48995
48996
48997
48998
48999
49000
49001
49002
49003
49004
49005
49006
49007
49008
49009
49010
49011
49012
49013
49014
49015
49016
49017
49018
# File 'ext/notcurses/src/notcurses_wrap.c', line 48957

SWIGINTERN VALUE
_wrap_ncreel_del(int argc, VALUE *argv, VALUE self) {
  struct ncreel *arg1 = (struct ncreel *) 0 ;
  struct nctablet *arg2 = (struct nctablet *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncreel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreel *","ncreel_del", 1, argv[0] )); 
  }
  arg1 = (struct ncreel *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nctablet, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct nctablet *","ncreel_del", 2, argv[1] )); 
  }
  arg2 = (struct nctablet *)(argp2);
  result = (int)ncreel_del(arg1,arg2);
  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 ncreel *");
    if (!ty) ty = SWIGTYPE_p_ncreel;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nr")), 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 nctablet *");
    if (!ty) ty = SWIGTYPE_p_nctablet;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreel_destroy(*args) ⇒ Object

call-seq:

ncreel_destroy(nr)

A module function.



49335
49336
49337
49338
49339
49340
49341
49342
49343
49344
49345
49346
49347
49348
49349
49350
49351
49352
49353
49354
49355
49356
49357
49358
49359
49360
49361
49362
49363
49364
49365
49366
49367
49368
49369
49370
# File 'ext/notcurses/src/notcurses_wrap.c', line 49335

SWIGINTERN VALUE
_wrap_ncreel_destroy(int argc, VALUE *argv, VALUE self) {
  struct ncreel *arg1 = (struct ncreel *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncreel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreel *","ncreel_destroy", 1, argv[0] )); 
  }
  arg1 = (struct ncreel *)(argp1);
  ncreel_destroy(arg1);
  {
    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 ncreel *");
    if (!ty) ty = SWIGTYPE_p_ncreel;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nr")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreel_focused(*args) ⇒ Object

call-seq:

ncreel_focused(nr) -> struct nctablet *

A module function.



49152
49153
49154
49155
49156
49157
49158
49159
49160
49161
49162
49163
49164
49165
49166
49167
49168
49169
49170
49171
49172
49173
49174
49175
49176
49177
49178
49179
49180
49181
49182
49183
49184
49185
49186
49187
49188
49189
49190
49191
49192
49193
49194
49195
49196
49197
49198
49199
49200
49201
# File 'ext/notcurses/src/notcurses_wrap.c', line 49152

SWIGINTERN VALUE
_wrap_ncreel_focused(int argc, VALUE *argv, VALUE self) {
  struct ncreel *arg1 = (struct ncreel *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct nctablet *result = 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(argv[0], &argp1,SWIGTYPE_p_ncreel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreel *","ncreel_focused", 1, argv[0] )); 
  }
  arg1 = (struct ncreel *)(argp1);
  result = (struct nctablet *)ncreel_focused(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct nctablet *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nctablet, 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 ncreel *");
    if (!ty) ty = SWIGTYPE_p_ncreel;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nr")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreel_next(*args) ⇒ Object

call-seq:

ncreel_next(nr) -> struct nctablet *

A module function.



49213
49214
49215
49216
49217
49218
49219
49220
49221
49222
49223
49224
49225
49226
49227
49228
49229
49230
49231
49232
49233
49234
49235
49236
49237
49238
49239
49240
49241
49242
49243
49244
49245
49246
49247
49248
49249
49250
49251
49252
49253
49254
49255
49256
49257
49258
49259
49260
49261
49262
# File 'ext/notcurses/src/notcurses_wrap.c', line 49213

SWIGINTERN VALUE
_wrap_ncreel_next(int argc, VALUE *argv, VALUE self) {
  struct ncreel *arg1 = (struct ncreel *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct nctablet *result = 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(argv[0], &argp1,SWIGTYPE_p_ncreel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreel *","ncreel_next", 1, argv[0] )); 
  }
  arg1 = (struct ncreel *)(argp1);
  result = (struct nctablet *)ncreel_next(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct nctablet *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nctablet, 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 ncreel *");
    if (!ty) ty = SWIGTYPE_p_ncreel;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nr")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreel_offer_input(*args) ⇒ Object

call-seq:

ncreel_offer_input(nr, ni) -> bool

A module function.



49079
49080
49081
49082
49083
49084
49085
49086
49087
49088
49089
49090
49091
49092
49093
49094
49095
49096
49097
49098
49099
49100
49101
49102
49103
49104
49105
49106
49107
49108
49109
49110
49111
49112
49113
49114
49115
49116
49117
49118
49119
49120
49121
49122
49123
49124
49125
49126
49127
49128
49129
49130
49131
49132
49133
49134
49135
49136
49137
49138
49139
49140
# File 'ext/notcurses/src/notcurses_wrap.c', line 49079

SWIGINTERN VALUE
_wrap_ncreel_offer_input(int argc, VALUE *argv, VALUE self) {
  struct ncreel *arg1 = (struct ncreel *) 0 ;
  ncinput *arg2 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncreel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreel *","ncreel_offer_input", 1, argv[0] )); 
  }
  arg1 = (struct ncreel *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncinput const *","ncreel_offer_input", 2, argv[1] )); 
  }
  arg2 = (ncinput *)(argp2);
  result = (bool)ncreel_offer_input(arg1,(struct ncinput const *)arg2);
  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 ncreel *");
    if (!ty) ty = SWIGTYPE_p_ncreel;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nr")), 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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ni")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreel_plane(*args) ⇒ Object

call-seq:

ncreel_plane(nr) -> struct ncplane *

A module function.



48692
48693
48694
48695
48696
48697
48698
48699
48700
48701
48702
48703
48704
48705
48706
48707
48708
48709
48710
48711
48712
48713
48714
48715
48716
48717
48718
48719
48720
48721
48722
48723
48724
48725
48726
48727
48728
48729
48730
48731
48732
48733
48734
48735
48736
48737
48738
48739
48740
48741
# File 'ext/notcurses/src/notcurses_wrap.c', line 48692

SWIGINTERN VALUE
_wrap_ncreel_plane(int argc, VALUE *argv, VALUE self) {
  struct ncreel *arg1 = (struct ncreel *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncreel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreel *","ncreel_plane", 1, argv[0] )); 
  }
  arg1 = (struct ncreel *)(argp1);
  result = (struct ncplane *)ncreel_plane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncreel *");
    if (!ty) ty = SWIGTYPE_p_ncreel;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nr")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreel_prev(*args) ⇒ Object

call-seq:

ncreel_prev(nr) -> struct nctablet *

A module function.



49274
49275
49276
49277
49278
49279
49280
49281
49282
49283
49284
49285
49286
49287
49288
49289
49290
49291
49292
49293
49294
49295
49296
49297
49298
49299
49300
49301
49302
49303
49304
49305
49306
49307
49308
49309
49310
49311
49312
49313
49314
49315
49316
49317
49318
49319
49320
49321
49322
49323
# File 'ext/notcurses/src/notcurses_wrap.c', line 49274

SWIGINTERN VALUE
_wrap_ncreel_prev(int argc, VALUE *argv, VALUE self) {
  struct ncreel *arg1 = (struct ncreel *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct nctablet *result = 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(argv[0], &argp1,SWIGTYPE_p_ncreel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreel *","ncreel_prev", 1, argv[0] )); 
  }
  arg1 = (struct ncreel *)(argp1);
  result = (struct nctablet *)ncreel_prev(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct nctablet *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nctablet, 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 ncreel *");
    if (!ty) ty = SWIGTYPE_p_ncreel;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nr")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreel_redraw(*args) ⇒ Object

call-seq:

ncreel_redraw(nr) -> int

A module function.



49030
49031
49032
49033
49034
49035
49036
49037
49038
49039
49040
49041
49042
49043
49044
49045
49046
49047
49048
49049
49050
49051
49052
49053
49054
49055
49056
49057
49058
49059
49060
49061
49062
49063
49064
49065
49066
49067
# File 'ext/notcurses/src/notcurses_wrap.c', line 49030

SWIGINTERN VALUE
_wrap_ncreel_redraw(int argc, VALUE *argv, VALUE self) {
  struct ncreel *arg1 = (struct ncreel *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncreel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreel *","ncreel_redraw", 1, argv[0] )); 
  }
  arg1 = (struct ncreel *)(argp1);
  result = (int)ncreel_redraw(arg1);
  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 ncreel *");
    if (!ty) ty = SWIGTYPE_p_ncreel;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nr")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncreel_tabletcount(*args) ⇒ Object

call-seq:

ncreel_tabletcount(nr) -> int

A module function.



48908
48909
48910
48911
48912
48913
48914
48915
48916
48917
48918
48919
48920
48921
48922
48923
48924
48925
48926
48927
48928
48929
48930
48931
48932
48933
48934
48935
48936
48937
48938
48939
48940
48941
48942
48943
48944
48945
# File 'ext/notcurses/src/notcurses_wrap.c', line 48908

SWIGINTERN VALUE
_wrap_ncreel_tabletcount(int argc, VALUE *argv, VALUE self) {
  struct ncreel *arg1 = (struct ncreel *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncreel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncreel const *","ncreel_tabletcount", 1, argv[0] )); 
  }
  arg1 = (struct ncreel *)(argp1);
  result = (int)ncreel_tabletcount((struct ncreel const *)arg1);
  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 ncreel const *");
    if (!ty) ty = SWIGTYPE_p_ncreel;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nr")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncselector_additem(*args) ⇒ Object

call-seq:

ncselector_additem(n, item) -> int

A module function.



52245
52246
52247
52248
52249
52250
52251
52252
52253
52254
52255
52256
52257
52258
52259
52260
52261
52262
52263
52264
52265
52266
52267
52268
52269
52270
52271
52272
52273
52274
52275
52276
52277
52278
52279
52280
52281
52282
52283
52284
52285
52286
52287
52288
52289
52290
52291
52292
52293
52294
52295
52296
52297
52298
52299
52300
52301
52302
52303
52304
52305
52306
# File 'ext/notcurses/src/notcurses_wrap.c', line 52245

SWIGINTERN VALUE
_wrap_ncselector_additem(int argc, VALUE *argv, VALUE self) {
  struct ncselector *arg1 = (struct ncselector *) 0 ;
  struct ncselector_item *arg2 = (struct ncselector_item *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncselector, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector *","ncselector_additem", 1, argv[0] )); 
  }
  arg1 = (struct ncselector *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncselector_item, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncselector_item const *","ncselector_additem", 2, argv[1] )); 
  }
  arg2 = (struct ncselector_item *)(argp2);
  result = (int)ncselector_additem(arg1,(struct ncselector_item const *)arg2);
  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 ncselector *");
    if (!ty) ty = SWIGTYPE_p_ncselector;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("item")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncselector_create(*args) ⇒ Object

call-seq:

ncselector_create(n, opts) -> struct ncselector *

A module function.



52160
52161
52162
52163
52164
52165
52166
52167
52168
52169
52170
52171
52172
52173
52174
52175
52176
52177
52178
52179
52180
52181
52182
52183
52184
52185
52186
52187
52188
52189
52190
52191
52192
52193
52194
52195
52196
52197
52198
52199
52200
52201
52202
52203
52204
52205
52206
52207
52208
52209
52210
52211
52212
52213
52214
52215
52216
52217
52218
52219
52220
52221
52222
52223
52224
52225
52226
52227
52228
52229
52230
52231
52232
52233
# File 'ext/notcurses/src/notcurses_wrap.c', line 52160

SWIGINTERN VALUE
_wrap_ncselector_create(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncselector_options *arg2 = (ncselector_options *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  struct ncselector *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncselector_create", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncselector_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncselector_options const *","ncselector_create", 2, argv[1] )); 
  }
  arg2 = (ncselector_options *)(argp2);
  result = (struct ncselector *)ncselector_create(arg1,(struct ncselector_options const *)arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncselector *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncselector, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncselector_options const *");
    if (!ty) ty = SWIGTYPE_p_ncselector_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncselector_delitem(*args) ⇒ Object

call-seq:

ncselector_delitem(n, item) -> int

A module function.



52318
52319
52320
52321
52322
52323
52324
52325
52326
52327
52328
52329
52330
52331
52332
52333
52334
52335
52336
52337
52338
52339
52340
52341
52342
52343
52344
52345
52346
52347
52348
52349
52350
52351
52352
52353
52354
52355
52356
52357
52358
52359
52360
52361
52362
52363
52364
52365
52366
52367
52368
52369
52370
52371
52372
52373
52374
52375
52376
52377
52378
52379
# File 'ext/notcurses/src/notcurses_wrap.c', line 52318

SWIGINTERN VALUE
_wrap_ncselector_delitem(int argc, VALUE *argv, VALUE self) {
  struct ncselector *arg1 = (struct ncselector *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncselector, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector *","ncselector_delitem", 1, argv[0] )); 
  }
  arg1 = (struct ncselector *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ncselector_delitem", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (int)ncselector_delitem(arg1,(char const *)arg2);
  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 ncselector *");
    if (!ty) ty = SWIGTYPE_p_ncselector;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("item")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ncselector_destroy(*args) ⇒ Object

call-seq:

ncselector_destroy(n, item)

A module function.



52711
52712
52713
52714
52715
52716
52717
52718
52719
52720
52721
52722
52723
52724
52725
52726
52727
52728
52729
52730
52731
52732
52733
52734
52735
52736
52737
52738
52739
52740
52741
52742
52743
52744
52745
52746
52747
52748
52749
52750
52751
52752
52753
52754
52755
52756
52757
52758
52759
52760
52761
52762
52763
52764
52765
52766
52767
52768
52769
52770
52771
# File 'ext/notcurses/src/notcurses_wrap.c', line 52711

SWIGINTERN VALUE
_wrap_ncselector_destroy(int argc, VALUE *argv, VALUE self) {
  struct ncselector *arg1 = (struct ncselector *) 0 ;
  char **arg2 = (char **) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncselector, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector *","ncselector_destroy", 1, argv[0] )); 
  }
  arg1 = (struct ncselector *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_p_char, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char **","ncselector_destroy", 2, argv[1] )); 
  }
  arg2 = (char **)(argp2);
  ncselector_destroy(arg1,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 *");
    if (!ty) ty = SWIGTYPE_p_ncselector;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("char **");
    if (!ty) ty = SWIGTYPE_p_p_char;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("item")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncselector_nextitem(*args) ⇒ Object

call-seq:

ncselector_nextitem(n) -> char const *

A module function.



52576
52577
52578
52579
52580
52581
52582
52583
52584
52585
52586
52587
52588
52589
52590
52591
52592
52593
52594
52595
52596
52597
52598
52599
52600
52601
52602
52603
52604
52605
52606
52607
52608
52609
52610
52611
52612
52613
52614
52615
52616
52617
52618
52619
52620
52621
52622
52623
52624
52625
52626
# File 'ext/notcurses/src/notcurses_wrap.c', line 52576

SWIGINTERN VALUE
_wrap_ncselector_nextitem(int argc, VALUE *argv, VALUE self) {
  struct ncselector *arg1 = (struct ncselector *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 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(argv[0], &argp1,SWIGTYPE_p_ncselector, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector *","ncselector_nextitem", 1, argv[0] )); 
  }
  arg1 = (struct ncselector *)(argp1);
  result = (char *)ncselector_nextitem(arg1);
  {
    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 *");
    if (!ty) ty = SWIGTYPE_p_ncselector;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncselector_offer_input(*args) ⇒ Object

call-seq:

ncselector_offer_input(n, nc) -> bool

A module function.



52638
52639
52640
52641
52642
52643
52644
52645
52646
52647
52648
52649
52650
52651
52652
52653
52654
52655
52656
52657
52658
52659
52660
52661
52662
52663
52664
52665
52666
52667
52668
52669
52670
52671
52672
52673
52674
52675
52676
52677
52678
52679
52680
52681
52682
52683
52684
52685
52686
52687
52688
52689
52690
52691
52692
52693
52694
52695
52696
52697
52698
52699
# File 'ext/notcurses/src/notcurses_wrap.c', line 52638

SWIGINTERN VALUE
_wrap_ncselector_offer_input(int argc, VALUE *argv, VALUE self) {
  struct ncselector *arg1 = (struct ncselector *) 0 ;
  ncinput *arg2 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncselector, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector *","ncselector_offer_input", 1, argv[0] )); 
  }
  arg1 = (struct ncselector *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncinput const *","ncselector_offer_input", 2, argv[1] )); 
  }
  arg2 = (ncinput *)(argp2);
  result = (bool)ncselector_offer_input(arg1,(struct ncinput const *)arg2);
  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 ncselector *");
    if (!ty) ty = SWIGTYPE_p_ncselector;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncselector_plane(*args) ⇒ Object

call-seq:

ncselector_plane(n) -> struct ncplane *

A module function.



52453
52454
52455
52456
52457
52458
52459
52460
52461
52462
52463
52464
52465
52466
52467
52468
52469
52470
52471
52472
52473
52474
52475
52476
52477
52478
52479
52480
52481
52482
52483
52484
52485
52486
52487
52488
52489
52490
52491
52492
52493
52494
52495
52496
52497
52498
52499
52500
52501
52502
# File 'ext/notcurses/src/notcurses_wrap.c', line 52453

SWIGINTERN VALUE
_wrap_ncselector_plane(int argc, VALUE *argv, VALUE self) {
  struct ncselector *arg1 = (struct ncselector *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncselector, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector *","ncselector_plane", 1, argv[0] )); 
  }
  arg1 = (struct ncselector *)(argp1);
  result = (struct ncplane *)ncselector_plane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncselector *");
    if (!ty) ty = SWIGTYPE_p_ncselector;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncselector_previtem(*args) ⇒ Object

call-seq:

ncselector_previtem(n) -> char const *

A module function.



52514
52515
52516
52517
52518
52519
52520
52521
52522
52523
52524
52525
52526
52527
52528
52529
52530
52531
52532
52533
52534
52535
52536
52537
52538
52539
52540
52541
52542
52543
52544
52545
52546
52547
52548
52549
52550
52551
52552
52553
52554
52555
52556
52557
52558
52559
52560
52561
52562
52563
52564
# File 'ext/notcurses/src/notcurses_wrap.c', line 52514

SWIGINTERN VALUE
_wrap_ncselector_previtem(int argc, VALUE *argv, VALUE self) {
  struct ncselector *arg1 = (struct ncselector *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 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(argv[0], &argp1,SWIGTYPE_p_ncselector, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector *","ncselector_previtem", 1, argv[0] )); 
  }
  arg1 = (struct ncselector *)(argp1);
  result = (char *)ncselector_previtem(arg1);
  {
    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 *");
    if (!ty) ty = SWIGTYPE_p_ncselector;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncselector_selected(*args) ⇒ Object

call-seq:

ncselector_selected(n) -> char const *

A module function.



52391
52392
52393
52394
52395
52396
52397
52398
52399
52400
52401
52402
52403
52404
52405
52406
52407
52408
52409
52410
52411
52412
52413
52414
52415
52416
52417
52418
52419
52420
52421
52422
52423
52424
52425
52426
52427
52428
52429
52430
52431
52432
52433
52434
52435
52436
52437
52438
52439
52440
52441
# File 'ext/notcurses/src/notcurses_wrap.c', line 52391

SWIGINTERN VALUE
_wrap_ncselector_selected(int argc, VALUE *argv, VALUE self) {
  struct ncselector *arg1 = (struct ncselector *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 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(argv[0], &argp1,SWIGTYPE_p_ncselector, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncselector const *","ncselector_selected", 1, argv[0] )); 
  }
  arg1 = (struct ncselector *)(argp1);
  result = (char *)ncselector_selected((struct ncselector const *)arg1);
  {
    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 const *");
    if (!ty) ty = SWIGTYPE_p_ncselector;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncstrwidth(*args) ⇒ Object

call-seq:

ncstrwidth(egcs, validbytes, validwidth) -> int

A module function.



8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
# File 'ext/notcurses/src/notcurses_wrap.c', line 8523

SWIGINTERN VALUE
_wrap_ncstrwidth(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  int *arg2 = (int *) 0 ;
  int *arg3 = (int *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","ncstrwidth", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  {
    arg2 = (int *) malloc(sizeof(int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg2 = (int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (int *) malloc(sizeof(int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg3 = (int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (int)ncstrwidth((char const *)arg1,arg2,arg3);
  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;
    }
    
    VALUE obj = arg1 ? rb_str_new2(arg1) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("egcs")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("validbytes")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("validwidth")), converted_value);
      free(arg3);
    }
  }
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.ncsubproc_createv(*args) ⇒ Object

call-seq:

ncsubproc_createv(n, opts, bin, arg, cbfxn, donecbfxn) -> struct ncsubproc *

A module function.



65999
66000
66001
66002
66003
66004
66005
66006
66007
66008
66009
66010
66011
66012
66013
66014
66015
66016
66017
66018
66019
66020
66021
66022
66023
66024
66025
66026
66027
66028
66029
66030
66031
66032
66033
66034
66035
66036
66037
66038
66039
66040
66041
66042
66043
66044
66045
66046
66047
66048
66049
66050
66051
66052
66053
66054
66055
66056
66057
66058
66059
66060
66061
66062
66063
66064
66065
66066
66067
66068
66069
66070
66071
66072
66073
66074
66075
66076
66077
66078
66079
66080
66081
66082
66083
66084
66085
66086
66087
66088
66089
66090
66091
66092
66093
66094
66095
66096
66097
66098
66099
66100
66101
66102
66103
66104
66105
66106
66107
66108
66109
66110
66111
66112
66113
66114
66115
66116
66117
66118
66119
66120
66121
66122
66123
66124
66125
66126
66127
66128
66129
66130
66131
66132
66133
66134
66135
66136
66137
66138
66139
66140
66141
66142
66143
66144
66145
66146
66147
66148
66149
66150
66151
66152
66153
66154
66155
66156
66157
66158
66159
66160
66161
66162
66163
66164
66165
66166
66167
# File 'ext/notcurses/src/notcurses_wrap.c', line 65999

SWIGINTERN VALUE
_wrap_ncsubproc_createv(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncsubproc_options *arg2 = (ncsubproc_options *) 0 ;
  char *arg3 = (char *) 0 ;
  char **arg4 ;
  ncfdplane_callback arg5 = (ncfdplane_callback) 0 ;
  ncfdplane_done_cb arg6 = (ncfdplane_done_cb) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  struct ncsubproc *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncsubproc_createv", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncsubproc_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncsubproc_options const *","ncsubproc_createv", 2, argv[1] )); 
  }
  arg2 = (ncsubproc_options *)(argp2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","ncsubproc_createv", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_p_char, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *const []","ncsubproc_createv", 4, argv[3] )); 
  } 
  arg4 = (char **)(argp4);
  {
    int res = SWIG_ConvertFunctionPtr(argv[4], (void**)(&arg5), SWIGTYPE_p_f_p_struct_ncfdplane_p_q_const__void_size_t_p_void__int);
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "ncfdplane_callback","ncsubproc_createv", 5, argv[4] )); 
    }
  }
  {
    if (!NIL_P(argv[5])) {
      arg6 = (ncfdplane_done_cb)rb_proc_new((VALUE (*)(ANYARGS))call_ruby_proc, argv[5]);
    } else {
      arg6 = NULL;
    }
  }
  result = (struct ncsubproc *)ncsubproc_createv(arg1,(struct ncsubproc_options const *)arg2,(char const *)arg3,(char const *const (*))arg4,arg5,arg6);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncsubproc *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncsubproc, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncsubproc_options const *");
    if (!ty) ty = SWIGTYPE_p_ncsubproc_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), 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 = arg3 ? rb_str_new2(arg3) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("bin")), 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("char const *const []");
    if (!ty) ty = SWIGTYPE_p_p_char;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("arg")), 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("ncfdplane_callback");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_ncfdplane_p_q_const__void_size_t_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cbfxn")), 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("ncfdplane_done_cb");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_ncfdplane_int_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg6, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("donecbfxn")), obj);
  }
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.ncsubproc_createvp(*args) ⇒ Object

call-seq:

ncsubproc_createvp(n, opts, bin, arg, cbfxn, donecbfxn) -> struct ncsubproc *

A module function.



66179
66180
66181
66182
66183
66184
66185
66186
66187
66188
66189
66190
66191
66192
66193
66194
66195
66196
66197
66198
66199
66200
66201
66202
66203
66204
66205
66206
66207
66208
66209
66210
66211
66212
66213
66214
66215
66216
66217
66218
66219
66220
66221
66222
66223
66224
66225
66226
66227
66228
66229
66230
66231
66232
66233
66234
66235
66236
66237
66238
66239
66240
66241
66242
66243
66244
66245
66246
66247
66248
66249
66250
66251
66252
66253
66254
66255
66256
66257
66258
66259
66260
66261
66262
66263
66264
66265
66266
66267
66268
66269
66270
66271
66272
66273
66274
66275
66276
66277
66278
66279
66280
66281
66282
66283
66284
66285
66286
66287
66288
66289
66290
66291
66292
66293
66294
66295
66296
66297
66298
66299
66300
66301
66302
66303
66304
66305
66306
66307
66308
66309
66310
66311
66312
66313
66314
66315
66316
66317
66318
66319
66320
66321
66322
66323
66324
66325
66326
66327
66328
66329
66330
66331
66332
66333
66334
66335
66336
66337
66338
66339
66340
66341
66342
66343
66344
66345
66346
66347
# File 'ext/notcurses/src/notcurses_wrap.c', line 66179

SWIGINTERN VALUE
_wrap_ncsubproc_createvp(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncsubproc_options *arg2 = (ncsubproc_options *) 0 ;
  char *arg3 = (char *) 0 ;
  char **arg4 ;
  ncfdplane_callback arg5 = (ncfdplane_callback) 0 ;
  ncfdplane_done_cb arg6 = (ncfdplane_done_cb) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  struct ncsubproc *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncsubproc_createvp", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncsubproc_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncsubproc_options const *","ncsubproc_createvp", 2, argv[1] )); 
  }
  arg2 = (ncsubproc_options *)(argp2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","ncsubproc_createvp", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_p_char, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *const []","ncsubproc_createvp", 4, argv[3] )); 
  } 
  arg4 = (char **)(argp4);
  {
    int res = SWIG_ConvertFunctionPtr(argv[4], (void**)(&arg5), SWIGTYPE_p_f_p_struct_ncfdplane_p_q_const__void_size_t_p_void__int);
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "ncfdplane_callback","ncsubproc_createvp", 5, argv[4] )); 
    }
  }
  {
    if (!NIL_P(argv[5])) {
      arg6 = (ncfdplane_done_cb)rb_proc_new((VALUE (*)(ANYARGS))call_ruby_proc, argv[5]);
    } else {
      arg6 = NULL;
    }
  }
  result = (struct ncsubproc *)ncsubproc_createvp(arg1,(struct ncsubproc_options const *)arg2,(char const *)arg3,(char const *const (*))arg4,arg5,arg6);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncsubproc *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncsubproc, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncsubproc_options const *");
    if (!ty) ty = SWIGTYPE_p_ncsubproc_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), 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 = arg3 ? rb_str_new2(arg3) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("bin")), 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("char const *const []");
    if (!ty) ty = SWIGTYPE_p_p_char;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("arg")), 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("ncfdplane_callback");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_ncfdplane_p_q_const__void_size_t_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cbfxn")), 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("ncfdplane_done_cb");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_ncfdplane_int_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg6, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("donecbfxn")), obj);
  }
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.ncsubproc_createvpe(*args) ⇒ Object

call-seq:

ncsubproc_createvpe(n, opts, bin, arg, env, cbfxn, donecbfxn) -> struct ncsubproc *

A module function.



66359
66360
66361
66362
66363
66364
66365
66366
66367
66368
66369
66370
66371
66372
66373
66374
66375
66376
66377
66378
66379
66380
66381
66382
66383
66384
66385
66386
66387
66388
66389
66390
66391
66392
66393
66394
66395
66396
66397
66398
66399
66400
66401
66402
66403
66404
66405
66406
66407
66408
66409
66410
66411
66412
66413
66414
66415
66416
66417
66418
66419
66420
66421
66422
66423
66424
66425
66426
66427
66428
66429
66430
66431
66432
66433
66434
66435
66436
66437
66438
66439
66440
66441
66442
66443
66444
66445
66446
66447
66448
66449
66450
66451
66452
66453
66454
66455
66456
66457
66458
66459
66460
66461
66462
66463
66464
66465
66466
66467
66468
66469
66470
66471
66472
66473
66474
66475
66476
66477
66478
66479
66480
66481
66482
66483
66484
66485
66486
66487
66488
66489
66490
66491
66492
66493
66494
66495
66496
66497
66498
66499
66500
66501
66502
66503
66504
66505
66506
66507
66508
66509
66510
66511
66512
66513
66514
66515
66516
66517
66518
66519
66520
66521
66522
66523
66524
66525
66526
66527
66528
66529
66530
66531
66532
66533
66534
66535
66536
66537
66538
66539
66540
66541
66542
66543
66544
66545
66546
66547
66548
66549
66550
66551
# File 'ext/notcurses/src/notcurses_wrap.c', line 66359

SWIGINTERN VALUE
_wrap_ncsubproc_createvpe(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncsubproc_options *arg2 = (ncsubproc_options *) 0 ;
  char *arg3 = (char *) 0 ;
  char **arg4 ;
  char **arg5 ;
  ncfdplane_callback arg6 = (ncfdplane_callback) 0 ;
  ncfdplane_done_cb arg7 = (ncfdplane_done_cb) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res3 ;
  char *buf3 = 0 ;
  int alloc3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  struct ncsubproc *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 7) || (argc > 7)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncsubproc_createvpe", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncsubproc_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncsubproc_options const *","ncsubproc_createvpe", 2, argv[1] )); 
  }
  arg2 = (ncsubproc_options *)(argp2);
  res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","ncsubproc_createvpe", 3, argv[2] ));
  }
  arg3 = (char *)(buf3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_p_char, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *const []","ncsubproc_createvpe", 4, argv[3] )); 
  } 
  arg4 = (char **)(argp4);
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_p_char, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *const []","ncsubproc_createvpe", 5, argv[4] )); 
  } 
  arg5 = (char **)(argp5);
  {
    int res = SWIG_ConvertFunctionPtr(argv[5], (void**)(&arg6), SWIGTYPE_p_f_p_struct_ncfdplane_p_q_const__void_size_t_p_void__int);
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "ncfdplane_callback","ncsubproc_createvpe", 6, argv[5] )); 
    }
  }
  {
    if (!NIL_P(argv[6])) {
      arg7 = (ncfdplane_done_cb)rb_proc_new((VALUE (*)(ANYARGS))call_ruby_proc, argv[6]);
    } else {
      arg7 = NULL;
    }
  }
  result = (struct ncsubproc *)ncsubproc_createvpe(arg1,(struct ncsubproc_options const *)arg2,(char const *)arg3,(char const *const (*))arg4,(char const *const (*))arg5,arg6,arg7);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncsubproc *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncsubproc, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncsubproc_options const *");
    if (!ty) ty = SWIGTYPE_p_ncsubproc_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), 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 = arg3 ? rb_str_new2(arg3) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("bin")), 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("char const *const []");
    if (!ty) ty = SWIGTYPE_p_p_char;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("arg")), 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("char const *const []");
    if (!ty) ty = SWIGTYPE_p_p_char;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("env")), 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("ncfdplane_callback");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_ncfdplane_p_q_const__void_size_t_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg6, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("cbfxn")), 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("ncfdplane_done_cb");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_ncfdplane_int_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg7, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("donecbfxn")), obj);
  }
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return vresult;
fail:
  if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
  return Qnil;
}

.ncsubproc_destroy(*args) ⇒ Object

call-seq:

ncsubproc_destroy(n) -> int

A module function.



66624
66625
66626
66627
66628
66629
66630
66631
66632
66633
66634
66635
66636
66637
66638
66639
66640
66641
66642
66643
66644
66645
66646
66647
66648
66649
66650
66651
66652
66653
66654
66655
66656
66657
66658
66659
66660
66661
# File 'ext/notcurses/src/notcurses_wrap.c', line 66624

SWIGINTERN VALUE
_wrap_ncsubproc_destroy(int argc, VALUE *argv, VALUE self) {
  struct ncsubproc *arg1 = (struct ncsubproc *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncsubproc, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncsubproc *","ncsubproc_destroy", 1, argv[0] )); 
  }
  arg1 = (struct ncsubproc *)(argp1);
  result = (int)ncsubproc_destroy(arg1);
  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 ncsubproc *");
    if (!ty) ty = SWIGTYPE_p_ncsubproc;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncsubproc_plane(*args) ⇒ Object

call-seq:

ncsubproc_plane(n) -> struct ncplane *

A module function.



66563
66564
66565
66566
66567
66568
66569
66570
66571
66572
66573
66574
66575
66576
66577
66578
66579
66580
66581
66582
66583
66584
66585
66586
66587
66588
66589
66590
66591
66592
66593
66594
66595
66596
66597
66598
66599
66600
66601
66602
66603
66604
66605
66606
66607
66608
66609
66610
66611
66612
# File 'ext/notcurses/src/notcurses_wrap.c', line 66563

SWIGINTERN VALUE
_wrap_ncsubproc_plane(int argc, VALUE *argv, VALUE self) {
  struct ncsubproc *arg1 = (struct ncsubproc *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncsubproc, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncsubproc *","ncsubproc_plane", 1, argv[0] )); 
  }
  arg1 = (struct ncsubproc *)(argp1);
  result = (struct ncplane *)ncsubproc_plane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncsubproc *");
    if (!ty) ty = SWIGTYPE_p_ncsubproc;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctab_cb(*args) ⇒ Object

call-seq:

nctab_cb(t) -> tabcb

A module function.



61194
61195
61196
61197
61198
61199
61200
61201
61202
61203
61204
61205
61206
61207
61208
61209
61210
61211
61212
61213
61214
61215
61216
61217
61218
61219
61220
61221
61222
61223
61224
61225
61226
61227
61228
61229
61230
61231
# File 'ext/notcurses/src/notcurses_wrap.c', line 61194

SWIGINTERN VALUE
_wrap_nctab_cb(int argc, VALUE *argv, VALUE self) {
  struct nctab *arg1 = (struct nctab *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  tabcb result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctab *","nctab_cb", 1, argv[0] )); 
  }
  arg1 = (struct nctab *)(argp1);
  result = (tabcb)nctab_cb(arg1);
  vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_nctab_p_struct_ncplane_p_void__void);
  {
    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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctab_move(*args) ⇒ Object

call-seq:

nctab_move(nt, t, after, before) -> int

A module function.



61789
61790
61791
61792
61793
61794
61795
61796
61797
61798
61799
61800
61801
61802
61803
61804
61805
61806
61807
61808
61809
61810
61811
61812
61813
61814
61815
61816
61817
61818
61819
61820
61821
61822
61823
61824
61825
61826
61827
61828
61829
61830
61831
61832
61833
61834
61835
61836
61837
61838
61839
61840
61841
61842
61843
61844
61845
61846
61847
61848
61849
61850
61851
61852
61853
61854
61855
61856
61857
61858
61859
61860
61861
61862
61863
61864
61865
61866
61867
61868
61869
61870
61871
61872
61873
61874
61875
61876
61877
61878
61879
61880
61881
61882
61883
61884
61885
61886
61887
61888
61889
61890
61891
61892
61893
61894
61895
61896
61897
61898
# File 'ext/notcurses/src/notcurses_wrap.c', line 61789

SWIGINTERN VALUE
_wrap_nctab_move(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  struct nctab *arg2 = (struct nctab *) 0 ;
  struct nctab *arg3 = (struct nctab *) 0 ;
  struct nctab *arg4 = (struct nctab *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctab_move", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct nctab *","nctab_move", 2, argv[1] )); 
  }
  arg2 = (struct nctab *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "struct nctab *","nctab_move", 3, argv[2] )); 
  }
  arg3 = (struct nctab *)(argp3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "struct nctab *","nctab_move", 4, argv[3] )); 
  }
  arg4 = (struct nctab *)(argp4);
  result = (int)nctab_move(arg1,arg2,arg3,arg4);
  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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), 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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), 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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("after")), 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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("before")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctab_move_left(*args) ⇒ Object

call-seq:

nctab_move_left(nt, t)

A module function.



61982
61983
61984
61985
61986
61987
61988
61989
61990
61991
61992
61993
61994
61995
61996
61997
61998
61999
62000
62001
62002
62003
62004
62005
62006
62007
62008
62009
62010
62011
62012
62013
62014
62015
62016
62017
62018
62019
62020
62021
62022
62023
62024
62025
62026
62027
62028
62029
62030
62031
62032
62033
62034
62035
62036
62037
62038
62039
62040
62041
62042
# File 'ext/notcurses/src/notcurses_wrap.c', line 61982

SWIGINTERN VALUE
_wrap_nctab_move_left(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  struct nctab *arg2 = (struct nctab *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctab_move_left", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct nctab *","nctab_move_left", 2, argv[1] )); 
  }
  arg2 = (struct nctab *)(argp2);
  nctab_move_left(arg1,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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), 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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctab_move_right(*args) ⇒ Object

call-seq:

nctab_move_right(nt, t)

A module function.



61910
61911
61912
61913
61914
61915
61916
61917
61918
61919
61920
61921
61922
61923
61924
61925
61926
61927
61928
61929
61930
61931
61932
61933
61934
61935
61936
61937
61938
61939
61940
61941
61942
61943
61944
61945
61946
61947
61948
61949
61950
61951
61952
61953
61954
61955
61956
61957
61958
61959
61960
61961
61962
61963
61964
61965
61966
61967
61968
61969
61970
# File 'ext/notcurses/src/notcurses_wrap.c', line 61910

SWIGINTERN VALUE
_wrap_nctab_move_right(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  struct nctab *arg2 = (struct nctab *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctab_move_right", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct nctab *","nctab_move_right", 2, argv[1] )); 
  }
  arg2 = (struct nctab *)(argp2);
  nctab_move_right(arg1,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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), 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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctab_name(*args) ⇒ Object

call-seq:

nctab_name(t) -> char const *

A module function.



61243
61244
61245
61246
61247
61248
61249
61250
61251
61252
61253
61254
61255
61256
61257
61258
61259
61260
61261
61262
61263
61264
61265
61266
61267
61268
61269
61270
61271
61272
61273
61274
61275
61276
61277
61278
61279
61280
61281
61282
61283
61284
61285
61286
61287
61288
61289
61290
61291
61292
61293
# File 'ext/notcurses/src/notcurses_wrap.c', line 61243

SWIGINTERN VALUE
_wrap_nctab_name(int argc, VALUE *argv, VALUE self) {
  struct nctab *arg1 = (struct nctab *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 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(argv[0], &argp1,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctab *","nctab_name", 1, argv[0] )); 
  }
  arg1 = (struct nctab *)(argp1);
  result = (char *)nctab_name(arg1);
  {
    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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctab_name_width(*args) ⇒ Object

call-seq:

nctab_name_width(t) -> int

A module function.



61305
61306
61307
61308
61309
61310
61311
61312
61313
61314
61315
61316
61317
61318
61319
61320
61321
61322
61323
61324
61325
61326
61327
61328
61329
61330
61331
61332
61333
61334
61335
61336
61337
61338
61339
61340
61341
61342
# File 'ext/notcurses/src/notcurses_wrap.c', line 61305

SWIGINTERN VALUE
_wrap_nctab_name_width(int argc, VALUE *argv, VALUE self) {
  struct nctab *arg1 = (struct nctab *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctab *","nctab_name_width", 1, argv[0] )); 
  }
  arg1 = (struct nctab *)(argp1);
  result = (int)nctab_name_width(arg1);
  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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctab_next(*args) ⇒ Object

call-seq:

nctab_next(t) -> struct nctab *

A module function.



61415
61416
61417
61418
61419
61420
61421
61422
61423
61424
61425
61426
61427
61428
61429
61430
61431
61432
61433
61434
61435
61436
61437
61438
61439
61440
61441
61442
61443
61444
61445
61446
61447
61448
61449
61450
61451
61452
61453
61454
61455
61456
61457
61458
61459
61460
61461
61462
61463
61464
# File 'ext/notcurses/src/notcurses_wrap.c', line 61415

SWIGINTERN VALUE
_wrap_nctab_next(int argc, VALUE *argv, VALUE self) {
  struct nctab *arg1 = (struct nctab *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct nctab *result = 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(argv[0], &argp1,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctab *","nctab_next", 1, argv[0] )); 
  }
  arg1 = (struct nctab *)(argp1);
  result = (struct nctab *)nctab_next(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct nctab *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nctab, 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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctab_prev(*args) ⇒ Object

call-seq:

nctab_prev(t) -> struct nctab *

A module function.



61476
61477
61478
61479
61480
61481
61482
61483
61484
61485
61486
61487
61488
61489
61490
61491
61492
61493
61494
61495
61496
61497
61498
61499
61500
61501
61502
61503
61504
61505
61506
61507
61508
61509
61510
61511
61512
61513
61514
61515
61516
61517
61518
61519
61520
61521
61522
61523
61524
61525
# File 'ext/notcurses/src/notcurses_wrap.c', line 61476

SWIGINTERN VALUE
_wrap_nctab_prev(int argc, VALUE *argv, VALUE self) {
  struct nctab *arg1 = (struct nctab *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct nctab *result = 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(argv[0], &argp1,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctab *","nctab_prev", 1, argv[0] )); 
  }
  arg1 = (struct nctab *)(argp1);
  result = (struct nctab *)nctab_prev(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct nctab *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nctab, 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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctab_set_cb(*args) ⇒ Object

call-seq:

nctab_set_cb(t, newcb) -> tabcb

A module function.



62946
62947
62948
62949
62950
62951
62952
62953
62954
62955
62956
62957
62958
62959
62960
62961
62962
62963
62964
62965
62966
62967
62968
62969
62970
62971
62972
62973
62974
62975
62976
62977
62978
62979
62980
62981
62982
62983
62984
62985
62986
62987
62988
62989
62990
62991
62992
62993
62994
62995
62996
62997
62998
62999
63000
63001
63002
63003
63004
63005
63006
63007
# File 'ext/notcurses/src/notcurses_wrap.c', line 62946

SWIGINTERN VALUE
_wrap_nctab_set_cb(int argc, VALUE *argv, VALUE self) {
  struct nctab *arg1 = (struct nctab *) 0 ;
  tabcb arg2 = (tabcb) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  tabcb result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctab *","nctab_set_cb", 1, argv[0] )); 
  }
  arg1 = (struct nctab *)(argp1);
  {
    if (!NIL_P(argv[1])) {
      arg2 = (tabcb)rb_proc_new((VALUE (*)(ANYARGS))call_ruby_proc, argv[1]);
    } else {
      arg2 = NULL;
    }
  }
  result = (tabcb)nctab_set_cb(arg1,arg2);
  vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_nctab_p_struct_ncplane_p_void__void);
  {
    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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), 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("tabcb");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_nctab_p_struct_ncplane_p_void__void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("newcb")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctab_set_name(*args) ⇒ Object

call-seq:

nctab_set_name(t, newname) -> int

A module function.



63019
63020
63021
63022
63023
63024
63025
63026
63027
63028
63029
63030
63031
63032
63033
63034
63035
63036
63037
63038
63039
63040
63041
63042
63043
63044
63045
63046
63047
63048
63049
63050
63051
63052
63053
63054
63055
63056
63057
63058
63059
63060
63061
63062
63063
63064
63065
63066
63067
63068
63069
63070
63071
63072
63073
63074
63075
63076
63077
63078
63079
63080
# File 'ext/notcurses/src/notcurses_wrap.c', line 63019

SWIGINTERN VALUE
_wrap_nctab_set_name(int argc, VALUE *argv, VALUE self) {
  struct nctab *arg1 = (struct nctab *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctab *","nctab_set_name", 1, argv[0] )); 
  }
  arg1 = (struct nctab *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","nctab_set_name", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (int)nctab_set_name(arg1,(char const *)arg2);
  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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), 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("newname")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.nctab_set_userptr(*args) ⇒ Object

call-seq:

nctab_set_userptr(t, newopaque) -> void *

A module function.



63092
63093
63094
63095
63096
63097
63098
63099
63100
63101
63102
63103
63104
63105
63106
63107
63108
63109
63110
63111
63112
63113
63114
63115
63116
63117
63118
63119
63120
63121
63122
63123
63124
63125
63126
63127
63128
63129
63130
63131
63132
63133
63134
63135
63136
63137
63138
63139
63140
63141
63142
63143
63144
63145
63146
63147
63148
63149
63150
63151
63152
63153
63154
63155
63156
63157
63158
63159
63160
63161
63162
63163
# File 'ext/notcurses/src/notcurses_wrap.c', line 63092

SWIGINTERN VALUE
_wrap_nctab_set_userptr(int argc, VALUE *argv, VALUE self) {
  struct nctab *arg1 = (struct nctab *) 0 ;
  void *arg2 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctab *","nctab_set_userptr", 1, argv[0] )); 
  }
  arg1 = (struct nctab *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","nctab_set_userptr", 2, argv[1] )); 
  }
  result = (void *)nctab_set_userptr(arg1,arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("void *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_void, 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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), 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("void *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("newopaque")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctab_userptr(*args) ⇒ Object

call-seq:

nctab_userptr(t) -> void *

A module function.



61354
61355
61356
61357
61358
61359
61360
61361
61362
61363
61364
61365
61366
61367
61368
61369
61370
61371
61372
61373
61374
61375
61376
61377
61378
61379
61380
61381
61382
61383
61384
61385
61386
61387
61388
61389
61390
61391
61392
61393
61394
61395
61396
61397
61398
61399
61400
61401
61402
61403
# File 'ext/notcurses/src/notcurses_wrap.c', line 61354

SWIGINTERN VALUE
_wrap_nctab_userptr(int argc, VALUE *argv, VALUE self) {
  struct nctab *arg1 = (struct nctab *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *result = 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(argv[0], &argp1,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctab *","nctab_userptr", 1, argv[0] )); 
  }
  arg1 = (struct nctab *)(argp1);
  result = (void *)nctab_userptr(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("void *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_void, 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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_add(*args) ⇒ Object

call-seq:

nctabbed_add(nt, after, before, tcb, name, opaque) -> struct nctab *

A module function.



61537
61538
61539
61540
61541
61542
61543
61544
61545
61546
61547
61548
61549
61550
61551
61552
61553
61554
61555
61556
61557
61558
61559
61560
61561
61562
61563
61564
61565
61566
61567
61568
61569
61570
61571
61572
61573
61574
61575
61576
61577
61578
61579
61580
61581
61582
61583
61584
61585
61586
61587
61588
61589
61590
61591
61592
61593
61594
61595
61596
61597
61598
61599
61600
61601
61602
61603
61604
61605
61606
61607
61608
61609
61610
61611
61612
61613
61614
61615
61616
61617
61618
61619
61620
61621
61622
61623
61624
61625
61626
61627
61628
61629
61630
61631
61632
61633
61634
61635
61636
61637
61638
61639
61640
61641
61642
61643
61644
61645
61646
61647
61648
61649
61650
61651
61652
61653
61654
61655
61656
61657
61658
61659
61660
61661
61662
61663
61664
61665
61666
61667
61668
61669
61670
61671
61672
61673
61674
61675
61676
61677
61678
61679
61680
61681
61682
61683
61684
61685
61686
61687
61688
61689
61690
61691
61692
61693
61694
61695
61696
61697
61698
61699
61700
61701
61702
61703
61704
# File 'ext/notcurses/src/notcurses_wrap.c', line 61537

SWIGINTERN VALUE
_wrap_nctabbed_add(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  struct nctab *arg2 = (struct nctab *) 0 ;
  struct nctab *arg3 = (struct nctab *) 0 ;
  tabcb arg4 = (tabcb) 0 ;
  char *arg5 = (char *) 0 ;
  void *arg6 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int res5 ;
  char *buf5 = 0 ;
  int alloc5 = 0 ;
  int res6 ;
  struct nctab *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_add", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct nctab *","nctabbed_add", 2, argv[1] )); 
  }
  arg2 = (struct nctab *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "struct nctab *","nctabbed_add", 3, argv[2] )); 
  }
  arg3 = (struct nctab *)(argp3);
  {
    if (!NIL_P(argv[3])) {
      arg4 = (tabcb)rb_proc_new((VALUE (*)(ANYARGS))call_ruby_proc, argv[3]);
    } else {
      arg4 = NULL;
    }
  }
  res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","nctabbed_add", 5, argv[4] ));
  }
  arg5 = (char *)(buf5);
  res6 = SWIG_ConvertPtr(argv[5],SWIG_as_voidptrptr(&arg6), 0, 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "void *","nctabbed_add", 6, argv[5] )); 
  }
  result = (struct nctab *)nctabbed_add(arg1,arg2,arg3,arg4,(char const *)arg5,arg6);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct nctab *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nctab, 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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), 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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("after")), 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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("before")), 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("tabcb");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_nctab_p_struct_ncplane_p_void__void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("tcb")), 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 = arg5 ? rb_str_new2(arg5) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("name")), 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("void *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg6, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opaque")), obj);
  }
  if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
  return vresult;
fail:
  if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
  return Qnil;
}

.nctabbed_channels(*args) ⇒ Object

call-seq:

nctabbed_channels(nt, hdrchan, selchan, sepchan)

A module function.



62316
62317
62318
62319
62320
62321
62322
62323
62324
62325
62326
62327
62328
62329
62330
62331
62332
62333
62334
62335
62336
62337
62338
62339
62340
62341
62342
62343
62344
62345
62346
62347
62348
62349
62350
62351
62352
62353
62354
62355
62356
62357
62358
62359
62360
62361
62362
62363
62364
62365
62366
62367
62368
62369
62370
62371
62372
62373
62374
62375
62376
62377
62378
62379
62380
62381
62382
62383
62384
62385
62386
62387
62388
62389
62390
62391
62392
62393
62394
62395
62396
62397
62398
62399
62400
62401
62402
62403
62404
62405
62406
62407
62408
62409
62410
62411
62412
62413
62414
62415
62416
62417
62418
62419
62420
62421
62422
62423
62424
62425
62426
62427
62428
62429
62430
62431
62432
62433
62434
62435
62436
62437
62438
62439
62440
62441
62442
62443
62444
62445
62446
62447
62448
62449
62450
62451
62452
62453
62454
62455
62456
62457
62458
62459
62460
62461
62462
62463
62464
62465
62466
62467
62468
62469
62470
62471
62472
62473
62474
62475
62476
62477
62478
62479
62480
62481
62482
62483
62484
62485
62486
62487
62488
62489
62490
62491
62492
62493
62494
62495
62496
62497
62498
62499
62500
62501
62502
62503
62504
62505
62506
62507
62508
62509
62510
62511
# File 'ext/notcurses/src/notcurses_wrap.c', line 62316

SWIGINTERN VALUE
_wrap_nctabbed_channels(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  uint64_t *arg2 = (uint64_t *) 0 ;
  uint64_t *arg3 = (uint64_t *) 0 ;
  uint64_t *arg4 = (uint64_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_channels", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  {
    arg2 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (uint64_t) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg2 = (uint64_t) NUM2DBL(argv[1]);
      } else {
        *arg2 = (uint64_t) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (uint64_t) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg3 = (uint64_t) NUM2DBL(argv[2]);
      } else {
        *arg3 = (uint64_t) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg4 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (uint64_t) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg4 = (uint64_t) NUM2DBL(argv[3]);
      } else {
        *arg4 = (uint64_t) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  nctabbed_channels(arg1,arg2,arg3,arg4);
  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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("hdrchan")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("selchan")), converted_value);
      free(arg3);
    }
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("sepchan")), converted_value);
      free(arg4);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_content_plane(*args) ⇒ Object

call-seq:

nctabbed_content_plane(nt) -> struct ncplane *

A module function.



61133
61134
61135
61136
61137
61138
61139
61140
61141
61142
61143
61144
61145
61146
61147
61148
61149
61150
61151
61152
61153
61154
61155
61156
61157
61158
61159
61160
61161
61162
61163
61164
61165
61166
61167
61168
61169
61170
61171
61172
61173
61174
61175
61176
61177
61178
61179
61180
61181
61182
# File 'ext/notcurses/src/notcurses_wrap.c', line 61133

SWIGINTERN VALUE
_wrap_nctabbed_content_plane(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_content_plane", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  result = (struct ncplane *)nctabbed_content_plane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_create(*args) ⇒ Object

call-seq:

nctabbed_create(n, opts) -> struct nctabbed *

A module function.



60675
60676
60677
60678
60679
60680
60681
60682
60683
60684
60685
60686
60687
60688
60689
60690
60691
60692
60693
60694
60695
60696
60697
60698
60699
60700
60701
60702
60703
60704
60705
60706
60707
60708
60709
60710
60711
60712
60713
60714
60715
60716
60717
60718
60719
60720
60721
60722
60723
60724
60725
60726
60727
60728
60729
60730
60731
60732
60733
60734
60735
60736
60737
60738
60739
60740
60741
60742
60743
60744
60745
60746
60747
60748
# File 'ext/notcurses/src/notcurses_wrap.c', line 60675

SWIGINTERN VALUE
_wrap_nctabbed_create(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nctabbed_options *arg2 = (nctabbed_options *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  struct nctabbed *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nctabbed_create", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nctabbed_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nctabbed_options const *","nctabbed_create", 2, argv[1] )); 
  }
  arg2 = (nctabbed_options *)(argp2);
  result = (struct nctabbed *)nctabbed_create(arg1,(struct nctabbed_options const *)arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct nctabbed *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nctabbed, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nctabbed_options const *");
    if (!ty) ty = SWIGTYPE_p_nctabbed_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_del(*args) ⇒ Object

call-seq:

nctabbed_del(nt, t) -> int

A module function.



61716
61717
61718
61719
61720
61721
61722
61723
61724
61725
61726
61727
61728
61729
61730
61731
61732
61733
61734
61735
61736
61737
61738
61739
61740
61741
61742
61743
61744
61745
61746
61747
61748
61749
61750
61751
61752
61753
61754
61755
61756
61757
61758
61759
61760
61761
61762
61763
61764
61765
61766
61767
61768
61769
61770
61771
61772
61773
61774
61775
61776
61777
# File 'ext/notcurses/src/notcurses_wrap.c', line 61716

SWIGINTERN VALUE
_wrap_nctabbed_del(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  struct nctab *arg2 = (struct nctab *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_del", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct nctab *","nctabbed_del", 2, argv[1] )); 
  }
  arg2 = (struct nctab *)(argp2);
  result = (int)nctabbed_del(arg1,arg2);
  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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), 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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_destroy(*args) ⇒ Object

call-seq:

nctabbed_destroy(nt)

A module function.



60760
60761
60762
60763
60764
60765
60766
60767
60768
60769
60770
60771
60772
60773
60774
60775
60776
60777
60778
60779
60780
60781
60782
60783
60784
60785
60786
60787
60788
60789
60790
60791
60792
60793
60794
60795
# File 'ext/notcurses/src/notcurses_wrap.c', line 60760

SWIGINTERN VALUE
_wrap_nctabbed_destroy(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_destroy", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  nctabbed_destroy(arg1);
  {
    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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_ensure_selected_header_visible(*args) ⇒ Object

call-seq:

nctabbed_ensure_selected_header_visible(nt)

A module function.



60854
60855
60856
60857
60858
60859
60860
60861
60862
60863
60864
60865
60866
60867
60868
60869
60870
60871
60872
60873
60874
60875
60876
60877
60878
60879
60880
60881
60882
60883
60884
60885
60886
60887
60888
60889
# File 'ext/notcurses/src/notcurses_wrap.c', line 60854

SWIGINTERN VALUE
_wrap_nctabbed_ensure_selected_header_visible(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_ensure_selected_header_visible", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  nctabbed_ensure_selected_header_visible(arg1);
  {
    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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_hdrchan(*args) ⇒ Object

call-seq:

nctabbed_hdrchan(nt) -> uint64_t

A module function.



62523
62524
62525
62526
62527
62528
62529
62530
62531
62532
62533
62534
62535
62536
62537
62538
62539
62540
62541
62542
62543
62544
62545
62546
62547
62548
62549
62550
62551
62552
62553
62554
62555
62556
62557
62558
62559
62560
# File 'ext/notcurses/src/notcurses_wrap.c', line 62523

SWIGINTERN VALUE
_wrap_nctabbed_hdrchan(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_hdrchan", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  result = (uint64_t)nctabbed_hdrchan(arg1);
  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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_leftmost(*args) ⇒ Object

call-seq:

nctabbed_leftmost(nt) -> struct nctab *

A module function.



60962
60963
60964
60965
60966
60967
60968
60969
60970
60971
60972
60973
60974
60975
60976
60977
60978
60979
60980
60981
60982
60983
60984
60985
60986
60987
60988
60989
60990
60991
60992
60993
60994
60995
60996
60997
60998
60999
61000
61001
61002
61003
61004
61005
61006
61007
61008
61009
61010
61011
# File 'ext/notcurses/src/notcurses_wrap.c', line 60962

SWIGINTERN VALUE
_wrap_nctabbed_leftmost(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct nctab *result = 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(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_leftmost", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  result = (struct nctab *)nctabbed_leftmost(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct nctab *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nctab, 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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_next(*args) ⇒ Object

call-seq:

nctabbed_next(nt) -> struct nctab *

A module function.



62109
62110
62111
62112
62113
62114
62115
62116
62117
62118
62119
62120
62121
62122
62123
62124
62125
62126
62127
62128
62129
62130
62131
62132
62133
62134
62135
62136
62137
62138
62139
62140
62141
62142
62143
62144
62145
62146
62147
62148
62149
62150
62151
62152
62153
62154
62155
62156
62157
62158
# File 'ext/notcurses/src/notcurses_wrap.c', line 62109

SWIGINTERN VALUE
_wrap_nctabbed_next(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct nctab *result = 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(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_next", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  result = (struct nctab *)nctabbed_next(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct nctab *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nctab, 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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_plane(*args) ⇒ Object

call-seq:

nctabbed_plane(nt) -> struct ncplane *

A module function.



61072
61073
61074
61075
61076
61077
61078
61079
61080
61081
61082
61083
61084
61085
61086
61087
61088
61089
61090
61091
61092
61093
61094
61095
61096
61097
61098
61099
61100
61101
61102
61103
61104
61105
61106
61107
61108
61109
61110
61111
61112
61113
61114
61115
61116
61117
61118
61119
61120
61121
# File 'ext/notcurses/src/notcurses_wrap.c', line 61072

SWIGINTERN VALUE
_wrap_nctabbed_plane(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_plane", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  result = (struct ncplane *)nctabbed_plane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_prev(*args) ⇒ Object

call-seq:

nctabbed_prev(nt) -> struct nctab *

A module function.



62170
62171
62172
62173
62174
62175
62176
62177
62178
62179
62180
62181
62182
62183
62184
62185
62186
62187
62188
62189
62190
62191
62192
62193
62194
62195
62196
62197
62198
62199
62200
62201
62202
62203
62204
62205
62206
62207
62208
62209
62210
62211
62212
62213
62214
62215
62216
62217
62218
62219
# File 'ext/notcurses/src/notcurses_wrap.c', line 62170

SWIGINTERN VALUE
_wrap_nctabbed_prev(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct nctab *result = 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(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_prev", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  result = (struct nctab *)nctabbed_prev(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct nctab *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nctab, 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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_redraw(*args) ⇒ Object

call-seq:

nctabbed_redraw(nt)

A module function.



60807
60808
60809
60810
60811
60812
60813
60814
60815
60816
60817
60818
60819
60820
60821
60822
60823
60824
60825
60826
60827
60828
60829
60830
60831
60832
60833
60834
60835
60836
60837
60838
60839
60840
60841
60842
# File 'ext/notcurses/src/notcurses_wrap.c', line 60807

SWIGINTERN VALUE
_wrap_nctabbed_redraw(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_redraw", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  nctabbed_redraw(arg1);
  {
    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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_rotate(*args) ⇒ Object

call-seq:

nctabbed_rotate(nt, amt)

A module function.



62054
62055
62056
62057
62058
62059
62060
62061
62062
62063
62064
62065
62066
62067
62068
62069
62070
62071
62072
62073
62074
62075
62076
62077
62078
62079
62080
62081
62082
62083
62084
62085
62086
62087
62088
62089
62090
62091
62092
62093
62094
62095
62096
62097
# File 'ext/notcurses/src/notcurses_wrap.c', line 62054

SWIGINTERN VALUE
_wrap_nctabbed_rotate(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_rotate", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","nctabbed_rotate", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  nctabbed_rotate(arg1,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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_selchan(*args) ⇒ Object

call-seq:

nctabbed_selchan(nt) -> uint64_t

A module function.



62572
62573
62574
62575
62576
62577
62578
62579
62580
62581
62582
62583
62584
62585
62586
62587
62588
62589
62590
62591
62592
62593
62594
62595
62596
62597
62598
62599
62600
62601
62602
62603
62604
62605
62606
62607
62608
62609
# File 'ext/notcurses/src/notcurses_wrap.c', line 62572

SWIGINTERN VALUE
_wrap_nctabbed_selchan(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_selchan", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  result = (uint64_t)nctabbed_selchan(arg1);
  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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_select(*args) ⇒ Object

call-seq:

nctabbed_select(nt, t) -> struct nctab *

A module function.



62231
62232
62233
62234
62235
62236
62237
62238
62239
62240
62241
62242
62243
62244
62245
62246
62247
62248
62249
62250
62251
62252
62253
62254
62255
62256
62257
62258
62259
62260
62261
62262
62263
62264
62265
62266
62267
62268
62269
62270
62271
62272
62273
62274
62275
62276
62277
62278
62279
62280
62281
62282
62283
62284
62285
62286
62287
62288
62289
62290
62291
62292
62293
62294
62295
62296
62297
62298
62299
62300
62301
62302
62303
62304
# File 'ext/notcurses/src/notcurses_wrap.c', line 62231

SWIGINTERN VALUE
_wrap_nctabbed_select(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  struct nctab *arg2 = (struct nctab *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  struct nctab *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_select", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nctab, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct nctab *","nctabbed_select", 2, argv[1] )); 
  }
  arg2 = (struct nctab *)(argp2);
  result = (struct nctab *)nctabbed_select(arg1,arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct nctab *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nctab, 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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), 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 nctab *");
    if (!ty) ty = SWIGTYPE_p_nctab;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_selected(*args) ⇒ Object

call-seq:

nctabbed_selected(nt) -> struct nctab *

A module function.



60901
60902
60903
60904
60905
60906
60907
60908
60909
60910
60911
60912
60913
60914
60915
60916
60917
60918
60919
60920
60921
60922
60923
60924
60925
60926
60927
60928
60929
60930
60931
60932
60933
60934
60935
60936
60937
60938
60939
60940
60941
60942
60943
60944
60945
60946
60947
60948
60949
60950
# File 'ext/notcurses/src/notcurses_wrap.c', line 60901

SWIGINTERN VALUE
_wrap_nctabbed_selected(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct nctab *result = 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(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_selected", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  result = (struct nctab *)nctabbed_selected(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct nctab *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nctab, 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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_separator(*args) ⇒ Object

call-seq:

nctabbed_separator(nt) -> char const *

A module function.



62670
62671
62672
62673
62674
62675
62676
62677
62678
62679
62680
62681
62682
62683
62684
62685
62686
62687
62688
62689
62690
62691
62692
62693
62694
62695
62696
62697
62698
62699
62700
62701
62702
62703
62704
62705
62706
62707
62708
62709
62710
62711
62712
62713
62714
62715
62716
62717
62718
62719
62720
# File 'ext/notcurses/src/notcurses_wrap.c', line 62670

SWIGINTERN VALUE
_wrap_nctabbed_separator(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 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(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_separator", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  result = (char *)nctabbed_separator(arg1);
  {
    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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_separator_width(*args) ⇒ Object

call-seq:

nctabbed_separator_width(nt) -> int

A module function.



62732
62733
62734
62735
62736
62737
62738
62739
62740
62741
62742
62743
62744
62745
62746
62747
62748
62749
62750
62751
62752
62753
62754
62755
62756
62757
62758
62759
62760
62761
62762
62763
62764
62765
62766
62767
62768
62769
# File 'ext/notcurses/src/notcurses_wrap.c', line 62732

SWIGINTERN VALUE
_wrap_nctabbed_separator_width(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_separator_width", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  result = (int)nctabbed_separator_width(arg1);
  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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_sepchan(*args) ⇒ Object

call-seq:

nctabbed_sepchan(nt) -> uint64_t

A module function.



62621
62622
62623
62624
62625
62626
62627
62628
62629
62630
62631
62632
62633
62634
62635
62636
62637
62638
62639
62640
62641
62642
62643
62644
62645
62646
62647
62648
62649
62650
62651
62652
62653
62654
62655
62656
62657
62658
# File 'ext/notcurses/src/notcurses_wrap.c', line 62621

SWIGINTERN VALUE
_wrap_nctabbed_sepchan(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint64_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_sepchan", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  result = (uint64_t)nctabbed_sepchan(arg1);
  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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_set_hdrchan(*args) ⇒ Object

call-seq:

nctabbed_set_hdrchan(nt, chan)

A module function.



62781
62782
62783
62784
62785
62786
62787
62788
62789
62790
62791
62792
62793
62794
62795
62796
62797
62798
62799
62800
62801
62802
62803
62804
62805
62806
62807
62808
62809
62810
62811
62812
62813
62814
62815
62816
62817
62818
62819
62820
62821
62822
62823
62824
# File 'ext/notcurses/src/notcurses_wrap.c', line 62781

SWIGINTERN VALUE
_wrap_nctabbed_set_hdrchan(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  uint64_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_set_hdrchan", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","nctabbed_set_hdrchan", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  nctabbed_set_hdrchan(arg1,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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_set_selchan(*args) ⇒ Object

call-seq:

nctabbed_set_selchan(nt, chan)

A module function.



62836
62837
62838
62839
62840
62841
62842
62843
62844
62845
62846
62847
62848
62849
62850
62851
62852
62853
62854
62855
62856
62857
62858
62859
62860
62861
62862
62863
62864
62865
62866
62867
62868
62869
62870
62871
62872
62873
62874
62875
62876
62877
62878
62879
# File 'ext/notcurses/src/notcurses_wrap.c', line 62836

SWIGINTERN VALUE
_wrap_nctabbed_set_selchan(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  uint64_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_set_selchan", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","nctabbed_set_selchan", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  nctabbed_set_selchan(arg1,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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_set_separator(*args) ⇒ Object

call-seq:

nctabbed_set_separator(nt, separator) -> int

A module function.



63175
63176
63177
63178
63179
63180
63181
63182
63183
63184
63185
63186
63187
63188
63189
63190
63191
63192
63193
63194
63195
63196
63197
63198
63199
63200
63201
63202
63203
63204
63205
63206
63207
63208
63209
63210
63211
63212
63213
63214
63215
63216
63217
63218
63219
63220
63221
63222
63223
63224
63225
63226
63227
63228
63229
63230
63231
63232
63233
63234
63235
63236
# File 'ext/notcurses/src/notcurses_wrap.c', line 63175

SWIGINTERN VALUE
_wrap_nctabbed_set_separator(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  char *arg2 = (char *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_set_separator", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","nctabbed_set_separator", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  result = (int)nctabbed_set_separator(arg1,(char const *)arg2);
  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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), 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("separator")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.nctabbed_set_sepchan(*args) ⇒ Object

call-seq:

nctabbed_set_sepchan(nt, chan)

A module function.



62891
62892
62893
62894
62895
62896
62897
62898
62899
62900
62901
62902
62903
62904
62905
62906
62907
62908
62909
62910
62911
62912
62913
62914
62915
62916
62917
62918
62919
62920
62921
62922
62923
62924
62925
62926
62927
62928
62929
62930
62931
62932
62933
62934
# File 'ext/notcurses/src/notcurses_wrap.c', line 62891

SWIGINTERN VALUE
_wrap_nctabbed_set_sepchan(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  uint64_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_set_sepchan", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","nctabbed_set_sepchan", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  nctabbed_set_sepchan(arg1,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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctabbed_tabcount(*args) ⇒ Object

call-seq:

nctabbed_tabcount(nt) -> int

A module function.



61023
61024
61025
61026
61027
61028
61029
61030
61031
61032
61033
61034
61035
61036
61037
61038
61039
61040
61041
61042
61043
61044
61045
61046
61047
61048
61049
61050
61051
61052
61053
61054
61055
61056
61057
61058
61059
61060
# File 'ext/notcurses/src/notcurses_wrap.c', line 61023

SWIGINTERN VALUE
_wrap_nctabbed_tabcount(int argc, VALUE *argv, VALUE self) {
  struct nctabbed *arg1 = (struct nctabbed *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctabbed, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctabbed *","nctabbed_tabcount", 1, argv[0] )); 
  }
  arg1 = (struct nctabbed *)(argp1);
  result = (int)nctabbed_tabcount(arg1);
  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 nctabbed *");
    if (!ty) ty = SWIGTYPE_p_nctabbed;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nt")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctablet_plane(*args) ⇒ Object

call-seq:

nctablet_plane(t) -> struct ncplane *

A module function.



49443
49444
49445
49446
49447
49448
49449
49450
49451
49452
49453
49454
49455
49456
49457
49458
49459
49460
49461
49462
49463
49464
49465
49466
49467
49468
49469
49470
49471
49472
49473
49474
49475
49476
49477
49478
49479
49480
49481
49482
49483
49484
49485
49486
49487
49488
49489
49490
49491
49492
# File 'ext/notcurses/src/notcurses_wrap.c', line 49443

SWIGINTERN VALUE
_wrap_nctablet_plane(int argc, VALUE *argv, VALUE self) {
  struct nctablet *arg1 = (struct nctablet *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_nctablet, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctablet *","nctablet_plane", 1, argv[0] )); 
  }
  arg1 = (struct nctablet *)(argp1);
  result = (struct ncplane *)nctablet_plane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct nctablet *");
    if (!ty) ty = SWIGTYPE_p_nctablet;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctablet_userptr(*args) ⇒ Object

call-seq:

nctablet_userptr(t) -> void *

A module function.



49382
49383
49384
49385
49386
49387
49388
49389
49390
49391
49392
49393
49394
49395
49396
49397
49398
49399
49400
49401
49402
49403
49404
49405
49406
49407
49408
49409
49410
49411
49412
49413
49414
49415
49416
49417
49418
49419
49420
49421
49422
49423
49424
49425
49426
49427
49428
49429
49430
49431
# File 'ext/notcurses/src/notcurses_wrap.c', line 49382

SWIGINTERN VALUE
_wrap_nctablet_userptr(int argc, VALUE *argv, VALUE self) {
  struct nctablet *arg1 = (struct nctablet *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *result = 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(argv[0], &argp1,SWIGTYPE_p_nctablet, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctablet *","nctablet_userptr", 1, argv[0] )); 
  }
  arg1 = (struct nctablet *)(argp1);
  result = (void *)nctablet_userptr(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("void *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_void, 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 nctablet *");
    if (!ty) ty = SWIGTYPE_p_nctablet;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("t")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctree_add(*args) ⇒ Object

call-seq:

nctree_add(n, spec, add) -> int

A module function.



56557
56558
56559
56560
56561
56562
56563
56564
56565
56566
56567
56568
56569
56570
56571
56572
56573
56574
56575
56576
56577
56578
56579
56580
56581
56582
56583
56584
56585
56586
56587
56588
56589
56590
56591
56592
56593
56594
56595
56596
56597
56598
56599
56600
56601
56602
56603
56604
56605
56606
56607
56608
56609
56610
56611
56612
56613
56614
56615
56616
56617
56618
56619
56620
56621
56622
56623
56624
56625
56626
56627
56628
56629
56630
56631
56632
56633
56634
56635
56636
56637
56638
56639
56640
56641
56642
56643
56644
56645
56646
56647
56648
56649
56650
56651
56652
56653
56654
56655
56656
56657
56658
56659
56660
56661
56662
56663
56664
56665
56666
56667
56668
56669
56670
56671
# File 'ext/notcurses/src/notcurses_wrap.c', line 56557

SWIGINTERN VALUE
_wrap_nctree_add(int argc, VALUE *argv, VALUE self) {
  struct nctree *arg1 = (struct nctree *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  struct nctree_item *arg3 = (struct nctree_item *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctree, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctree *","nctree_add", 1, argv[0] )); 
  }
  arg1 = (struct nctree *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int const));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int const)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int const) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int const", "double") == 0) {
        *arg2 = (unsigned int const) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int const) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_nctree_item, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "struct nctree_item const *","nctree_add", 3, argv[2] )); 
  }
  arg3 = (struct nctree_item *)(argp3);
  result = (int)nctree_add(arg1,(unsigned int const *)arg2,(struct nctree_item const *)arg3);
  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 nctree *");
    if (!ty) ty = SWIGTYPE_p_nctree;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int const)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int const", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("spec")), converted_value);
      free(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 nctree_item const *");
    if (!ty) ty = SWIGTYPE_p_nctree_item;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("add")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctree_create(*args) ⇒ Object

call-seq:

nctree_create(n, opts) -> struct nctree *

A module function.



55939
55940
55941
55942
55943
55944
55945
55946
55947
55948
55949
55950
55951
55952
55953
55954
55955
55956
55957
55958
55959
55960
55961
55962
55963
55964
55965
55966
55967
55968
55969
55970
55971
55972
55973
55974
55975
55976
55977
55978
55979
55980
55981
55982
55983
55984
55985
55986
55987
55988
55989
55990
55991
55992
55993
55994
55995
55996
55997
55998
55999
56000
56001
56002
56003
56004
56005
56006
56007
56008
56009
56010
56011
56012
# File 'ext/notcurses/src/notcurses_wrap.c', line 55939

SWIGINTERN VALUE
_wrap_nctree_create(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  nctree_options *arg2 = (nctree_options *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  struct nctree *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","nctree_create", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_nctree_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "nctree_options const *","nctree_create", 2, argv[1] )); 
  }
  arg2 = (nctree_options *)(argp2);
  result = (struct nctree *)nctree_create(arg1,(struct nctree_options const *)arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct nctree *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nctree, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("nctree_options const *");
    if (!ty) ty = SWIGTYPE_p_nctree_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctree_del(*args) ⇒ Object

call-seq:

nctree_del(n, spec) -> int

A module function.



56683
56684
56685
56686
56687
56688
56689
56690
56691
56692
56693
56694
56695
56696
56697
56698
56699
56700
56701
56702
56703
56704
56705
56706
56707
56708
56709
56710
56711
56712
56713
56714
56715
56716
56717
56718
56719
56720
56721
56722
56723
56724
56725
56726
56727
56728
56729
56730
56731
56732
56733
56734
56735
56736
56737
56738
56739
56740
56741
56742
56743
56744
56745
56746
56747
56748
56749
56750
56751
56752
56753
56754
56755
56756
56757
56758
56759
56760
56761
56762
56763
56764
56765
56766
56767
56768
56769
56770
56771
56772
56773
# File 'ext/notcurses/src/notcurses_wrap.c', line 56683

SWIGINTERN VALUE
_wrap_nctree_del(int argc, VALUE *argv, VALUE self) {
  struct nctree *arg1 = (struct nctree *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctree, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctree *","nctree_del", 1, argv[0] )); 
  }
  arg1 = (struct nctree *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int const));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int const)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int const) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int const", "double") == 0) {
        *arg2 = (unsigned int const) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int const) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (int)nctree_del(arg1,(unsigned int const *)arg2);
  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 nctree *");
    if (!ty) ty = SWIGTYPE_p_nctree;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int const)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int const", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("spec")), converted_value);
      free(arg2);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.nctree_destroy(*args) ⇒ Object

call-seq:

nctree_destroy(n)

A module function.



56785
56786
56787
56788
56789
56790
56791
56792
56793
56794
56795
56796
56797
56798
56799
56800
56801
56802
56803
56804
56805
56806
56807
56808
56809
56810
56811
56812
56813
56814
56815
56816
56817
56818
56819
56820
# File 'ext/notcurses/src/notcurses_wrap.c', line 56785

SWIGINTERN VALUE
_wrap_nctree_destroy(int argc, VALUE *argv, VALUE self) {
  struct nctree *arg1 = (struct nctree *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_nctree, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctree *","nctree_destroy", 1, argv[0] )); 
  }
  arg1 = (struct nctree *)(argp1);
  nctree_destroy(arg1);
  {
    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 nctree *");
    if (!ty) ty = SWIGTYPE_p_nctree;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctree_focused(*args) ⇒ Object

call-seq:

nctree_focused(n) -> void *

A module function.



56207
56208
56209
56210
56211
56212
56213
56214
56215
56216
56217
56218
56219
56220
56221
56222
56223
56224
56225
56226
56227
56228
56229
56230
56231
56232
56233
56234
56235
56236
56237
56238
56239
56240
56241
56242
56243
56244
56245
56246
56247
56248
56249
56250
56251
56252
56253
56254
56255
56256
# File 'ext/notcurses/src/notcurses_wrap.c', line 56207

SWIGINTERN VALUE
_wrap_nctree_focused(int argc, VALUE *argv, VALUE self) {
  struct nctree *arg1 = (struct nctree *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *result = 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(argv[0], &argp1,SWIGTYPE_p_nctree, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctree *","nctree_focused", 1, argv[0] )); 
  }
  arg1 = (struct nctree *)(argp1);
  result = (void *)nctree_focused(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("void *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_void, 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 nctree *");
    if (!ty) ty = SWIGTYPE_p_nctree;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctree_goto(*args) ⇒ Object

call-seq:

nctree_goto(n, spec, failspec) -> void *

A module function.



56390
56391
56392
56393
56394
56395
56396
56397
56398
56399
56400
56401
56402
56403
56404
56405
56406
56407
56408
56409
56410
56411
56412
56413
56414
56415
56416
56417
56418
56419
56420
56421
56422
56423
56424
56425
56426
56427
56428
56429
56430
56431
56432
56433
56434
56435
56436
56437
56438
56439
56440
56441
56442
56443
56444
56445
56446
56447
56448
56449
56450
56451
56452
56453
56454
56455
56456
56457
56458
56459
56460
56461
56462
56463
56464
56465
56466
56467
56468
56469
56470
56471
56472
56473
56474
56475
56476
56477
56478
56479
56480
56481
56482
56483
56484
56485
56486
56487
56488
56489
56490
56491
56492
56493
56494
56495
56496
56497
56498
56499
56500
56501
56502
56503
56504
56505
56506
56507
56508
56509
56510
56511
56512
56513
56514
56515
56516
56517
56518
56519
56520
56521
56522
56523
56524
56525
56526
56527
56528
56529
56530
56531
56532
56533
56534
56535
56536
56537
56538
56539
56540
56541
56542
56543
56544
56545
# File 'ext/notcurses/src/notcurses_wrap.c', line 56390

SWIGINTERN VALUE
_wrap_nctree_goto(int argc, VALUE *argv, VALUE self) {
  struct nctree *arg1 = (struct nctree *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  int *arg3 = (int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctree, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctree *","nctree_goto", 1, argv[0] )); 
  }
  arg1 = (struct nctree *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int const));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int const)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int const) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int const", "double") == 0) {
        *arg2 = (unsigned int const) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int const) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (int *) malloc(sizeof(int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg3 = (int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (void *)nctree_goto(arg1,(unsigned int const *)arg2,arg3);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("void *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_void, 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 nctree *");
    if (!ty) ty = SWIGTYPE_p_nctree;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int const)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int const", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("spec")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("failspec")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.nctree_next(*args) ⇒ Object

call-seq:

nctree_next(n) -> void *

A module function.



56268
56269
56270
56271
56272
56273
56274
56275
56276
56277
56278
56279
56280
56281
56282
56283
56284
56285
56286
56287
56288
56289
56290
56291
56292
56293
56294
56295
56296
56297
56298
56299
56300
56301
56302
56303
56304
56305
56306
56307
56308
56309
56310
56311
56312
56313
56314
56315
56316
56317
# File 'ext/notcurses/src/notcurses_wrap.c', line 56268

SWIGINTERN VALUE
_wrap_nctree_next(int argc, VALUE *argv, VALUE self) {
  struct nctree *arg1 = (struct nctree *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *result = 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(argv[0], &argp1,SWIGTYPE_p_nctree, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctree *","nctree_next", 1, argv[0] )); 
  }
  arg1 = (struct nctree *)(argp1);
  result = (void *)nctree_next(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("void *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_void, 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 nctree *");
    if (!ty) ty = SWIGTYPE_p_nctree;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctree_offer_input(*args) ⇒ Object

call-seq:

nctree_offer_input(n, ni) -> bool

A module function.



56134
56135
56136
56137
56138
56139
56140
56141
56142
56143
56144
56145
56146
56147
56148
56149
56150
56151
56152
56153
56154
56155
56156
56157
56158
56159
56160
56161
56162
56163
56164
56165
56166
56167
56168
56169
56170
56171
56172
56173
56174
56175
56176
56177
56178
56179
56180
56181
56182
56183
56184
56185
56186
56187
56188
56189
56190
56191
56192
56193
56194
56195
# File 'ext/notcurses/src/notcurses_wrap.c', line 56134

SWIGINTERN VALUE
_wrap_nctree_offer_input(int argc, VALUE *argv, VALUE self) {
  struct nctree *arg1 = (struct nctree *) 0 ;
  ncinput *arg2 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctree, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctree *","nctree_offer_input", 1, argv[0] )); 
  }
  arg1 = (struct nctree *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncinput const *","nctree_offer_input", 2, argv[1] )); 
  }
  arg2 = (ncinput *)(argp2);
  result = (bool)nctree_offer_input(arg1,(struct ncinput const *)arg2);
  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 nctree *");
    if (!ty) ty = SWIGTYPE_p_nctree;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncinput const *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ni")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctree_plane(*args) ⇒ Object

call-seq:

nctree_plane(n) -> struct ncplane *

A module function.



56024
56025
56026
56027
56028
56029
56030
56031
56032
56033
56034
56035
56036
56037
56038
56039
56040
56041
56042
56043
56044
56045
56046
56047
56048
56049
56050
56051
56052
56053
56054
56055
56056
56057
56058
56059
56060
56061
56062
56063
56064
56065
56066
56067
56068
56069
56070
56071
56072
56073
# File 'ext/notcurses/src/notcurses_wrap.c', line 56024

SWIGINTERN VALUE
_wrap_nctree_plane(int argc, VALUE *argv, VALUE self) {
  struct nctree *arg1 = (struct nctree *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_nctree, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctree *","nctree_plane", 1, argv[0] )); 
  }
  arg1 = (struct nctree *)(argp1);
  result = (struct ncplane *)nctree_plane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct nctree *");
    if (!ty) ty = SWIGTYPE_p_nctree;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctree_prev(*args) ⇒ Object

call-seq:

nctree_prev(n) -> void *

A module function.



56329
56330
56331
56332
56333
56334
56335
56336
56337
56338
56339
56340
56341
56342
56343
56344
56345
56346
56347
56348
56349
56350
56351
56352
56353
56354
56355
56356
56357
56358
56359
56360
56361
56362
56363
56364
56365
56366
56367
56368
56369
56370
56371
56372
56373
56374
56375
56376
56377
56378
# File 'ext/notcurses/src/notcurses_wrap.c', line 56329

SWIGINTERN VALUE
_wrap_nctree_prev(int argc, VALUE *argv, VALUE self) {
  struct nctree *arg1 = (struct nctree *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *result = 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(argv[0], &argp1,SWIGTYPE_p_nctree, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctree *","nctree_prev", 1, argv[0] )); 
  }
  arg1 = (struct nctree *)(argp1);
  result = (void *)nctree_prev(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("void *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_void, 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 nctree *");
    if (!ty) ty = SWIGTYPE_p_nctree;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.nctree_redraw(*args) ⇒ Object

call-seq:

nctree_redraw(n) -> int

A module function.



56085
56086
56087
56088
56089
56090
56091
56092
56093
56094
56095
56096
56097
56098
56099
56100
56101
56102
56103
56104
56105
56106
56107
56108
56109
56110
56111
56112
56113
56114
56115
56116
56117
56118
56119
56120
56121
56122
# File 'ext/notcurses/src/notcurses_wrap.c', line 56085

SWIGINTERN VALUE
_wrap_nctree_redraw(int argc, VALUE *argv, VALUE self) {
  struct nctree *arg1 = (struct nctree *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_nctree, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct nctree *","nctree_redraw", 1, argv[0] )); 
  }
  arg1 = (struct nctree *)(argp1);
  result = (int)nctree_redraw(arg1);
  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 nctree *");
    if (!ty) ty = SWIGTYPE_p_nctree;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncuplot_add_sample(*args) ⇒ Object

call-seq:

ncuplot_add_sample(n, x, y) -> int

A module function.



64389
64390
64391
64392
64393
64394
64395
64396
64397
64398
64399
64400
64401
64402
64403
64404
64405
64406
64407
64408
64409
64410
64411
64412
64413
64414
64415
64416
64417
64418
64419
64420
64421
64422
64423
64424
64425
64426
64427
64428
64429
64430
64431
64432
64433
64434
64435
64436
64437
64438
64439
64440
64441
64442
# File 'ext/notcurses/src/notcurses_wrap.c', line 64389

SWIGINTERN VALUE
_wrap_ncuplot_add_sample(int argc, VALUE *argv, VALUE self) {
  struct ncuplot *arg1 = (struct ncuplot *) 0 ;
  uint64_t arg2 ;
  uint64_t arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncuplot, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncuplot *","ncuplot_add_sample", 1, argv[0] )); 
  }
  arg1 = (struct ncuplot *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncuplot_add_sample", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncuplot_add_sample", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  result = (int)ncuplot_add_sample(arg1,arg2,arg3);
  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 ncuplot *");
    if (!ty) ty = SWIGTYPE_p_ncuplot;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncuplot_create(*args) ⇒ Object

call-seq:

ncuplot_create(n, opts, miny, maxy) -> struct ncuplot *

A module function.



64065
64066
64067
64068
64069
64070
64071
64072
64073
64074
64075
64076
64077
64078
64079
64080
64081
64082
64083
64084
64085
64086
64087
64088
64089
64090
64091
64092
64093
64094
64095
64096
64097
64098
64099
64100
64101
64102
64103
64104
64105
64106
64107
64108
64109
64110
64111
64112
64113
64114
64115
64116
64117
64118
64119
64120
64121
64122
64123
64124
64125
64126
64127
64128
64129
64130
64131
64132
64133
64134
64135
64136
64137
64138
64139
64140
64141
64142
64143
64144
64145
64146
64147
64148
64149
64150
64151
64152
64153
64154
# File 'ext/notcurses/src/notcurses_wrap.c', line 64065

SWIGINTERN VALUE
_wrap_ncuplot_create(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncplot_options *arg2 = (ncplot_options *) 0 ;
  uint64_t arg3 ;
  uint64_t arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  struct ncuplot *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncuplot_create", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplot_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncplot_options const *","ncuplot_create", 2, argv[1] )); 
  }
  arg2 = (ncplot_options *)(argp2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncuplot_create", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint64_t","ncuplot_create", 4, argv[3] ));
  } 
  arg4 = (uint64_t)(val4);
  result = (struct ncuplot *)ncuplot_create(arg1,(struct ncplot_options const *)arg2,arg3,arg4);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncuplot *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncuplot, 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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncplot_options const *");
    if (!ty) ty = SWIGTYPE_p_ncplot_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncuplot_destroy(*args) ⇒ Object

call-seq:

ncuplot_destroy(n)

A module function.



64869
64870
64871
64872
64873
64874
64875
64876
64877
64878
64879
64880
64881
64882
64883
64884
64885
64886
64887
64888
64889
64890
64891
64892
64893
64894
64895
64896
64897
64898
64899
64900
64901
64902
64903
64904
# File 'ext/notcurses/src/notcurses_wrap.c', line 64869

SWIGINTERN VALUE
_wrap_ncuplot_destroy(int argc, VALUE *argv, VALUE self) {
  struct ncuplot *arg1 = (struct ncuplot *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncuplot, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncuplot *","ncuplot_destroy", 1, argv[0] )); 
  }
  arg1 = (struct ncuplot *)(argp1);
  ncuplot_destroy(arg1);
  {
    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 ncuplot *");
    if (!ty) ty = SWIGTYPE_p_ncuplot;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncuplot_plane(*args) ⇒ Object

call-seq:

ncuplot_plane(n) -> struct ncplane *

A module function.



64267
64268
64269
64270
64271
64272
64273
64274
64275
64276
64277
64278
64279
64280
64281
64282
64283
64284
64285
64286
64287
64288
64289
64290
64291
64292
64293
64294
64295
64296
64297
64298
64299
64300
64301
64302
64303
64304
64305
64306
64307
64308
64309
64310
64311
64312
64313
64314
64315
64316
# File 'ext/notcurses/src/notcurses_wrap.c', line 64267

SWIGINTERN VALUE
_wrap_ncuplot_plane(int argc, VALUE *argv, VALUE self) {
  struct ncuplot *arg1 = (struct ncuplot *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_ncuplot, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncuplot *","ncuplot_plane", 1, argv[0] )); 
  }
  arg1 = (struct ncuplot *)(argp1);
  result = (struct ncplane *)ncuplot_plane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncuplot *");
    if (!ty) ty = SWIGTYPE_p_ncuplot;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncuplot_sample(*args) ⇒ Object

call-seq:

ncuplot_sample(n, x, y) -> int

A module function.



64649
64650
64651
64652
64653
64654
64655
64656
64657
64658
64659
64660
64661
64662
64663
64664
64665
64666
64667
64668
64669
64670
64671
64672
64673
64674
64675
64676
64677
64678
64679
64680
64681
64682
64683
64684
64685
64686
64687
64688
64689
64690
64691
64692
64693
64694
64695
64696
64697
64698
64699
64700
64701
64702
64703
64704
64705
64706
64707
64708
64709
64710
64711
64712
64713
64714
64715
64716
64717
64718
64719
64720
64721
64722
64723
64724
64725
64726
64727
64728
64729
64730
64731
64732
64733
64734
64735
64736
64737
64738
64739
64740
64741
64742
64743
64744
64745
64746
64747
# File 'ext/notcurses/src/notcurses_wrap.c', line 64649

SWIGINTERN VALUE
_wrap_ncuplot_sample(int argc, VALUE *argv, VALUE self) {
  struct ncuplot *arg1 = (struct ncuplot *) 0 ;
  uint64_t arg2 ;
  uint64_t *arg3 = (uint64_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncuplot, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncuplot const *","ncuplot_sample", 1, argv[0] )); 
  }
  arg1 = (struct ncuplot *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncuplot_sample", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  {
    arg3 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (uint64_t) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg3 = (uint64_t) NUM2DBL(argv[2]);
      } else {
        *arg3 = (uint64_t) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (int)ncuplot_sample((struct ncuplot const *)arg1,arg2,arg3);
  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 ncuplot const *");
    if (!ty) ty = SWIGTYPE_p_ncuplot;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("y")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncuplot_set_sample(*args) ⇒ Object

call-seq:

ncuplot_set_sample(n, x, y) -> int

A module function.



64519
64520
64521
64522
64523
64524
64525
64526
64527
64528
64529
64530
64531
64532
64533
64534
64535
64536
64537
64538
64539
64540
64541
64542
64543
64544
64545
64546
64547
64548
64549
64550
64551
64552
64553
64554
64555
64556
64557
64558
64559
64560
64561
64562
64563
64564
64565
64566
64567
64568
64569
64570
64571
64572
# File 'ext/notcurses/src/notcurses_wrap.c', line 64519

SWIGINTERN VALUE
_wrap_ncuplot_set_sample(int argc, VALUE *argv, VALUE self) {
  struct ncuplot *arg1 = (struct ncuplot *) 0 ;
  uint64_t arg2 ;
  uint64_t arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncuplot, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncuplot *","ncuplot_set_sample", 1, argv[0] )); 
  }
  arg1 = (struct ncuplot *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","ncuplot_set_sample", 2, argv[1] ));
  } 
  arg2 = (uint64_t)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","ncuplot_set_sample", 3, argv[2] ));
  } 
  arg3 = (uint64_t)(val3);
  result = (int)ncuplot_set_sample(arg1,arg2,arg3);
  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 ncuplot *");
    if (!ty) ty = SWIGTYPE_p_ncuplot;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_at_yx(*args) ⇒ Object

call-seq:

ncvisual_at_yx(n, y, x, pixel) -> int

A module function.



46119
46120
46121
46122
46123
46124
46125
46126
46127
46128
46129
46130
46131
46132
46133
46134
46135
46136
46137
46138
46139
46140
46141
46142
46143
46144
46145
46146
46147
46148
46149
46150
46151
46152
46153
46154
46155
46156
46157
46158
46159
46160
46161
46162
46163
46164
46165
46166
46167
46168
46169
46170
46171
46172
46173
46174
46175
46176
46177
46178
46179
46180
46181
46182
46183
46184
46185
46186
46187
46188
46189
46190
46191
46192
46193
46194
46195
46196
46197
46198
46199
46200
46201
46202
46203
46204
46205
46206
46207
46208
46209
46210
46211
46212
46213
46214
46215
46216
46217
46218
46219
46220
46221
46222
46223
46224
46225
# File 'ext/notcurses/src/notcurses_wrap.c', line 46119

SWIGINTERN VALUE
_wrap_ncvisual_at_yx(int argc, VALUE *argv, VALUE self) {
  struct ncvisual *arg1 = (struct ncvisual *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  uint32_t *arg4 = (uint32_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual const *","ncvisual_at_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncvisual *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncvisual_at_yx", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncvisual_at_yx", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  {
    arg4 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (uint32_t) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg4 = (uint32_t) NUM2DBL(argv[3]);
      } else {
        *arg4 = (uint32_t) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (int)ncvisual_at_yx((struct ncvisual const *)arg1,arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncvisual const *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("pixel")), converted_value);
      free(arg4);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_blit(*args) ⇒ Object

call-seq:

ncvisual_blit(nc, ncv, vopts) -> struct ncplane *

A module function.



46310
46311
46312
46313
46314
46315
46316
46317
46318
46319
46320
46321
46322
46323
46324
46325
46326
46327
46328
46329
46330
46331
46332
46333
46334
46335
46336
46337
46338
46339
46340
46341
46342
46343
46344
46345
46346
46347
46348
46349
46350
46351
46352
46353
46354
46355
46356
46357
46358
46359
46360
46361
46362
46363
46364
46365
46366
46367
46368
46369
46370
46371
46372
46373
46374
46375
46376
46377
46378
46379
46380
46381
46382
46383
46384
46385
46386
46387
46388
46389
46390
46391
46392
46393
46394
46395
46396
46397
46398
46399
46400
46401
46402
46403
46404
46405
46406
46407
# File 'ext/notcurses/src/notcurses_wrap.c', line 46310

SWIGINTERN VALUE
_wrap_ncvisual_blit(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  struct ncvisual *arg2 = (struct ncvisual *) 0 ;
  struct ncvisual_options *arg3 = (struct ncvisual_options *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  struct ncplane *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","ncvisual_blit", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncvisual *","ncvisual_blit", 2, argv[1] )); 
  }
  arg2 = (struct ncvisual *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_ncvisual_options, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "struct ncvisual_options const *","ncvisual_blit", 3, argv[2] )); 
  }
  arg3 = (struct ncvisual_options *)(argp3);
  result = (struct ncplane *)ncvisual_blit(arg1,arg2,(struct ncvisual_options const *)arg3);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), 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 ncvisual *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ncv")), 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 ncvisual_options const *");
    if (!ty) ty = SWIGTYPE_p_ncvisual_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vopts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_decode(*args) ⇒ Object

call-seq:

ncvisual_decode(nc) -> int

A module function.



45761
45762
45763
45764
45765
45766
45767
45768
45769
45770
45771
45772
45773
45774
45775
45776
45777
45778
45779
45780
45781
45782
45783
45784
45785
45786
45787
45788
45789
45790
45791
45792
45793
45794
45795
45796
45797
45798
# File 'ext/notcurses/src/notcurses_wrap.c', line 45761

SWIGINTERN VALUE
_wrap_ncvisual_decode(int argc, VALUE *argv, VALUE self) {
  struct ncvisual *arg1 = (struct ncvisual *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual *","ncvisual_decode", 1, argv[0] )); 
  }
  arg1 = (struct ncvisual *)(argp1);
  result = (int)ncvisual_decode(arg1);
  vresult = SWIG_From_int((int)(result));
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncvisual *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_decode_loop(*args) ⇒ Object

call-seq:

ncvisual_decode_loop(nc) -> int

A module function.



45810
45811
45812
45813
45814
45815
45816
45817
45818
45819
45820
45821
45822
45823
45824
45825
45826
45827
45828
45829
45830
45831
45832
45833
45834
45835
45836
45837
45838
45839
45840
45841
45842
45843
45844
45845
45846
45847
# File 'ext/notcurses/src/notcurses_wrap.c', line 45810

SWIGINTERN VALUE
_wrap_ncvisual_decode_loop(int argc, VALUE *argv, VALUE self) {
  struct ncvisual *arg1 = (struct ncvisual *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual *","ncvisual_decode_loop", 1, argv[0] )); 
  }
  arg1 = (struct ncvisual *)(argp1);
  result = (int)ncvisual_decode_loop(arg1);
  vresult = SWIG_From_int((int)(result));
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncvisual *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_destroy(*args) ⇒ Object

call-seq:

ncvisual_destroy(ncv)

A module function.



45714
45715
45716
45717
45718
45719
45720
45721
45722
45723
45724
45725
45726
45727
45728
45729
45730
45731
45732
45733
45734
45735
45736
45737
45738
45739
45740
45741
45742
45743
45744
45745
45746
45747
45748
45749
# File 'ext/notcurses/src/notcurses_wrap.c', line 45714

SWIGINTERN VALUE
_wrap_ncvisual_destroy(int argc, VALUE *argv, VALUE self) {
  struct ncvisual *arg1 = (struct ncvisual *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual *","ncvisual_destroy", 1, argv[0] )); 
  }
  arg1 = (struct ncvisual *)(argp1);
  ncvisual_destroy(arg1);
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncvisual *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ncv")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_from_bgra(*args) ⇒ Object

call-seq:

ncvisual_from_bgra(bgra, rows, rowstride, cols) -> struct ncvisual *

A module function.



41923
41924
41925
41926
41927
41928
41929
41930
41931
41932
41933
41934
41935
41936
41937
41938
41939
41940
41941
41942
41943
41944
41945
41946
41947
41948
41949
41950
41951
41952
41953
41954
41955
41956
41957
41958
41959
41960
41961
41962
41963
41964
41965
41966
41967
41968
41969
41970
41971
41972
41973
41974
41975
41976
41977
41978
41979
41980
41981
41982
41983
41984
41985
41986
41987
41988
41989
41990
41991
41992
41993
41994
# File 'ext/notcurses/src/notcurses_wrap.c', line 41923

SWIGINTERN VALUE
_wrap_ncvisual_from_bgra(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  struct ncvisual *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void const *","ncvisual_from_bgra", 1, argv[0] )); 
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncvisual_from_bgra", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncvisual_from_bgra", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncvisual_from_bgra", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  result = (struct ncvisual *)ncvisual_from_bgra((void const *)arg1,arg2,arg3,arg4);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncvisual *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncvisual, 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("void const *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("bgra")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_from_file(*args) ⇒ Object

call-seq:

ncvisual_from_file(file) -> struct ncvisual *

A module function.



41597
41598
41599
41600
41601
41602
41603
41604
41605
41606
41607
41608
41609
41610
41611
41612
41613
41614
41615
41616
41617
41618
41619
41620
41621
41622
41623
41624
41625
41626
41627
41628
41629
41630
41631
41632
41633
41634
41635
41636
41637
41638
41639
41640
41641
41642
41643
41644
41645
41646
# File 'ext/notcurses/src/notcurses_wrap.c', line 41597

SWIGINTERN VALUE
_wrap_ncvisual_from_file(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  struct ncvisual *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","ncvisual_from_file", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  result = (struct ncvisual *)ncvisual_from_file((char const *)arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncvisual *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncvisual, 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;
    }
    
    VALUE obj = arg1 ? rb_str_new2(arg1) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("file")), obj);
  }
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.ncvisual_from_palidx(*args) ⇒ Object

call-seq:

ncvisual_from_palidx(data, rows, rowstride, cols, palsize, pstride, palette) -> struct ncvisual *

A module function.



42006
42007
42008
42009
42010
42011
42012
42013
42014
42015
42016
42017
42018
42019
42020
42021
42022
42023
42024
42025
42026
42027
42028
42029
42030
42031
42032
42033
42034
42035
42036
42037
42038
42039
42040
42041
42042
42043
42044
42045
42046
42047
42048
42049
42050
42051
42052
42053
42054
42055
42056
42057
42058
42059
42060
42061
42062
42063
42064
42065
42066
42067
42068
42069
42070
42071
42072
42073
42074
42075
42076
42077
42078
42079
42080
42081
42082
42083
42084
42085
42086
42087
42088
42089
42090
42091
42092
42093
42094
42095
42096
42097
42098
42099
42100
42101
42102
42103
42104
42105
42106
42107
42108
42109
42110
42111
42112
42113
42114
42115
42116
42117
42118
42119
42120
42121
42122
42123
42124
42125
42126
42127
42128
42129
42130
42131
42132
42133
42134
42135
42136
42137
42138
42139
42140
42141
42142
42143
42144
42145
42146
# File 'ext/notcurses/src/notcurses_wrap.c', line 42006

SWIGINTERN VALUE
_wrap_ncvisual_from_palidx(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int arg5 ;
  int arg6 ;
  uint32_t *arg7 = (uint32_t *) 0 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  int val6 ;
  int ecode6 = 0 ;
  struct ncvisual *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 7) || (argc > 7)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void const *","ncvisual_from_palidx", 1, argv[0] )); 
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncvisual_from_palidx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncvisual_from_palidx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncvisual_from_palidx", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  ecode5 = SWIG_AsVal_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","ncvisual_from_palidx", 5, argv[4] ));
  } 
  arg5 = (int)(val5);
  ecode6 = SWIG_AsVal_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","ncvisual_from_palidx", 6, argv[5] ));
  } 
  arg6 = (int)(val6);
  {
    arg7 = (uint32_t *) malloc(sizeof(uint32_t const));
    if (arg7 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t const)) {
    case 1:
    case 2:
    case 4:
      *arg7 = (uint32_t const) NUM2INT(argv[6]);
      break;
    case 8:
      if (strcmp("uint32_t const", "double") == 0) {
        *arg7 = (uint32_t const) NUM2DBL(argv[6]);
      } else {
        *arg7 = (uint32_t const) NUM2LL(argv[6]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (struct ncvisual *)ncvisual_from_palidx((void const *)arg1,arg2,arg3,arg4,arg5,arg6,(unsigned int const *)arg7);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncvisual *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncvisual, 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("void const *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("data")), obj);
  }
  {
    if (arg7 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t const)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg7);
        break;
      case 8:
        if (strcmp("uint32_t const", "double") == 0) {
          converted_value = DBL2NUM(*arg7);
        } else {
          converted_value = LL2NUM(*arg7);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("palette")), converted_value);
      free(arg7);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_from_plane(*args) ⇒ Object

call-seq:

ncvisual_from_plane(n, blit, begy, begx, leny, lenx) -> struct ncvisual *

A module function.



42158
42159
42160
42161
42162
42163
42164
42165
42166
42167
42168
42169
42170
42171
42172
42173
42174
42175
42176
42177
42178
42179
42180
42181
42182
42183
42184
42185
42186
42187
42188
42189
42190
42191
42192
42193
42194
42195
42196
42197
42198
42199
42200
42201
42202
42203
42204
42205
42206
42207
42208
42209
42210
42211
42212
42213
42214
42215
42216
42217
42218
42219
42220
42221
42222
42223
42224
42225
42226
42227
42228
42229
42230
42231
42232
42233
42234
42235
42236
42237
42238
42239
42240
42241
42242
42243
42244
42245
42246
42247
# File 'ext/notcurses/src/notcurses_wrap.c', line 42158

SWIGINTERN VALUE
_wrap_ncvisual_from_plane(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  ncblitter_e arg2 ;
  int arg3 ;
  int arg4 ;
  unsigned int arg5 ;
  unsigned int arg6 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  unsigned int val5 ;
  int ecode5 = 0 ;
  unsigned int val6 ;
  int ecode6 = 0 ;
  struct ncvisual *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane const *","ncvisual_from_plane", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ncblitter_e","ncvisual_from_plane", 2, argv[1] ));
  } 
  arg2 = (ncblitter_e)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncvisual_from_plane", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncvisual_from_plane", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "unsigned int","ncvisual_from_plane", 5, argv[4] ));
  } 
  arg5 = (unsigned int)(val5);
  ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6);
  if (!SWIG_IsOK(ecode6)) {
    SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "unsigned int","ncvisual_from_plane", 6, argv[5] ));
  } 
  arg6 = (unsigned int)(val6);
  result = (struct ncvisual *)ncvisual_from_plane((struct ncplane const *)arg1,arg2,arg3,arg4,arg5,arg6);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncvisual *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncvisual, 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 ncplane const *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_from_rgb_loose(*args) ⇒ Object

call-seq:

ncvisual_from_rgb_loose(rgba, rows, rowstride, cols, alpha) -> struct ncvisual *

A module function.



41832
41833
41834
41835
41836
41837
41838
41839
41840
41841
41842
41843
41844
41845
41846
41847
41848
41849
41850
41851
41852
41853
41854
41855
41856
41857
41858
41859
41860
41861
41862
41863
41864
41865
41866
41867
41868
41869
41870
41871
41872
41873
41874
41875
41876
41877
41878
41879
41880
41881
41882
41883
41884
41885
41886
41887
41888
41889
41890
41891
41892
41893
41894
41895
41896
41897
41898
41899
41900
41901
41902
41903
41904
41905
41906
41907
41908
41909
41910
41911
# File 'ext/notcurses/src/notcurses_wrap.c', line 41832

SWIGINTERN VALUE
_wrap_ncvisual_from_rgb_loose(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int arg5 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  struct ncvisual *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void const *","ncvisual_from_rgb_loose", 1, argv[0] )); 
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncvisual_from_rgb_loose", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncvisual_from_rgb_loose", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncvisual_from_rgb_loose", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  ecode5 = SWIG_AsVal_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","ncvisual_from_rgb_loose", 5, argv[4] ));
  } 
  arg5 = (int)(val5);
  result = (struct ncvisual *)ncvisual_from_rgb_loose((void const *)arg1,arg2,arg3,arg4,arg5);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncvisual *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncvisual, 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("void const *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("rgba")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_from_rgb_packed(*args) ⇒ Object

call-seq:

ncvisual_from_rgb_packed(rgba, rows, rowstride, cols, alpha) -> struct ncvisual *

A module function.



41741
41742
41743
41744
41745
41746
41747
41748
41749
41750
41751
41752
41753
41754
41755
41756
41757
41758
41759
41760
41761
41762
41763
41764
41765
41766
41767
41768
41769
41770
41771
41772
41773
41774
41775
41776
41777
41778
41779
41780
41781
41782
41783
41784
41785
41786
41787
41788
41789
41790
41791
41792
41793
41794
41795
41796
41797
41798
41799
41800
41801
41802
41803
41804
41805
41806
41807
41808
41809
41810
41811
41812
41813
41814
41815
41816
41817
41818
41819
41820
# File 'ext/notcurses/src/notcurses_wrap.c', line 41741

SWIGINTERN VALUE
_wrap_ncvisual_from_rgb_packed(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int arg5 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int val5 ;
  int ecode5 = 0 ;
  struct ncvisual *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void const *","ncvisual_from_rgb_packed", 1, argv[0] )); 
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncvisual_from_rgb_packed", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncvisual_from_rgb_packed", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncvisual_from_rgb_packed", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  ecode5 = SWIG_AsVal_int(argv[4], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","ncvisual_from_rgb_packed", 5, argv[4] ));
  } 
  arg5 = (int)(val5);
  result = (struct ncvisual *)ncvisual_from_rgb_packed((void const *)arg1,arg2,arg3,arg4,arg5);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncvisual *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncvisual, 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("void const *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("rgba")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_from_rgba(*args) ⇒ Object

call-seq:

ncvisual_from_rgba(rgba, rows, rowstride, cols) -> struct ncvisual *

A module function.



41658
41659
41660
41661
41662
41663
41664
41665
41666
41667
41668
41669
41670
41671
41672
41673
41674
41675
41676
41677
41678
41679
41680
41681
41682
41683
41684
41685
41686
41687
41688
41689
41690
41691
41692
41693
41694
41695
41696
41697
41698
41699
41700
41701
41702
41703
41704
41705
41706
41707
41708
41709
41710
41711
41712
41713
41714
41715
41716
41717
41718
41719
41720
41721
41722
41723
41724
41725
41726
41727
41728
41729
# File 'ext/notcurses/src/notcurses_wrap.c', line 41658

SWIGINTERN VALUE
_wrap_ncvisual_from_rgba(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  struct ncvisual *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void const *","ncvisual_from_rgba", 1, argv[0] )); 
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncvisual_from_rgba", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncvisual_from_rgba", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","ncvisual_from_rgba", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  result = (struct ncvisual *)ncvisual_from_rgba((void const *)arg1,arg2,arg3,arg4);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncvisual *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncvisual, 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("void const *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("rgba")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_from_sixel(*args) ⇒ Object

call-seq:

ncvisual_from_sixel(s, leny, lenx) -> struct ncvisual *

A module function.



42259
42260
42261
42262
42263
42264
42265
42266
42267
42268
42269
42270
42271
42272
42273
42274
42275
42276
42277
42278
42279
42280
42281
42282
42283
42284
42285
42286
42287
42288
42289
42290
42291
42292
42293
42294
42295
42296
42297
42298
42299
42300
42301
42302
42303
42304
42305
42306
42307
42308
42309
42310
42311
42312
42313
42314
42315
42316
42317
42318
42319
42320
42321
42322
42323
42324
# File 'ext/notcurses/src/notcurses_wrap.c', line 42259

SWIGINTERN VALUE
_wrap_ncvisual_from_sixel(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  struct ncvisual *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","ncvisual_from_sixel", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncvisual_from_sixel", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncvisual_from_sixel", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  result = (struct ncvisual *)ncvisual_from_sixel((char const *)arg1,arg2,arg3);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncvisual *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncvisual, 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;
    }
    
    VALUE obj = arg1 ? rb_str_new2(arg1) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("s")), obj);
  }
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.ncvisual_geom(*args) ⇒ Object

call-seq:

ncvisual_geom(nc, n, vopts, geom) -> int

A module function.



45593
45594
45595
45596
45597
45598
45599
45600
45601
45602
45603
45604
45605
45606
45607
45608
45609
45610
45611
45612
45613
45614
45615
45616
45617
45618
45619
45620
45621
45622
45623
45624
45625
45626
45627
45628
45629
45630
45631
45632
45633
45634
45635
45636
45637
45638
45639
45640
45641
45642
45643
45644
45645
45646
45647
45648
45649
45650
45651
45652
45653
45654
45655
45656
45657
45658
45659
45660
45661
45662
45663
45664
45665
45666
45667
45668
45669
45670
45671
45672
45673
45674
45675
45676
45677
45678
45679
45680
45681
45682
45683
45684
45685
45686
45687
45688
45689
45690
45691
45692
45693
45694
45695
45696
45697
45698
45699
45700
45701
45702
# File 'ext/notcurses/src/notcurses_wrap.c', line 45593

SWIGINTERN VALUE
_wrap_ncvisual_geom(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  struct ncvisual *arg2 = (struct ncvisual *) 0 ;
  struct ncvisual_options *arg3 = (struct ncvisual_options *) 0 ;
  ncvgeom *arg4 = (ncvgeom *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","ncvisual_geom", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncvisual const *","ncvisual_geom", 2, argv[1] )); 
  }
  arg2 = (struct ncvisual *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_ncvisual_options, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "struct ncvisual_options const *","ncvisual_geom", 3, argv[2] )); 
  }
  arg3 = (struct ncvisual_options *)(argp3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_ncvgeom, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "ncvgeom *","ncvisual_geom", 4, argv[3] )); 
  }
  arg4 = (ncvgeom *)(argp4);
  result = (int)ncvisual_geom((struct notcurses const *)arg1,(struct ncvisual const *)arg2,(struct ncvisual_options const *)arg3,arg4);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), 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 ncvisual const *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 ncvisual_options const *");
    if (!ty) ty = SWIGTYPE_p_ncvisual_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vopts")), 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("ncvgeom *");
    if (!ty) ty = SWIGTYPE_p_ncvgeom;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("geom")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_media_defblitter(*args) ⇒ Object

call-seq:

ncvisual_media_defblitter(nc, scale) -> int

A module function.



46637
46638
46639
46640
46641
46642
46643
46644
46645
46646
46647
46648
46649
46650
46651
46652
46653
46654
46655
46656
46657
46658
46659
46660
46661
46662
46663
46664
46665
46666
46667
46668
46669
46670
46671
46672
46673
46674
46675
46676
46677
46678
46679
46680
46681
46682
# File 'ext/notcurses/src/notcurses_wrap.c', line 46637

SWIGINTERN VALUE
_wrap_ncvisual_media_defblitter(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  ncscale_e arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  ncblitter_e result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","ncvisual_media_defblitter", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ncscale_e","ncvisual_media_defblitter", 2, argv[1] ));
  } 
  arg2 = (ncscale_e)(val2);
  result = (ncblitter_e)ncvisual_media_defblitter((struct notcurses const *)arg1,arg2);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_polyfill_yx(*args) ⇒ Object

call-seq:

ncvisual_polyfill_yx(n, y, x, rgba) -> int

A module function.



46046
46047
46048
46049
46050
46051
46052
46053
46054
46055
46056
46057
46058
46059
46060
46061
46062
46063
46064
46065
46066
46067
46068
46069
46070
46071
46072
46073
46074
46075
46076
46077
46078
46079
46080
46081
46082
46083
46084
46085
46086
46087
46088
46089
46090
46091
46092
46093
46094
46095
46096
46097
46098
46099
46100
46101
46102
46103
46104
46105
46106
46107
# File 'ext/notcurses/src/notcurses_wrap.c', line 46046

SWIGINTERN VALUE
_wrap_ncvisual_polyfill_yx(int argc, VALUE *argv, VALUE self) {
  struct ncvisual *arg1 = (struct ncvisual *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  uint32_t arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual *","ncvisual_polyfill_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncvisual *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncvisual_polyfill_yx", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncvisual_polyfill_yx", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","ncvisual_polyfill_yx", 4, argv[3] ));
  } 
  arg4 = (uint32_t)(val4);
  result = (int)ncvisual_polyfill_yx(arg1,arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncvisual *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_resize(*args) ⇒ Object

call-seq:

ncvisual_resize(n, rows, cols) -> int

A module function.



45916
45917
45918
45919
45920
45921
45922
45923
45924
45925
45926
45927
45928
45929
45930
45931
45932
45933
45934
45935
45936
45937
45938
45939
45940
45941
45942
45943
45944
45945
45946
45947
45948
45949
45950
45951
45952
45953
45954
45955
45956
45957
45958
45959
45960
45961
45962
45963
45964
45965
45966
45967
45968
45969
# File 'ext/notcurses/src/notcurses_wrap.c', line 45916

SWIGINTERN VALUE
_wrap_ncvisual_resize(int argc, VALUE *argv, VALUE self) {
  struct ncvisual *arg1 = (struct ncvisual *) 0 ;
  int arg2 ;
  int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual *","ncvisual_resize", 1, argv[0] )); 
  }
  arg1 = (struct ncvisual *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncvisual_resize", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncvisual_resize", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  result = (int)ncvisual_resize(arg1,arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncvisual *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_resize_noninterpolative(*args) ⇒ Object

call-seq:

ncvisual_resize_noninterpolative(n, rows, cols) -> int

A module function.



45981
45982
45983
45984
45985
45986
45987
45988
45989
45990
45991
45992
45993
45994
45995
45996
45997
45998
45999
46000
46001
46002
46003
46004
46005
46006
46007
46008
46009
46010
46011
46012
46013
46014
46015
46016
46017
46018
46019
46020
46021
46022
46023
46024
46025
46026
46027
46028
46029
46030
46031
46032
46033
46034
# File 'ext/notcurses/src/notcurses_wrap.c', line 45981

SWIGINTERN VALUE
_wrap_ncvisual_resize_noninterpolative(int argc, VALUE *argv, VALUE self) {
  struct ncvisual *arg1 = (struct ncvisual *) 0 ;
  int arg2 ;
  int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual *","ncvisual_resize_noninterpolative", 1, argv[0] )); 
  }
  arg1 = (struct ncvisual *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ncvisual_resize_noninterpolative", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ncvisual_resize_noninterpolative", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  result = (int)ncvisual_resize_noninterpolative(arg1,arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncvisual *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_rotate(*args) ⇒ Object

call-seq:

ncvisual_rotate(n, rads) -> int

A module function.



45859
45860
45861
45862
45863
45864
45865
45866
45867
45868
45869
45870
45871
45872
45873
45874
45875
45876
45877
45878
45879
45880
45881
45882
45883
45884
45885
45886
45887
45888
45889
45890
45891
45892
45893
45894
45895
45896
45897
45898
45899
45900
45901
45902
45903
45904
# File 'ext/notcurses/src/notcurses_wrap.c', line 45859

SWIGINTERN VALUE
_wrap_ncvisual_rotate(int argc, VALUE *argv, VALUE self) {
  struct ncvisual *arg1 = (struct ncvisual *) 0 ;
  double arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual *","ncvisual_rotate", 1, argv[0] )); 
  }
  arg1 = (struct ncvisual *)(argp1);
  ecode2 = SWIG_AsVal_double(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","ncvisual_rotate", 2, argv[1] ));
  } 
  arg2 = (double)(val2);
  result = (int)ncvisual_rotate(arg1,arg2);
  vresult = SWIG_From_int((int)(result));
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncvisual *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_set_yx(*args) ⇒ Object

call-seq:

ncvisual_set_yx(n, y, x, pixel) -> int

A module function.



46237
46238
46239
46240
46241
46242
46243
46244
46245
46246
46247
46248
46249
46250
46251
46252
46253
46254
46255
46256
46257
46258
46259
46260
46261
46262
46263
46264
46265
46266
46267
46268
46269
46270
46271
46272
46273
46274
46275
46276
46277
46278
46279
46280
46281
46282
46283
46284
46285
46286
46287
46288
46289
46290
46291
46292
46293
46294
46295
46296
46297
46298
# File 'ext/notcurses/src/notcurses_wrap.c', line 46237

SWIGINTERN VALUE
_wrap_ncvisual_set_yx(int argc, VALUE *argv, VALUE self) {
  struct ncvisual *arg1 = (struct ncvisual *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  uint32_t arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual const *","ncvisual_set_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncvisual *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ncvisual_set_yx", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","ncvisual_set_yx", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","ncvisual_set_yx", 4, argv[3] ));
  } 
  arg4 = (uint32_t)(val4);
  result = (int)ncvisual_set_yx((struct ncvisual const *)arg1,arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncvisual const *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_simple_streamer(*args) ⇒ Object

call-seq:

ncvisual_simple_streamer(ncv, vopts, tspec, curry) -> int

A module function.



46694
46695
46696
46697
46698
46699
46700
46701
46702
46703
46704
46705
46706
46707
46708
46709
46710
46711
46712
46713
46714
46715
46716
46717
46718
46719
46720
46721
46722
46723
46724
46725
46726
46727
46728
46729
46730
46731
46732
46733
46734
46735
46736
46737
46738
46739
46740
46741
46742
46743
46744
46745
46746
46747
46748
46749
46750
46751
46752
46753
46754
46755
46756
46757
46758
46759
46760
46761
46762
46763
46764
46765
46766
46767
46768
46769
46770
46771
46772
46773
46774
46775
46776
46777
46778
46779
46780
46781
46782
46783
46784
46785
46786
46787
46788
46789
46790
46791
46792
46793
46794
46795
46796
46797
46798
46799
46800
46801
46802
46803
46804
46805
46806
46807
# File 'ext/notcurses/src/notcurses_wrap.c', line 46694

SWIGINTERN VALUE
_wrap_ncvisual_simple_streamer(int argc, VALUE *argv, VALUE self) {
  struct ncvisual *arg1 = (struct ncvisual *) 0 ;
  struct ncvisual_options *arg2 = (struct ncvisual_options *) 0 ;
  struct timespec *arg3 = (struct timespec *) 0 ;
  void *arg4 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int res4 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncvisual *","ncvisual_simple_streamer", 1, argv[0] )); 
  }
  arg1 = (struct ncvisual *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncvisual_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncvisual_options *","ncvisual_simple_streamer", 2, argv[1] )); 
  }
  arg2 = (struct ncvisual_options *)(argp2);
  {
    if (argv[2] == Qnil) {
      arg3 = NULL;
    } else if (rb_obj_is_kind_of(argv[2], rb_cTime)) {
      static struct timespec ts;
      VALUE seconds = rb_funcall(argv[2], rb_intern("to_f"), 0);
      ts.tv_sec = NUM2LONG(rb_funcall(seconds, rb_intern("floor"), 0));
      ts.tv_nsec = NUM2LONG(rb_funcall(rb_funcall(rb_funcall(seconds, rb_intern("-"), 1, seconds), rb_intern("*"), 1, INT2NUM(1000000000)), rb_intern("floor"), 0));
      arg3 = &ts;
    } else {
      SWIG_exception(SWIG_TypeError, "Expected Time or nil");
    }
  }
  res4 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg4), 0, 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","ncvisual_simple_streamer", 4, argv[3] )); 
  }
  result = (int)ncvisual_simple_streamer(arg1,arg2,(struct timespec const *)arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncvisual *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ncv")), 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 ncvisual_options *");
    if (!ty) ty = SWIGTYPE_p_ncvisual_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vopts")), 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 timespec const *");
    if (!ty) ty = SWIGTYPE_p_timespec;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("tspec")), 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("void *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("curry")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_stream(*args) ⇒ Object

call-seq:

ncvisual_stream(nc, ncv, timescale, streamer, vopts, curry) -> int

A module function.



46819
46820
46821
46822
46823
46824
46825
46826
46827
46828
46829
46830
46831
46832
46833
46834
46835
46836
46837
46838
46839
46840
46841
46842
46843
46844
46845
46846
46847
46848
46849
46850
46851
46852
46853
46854
46855
46856
46857
46858
46859
46860
46861
46862
46863
46864
46865
46866
46867
46868
46869
46870
46871
46872
46873
46874
46875
46876
46877
46878
46879
46880
46881
46882
46883
46884
46885
46886
46887
46888
46889
46890
46891
46892
46893
46894
46895
46896
46897
46898
46899
46900
46901
46902
46903
46904
46905
46906
46907
46908
46909
46910
46911
46912
46913
46914
46915
46916
46917
46918
46919
46920
46921
46922
46923
46924
46925
46926
46927
46928
46929
46930
46931
46932
46933
46934
46935
46936
46937
46938
46939
46940
46941
46942
46943
46944
46945
46946
46947
46948
46949
46950
46951
46952
46953
46954
46955
46956
46957
46958
# File 'ext/notcurses/src/notcurses_wrap.c', line 46819

SWIGINTERN VALUE
_wrap_ncvisual_stream(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  struct ncvisual *arg2 = (struct ncvisual *) 0 ;
  float arg3 ;
  ncstreamcb arg4 = (ncstreamcb) 0 ;
  struct ncvisual_options *arg5 = (struct ncvisual_options *) 0 ;
  void *arg6 = (void *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  int res6 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 6) || (argc > 6)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","ncvisual_stream", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncvisual *","ncvisual_stream", 2, argv[1] )); 
  }
  arg2 = (struct ncvisual *)(argp2);
  ecode3 = SWIG_AsVal_float(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "float","ncvisual_stream", 3, argv[2] ));
  } 
  arg3 = (float)(val3);
  {
    if (!NIL_P(argv[3])) {
      arg4 = (ncstreamcb)rb_proc_new((VALUE (*)(ANYARGS))call_ruby_proc, argv[3]);
    } else {
      arg4 = NULL;
    }
  }
  res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_ncvisual_options, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "struct ncvisual_options const *","ncvisual_stream", 5, argv[4] )); 
  }
  arg5 = (struct ncvisual_options *)(argp5);
  res6 = SWIG_ConvertPtr(argv[5],SWIG_as_voidptrptr(&arg6), 0, 0);
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "void *","ncvisual_stream", 6, argv[5] )); 
  }
  result = (int)ncvisual_stream(arg1,arg2,arg3,arg4,(struct ncvisual_options const *)arg5,arg6);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), 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 ncvisual *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ncv")), 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("ncstreamcb");
    if (!ty) ty = SWIGTYPE_p_f_p_struct_ncvisual_p_struct_ncvisual_options_p_q_const__struct_timespec_p_void__int;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("streamer")), 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 ncvisual_options const *");
    if (!ty) ty = SWIGTYPE_p_ncvisual_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vopts")), 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("void *");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg6, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("curry")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisual_subtitle_plane(*args) ⇒ Object

call-seq:

ncvisual_subtitle_plane(parent, ncv) -> struct ncplane *

A module function.



46552
46553
46554
46555
46556
46557
46558
46559
46560
46561
46562
46563
46564
46565
46566
46567
46568
46569
46570
46571
46572
46573
46574
46575
46576
46577
46578
46579
46580
46581
46582
46583
46584
46585
46586
46587
46588
46589
46590
46591
46592
46593
46594
46595
46596
46597
46598
46599
46600
46601
46602
46603
46604
46605
46606
46607
46608
46609
46610
46611
46612
46613
46614
46615
46616
46617
46618
46619
46620
46621
46622
46623
46624
46625
# File 'ext/notcurses/src/notcurses_wrap.c', line 46552

SWIGINTERN VALUE
_wrap_ncvisual_subtitle_plane(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  struct ncvisual *arg2 = (struct ncvisual *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  struct ncplane *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ncvisual_subtitle_plane", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncvisual const *","ncvisual_subtitle_plane", 2, argv[1] )); 
  }
  arg2 = (struct ncvisual *)(argp2);
  result = (struct ncplane *)ncvisual_subtitle_plane(arg1,(struct ncvisual const *)arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("parent")), 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 ncvisual const *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ncv")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncvisualplane_create(*args) ⇒ Object

call-seq:

ncvisualplane_create(nc, opts, ncv, vopts) -> struct ncplane *

A module function.



46419
46420
46421
46422
46423
46424
46425
46426
46427
46428
46429
46430
46431
46432
46433
46434
46435
46436
46437
46438
46439
46440
46441
46442
46443
46444
46445
46446
46447
46448
46449
46450
46451
46452
46453
46454
46455
46456
46457
46458
46459
46460
46461
46462
46463
46464
46465
46466
46467
46468
46469
46470
46471
46472
46473
46474
46475
46476
46477
46478
46479
46480
46481
46482
46483
46484
46485
46486
46487
46488
46489
46490
46491
46492
46493
46494
46495
46496
46497
46498
46499
46500
46501
46502
46503
46504
46505
46506
46507
46508
46509
46510
46511
46512
46513
46514
46515
46516
46517
46518
46519
46520
46521
46522
46523
46524
46525
46526
46527
46528
46529
46530
46531
46532
46533
46534
46535
46536
46537
46538
46539
46540
# File 'ext/notcurses/src/notcurses_wrap.c', line 46419

SWIGINTERN VALUE
_wrap_ncvisualplane_create(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  struct ncplane_options *arg2 = (struct ncplane_options *) 0 ;
  struct ncvisual *arg3 = (struct ncvisual *) 0 ;
  struct ncvisual_options *arg4 = (struct ncvisual_options *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  struct ncplane *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","ncvisualplane_create", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncplane_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ncplane_options const *","ncvisualplane_create", 2, argv[1] )); 
  }
  arg2 = (struct ncplane_options *)(argp2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_ncvisual, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "struct ncvisual *","ncvisualplane_create", 3, argv[2] )); 
  }
  arg3 = (struct ncvisual *)(argp3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_ncvisual_options, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "struct ncvisual_options *","ncvisualplane_create", 4, argv[3] )); 
  }
  arg4 = (struct ncvisual_options *)(argp4);
  result = (struct ncplane *)ncvisualplane_create(arg1,(struct ncplane_options const *)arg2,arg3,arg4);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct ncplane_options const *");
    if (!ty) ty = SWIGTYPE_p_ncplane_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), 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 ncvisual *");
    if (!ty) ty = SWIGTYPE_p_ncvisual;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ncv")), 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 ncvisual_options *");
    if (!ty) ty = SWIGTYPE_p_ncvisual_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg4, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("vopts")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.ncwcsrtombs(*args) ⇒ Object

call-seq:

ncwcsrtombs(src) -> char *

A module function.



31428
31429
31430
31431
31432
31433
31434
31435
31436
31437
31438
31439
31440
31441
31442
31443
31444
31445
31446
31447
31448
31449
31450
31451
31452
31453
31454
31455
31456
31457
31458
31459
31460
31461
31462
31463
31464
31465
31466
31467
31468
31469
31470
31471
31472
31473
31474
31475
31476
31477
31478
31479
31480
31481
31482
31483
31484
31485
31486
31487
31488
31489
31490
31491
31492
31493
31494
31495
31496
31497
31498
31499
# File 'ext/notcurses/src/notcurses_wrap.c', line 31428

SWIGINTERN VALUE
_wrap_ncwcsrtombs(int argc, VALUE *argv, VALUE self) {
  wchar_t *arg1 = (wchar_t *) 0 ;
  int res1 ;
  wchar_t *buf1 = 0 ;
  int alloc1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_AsWCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "wchar_t const *","ncwcsrtombs", 1, argv[0] ));
  }
  arg1 = (wchar_t *)(buf1);
  result = (char *)ncwcsrtombs((wchar_t const *)arg1);
  {
    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;
    }
    
    VALUE obj;
    if (arg1 == NULL) {
      obj = Qnil;
    } else {
      // Convert wchar_t* to UTF-8 encoded Ruby string
      setlocale(LC_ALL, "");
      size_t utf8_len = wcstombs(NULL, arg1, 0);  // Get required buffer size
      if (utf8_len != (size_t)-1) {
        char *utf8_str = (char*)malloc(utf8_len + 1);
        if (utf8_str) {
          wcstombs(utf8_str, arg1, utf8_len + 1);
          obj = rb_str_new2(utf8_str);
          rb_enc_associate(obj, rb_utf8_encoding());
          free(utf8_str);
        } else {
          obj = Qnil; // Handle allocation failure
        }
      } else {
        obj = Qnil; // Handle conversion failure
      }
    }
    
    rb_hash_aset(vresult, ID2SYM(rb_intern("src")), obj);
  }
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.notcurses_accountname(*args) ⇒ Object

call-seq:

notcurses_accountname -> char *

A module function.



67895
67896
67897
67898
67899
67900
67901
67902
67903
67904
67905
67906
67907
67908
67909
67910
67911
67912
67913
67914
67915
67916
67917
67918
67919
67920
67921
# File 'ext/notcurses/src/notcurses_wrap.c', line 67895

SWIGINTERN VALUE
_wrap_notcurses_accountname(int argc, VALUE *argv, VALUE self) {
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (char *)notcurses_accountname();
  {
    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;
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_align(*args) ⇒ Object

call-seq:

notcurses_align(availu, align, u) -> int

A module function.



30024
30025
30026
30027
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
# File 'ext/notcurses/src/notcurses_wrap.c', line 30024

SWIGINTERN VALUE
_wrap_notcurses_align(int argc, VALUE *argv, VALUE self) {
  int arg1 ;
  ncalign_e arg2 ;
  int arg3 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","notcurses_align", 1, argv[0] ));
  } 
  arg1 = (int)(val1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ncalign_e","notcurses_align", 2, argv[1] ));
  } 
  arg2 = (ncalign_e)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","notcurses_align", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  result = (int)notcurses_align(arg1,arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.notcurses_at_yx(*args) ⇒ Object

call-seq:

notcurses_at_yx(nc, yoff, xoff, stylemask, channels) -> char *

A module function.



17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
# File 'ext/notcurses/src/notcurses_wrap.c', line 17433

SWIGINTERN VALUE
_wrap_notcurses_at_yx(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  unsigned int arg2 ;
  unsigned int arg3 ;
  uint16_t *arg4 = (uint16_t *) 0 ;
  uint64_t *arg5 = (uint64_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_at_yx", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","notcurses_at_yx", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","notcurses_at_yx", 3, argv[2] ));
  } 
  arg3 = (unsigned int)(val3);
  {
    arg4 = (uint16_t *) malloc(sizeof(uint16_t));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint16_t)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (uint16_t) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("uint16_t", "double") == 0) {
        *arg4 = (uint16_t) NUM2DBL(argv[3]);
      } else {
        *arg4 = (uint16_t) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg5 = (uint64_t *) malloc(sizeof(uint64_t));
    if (arg5 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint64_t)) {
    case 1:
    case 2:
    case 4:
      *arg5 = (uint64_t) NUM2INT(argv[4]);
      break;
    case 8:
      if (strcmp("uint64_t", "double") == 0) {
        *arg5 = (uint64_t) NUM2DBL(argv[4]);
      } else {
        *arg5 = (uint64_t) NUM2LL(argv[4]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (char *)notcurses_at_yx(arg1,arg2,arg3,arg4,arg5);
  {
    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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint16_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("uint16_t", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("stylemask")), converted_value);
      free(arg4);
    }
  }
  {
    if (arg5 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint64_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg5);
        break;
      case 8:
        if (strcmp("uint64_t", "double") == 0) {
          converted_value = DBL2NUM(*arg5);
        } else {
          converted_value = LL2NUM(*arg5);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("channels")), converted_value);
      free(arg5);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_bottom(*args) ⇒ Object

call-seq:

notcurses_bottom(n) -> struct ncplane *

A module function.



13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
# File 'ext/notcurses/src/notcurses_wrap.c', line 13224

SWIGINTERN VALUE
_wrap_notcurses_bottom(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_bottom", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (struct ncplane *)notcurses_bottom(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_canbraille(*args) ⇒ Object

call-seq:

notcurses_canbraille(nc) -> bool

A module function.



22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
# File 'ext/notcurses/src/notcurses_wrap.c', line 22689

SWIGINTERN VALUE
_wrap_notcurses_canbraille(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_canbraille", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (bool)notcurses_canbraille((struct notcurses const *)arg1);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_canchangecolor(*args) ⇒ Object

call-seq:

notcurses_canchangecolor(nc) -> bool

A module function.



22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
# File 'ext/notcurses/src/notcurses_wrap.c', line 22297

SWIGINTERN VALUE
_wrap_notcurses_canchangecolor(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_canchangecolor", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (bool)notcurses_canchangecolor((struct notcurses const *)arg1);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_canfade(*args) ⇒ Object

call-seq:

notcurses_canfade(n) -> bool

A module function.



22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
# File 'ext/notcurses/src/notcurses_wrap.c', line 22346

SWIGINTERN VALUE
_wrap_notcurses_canfade(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_canfade", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (bool)notcurses_canfade((struct notcurses const *)arg1);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_canhalfblock(*args) ⇒ Object

call-seq:

notcurses_canhalfblock(nc) -> bool

A module function.



22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
# File 'ext/notcurses/src/notcurses_wrap.c', line 22542

SWIGINTERN VALUE
_wrap_notcurses_canhalfblock(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_canhalfblock", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (bool)notcurses_canhalfblock((struct notcurses const *)arg1);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_canopen_images(*args) ⇒ Object

call-seq:

notcurses_canopen_images(nc) -> bool

A module function.



22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
# File 'ext/notcurses/src/notcurses_wrap.c', line 22395

SWIGINTERN VALUE
_wrap_notcurses_canopen_images(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_canopen_images", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (bool)notcurses_canopen_images((struct notcurses const *)arg1);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_canopen_videos(*args) ⇒ Object

call-seq:

notcurses_canopen_videos(nc) -> bool

A module function.



22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
# File 'ext/notcurses/src/notcurses_wrap.c', line 22444

SWIGINTERN VALUE
_wrap_notcurses_canopen_videos(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_canopen_videos", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (bool)notcurses_canopen_videos((struct notcurses const *)arg1);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_canpixel(*args) ⇒ Object

call-seq:

notcurses_canpixel(nc) -> bool

A module function.



22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
# File 'ext/notcurses/src/notcurses_wrap.c', line 22738

SWIGINTERN VALUE
_wrap_notcurses_canpixel(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_canpixel", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (bool)notcurses_canpixel((struct notcurses const *)arg1);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_canquadrant(*args) ⇒ Object

call-seq:

notcurses_canquadrant(nc) -> bool

A module function.



22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
# File 'ext/notcurses/src/notcurses_wrap.c', line 22591

SWIGINTERN VALUE
_wrap_notcurses_canquadrant(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_canquadrant", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (bool)notcurses_canquadrant((struct notcurses const *)arg1);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_cansextant(*args) ⇒ Object

call-seq:

notcurses_cansextant(nc) -> bool

A module function.



22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
# File 'ext/notcurses/src/notcurses_wrap.c', line 22640

SWIGINTERN VALUE
_wrap_notcurses_cansextant(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_cansextant", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (bool)notcurses_cansextant((struct notcurses const *)arg1);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_cantruecolor(*args) ⇒ Object

call-seq:

notcurses_cantruecolor(nc) -> bool

A module function.



22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
# File 'ext/notcurses/src/notcurses_wrap.c', line 22248

SWIGINTERN VALUE
_wrap_notcurses_cantruecolor(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_cantruecolor", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (bool)notcurses_cantruecolor((struct notcurses const *)arg1);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_canutf8(*args) ⇒ Object

call-seq:

notcurses_canutf8(nc) -> bool

A module function.



22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
# File 'ext/notcurses/src/notcurses_wrap.c', line 22493

SWIGINTERN VALUE
_wrap_notcurses_canutf8(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_canutf8", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (bool)notcurses_canutf8((struct notcurses const *)arg1);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_capabilities(*args) ⇒ Object

call-seq:

notcurses_capabilities(n) -> Nccapabilities

A module function.



22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
# File 'ext/notcurses/src/notcurses_wrap.c', line 22089

SWIGINTERN VALUE
_wrap_notcurses_capabilities(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  nccapabilities *result = 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(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_capabilities", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (nccapabilities *)notcurses_capabilities((struct notcurses const *)arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("nccapabilities const *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_nccapabilities, 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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_check_pixel_support(*args) ⇒ Object

call-seq:

notcurses_check_pixel_support(nc) -> int

A module function.



22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
# File 'ext/notcurses/src/notcurses_wrap.c', line 22150

SWIGINTERN VALUE
_wrap_notcurses_check_pixel_support(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ncpixelimpl_e result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_check_pixel_support", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (ncpixelimpl_e)notcurses_check_pixel_support((struct notcurses const *)arg1);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_core_init(*args) ⇒ Object

call-seq:

notcurses_core_init(opts, fp) -> struct notcurses *

A module function.



12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
# File 'ext/notcurses/src/notcurses_wrap.c', line 12680

SWIGINTERN VALUE
_wrap_notcurses_core_init(int argc, VALUE *argv, VALUE self) {
  notcurses_options *arg1 = (notcurses_options *) 0 ;
  FILE *arg2 = (FILE *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct notcurses *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses_options, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "notcurses_options const *","notcurses_core_init", 1, argv[0] )); 
  }
  arg1 = (notcurses_options *)(argp1);
  {
    if (argv[1] == Qnil) {
      arg2 = NULL;
    } else if (rb_respond_to(argv[1], rb_intern("fileno"))) {
      int fd = NUM2INT(rb_funcall(argv[1], rb_intern("fileno"), 0));
      const char* mode = get_file_mode(fd);
      arg2 = fdopen(dup(fd), mode);
      if (!arg2) {
        rb_raise(rb_eIOError, "Unable to get FILE* from Ruby IO object");
      }
    } else {
      SWIG_exception(SWIG_TypeError, "Expected IO object or nil");
    }
  }
  result = (struct notcurses *)notcurses_core_init((struct notcurses_options const *)arg1,arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct notcurses *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_notcurses, 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("notcurses_options const *");
    if (!ty) ty = SWIGTYPE_p_notcurses_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), 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("FILE *");
    if (!ty) ty = SWIGTYPE_p_FILE;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("fp")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_cursor_disable(*args) ⇒ Object

call-seq:

notcurses_cursor_disable(nc) -> int

A module function.



50141
50142
50143
50144
50145
50146
50147
50148
50149
50150
50151
50152
50153
50154
50155
50156
50157
50158
50159
50160
50161
50162
50163
50164
50165
50166
50167
50168
50169
50170
50171
50172
50173
50174
50175
50176
50177
50178
# File 'ext/notcurses/src/notcurses_wrap.c', line 50141

SWIGINTERN VALUE
_wrap_notcurses_cursor_disable(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_cursor_disable", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (int)notcurses_cursor_disable(arg1);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_cursor_enable(*args) ⇒ Object

call-seq:

notcurses_cursor_enable(nc, y, x) -> int

A module function.



50076
50077
50078
50079
50080
50081
50082
50083
50084
50085
50086
50087
50088
50089
50090
50091
50092
50093
50094
50095
50096
50097
50098
50099
50100
50101
50102
50103
50104
50105
50106
50107
50108
50109
50110
50111
50112
50113
50114
50115
50116
50117
50118
50119
50120
50121
50122
50123
50124
50125
50126
50127
50128
50129
# File 'ext/notcurses/src/notcurses_wrap.c', line 50076

SWIGINTERN VALUE
_wrap_notcurses_cursor_enable(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  int arg2 ;
  int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_cursor_enable", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","notcurses_cursor_enable", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","notcurses_cursor_enable", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  result = (int)notcurses_cursor_enable(arg1,arg2,arg3);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_cursor_yx(*args) ⇒ Object

call-seq:

notcurses_cursor_yx(nc, y, x) -> int

A module function.



50190
50191
50192
50193
50194
50195
50196
50197
50198
50199
50200
50201
50202
50203
50204
50205
50206
50207
50208
50209
50210
50211
50212
50213
50214
50215
50216
50217
50218
50219
50220
50221
50222
50223
50224
50225
50226
50227
50228
50229
50230
50231
50232
50233
50234
50235
50236
50237
50238
50239
50240
50241
50242
50243
50244
50245
50246
50247
50248
50249
50250
50251
50252
50253
50254
50255
50256
50257
50258
50259
50260
50261
50262
50263
50264
50265
50266
50267
50268
50269
50270
50271
50272
50273
50274
50275
50276
50277
50278
50279
50280
50281
50282
50283
50284
50285
50286
50287
50288
50289
50290
50291
50292
50293
50294
50295
50296
50297
50298
50299
50300
50301
50302
50303
50304
50305
50306
50307
50308
50309
50310
50311
50312
50313
50314
50315
50316
50317
50318
50319
50320
50321
50322
50323
50324
50325
50326
50327
50328
50329
50330
50331
50332
50333
# File 'ext/notcurses/src/notcurses_wrap.c', line 50190

SWIGINTERN VALUE
_wrap_notcurses_cursor_yx(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  int *arg2 = (int *) 0 ;
  int *arg3 = (int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_cursor_yx", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  {
    arg2 = (int *) malloc(sizeof(int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg2 = (int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (int *) malloc(sizeof(int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg3 = (int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (int)notcurses_cursor_yx((struct notcurses const *)arg1,arg2,arg3);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("y")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("x")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_debug(*args) ⇒ Object

call-seq:

notcurses_debug(nc, debugfp)

A module function.



68009
68010
68011
68012
68013
68014
68015
68016
68017
68018
68019
68020
68021
68022
68023
68024
68025
68026
68027
68028
68029
68030
68031
68032
68033
68034
68035
68036
68037
68038
68039
68040
68041
68042
68043
68044
68045
68046
68047
68048
68049
68050
68051
68052
68053
68054
68055
68056
68057
68058
68059
68060
68061
68062
68063
68064
68065
68066
68067
68068
68069
68070
68071
68072
68073
68074
68075
68076
# File 'ext/notcurses/src/notcurses_wrap.c', line 68009

SWIGINTERN VALUE
_wrap_notcurses_debug(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  FILE *arg2 = (FILE *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_debug", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  {
    if (argv[1] == Qnil) {
      arg2 = NULL;
    } else if (rb_respond_to(argv[1], rb_intern("fileno"))) {
      int fd = NUM2INT(rb_funcall(argv[1], rb_intern("fileno"), 0));
      const char* mode = get_file_mode(fd);
      arg2 = fdopen(dup(fd), mode);
      if (!arg2) {
        rb_raise(rb_eIOError, "Unable to get FILE* from Ruby IO object");
      }
    } else {
      SWIG_exception(SWIG_TypeError, "Expected IO object or nil");
    }
  }
  notcurses_debug((struct notcurses const *)arg1,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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), 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("FILE *");
    if (!ty) ty = SWIGTYPE_p_FILE;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("debugfp")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_default_background(*args) ⇒ Object

call-seq:

notcurses_default_background(nc, bg) -> int

A module function.



49974
49975
49976
49977
49978
49979
49980
49981
49982
49983
49984
49985
49986
49987
49988
49989
49990
49991
49992
49993
49994
49995
49996
49997
49998
49999
50000
50001
50002
50003
50004
50005
50006
50007
50008
50009
50010
50011
50012
50013
50014
50015
50016
50017
50018
50019
50020
50021
50022
50023
50024
50025
50026
50027
50028
50029
50030
50031
50032
50033
50034
50035
50036
50037
50038
50039
50040
50041
50042
50043
50044
50045
50046
50047
50048
50049
50050
50051
50052
50053
50054
50055
50056
50057
50058
50059
50060
50061
50062
50063
50064
# File 'ext/notcurses/src/notcurses_wrap.c', line 49974

SWIGINTERN VALUE
_wrap_notcurses_default_background(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  uint32_t *arg2 = (uint32_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_default_background", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  {
    arg2 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (uint32_t) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg2 = (uint32_t) NUM2DBL(argv[1]);
      } else {
        *arg2 = (uint32_t) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (int)notcurses_default_background((struct notcurses const *)arg1,arg2);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("bg")), converted_value);
      free(arg2);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_default_foreground(*args) ⇒ Object

call-seq:

notcurses_default_foreground(nc, fg) -> int

A module function.



49872
49873
49874
49875
49876
49877
49878
49879
49880
49881
49882
49883
49884
49885
49886
49887
49888
49889
49890
49891
49892
49893
49894
49895
49896
49897
49898
49899
49900
49901
49902
49903
49904
49905
49906
49907
49908
49909
49910
49911
49912
49913
49914
49915
49916
49917
49918
49919
49920
49921
49922
49923
49924
49925
49926
49927
49928
49929
49930
49931
49932
49933
49934
49935
49936
49937
49938
49939
49940
49941
49942
49943
49944
49945
49946
49947
49948
49949
49950
49951
49952
49953
49954
49955
49956
49957
49958
49959
49960
49961
49962
# File 'ext/notcurses/src/notcurses_wrap.c', line 49872

SWIGINTERN VALUE
_wrap_notcurses_default_foreground(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  uint32_t *arg2 = (uint32_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_default_foreground", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  {
    arg2 = (uint32_t *) malloc(sizeof(uint32_t));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (uint32_t) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("uint32_t", "double") == 0) {
        *arg2 = (uint32_t) NUM2DBL(argv[1]);
      } else {
        *arg2 = (uint32_t) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (int)notcurses_default_foreground((struct notcurses const *)arg1,arg2);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("uint32_t", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("fg")), converted_value);
      free(arg2);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_detected_terminal(*args) ⇒ Object

call-seq:

notcurses_detected_terminal(nc) -> char *

A module function.



22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
# File 'ext/notcurses/src/notcurses_wrap.c', line 22027

SWIGINTERN VALUE
_wrap_notcurses_detected_terminal(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 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(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_detected_terminal", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (char *)notcurses_detected_terminal((struct notcurses const *)arg1);
  {
    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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_drop_planes(*args) ⇒ Object

call-seq:

notcurses_drop_planes(nc)

A module function.



13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
# File 'ext/notcurses/src/notcurses_wrap.c', line 13623

SWIGINTERN VALUE
_wrap_notcurses_drop_planes(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 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(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_drop_planes", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  notcurses_drop_planes(arg1);
  {
    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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_enter_alternate_screen(*args) ⇒ Object

call-seq:

notcurses_enter_alternate_screen(nc) -> int

A module function.



12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
# File 'ext/notcurses/src/notcurses_wrap.c', line 12821

SWIGINTERN VALUE
_wrap_notcurses_enter_alternate_screen(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_enter_alternate_screen", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (int)notcurses_enter_alternate_screen(arg1);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_get(*args) ⇒ Object

call-seq:

notcurses_get(n, ts, ni) -> uint32_t

A module function.



15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
# File 'ext/notcurses/src/notcurses_wrap.c', line 15388

SWIGINTERN VALUE
_wrap_notcurses_get(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  struct timespec *arg2 = (struct timespec *) 0 ;
  ncinput *arg3 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_get", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  {
    if (argv[1] == Qnil) {
      arg2 = NULL;
    } else if (rb_obj_is_kind_of(argv[1], rb_cTime)) {
      static struct timespec ts;
      VALUE seconds = rb_funcall(argv[1], rb_intern("to_f"), 0);
      ts.tv_sec = NUM2LONG(rb_funcall(seconds, rb_intern("floor"), 0));
      ts.tv_nsec = NUM2LONG(rb_funcall(rb_funcall(rb_funcall(seconds, rb_intern("-"), 1, seconds), rb_intern("*"), 1, INT2NUM(1000000000)), rb_intern("floor"), 0));
      arg2 = &ts;
    } else {
      SWIG_exception(SWIG_TypeError, "Expected Time or nil");
    }
  }
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "ncinput *","notcurses_get", 3, argv[2] )); 
  }
  arg3 = (ncinput *)(argp3);
  result = (uint32_t)notcurses_get(arg1,(struct timespec const *)arg2,arg3);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 timespec const *");
    if (!ty) ty = SWIGTYPE_p_timespec;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ts")), 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("ncinput *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ni")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_get_blocking(*args) ⇒ Object

call-seq:

notcurses_get_blocking(n, ni) -> uint32_t

A module function.



15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
# File 'ext/notcurses/src/notcurses_wrap.c', line 15724

SWIGINTERN VALUE
_wrap_notcurses_get_blocking(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  ncinput *arg2 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_get_blocking", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncinput *","notcurses_get_blocking", 2, argv[1] )); 
  }
  arg2 = (ncinput *)(argp2);
  result = (uint32_t)notcurses_get_blocking(arg1,arg2);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncinput *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ni")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_get_nblock(*args) ⇒ Object

call-seq:

notcurses_get_nblock(n, ni) -> uint32_t

A module function.



15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
# File 'ext/notcurses/src/notcurses_wrap.c', line 15651

SWIGINTERN VALUE
_wrap_notcurses_get_nblock(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  ncinput *arg2 = (ncinput *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  uint32_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_get_nblock", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncinput *","notcurses_get_nblock", 2, argv[1] )); 
  }
  arg2 = (ncinput *)(argp2);
  result = (uint32_t)notcurses_get_nblock(arg1,arg2);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("ncinput *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ni")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_getvec(*args) ⇒ Object

call-seq:

notcurses_getvec(n, ts, ni, vcount) -> int

A module function.



15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
# File 'ext/notcurses/src/notcurses_wrap.c', line 15491

SWIGINTERN VALUE
_wrap_notcurses_getvec(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  struct timespec *arg2 = (struct timespec *) 0 ;
  ncinput *arg3 = (ncinput *) 0 ;
  int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_getvec", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  {
    if (argv[1] == Qnil) {
      arg2 = NULL;
    } else if (rb_obj_is_kind_of(argv[1], rb_cTime)) {
      static struct timespec ts;
      VALUE seconds = rb_funcall(argv[1], rb_intern("to_f"), 0);
      ts.tv_sec = NUM2LONG(rb_funcall(seconds, rb_intern("floor"), 0));
      ts.tv_nsec = NUM2LONG(rb_funcall(rb_funcall(rb_funcall(seconds, rb_intern("-"), 1, seconds), rb_intern("*"), 1, INT2NUM(1000000000)), rb_intern("floor"), 0));
      arg2 = &ts;
    } else {
      SWIG_exception(SWIG_TypeError, "Expected Time or nil");
    }
  }
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_ncinput, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "ncinput *","notcurses_getvec", 3, argv[2] )); 
  }
  arg3 = (ncinput *)(argp3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","notcurses_getvec", 4, argv[3] ));
  } 
  arg4 = (int)(val4);
  result = (int)notcurses_getvec(arg1,(struct timespec const *)arg2,arg3,arg4);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 timespec const *");
    if (!ty) ty = SWIGTYPE_p_timespec;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ts")), 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("ncinput *");
    if (!ty) ty = SWIGTYPE_p_ncinput;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("ni")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_hostname(*args) ⇒ Object

call-seq:

notcurses_hostname -> char *

A module function.



67933
67934
67935
67936
67937
67938
67939
67940
67941
67942
67943
67944
67945
67946
67947
67948
67949
67950
67951
67952
67953
67954
67955
67956
67957
67958
67959
# File 'ext/notcurses/src/notcurses_wrap.c', line 67933

SWIGINTERN VALUE
_wrap_notcurses_hostname(int argc, VALUE *argv, VALUE self) {
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (char *)notcurses_hostname();
  {
    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;
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_init(*args) ⇒ Object

call-seq:

notcurses_init(opts, fp) -> struct notcurses *

A module function.



12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
# File 'ext/notcurses/src/notcurses_wrap.c', line 12588

SWIGINTERN VALUE
_wrap_notcurses_init(int argc, VALUE *argv, VALUE self) {
  notcurses_options *arg1 = (notcurses_options *) 0 ;
  FILE *arg2 = (FILE *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct notcurses *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses_options, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "notcurses_options const *","notcurses_init", 1, argv[0] )); 
  }
  arg1 = (notcurses_options *)(argp1);
  {
    if (argv[1] == Qnil) {
      arg2 = NULL;
    } else if (rb_respond_to(argv[1], rb_intern("fileno"))) {
      int fd = NUM2INT(rb_funcall(argv[1], rb_intern("fileno"), 0));
      const char* mode = get_file_mode(fd);
      arg2 = fdopen(dup(fd), mode);
      if (!arg2) {
        rb_raise(rb_eIOError, "Unable to get FILE* from Ruby IO object");
      }
    } else {
      SWIG_exception(SWIG_TypeError, "Expected IO object or nil");
    }
  }
  result = (struct notcurses *)notcurses_init((struct notcurses_options const *)arg1,arg2);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct notcurses *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_notcurses, 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("notcurses_options const *");
    if (!ty) ty = SWIGTYPE_p_notcurses_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), 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("FILE *");
    if (!ty) ty = SWIGTYPE_p_FILE;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("fp")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_inputready_fd(*args) ⇒ Object

call-seq:

notcurses_inputready_fd(n) -> int

A module function.



15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
# File 'ext/notcurses/src/notcurses_wrap.c', line 15602

SWIGINTERN VALUE
_wrap_notcurses_inputready_fd(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_inputready_fd", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (int)notcurses_inputready_fd(arg1);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_leave_alternate_screen(*args) ⇒ Object

call-seq:

notcurses_leave_alternate_screen(nc) -> int

A module function.



12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
# File 'ext/notcurses/src/notcurses_wrap.c', line 12870

SWIGINTERN VALUE
_wrap_notcurses_leave_alternate_screen(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_leave_alternate_screen", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (int)notcurses_leave_alternate_screen(arg1);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_lex_blitter(*args) ⇒ Object

call-seq:

notcurses_lex_blitter(op, blitter) -> int

A module function.



12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
# File 'ext/notcurses/src/notcurses_wrap.c', line 12350

SWIGINTERN VALUE
_wrap_notcurses_lex_blitter(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  ncblitter_e *arg2 = (ncblitter_e *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","notcurses_lex_blitter", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncblitter_e, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncblitter_e *","notcurses_lex_blitter", 2, argv[1] )); 
  }
  arg2 = (ncblitter_e *)(argp2);
  result = (int)notcurses_lex_blitter((char const *)arg1,arg2);
  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;
    }
    
    VALUE obj = arg1 ? rb_str_new2(arg1) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("op")), 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("ncblitter_e *");
    if (!ty) ty = SWIGTYPE_p_ncblitter_e;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("blitter")), obj);
  }
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.notcurses_lex_margins(*args) ⇒ Object

call-seq:

notcurses_lex_margins(op, opts) -> int

A module function.



12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
# File 'ext/notcurses/src/notcurses_wrap.c', line 12277

SWIGINTERN VALUE
_wrap_notcurses_lex_margins(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  notcurses_options *arg2 = (notcurses_options *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","notcurses_lex_margins", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_notcurses_options, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "notcurses_options *","notcurses_lex_margins", 2, argv[1] )); 
  }
  arg2 = (notcurses_options *)(argp2);
  result = (int)notcurses_lex_margins((char const *)arg1,arg2);
  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;
    }
    
    VALUE obj = arg1 ? rb_str_new2(arg1) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("op")), 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("notcurses_options *");
    if (!ty) ty = SWIGTYPE_p_notcurses_options;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("opts")), obj);
  }
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.notcurses_lex_scalemode(*args) ⇒ Object

call-seq:

notcurses_lex_scalemode(op, scalemode) -> int

A module function.



12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
# File 'ext/notcurses/src/notcurses_wrap.c', line 12469

SWIGINTERN VALUE
_wrap_notcurses_lex_scalemode(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  ncscale_e *arg2 = (ncscale_e *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","notcurses_lex_scalemode", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncscale_e, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncscale_e *","notcurses_lex_scalemode", 2, argv[1] )); 
  }
  arg2 = (ncscale_e *)(argp2);
  result = (int)notcurses_lex_scalemode((char const *)arg1,arg2);
  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;
    }
    
    VALUE obj = arg1 ? rb_str_new2(arg1) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("op")), 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("ncscale_e *");
    if (!ty) ty = SWIGTYPE_p_ncscale_e;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("scalemode")), obj);
  }
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.notcurses_linesigs_disable(*args) ⇒ Object

call-seq:

notcurses_linesigs_disable(n) -> int

A module function.



15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
# File 'ext/notcurses/src/notcurses_wrap.c', line 15952

SWIGINTERN VALUE
_wrap_notcurses_linesigs_disable(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_linesigs_disable", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (int)notcurses_linesigs_disable(arg1);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_linesigs_enable(*args) ⇒ Object

call-seq:

notcurses_linesigs_enable(n) -> int

A module function.



16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
# File 'ext/notcurses/src/notcurses_wrap.c', line 16001

SWIGINTERN VALUE
_wrap_notcurses_linesigs_enable(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_linesigs_enable", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (int)notcurses_linesigs_enable(arg1);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_mice_disable(*args) ⇒ Object

call-seq:

notcurses_mice_disable(n) -> int

A module function.



15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
# File 'ext/notcurses/src/notcurses_wrap.c', line 15903

SWIGINTERN VALUE
_wrap_notcurses_mice_disable(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_mice_disable", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (int)notcurses_mice_disable(arg1);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_mice_enable(*args) ⇒ Object

call-seq:

notcurses_mice_enable(n, eventmask) -> int

A module function.



15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
# File 'ext/notcurses/src/notcurses_wrap.c', line 15846

SWIGINTERN VALUE
_wrap_notcurses_mice_enable(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  unsigned int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_mice_enable", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","notcurses_mice_enable", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  result = (int)notcurses_mice_enable(arg1,arg2);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_osversion(*args) ⇒ Object

call-seq:

notcurses_osversion -> char *

A module function.



67971
67972
67973
67974
67975
67976
67977
67978
67979
67980
67981
67982
67983
67984
67985
67986
67987
67988
67989
67990
67991
67992
67993
67994
67995
67996
67997
# File 'ext/notcurses/src/notcurses_wrap.c', line 67971

SWIGINTERN VALUE
_wrap_notcurses_osversion(int argc, VALUE *argv, VALUE self) {
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (char *)notcurses_osversion();
  {
    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;
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_palette_size(*args) ⇒ Object

call-seq:

notcurses_palette_size(nc) -> unsigned int

A module function.



21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
# File 'ext/notcurses/src/notcurses_wrap.c', line 21978

SWIGINTERN VALUE
_wrap_notcurses_palette_size(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_palette_size", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (unsigned int)notcurses_palette_size((struct notcurses const *)arg1);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_refresh(*args) ⇒ Object

call-seq:

notcurses_refresh(n, y, x) -> int

A module function.



16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
# File 'ext/notcurses/src/notcurses_wrap.c', line 16050

SWIGINTERN VALUE
_wrap_notcurses_refresh(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_refresh", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (int)notcurses_refresh(arg1,arg2,arg3);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("y")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("x")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_render(*args) ⇒ Object

call-seq:

notcurses_render(nc) -> int

A module function.



13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
# File 'ext/notcurses/src/notcurses_wrap.c', line 13383

SWIGINTERN VALUE
_wrap_notcurses_render(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_render", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (int)notcurses_render(arg1);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_stats(*args) ⇒ Object

call-seq:

notcurses_stats(nc, stats)

A module function.



26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
# File 'ext/notcurses/src/notcurses_wrap.c', line 26646

SWIGINTERN VALUE
_wrap_notcurses_stats(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  ncstats *arg2 = (ncstats *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_stats", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncstats, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncstats *","notcurses_stats", 2, argv[1] )); 
  }
  arg2 = (ncstats *)(argp2);
  notcurses_stats(arg1,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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), 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("ncstats *");
    if (!ty) ty = SWIGTYPE_p_ncstats;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("stats")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_stats_alloc(*args) ⇒ Object

call-seq:

notcurses_stats_alloc(nc) -> Ncstats

A module function.



26585
26586
26587
26588
26589
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
# File 'ext/notcurses/src/notcurses_wrap.c', line 26585

SWIGINTERN VALUE
_wrap_notcurses_stats_alloc(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ncstats *result = 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(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_stats_alloc", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (ncstats *)notcurses_stats_alloc((struct notcurses const *)arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("ncstats *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncstats, 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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_stats_reset(*args) ⇒ Object

call-seq:

notcurses_stats_reset(nc, stats)

A module function.



26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
# File 'ext/notcurses/src/notcurses_wrap.c', line 26718

SWIGINTERN VALUE
_wrap_notcurses_stats_reset(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  ncstats *arg2 = (ncstats *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_stats_reset", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_ncstats, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "ncstats *","notcurses_stats_reset", 2, argv[1] )); 
  }
  arg2 = (ncstats *)(argp2);
  notcurses_stats_reset(arg1,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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), 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("ncstats *");
    if (!ty) ty = SWIGTYPE_p_ncstats;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("stats")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_stddim_yx(*args) ⇒ Object

call-seq:

notcurses_stddim_yx(nc, y, x) -> struct ncplane *

A module function.



16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
# File 'ext/notcurses/src/notcurses_wrap.c', line 16481

SWIGINTERN VALUE
_wrap_notcurses_stddim_yx(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_stddim_yx", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (struct ncplane *)notcurses_stddim_yx(arg1,arg2,arg3);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("y")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("x")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_stddim_yx_const(*args) ⇒ Object

call-seq:

notcurses_stddim_yx_const(nc, y, x) -> struct ncplane const *

A module function.



16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
# File 'ext/notcurses/src/notcurses_wrap.c', line 16648

SWIGINTERN VALUE
_wrap_notcurses_stddim_yx_const(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_stddim_yx_const", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  result = (struct ncplane *)notcurses_stddim_yx_const((struct notcurses const *)arg1,arg2,arg3);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane const *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("y")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("x")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_stdplane(*args) ⇒ Object

call-seq:

notcurses_stdplane(nc) -> struct ncplane *

A module function.



12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
# File 'ext/notcurses/src/notcurses_wrap.c', line 12919

SWIGINTERN VALUE
_wrap_notcurses_stdplane(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_stdplane", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (struct ncplane *)notcurses_stdplane(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_stdplane_const(*args) ⇒ Object

call-seq:

notcurses_stdplane_const(nc) -> struct ncplane const *

A module function.



12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
# File 'ext/notcurses/src/notcurses_wrap.c', line 12980

SWIGINTERN VALUE
_wrap_notcurses_stdplane_const(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_stdplane_const", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (struct ncplane *)notcurses_stdplane_const((struct notcurses const *)arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane const *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_stop(*args) ⇒ Object

call-seq:

notcurses_stop(nc) -> int

A module function.



12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
# File 'ext/notcurses/src/notcurses_wrap.c', line 12772

SWIGINTERN VALUE
_wrap_notcurses_stop(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_stop", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (int)notcurses_stop(arg1);
  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 notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_str_blitter(*args) ⇒ Object

call-seq:

notcurses_str_blitter(blitter) -> char const *

A module function.



12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
# File 'ext/notcurses/src/notcurses_wrap.c', line 12423

SWIGINTERN VALUE
_wrap_notcurses_str_blitter(int argc, VALUE *argv, VALUE self) {
  ncblitter_e arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "ncblitter_e","notcurses_str_blitter", 1, argv[0] ));
  } 
  arg1 = (ncblitter_e)(val1);
  result = (char *)notcurses_str_blitter(arg1);
  {
    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;
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_str_scalemode(*args) ⇒ Object

call-seq:

notcurses_str_scalemode(scalemode) -> char const *

A module function.



12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
# File 'ext/notcurses/src/notcurses_wrap.c', line 12542

SWIGINTERN VALUE
_wrap_notcurses_str_scalemode(int argc, VALUE *argv, VALUE self) {
  ncscale_e arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "ncscale_e","notcurses_str_scalemode", 1, argv[0] ));
  } 
  arg1 = (ncscale_e)(val1);
  result = (char *)notcurses_str_scalemode(arg1);
  {
    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;
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_supported_styles(*args) ⇒ Object

call-seq:

notcurses_supported_styles(nc) -> uint16_t

A module function.



21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
# File 'ext/notcurses/src/notcurses_wrap.c', line 21929

SWIGINTERN VALUE
_wrap_notcurses_supported_styles(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uint16_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_supported_styles", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (uint16_t)notcurses_supported_styles((struct notcurses const *)arg1);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("nc")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_term_dim_yx(*args) ⇒ Object

call-seq:

notcurses_term_dim_yx(n, rows, cols)

A module function.



17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
# File 'ext/notcurses/src/notcurses_wrap.c', line 17279

SWIGINTERN VALUE
_wrap_notcurses_term_dim_yx(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  unsigned int *arg2 = (unsigned int *) 0 ;
  unsigned int *arg3 = (unsigned int *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses const *","notcurses_term_dim_yx", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  {
    arg2 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (unsigned int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg2 = (unsigned int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (unsigned int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (unsigned int *) malloc(sizeof(unsigned int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(unsigned int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (unsigned int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("unsigned int", "double") == 0) {
        *arg3 = (unsigned int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (unsigned int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  notcurses_term_dim_yx((struct notcurses const *)arg1,arg2,arg3);
  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 notcurses const *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("rows")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(unsigned int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("unsigned int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("cols")), converted_value);
      free(arg3);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_top(*args) ⇒ Object

call-seq:

notcurses_top(n) -> struct ncplane *

A module function.



13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
# File 'ext/notcurses/src/notcurses_wrap.c', line 13163

SWIGINTERN VALUE
_wrap_notcurses_top(int argc, VALUE *argv, VALUE self) {
  struct notcurses *arg1 = (struct notcurses *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ncplane *result = 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(argv[0], &argp1,SWIGTYPE_p_notcurses, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct notcurses *","notcurses_top", 1, argv[0] )); 
  }
  arg1 = (struct notcurses *)(argp1);
  result = (struct ncplane *)notcurses_top(arg1);
  {
    VALUE hash = rb_hash_new();
    VALUE obj;
    
    if (strcmp("struct ncplane *", "void") == 0) {
      obj = Qnil;
    } else {
      obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_ncplane, 0);
    }
    
    rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
    vresult = hash;
  }
  {
    if (vresult == Qnil) {
      vresult = rb_hash_new();
    }
    if (!RB_TYPE_P(vresult, T_HASH)) {
      VALUE temp = rb_hash_new();
      rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
      vresult = temp;
    }
    
    swig_type_info *ty = SWIG_TypeQuery("struct notcurses *");
    if (!ty) ty = SWIGTYPE_p_notcurses;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_ucs_32_to_utf8(*args) ⇒ Object

call-seq:

notcurses_ucs_32_to_utf8(ucs32, ucs32count, resultbuf, buflen) -> int

A module function.



8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
# File 'ext/notcurses/src/notcurses_wrap.c', line 8678

SWIGINTERN VALUE
_wrap_notcurses_ucs_32_to_utf8(int argc, VALUE *argv, VALUE self) {
  uint32_t *arg1 = (uint32_t *) 0 ;
  unsigned int arg2 ;
  unsigned char *arg3 = (unsigned char *) 0 ;
  size_t arg4 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  size_t val4 ;
  int ecode4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  {
    arg1 = (uint32_t *) malloc(sizeof(uint32_t const));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(uint32_t const)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (uint32_t const) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("uint32_t const", "double") == 0) {
        *arg1 = (uint32_t const) NUM2DBL(argv[0]);
      } else {
        *arg1 = (uint32_t const) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","notcurses_ucs32_to_utf8", 2, argv[1] ));
  } 
  arg2 = (unsigned int)(val2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_unsigned_char, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "unsigned char *","notcurses_ucs32_to_utf8", 3, argv[2] )); 
  }
  arg3 = (unsigned char *)(argp3);
  ecode4 = SWIG_AsVal_size_t(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "size_t","notcurses_ucs32_to_utf8", 4, argv[3] ));
  } 
  arg4 = (size_t)(val4);
  result = (int)notcurses_ucs32_to_utf8((unsigned int const *)arg1,arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(uint32_t const)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("uint32_t const", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("ucs32")), converted_value);
      free(arg1);
    }
  }
  {
    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("unsigned char *");
    if (!ty) ty = SWIGTYPE_p_unsigned_char;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("resultbuf")), obj);
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_version(*args) ⇒ Object

call-seq:

notcurses_version -> char const *

A module function.



4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
# File 'ext/notcurses/src/notcurses_wrap.c', line 4935

SWIGINTERN VALUE
_wrap_notcurses_version(int argc, VALUE *argv, VALUE self) {
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (char *)notcurses_version();
  {
    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;
  }
  return vresult;
fail:
  return Qnil;
}

.notcurses_version_components(*args) ⇒ Object

call-seq:

notcurses_version_components(major, minor, patch, tweak)

A module function.



4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
# File 'ext/notcurses/src/notcurses_wrap.c', line 4973

SWIGINTERN VALUE
_wrap_notcurses_version_components(int argc, VALUE *argv, VALUE self) {
  int *arg1 = (int *) 0 ;
  int *arg2 = (int *) 0 ;
  int *arg3 = (int *) 0 ;
  int *arg4 = (int *) 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  {
    arg1 = (int *) malloc(sizeof(int));
    if (arg1 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg1 = (int) NUM2INT(argv[0]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg1 = (int) NUM2DBL(argv[0]);
      } else {
        *arg1 = (int) NUM2LL(argv[0]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg2 = (int *) malloc(sizeof(int));
    if (arg2 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg2 = (int) NUM2INT(argv[1]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg2 = (int) NUM2DBL(argv[1]);
      } else {
        *arg2 = (int) NUM2LL(argv[1]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg3 = (int *) malloc(sizeof(int));
    if (arg3 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg3 = (int) NUM2INT(argv[2]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg3 = (int) NUM2DBL(argv[2]);
      } else {
        *arg3 = (int) NUM2LL(argv[2]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  {
    arg4 = (int *) malloc(sizeof(int));
    if (arg4 == NULL) {
      SWIG_exception_fail(SWIG_MemoryError, "Failed to allocate memory");
    }
    switch(sizeof(int)) {
    case 1:
    case 2:
    case 4:
      *arg4 = (int) NUM2INT(argv[3]);
      break;
    case 8:
      if (strcmp("int", "double") == 0) {
        *arg4 = (int) NUM2DBL(argv[3]);
      } else {
        *arg4 = (int) NUM2LL(argv[3]);
      }
      break;
    default:
      SWIG_exception_fail(SWIG_TypeError, "Unsupported integer size");
    }
  }
  notcurses_version_components(arg1,arg2,arg3,arg4);
  vresult = rb_ary_new();
  {
    if (arg1 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg1);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg1);
        } else {
          converted_value = LL2NUM(*arg1);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("major")), converted_value);
      free(arg1);
    }
  }
  {
    if (arg2 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg2);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg2);
        } else {
          converted_value = LL2NUM(*arg2);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("minor")), converted_value);
      free(arg2);
    }
  }
  {
    if (arg3 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg3);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg3);
        } else {
          converted_value = LL2NUM(*arg3);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("patch")), converted_value);
      free(arg3);
    }
  }
  {
    if (arg4 != NULL) {
      if (vresult == Qnil) {
        vresult = rb_hash_new();
      } else if (!RB_TYPE_P(vresult, T_HASH)) {
        VALUE temp = rb_hash_new();
        rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
        vresult = temp;
      }
      VALUE converted_value;
      switch(sizeof(int)) {
      case 1:
      case 2:
      case 4:
        converted_value = INT2NUM(*arg4);
        break;
      case 8:
        if (strcmp("int", "double") == 0) {
          converted_value = DBL2NUM(*arg4);
        } else {
          converted_value = LL2NUM(*arg4);
        }
        break;
      default:
        rb_raise(rb_eTypeError, "Unsupported integer size");
      }
      rb_hash_aset(vresult, ID2SYM(rb_intern("tweak")), converted_value);
      free(arg4);
    }
  }
  return vresult;
fail:
  return Qnil;
}

.pow(*args) ⇒ Object

call-seq:

pow(x, y) -> double

A module function.



3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
# File 'ext/notcurses/src/notcurses_wrap.c', line 3694

SWIGINTERN VALUE
_wrap_pow(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double arg2 ;
  double val1 ;
  int ecode1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","pow", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  ecode2 = SWIG_AsVal_double(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","pow", 2, argv[1] ));
  } 
  arg2 = (double)(val2);
  result = (double)pow(arg1,arg2);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.ruby_ncplane_vprintf(*args) ⇒ Object Also known as: ncplane_vprintf

call-seq:

ruby_ncplane_vprintf(n, format, rb_args) -> int

A module function.



4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
# File 'ext/notcurses/src/notcurses_wrap.c', line 4712

SWIGINTERN VALUE
_wrap_ruby_ncplane_vprintf(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  char *arg2 = (char *) 0 ;
  VALUE arg3 = (VALUE) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ruby_ncplane_vprintf", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ruby_ncplane_vprintf", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  arg3 = argv[2];
  result = (int)ruby_ncplane_vprintf(arg1,(char const *)arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("format")), 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("VALUE");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("rb_args")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ruby_ncplane_vprintf_aligned(*args) ⇒ Object Also known as: ncplane_vprintf_aligned

call-seq:

ruby_ncplane_vprintf_aligned(n, y, align, format, rb_args) -> int

A module function.



4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
# File 'ext/notcurses/src/notcurses_wrap.c', line 4514

SWIGINTERN VALUE
_wrap_ruby_ncplane_vprintf_aligned(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  ncalign_e arg3 ;
  char *arg4 = (char *) 0 ;
  VALUE arg5 = (VALUE) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 ;
  char *buf4 = 0 ;
  int alloc4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ruby_ncplane_vprintf_aligned", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ruby_ncplane_vprintf_aligned", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "ncalign_e","ruby_ncplane_vprintf_aligned", 3, argv[2] ));
  } 
  arg3 = (ncalign_e)(val3);
  res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","ruby_ncplane_vprintf_aligned", 4, argv[3] ));
  }
  arg4 = (char *)(buf4);
  arg5 = argv[4];
  result = (int)ruby_ncplane_vprintf_aligned(arg1,arg2,arg3,(char const *)arg4,arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 = arg4 ? rb_str_new2(arg4) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("format")), 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("VALUE");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("rb_args")), obj);
  }
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return vresult;
fail:
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return Qnil;
}

.ruby_ncplane_vprintf_stained(*args) ⇒ Object Also known as: ncplane_vprintf_stained

call-seq:

ruby_ncplane_vprintf_stained(n, format, rb_args) -> int

A module function.



4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
# File 'ext/notcurses/src/notcurses_wrap.c', line 4621

SWIGINTERN VALUE
_wrap_ruby_ncplane_vprintf_stained(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  char *arg2 = (char *) 0 ;
  VALUE arg3 = (VALUE) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 ;
  char *buf2 = 0 ;
  int alloc2 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ruby_ncplane_vprintf_stained", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ruby_ncplane_vprintf_stained", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  arg3 = argv[2];
  result = (int)ruby_ncplane_vprintf_stained(arg1,(char const *)arg2,arg3);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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("format")), 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("VALUE");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg3, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("rb_args")), obj);
  }
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return vresult;
fail:
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.ruby_ncplane_vprintf_yx(*args) ⇒ Object Also known as: ncplane_vprintf_yx

call-seq:

ruby_ncplane_vprintf_yx(n, y, x, format, rb_args) -> int

A module function.



4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
# File 'ext/notcurses/src/notcurses_wrap.c', line 4407

SWIGINTERN VALUE
_wrap_ruby_ncplane_vprintf_yx(int argc, VALUE *argv, VALUE self) {
  struct ncplane *arg1 = (struct ncplane *) 0 ;
  int arg2 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  VALUE arg5 = (VALUE) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int res4 ;
  char *buf4 = 0 ;
  int alloc4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 5) || (argc > 5)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_ncplane, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncplane *","ruby_ncplane_vprintf_yx", 1, argv[0] )); 
  }
  arg1 = (struct ncplane *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ruby_ncplane_vprintf_yx", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ruby_ncplane_vprintf_yx", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","ruby_ncplane_vprintf_yx", 4, argv[3] ));
  }
  arg4 = (char *)(buf4);
  arg5 = argv[4];
  result = (int)ruby_ncplane_vprintf_yx(arg1,arg2,arg3,(char const *)arg4,arg5);
  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 ncplane *");
    if (!ty) ty = SWIGTYPE_p_ncplane;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("n")), 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 = arg4 ? rb_str_new2(arg4) : Qnil;
    rb_hash_aset(vresult, ID2SYM(rb_intern("format")), 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("VALUE");
    if (!ty) ty = SWIGTYPE_p_void;
    
    VALUE obj = SWIG_NewPointerObj((void *)arg5, ty, 0);
    rb_hash_aset(vresult, ID2SYM(rb_intern("rb_args")), obj);
  }
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return vresult;
fail:
  if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
  return Qnil;
}

.sin(*args) ⇒ Object

call-seq:

sin(x) -> double

A module function.



3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
# File 'ext/notcurses/src/notcurses_wrap.c', line 3290

SWIGINTERN VALUE
_wrap_sin(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","sin", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)sin(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.sinh(*args) ⇒ Object

call-seq:

sinh(x) -> double

A module function.



3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
# File 'ext/notcurses/src/notcurses_wrap.c', line 3529

SWIGINTERN VALUE
_wrap_sinh(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","sinh", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)sinh(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.sqrt(*args) ⇒ Object

call-seq:

sqrt(x) -> double

A module function.



3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
# File 'ext/notcurses/src/notcurses_wrap.c', line 3735

SWIGINTERN VALUE
_wrap_sqrt(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","sqrt", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)sqrt(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.strtoimax(*args) ⇒ Object

call-seq:

strtoimax(nptr, endptr, base) -> intmax_t

A module function.



3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
# File 'ext/notcurses/src/notcurses_wrap.c', line 3153

SWIGINTERN VALUE
_wrap_strtoimax(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  char **arg2 = (char **) 0 ;
  int arg3 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  intmax_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","strtoimax", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_p_char, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char **","strtoimax", 2, argv[1] )); 
  }
  arg2 = (char **)(argp2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","strtoimax", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  result = (intmax_t)strtoimax((char const *)arg1,arg2,arg3);
  vresult = SWIG_From_long((long)(result));
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.strtoumax(*args) ⇒ Object

call-seq:

strtoumax(nptr, endptr, base) -> uintmax_t

A module function.



3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
# File 'ext/notcurses/src/notcurses_wrap.c', line 3205

SWIGINTERN VALUE
_wrap_strtoumax(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  char **arg2 = (char **) 0 ;
  int arg3 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  uintmax_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","strtoumax", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_p_char, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char **","strtoumax", 2, argv[1] )); 
  }
  arg2 = (char **)(argp2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","strtoumax", 3, argv[2] ));
  } 
  arg3 = (int)(val3);
  result = (uintmax_t)strtoumax((char const *)arg1,arg2,arg3);
  vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return vresult;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.swig_generated_class?(klass) ⇒ Boolean

This is a stub, couldn’t find an easy way to figure this out looking at constants and methods etc. There is an instance variable but I’d have to instantiate it to get it…

Returns:

  • (Boolean)


24
25
26
# File 'lib/notcurses.rb', line 24

def self.swig_generated_class?(klass)
  true
end

.tan(*args) ⇒ Object

call-seq:

tan(x) -> double

A module function.



3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
# File 'ext/notcurses/src/notcurses_wrap.c', line 3323

SWIGINTERN VALUE
_wrap_tan(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","tan", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)tan(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}

.tanh(*args) ⇒ Object

call-seq:

tanh(x) -> double

A module function.



3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
# File 'ext/notcurses/src/notcurses_wrap.c', line 3562

SWIGINTERN VALUE
_wrap_tanh(int argc, VALUE *argv, VALUE self) {
  double arg1 ;
  double val1 ;
  int ecode1 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_double(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","tanh", 1, argv[0] ));
  } 
  arg1 = (double)(val1);
  result = (double)tanh(arg1);
  vresult = SWIG_From_double((double)(result));
  return vresult;
fail:
  return Qnil;
}