Lines Matching refs:args
32 _curses_window_addch(PyCursesWindowObject *self, PyObject *args)
42 switch (PyTuple_GET_SIZE(args)) {
44 if (!PyArg_ParseTuple(args, "O:addch", &ch)) {
49 if (!PyArg_ParseTuple(args, "Ol:addch", &ch, &attr)) {
55 if (!PyArg_ParseTuple(args, "iiO:addch", &y, &x, &ch)) {
61 if (!PyArg_ParseTuple(args, "iiOl:addch", &y, &x, &ch, &attr)) {
104 _curses_window_addstr(PyCursesWindowObject *self, PyObject *args)
114 switch (PyTuple_GET_SIZE(args)) {
116 if (!PyArg_ParseTuple(args, "O:addstr", &str)) {
121 if (!PyArg_ParseTuple(args, "Ol:addstr", &str, &attr)) {
127 if (!PyArg_ParseTuple(args, "iiO:addstr", &y, &x, &str)) {
133 if (!PyArg_ParseTuple(args, "iiOl:addstr", &y, &x, &str, &attr)) {
178 _curses_window_addnstr(PyCursesWindowObject *self, PyObject *args)
189 switch (PyTuple_GET_SIZE(args)) {
191 if (!PyArg_ParseTuple(args, "Oi:addnstr", &str, &n)) {
196 if (!PyArg_ParseTuple(args, "Oil:addnstr", &str, &n, &attr)) {
202 if (!PyArg_ParseTuple(args, "iiOi:addnstr", &y, &x, &str, &n)) {
208 if (!PyArg_ParseTuple(args, "iiOil:addnstr", &y, &x, &str, &n, &attr)) {
242 _curses_window_bkgd(PyCursesWindowObject *self, PyObject *const *args, Py_ssize_t nargs)
251 ch = args[0];
255 attr = PyLong_AsLong(args[1]);
369 _curses_window_bkgdset(PyCursesWindowObject *self, PyObject *const *args, Py_ssize_t nargs)
378 ch = args[0];
382 attr = PyLong_AsLong(args[1]);
434 _curses_window_border(PyCursesWindowObject *self, PyObject *const *args, Py_ssize_t nargs)
452 ls = args[0];
456 rs = args[1];
460 ts = args[2];
464 bs = args[3];
468 tl = args[4];
472 tr = args[5];
476 bl = args[6];
480 br = args[7];
508 _curses_window_box(PyCursesWindowObject *self, PyObject *args)
515 switch (PyTuple_GET_SIZE(args)) {
519 if (!PyArg_ParseTuple(args, "OO:box", &verch, &horch)) {
551 _curses_window_delch(PyCursesWindowObject *self, PyObject *args)
558 switch (PyTuple_GET_SIZE(args)) {
562 if (!PyArg_ParseTuple(args, "ii:delch", &y, &x)) {
602 _curses_window_derwin(PyCursesWindowObject *self, PyObject *args)
611 switch (PyTuple_GET_SIZE(args)) {
613 if (!PyArg_ParseTuple(args, "ii:derwin", &begin_y, &begin_x)) {
618 if (!PyArg_ParseTuple(args, "iiii:derwin", &nlines, &ncols, &begin_y, &begin_x)) {
652 _curses_window_echochar(PyCursesWindowObject *self, PyObject *const *args, Py_ssize_t nargs)
661 ch = args[0];
665 attr = PyLong_AsLong(args[1]);
696 _curses_window_enclose(PyCursesWindowObject *self, PyObject *const *args, Py_ssize_t nargs)
705 y = _PyLong_AsInt(args[0]);
709 x = _PyLong_AsInt(args[1]);
770 _curses_window_getch(PyCursesWindowObject *self, PyObject *args)
778 switch (PyTuple_GET_SIZE(args)) {
782 if (!PyArg_ParseTuple(args, "ii:getch", &y, &x)) {
822 _curses_window_getkey(PyCursesWindowObject *self, PyObject *args)
829 switch (PyTuple_GET_SIZE(args)) {
833 if (!PyArg_ParseTuple(args, "ii:getkey", &y, &x)) {
870 _curses_window_get_wch(PyCursesWindowObject *self, PyObject *args)
877 switch (PyTuple_GET_SIZE(args)) {
881 if (!PyArg_ParseTuple(args, "ii:get_wch", &y, &x)) {
922 _curses_window_hline(PyCursesWindowObject *self, PyObject *args)
933 switch (PyTuple_GET_SIZE(args)) {
935 if (!PyArg_ParseTuple(args, "Oi:hline", &ch, &n)) {
940 if (!PyArg_ParseTuple(args, "Oil:hline", &ch, &n, &attr)) {
946 if (!PyArg_ParseTuple(args, "iiOi:hline", &y, &x, &ch, &n)) {
952 if (!PyArg_ParseTuple(args, "iiOil:hline", &y, &x, &ch, &n, &attr)) {
993 _curses_window_insch(PyCursesWindowObject *self, PyObject *args)
1003 switch (PyTuple_GET_SIZE(args)) {
1005 if (!PyArg_ParseTuple(args, "O:insch", &ch)) {
1010 if (!PyArg_ParseTuple(args, "Ol:insch", &ch, &attr)) {
1016 if (!PyArg_ParseTuple(args, "iiO:insch", &y, &x, &ch)) {
1022 if (!PyArg_ParseTuple(args, "iiOl:insch", &y, &x, &ch, &attr)) {
1057 _curses_window_inch(PyCursesWindowObject *self, PyObject *args)
1065 switch (PyTuple_GET_SIZE(args)) {
1069 if (!PyArg_ParseTuple(args, "ii:inch", &y, &x)) {
1116 _curses_window_insstr(PyCursesWindowObject *self, PyObject *args)
1126 switch (PyTuple_GET_SIZE(args)) {
1128 if (!PyArg_ParseTuple(args, "O:insstr", &str)) {
1133 if (!PyArg_ParseTuple(args, "Ol:insstr", &str, &attr)) {
1139 if (!PyArg_ParseTuple(args, "iiO:insstr", &y, &x, &str)) {
1145 if (!PyArg_ParseTuple(args, "iiOl:insstr", &y, &x, &str, &attr)) {
1192 _curses_window_insnstr(PyCursesWindowObject *self, PyObject *args)
1203 switch (PyTuple_GET_SIZE(args)) {
1205 if (!PyArg_ParseTuple(args, "Oi:insnstr", &str, &n)) {
1210 if (!PyArg_ParseTuple(args, "Oil:insnstr", &str, &n, &attr)) {
1216 if (!PyArg_ParseTuple(args, "iiOi:insnstr", &y, &x, &str, &n)) {
1222 if (!PyArg_ParseTuple(args, "iiOil:insnstr", &y, &x, &str, &n, &attr)) {
1291 _curses_window_noutrefresh(PyCursesWindowObject *self, PyObject *args)
1302 switch (PyTuple_GET_SIZE(args)) {
1306 if (!PyArg_ParseTuple(args, "iiiiii:noutrefresh", &pminrow, &pmincol, &sminrow, &smincol, &smaxrow, &smaxcol)) {
1372 _curses_window_overlay(PyCursesWindowObject *self, PyObject *args)
1384 switch (PyTuple_GET_SIZE(args)) {
1386 if (!PyArg_ParseTuple(args, "O!:overlay", &PyCursesWindow_Type, &destwin)) {
1391 if (!PyArg_ParseTuple(args, "O!iiiiii:overlay", &PyCursesWindow_Type, &destwin, &sminrow, &smincol, &dminrow, &dmincol, &dmaxrow, &dmaxcol)) {
1431 _curses_window_overwrite(PyCursesWindowObject *self, PyObject *args)
1443 switch (PyTuple_GET_SIZE(args)) {
1445 if (!PyArg_ParseTuple(args, "O!:overwrite", &PyCursesWindow_Type, &destwin)) {
1450 if (!PyArg_ParseTuple(args, "O!iiiiii:overwrite", &PyCursesWindow_Type, &destwin, &sminrow, &smincol, &dminrow, &dmincol, &dmaxrow, &dmaxcol)) {
1496 _curses_window_redrawln(PyCursesWindowObject *self, PyObject *const *args, Py_ssize_t nargs)
1505 beg = _PyLong_AsInt(args[0]);
1509 num = _PyLong_AsInt(args[1]);
1544 _curses_window_refresh(PyCursesWindowObject *self, PyObject *args)
1555 switch (PyTuple_GET_SIZE(args)) {
1559 if (!PyArg_ParseTuple(args, "iiiiii:refresh", &pminrow, &pmincol, &sminrow, &smincol, &smaxrow, &smaxcol)) {
1595 _curses_window_setscrreg(PyCursesWindowObject *self, PyObject *const *args, Py_ssize_t nargs)
1604 top = _PyLong_AsInt(args[0]);
1608 bottom = _PyLong_AsInt(args[1]);
1642 _curses_window_subwin(PyCursesWindowObject *self, PyObject *args)
1651 switch (PyTuple_GET_SIZE(args)) {
1653 if (!PyArg_ParseTuple(args, "ii:subwin", &begin_y, &begin_x)) {
1658 if (!PyArg_ParseTuple(args, "iiii:subwin", &nlines, &ncols, &begin_y, &begin_x)) {
1690 _curses_window_scroll(PyCursesWindowObject *self, PyObject *args)
1696 switch (PyTuple_GET_SIZE(args)) {
1700 if (!PyArg_ParseTuple(args, "i:scroll", &lines)) {
1730 _curses_window_touchline(PyCursesWindowObject *self, PyObject *args)
1738 switch (PyTuple_GET_SIZE(args)) {
1740 if (!PyArg_ParseTuple(args, "ii:touchline", &start, &count)) {
1745 if (!PyArg_ParseTuple(args, "iii:touchline", &start, &count, &changed)) {
1784 _curses_window_vline(PyCursesWindowObject *self, PyObject *args)
1795 switch (PyTuple_GET_SIZE(args)) {
1797 if (!PyArg_ParseTuple(args, "Oi:vline", &ch, &n)) {
1802 if (!PyArg_ParseTuple(args, "Oil:vline", &ch, &n, &attr)) {
1808 if (!PyArg_ParseTuple(args, "iiOi:vline", &y, &x, &ch, &n)) {
1814 if (!PyArg_ParseTuple(args, "iiOil:vline", &y, &x, &ch, &n, &attr)) {
1927 _curses_cbreak(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
1938 flag = _PyLong_AsInt(args[0]);
2163 _curses_echo(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
2174 flag = _PyLong_AsInt(args[0]);
2329 _curses_ungetmouse(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
2342 long ival = PyLong_AsLong(args[0]);
2360 x = _PyLong_AsInt(args[1]);
2364 y = _PyLong_AsInt(args[2]);
2368 z = _PyLong_AsInt(args[3]);
2372 if (!PyLong_Check(args[4])) {
2373 _PyArg_BadArgument("ungetmouse", "argument 5", "int", args[4]);
2376 bstate = PyLong_AsUnsignedLongMask(args[4]);
2561 _curses_init_color(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
2572 if (!color_converter(args[0], &color_number)) {
2575 if (!component_converter(args[1], &r)) {
2578 if (!component_converter(args[2], &g)) {
2581 if (!component_converter(args[3], &b)) {
2613 _curses_init_pair(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
2623 if (!pair_converter(args[0], &pair_number)) {
2626 if (!color_allow_default_converter(args[1], &fg)) {
2629 if (!color_allow_default_converter(args[2], &bg)) {
2678 _curses_setupterm(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
2688 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 2, 0, argsbuf);
2689 if (!args) {
2695 if (args[0]) {
2696 if (args[0] == Py_None) {
2699 else if (PyUnicode_Check(args[0])) {
2701 term = PyUnicode_AsUTF8AndSize(args[0], &term_length);
2711 _PyArg_BadArgument("setupterm", "argument 'term'", "str or None", args[0]);
2718 fd = _PyLong_AsInt(args[1]);
2922 _curses_is_term_resized(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
2931 nlines = _PyLong_AsInt(args[0]);
2935 ncols = _PyLong_AsInt(args[1]);
3174 _curses_newpad(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
3183 nlines = _PyLong_AsInt(args[0]);
3187 ncols = _PyLong_AsInt(args[1]);
3221 _curses_newwin(PyObject *module, PyObject *args)
3230 switch (PyTuple_GET_SIZE(args)) {
3232 if (!PyArg_ParseTuple(args, "ii:newwin", &nlines, &ncols)) {
3237 if (!PyArg_ParseTuple(args, "iiii:newwin", &nlines, &ncols, &begin_y, &begin_x)) {
3271 _curses_nl(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
3282 flag = _PyLong_AsInt(args[0]);
3503 _curses_qiflush(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
3514 flag = _PyLong_AsInt(args[0]);
3566 _curses_raw(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
3577 flag = _PyLong_AsInt(args[0]);
3665 _curses_resizeterm(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
3674 nlines = _PyLong_AsInt(args[0]);
3678 ncols = _PyLong_AsInt(args[1]);
3716 _curses_resize_term(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
3725 nlines = _PyLong_AsInt(args[0]);
3729 ncols = _PyLong_AsInt(args[1]);
3781 _curses_setsyx(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
3790 y = _PyLong_AsInt(args[0]);
3794 x = _PyLong_AsInt(args[1]);
4014 _curses_tparm(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
4028 if (!_PyArg_ParseStack(args, nargs, "y|iiiiiiiii:tparm",