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_grid.h"
11
12 #include <wx/grid.h>
13
14 #include <wx/colour.h>
15 #include <wx/font.h>
16 #include <wx/grid.h>
17 #include <wx/grid.h>
18 #include <wx/grid.h>
19
20
21 class sipwxGridCellAttr : public ::wxGridCellAttr
22 {
23 public:
24 sipwxGridCellAttr( ::wxGridCellAttr*);
25 sipwxGridCellAttr(const ::wxColour&,const ::wxColour&,const ::wxFont&,int,int);
26 ~sipwxGridCellAttr();
27
28 public:
29 sipSimpleWrapper *sipPySelf;
30
31 private:
32 sipwxGridCellAttr(const sipwxGridCellAttr &);
33 sipwxGridCellAttr &operator = (const sipwxGridCellAttr &);
34 };
35
sipwxGridCellAttr(::wxGridCellAttr * attrDefault)36 sipwxGridCellAttr::sipwxGridCellAttr( ::wxGridCellAttr*attrDefault): ::wxGridCellAttr(attrDefault), sipPySelf(SIP_NULLPTR)
37 {
38 }
39
sipwxGridCellAttr(const::wxColour & colText,const::wxColour & colBack,const::wxFont & font,int hAlign,int vAlign)40 sipwxGridCellAttr::sipwxGridCellAttr(const ::wxColour& colText,const ::wxColour& colBack,const ::wxFont& font,int hAlign,int vAlign): ::wxGridCellAttr(colText,colBack,font,hAlign,vAlign), sipPySelf(SIP_NULLPTR)
41 {
42 }
43
~sipwxGridCellAttr()44 sipwxGridCellAttr::~sipwxGridCellAttr()
45 {
46 sipInstanceDestroyedEx(&sipPySelf);
47 }
48
49
50 PyDoc_STRVAR(doc_wxGridCellAttr_Clone, "Clone() -> GridCellAttr\n"
51 "\n"
52 "Creates a new copy of this object.");
53
54 extern "C" {static PyObject *meth_wxGridCellAttr_Clone(PyObject *, PyObject *);}
meth_wxGridCellAttr_Clone(PyObject * sipSelf,PyObject * sipArgs)55 static PyObject *meth_wxGridCellAttr_Clone(PyObject *sipSelf, PyObject *sipArgs)
56 {
57 PyObject *sipParseErr = SIP_NULLPTR;
58
59 {
60 const ::wxGridCellAttr *sipCpp;
61
62 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
63 {
64 ::wxGridCellAttr*sipRes;
65
66 PyErr_Clear();
67
68 Py_BEGIN_ALLOW_THREADS
69 sipRes = sipCpp->Clone();
70 Py_END_ALLOW_THREADS
71
72 if (PyErr_Occurred())
73 return 0;
74
75 return sipConvertFromNewType(sipRes,sipType_wxGridCellAttr,SIP_NULLPTR);
76 }
77 }
78
79 /* Raise an exception if the arguments couldn't be parsed. */
80 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_Clone, SIP_NULLPTR);
81
82 return SIP_NULLPTR;
83 }
84
85
86 PyDoc_STRVAR(doc_wxGridCellAttr_DecRef, "DecRef()\n"
87 "\n"
88 "This class is reference counted: it is created with ref count of 1, so\n"
89 "calling DecRef() once will delete it.");
90
91 extern "C" {static PyObject *meth_wxGridCellAttr_DecRef(PyObject *, PyObject *);}
meth_wxGridCellAttr_DecRef(PyObject * sipSelf,PyObject * sipArgs)92 static PyObject *meth_wxGridCellAttr_DecRef(PyObject *sipSelf, PyObject *sipArgs)
93 {
94 PyObject *sipParseErr = SIP_NULLPTR;
95
96 {
97 ::wxGridCellAttr *sipCpp;
98
99 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
100 {
101 PyErr_Clear();
102
103 Py_BEGIN_ALLOW_THREADS
104 sipCpp->DecRef();
105 Py_END_ALLOW_THREADS
106
107 if (PyErr_Occurred())
108 return 0;
109
110 Py_INCREF(Py_None);
111 return Py_None;
112 }
113 }
114
115 /* Raise an exception if the arguments couldn't be parsed. */
116 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_DecRef, SIP_NULLPTR);
117
118 return SIP_NULLPTR;
119 }
120
121
122 PyDoc_STRVAR(doc_wxGridCellAttr_GetAlignment, "GetAlignment() -> (hAlign, vAlign)\n"
123 "\n"
124 "Get the alignment to use for the cell with the given attribute.");
125
126 extern "C" {static PyObject *meth_wxGridCellAttr_GetAlignment(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_GetAlignment(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)127 static PyObject *meth_wxGridCellAttr_GetAlignment(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
128 {
129 PyObject *sipParseErr = SIP_NULLPTR;
130
131 {
132 int hAlign;
133 int vAlign;
134 const ::wxGridCellAttr *sipCpp;
135
136 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
137 {
138 PyErr_Clear();
139
140 Py_BEGIN_ALLOW_THREADS
141 sipCpp->GetAlignment(&hAlign,&vAlign);
142 Py_END_ALLOW_THREADS
143
144 if (PyErr_Occurred())
145 return 0;
146
147 return sipBuildResult(0,"(ii)",hAlign,vAlign);
148 }
149 }
150
151 /* Raise an exception if the arguments couldn't be parsed. */
152 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_GetAlignment, SIP_NULLPTR);
153
154 return SIP_NULLPTR;
155 }
156
157
158 PyDoc_STRVAR(doc_wxGridCellAttr_GetBackgroundColour, "GetBackgroundColour() -> wx.Colour\n"
159 "\n"
160 "Returns the background colour.");
161
162 extern "C" {static PyObject *meth_wxGridCellAttr_GetBackgroundColour(PyObject *, PyObject *);}
meth_wxGridCellAttr_GetBackgroundColour(PyObject * sipSelf,PyObject * sipArgs)163 static PyObject *meth_wxGridCellAttr_GetBackgroundColour(PyObject *sipSelf, PyObject *sipArgs)
164 {
165 PyObject *sipParseErr = SIP_NULLPTR;
166
167 {
168 const ::wxGridCellAttr *sipCpp;
169
170 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
171 {
172 ::wxColour*sipRes;
173
174 PyErr_Clear();
175
176 Py_BEGIN_ALLOW_THREADS
177 sipRes = new ::wxColour(sipCpp->GetBackgroundColour());
178 Py_END_ALLOW_THREADS
179
180 if (PyErr_Occurred())
181 return 0;
182
183 return sipConvertFromNewType(sipRes,sipType_wxColour,SIP_NULLPTR);
184 }
185 }
186
187 /* Raise an exception if the arguments couldn't be parsed. */
188 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_GetBackgroundColour, SIP_NULLPTR);
189
190 return SIP_NULLPTR;
191 }
192
193
194 PyDoc_STRVAR(doc_wxGridCellAttr_GetEditor, "GetEditor(grid, row, col) -> GridCellEditor\n"
195 "\n"
196 "Returns the cell editor.");
197
198 extern "C" {static PyObject *meth_wxGridCellAttr_GetEditor(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_GetEditor(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)199 static PyObject *meth_wxGridCellAttr_GetEditor(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
200 {
201 PyObject *sipParseErr = SIP_NULLPTR;
202
203 {
204 const ::wxGrid* grid;
205 int row;
206 int col;
207 const ::wxGridCellAttr *sipCpp;
208
209 static const char *sipKwdList[] = {
210 sipName_grid,
211 sipName_row,
212 sipName_col,
213 };
214
215 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8ii", &sipSelf, sipType_wxGridCellAttr, &sipCpp, sipType_wxGrid, &grid, &row, &col))
216 {
217 ::wxGridCellEditor*sipRes;
218
219 PyErr_Clear();
220
221 Py_BEGIN_ALLOW_THREADS
222 sipRes = sipCpp->GetEditor(grid,row,col);
223 Py_END_ALLOW_THREADS
224
225 if (PyErr_Occurred())
226 return 0;
227
228 return sipConvertFromType(sipRes,sipType_wxGridCellEditor,SIP_NULLPTR);
229 }
230 }
231
232 /* Raise an exception if the arguments couldn't be parsed. */
233 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_GetEditor, SIP_NULLPTR);
234
235 return SIP_NULLPTR;
236 }
237
238
239 PyDoc_STRVAR(doc_wxGridCellAttr_GetFont, "GetFont() -> wx.Font\n"
240 "\n"
241 "Returns the font.");
242
243 extern "C" {static PyObject *meth_wxGridCellAttr_GetFont(PyObject *, PyObject *);}
meth_wxGridCellAttr_GetFont(PyObject * sipSelf,PyObject * sipArgs)244 static PyObject *meth_wxGridCellAttr_GetFont(PyObject *sipSelf, PyObject *sipArgs)
245 {
246 PyObject *sipParseErr = SIP_NULLPTR;
247
248 {
249 const ::wxGridCellAttr *sipCpp;
250
251 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
252 {
253 ::wxFont*sipRes;
254
255 PyErr_Clear();
256
257 Py_BEGIN_ALLOW_THREADS
258 sipRes = new ::wxFont(sipCpp->GetFont());
259 Py_END_ALLOW_THREADS
260
261 if (PyErr_Occurred())
262 return 0;
263
264 return sipConvertFromNewType(sipRes,sipType_wxFont,SIP_NULLPTR);
265 }
266 }
267
268 /* Raise an exception if the arguments couldn't be parsed. */
269 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_GetFont, SIP_NULLPTR);
270
271 return SIP_NULLPTR;
272 }
273
274
275 PyDoc_STRVAR(doc_wxGridCellAttr_GetNonDefaultAlignment, "GetNonDefaultAlignment() -> (hAlign, vAlign)\n"
276 "\n"
277 "Get the alignment defined by this attribute.");
278
279 extern "C" {static PyObject *meth_wxGridCellAttr_GetNonDefaultAlignment(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_GetNonDefaultAlignment(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)280 static PyObject *meth_wxGridCellAttr_GetNonDefaultAlignment(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
281 {
282 PyObject *sipParseErr = SIP_NULLPTR;
283
284 {
285 int hAlign;
286 int vAlign;
287 const ::wxGridCellAttr *sipCpp;
288
289 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
290 {
291 PyErr_Clear();
292
293 Py_BEGIN_ALLOW_THREADS
294 sipCpp->GetNonDefaultAlignment(&hAlign,&vAlign);
295 Py_END_ALLOW_THREADS
296
297 if (PyErr_Occurred())
298 return 0;
299
300 return sipBuildResult(0,"(ii)",hAlign,vAlign);
301 }
302 }
303
304 /* Raise an exception if the arguments couldn't be parsed. */
305 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_GetNonDefaultAlignment, SIP_NULLPTR);
306
307 return SIP_NULLPTR;
308 }
309
310
311 PyDoc_STRVAR(doc_wxGridCellAttr_GetRenderer, "GetRenderer(grid, row, col) -> GridCellRenderer\n"
312 "\n"
313 "Returns the cell renderer.");
314
315 extern "C" {static PyObject *meth_wxGridCellAttr_GetRenderer(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_GetRenderer(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)316 static PyObject *meth_wxGridCellAttr_GetRenderer(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
317 {
318 PyObject *sipParseErr = SIP_NULLPTR;
319
320 {
321 const ::wxGrid* grid;
322 int row;
323 int col;
324 const ::wxGridCellAttr *sipCpp;
325
326 static const char *sipKwdList[] = {
327 sipName_grid,
328 sipName_row,
329 sipName_col,
330 };
331
332 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8ii", &sipSelf, sipType_wxGridCellAttr, &sipCpp, sipType_wxGrid, &grid, &row, &col))
333 {
334 ::wxGridCellRenderer*sipRes;
335
336 PyErr_Clear();
337
338 Py_BEGIN_ALLOW_THREADS
339 sipRes = sipCpp->GetRenderer(grid,row,col);
340 Py_END_ALLOW_THREADS
341
342 if (PyErr_Occurred())
343 return 0;
344
345 return sipConvertFromType(sipRes,sipType_wxGridCellRenderer,SIP_NULLPTR);
346 }
347 }
348
349 /* Raise an exception if the arguments couldn't be parsed. */
350 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_GetRenderer, SIP_NULLPTR);
351
352 return SIP_NULLPTR;
353 }
354
355
356 PyDoc_STRVAR(doc_wxGridCellAttr_GetTextColour, "GetTextColour() -> wx.Colour\n"
357 "\n"
358 "Returns the text colour.");
359
360 extern "C" {static PyObject *meth_wxGridCellAttr_GetTextColour(PyObject *, PyObject *);}
meth_wxGridCellAttr_GetTextColour(PyObject * sipSelf,PyObject * sipArgs)361 static PyObject *meth_wxGridCellAttr_GetTextColour(PyObject *sipSelf, PyObject *sipArgs)
362 {
363 PyObject *sipParseErr = SIP_NULLPTR;
364
365 {
366 const ::wxGridCellAttr *sipCpp;
367
368 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
369 {
370 ::wxColour*sipRes;
371
372 PyErr_Clear();
373
374 Py_BEGIN_ALLOW_THREADS
375 sipRes = new ::wxColour(sipCpp->GetTextColour());
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_GridCellAttr, sipName_GetTextColour, SIP_NULLPTR);
387
388 return SIP_NULLPTR;
389 }
390
391
392 PyDoc_STRVAR(doc_wxGridCellAttr_HasAlignment, "HasAlignment() -> bool\n"
393 "\n"
394 "Returns true if this attribute has a valid alignment set.");
395
396 extern "C" {static PyObject *meth_wxGridCellAttr_HasAlignment(PyObject *, PyObject *);}
meth_wxGridCellAttr_HasAlignment(PyObject * sipSelf,PyObject * sipArgs)397 static PyObject *meth_wxGridCellAttr_HasAlignment(PyObject *sipSelf, PyObject *sipArgs)
398 {
399 PyObject *sipParseErr = SIP_NULLPTR;
400
401 {
402 const ::wxGridCellAttr *sipCpp;
403
404 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
405 {
406 bool sipRes;
407
408 PyErr_Clear();
409
410 Py_BEGIN_ALLOW_THREADS
411 sipRes = sipCpp->HasAlignment();
412 Py_END_ALLOW_THREADS
413
414 if (PyErr_Occurred())
415 return 0;
416
417 return PyBool_FromLong(sipRes);
418 }
419 }
420
421 /* Raise an exception if the arguments couldn't be parsed. */
422 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_HasAlignment, SIP_NULLPTR);
423
424 return SIP_NULLPTR;
425 }
426
427
428 PyDoc_STRVAR(doc_wxGridCellAttr_HasBackgroundColour, "HasBackgroundColour() -> bool\n"
429 "\n"
430 "Returns true if this attribute has a valid background colour set.");
431
432 extern "C" {static PyObject *meth_wxGridCellAttr_HasBackgroundColour(PyObject *, PyObject *);}
meth_wxGridCellAttr_HasBackgroundColour(PyObject * sipSelf,PyObject * sipArgs)433 static PyObject *meth_wxGridCellAttr_HasBackgroundColour(PyObject *sipSelf, PyObject *sipArgs)
434 {
435 PyObject *sipParseErr = SIP_NULLPTR;
436
437 {
438 const ::wxGridCellAttr *sipCpp;
439
440 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
441 {
442 bool sipRes;
443
444 PyErr_Clear();
445
446 Py_BEGIN_ALLOW_THREADS
447 sipRes = sipCpp->HasBackgroundColour();
448 Py_END_ALLOW_THREADS
449
450 if (PyErr_Occurred())
451 return 0;
452
453 return PyBool_FromLong(sipRes);
454 }
455 }
456
457 /* Raise an exception if the arguments couldn't be parsed. */
458 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_HasBackgroundColour, SIP_NULLPTR);
459
460 return SIP_NULLPTR;
461 }
462
463
464 PyDoc_STRVAR(doc_wxGridCellAttr_HasEditor, "HasEditor() -> bool\n"
465 "\n"
466 "Returns true if this attribute has a valid cell editor set.");
467
468 extern "C" {static PyObject *meth_wxGridCellAttr_HasEditor(PyObject *, PyObject *);}
meth_wxGridCellAttr_HasEditor(PyObject * sipSelf,PyObject * sipArgs)469 static PyObject *meth_wxGridCellAttr_HasEditor(PyObject *sipSelf, PyObject *sipArgs)
470 {
471 PyObject *sipParseErr = SIP_NULLPTR;
472
473 {
474 const ::wxGridCellAttr *sipCpp;
475
476 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
477 {
478 bool sipRes;
479
480 PyErr_Clear();
481
482 Py_BEGIN_ALLOW_THREADS
483 sipRes = sipCpp->HasEditor();
484 Py_END_ALLOW_THREADS
485
486 if (PyErr_Occurred())
487 return 0;
488
489 return PyBool_FromLong(sipRes);
490 }
491 }
492
493 /* Raise an exception if the arguments couldn't be parsed. */
494 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_HasEditor, SIP_NULLPTR);
495
496 return SIP_NULLPTR;
497 }
498
499
500 PyDoc_STRVAR(doc_wxGridCellAttr_HasFont, "HasFont() -> bool\n"
501 "\n"
502 "Returns true if this attribute has a valid font set.");
503
504 extern "C" {static PyObject *meth_wxGridCellAttr_HasFont(PyObject *, PyObject *);}
meth_wxGridCellAttr_HasFont(PyObject * sipSelf,PyObject * sipArgs)505 static PyObject *meth_wxGridCellAttr_HasFont(PyObject *sipSelf, PyObject *sipArgs)
506 {
507 PyObject *sipParseErr = SIP_NULLPTR;
508
509 {
510 const ::wxGridCellAttr *sipCpp;
511
512 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
513 {
514 bool sipRes;
515
516 PyErr_Clear();
517
518 Py_BEGIN_ALLOW_THREADS
519 sipRes = sipCpp->HasFont();
520 Py_END_ALLOW_THREADS
521
522 if (PyErr_Occurred())
523 return 0;
524
525 return PyBool_FromLong(sipRes);
526 }
527 }
528
529 /* Raise an exception if the arguments couldn't be parsed. */
530 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_HasFont, SIP_NULLPTR);
531
532 return SIP_NULLPTR;
533 }
534
535
536 PyDoc_STRVAR(doc_wxGridCellAttr_HasRenderer, "HasRenderer() -> bool\n"
537 "\n"
538 "Returns true if this attribute has a valid cell renderer set.");
539
540 extern "C" {static PyObject *meth_wxGridCellAttr_HasRenderer(PyObject *, PyObject *);}
meth_wxGridCellAttr_HasRenderer(PyObject * sipSelf,PyObject * sipArgs)541 static PyObject *meth_wxGridCellAttr_HasRenderer(PyObject *sipSelf, PyObject *sipArgs)
542 {
543 PyObject *sipParseErr = SIP_NULLPTR;
544
545 {
546 const ::wxGridCellAttr *sipCpp;
547
548 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
549 {
550 bool sipRes;
551
552 PyErr_Clear();
553
554 Py_BEGIN_ALLOW_THREADS
555 sipRes = sipCpp->HasRenderer();
556 Py_END_ALLOW_THREADS
557
558 if (PyErr_Occurred())
559 return 0;
560
561 return PyBool_FromLong(sipRes);
562 }
563 }
564
565 /* Raise an exception if the arguments couldn't be parsed. */
566 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_HasRenderer, SIP_NULLPTR);
567
568 return SIP_NULLPTR;
569 }
570
571
572 PyDoc_STRVAR(doc_wxGridCellAttr_HasTextColour, "HasTextColour() -> bool\n"
573 "\n"
574 "Returns true if this attribute has a valid text colour set.");
575
576 extern "C" {static PyObject *meth_wxGridCellAttr_HasTextColour(PyObject *, PyObject *);}
meth_wxGridCellAttr_HasTextColour(PyObject * sipSelf,PyObject * sipArgs)577 static PyObject *meth_wxGridCellAttr_HasTextColour(PyObject *sipSelf, PyObject *sipArgs)
578 {
579 PyObject *sipParseErr = SIP_NULLPTR;
580
581 {
582 const ::wxGridCellAttr *sipCpp;
583
584 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
585 {
586 bool sipRes;
587
588 PyErr_Clear();
589
590 Py_BEGIN_ALLOW_THREADS
591 sipRes = sipCpp->HasTextColour();
592 Py_END_ALLOW_THREADS
593
594 if (PyErr_Occurred())
595 return 0;
596
597 return PyBool_FromLong(sipRes);
598 }
599 }
600
601 /* Raise an exception if the arguments couldn't be parsed. */
602 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_HasTextColour, SIP_NULLPTR);
603
604 return SIP_NULLPTR;
605 }
606
607
608 PyDoc_STRVAR(doc_wxGridCellAttr_IncRef, "IncRef()\n"
609 "\n"
610 "This class is reference counted: it is created with ref count of 1, so\n"
611 "calling DecRef() once will delete it.");
612
613 extern "C" {static PyObject *meth_wxGridCellAttr_IncRef(PyObject *, PyObject *);}
meth_wxGridCellAttr_IncRef(PyObject * sipSelf,PyObject * sipArgs)614 static PyObject *meth_wxGridCellAttr_IncRef(PyObject *sipSelf, PyObject *sipArgs)
615 {
616 PyObject *sipParseErr = SIP_NULLPTR;
617
618 {
619 ::wxGridCellAttr *sipCpp;
620
621 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
622 {
623 PyErr_Clear();
624
625 Py_BEGIN_ALLOW_THREADS
626 sipCpp->IncRef();
627 Py_END_ALLOW_THREADS
628
629 if (PyErr_Occurred())
630 return 0;
631
632 Py_INCREF(Py_None);
633 return Py_None;
634 }
635 }
636
637 /* Raise an exception if the arguments couldn't be parsed. */
638 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_IncRef, SIP_NULLPTR);
639
640 return SIP_NULLPTR;
641 }
642
643
644 PyDoc_STRVAR(doc_wxGridCellAttr_IsReadOnly, "IsReadOnly() -> bool\n"
645 "\n"
646 "Returns true if this cell is set as read-only.");
647
648 extern "C" {static PyObject *meth_wxGridCellAttr_IsReadOnly(PyObject *, PyObject *);}
meth_wxGridCellAttr_IsReadOnly(PyObject * sipSelf,PyObject * sipArgs)649 static PyObject *meth_wxGridCellAttr_IsReadOnly(PyObject *sipSelf, PyObject *sipArgs)
650 {
651 PyObject *sipParseErr = SIP_NULLPTR;
652
653 {
654 const ::wxGridCellAttr *sipCpp;
655
656 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
657 {
658 bool sipRes;
659
660 PyErr_Clear();
661
662 Py_BEGIN_ALLOW_THREADS
663 sipRes = sipCpp->IsReadOnly();
664 Py_END_ALLOW_THREADS
665
666 if (PyErr_Occurred())
667 return 0;
668
669 return PyBool_FromLong(sipRes);
670 }
671 }
672
673 /* Raise an exception if the arguments couldn't be parsed. */
674 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_IsReadOnly, SIP_NULLPTR);
675
676 return SIP_NULLPTR;
677 }
678
679
680 PyDoc_STRVAR(doc_wxGridCellAttr_SetAlignment, "SetAlignment(hAlign, vAlign)\n"
681 "\n"
682 "Sets the alignment.");
683
684 extern "C" {static PyObject *meth_wxGridCellAttr_SetAlignment(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_SetAlignment(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)685 static PyObject *meth_wxGridCellAttr_SetAlignment(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
686 {
687 PyObject *sipParseErr = SIP_NULLPTR;
688
689 {
690 int hAlign;
691 int vAlign;
692 ::wxGridCellAttr *sipCpp;
693
694 static const char *sipKwdList[] = {
695 sipName_hAlign,
696 sipName_vAlign,
697 };
698
699 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxGridCellAttr, &sipCpp, &hAlign, &vAlign))
700 {
701 PyErr_Clear();
702
703 Py_BEGIN_ALLOW_THREADS
704 sipCpp->SetAlignment(hAlign,vAlign);
705 Py_END_ALLOW_THREADS
706
707 if (PyErr_Occurred())
708 return 0;
709
710 Py_INCREF(Py_None);
711 return Py_None;
712 }
713 }
714
715 /* Raise an exception if the arguments couldn't be parsed. */
716 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_SetAlignment, SIP_NULLPTR);
717
718 return SIP_NULLPTR;
719 }
720
721
722 PyDoc_STRVAR(doc_wxGridCellAttr_SetBackgroundColour, "SetBackgroundColour(colBack)\n"
723 "\n"
724 "Sets the background colour.");
725
726 extern "C" {static PyObject *meth_wxGridCellAttr_SetBackgroundColour(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_SetBackgroundColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)727 static PyObject *meth_wxGridCellAttr_SetBackgroundColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
728 {
729 PyObject *sipParseErr = SIP_NULLPTR;
730
731 {
732 const ::wxColour* colBack;
733 int colBackState = 0;
734 ::wxGridCellAttr *sipCpp;
735
736 static const char *sipKwdList[] = {
737 sipName_colBack,
738 };
739
740 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxGridCellAttr, &sipCpp, sipType_wxColour, &colBack, &colBackState))
741 {
742 PyErr_Clear();
743
744 Py_BEGIN_ALLOW_THREADS
745 sipCpp->SetBackgroundColour(*colBack);
746 Py_END_ALLOW_THREADS
747 sipReleaseType(const_cast< ::wxColour *>(colBack),sipType_wxColour,colBackState);
748
749 if (PyErr_Occurred())
750 return 0;
751
752 Py_INCREF(Py_None);
753 return Py_None;
754 }
755 }
756
757 /* Raise an exception if the arguments couldn't be parsed. */
758 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_SetBackgroundColour, SIP_NULLPTR);
759
760 return SIP_NULLPTR;
761 }
762
763
764 PyDoc_STRVAR(doc_wxGridCellAttr_SetDefAttr, "SetDefAttr(defAttr)");
765
766 extern "C" {static PyObject *meth_wxGridCellAttr_SetDefAttr(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_SetDefAttr(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)767 static PyObject *meth_wxGridCellAttr_SetDefAttr(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
768 {
769 PyObject *sipParseErr = SIP_NULLPTR;
770
771 {
772 ::wxGridCellAttr* defAttr;
773 ::wxGridCellAttr *sipCpp;
774
775 static const char *sipKwdList[] = {
776 sipName_defAttr,
777 };
778
779 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxGridCellAttr, &sipCpp, sipType_wxGridCellAttr, &defAttr))
780 {
781 PyErr_Clear();
782
783 Py_BEGIN_ALLOW_THREADS
784 sipCpp->SetDefAttr(defAttr);
785 Py_END_ALLOW_THREADS
786
787 if (PyErr_Occurred())
788 return 0;
789
790 Py_INCREF(Py_None);
791 return Py_None;
792 }
793 }
794
795 /* Raise an exception if the arguments couldn't be parsed. */
796 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_SetDefAttr, SIP_NULLPTR);
797
798 return SIP_NULLPTR;
799 }
800
801
802 PyDoc_STRVAR(doc_wxGridCellAttr_SetEditor, "SetEditor(editor)\n"
803 "\n"
804 "Sets the editor to be used with the cells with this attribute.");
805
806 extern "C" {static PyObject *meth_wxGridCellAttr_SetEditor(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_SetEditor(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)807 static PyObject *meth_wxGridCellAttr_SetEditor(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
808 {
809 PyObject *sipParseErr = SIP_NULLPTR;
810
811 {
812 ::wxGridCellEditor* editor;
813 ::wxGridCellAttr *sipCpp;
814
815 static const char *sipKwdList[] = {
816 sipName_editor,
817 };
818
819 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ:", &sipSelf, sipType_wxGridCellAttr, &sipCpp, sipType_wxGridCellEditor, &editor))
820 {
821 PyErr_Clear();
822
823 Py_BEGIN_ALLOW_THREADS
824 sipCpp->SetEditor(editor);
825 Py_END_ALLOW_THREADS
826
827 if (PyErr_Occurred())
828 return 0;
829
830 Py_INCREF(Py_None);
831 return Py_None;
832 }
833 }
834
835 /* Raise an exception if the arguments couldn't be parsed. */
836 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_SetEditor, SIP_NULLPTR);
837
838 return SIP_NULLPTR;
839 }
840
841
842 PyDoc_STRVAR(doc_wxGridCellAttr_SetFont, "SetFont(font)\n"
843 "\n"
844 "Sets the font.");
845
846 extern "C" {static PyObject *meth_wxGridCellAttr_SetFont(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_SetFont(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)847 static PyObject *meth_wxGridCellAttr_SetFont(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
848 {
849 PyObject *sipParseErr = SIP_NULLPTR;
850
851 {
852 const ::wxFont* font;
853 ::wxGridCellAttr *sipCpp;
854
855 static const char *sipKwdList[] = {
856 sipName_font,
857 };
858
859 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxGridCellAttr, &sipCpp, sipType_wxFont, &font))
860 {
861 PyErr_Clear();
862
863 Py_BEGIN_ALLOW_THREADS
864 sipCpp->SetFont(*font);
865 Py_END_ALLOW_THREADS
866
867 if (PyErr_Occurred())
868 return 0;
869
870 Py_INCREF(Py_None);
871 return Py_None;
872 }
873 }
874
875 /* Raise an exception if the arguments couldn't be parsed. */
876 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_SetFont, SIP_NULLPTR);
877
878 return SIP_NULLPTR;
879 }
880
881
882 PyDoc_STRVAR(doc_wxGridCellAttr_SetReadOnly, "SetReadOnly(isReadOnly=True)\n"
883 "\n"
884 "Sets the cell as read-only.");
885
886 extern "C" {static PyObject *meth_wxGridCellAttr_SetReadOnly(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_SetReadOnly(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)887 static PyObject *meth_wxGridCellAttr_SetReadOnly(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
888 {
889 PyObject *sipParseErr = SIP_NULLPTR;
890
891 {
892 bool isReadOnly = 1;
893 ::wxGridCellAttr *sipCpp;
894
895 static const char *sipKwdList[] = {
896 sipName_isReadOnly,
897 };
898
899 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|b", &sipSelf, sipType_wxGridCellAttr, &sipCpp, &isReadOnly))
900 {
901 PyErr_Clear();
902
903 Py_BEGIN_ALLOW_THREADS
904 sipCpp->SetReadOnly(isReadOnly);
905 Py_END_ALLOW_THREADS
906
907 if (PyErr_Occurred())
908 return 0;
909
910 Py_INCREF(Py_None);
911 return Py_None;
912 }
913 }
914
915 /* Raise an exception if the arguments couldn't be parsed. */
916 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_SetReadOnly, SIP_NULLPTR);
917
918 return SIP_NULLPTR;
919 }
920
921
922 PyDoc_STRVAR(doc_wxGridCellAttr_SetRenderer, "SetRenderer(renderer)\n"
923 "\n"
924 "Sets the renderer to be used for cells with this attribute.");
925
926 extern "C" {static PyObject *meth_wxGridCellAttr_SetRenderer(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_SetRenderer(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)927 static PyObject *meth_wxGridCellAttr_SetRenderer(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
928 {
929 PyObject *sipParseErr = SIP_NULLPTR;
930
931 {
932 ::wxGridCellRenderer* renderer;
933 ::wxGridCellAttr *sipCpp;
934
935 static const char *sipKwdList[] = {
936 sipName_renderer,
937 };
938
939 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ:", &sipSelf, sipType_wxGridCellAttr, &sipCpp, sipType_wxGridCellRenderer, &renderer))
940 {
941 PyErr_Clear();
942
943 Py_BEGIN_ALLOW_THREADS
944 sipCpp->SetRenderer(renderer);
945 Py_END_ALLOW_THREADS
946
947 if (PyErr_Occurred())
948 return 0;
949
950 Py_INCREF(Py_None);
951 return Py_None;
952 }
953 }
954
955 /* Raise an exception if the arguments couldn't be parsed. */
956 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_SetRenderer, SIP_NULLPTR);
957
958 return SIP_NULLPTR;
959 }
960
961
962 PyDoc_STRVAR(doc_wxGridCellAttr_SetTextColour, "SetTextColour(colText)\n"
963 "\n"
964 "Sets the text colour.");
965
966 extern "C" {static PyObject *meth_wxGridCellAttr_SetTextColour(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_SetTextColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)967 static PyObject *meth_wxGridCellAttr_SetTextColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
968 {
969 PyObject *sipParseErr = SIP_NULLPTR;
970
971 {
972 const ::wxColour* colText;
973 int colTextState = 0;
974 ::wxGridCellAttr *sipCpp;
975
976 static const char *sipKwdList[] = {
977 sipName_colText,
978 };
979
980 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxGridCellAttr, &sipCpp, sipType_wxColour, &colText, &colTextState))
981 {
982 PyErr_Clear();
983
984 Py_BEGIN_ALLOW_THREADS
985 sipCpp->SetTextColour(*colText);
986 Py_END_ALLOW_THREADS
987 sipReleaseType(const_cast< ::wxColour *>(colText),sipType_wxColour,colTextState);
988
989 if (PyErr_Occurred())
990 return 0;
991
992 Py_INCREF(Py_None);
993 return Py_None;
994 }
995 }
996
997 /* Raise an exception if the arguments couldn't be parsed. */
998 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_SetTextColour, SIP_NULLPTR);
999
1000 return SIP_NULLPTR;
1001 }
1002
1003
1004 PyDoc_STRVAR(doc_wxGridCellAttr_MergeWith, "MergeWith(mergefrom)");
1005
1006 extern "C" {static PyObject *meth_wxGridCellAttr_MergeWith(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_MergeWith(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1007 static PyObject *meth_wxGridCellAttr_MergeWith(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1008 {
1009 PyObject *sipParseErr = SIP_NULLPTR;
1010
1011 {
1012 ::wxGridCellAttr* mergefrom;
1013 ::wxGridCellAttr *sipCpp;
1014
1015 static const char *sipKwdList[] = {
1016 sipName_mergefrom,
1017 };
1018
1019 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxGridCellAttr, &sipCpp, sipType_wxGridCellAttr, &mergefrom))
1020 {
1021 PyErr_Clear();
1022
1023 Py_BEGIN_ALLOW_THREADS
1024 sipCpp->MergeWith(mergefrom);
1025 Py_END_ALLOW_THREADS
1026
1027 if (PyErr_Occurred())
1028 return 0;
1029
1030 Py_INCREF(Py_None);
1031 return Py_None;
1032 }
1033 }
1034
1035 /* Raise an exception if the arguments couldn't be parsed. */
1036 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_MergeWith, SIP_NULLPTR);
1037
1038 return SIP_NULLPTR;
1039 }
1040
1041
1042 PyDoc_STRVAR(doc_wxGridCellAttr_SetSize, "SetSize(num_rows, num_cols)");
1043
1044 extern "C" {static PyObject *meth_wxGridCellAttr_SetSize(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_SetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1045 static PyObject *meth_wxGridCellAttr_SetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1046 {
1047 PyObject *sipParseErr = SIP_NULLPTR;
1048
1049 {
1050 int num_rows;
1051 int num_cols;
1052 ::wxGridCellAttr *sipCpp;
1053
1054 static const char *sipKwdList[] = {
1055 sipName_num_rows,
1056 sipName_num_cols,
1057 };
1058
1059 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxGridCellAttr, &sipCpp, &num_rows, &num_cols))
1060 {
1061 PyErr_Clear();
1062
1063 Py_BEGIN_ALLOW_THREADS
1064 sipCpp->SetSize(num_rows,num_cols);
1065 Py_END_ALLOW_THREADS
1066
1067 if (PyErr_Occurred())
1068 return 0;
1069
1070 Py_INCREF(Py_None);
1071 return Py_None;
1072 }
1073 }
1074
1075 /* Raise an exception if the arguments couldn't be parsed. */
1076 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_SetSize, SIP_NULLPTR);
1077
1078 return SIP_NULLPTR;
1079 }
1080
1081
1082 PyDoc_STRVAR(doc_wxGridCellAttr_SetOverflow, "SetOverflow(allow=True)");
1083
1084 extern "C" {static PyObject *meth_wxGridCellAttr_SetOverflow(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_SetOverflow(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1085 static PyObject *meth_wxGridCellAttr_SetOverflow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1086 {
1087 PyObject *sipParseErr = SIP_NULLPTR;
1088
1089 {
1090 bool allow = 1;
1091 ::wxGridCellAttr *sipCpp;
1092
1093 static const char *sipKwdList[] = {
1094 sipName_allow,
1095 };
1096
1097 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|b", &sipSelf, sipType_wxGridCellAttr, &sipCpp, &allow))
1098 {
1099 PyErr_Clear();
1100
1101 Py_BEGIN_ALLOW_THREADS
1102 sipCpp->SetOverflow(allow);
1103 Py_END_ALLOW_THREADS
1104
1105 if (PyErr_Occurred())
1106 return 0;
1107
1108 Py_INCREF(Py_None);
1109 return Py_None;
1110 }
1111 }
1112
1113 /* Raise an exception if the arguments couldn't be parsed. */
1114 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_SetOverflow, SIP_NULLPTR);
1115
1116 return SIP_NULLPTR;
1117 }
1118
1119
1120 PyDoc_STRVAR(doc_wxGridCellAttr_SetKind, "SetKind(kind)");
1121
1122 extern "C" {static PyObject *meth_wxGridCellAttr_SetKind(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_SetKind(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1123 static PyObject *meth_wxGridCellAttr_SetKind(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1124 {
1125 PyObject *sipParseErr = SIP_NULLPTR;
1126
1127 {
1128 ::wxGridCellAttr::wxAttrKind kind;
1129 ::wxGridCellAttr *sipCpp;
1130
1131 static const char *sipKwdList[] = {
1132 sipName_kind,
1133 };
1134
1135 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxGridCellAttr, &sipCpp, sipType_wxGridCellAttr_wxAttrKind, &kind))
1136 {
1137 PyErr_Clear();
1138
1139 Py_BEGIN_ALLOW_THREADS
1140 sipCpp->SetKind(kind);
1141 Py_END_ALLOW_THREADS
1142
1143 if (PyErr_Occurred())
1144 return 0;
1145
1146 Py_INCREF(Py_None);
1147 return Py_None;
1148 }
1149 }
1150
1151 /* Raise an exception if the arguments couldn't be parsed. */
1152 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_SetKind, SIP_NULLPTR);
1153
1154 return SIP_NULLPTR;
1155 }
1156
1157
1158 PyDoc_STRVAR(doc_wxGridCellAttr_HasReadWriteMode, "HasReadWriteMode() -> bool");
1159
1160 extern "C" {static PyObject *meth_wxGridCellAttr_HasReadWriteMode(PyObject *, PyObject *);}
meth_wxGridCellAttr_HasReadWriteMode(PyObject * sipSelf,PyObject * sipArgs)1161 static PyObject *meth_wxGridCellAttr_HasReadWriteMode(PyObject *sipSelf, PyObject *sipArgs)
1162 {
1163 PyObject *sipParseErr = SIP_NULLPTR;
1164
1165 {
1166 const ::wxGridCellAttr *sipCpp;
1167
1168 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
1169 {
1170 bool sipRes;
1171
1172 PyErr_Clear();
1173
1174 Py_BEGIN_ALLOW_THREADS
1175 sipRes = sipCpp->HasReadWriteMode();
1176 Py_END_ALLOW_THREADS
1177
1178 if (PyErr_Occurred())
1179 return 0;
1180
1181 return PyBool_FromLong(sipRes);
1182 }
1183 }
1184
1185 /* Raise an exception if the arguments couldn't be parsed. */
1186 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_HasReadWriteMode, SIP_NULLPTR);
1187
1188 return SIP_NULLPTR;
1189 }
1190
1191
1192 PyDoc_STRVAR(doc_wxGridCellAttr_HasOverflowMode, "HasOverflowMode() -> bool");
1193
1194 extern "C" {static PyObject *meth_wxGridCellAttr_HasOverflowMode(PyObject *, PyObject *);}
meth_wxGridCellAttr_HasOverflowMode(PyObject * sipSelf,PyObject * sipArgs)1195 static PyObject *meth_wxGridCellAttr_HasOverflowMode(PyObject *sipSelf, PyObject *sipArgs)
1196 {
1197 PyObject *sipParseErr = SIP_NULLPTR;
1198
1199 {
1200 const ::wxGridCellAttr *sipCpp;
1201
1202 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
1203 {
1204 bool sipRes;
1205
1206 PyErr_Clear();
1207
1208 Py_BEGIN_ALLOW_THREADS
1209 sipRes = sipCpp->HasOverflowMode();
1210 Py_END_ALLOW_THREADS
1211
1212 if (PyErr_Occurred())
1213 return 0;
1214
1215 return PyBool_FromLong(sipRes);
1216 }
1217 }
1218
1219 /* Raise an exception if the arguments couldn't be parsed. */
1220 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_HasOverflowMode, SIP_NULLPTR);
1221
1222 return SIP_NULLPTR;
1223 }
1224
1225
1226 PyDoc_STRVAR(doc_wxGridCellAttr_HasSize, "HasSize() -> bool");
1227
1228 extern "C" {static PyObject *meth_wxGridCellAttr_HasSize(PyObject *, PyObject *);}
meth_wxGridCellAttr_HasSize(PyObject * sipSelf,PyObject * sipArgs)1229 static PyObject *meth_wxGridCellAttr_HasSize(PyObject *sipSelf, PyObject *sipArgs)
1230 {
1231 PyObject *sipParseErr = SIP_NULLPTR;
1232
1233 {
1234 const ::wxGridCellAttr *sipCpp;
1235
1236 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
1237 {
1238 bool sipRes;
1239
1240 PyErr_Clear();
1241
1242 Py_BEGIN_ALLOW_THREADS
1243 sipRes = sipCpp->HasSize();
1244 Py_END_ALLOW_THREADS
1245
1246 if (PyErr_Occurred())
1247 return 0;
1248
1249 return PyBool_FromLong(sipRes);
1250 }
1251 }
1252
1253 /* Raise an exception if the arguments couldn't be parsed. */
1254 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_HasSize, SIP_NULLPTR);
1255
1256 return SIP_NULLPTR;
1257 }
1258
1259
1260 PyDoc_STRVAR(doc_wxGridCellAttr_GetSize, "GetSize() -> (num_rows, num_cols)");
1261
1262 extern "C" {static PyObject *meth_wxGridCellAttr_GetSize(PyObject *, PyObject *, PyObject *);}
meth_wxGridCellAttr_GetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1263 static PyObject *meth_wxGridCellAttr_GetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1264 {
1265 PyObject *sipParseErr = SIP_NULLPTR;
1266
1267 {
1268 int num_rows;
1269 int num_cols;
1270 const ::wxGridCellAttr *sipCpp;
1271
1272 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
1273 {
1274 PyErr_Clear();
1275
1276 Py_BEGIN_ALLOW_THREADS
1277 sipCpp->GetSize(&num_rows,&num_cols);
1278 Py_END_ALLOW_THREADS
1279
1280 if (PyErr_Occurred())
1281 return 0;
1282
1283 return sipBuildResult(0,"(ii)",num_rows,num_cols);
1284 }
1285 }
1286
1287 /* Raise an exception if the arguments couldn't be parsed. */
1288 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_GetSize, SIP_NULLPTR);
1289
1290 return SIP_NULLPTR;
1291 }
1292
1293
1294 PyDoc_STRVAR(doc_wxGridCellAttr_GetOverflow, "GetOverflow() -> bool");
1295
1296 extern "C" {static PyObject *meth_wxGridCellAttr_GetOverflow(PyObject *, PyObject *);}
meth_wxGridCellAttr_GetOverflow(PyObject * sipSelf,PyObject * sipArgs)1297 static PyObject *meth_wxGridCellAttr_GetOverflow(PyObject *sipSelf, PyObject *sipArgs)
1298 {
1299 PyObject *sipParseErr = SIP_NULLPTR;
1300
1301 {
1302 const ::wxGridCellAttr *sipCpp;
1303
1304 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
1305 {
1306 bool sipRes;
1307
1308 PyErr_Clear();
1309
1310 Py_BEGIN_ALLOW_THREADS
1311 sipRes = sipCpp->GetOverflow();
1312 Py_END_ALLOW_THREADS
1313
1314 if (PyErr_Occurred())
1315 return 0;
1316
1317 return PyBool_FromLong(sipRes);
1318 }
1319 }
1320
1321 /* Raise an exception if the arguments couldn't be parsed. */
1322 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_GetOverflow, SIP_NULLPTR);
1323
1324 return SIP_NULLPTR;
1325 }
1326
1327
1328 PyDoc_STRVAR(doc_wxGridCellAttr_GetKind, "GetKind() -> AttrKind");
1329
1330 extern "C" {static PyObject *meth_wxGridCellAttr_GetKind(PyObject *, PyObject *);}
meth_wxGridCellAttr_GetKind(PyObject * sipSelf,PyObject * sipArgs)1331 static PyObject *meth_wxGridCellAttr_GetKind(PyObject *sipSelf, PyObject *sipArgs)
1332 {
1333 PyObject *sipParseErr = SIP_NULLPTR;
1334
1335 {
1336 ::wxGridCellAttr *sipCpp;
1337
1338 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxGridCellAttr, &sipCpp))
1339 {
1340 ::wxGridCellAttr::wxAttrKind sipRes;
1341
1342 PyErr_Clear();
1343
1344 Py_BEGIN_ALLOW_THREADS
1345 sipRes = sipCpp->GetKind();
1346 Py_END_ALLOW_THREADS
1347
1348 if (PyErr_Occurred())
1349 return 0;
1350
1351 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxGridCellAttr_wxAttrKind);
1352 }
1353 }
1354
1355 /* Raise an exception if the arguments couldn't be parsed. */
1356 sipNoMethod(sipParseErr, sipName_GridCellAttr, sipName_GetKind, SIP_NULLPTR);
1357
1358 return SIP_NULLPTR;
1359 }
1360
1361
1362 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
1363 extern "C" {static void *cast_wxGridCellAttr(void *, const sipTypeDef *);}
cast_wxGridCellAttr(void * sipCppV,const sipTypeDef * targetType)1364 static void *cast_wxGridCellAttr(void *sipCppV, const sipTypeDef *targetType)
1365 {
1366 ::wxGridCellAttr *sipCpp = reinterpret_cast< ::wxGridCellAttr *>(sipCppV);
1367
1368 if (targetType == sipType_wxClientDataContainer)
1369 return static_cast< ::wxClientDataContainer *>(sipCpp);
1370
1371 if (targetType == sipType_wxRefCounter)
1372 return static_cast< ::wxRefCounter *>(sipCpp);
1373
1374 return sipCppV;
1375 }
1376
1377
1378 /* Call the instance's destructor. */
1379 extern "C" {static void release_wxGridCellAttr(void *, int);}
release_wxGridCellAttr(void * sipCppV,int sipState)1380 static void release_wxGridCellAttr(void *sipCppV, int sipState)
1381 {
1382 Py_BEGIN_ALLOW_THREADS
1383
1384 if (sipState & SIP_DERIVED_CLASS)
1385 delete reinterpret_cast<sipwxGridCellAttr *>(sipCppV);
1386
1387 Py_END_ALLOW_THREADS
1388 }
1389
1390
1391 extern "C" {static void dealloc_wxGridCellAttr(sipSimpleWrapper *);}
dealloc_wxGridCellAttr(sipSimpleWrapper * sipSelf)1392 static void dealloc_wxGridCellAttr(sipSimpleWrapper *sipSelf)
1393 {
1394 if (sipIsDerivedClass(sipSelf))
1395 reinterpret_cast<sipwxGridCellAttr *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
1396
1397 if (sipIsOwnedByPython(sipSelf))
1398 {
1399 release_wxGridCellAttr(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
1400 }
1401 }
1402
1403
1404 extern "C" {static void *init_type_wxGridCellAttr(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxGridCellAttr(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject ** sipOwner,PyObject ** sipParseErr)1405 static void *init_type_wxGridCellAttr(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
1406 {
1407 sipwxGridCellAttr *sipCpp = SIP_NULLPTR;
1408
1409 {
1410 ::wxGridCellAttr* attrDefault = 0;
1411
1412 static const char *sipKwdList[] = {
1413 sipName_attrDefault,
1414 };
1415
1416 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|J8", sipType_wxGridCellAttr, &attrDefault))
1417 {
1418 PyErr_Clear();
1419
1420 Py_BEGIN_ALLOW_THREADS
1421 sipCpp = new sipwxGridCellAttr(attrDefault);
1422 Py_END_ALLOW_THREADS
1423
1424 *sipOwner = Py_None;
1425
1426 if (PyErr_Occurred())
1427 {
1428 delete sipCpp;
1429 return SIP_NULLPTR;
1430 }
1431
1432 sipCpp->sipPySelf = sipSelf;
1433
1434 return sipCpp;
1435 }
1436 }
1437
1438 {
1439 const ::wxColour* colText;
1440 int colTextState = 0;
1441 const ::wxColour* colBack;
1442 int colBackState = 0;
1443 const ::wxFont* font;
1444 int hAlign;
1445 int vAlign;
1446
1447 static const char *sipKwdList[] = {
1448 sipName_colText,
1449 sipName_colBack,
1450 sipName_font,
1451 sipName_hAlign,
1452 sipName_vAlign,
1453 };
1454
1455 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1J1J9ii", sipType_wxColour, &colText, &colTextState, sipType_wxColour, &colBack, &colBackState, sipType_wxFont, &font, &hAlign, &vAlign))
1456 {
1457 PyErr_Clear();
1458
1459 Py_BEGIN_ALLOW_THREADS
1460 sipCpp = new sipwxGridCellAttr(*colText,*colBack,*font,hAlign,vAlign);
1461 Py_END_ALLOW_THREADS
1462
1463 *sipOwner = Py_None;
1464 sipReleaseType(const_cast< ::wxColour *>(colText),sipType_wxColour,colTextState);
1465 sipReleaseType(const_cast< ::wxColour *>(colBack),sipType_wxColour,colBackState);
1466
1467 if (PyErr_Occurred())
1468 {
1469 delete sipCpp;
1470 return SIP_NULLPTR;
1471 }
1472
1473 sipCpp->sipPySelf = sipSelf;
1474
1475 return sipCpp;
1476 }
1477 }
1478
1479 return SIP_NULLPTR;
1480 }
1481
1482
1483 /* Define this type's super-types. */
1484 static sipEncodedTypeDef supers_wxGridCellAttr[] = {{4, 0, 0}, {21, 0, 1}};
1485
1486
1487 static PyMethodDef methods_wxGridCellAttr[] = {
1488 {SIP_MLNAME_CAST(sipName_Clone), meth_wxGridCellAttr_Clone, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_Clone)},
1489 {SIP_MLNAME_CAST(sipName_DecRef), meth_wxGridCellAttr_DecRef, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_DecRef)},
1490 {SIP_MLNAME_CAST(sipName_GetAlignment), SIP_MLMETH_CAST(meth_wxGridCellAttr_GetAlignment), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_GetAlignment)},
1491 {SIP_MLNAME_CAST(sipName_GetBackgroundColour), meth_wxGridCellAttr_GetBackgroundColour, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_GetBackgroundColour)},
1492 {SIP_MLNAME_CAST(sipName_GetEditor), SIP_MLMETH_CAST(meth_wxGridCellAttr_GetEditor), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_GetEditor)},
1493 {SIP_MLNAME_CAST(sipName_GetFont), meth_wxGridCellAttr_GetFont, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_GetFont)},
1494 {SIP_MLNAME_CAST(sipName_GetKind), meth_wxGridCellAttr_GetKind, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_GetKind)},
1495 {SIP_MLNAME_CAST(sipName_GetNonDefaultAlignment), SIP_MLMETH_CAST(meth_wxGridCellAttr_GetNonDefaultAlignment), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_GetNonDefaultAlignment)},
1496 {SIP_MLNAME_CAST(sipName_GetOverflow), meth_wxGridCellAttr_GetOverflow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_GetOverflow)},
1497 {SIP_MLNAME_CAST(sipName_GetRenderer), SIP_MLMETH_CAST(meth_wxGridCellAttr_GetRenderer), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_GetRenderer)},
1498 {SIP_MLNAME_CAST(sipName_GetSize), SIP_MLMETH_CAST(meth_wxGridCellAttr_GetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_GetSize)},
1499 {SIP_MLNAME_CAST(sipName_GetTextColour), meth_wxGridCellAttr_GetTextColour, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_GetTextColour)},
1500 {SIP_MLNAME_CAST(sipName_HasAlignment), meth_wxGridCellAttr_HasAlignment, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_HasAlignment)},
1501 {SIP_MLNAME_CAST(sipName_HasBackgroundColour), meth_wxGridCellAttr_HasBackgroundColour, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_HasBackgroundColour)},
1502 {SIP_MLNAME_CAST(sipName_HasEditor), meth_wxGridCellAttr_HasEditor, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_HasEditor)},
1503 {SIP_MLNAME_CAST(sipName_HasFont), meth_wxGridCellAttr_HasFont, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_HasFont)},
1504 {SIP_MLNAME_CAST(sipName_HasOverflowMode), meth_wxGridCellAttr_HasOverflowMode, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_HasOverflowMode)},
1505 {SIP_MLNAME_CAST(sipName_HasReadWriteMode), meth_wxGridCellAttr_HasReadWriteMode, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_HasReadWriteMode)},
1506 {SIP_MLNAME_CAST(sipName_HasRenderer), meth_wxGridCellAttr_HasRenderer, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_HasRenderer)},
1507 {SIP_MLNAME_CAST(sipName_HasSize), meth_wxGridCellAttr_HasSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_HasSize)},
1508 {SIP_MLNAME_CAST(sipName_HasTextColour), meth_wxGridCellAttr_HasTextColour, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_HasTextColour)},
1509 {SIP_MLNAME_CAST(sipName_IncRef), meth_wxGridCellAttr_IncRef, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_IncRef)},
1510 {SIP_MLNAME_CAST(sipName_IsReadOnly), meth_wxGridCellAttr_IsReadOnly, METH_VARARGS, SIP_MLDOC_CAST(doc_wxGridCellAttr_IsReadOnly)},
1511 {SIP_MLNAME_CAST(sipName_MergeWith), SIP_MLMETH_CAST(meth_wxGridCellAttr_MergeWith), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_MergeWith)},
1512 {SIP_MLNAME_CAST(sipName_SetAlignment), SIP_MLMETH_CAST(meth_wxGridCellAttr_SetAlignment), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_SetAlignment)},
1513 {SIP_MLNAME_CAST(sipName_SetBackgroundColour), SIP_MLMETH_CAST(meth_wxGridCellAttr_SetBackgroundColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_SetBackgroundColour)},
1514 {SIP_MLNAME_CAST(sipName_SetDefAttr), SIP_MLMETH_CAST(meth_wxGridCellAttr_SetDefAttr), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_SetDefAttr)},
1515 {SIP_MLNAME_CAST(sipName_SetEditor), SIP_MLMETH_CAST(meth_wxGridCellAttr_SetEditor), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_SetEditor)},
1516 {SIP_MLNAME_CAST(sipName_SetFont), SIP_MLMETH_CAST(meth_wxGridCellAttr_SetFont), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_SetFont)},
1517 {SIP_MLNAME_CAST(sipName_SetKind), SIP_MLMETH_CAST(meth_wxGridCellAttr_SetKind), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_SetKind)},
1518 {SIP_MLNAME_CAST(sipName_SetOverflow), SIP_MLMETH_CAST(meth_wxGridCellAttr_SetOverflow), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_SetOverflow)},
1519 {SIP_MLNAME_CAST(sipName_SetReadOnly), SIP_MLMETH_CAST(meth_wxGridCellAttr_SetReadOnly), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_SetReadOnly)},
1520 {SIP_MLNAME_CAST(sipName_SetRenderer), SIP_MLMETH_CAST(meth_wxGridCellAttr_SetRenderer), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_SetRenderer)},
1521 {SIP_MLNAME_CAST(sipName_SetSize), SIP_MLMETH_CAST(meth_wxGridCellAttr_SetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_SetSize)},
1522 {SIP_MLNAME_CAST(sipName_SetTextColour), SIP_MLMETH_CAST(meth_wxGridCellAttr_SetTextColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxGridCellAttr_SetTextColour)}
1523 };
1524
1525 static sipEnumMemberDef enummembers_wxGridCellAttr[] = {
1526 {sipName_Any, static_cast<int>( ::wxGridCellAttr::Any), 5},
1527 {sipName_Cell, static_cast<int>( ::wxGridCellAttr::Cell), 5},
1528 {sipName_Col, static_cast<int>( ::wxGridCellAttr::Col), 5},
1529 {sipName_Default, static_cast<int>( ::wxGridCellAttr::Default), 5},
1530 {sipName_Merged, static_cast<int>( ::wxGridCellAttr::Merged), 5},
1531 {sipName_Row, static_cast<int>( ::wxGridCellAttr::Row), 5},
1532 };
1533
1534 sipVariableDef variables_wxGridCellAttr[] = {
1535 {PropertyVariable, sipName_TextColour, &methods_wxGridCellAttr[11], &methods_wxGridCellAttr[34], SIP_NULLPTR, SIP_NULLPTR},
1536 {PropertyVariable, sipName_Overflow, &methods_wxGridCellAttr[8], &methods_wxGridCellAttr[30], SIP_NULLPTR, SIP_NULLPTR},
1537 {PropertyVariable, sipName_Kind, &methods_wxGridCellAttr[6], &methods_wxGridCellAttr[29], SIP_NULLPTR, SIP_NULLPTR},
1538 {PropertyVariable, sipName_Font, &methods_wxGridCellAttr[5], &methods_wxGridCellAttr[28], SIP_NULLPTR, SIP_NULLPTR},
1539 {PropertyVariable, sipName_BackgroundColour, &methods_wxGridCellAttr[3], &methods_wxGridCellAttr[25], SIP_NULLPTR, SIP_NULLPTR},
1540 };
1541
1542 PyDoc_STRVAR(doc_wxGridCellAttr, "GridCellAttr(attrDefault=None)\n"
1543 "GridCellAttr(colText, colBack, font, hAlign, vAlign)\n"
1544 "\n"
1545 "This class can be used to alter the cells' appearance in the grid by\n"
1546 "changing their attributes from the defaults.");
1547
1548
1549 sipClassTypeDef sipTypeDef__grid_wxGridCellAttr = {
1550 {
1551 -1,
1552 SIP_NULLPTR,
1553 SIP_NULLPTR,
1554 SIP_TYPE_CLASS,
1555 sipNameNr_wxGridCellAttr,
1556 {SIP_NULLPTR},
1557 SIP_NULLPTR
1558 },
1559 {
1560 sipNameNr_GridCellAttr,
1561 {0, 0, 1},
1562 35, methods_wxGridCellAttr,
1563 6, enummembers_wxGridCellAttr,
1564 5, variables_wxGridCellAttr,
1565 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1566 },
1567 doc_wxGridCellAttr,
1568 -1,
1569 -1,
1570 supers_wxGridCellAttr,
1571 SIP_NULLPTR,
1572 init_type_wxGridCellAttr,
1573 SIP_NULLPTR,
1574 SIP_NULLPTR,
1575 #if PY_MAJOR_VERSION >= 3
1576 SIP_NULLPTR,
1577 SIP_NULLPTR,
1578 #else
1579 SIP_NULLPTR,
1580 SIP_NULLPTR,
1581 SIP_NULLPTR,
1582 SIP_NULLPTR,
1583 #endif
1584 dealloc_wxGridCellAttr,
1585 SIP_NULLPTR,
1586 SIP_NULLPTR,
1587 SIP_NULLPTR,
1588 release_wxGridCellAttr,
1589 cast_wxGridCellAttr,
1590 SIP_NULLPTR,
1591 SIP_NULLPTR,
1592 SIP_NULLPTR,
1593 SIP_NULLPTR,
1594 SIP_NULLPTR,
1595 SIP_NULLPTR
1596 };
1597