1 /*
2  * Interface wrapper code.
3  *
4  * Generated by SIP 4.19.16
5  *
6  *     Copyright: (c) 2018 by Total Control Software
7  *     License:   wxWindows License
8  */
9 
10 #include "sipAPI_html.h"
11 
12         #include <wx/html/htmlcell.h>
13 
14         #include <wx/cursor.h>
15         #include <wx/html/htmlwin.h>
16         #include <wx/dc.h>
17         #include <wx/html/htmlcell.h>
18         #include <wx/html/htmltag.h>
19         #include <wx/colour.h>
20         #include <wx/html/htmlcell.h>
21         #include <wx/gdicmn.h>
22         #include <wx/html/htmlcell.h>
23         #include <wx/html/htmlcell.h>
24         #include <wx/event.h>
25         #include <wx/object.h>
26         #include <wx/object.h>
27         #include <wx/object.h>
28 
29 
30 class sipwxHtmlContainerCell : public  ::wxHtmlContainerCell
31 {
32 public:
33     sipwxHtmlContainerCell( ::wxHtmlContainerCell*);
34     virtual ~sipwxHtmlContainerCell();
35 
36     /*
37      * There is a protected method for every virtual method visible from
38      * this class.
39      */
40 protected:
41     bool AdjustPagebreak(int*,const  ::wxArrayInt&,int) const SIP_OVERRIDE;
42     void Draw( ::wxDC&,int,int,int,int, ::wxHtmlRenderingInfo&) SIP_OVERRIDE;
43     void DrawInvisible( ::wxDC&,int,int, ::wxHtmlRenderingInfo&) SIP_OVERRIDE;
44     const  ::wxHtmlCell* Find(int,const void*) const SIP_OVERRIDE;
45      ::wxHtmlCell* FindCellByPos( ::wxCoord, ::wxCoord,uint) const SIP_OVERRIDE;
46      ::wxHtmlCell* GetFirstChild() const SIP_OVERRIDE;
47      ::wxHtmlLinkInfo* GetLink(int,int) const SIP_OVERRIDE;
48      ::wxCursor GetMouseCursor( ::wxHtmlWindowInterface*) const SIP_OVERRIDE;
49      ::wxCursor GetMouseCursorAt( ::wxHtmlWindowInterface*,const  ::wxPoint&) const SIP_OVERRIDE;
50     void Layout(int) SIP_OVERRIDE;
51     bool ProcessMouseClick( ::wxHtmlWindowInterface*,const  ::wxPoint&,const  ::wxMouseEvent&) SIP_OVERRIDE;
52     void SetPos(int,int) SIP_OVERRIDE;
53      ::wxString ConvertToText( ::wxHtmlSelection*) const SIP_OVERRIDE;
54 
55 public:
56     sipSimpleWrapper *sipPySelf;
57 
58 private:
59     sipwxHtmlContainerCell(const sipwxHtmlContainerCell &);
60     sipwxHtmlContainerCell &operator = (const sipwxHtmlContainerCell &);
61 
62     char sipPyMethods[13];
63 };
64 
sipwxHtmlContainerCell(::wxHtmlContainerCell * parent)65 sipwxHtmlContainerCell::sipwxHtmlContainerCell( ::wxHtmlContainerCell*parent):  ::wxHtmlContainerCell(parent), sipPySelf(SIP_NULLPTR)
66 {
67     memset(sipPyMethods, 0, sizeof (sipPyMethods));
68 }
69 
~sipwxHtmlContainerCell()70 sipwxHtmlContainerCell::~sipwxHtmlContainerCell()
71 {
72     sipInstanceDestroyedEx(&sipPySelf);
73 }
74 
AdjustPagebreak(int * pagebreak,const::wxArrayInt & known_pagebreaks,int pageHeight) const75 bool sipwxHtmlContainerCell::AdjustPagebreak(int*pagebreak,const  ::wxArrayInt& known_pagebreaks,int pageHeight) const
76 {
77     sip_gilstate_t sipGILState;
78     PyObject *sipMeth;
79 
80     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,SIP_NULLPTR,sipName_AdjustPagebreak);
81 
82     if (!sipMeth)
83         return  ::wxHtmlContainerCell::AdjustPagebreak(pagebreak,known_pagebreaks,pageHeight);
84 
85     extern bool sipVH__html_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,const  ::wxArrayInt&,int);
86 
87     return sipVH__html_1(sipGILState, 0, sipPySelf, sipMeth, pagebreak, known_pagebreaks, pageHeight);
88 }
89 
Draw(::wxDC & dc,int x,int y,int view_y1,int view_y2,::wxHtmlRenderingInfo & info)90 void sipwxHtmlContainerCell::Draw( ::wxDC& dc,int x,int y,int view_y1,int view_y2, ::wxHtmlRenderingInfo& info)
91 {
92     sip_gilstate_t sipGILState;
93     PyObject *sipMeth;
94 
95     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,SIP_NULLPTR,sipName_Draw);
96 
97     if (!sipMeth)
98     {
99          ::wxHtmlContainerCell::Draw(dc,x,y,view_y1,view_y2,info);
100         return;
101     }
102 
103     extern void sipVH__html_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxDC&,int,int,int,int, ::wxHtmlRenderingInfo&);
104 
105     sipVH__html_2(sipGILState, 0, sipPySelf, sipMeth, dc, x, y, view_y1, view_y2, info);
106 }
107 
DrawInvisible(::wxDC & dc,int x,int y,::wxHtmlRenderingInfo & info)108 void sipwxHtmlContainerCell::DrawInvisible( ::wxDC& dc,int x,int y, ::wxHtmlRenderingInfo& info)
109 {
110     sip_gilstate_t sipGILState;
111     PyObject *sipMeth;
112 
113     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_DrawInvisible);
114 
115     if (!sipMeth)
116     {
117          ::wxHtmlContainerCell::DrawInvisible(dc,x,y,info);
118         return;
119     }
120 
121     extern void sipVH__html_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxDC&,int,int, ::wxHtmlRenderingInfo&);
122 
123     sipVH__html_3(sipGILState, 0, sipPySelf, sipMeth, dc, x, y, info);
124 }
125 
Find(int condition,const void * param) const126 const  ::wxHtmlCell* sipwxHtmlContainerCell::Find(int condition,const void*param) const
127 {
128     sip_gilstate_t sipGILState;
129     PyObject *sipMeth;
130 
131     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,SIP_NULLPTR,sipName_Find);
132 
133     if (!sipMeth)
134         return  ::wxHtmlContainerCell::Find(condition,param);
135 
136     extern const  ::wxHtmlCell* sipVH__html_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const void*);
137 
138     return sipVH__html_4(sipGILState, 0, sipPySelf, sipMeth, condition, param);
139 }
140 
FindCellByPos(::wxCoord x,::wxCoord y,uint flags) const141  ::wxHtmlCell* sipwxHtmlContainerCell::FindCellByPos( ::wxCoord x, ::wxCoord y,uint flags) const
142 {
143     sip_gilstate_t sipGILState;
144     PyObject *sipMeth;
145 
146     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,SIP_NULLPTR,sipName_FindCellByPos);
147 
148     if (!sipMeth)
149         return  ::wxHtmlContainerCell::FindCellByPos(x,y,flags);
150 
151     extern  ::wxHtmlCell* sipVH__html_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxCoord, ::wxCoord,uint);
152 
153     return sipVH__html_5(sipGILState, 0, sipPySelf, sipMeth, x, y, flags);
154 }
155 
GetFirstChild() const156  ::wxHtmlCell* sipwxHtmlContainerCell::GetFirstChild() const
157 {
158     sip_gilstate_t sipGILState;
159     PyObject *sipMeth;
160 
161     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,SIP_NULLPTR,sipName_GetFirstChild);
162 
163     if (!sipMeth)
164         return  ::wxHtmlContainerCell::GetFirstChild();
165 
166     extern  ::wxHtmlCell* sipVH__html_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
167 
168     return sipVH__html_6(sipGILState, 0, sipPySelf, sipMeth);
169 }
170 
GetLink(int x,int y) const171  ::wxHtmlLinkInfo* sipwxHtmlContainerCell::GetLink(int x,int y) const
172 {
173     sip_gilstate_t sipGILState;
174     PyObject *sipMeth;
175 
176     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,SIP_NULLPTR,sipName_GetLink);
177 
178     if (!sipMeth)
179         return  ::wxHtmlContainerCell::GetLink(x,y);
180 
181     extern  ::wxHtmlLinkInfo* sipVH__html_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
182 
183     return sipVH__html_7(sipGILState, 0, sipPySelf, sipMeth, x, y);
184 }
185 
GetMouseCursor(::wxHtmlWindowInterface * window) const186  ::wxCursor sipwxHtmlContainerCell::GetMouseCursor( ::wxHtmlWindowInterface*window) const
187 {
188     sip_gilstate_t sipGILState;
189     PyObject *sipMeth;
190 
191     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,SIP_NULLPTR,sipName_GetMouseCursor);
192 
193     if (!sipMeth)
194         return  ::wxHtmlContainerCell::GetMouseCursor(window);
195 
196     extern  ::wxCursor sipVH__html_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxHtmlWindowInterface*);
197 
198     return sipVH__html_8(sipGILState, 0, sipPySelf, sipMeth, window);
199 }
200 
GetMouseCursorAt(::wxHtmlWindowInterface * window,const::wxPoint & rePos) const201  ::wxCursor sipwxHtmlContainerCell::GetMouseCursorAt( ::wxHtmlWindowInterface*window,const  ::wxPoint& rePos) const
202 {
203     sip_gilstate_t sipGILState;
204     PyObject *sipMeth;
205 
206     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,SIP_NULLPTR,sipName_GetMouseCursorAt);
207 
208     if (!sipMeth)
209         return  ::wxHtmlContainerCell::GetMouseCursorAt(window,rePos);
210 
211     extern  ::wxCursor sipVH__html_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxHtmlWindowInterface*,const  ::wxPoint&);
212 
213     return sipVH__html_9(sipGILState, 0, sipPySelf, sipMeth, window, rePos);
214 }
215 
Layout(int w)216 void sipwxHtmlContainerCell::Layout(int w)
217 {
218     sip_gilstate_t sipGILState;
219     PyObject *sipMeth;
220 
221     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,SIP_NULLPTR,sipName_Layout);
222 
223     if (!sipMeth)
224     {
225          ::wxHtmlContainerCell::Layout(w);
226         return;
227     }
228 
229     extern void sipVH__html_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);
230 
231     sipVH__html_10(sipGILState, 0, sipPySelf, sipMeth, w);
232 }
233 
ProcessMouseClick(::wxHtmlWindowInterface * window,const::wxPoint & pos,const::wxMouseEvent & event)234 bool sipwxHtmlContainerCell::ProcessMouseClick( ::wxHtmlWindowInterface*window,const  ::wxPoint& pos,const  ::wxMouseEvent& event)
235 {
236     sip_gilstate_t sipGILState;
237     PyObject *sipMeth;
238 
239     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,SIP_NULLPTR,sipName_ProcessMouseClick);
240 
241     if (!sipMeth)
242         return  ::wxHtmlContainerCell::ProcessMouseClick(window,pos,event);
243 
244     extern bool sipVH__html_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxHtmlWindowInterface*,const  ::wxPoint&,const  ::wxMouseEvent&);
245 
246     return sipVH__html_11(sipGILState, 0, sipPySelf, sipMeth, window, pos, event);
247 }
248 
SetPos(int x,int y)249 void sipwxHtmlContainerCell::SetPos(int x,int y)
250 {
251     sip_gilstate_t sipGILState;
252     PyObject *sipMeth;
253 
254     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,SIP_NULLPTR,sipName_SetPos);
255 
256     if (!sipMeth)
257     {
258          ::wxHtmlContainerCell::SetPos(x,y);
259         return;
260     }
261 
262     extern void sipVH__html_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
263 
264     sipVH__html_12(sipGILState, 0, sipPySelf, sipMeth, x, y);
265 }
266 
ConvertToText(::wxHtmlSelection * sel) const267  ::wxString sipwxHtmlContainerCell::ConvertToText( ::wxHtmlSelection*sel) const
268 {
269     sip_gilstate_t sipGILState;
270     PyObject *sipMeth;
271 
272     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,SIP_NULLPTR,sipName_ConvertToText);
273 
274     if (!sipMeth)
275         return  ::wxHtmlContainerCell::ConvertToText(sel);
276 
277     extern  ::wxString sipVH__html_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxHtmlSelection*);
278 
279     return sipVH__html_13(sipGILState, 0, sipPySelf, sipMeth, sel);
280 }
281 
282 
283 PyDoc_STRVAR(doc_wxHtmlContainerCell_GetAlignHor, "GetAlignHor() -> int\n"
284 "\n"
285 "Returns container's horizontal alignment.");
286 
287 extern "C" {static PyObject *meth_wxHtmlContainerCell_GetAlignHor(PyObject *, PyObject *);}
meth_wxHtmlContainerCell_GetAlignHor(PyObject * sipSelf,PyObject * sipArgs)288 static PyObject *meth_wxHtmlContainerCell_GetAlignHor(PyObject *sipSelf, PyObject *sipArgs)
289 {
290     PyObject *sipParseErr = SIP_NULLPTR;
291 
292     {
293         const  ::wxHtmlContainerCell *sipCpp;
294 
295         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp))
296         {
297             int sipRes;
298 
299             PyErr_Clear();
300 
301             Py_BEGIN_ALLOW_THREADS
302             sipRes = sipCpp->GetAlignHor();
303             Py_END_ALLOW_THREADS
304 
305             if (PyErr_Occurred())
306                 return 0;
307 
308             return SIPLong_FromLong(sipRes);
309         }
310     }
311 
312     /* Raise an exception if the arguments couldn't be parsed. */
313     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_GetAlignHor, SIP_NULLPTR);
314 
315     return SIP_NULLPTR;
316 }
317 
318 
319 PyDoc_STRVAR(doc_wxHtmlContainerCell_GetAlignVer, "GetAlignVer() -> int\n"
320 "\n"
321 "Returns container's vertical alignment.");
322 
323 extern "C" {static PyObject *meth_wxHtmlContainerCell_GetAlignVer(PyObject *, PyObject *);}
meth_wxHtmlContainerCell_GetAlignVer(PyObject * sipSelf,PyObject * sipArgs)324 static PyObject *meth_wxHtmlContainerCell_GetAlignVer(PyObject *sipSelf, PyObject *sipArgs)
325 {
326     PyObject *sipParseErr = SIP_NULLPTR;
327 
328     {
329         const  ::wxHtmlContainerCell *sipCpp;
330 
331         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp))
332         {
333             int sipRes;
334 
335             PyErr_Clear();
336 
337             Py_BEGIN_ALLOW_THREADS
338             sipRes = sipCpp->GetAlignVer();
339             Py_END_ALLOW_THREADS
340 
341             if (PyErr_Occurred())
342                 return 0;
343 
344             return SIPLong_FromLong(sipRes);
345         }
346     }
347 
348     /* Raise an exception if the arguments couldn't be parsed. */
349     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_GetAlignVer, SIP_NULLPTR);
350 
351     return SIP_NULLPTR;
352 }
353 
354 
355 PyDoc_STRVAR(doc_wxHtmlContainerCell_GetBackgroundColour, "GetBackgroundColour() -> wx.Colour\n"
356 "\n"
357 "Returns the background colour of the container or wxNullColour if no\n"
358 "background colour is set.");
359 
360 extern "C" {static PyObject *meth_wxHtmlContainerCell_GetBackgroundColour(PyObject *, PyObject *);}
meth_wxHtmlContainerCell_GetBackgroundColour(PyObject * sipSelf,PyObject * sipArgs)361 static PyObject *meth_wxHtmlContainerCell_GetBackgroundColour(PyObject *sipSelf, PyObject *sipArgs)
362 {
363     PyObject *sipParseErr = SIP_NULLPTR;
364 
365     {
366          ::wxHtmlContainerCell *sipCpp;
367 
368         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp))
369         {
370              ::wxColour*sipRes;
371 
372             PyErr_Clear();
373 
374             Py_BEGIN_ALLOW_THREADS
375             sipRes = new  ::wxColour(sipCpp->GetBackgroundColour());
376             Py_END_ALLOW_THREADS
377 
378             if (PyErr_Occurred())
379                 return 0;
380 
381             return sipConvertFromNewType(sipRes,sipType_wxColour,SIP_NULLPTR);
382         }
383     }
384 
385     /* Raise an exception if the arguments couldn't be parsed. */
386     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_GetBackgroundColour, SIP_NULLPTR);
387 
388     return SIP_NULLPTR;
389 }
390 
391 
392 PyDoc_STRVAR(doc_wxHtmlContainerCell_GetIndent, "GetIndent(ind) -> int\n"
393 "\n"
394 "Returns the indentation.");
395 
396 extern "C" {static PyObject *meth_wxHtmlContainerCell_GetIndent(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_GetIndent(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)397 static PyObject *meth_wxHtmlContainerCell_GetIndent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
398 {
399     PyObject *sipParseErr = SIP_NULLPTR;
400 
401     {
402         int ind;
403         const  ::wxHtmlContainerCell *sipCpp;
404 
405         static const char *sipKwdList[] = {
406             sipName_ind,
407         };
408 
409         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, &ind))
410         {
411             int sipRes;
412 
413             PyErr_Clear();
414 
415             Py_BEGIN_ALLOW_THREADS
416             sipRes = sipCpp->GetIndent(ind);
417             Py_END_ALLOW_THREADS
418 
419             if (PyErr_Occurred())
420                 return 0;
421 
422             return SIPLong_FromLong(sipRes);
423         }
424     }
425 
426     /* Raise an exception if the arguments couldn't be parsed. */
427     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_GetIndent, SIP_NULLPTR);
428 
429     return SIP_NULLPTR;
430 }
431 
432 
433 PyDoc_STRVAR(doc_wxHtmlContainerCell_GetIndentUnits, "GetIndentUnits(ind) -> int\n"
434 "\n"
435 "Returns the units of indentation for ind where ind is one of the\n"
436 "wxHTML_INDENT_* constants.");
437 
438 extern "C" {static PyObject *meth_wxHtmlContainerCell_GetIndentUnits(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_GetIndentUnits(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)439 static PyObject *meth_wxHtmlContainerCell_GetIndentUnits(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
440 {
441     PyObject *sipParseErr = SIP_NULLPTR;
442 
443     {
444         int ind;
445         const  ::wxHtmlContainerCell *sipCpp;
446 
447         static const char *sipKwdList[] = {
448             sipName_ind,
449         };
450 
451         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, &ind))
452         {
453             int sipRes;
454 
455             PyErr_Clear();
456 
457             Py_BEGIN_ALLOW_THREADS
458             sipRes = sipCpp->GetIndentUnits(ind);
459             Py_END_ALLOW_THREADS
460 
461             if (PyErr_Occurred())
462                 return 0;
463 
464             return SIPLong_FromLong(sipRes);
465         }
466     }
467 
468     /* Raise an exception if the arguments couldn't be parsed. */
469     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_GetIndentUnits, SIP_NULLPTR);
470 
471     return SIP_NULLPTR;
472 }
473 
474 
475 PyDoc_STRVAR(doc_wxHtmlContainerCell_InsertCell, "InsertCell(cell)\n"
476 "\n"
477 "Inserts a new cell into the container.");
478 
479 extern "C" {static PyObject *meth_wxHtmlContainerCell_InsertCell(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_InsertCell(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)480 static PyObject *meth_wxHtmlContainerCell_InsertCell(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
481 {
482     PyObject *sipParseErr = SIP_NULLPTR;
483 
484     {
485          ::wxHtmlCell* cell;
486          ::wxHtmlContainerCell *sipCpp;
487 
488         static const char *sipKwdList[] = {
489             sipName_cell,
490         };
491 
492         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ:", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, sipType_wxHtmlCell, &cell))
493         {
494             PyErr_Clear();
495 
496             Py_BEGIN_ALLOW_THREADS
497             sipCpp->InsertCell(cell);
498             Py_END_ALLOW_THREADS
499 
500             if (PyErr_Occurred())
501                 return 0;
502 
503             Py_INCREF(Py_None);
504             return Py_None;
505         }
506     }
507 
508     /* Raise an exception if the arguments couldn't be parsed. */
509     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_InsertCell, SIP_NULLPTR);
510 
511     return SIP_NULLPTR;
512 }
513 
514 
515 PyDoc_STRVAR(doc_wxHtmlContainerCell_SetAlign, "SetAlign(tag)\n"
516 "\n"
517 "Sets the container's alignment (both horizontal and vertical)\n"
518 "according to the values stored in tag.");
519 
520 extern "C" {static PyObject *meth_wxHtmlContainerCell_SetAlign(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_SetAlign(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)521 static PyObject *meth_wxHtmlContainerCell_SetAlign(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
522 {
523     PyObject *sipParseErr = SIP_NULLPTR;
524 
525     {
526         const  ::wxHtmlTag* tag;
527          ::wxHtmlContainerCell *sipCpp;
528 
529         static const char *sipKwdList[] = {
530             sipName_tag,
531         };
532 
533         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, sipType_wxHtmlTag, &tag))
534         {
535             PyErr_Clear();
536 
537             Py_BEGIN_ALLOW_THREADS
538             sipCpp->SetAlign(*tag);
539             Py_END_ALLOW_THREADS
540 
541             if (PyErr_Occurred())
542                 return 0;
543 
544             Py_INCREF(Py_None);
545             return Py_None;
546         }
547     }
548 
549     /* Raise an exception if the arguments couldn't be parsed. */
550     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_SetAlign, SIP_NULLPTR);
551 
552     return SIP_NULLPTR;
553 }
554 
555 
556 PyDoc_STRVAR(doc_wxHtmlContainerCell_SetAlignHor, "SetAlignHor(al)\n"
557 "\n"
558 "Sets the container's horizontal alignment.");
559 
560 extern "C" {static PyObject *meth_wxHtmlContainerCell_SetAlignHor(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_SetAlignHor(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)561 static PyObject *meth_wxHtmlContainerCell_SetAlignHor(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
562 {
563     PyObject *sipParseErr = SIP_NULLPTR;
564 
565     {
566         int al;
567          ::wxHtmlContainerCell *sipCpp;
568 
569         static const char *sipKwdList[] = {
570             sipName_al,
571         };
572 
573         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, &al))
574         {
575             PyErr_Clear();
576 
577             Py_BEGIN_ALLOW_THREADS
578             sipCpp->SetAlignHor(al);
579             Py_END_ALLOW_THREADS
580 
581             if (PyErr_Occurred())
582                 return 0;
583 
584             Py_INCREF(Py_None);
585             return Py_None;
586         }
587     }
588 
589     /* Raise an exception if the arguments couldn't be parsed. */
590     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_SetAlignHor, SIP_NULLPTR);
591 
592     return SIP_NULLPTR;
593 }
594 
595 
596 PyDoc_STRVAR(doc_wxHtmlContainerCell_SetAlignVer, "SetAlignVer(al)\n"
597 "\n"
598 "Sets the container's vertical alignment.");
599 
600 extern "C" {static PyObject *meth_wxHtmlContainerCell_SetAlignVer(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_SetAlignVer(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)601 static PyObject *meth_wxHtmlContainerCell_SetAlignVer(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
602 {
603     PyObject *sipParseErr = SIP_NULLPTR;
604 
605     {
606         int al;
607          ::wxHtmlContainerCell *sipCpp;
608 
609         static const char *sipKwdList[] = {
610             sipName_al,
611         };
612 
613         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, &al))
614         {
615             PyErr_Clear();
616 
617             Py_BEGIN_ALLOW_THREADS
618             sipCpp->SetAlignVer(al);
619             Py_END_ALLOW_THREADS
620 
621             if (PyErr_Occurred())
622                 return 0;
623 
624             Py_INCREF(Py_None);
625             return Py_None;
626         }
627     }
628 
629     /* Raise an exception if the arguments couldn't be parsed. */
630     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_SetAlignVer, SIP_NULLPTR);
631 
632     return SIP_NULLPTR;
633 }
634 
635 
636 PyDoc_STRVAR(doc_wxHtmlContainerCell_SetBackgroundColour, "SetBackgroundColour(clr)\n"
637 "\n"
638 "Sets the background colour for this container.");
639 
640 extern "C" {static PyObject *meth_wxHtmlContainerCell_SetBackgroundColour(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_SetBackgroundColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)641 static PyObject *meth_wxHtmlContainerCell_SetBackgroundColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
642 {
643     PyObject *sipParseErr = SIP_NULLPTR;
644 
645     {
646         const  ::wxColour* clr;
647         int clrState = 0;
648          ::wxHtmlContainerCell *sipCpp;
649 
650         static const char *sipKwdList[] = {
651             sipName_clr,
652         };
653 
654         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, sipType_wxColour, &clr, &clrState))
655         {
656             PyErr_Clear();
657 
658             Py_BEGIN_ALLOW_THREADS
659             sipCpp->SetBackgroundColour(*clr);
660             Py_END_ALLOW_THREADS
661             sipReleaseType(const_cast< ::wxColour *>(clr),sipType_wxColour,clrState);
662 
663             if (PyErr_Occurred())
664                 return 0;
665 
666             Py_INCREF(Py_None);
667             return Py_None;
668         }
669     }
670 
671     /* Raise an exception if the arguments couldn't be parsed. */
672     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_SetBackgroundColour, SIP_NULLPTR);
673 
674     return SIP_NULLPTR;
675 }
676 
677 
678 PyDoc_STRVAR(doc_wxHtmlContainerCell_SetBorder, "SetBorder(clr1, clr2, border=1)\n"
679 "\n"
680 "Sets the border (frame) colours.");
681 
682 extern "C" {static PyObject *meth_wxHtmlContainerCell_SetBorder(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_SetBorder(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)683 static PyObject *meth_wxHtmlContainerCell_SetBorder(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
684 {
685     PyObject *sipParseErr = SIP_NULLPTR;
686 
687     {
688         const  ::wxColour* clr1;
689         int clr1State = 0;
690         const  ::wxColour* clr2;
691         int clr2State = 0;
692         int border = 1;
693          ::wxHtmlContainerCell *sipCpp;
694 
695         static const char *sipKwdList[] = {
696             sipName_clr1,
697             sipName_clr2,
698             sipName_border,
699         };
700 
701         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J1|i", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, sipType_wxColour, &clr1, &clr1State, sipType_wxColour, &clr2, &clr2State, &border))
702         {
703             PyErr_Clear();
704 
705             Py_BEGIN_ALLOW_THREADS
706             sipCpp->SetBorder(*clr1,*clr2,border);
707             Py_END_ALLOW_THREADS
708             sipReleaseType(const_cast< ::wxColour *>(clr1),sipType_wxColour,clr1State);
709             sipReleaseType(const_cast< ::wxColour *>(clr2),sipType_wxColour,clr2State);
710 
711             if (PyErr_Occurred())
712                 return 0;
713 
714             Py_INCREF(Py_None);
715             return Py_None;
716         }
717     }
718 
719     /* Raise an exception if the arguments couldn't be parsed. */
720     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_SetBorder, SIP_NULLPTR);
721 
722     return SIP_NULLPTR;
723 }
724 
725 
726 PyDoc_STRVAR(doc_wxHtmlContainerCell_SetIndent, "SetIndent(i, what, units=HTML_UNITS_PIXELS)\n"
727 "\n"
728 "Sets the indentation (free space between borders of container and\n"
729 "subcells).");
730 
731 extern "C" {static PyObject *meth_wxHtmlContainerCell_SetIndent(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_SetIndent(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)732 static PyObject *meth_wxHtmlContainerCell_SetIndent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
733 {
734     PyObject *sipParseErr = SIP_NULLPTR;
735 
736     {
737         int i;
738         int what;
739         int units = wxHTML_UNITS_PIXELS;
740          ::wxHtmlContainerCell *sipCpp;
741 
742         static const char *sipKwdList[] = {
743             sipName_i,
744             sipName_what,
745             sipName_units,
746         };
747 
748         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii|i", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, &i, &what, &units))
749         {
750             PyErr_Clear();
751 
752             Py_BEGIN_ALLOW_THREADS
753             sipCpp->SetIndent(i,what,units);
754             Py_END_ALLOW_THREADS
755 
756             if (PyErr_Occurred())
757                 return 0;
758 
759             Py_INCREF(Py_None);
760             return Py_None;
761         }
762     }
763 
764     /* Raise an exception if the arguments couldn't be parsed. */
765     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_SetIndent, SIP_NULLPTR);
766 
767     return SIP_NULLPTR;
768 }
769 
770 
771 PyDoc_STRVAR(doc_wxHtmlContainerCell_SetMinHeight, "SetMinHeight(h, align=HTML_ALIGN_TOP)\n"
772 "\n"
773 "Sets minimal height of the container.");
774 
775 extern "C" {static PyObject *meth_wxHtmlContainerCell_SetMinHeight(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_SetMinHeight(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)776 static PyObject *meth_wxHtmlContainerCell_SetMinHeight(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
777 {
778     PyObject *sipParseErr = SIP_NULLPTR;
779 
780     {
781         int h;
782         int align = wxHTML_ALIGN_TOP;
783          ::wxHtmlContainerCell *sipCpp;
784 
785         static const char *sipKwdList[] = {
786             sipName_h,
787             sipName_align,
788         };
789 
790         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi|i", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, &h, &align))
791         {
792             PyErr_Clear();
793 
794             Py_BEGIN_ALLOW_THREADS
795             sipCpp->SetMinHeight(h,align);
796             Py_END_ALLOW_THREADS
797 
798             if (PyErr_Occurred())
799                 return 0;
800 
801             Py_INCREF(Py_None);
802             return Py_None;
803         }
804     }
805 
806     /* Raise an exception if the arguments couldn't be parsed. */
807     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_SetMinHeight, SIP_NULLPTR);
808 
809     return SIP_NULLPTR;
810 }
811 
812 
813 PyDoc_STRVAR(doc_wxHtmlContainerCell_SetWidthFloat, "SetWidthFloat(w, units)\n"
814 "SetWidthFloat(tag, pixel_scale=1.0)\n"
815 "\n"
816 "Sets floating width adjustment.\n"
817 "");
818 
819 extern "C" {static PyObject *meth_wxHtmlContainerCell_SetWidthFloat(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_SetWidthFloat(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)820 static PyObject *meth_wxHtmlContainerCell_SetWidthFloat(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
821 {
822     PyObject *sipParseErr = SIP_NULLPTR;
823 
824     {
825         int w;
826         int units;
827          ::wxHtmlContainerCell *sipCpp;
828 
829         static const char *sipKwdList[] = {
830             sipName_w,
831             sipName_units,
832         };
833 
834         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, &w, &units))
835         {
836             PyErr_Clear();
837 
838             Py_BEGIN_ALLOW_THREADS
839             sipCpp->SetWidthFloat(w,units);
840             Py_END_ALLOW_THREADS
841 
842             if (PyErr_Occurred())
843                 return 0;
844 
845             Py_INCREF(Py_None);
846             return Py_None;
847         }
848     }
849 
850     {
851         const  ::wxHtmlTag* tag;
852         double pixel_scale = 1;
853          ::wxHtmlContainerCell *sipCpp;
854 
855         static const char *sipKwdList[] = {
856             sipName_tag,
857             sipName_pixel_scale,
858         };
859 
860         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9|d", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, sipType_wxHtmlTag, &tag, &pixel_scale))
861         {
862             PyErr_Clear();
863 
864             Py_BEGIN_ALLOW_THREADS
865             sipCpp->SetWidthFloat(*tag,pixel_scale);
866             Py_END_ALLOW_THREADS
867 
868             if (PyErr_Occurred())
869                 return 0;
870 
871             Py_INCREF(Py_None);
872             return Py_None;
873         }
874     }
875 
876     /* Raise an exception if the arguments couldn't be parsed. */
877     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_SetWidthFloat, SIP_NULLPTR);
878 
879     return SIP_NULLPTR;
880 }
881 
882 
883 PyDoc_STRVAR(doc_wxHtmlContainerCell_Draw, "Draw(self, dc: DC, x: int, y: int, view_y1: int, view_y2: int, info: HtmlRenderingInfo)");
884 
885 extern "C" {static PyObject *meth_wxHtmlContainerCell_Draw(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_Draw(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)886 static PyObject *meth_wxHtmlContainerCell_Draw(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
887 {
888     PyObject *sipParseErr = SIP_NULLPTR;
889     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
890 
891     {
892          ::wxDC* dc;
893         int x;
894         int y;
895         int view_y1;
896         int view_y2;
897          ::wxHtmlRenderingInfo* info;
898          ::wxHtmlContainerCell *sipCpp;
899 
900         static const char *sipKwdList[] = {
901             sipName_dc,
902             sipName_x,
903             sipName_y,
904             sipName_view_y1,
905             sipName_view_y2,
906             sipName_info,
907         };
908 
909         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9iiiiJ9", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, sipType_wxDC, &dc, &x, &y, &view_y1, &view_y2, sipType_wxHtmlRenderingInfo, &info))
910         {
911             PyErr_Clear();
912 
913             Py_BEGIN_ALLOW_THREADS
914             (sipSelfWasArg ? sipCpp-> ::wxHtmlContainerCell::Draw(*dc,x,y,view_y1,view_y2,*info) : sipCpp->Draw(*dc,x,y,view_y1,view_y2,*info));
915             Py_END_ALLOW_THREADS
916 
917             if (PyErr_Occurred())
918                 return 0;
919 
920             Py_INCREF(Py_None);
921             return Py_None;
922         }
923     }
924 
925     /* Raise an exception if the arguments couldn't be parsed. */
926     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_Draw, doc_wxHtmlContainerCell_Draw);
927 
928     return SIP_NULLPTR;
929 }
930 
931 
932 PyDoc_STRVAR(doc_wxHtmlContainerCell_DrawInvisible, "DrawInvisible(self, dc: DC, x: int, y: int, info: HtmlRenderingInfo)");
933 
934 extern "C" {static PyObject *meth_wxHtmlContainerCell_DrawInvisible(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_DrawInvisible(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)935 static PyObject *meth_wxHtmlContainerCell_DrawInvisible(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
936 {
937     PyObject *sipParseErr = SIP_NULLPTR;
938     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
939 
940     {
941          ::wxDC* dc;
942         int x;
943         int y;
944          ::wxHtmlRenderingInfo* info;
945          ::wxHtmlContainerCell *sipCpp;
946 
947         static const char *sipKwdList[] = {
948             sipName_dc,
949             sipName_x,
950             sipName_y,
951             sipName_info,
952         };
953 
954         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9iiJ9", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, sipType_wxDC, &dc, &x, &y, sipType_wxHtmlRenderingInfo, &info))
955         {
956             PyErr_Clear();
957 
958             Py_BEGIN_ALLOW_THREADS
959             (sipSelfWasArg ? sipCpp-> ::wxHtmlContainerCell::DrawInvisible(*dc,x,y,*info) : sipCpp->DrawInvisible(*dc,x,y,*info));
960             Py_END_ALLOW_THREADS
961 
962             if (PyErr_Occurred())
963                 return 0;
964 
965             Py_INCREF(Py_None);
966             return Py_None;
967         }
968     }
969 
970     /* Raise an exception if the arguments couldn't be parsed. */
971     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_DrawInvisible, doc_wxHtmlContainerCell_DrawInvisible);
972 
973     return SIP_NULLPTR;
974 }
975 
976 
977 PyDoc_STRVAR(doc_wxHtmlContainerCell_GetMouseCursor, "GetMouseCursor(self, window: HtmlWindowInterface) -> Cursor");
978 
979 extern "C" {static PyObject *meth_wxHtmlContainerCell_GetMouseCursor(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_GetMouseCursor(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)980 static PyObject *meth_wxHtmlContainerCell_GetMouseCursor(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
981 {
982     PyObject *sipParseErr = SIP_NULLPTR;
983     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
984 
985     {
986          ::wxHtmlWindowInterface* window;
987         const  ::wxHtmlContainerCell *sipCpp;
988 
989         static const char *sipKwdList[] = {
990             sipName_window,
991         };
992 
993         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, sipType_wxHtmlWindowInterface, &window))
994         {
995              ::wxCursor*sipRes;
996 
997             PyErr_Clear();
998 
999             Py_BEGIN_ALLOW_THREADS
1000             sipRes = new  ::wxCursor((sipSelfWasArg ? sipCpp-> ::wxHtmlContainerCell::GetMouseCursor(window) : sipCpp->GetMouseCursor(window)));
1001             Py_END_ALLOW_THREADS
1002 
1003             if (PyErr_Occurred())
1004                 return 0;
1005 
1006             return sipConvertFromNewType(sipRes,sipType_wxCursor,SIP_NULLPTR);
1007         }
1008     }
1009 
1010     /* Raise an exception if the arguments couldn't be parsed. */
1011     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_GetMouseCursor, doc_wxHtmlContainerCell_GetMouseCursor);
1012 
1013     return SIP_NULLPTR;
1014 }
1015 
1016 
1017 PyDoc_STRVAR(doc_wxHtmlContainerCell_Layout, "Layout(self, w: int)");
1018 
1019 extern "C" {static PyObject *meth_wxHtmlContainerCell_Layout(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlContainerCell_Layout(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1020 static PyObject *meth_wxHtmlContainerCell_Layout(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1021 {
1022     PyObject *sipParseErr = SIP_NULLPTR;
1023     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1024 
1025     {
1026         int w;
1027          ::wxHtmlContainerCell *sipCpp;
1028 
1029         static const char *sipKwdList[] = {
1030             sipName_w,
1031         };
1032 
1033         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxHtmlContainerCell, &sipCpp, &w))
1034         {
1035             PyErr_Clear();
1036 
1037             Py_BEGIN_ALLOW_THREADS
1038             (sipSelfWasArg ? sipCpp-> ::wxHtmlContainerCell::Layout(w) : sipCpp->Layout(w));
1039             Py_END_ALLOW_THREADS
1040 
1041             if (PyErr_Occurred())
1042                 return 0;
1043 
1044             Py_INCREF(Py_None);
1045             return Py_None;
1046         }
1047     }
1048 
1049     /* Raise an exception if the arguments couldn't be parsed. */
1050     sipNoMethod(sipParseErr, sipName_HtmlContainerCell, sipName_Layout, doc_wxHtmlContainerCell_Layout);
1051 
1052     return SIP_NULLPTR;
1053 }
1054 
1055 
1056 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
1057 extern "C" {static void *cast_wxHtmlContainerCell(void *, const sipTypeDef *);}
cast_wxHtmlContainerCell(void * sipCppV,const sipTypeDef * targetType)1058 static void *cast_wxHtmlContainerCell(void *sipCppV, const sipTypeDef *targetType)
1059 {
1060      ::wxHtmlContainerCell *sipCpp = reinterpret_cast< ::wxHtmlContainerCell *>(sipCppV);
1061 
1062     if (targetType == sipType_wxHtmlCell)
1063         return static_cast< ::wxHtmlCell *>(sipCpp);
1064 
1065     if (targetType == sipType_wxObject)
1066         return static_cast< ::wxObject *>(sipCpp);
1067 
1068     return sipCppV;
1069 }
1070 
1071 
1072 /* Call the instance's destructor. */
1073 extern "C" {static void release_wxHtmlContainerCell(void *, int);}
release_wxHtmlContainerCell(void * sipCppV,int sipState)1074 static void release_wxHtmlContainerCell(void *sipCppV, int sipState)
1075 {
1076     Py_BEGIN_ALLOW_THREADS
1077 
1078     if (sipState & SIP_DERIVED_CLASS)
1079         delete reinterpret_cast<sipwxHtmlContainerCell *>(sipCppV);
1080     else
1081         delete reinterpret_cast< ::wxHtmlContainerCell *>(sipCppV);
1082 
1083     Py_END_ALLOW_THREADS
1084 }
1085 
1086 
1087 extern "C" {static void dealloc_wxHtmlContainerCell(sipSimpleWrapper *);}
dealloc_wxHtmlContainerCell(sipSimpleWrapper * sipSelf)1088 static void dealloc_wxHtmlContainerCell(sipSimpleWrapper *sipSelf)
1089 {
1090     if (sipIsDerivedClass(sipSelf))
1091         reinterpret_cast<sipwxHtmlContainerCell *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
1092 
1093     if (sipIsOwnedByPython(sipSelf))
1094     {
1095         release_wxHtmlContainerCell(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
1096     }
1097 }
1098 
1099 
1100 extern "C" {static void *init_type_wxHtmlContainerCell(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxHtmlContainerCell(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)1101 static void *init_type_wxHtmlContainerCell(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
1102 {
1103     sipwxHtmlContainerCell *sipCpp = SIP_NULLPTR;
1104 
1105     {
1106          ::wxHtmlContainerCell* parent;
1107 
1108         static const char *sipKwdList[] = {
1109             sipName_parent,
1110         };
1111 
1112         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J8", sipType_wxHtmlContainerCell, &parent))
1113         {
1114             PyErr_Clear();
1115 
1116             Py_BEGIN_ALLOW_THREADS
1117             sipCpp = new sipwxHtmlContainerCell(parent);
1118             Py_END_ALLOW_THREADS
1119 
1120             if (PyErr_Occurred())
1121             {
1122                 delete sipCpp;
1123                 return SIP_NULLPTR;
1124             }
1125 
1126             sipCpp->sipPySelf = sipSelf;
1127 
1128             return sipCpp;
1129         }
1130     }
1131 
1132     return SIP_NULLPTR;
1133 }
1134 
1135 
1136 /* Define this type's super-types. */
1137 static sipEncodedTypeDef supers_wxHtmlContainerCell[] = {{2, 255, 1}};
1138 
1139 
1140 static PyMethodDef methods_wxHtmlContainerCell[] = {
1141     {SIP_MLNAME_CAST(sipName_Draw), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_Draw), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_Draw)},
1142     {SIP_MLNAME_CAST(sipName_DrawInvisible), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_DrawInvisible), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_DrawInvisible)},
1143     {SIP_MLNAME_CAST(sipName_GetAlignHor), meth_wxHtmlContainerCell_GetAlignHor, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_GetAlignHor)},
1144     {SIP_MLNAME_CAST(sipName_GetAlignVer), meth_wxHtmlContainerCell_GetAlignVer, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_GetAlignVer)},
1145     {SIP_MLNAME_CAST(sipName_GetBackgroundColour), meth_wxHtmlContainerCell_GetBackgroundColour, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_GetBackgroundColour)},
1146     {SIP_MLNAME_CAST(sipName_GetIndent), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_GetIndent), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_GetIndent)},
1147     {SIP_MLNAME_CAST(sipName_GetIndentUnits), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_GetIndentUnits), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_GetIndentUnits)},
1148     {SIP_MLNAME_CAST(sipName_GetMouseCursor), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_GetMouseCursor), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_GetMouseCursor)},
1149     {SIP_MLNAME_CAST(sipName_InsertCell), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_InsertCell), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_InsertCell)},
1150     {SIP_MLNAME_CAST(sipName_Layout), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_Layout), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_Layout)},
1151     {SIP_MLNAME_CAST(sipName_SetAlign), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_SetAlign), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_SetAlign)},
1152     {SIP_MLNAME_CAST(sipName_SetAlignHor), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_SetAlignHor), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_SetAlignHor)},
1153     {SIP_MLNAME_CAST(sipName_SetAlignVer), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_SetAlignVer), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_SetAlignVer)},
1154     {SIP_MLNAME_CAST(sipName_SetBackgroundColour), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_SetBackgroundColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_SetBackgroundColour)},
1155     {SIP_MLNAME_CAST(sipName_SetBorder), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_SetBorder), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_SetBorder)},
1156     {SIP_MLNAME_CAST(sipName_SetIndent), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_SetIndent), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_SetIndent)},
1157     {SIP_MLNAME_CAST(sipName_SetMinHeight), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_SetMinHeight), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_SetMinHeight)},
1158     {SIP_MLNAME_CAST(sipName_SetWidthFloat), SIP_MLMETH_CAST(meth_wxHtmlContainerCell_SetWidthFloat), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlContainerCell_SetWidthFloat)}
1159 };
1160 
1161 sipVariableDef variables_wxHtmlContainerCell[] = {
1162     {PropertyVariable, sipName_BackgroundColour, &methods_wxHtmlContainerCell[4], &methods_wxHtmlContainerCell[13], SIP_NULLPTR, SIP_NULLPTR},
1163     {PropertyVariable, sipName_AlignVer, &methods_wxHtmlContainerCell[3], &methods_wxHtmlContainerCell[12], SIP_NULLPTR, SIP_NULLPTR},
1164     {PropertyVariable, sipName_AlignHor, &methods_wxHtmlContainerCell[2], &methods_wxHtmlContainerCell[11], SIP_NULLPTR, SIP_NULLPTR},
1165 };
1166 
1167 PyDoc_STRVAR(doc_wxHtmlContainerCell, "HtmlContainerCell(parent)\n"
1168 "\n"
1169 "The wxHtmlContainerCell class is an implementation of a cell that may\n"
1170 "contain more cells in it.");
1171 
1172 
1173 sipClassTypeDef sipTypeDef__html_wxHtmlContainerCell = {
1174     {
1175         -1,
1176         SIP_NULLPTR,
1177         SIP_NULLPTR,
1178         SIP_TYPE_SCC|SIP_TYPE_CLASS,
1179         sipNameNr_wxHtmlContainerCell,
1180         {SIP_NULLPTR},
1181         SIP_NULLPTR
1182     },
1183     {
1184         sipNameNr_HtmlContainerCell,
1185         {0, 0, 1},
1186         18, methods_wxHtmlContainerCell,
1187         0, SIP_NULLPTR,
1188         3, variables_wxHtmlContainerCell,
1189         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1190     },
1191     doc_wxHtmlContainerCell,
1192     -1,
1193     -1,
1194     supers_wxHtmlContainerCell,
1195     SIP_NULLPTR,
1196     init_type_wxHtmlContainerCell,
1197     SIP_NULLPTR,
1198     SIP_NULLPTR,
1199 #if PY_MAJOR_VERSION >= 3
1200     SIP_NULLPTR,
1201     SIP_NULLPTR,
1202 #else
1203     SIP_NULLPTR,
1204     SIP_NULLPTR,
1205     SIP_NULLPTR,
1206     SIP_NULLPTR,
1207 #endif
1208     dealloc_wxHtmlContainerCell,
1209     SIP_NULLPTR,
1210     SIP_NULLPTR,
1211     SIP_NULLPTR,
1212     release_wxHtmlContainerCell,
1213     cast_wxHtmlContainerCell,
1214     SIP_NULLPTR,
1215     SIP_NULLPTR,
1216     SIP_NULLPTR,
1217     SIP_NULLPTR,
1218     SIP_NULLPTR,
1219     SIP_NULLPTR
1220 };
1221