1 /*[clinic input]
2 preserve
3 [clinic start generated code]*/
4 
5 PyDoc_STRVAR(_curses_panel_panel_bottom__doc__,
6 "bottom($self, /)\n"
7 "--\n"
8 "\n"
9 "Push the panel to the bottom of the stack.");
10 
11 #define _CURSES_PANEL_PANEL_BOTTOM_METHODDEF    \
12     {"bottom", (PyCFunction)(void(*)(void))_curses_panel_panel_bottom, METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_bottom__doc__},
13 
14 static PyObject *
15 _curses_panel_panel_bottom_impl(PyCursesPanelObject *self, PyTypeObject *cls);
16 
17 static PyObject *
_curses_panel_panel_bottom(PyCursesPanelObject * self,PyTypeObject * cls,PyObject * const * args,Py_ssize_t nargs,PyObject * kwnames)18 _curses_panel_panel_bottom(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
19 {
20     PyObject *return_value = NULL;
21     static const char * const _keywords[] = { NULL};
22     static _PyArg_Parser _parser = {":bottom", _keywords, 0};
23 
24     if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser
25         )) {
26         goto exit;
27     }
28     return_value = _curses_panel_panel_bottom_impl(self, cls);
29 
30 exit:
31     return return_value;
32 }
33 
34 PyDoc_STRVAR(_curses_panel_panel_hide__doc__,
35 "hide($self, /)\n"
36 "--\n"
37 "\n"
38 "Hide the panel.\n"
39 "\n"
40 "This does not delete the object, it just makes the window on screen invisible.");
41 
42 #define _CURSES_PANEL_PANEL_HIDE_METHODDEF    \
43     {"hide", (PyCFunction)(void(*)(void))_curses_panel_panel_hide, METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_hide__doc__},
44 
45 static PyObject *
46 _curses_panel_panel_hide_impl(PyCursesPanelObject *self, PyTypeObject *cls);
47 
48 static PyObject *
_curses_panel_panel_hide(PyCursesPanelObject * self,PyTypeObject * cls,PyObject * const * args,Py_ssize_t nargs,PyObject * kwnames)49 _curses_panel_panel_hide(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
50 {
51     PyObject *return_value = NULL;
52     static const char * const _keywords[] = { NULL};
53     static _PyArg_Parser _parser = {":hide", _keywords, 0};
54 
55     if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser
56         )) {
57         goto exit;
58     }
59     return_value = _curses_panel_panel_hide_impl(self, cls);
60 
61 exit:
62     return return_value;
63 }
64 
65 PyDoc_STRVAR(_curses_panel_panel_show__doc__,
66 "show($self, /)\n"
67 "--\n"
68 "\n"
69 "Display the panel (which might have been hidden).");
70 
71 #define _CURSES_PANEL_PANEL_SHOW_METHODDEF    \
72     {"show", (PyCFunction)(void(*)(void))_curses_panel_panel_show, METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_show__doc__},
73 
74 static PyObject *
75 _curses_panel_panel_show_impl(PyCursesPanelObject *self, PyTypeObject *cls);
76 
77 static PyObject *
_curses_panel_panel_show(PyCursesPanelObject * self,PyTypeObject * cls,PyObject * const * args,Py_ssize_t nargs,PyObject * kwnames)78 _curses_panel_panel_show(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
79 {
80     PyObject *return_value = NULL;
81     static const char * const _keywords[] = { NULL};
82     static _PyArg_Parser _parser = {":show", _keywords, 0};
83 
84     if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser
85         )) {
86         goto exit;
87     }
88     return_value = _curses_panel_panel_show_impl(self, cls);
89 
90 exit:
91     return return_value;
92 }
93 
94 PyDoc_STRVAR(_curses_panel_panel_top__doc__,
95 "top($self, /)\n"
96 "--\n"
97 "\n"
98 "Push panel to the top of the stack.");
99 
100 #define _CURSES_PANEL_PANEL_TOP_METHODDEF    \
101     {"top", (PyCFunction)(void(*)(void))_curses_panel_panel_top, METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_top__doc__},
102 
103 static PyObject *
104 _curses_panel_panel_top_impl(PyCursesPanelObject *self, PyTypeObject *cls);
105 
106 static PyObject *
_curses_panel_panel_top(PyCursesPanelObject * self,PyTypeObject * cls,PyObject * const * args,Py_ssize_t nargs,PyObject * kwnames)107 _curses_panel_panel_top(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
108 {
109     PyObject *return_value = NULL;
110     static const char * const _keywords[] = { NULL};
111     static _PyArg_Parser _parser = {":top", _keywords, 0};
112 
113     if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser
114         )) {
115         goto exit;
116     }
117     return_value = _curses_panel_panel_top_impl(self, cls);
118 
119 exit:
120     return return_value;
121 }
122 
123 PyDoc_STRVAR(_curses_panel_panel_above__doc__,
124 "above($self, /)\n"
125 "--\n"
126 "\n"
127 "Return the panel above the current panel.");
128 
129 #define _CURSES_PANEL_PANEL_ABOVE_METHODDEF    \
130     {"above", (PyCFunction)_curses_panel_panel_above, METH_NOARGS, _curses_panel_panel_above__doc__},
131 
132 static PyObject *
133 _curses_panel_panel_above_impl(PyCursesPanelObject *self);
134 
135 static PyObject *
_curses_panel_panel_above(PyCursesPanelObject * self,PyObject * Py_UNUSED (ignored))136 _curses_panel_panel_above(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignored))
137 {
138     return _curses_panel_panel_above_impl(self);
139 }
140 
141 PyDoc_STRVAR(_curses_panel_panel_below__doc__,
142 "below($self, /)\n"
143 "--\n"
144 "\n"
145 "Return the panel below the current panel.");
146 
147 #define _CURSES_PANEL_PANEL_BELOW_METHODDEF    \
148     {"below", (PyCFunction)_curses_panel_panel_below, METH_NOARGS, _curses_panel_panel_below__doc__},
149 
150 static PyObject *
151 _curses_panel_panel_below_impl(PyCursesPanelObject *self);
152 
153 static PyObject *
_curses_panel_panel_below(PyCursesPanelObject * self,PyObject * Py_UNUSED (ignored))154 _curses_panel_panel_below(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignored))
155 {
156     return _curses_panel_panel_below_impl(self);
157 }
158 
159 PyDoc_STRVAR(_curses_panel_panel_hidden__doc__,
160 "hidden($self, /)\n"
161 "--\n"
162 "\n"
163 "Return True if the panel is hidden (not visible), False otherwise.");
164 
165 #define _CURSES_PANEL_PANEL_HIDDEN_METHODDEF    \
166     {"hidden", (PyCFunction)_curses_panel_panel_hidden, METH_NOARGS, _curses_panel_panel_hidden__doc__},
167 
168 static PyObject *
169 _curses_panel_panel_hidden_impl(PyCursesPanelObject *self);
170 
171 static PyObject *
_curses_panel_panel_hidden(PyCursesPanelObject * self,PyObject * Py_UNUSED (ignored))172 _curses_panel_panel_hidden(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignored))
173 {
174     return _curses_panel_panel_hidden_impl(self);
175 }
176 
177 PyDoc_STRVAR(_curses_panel_panel_move__doc__,
178 "move($self, y, x, /)\n"
179 "--\n"
180 "\n"
181 "Move the panel to the screen coordinates (y, x).");
182 
183 #define _CURSES_PANEL_PANEL_MOVE_METHODDEF    \
184     {"move", (PyCFunction)(void(*)(void))_curses_panel_panel_move, METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_move__doc__},
185 
186 static PyObject *
187 _curses_panel_panel_move_impl(PyCursesPanelObject *self, PyTypeObject *cls,
188                               int y, int x);
189 
190 static PyObject *
_curses_panel_panel_move(PyCursesPanelObject * self,PyTypeObject * cls,PyObject * const * args,Py_ssize_t nargs,PyObject * kwnames)191 _curses_panel_panel_move(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
192 {
193     PyObject *return_value = NULL;
194     static const char * const _keywords[] = {"", "", NULL};
195     static _PyArg_Parser _parser = {"ii:move", _keywords, 0};
196     int y;
197     int x;
198 
199     if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser,
200         &y, &x)) {
201         goto exit;
202     }
203     return_value = _curses_panel_panel_move_impl(self, cls, y, x);
204 
205 exit:
206     return return_value;
207 }
208 
209 PyDoc_STRVAR(_curses_panel_panel_window__doc__,
210 "window($self, /)\n"
211 "--\n"
212 "\n"
213 "Return the window object associated with the panel.");
214 
215 #define _CURSES_PANEL_PANEL_WINDOW_METHODDEF    \
216     {"window", (PyCFunction)_curses_panel_panel_window, METH_NOARGS, _curses_panel_panel_window__doc__},
217 
218 static PyObject *
219 _curses_panel_panel_window_impl(PyCursesPanelObject *self);
220 
221 static PyObject *
_curses_panel_panel_window(PyCursesPanelObject * self,PyObject * Py_UNUSED (ignored))222 _curses_panel_panel_window(PyCursesPanelObject *self, PyObject *Py_UNUSED(ignored))
223 {
224     return _curses_panel_panel_window_impl(self);
225 }
226 
227 PyDoc_STRVAR(_curses_panel_panel_replace__doc__,
228 "replace($self, win, /)\n"
229 "--\n"
230 "\n"
231 "Change the window associated with the panel to the window win.");
232 
233 #define _CURSES_PANEL_PANEL_REPLACE_METHODDEF    \
234     {"replace", (PyCFunction)(void(*)(void))_curses_panel_panel_replace, METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_replace__doc__},
235 
236 static PyObject *
237 _curses_panel_panel_replace_impl(PyCursesPanelObject *self,
238                                  PyTypeObject *cls,
239                                  PyCursesWindowObject *win);
240 
241 static PyObject *
_curses_panel_panel_replace(PyCursesPanelObject * self,PyTypeObject * cls,PyObject * const * args,Py_ssize_t nargs,PyObject * kwnames)242 _curses_panel_panel_replace(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
243 {
244     PyObject *return_value = NULL;
245     static const char * const _keywords[] = {"", NULL};
246     static _PyArg_Parser _parser = {"O!:replace", _keywords, 0};
247     PyCursesWindowObject *win;
248 
249     if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser,
250         &PyCursesWindow_Type, &win)) {
251         goto exit;
252     }
253     return_value = _curses_panel_panel_replace_impl(self, cls, win);
254 
255 exit:
256     return return_value;
257 }
258 
259 PyDoc_STRVAR(_curses_panel_panel_set_userptr__doc__,
260 "set_userptr($self, obj, /)\n"
261 "--\n"
262 "\n"
263 "Set the panel\'s user pointer to obj.");
264 
265 #define _CURSES_PANEL_PANEL_SET_USERPTR_METHODDEF    \
266     {"set_userptr", (PyCFunction)(void(*)(void))_curses_panel_panel_set_userptr, METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_set_userptr__doc__},
267 
268 static PyObject *
269 _curses_panel_panel_set_userptr_impl(PyCursesPanelObject *self,
270                                      PyTypeObject *cls, PyObject *obj);
271 
272 static PyObject *
_curses_panel_panel_set_userptr(PyCursesPanelObject * self,PyTypeObject * cls,PyObject * const * args,Py_ssize_t nargs,PyObject * kwnames)273 _curses_panel_panel_set_userptr(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
274 {
275     PyObject *return_value = NULL;
276     static const char * const _keywords[] = {"", NULL};
277     static _PyArg_Parser _parser = {"O:set_userptr", _keywords, 0};
278     PyObject *obj;
279 
280     if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser,
281         &obj)) {
282         goto exit;
283     }
284     return_value = _curses_panel_panel_set_userptr_impl(self, cls, obj);
285 
286 exit:
287     return return_value;
288 }
289 
290 PyDoc_STRVAR(_curses_panel_panel_userptr__doc__,
291 "userptr($self, /)\n"
292 "--\n"
293 "\n"
294 "Return the user pointer for the panel.");
295 
296 #define _CURSES_PANEL_PANEL_USERPTR_METHODDEF    \
297     {"userptr", (PyCFunction)(void(*)(void))_curses_panel_panel_userptr, METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _curses_panel_panel_userptr__doc__},
298 
299 static PyObject *
300 _curses_panel_panel_userptr_impl(PyCursesPanelObject *self,
301                                  PyTypeObject *cls);
302 
303 static PyObject *
_curses_panel_panel_userptr(PyCursesPanelObject * self,PyTypeObject * cls,PyObject * const * args,Py_ssize_t nargs,PyObject * kwnames)304 _curses_panel_panel_userptr(PyCursesPanelObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
305 {
306     PyObject *return_value = NULL;
307     static const char * const _keywords[] = { NULL};
308     static _PyArg_Parser _parser = {":userptr", _keywords, 0};
309 
310     if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser
311         )) {
312         goto exit;
313     }
314     return_value = _curses_panel_panel_userptr_impl(self, cls);
315 
316 exit:
317     return return_value;
318 }
319 
320 PyDoc_STRVAR(_curses_panel_bottom_panel__doc__,
321 "bottom_panel($module, /)\n"
322 "--\n"
323 "\n"
324 "Return the bottom panel in the panel stack.");
325 
326 #define _CURSES_PANEL_BOTTOM_PANEL_METHODDEF    \
327     {"bottom_panel", (PyCFunction)_curses_panel_bottom_panel, METH_NOARGS, _curses_panel_bottom_panel__doc__},
328 
329 static PyObject *
330 _curses_panel_bottom_panel_impl(PyObject *module);
331 
332 static PyObject *
_curses_panel_bottom_panel(PyObject * module,PyObject * Py_UNUSED (ignored))333 _curses_panel_bottom_panel(PyObject *module, PyObject *Py_UNUSED(ignored))
334 {
335     return _curses_panel_bottom_panel_impl(module);
336 }
337 
338 PyDoc_STRVAR(_curses_panel_new_panel__doc__,
339 "new_panel($module, win, /)\n"
340 "--\n"
341 "\n"
342 "Return a panel object, associating it with the given window win.");
343 
344 #define _CURSES_PANEL_NEW_PANEL_METHODDEF    \
345     {"new_panel", (PyCFunction)_curses_panel_new_panel, METH_O, _curses_panel_new_panel__doc__},
346 
347 static PyObject *
348 _curses_panel_new_panel_impl(PyObject *module, PyCursesWindowObject *win);
349 
350 static PyObject *
_curses_panel_new_panel(PyObject * module,PyObject * arg)351 _curses_panel_new_panel(PyObject *module, PyObject *arg)
352 {
353     PyObject *return_value = NULL;
354     PyCursesWindowObject *win;
355 
356     if (!PyObject_TypeCheck(arg, &PyCursesWindow_Type)) {
357         _PyArg_BadArgument("new_panel", "argument", (&PyCursesWindow_Type)->tp_name, arg);
358         goto exit;
359     }
360     win = (PyCursesWindowObject *)arg;
361     return_value = _curses_panel_new_panel_impl(module, win);
362 
363 exit:
364     return return_value;
365 }
366 
367 PyDoc_STRVAR(_curses_panel_top_panel__doc__,
368 "top_panel($module, /)\n"
369 "--\n"
370 "\n"
371 "Return the top panel in the panel stack.");
372 
373 #define _CURSES_PANEL_TOP_PANEL_METHODDEF    \
374     {"top_panel", (PyCFunction)_curses_panel_top_panel, METH_NOARGS, _curses_panel_top_panel__doc__},
375 
376 static PyObject *
377 _curses_panel_top_panel_impl(PyObject *module);
378 
379 static PyObject *
_curses_panel_top_panel(PyObject * module,PyObject * Py_UNUSED (ignored))380 _curses_panel_top_panel(PyObject *module, PyObject *Py_UNUSED(ignored))
381 {
382     return _curses_panel_top_panel_impl(module);
383 }
384 
385 PyDoc_STRVAR(_curses_panel_update_panels__doc__,
386 "update_panels($module, /)\n"
387 "--\n"
388 "\n"
389 "Updates the virtual screen after changes in the panel stack.\n"
390 "\n"
391 "This does not call curses.doupdate(), so you\'ll have to do this yourself.");
392 
393 #define _CURSES_PANEL_UPDATE_PANELS_METHODDEF    \
394     {"update_panels", (PyCFunction)_curses_panel_update_panels, METH_NOARGS, _curses_panel_update_panels__doc__},
395 
396 static PyObject *
397 _curses_panel_update_panels_impl(PyObject *module);
398 
399 static PyObject *
_curses_panel_update_panels(PyObject * module,PyObject * Py_UNUSED (ignored))400 _curses_panel_update_panels(PyObject *module, PyObject *Py_UNUSED(ignored))
401 {
402     return _curses_panel_update_panels_impl(module);
403 }
404 /*[clinic end generated code: output=3081ef24e5560cb0 input=a9049054013a1b77]*/
405