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/htmprint.h>
13 
14         #include <wx/dc.h>
15         #include <wx/object.h>
16         #include <wx/object.h>
17         #include <wx/object.h>
_wxHtmlDCRenderer_SetFonts(wxHtmlDCRenderer * self,const wxString * normal_face,const wxString * fixed_face,const wxArrayInt * sizes)18     void _wxHtmlDCRenderer_SetFonts(wxHtmlDCRenderer* self, const wxString * normal_face, const wxString * fixed_face, const wxArrayInt* sizes)
19     {
20         if (sizes->GetCount() != 7) {
21             wxPyErr_SetString(PyExc_ValueError, "Sequence of 7 integers expected.");
22             return;
23         }
24         self->SetFonts(*normal_face, *fixed_face, &sizes->Item(0));
25     }
26 
27 
28 PyDoc_STRVAR(doc_wxHtmlDCRenderer_GetTotalWidth, "GetTotalWidth() -> int\n"
29 "\n"
30 "Returns the width of the HTML text in pixels.");
31 
32 extern "C" {static PyObject *meth_wxHtmlDCRenderer_GetTotalWidth(PyObject *, PyObject *);}
meth_wxHtmlDCRenderer_GetTotalWidth(PyObject * sipSelf,PyObject * sipArgs)33 static PyObject *meth_wxHtmlDCRenderer_GetTotalWidth(PyObject *sipSelf, PyObject *sipArgs)
34 {
35     PyObject *sipParseErr = SIP_NULLPTR;
36 
37     {
38         const  ::wxHtmlDCRenderer *sipCpp;
39 
40         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlDCRenderer, &sipCpp))
41         {
42             int sipRes;
43 
44             PyErr_Clear();
45 
46             Py_BEGIN_ALLOW_THREADS
47             sipRes = sipCpp->GetTotalWidth();
48             Py_END_ALLOW_THREADS
49 
50             if (PyErr_Occurred())
51                 return 0;
52 
53             return SIPLong_FromLong(sipRes);
54         }
55     }
56 
57     /* Raise an exception if the arguments couldn't be parsed. */
58     sipNoMethod(sipParseErr, sipName_HtmlDCRenderer, sipName_GetTotalWidth, SIP_NULLPTR);
59 
60     return SIP_NULLPTR;
61 }
62 
63 
64 PyDoc_STRVAR(doc_wxHtmlDCRenderer_GetTotalHeight, "GetTotalHeight() -> int\n"
65 "\n"
66 "Returns the height of the HTML text in pixels.");
67 
68 extern "C" {static PyObject *meth_wxHtmlDCRenderer_GetTotalHeight(PyObject *, PyObject *);}
meth_wxHtmlDCRenderer_GetTotalHeight(PyObject * sipSelf,PyObject * sipArgs)69 static PyObject *meth_wxHtmlDCRenderer_GetTotalHeight(PyObject *sipSelf, PyObject *sipArgs)
70 {
71     PyObject *sipParseErr = SIP_NULLPTR;
72 
73     {
74         const  ::wxHtmlDCRenderer *sipCpp;
75 
76         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlDCRenderer, &sipCpp))
77         {
78             int sipRes;
79 
80             PyErr_Clear();
81 
82             Py_BEGIN_ALLOW_THREADS
83             sipRes = sipCpp->GetTotalHeight();
84             Py_END_ALLOW_THREADS
85 
86             if (PyErr_Occurred())
87                 return 0;
88 
89             return SIPLong_FromLong(sipRes);
90         }
91     }
92 
93     /* Raise an exception if the arguments couldn't be parsed. */
94     sipNoMethod(sipParseErr, sipName_HtmlDCRenderer, sipName_GetTotalHeight, SIP_NULLPTR);
95 
96     return SIP_NULLPTR;
97 }
98 
99 
100 PyDoc_STRVAR(doc_wxHtmlDCRenderer_Render, "Render(x, y, known_pagebreaks, from_=0, dont_render=False, to_=INT_MAX) -> int\n"
101 "\n"
102 "Renders HTML text to the DC.");
103 
104 extern "C" {static PyObject *meth_wxHtmlDCRenderer_Render(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlDCRenderer_Render(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)105 static PyObject *meth_wxHtmlDCRenderer_Render(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
106 {
107     PyObject *sipParseErr = SIP_NULLPTR;
108 
109     {
110         int x;
111         int y;
112          ::wxArrayInt* known_pagebreaks;
113         int known_pagebreaksState = 0;
114         int from_ = 0;
115         int dont_render = 0;
116         int to_ = INT_MAX;
117          ::wxHtmlDCRenderer *sipCpp;
118 
119         static const char *sipKwdList[] = {
120             sipName_x,
121             sipName_y,
122             sipName_known_pagebreaks,
123             sipName_from_,
124             sipName_dont_render,
125             sipName_to_,
126         };
127 
128         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiiJ1|iii", &sipSelf, sipType_wxHtmlDCRenderer, &sipCpp, &x, &y, sipType_wxArrayInt,&known_pagebreaks, &known_pagebreaksState, &from_, &dont_render, &to_))
129         {
130             int sipRes;
131 
132             PyErr_Clear();
133 
134             Py_BEGIN_ALLOW_THREADS
135             sipRes = sipCpp->Render(x,y,*known_pagebreaks,from_,dont_render,to_);
136             Py_END_ALLOW_THREADS
137             sipReleaseType(known_pagebreaks,sipType_wxArrayInt,known_pagebreaksState);
138 
139             if (PyErr_Occurred())
140                 return 0;
141 
142             return SIPLong_FromLong(sipRes);
143         }
144     }
145 
146     /* Raise an exception if the arguments couldn't be parsed. */
147     sipNoMethod(sipParseErr, sipName_HtmlDCRenderer, sipName_Render, SIP_NULLPTR);
148 
149     return SIP_NULLPTR;
150 }
151 
152 
153 PyDoc_STRVAR(doc_wxHtmlDCRenderer_SetDC, "SetDC(dc, pixel_scale=1.0)\n"
154 "\n"
155 "Assign DC instance to the renderer.");
156 
157 extern "C" {static PyObject *meth_wxHtmlDCRenderer_SetDC(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlDCRenderer_SetDC(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)158 static PyObject *meth_wxHtmlDCRenderer_SetDC(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
159 {
160     PyObject *sipParseErr = SIP_NULLPTR;
161 
162     {
163          ::wxDC* dc;
164         double pixel_scale = 1;
165          ::wxHtmlDCRenderer *sipCpp;
166 
167         static const char *sipKwdList[] = {
168             sipName_dc,
169             sipName_pixel_scale,
170         };
171 
172         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8|d", &sipSelf, sipType_wxHtmlDCRenderer, &sipCpp, sipType_wxDC, &dc, &pixel_scale))
173         {
174             PyErr_Clear();
175 
176             Py_BEGIN_ALLOW_THREADS
177             sipCpp->SetDC(dc,pixel_scale);
178             Py_END_ALLOW_THREADS
179 
180             if (PyErr_Occurred())
181                 return 0;
182 
183             Py_INCREF(Py_None);
184             return Py_None;
185         }
186     }
187 
188     /* Raise an exception if the arguments couldn't be parsed. */
189     sipNoMethod(sipParseErr, sipName_HtmlDCRenderer, sipName_SetDC, SIP_NULLPTR);
190 
191     return SIP_NULLPTR;
192 }
193 
194 
195 PyDoc_STRVAR(doc_wxHtmlDCRenderer_SetFonts, "SetFonts(normal_face, fixed_face, sizes)\n"
196 "\n"
197 "This function sets font sizes and faces.");
198 
199 extern "C" {static PyObject *meth_wxHtmlDCRenderer_SetFonts(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlDCRenderer_SetFonts(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)200 static PyObject *meth_wxHtmlDCRenderer_SetFonts(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
201 {
202     PyObject *sipParseErr = SIP_NULLPTR;
203 
204     {
205         const  ::wxString* normal_face;
206         int normal_faceState = 0;
207         const  ::wxString* fixed_face;
208         int fixed_faceState = 0;
209         const  ::wxArrayInt* sizes;
210         int sizesState = 0;
211          ::wxHtmlDCRenderer *sipCpp;
212 
213         static const char *sipKwdList[] = {
214             sipName_normal_face,
215             sipName_fixed_face,
216             sipName_sizes,
217         };
218 
219         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J1J1", &sipSelf, sipType_wxHtmlDCRenderer, &sipCpp, sipType_wxString,&normal_face, &normal_faceState, sipType_wxString,&fixed_face, &fixed_faceState, sipType_wxArrayInt,&sizes, &sizesState))
220         {
221             int sipIsErr = 0;
222 
223         PyErr_Clear();
224         Py_BEGIN_ALLOW_THREADS
225         _wxHtmlDCRenderer_SetFonts(sipCpp, normal_face, fixed_face, sizes);
226         Py_END_ALLOW_THREADS
227         if (PyErr_Occurred()) sipIsErr = 1;
228             sipReleaseType(const_cast< ::wxString *>(normal_face),sipType_wxString,normal_faceState);
229             sipReleaseType(const_cast< ::wxString *>(fixed_face),sipType_wxString,fixed_faceState);
230             sipReleaseType(const_cast< ::wxArrayInt *>(sizes),sipType_wxArrayInt,sizesState);
231 
232             if (sipIsErr)
233                 return 0;
234 
235             Py_INCREF(Py_None);
236             return Py_None;
237         }
238     }
239 
240     /* Raise an exception if the arguments couldn't be parsed. */
241     sipNoMethod(sipParseErr, sipName_HtmlDCRenderer, sipName_SetFonts, SIP_NULLPTR);
242 
243     return SIP_NULLPTR;
244 }
245 
246 
247 PyDoc_STRVAR(doc_wxHtmlDCRenderer_SetStandardFonts, "SetStandardFonts(size=-1, normal_face=wx.EmptyString, fixed_face=wx.EmptyString)\n"
248 "\n"
249 "Sets font sizes to be relative to the given size or the system default\n"
250 "size; use either specified or default font.");
251 
252 extern "C" {static PyObject *meth_wxHtmlDCRenderer_SetStandardFonts(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlDCRenderer_SetStandardFonts(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)253 static PyObject *meth_wxHtmlDCRenderer_SetStandardFonts(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
254 {
255     PyObject *sipParseErr = SIP_NULLPTR;
256 
257     {
258         int size = -1;
259         const  ::wxString& normal_facedef = wxEmptyString;
260         const  ::wxString* normal_face = &normal_facedef;
261         int normal_faceState = 0;
262         const  ::wxString& fixed_facedef = wxEmptyString;
263         const  ::wxString* fixed_face = &fixed_facedef;
264         int fixed_faceState = 0;
265          ::wxHtmlDCRenderer *sipCpp;
266 
267         static const char *sipKwdList[] = {
268             sipName_size,
269             sipName_normal_face,
270             sipName_fixed_face,
271         };
272 
273         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|iJ1J1", &sipSelf, sipType_wxHtmlDCRenderer, &sipCpp, &size, sipType_wxString,&normal_face, &normal_faceState, sipType_wxString,&fixed_face, &fixed_faceState))
274         {
275             PyErr_Clear();
276 
277             Py_BEGIN_ALLOW_THREADS
278             sipCpp->SetStandardFonts(size,*normal_face,*fixed_face);
279             Py_END_ALLOW_THREADS
280             sipReleaseType(const_cast< ::wxString *>(normal_face),sipType_wxString,normal_faceState);
281             sipReleaseType(const_cast< ::wxString *>(fixed_face),sipType_wxString,fixed_faceState);
282 
283             if (PyErr_Occurred())
284                 return 0;
285 
286             Py_INCREF(Py_None);
287             return Py_None;
288         }
289     }
290 
291     /* Raise an exception if the arguments couldn't be parsed. */
292     sipNoMethod(sipParseErr, sipName_HtmlDCRenderer, sipName_SetStandardFonts, SIP_NULLPTR);
293 
294     return SIP_NULLPTR;
295 }
296 
297 
298 PyDoc_STRVAR(doc_wxHtmlDCRenderer_SetHtmlText, "SetHtmlText(html, basepath=wx.EmptyString, isdir=True)\n"
299 "\n"
300 "Assign text to the renderer.");
301 
302 extern "C" {static PyObject *meth_wxHtmlDCRenderer_SetHtmlText(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlDCRenderer_SetHtmlText(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)303 static PyObject *meth_wxHtmlDCRenderer_SetHtmlText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
304 {
305     PyObject *sipParseErr = SIP_NULLPTR;
306 
307     {
308         const  ::wxString* html;
309         int htmlState = 0;
310         const  ::wxString& basepathdef = wxEmptyString;
311         const  ::wxString* basepath = &basepathdef;
312         int basepathState = 0;
313         bool isdir = 1;
314          ::wxHtmlDCRenderer *sipCpp;
315 
316         static const char *sipKwdList[] = {
317             sipName_html,
318             sipName_basepath,
319             sipName_isdir,
320         };
321 
322         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|J1b", &sipSelf, sipType_wxHtmlDCRenderer, &sipCpp, sipType_wxString,&html, &htmlState, sipType_wxString,&basepath, &basepathState, &isdir))
323         {
324             PyErr_Clear();
325 
326             Py_BEGIN_ALLOW_THREADS
327             sipCpp->SetHtmlText(*html,*basepath,isdir);
328             Py_END_ALLOW_THREADS
329             sipReleaseType(const_cast< ::wxString *>(html),sipType_wxString,htmlState);
330             sipReleaseType(const_cast< ::wxString *>(basepath),sipType_wxString,basepathState);
331 
332             if (PyErr_Occurred())
333                 return 0;
334 
335             Py_INCREF(Py_None);
336             return Py_None;
337         }
338     }
339 
340     /* Raise an exception if the arguments couldn't be parsed. */
341     sipNoMethod(sipParseErr, sipName_HtmlDCRenderer, sipName_SetHtmlText, SIP_NULLPTR);
342 
343     return SIP_NULLPTR;
344 }
345 
346 
347 PyDoc_STRVAR(doc_wxHtmlDCRenderer_SetSize, "SetSize(width, height)\n"
348 "\n"
349 "Set size of output rectangle, in pixels.");
350 
351 extern "C" {static PyObject *meth_wxHtmlDCRenderer_SetSize(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlDCRenderer_SetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)352 static PyObject *meth_wxHtmlDCRenderer_SetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
353 {
354     PyObject *sipParseErr = SIP_NULLPTR;
355 
356     {
357         int width;
358         int height;
359          ::wxHtmlDCRenderer *sipCpp;
360 
361         static const char *sipKwdList[] = {
362             sipName_width,
363             sipName_height,
364         };
365 
366         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxHtmlDCRenderer, &sipCpp, &width, &height))
367         {
368             PyErr_Clear();
369 
370             Py_BEGIN_ALLOW_THREADS
371             sipCpp->SetSize(width,height);
372             Py_END_ALLOW_THREADS
373 
374             if (PyErr_Occurred())
375                 return 0;
376 
377             Py_INCREF(Py_None);
378             return Py_None;
379         }
380     }
381 
382     /* Raise an exception if the arguments couldn't be parsed. */
383     sipNoMethod(sipParseErr, sipName_HtmlDCRenderer, sipName_SetSize, SIP_NULLPTR);
384 
385     return SIP_NULLPTR;
386 }
387 
388 
389 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
390 extern "C" {static void *cast_wxHtmlDCRenderer(void *, const sipTypeDef *);}
cast_wxHtmlDCRenderer(void * sipCppV,const sipTypeDef * targetType)391 static void *cast_wxHtmlDCRenderer(void *sipCppV, const sipTypeDef *targetType)
392 {
393      ::wxHtmlDCRenderer *sipCpp = reinterpret_cast< ::wxHtmlDCRenderer *>(sipCppV);
394 
395     if (targetType == sipType_wxObject)
396         return static_cast< ::wxObject *>(sipCpp);
397 
398     return sipCppV;
399 }
400 
401 
402 /* Call the instance's destructor. */
403 extern "C" {static void release_wxHtmlDCRenderer(void *, int);}
release_wxHtmlDCRenderer(void * sipCppV,int)404 static void release_wxHtmlDCRenderer(void *sipCppV, int)
405 {
406     Py_BEGIN_ALLOW_THREADS
407 
408     delete reinterpret_cast< ::wxHtmlDCRenderer *>(sipCppV);
409 
410     Py_END_ALLOW_THREADS
411 }
412 
413 
414 extern "C" {static void dealloc_wxHtmlDCRenderer(sipSimpleWrapper *);}
dealloc_wxHtmlDCRenderer(sipSimpleWrapper * sipSelf)415 static void dealloc_wxHtmlDCRenderer(sipSimpleWrapper *sipSelf)
416 {
417     if (sipIsOwnedByPython(sipSelf))
418     {
419         release_wxHtmlDCRenderer(sipGetAddress(sipSelf), 0);
420     }
421 }
422 
423 
424 extern "C" {static void *init_type_wxHtmlDCRenderer(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxHtmlDCRenderer(sipSimpleWrapper *,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)425 static void *init_type_wxHtmlDCRenderer(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
426 {
427      ::wxHtmlDCRenderer *sipCpp = SIP_NULLPTR;
428 
429     {
430         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
431         {
432 
433         if (!wxPyCheckForApp()) return NULL;
434 
435             PyErr_Clear();
436 
437             Py_BEGIN_ALLOW_THREADS
438             sipCpp = new  ::wxHtmlDCRenderer();
439             Py_END_ALLOW_THREADS
440 
441             if (PyErr_Occurred())
442             {
443                 delete sipCpp;
444                 return SIP_NULLPTR;
445             }
446 
447             return sipCpp;
448         }
449     }
450 
451     return SIP_NULLPTR;
452 }
453 
454 
455 /* Define this type's super-types. */
456 static sipEncodedTypeDef supers_wxHtmlDCRenderer[] = {{25, 0, 1}};
457 
458 
459 static PyMethodDef methods_wxHtmlDCRenderer[] = {
460     {SIP_MLNAME_CAST(sipName_GetTotalHeight), meth_wxHtmlDCRenderer_GetTotalHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlDCRenderer_GetTotalHeight)},
461     {SIP_MLNAME_CAST(sipName_GetTotalWidth), meth_wxHtmlDCRenderer_GetTotalWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlDCRenderer_GetTotalWidth)},
462     {SIP_MLNAME_CAST(sipName_Render), SIP_MLMETH_CAST(meth_wxHtmlDCRenderer_Render), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlDCRenderer_Render)},
463     {SIP_MLNAME_CAST(sipName_SetDC), SIP_MLMETH_CAST(meth_wxHtmlDCRenderer_SetDC), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlDCRenderer_SetDC)},
464     {SIP_MLNAME_CAST(sipName_SetFonts), SIP_MLMETH_CAST(meth_wxHtmlDCRenderer_SetFonts), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlDCRenderer_SetFonts)},
465     {SIP_MLNAME_CAST(sipName_SetHtmlText), SIP_MLMETH_CAST(meth_wxHtmlDCRenderer_SetHtmlText), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlDCRenderer_SetHtmlText)},
466     {SIP_MLNAME_CAST(sipName_SetSize), SIP_MLMETH_CAST(meth_wxHtmlDCRenderer_SetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlDCRenderer_SetSize)},
467     {SIP_MLNAME_CAST(sipName_SetStandardFonts), SIP_MLMETH_CAST(meth_wxHtmlDCRenderer_SetStandardFonts), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlDCRenderer_SetStandardFonts)}
468 };
469 
470 sipVariableDef variables_wxHtmlDCRenderer[] = {
471     {PropertyVariable, sipName_TotalWidth, &methods_wxHtmlDCRenderer[1], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
472     {PropertyVariable, sipName_TotalHeight, &methods_wxHtmlDCRenderer[0], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
473 };
474 
475 PyDoc_STRVAR(doc_wxHtmlDCRenderer, "HtmlDCRenderer()\n"
476 "\n"
477 "This class can render HTML document into a specified area of a DC.");
478 
479 
480 sipClassTypeDef sipTypeDef__html_wxHtmlDCRenderer = {
481     {
482         -1,
483         SIP_NULLPTR,
484         SIP_NULLPTR,
485         SIP_TYPE_SCC|SIP_TYPE_CLASS,
486         sipNameNr_wxHtmlDCRenderer,
487         {SIP_NULLPTR},
488         SIP_NULLPTR
489     },
490     {
491         sipNameNr_HtmlDCRenderer,
492         {0, 0, 1},
493         8, methods_wxHtmlDCRenderer,
494         0, SIP_NULLPTR,
495         2, variables_wxHtmlDCRenderer,
496         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
497     },
498     doc_wxHtmlDCRenderer,
499     -1,
500     -1,
501     supers_wxHtmlDCRenderer,
502     SIP_NULLPTR,
503     init_type_wxHtmlDCRenderer,
504     SIP_NULLPTR,
505     SIP_NULLPTR,
506 #if PY_MAJOR_VERSION >= 3
507     SIP_NULLPTR,
508     SIP_NULLPTR,
509 #else
510     SIP_NULLPTR,
511     SIP_NULLPTR,
512     SIP_NULLPTR,
513     SIP_NULLPTR,
514 #endif
515     dealloc_wxHtmlDCRenderer,
516     SIP_NULLPTR,
517     SIP_NULLPTR,
518     SIP_NULLPTR,
519     release_wxHtmlDCRenderer,
520     cast_wxHtmlDCRenderer,
521     SIP_NULLPTR,
522     SIP_NULLPTR,
523     SIP_NULLPTR,
524     SIP_NULLPTR,
525     SIP_NULLPTR,
526     SIP_NULLPTR
527 };
528